efficient-storefront-blocks 0.139.2 → 0.139.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/chunks/{EditorPreviewCheckout-ZMKF3EFO.js → EditorPreviewCheckout-DKU7B2SG.js} +1 -1
- package/dist/chunks/{chunk-MQ7N2O34.js → chunk-3EWOQHCY.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/render/components/WebFormField.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as Up,$a as qee,$b as xu,$c as boe,$d as hne,$e as vC,$f as sR,$g as nse,A as lu,Aa as Hee,Ab as Tte,Ac as oC,Ad as xB,Ae as $h,Af as Ft,Ag as Tie,Ah as wse,B as mQ,Ba as Mb,Bb as _te,Bc as sl,Bd as Moe,Be as EB,Bf as are,Bg as bw,Bh as xse,C as WQ,Ca as I_,Cb as Cte,Cc as cB,Cd as zoe,Ce as One,Cf as ire,Cg as oH,Ch as yse,D as be,Da as eB,Db as G_,Dc as qb,Dd as Su,De as PB,Df as AB,Dg as Eie,Dh as vse,E as UQ,Ea as zb,Eb as Rte,Ec as toe,Ed as bc,Ee as fd,Ef as PC,Eg as Pie,Eh as kse,F as B2,Fa as zee,Fb as Uh,Fc as ooe,Fd as Woe,Fe as Nne,Ff as _C,Fg as nH,Fh as Sse,G as jQ,Ga as F_,Gb as ko,Gc as noe,Gd as Uoe,Ge as Lne,Gf as sre,Gg as p1,Gh as Tse,H as qQ,Ha as Wee,Hb as $_,Hc as roe,Hd as mC,He as _B,Hf as CC,Hg as _ie,Hh as Sw,I as XQ,Ia as D2,Ib as Nte,Ic as aoe,Id as Goe,Ie as Ane,If as lre,Ig as mR,Ih as Ese,J as ZQ,Ja as M2,Jb as K_,Jc as ioe,Jd as $oe,Je as Ine,Jf as IB,Jg as uR,Jh as Pse,K as T_,Ka as B_,Kb as V_,Kc as pB,Kd as Koe,Ke as Fne,Kf as RC,Kg as Cie,Kh as _se,L as JQ,La as Uee,Lb as Ite,Lc as soe,Ld as Voe,Le as Bne,Lf as dre,Lg as Rie,Lh as bd,M as QQ,Ma as Gee,Mb as xt,Mc as loe,Md as Yoe,Me as CB,Mf as FB,Mg as fR,Mh as Cse,N as eee,Na as $ee,Nb as Fte,Nc as vu,Nd as joe,Ne as Hne,Nf as cre,Ng as Oie,Nh as Nu,O as tee,Oa as Kee,Ob as N,Oc as doe,Od as qoe,Oe as Dne,Of as pre,Og as Nie,Oh as Rse,P as oee,Pa as Vee,Pb as Jo,Pc as uc,Pd as Xoe,Pe as Mne,Pf as mre,Pg as Lie,Ph as lH,Q as nee,Qa as Yee,Qb as lB,Qc as coe,Qd as Zoe,Qe as OB,Qf as ure,Qg as Aie,Qh as Ose,R as ree,Ra as z2,Rb as re,Rc as ku,Rd as ine,Re as xC,Rf as Jae,Rg as qie,Rh as Nse,S as et,Sa as W2,Sb as Dt,Sc as poe,Sd as sne,Se as yC,Sf as Qae,Sg as Xie,Sh as xR,T as J6,Ta as U2,Tb as rl,Tc as nC,Td as fC,Te as Une,Tf as eie,Tg as Zie,Th as Lse,U as Re,Ua as H_,Ub as Bte,Uc as moe,Ud as lne,Ue as Gne,Uf as tie,Ug as Jie,Uh as Ase,V as xee,Va as jee,Vb as Hte,Vc as uoe,Vd as dne,Ve as $ne,Vf as oie,Vg as Qie,Vh as m1,W as Zo,Wa as fu,Wb as al,Wc as foe,Wd as cne,We as Tu,Wf as ZB,Wg as yw,Wh as Ise,X as Tee,Xa as D_,Xb as Y_,Xc as hoe,Xd as pne,Xe as Fo,Xf as nie,Xg as ese,Xh as Fse,Y as H2,Ya as zh,Yb as Dte,Yc as Hn,Yd as mne,Ye as Jb,Yf as rie,Yg as bR,Z as lc,Za as Wh,Zb as wu,Zc as goe,Zd as une,Ze as Kne,Zf as iR,Zg as tse,_ as R_,_a as Wb,_b as il,_c as Kp,_d as fne,_e as Vne,_f as Ru,_g as ose,a as O6,aa as dc,ab as Xee,ac as zte,ad as woe,ae as gne,af as kC,ag as uw,ah as rse,b as qs,ba as cc,bb as Zee,bc as X_,bd as $2,be as bne,bf as Yne,bg as fw,bh as iH,c as Xs,ca as uu,cb as Jee,cc as Z_,cd as hc,ce as wne,cf as jne,cg as hw,ch as ase,d as Fn,da as Mh,db as Qee,dc as dB,dd as to,de as wc,df as NB,dg as gw,dh as ut,e as O2,ea as Eee,eb as mr,ec as mc,ed as rC,ee as xne,ef as Qb,eg as JB,eh as zt,f as ru,fa as O_,fb as Ub,fc as Me,fd as koe,fe as yne,ff as Kh,fg as QB,fh as Ma,g as N2,ga as Pee,gb as ete,gc as C,gd as Vp,ge as vne,gf as qne,gg as lR,gh as ro,h as fJ,ha as N_,hb as tte,hc as cn,hd as Soe,he as kne,hf as Xne,hg as aie,hh as ise,i as $P,ia as _ee,ib as ote,ic as wn,id as Mt,ie as kB,if as SC,ig as eH,ih as sse,j as Tb,ja as L_,jb as M_,jc as li,jd as Ha,je as SB,jf as Zne,jg as iie,jh as sH,k as Ih,ka as Bb,kb as nte,kc as J_,kd as uB,ke as TB,kf as Da,kg as sie,kh as lse,l as KP,la as Hb,lb as tB,lc as Wte,ld as iC,le as hC,lf as ll,lg as lie,lh as dse,m as VP,ma as Cee,mb as rte,mc as Ute,md as Toe,me as gC,mf as Ke,mg as cie,mh as cse,n as YP,na as Ree,nb as G2,nc as Gte,nd as Eoe,ne as bC,nf as Eu,ng as pie,nh as pse,o as jP,oa as Db,ob as ate,oc as $te,od as sC,oe as wC,of as Jne,og as mie,oh as hl,p as qP,pa as Oee,pb as ite,pc as Kte,pd as lC,pe as Sne,pf as Qne,pg as uie,ph as mse,q as XP,qa as Nee,qb as ste,qc as Vte,qd as Poe,qe as Tne,qf as ere,qg as fie,qh as vw,r as hJ,ra as Lee,rb as rB,rc as Yte,rd as _oe,re as Ene,rf as tre,rg as hie,rh as use,s as bJ,sa as ol,sb as W_,sc as jte,sd as Coe,se as Pne,sf as Vh,sg as gie,sh as fse,t as wJ,ta as A_,tb as U_,tc as $p,td as Roe,te as X2,tf as TC,tg as bie,th as wR,u as e_,ua as Gp,ub as kte,uc as Q_,ud as V2,ue as Z2,uf as ore,ug as wie,uh as kw,v as t_,va as ms,vb as Ste,vc as qte,vd as Y2,ve as J2,vf as e1,vg as xie,vh as hse,w as JJ,wa as Aee,wb as Yb,wc as Xte,wd as bB,we as Q2,wf as Yh,wg as tH,wh as gse,x as QJ,xa as Iee,xb as aB,xc as Jte,xd as wB,xe as _ne,xf as LB,xg as kie,xh as bse,y as c_,ya as Fee,yb as iB,yc as Qte,yd as Zb,ye as Cne,yf as nre,yg as pR,yh as Zp,z as V6,za as Bee,zb as sB,zc as eoe,zd as pC,ze as Rne,zf as rre,zg as Sie,zh as eg}from"./chunks/chunk-EVIGYNEU.js";import{$ as Qp,$a as pde,A as Ole,Aa as g1,B as Nle,C as Lle,Ca as Jle,D as Ale,Da as BR,E as ER,Ea as HR,F as Rw,Fa as Qle,G as PR,Ga as DR,H as Ile,Ha as Bu,I as _R,Ia as Bw,J as CR,Ja as Sc,K as Fle,Ka as MR,L as Ow,La as Hw,M as Nw,Ma as zR,N as RR,Na as WR,O as Ble,Oa as em,P as Hle,Pa as bH,Q as OR,Qa as ede,R as Au,Ra as tde,S as Dle,Sa as ode,T as NR,Ta as nde,U as Lw,Ua as rde,V as Mle,Va as ade,W as og,Wa as ide,X as zle,Xa as sde,Y as Iu,Ya as lde,Z as Aw,Za as dde,_ as LR,_a as cde,a as ba,aa as Wle,ab as mde,b as wle,ba as Ule,bb as UR,ca as Gle,cb as Hu,da as AR,db as Tc,ea as $le,eb as ude,f as Jp,fa as Kle,fb as ng,g as SR,ga as h1,gb as fde,h as xle,ha as IR,hb as wH,i as yle,ia as Vle,ib as hde,j as fH,ja as Iw,jb as gde,k as vle,ka as Yle,kb as GR,l as kle,lb as bde,m as Sle,mb as bs,n as Tle,na as jle,nb as $R,o as TR,ob as Dw,p as hH,pb as wde,q as Ele,qa as qle,qb as xde,r as wa,ra as Xle,rb as tm,s as Ple,sa as Fu,sb as xH,t as _le,ta as At,u as Lu,ua as Zle,ub as yH,v as Cle,vb as Ec,w as kc,wa as gH,wb as Pc,x as f1,xa as Fw,xb as KR,y as Rle,ya as Mn,yb as rg,z as Cw,za as FR,zb as $r}from"./chunks/chunk-MQ7N2O34.js";import{A as Yse,B as jse,C as qse,D as Xse,E as Zse,F as Jse,G as Qse,H as ele,I as tle,J as pH,K as ole,L as mH,M as xn,N as nle,O as Ai,P as rle,Q as ale,R as kR,S as ur,T as ile,U as sle,V as lle,W as dle,X as Ew,Y as cle,b as yR,ca as Pw,da as Bo,e as u1,ea as tg,f as Tw,fa as ple,ga as _w,h as Dn,ha as Ne,i as vc,ia as mle,j as Bse,ja as uH,k as Hse,ka as ule,l as Dse,la as fle,m as Mse,ma as hle,n as zse,na as gle,o as dH,oa as ble,p as gl,q as Wse,r as Use,s as lt,t as Li,u as Gse,v as $se,w as cH,x as Kse,y as vR,z as Vse}from"./chunks/chunk-5KEEVCY6.js";import{$ as BQ,A as CQ,B as A2,C as RQ,F as Lb,G as du,H as LQ,I as zp,L as AQ,M as Bn,N as b_,O as Jt,P as z,Q as q6,S as pu,T as Ab,U as IQ,V as X6,W as FQ,X as Ib,aa as oB,b as eQ,ba as gu,c as tQ,ca as mte,da as Kb,ea as ute,fa as nl,g as oQ,ga as Ote,ha as He,i as uQ,ia as Qh,j as h_,k as g_,ka as yie,l as fQ,la as dR,m as hQ,ma as vie,n as gQ,na as cR,o as bQ,p as wQ,q as xQ,r as yQ,s as vQ,u as kQ,v as SQ,w as TQ,x as EQ,y as PQ,z as _Q}from"./chunks/chunk-UA7ENMMT.js";import{a as Ni,b as xoe,c as fc,e as fs,h as EC,j as ga,k as jie}from"./chunks/chunk-F24QIWKG.js";import{a as HQ,b as MQ,e as zQ}from"./chunks/chunk-EN6NBFZO.js";import{$b as Ri,$d as Mee,$e as Gh,$f as OC,$g as _re,$h as KC,$i as _ae,$k as oo,A as iu,Ae as xte,Af as uC,Ah as iw,Ai as jC,Aj as nR,Ak as qae,Bf as Qoe,Bh as fa,Bi as uae,Bk as Xae,Cb as vo,Ce as yte,Cf as ene,Ch as MB,Ci as qC,Cj as jB,Ck as Zae,D as ge,Db as Hh,Df as hs,Dh as Ure,Di as fae,Dj as xc,E as Ci,Eb as m_,Ee as vte,Ef as tne,Eh as Gre,Ei as hae,F as SJ,Fb as Wr,Fd as __,Ff as one,Fh as zB,Fi as i1,Fj as Oae,Gf as j2,Gh as WB,Gi as s1,Gj as Nae,H as TJ,Hc as Q6,He as Ete,Hf as nne,Hh as UB,Hi as XC,Hj as Lae,Ib as Mp,Ic as iee,If as rne,Ih as o1,Ii as gae,Ij as Aae,Jb as L2,Jc as see,Je as Pte,Jf as ane,Jh as GB,Ji as bae,Jj as Iae,Ka as XJ,Kb as Dh,Ke as pc,Kh as n1,Ki as wae,L as EJ,Lb as u_,Lc as E_,Lh as Pu,Li as YB,Lj as Fae,Lk as Iie,Ma as ZJ,Mb as f_,Mc as P_,Me as U,Mh as $re,Mi as xae,Mj as Bae,N as PJ,Nc as mu,Ne as j_,Ng as cl,Nh as Kre,Ni as yae,Nj as yc,Nk as Fie,O as _J,Oc as lee,Oe as Rn,Og as Sre,Oh as _u,Oi as vae,Oj as Hae,Pa as Fa,Pc as dee,Pe as jb,Pg as Tre,Ph as UC,Pi as l1,Pj as Dae,Qa as Ba,Qe as Mte,Qg as IC,Qh as Vre,Qi as kae,Qj as Mae,Qk as Bie,Ra as nQ,Rd as yee,Re as q_,Rg as tw,Rh as Yre,Ri as Sae,Rj as d1,S as o_,Sa as rQ,Sd as tl,Se as bu,Sf as yB,Sg as Ere,Sh as Cu,Si as Pr,T as n_,Ta as aQ,Td as vee,Te as Yt,Tf as vB,Tg as qp,Th as jre,Ti as ZC,Tj as zae,U as CJ,Ua as iQ,Ud as Fb,Uf as q2,Ug as ow,Uh as r1,Ui as Tae,V as RJ,Ve as yu,Vf as gs,Vg as FC,Vh as $B,Vi as JC,W as _b,Wa as sQ,Wd as C_,We as eC,Wf as RB,Wg as HB,Wh as KB,Wi as Eae,Wj as c1,X as OJ,Xb as I2,Xd as kee,Xe as tC,Xf as zne,Xg as pl,Xh as GC,Ya as Y6,Yb as w_,Yd as See,Yf as Wne,Yg as er,Yh as qre,Yi as Pae,Zb as x_,Ze as Zte,Zg as Pre,Zh as $C,Zi as di,_ as NJ,_b as md,_c as cee,_d as Dee,_e as yoe,_f as ew,_i as QC,_k as Hie,a as Ys,ac as GQ,af as Ooe,ag as le,ah as Cre,ai as Xre,aj as lw,al as ww,b as qZ,ba as r_,bc as F2,be as lte,bg as ne,bh as BC,bi as Zre,bj as _r,bk as Wae,bl as xw,c as gJ,cc as ps,cd as pee,cf as Noe,cg as Yp,ch as HC,ci as Jre,ck as oe,cl as fl,d as ZP,dd as mee,de as hu,df as dC,dg as Oe,dh as Lre,di as qh,dj as nn,dk as ha,dl as no,ec as el,ed as uee,ee as dte,eg as fre,eh as Are,ei as VC,ek as Uae,el as Die,fc as $Q,fd as fee,fe as Gb,ff as Loe,fg as NC,fh as Ire,fi as Xh,fj as dw,fk as Gae,fl as Mie,g as m,gc as Wp,ge as $b,gf as Aoe,gg as dl,gi as Qre,gj as Cae,gk as Xp,gl as zie,h as pr,ha as B6,hc as y_,he as cte,hf as Ioe,hg as LC,hh as zC,hi as eae,hj as eR,hl as Wie,ic as KQ,ie as pte,if as Foe,ig as AC,ih as Fre,ij as tR,ik as qB,il as Uie,j as au,jc as v_,je as z_,jg as jh,jh as DB,ji as tae,jj as cw,jk as pw,jl as hR,k as sc,ka as UJ,kc as ua,ke as fte,kg as hd,kh as nw,ki as oae,kj as W,kk as Vo,kl as Gie,la as GJ,lb as lQ,lc as k_,ld as Oi,lf as Boe,lg as hre,lh as rw,li as nae,lj as j,lk as rR,ll as $ie,m as vJ,ma as Rb,mc as VQ,md as hee,mg as jp,mh as WC,mi as rae,mj as Q,mk as $ae,ml as Kie,na as $J,nb as dQ,nc as YQ,ng as gd,nh as Bre,ni as aae,nj as Se,nk as rt,oa as Ob,ob as cQ,oc as S_,oe as nB,of as fB,og as gre,oh as Hre,oi as VB,oj as qe,ok as aR,ol as Vie,pa as G6,pf as hB,pg as BB,ph as Dre,pi as iae,pj as Je,pk as XB,pl as Yie,qa as KJ,qd as gee,qf as Hoe,qg as bre,qi as sae,qk as Gr,ql as rH,r as F6,ra as $6,rf as Er,rg as wre,ri as lae,rj as ml,rl as aH,sa as VJ,sb as pQ,se as hte,sf as cC,sg as xre,sh as aw,si as YC,sj as Rae,sl as gR,ta as YJ,tb as j6,te as gte,tf as Doe,tg as lo,ti as sw,tk as Kae,ua as K6,ue as bte,uh as Mre,ui as dae,uk as Vae,va as jJ,vb as Nb,vd as bee,ve as Ur,vf as gB,vg as yre,vi as cae,w as kJ,wa as qJ,wb as Bh,we as us,wg as vre,wi as a1,wk as Yae,x as pd,xa as l_,xb as Qs,xe as Vb,xg as kre,xh as zre,xi as Zh,xk as Jh,y as Pb,ya as d_,ye as wte,yi as pae,yj as oR,yk as mw,zb as p_,zc as aee,zd as wee,zf as Joe,zh as Wre,zi as mae,zj as ul,zk as jae}from"./chunks/chunk-A453E6SC.js";import{d as Z6,h as DQ}from"./chunks/chunk-KDDW7HM7.js";import{$b as JX,$c as Ue,$d as CZ,$e as dn,A as Mr,Ae as BP,Ah as Fh,Ai as DC,B as La,Ba as AX,Bb as zX,Bd as EZ,Bf as QZ,Bh as s_,Bi as MC,C as _n,Ca as Cn,Cf as R2,Cg as lJ,Ch as Js,Ci as tr,Db as SP,Dd as PZ,Df as zP,Dg as dJ,Dh as W6,Di as Rre,E as Zn,Ea as vP,Ee as nu,Ef as L6,Eg as cJ,Eh as su,Ei as Ore,Fa as IX,Fc as CP,Fd as Jn,Fe as HZ,Ff as WP,Fg as pJ,Fh as U6,Fi as Nre,Ga as Ph,Gb as WX,Gc as RP,Gd as ii,Ge as DZ,Gf as ic,H as w6,Ha as _h,Hb as Rh,Hc as S6,Hd as Ie,He as MZ,Hf as Dp,Hh as zJ,Hi as Ou,I as x6,Ib as ac,Ic as cZ,Id as _i,Ie as zZ,Ih as Cb,Ii as die,Jb as fb,Jc as bb,Jd as tt,Je as kb,Jh as WJ,K as SX,Kb as id,Kc as wb,Kg as mJ,Lb as Oh,Lc as pZ,Mb as Qm,Mc as mZ,Md as mt,N as TX,Na as FX,Nb as UX,Nc as T6,Oa as BX,Ob as zr,Oc as uZ,Of as eJ,Og as uJ,Pa as HX,Pb as cr,Pc as xb,Pd as Ge,Pe as WZ,Qb as GX,Qc as fZ,Qf as UP,R as y6,Rb as $X,Rc as T2,Rd as Ia,Sb as KX,Sd as _Z,Ta as DX,Tb as VX,Tc as hZ,Td as ct,Te as _2,U as EX,Ub as TP,Uc as gZ,Ud as yb,Ue as HP,Uf as tJ,Vb as EP,Vc as bZ,Ve as UZ,Vf as GP,Vg as Zs,W as Le,Wb as YX,Wc as wZ,Wd as NP,We as DP,Wg as xJ,Wh as OQ,X as fe,Xb as jX,Xc as xZ,Xd as LP,Xe as GZ,Xg as JP,Yb as qX,Yc as $e,Yd as dd,Ye as $Z,Z as PX,Zb as XX,Zc as Rt,Ze as Qn,_b as ZX,_c as Vs,_e as KZ,aa as _X,ac as S2,ad as ht,b as Tr,bc as QX,bd as E6,bg as A6,bh as Eb,bi as cu,c as y2,cc as eu,cd as yZ,cf as VZ,ch as yJ,ci as NQ,da as ub,dc as eZ,dd as go,de as AP,dh as QP,di as si,e as bP,ea as CX,ec as tZ,ee as ou,eh as a_,f as rc,fa as RX,fc as oZ,fd as ld,ff as YZ,fh as LJ,g as v2,ga as yP,gb as ai,gd as tu,ge as IP,gf as jZ,gh as H6,hc as sd,hd as Aa,he as E2,hh as D6,ic as hb,id as _o,if as Hp,ih as M6,ja as OX,jc as gb,jd as vZ,je as _6,jf as R6,jh as AJ,ji as ud,kc as nZ,ke as C6,kf as MP,kh as IJ,ki as gc,l as g6,lc as rZ,le as RZ,lf as cd,lg as oJ,lh as FJ,li as K2,m as mb,mb as Jm,mc as aZ,me as OZ,mf as Lh,mh as BJ,mi as aC,nc as k6,nd as kZ,ne as NZ,nh as HJ,ni as mB,ob as MX,oc as iZ,od as Be,of as C2,og as nJ,oh as z6,oi as voe,p as b6,pb as Ch,pe as FP,pf as js,ph as DJ,qa as NX,qb as k2,qc as PP,qd as Nh,qe as LZ,qf as Sb,qi as Xb,r as wP,re as vb,rf as N6,rg as rJ,s as Bp,sa as v6,sg as aJ,sh as MJ,t as xP,tc as sZ,u as ft,ub as Ks,ue as AZ,ug as iJ,v as kX,vc as cs,ve as IZ,vf as XZ,w as Vt,wa as LX,wd as OP,we as FZ,x as Gs,xc as lZ,xd as P6,xf as ZZ,xh as i_,y as Xo,yb as kP,yc as _P,yd as SZ,ye as P2,yf as Ah,yg as sJ,z as Lt,za as Po,zc as dZ,zd as TZ,ze as BZ,zf as JZ,zg as I6,zh as ma,zi as t1}from"./chunks/chunk-5NY7QUSW.js";import{a as $s}from"./chunks/chunk-3SSNRXHF.js";import{a as Lte,c as Ate}from"./chunks/chunk-MMTJNMVZ.js";import{a as Pn,b as k8e}from"./chunks/chunk-Y6SLVHK3.js";var xh=Pn(eb=>{"use strict";var Fj,lCt=[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];eb.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};eb.getSymbolTotalCodewords=function(t){return lCt[t]};eb.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};eb.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Fj=t};eb.isKanjiModeEnabled=function(){return typeof Fj<"u"};eb.toSJIS=function(t){return Fj(t)}});var S4=Pn(ed=>{"use strict";ed.L={bit:1};ed.M={bit:0};ed.Q={bit:3};ed.H={bit:2};function dCt(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return ed.L;case"m":case"medium":return ed.M;case"q":case"quartile":return ed.Q;case"h":case"high":return ed.H;default:throw new Error("Unknown EC Level: "+e)}}ed.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};ed.from=function(t,o){if(ed.isValid(t))return t;try{return dCt(t)}catch{return o}}});var BBe=Pn((YOn,FBe)=>{"use strict";function IBe(){this.buffer=[],this.length=0}IBe.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++}};FBe.exports=IBe});var DBe=Pn((jOn,HBe)=>{"use strict";function KE(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)}KE.prototype.set=function(e,t,o,n){let r=e*this.size+t;this.data[r]=o,n&&(this.reservedBit[r]=!0)};KE.prototype.get=function(e,t){return this.data[e*this.size+t]};KE.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};KE.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};HBe.exports=KE});var MBe=Pn(T4=>{"use strict";var cCt=xh().getSymbolSize;T4.getRowColCoords=function(t){if(t===1)return[];let o=Math.floor(t/7)+2,n=cCt(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()};T4.getPositions=function(t){let o=[],n=T4.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 UBe=Pn(WBe=>{"use strict";var pCt=xh().getSymbolSize,zBe=7;WBe.getPositions=function(t){let o=pCt(t);return[[0,0],[o-zBe,0],[0,o-zBe]]}});var GBe=Pn(rn=>{"use strict";rn.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var tb={N1:3,N2:3,N3:40,N4:10};rn.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};rn.from=function(t){return rn.isValid(t)?parseInt(t,10):void 0};rn.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+=tb.N1+(r-5)),i=c,r=1),c=t.get(d,l),c===s?a++:(a>=5&&(n+=tb.N1+(a-5)),s=c,a=1)}r>=5&&(n+=tb.N1+(r-5)),a>=5&&(n+=tb.N1+(a-5))}return n};rn.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*tb.N2};rn.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*tb.N3};rn.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)*tb.N4};function mCt(e,t,o){switch(e){case rn.Patterns.PATTERN000:return(t+o)%2===0;case rn.Patterns.PATTERN001:return t%2===0;case rn.Patterns.PATTERN010:return o%3===0;case rn.Patterns.PATTERN011:return(t+o)%3===0;case rn.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2===0;case rn.Patterns.PATTERN101:return t*o%2+t*o%3===0;case rn.Patterns.PATTERN110:return(t*o%2+t*o%3)%2===0;case rn.Patterns.PATTERN111:return(t*o%3+(t+o)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}rn.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,mCt(t,a,r))};rn.getBestMask=function(t,o){let n=Object.keys(rn.Patterns).length,r=0,a=1/0;for(let i=0;i<n;i++){o(i),rn.applyMask(i,t);let s=rn.getPenaltyN1(t)+rn.getPenaltyN2(t)+rn.getPenaltyN3(t)+rn.getPenaltyN4(t);rn.applyMask(i,t),s<a&&(a=s,r=i)}return r}});var Hj=Pn(Bj=>{"use strict";var yh=S4(),E4=[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],P4=[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];Bj.getBlocksCount=function(t,o){switch(o){case yh.L:return E4[(t-1)*4+0];case yh.M:return E4[(t-1)*4+1];case yh.Q:return E4[(t-1)*4+2];case yh.H:return E4[(t-1)*4+3];default:return}};Bj.getTotalCodewordsCount=function(t,o){switch(o){case yh.L:return P4[(t-1)*4+0];case yh.M:return P4[(t-1)*4+1];case yh.Q:return P4[(t-1)*4+2];case yh.H:return P4[(t-1)*4+3];default:return}}});var $Be=Pn(C4=>{"use strict";var VE=new Uint8Array(512),_4=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)VE[o]=t,_4[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)VE[o]=VE[o-255]})();C4.log=function(t){if(t<1)throw new Error("log("+t+")");return _4[t]};C4.exp=function(t){return VE[t]};C4.mul=function(t,o){return t===0||o===0?0:VE[_4[t]+_4[o]]}});var KBe=Pn(YE=>{"use strict";var Dj=$Be();YE.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]^=Dj.mul(t[r],o[a]);return n};YE.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]^=Dj.mul(o[i],r);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};YE.generateECPolynomial=function(t){let o=new Uint8Array([1]);for(let n=0;n<t;n++)o=YE.mul(o,new Uint8Array([1,Dj.exp(n)]));return o}});var jBe=Pn((tNn,YBe)=>{"use strict";var VBe=KBe();function Mj(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Mj.prototype.initialize=function(t){this.degree=t,this.genPoly=VBe.generateECPolynomial(this.degree)};Mj.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=VBe.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};YBe.exports=Mj});var zj=Pn(qBe=>{"use strict";qBe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Wj=Pn(qm=>{"use strict";var XBe="[0-9]+",uCt="[A-Z $%*+\\-./:]+",jE="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";jE=jE.replace(/u/g,"\\u");var fCt="(?:(?![A-Z0-9 $%*+\\-./:]|"+jE+`)(?:.|[\r
|
|
1
|
+
import{$ as Up,$a as qee,$b as xu,$c as boe,$d as hne,$e as vC,$f as sR,$g as nse,A as lu,Aa as Hee,Ab as Tte,Ac as oC,Ad as xB,Ae as $h,Af as Ft,Ag as Tie,Ah as wse,B as mQ,Ba as Mb,Bb as _te,Bc as sl,Bd as Moe,Be as EB,Bf as are,Bg as bw,Bh as xse,C as WQ,Ca as I_,Cb as Cte,Cc as cB,Cd as zoe,Ce as One,Cf as ire,Cg as oH,Ch as yse,D as be,Da as eB,Db as G_,Dc as qb,Dd as Su,De as PB,Df as AB,Dg as Eie,Dh as vse,E as UQ,Ea as zb,Eb as Rte,Ec as toe,Ed as bc,Ee as fd,Ef as PC,Eg as Pie,Eh as kse,F as B2,Fa as zee,Fb as Uh,Fc as ooe,Fd as Woe,Fe as Nne,Ff as _C,Fg as nH,Fh as Sse,G as jQ,Ga as F_,Gb as ko,Gc as noe,Gd as Uoe,Ge as Lne,Gf as sre,Gg as p1,Gh as Tse,H as qQ,Ha as Wee,Hb as $_,Hc as roe,Hd as mC,He as _B,Hf as CC,Hg as _ie,Hh as Sw,I as XQ,Ia as D2,Ib as Nte,Ic as aoe,Id as Goe,Ie as Ane,If as lre,Ig as mR,Ih as Ese,J as ZQ,Ja as M2,Jb as K_,Jc as ioe,Jd as $oe,Je as Ine,Jf as IB,Jg as uR,Jh as Pse,K as T_,Ka as B_,Kb as V_,Kc as pB,Kd as Koe,Ke as Fne,Kf as RC,Kg as Cie,Kh as _se,L as JQ,La as Uee,Lb as Ite,Lc as soe,Ld as Voe,Le as Bne,Lf as dre,Lg as Rie,Lh as bd,M as QQ,Ma as Gee,Mb as xt,Mc as loe,Md as Yoe,Me as CB,Mf as FB,Mg as fR,Mh as Cse,N as eee,Na as $ee,Nb as Fte,Nc as vu,Nd as joe,Ne as Hne,Nf as cre,Ng as Oie,Nh as Nu,O as tee,Oa as Kee,Ob as N,Oc as doe,Od as qoe,Oe as Dne,Of as pre,Og as Nie,Oh as Rse,P as oee,Pa as Vee,Pb as Jo,Pc as uc,Pd as Xoe,Pe as Mne,Pf as mre,Pg as Lie,Ph as lH,Q as nee,Qa as Yee,Qb as lB,Qc as coe,Qd as Zoe,Qe as OB,Qf as ure,Qg as Aie,Qh as Ose,R as ree,Ra as z2,Rb as re,Rc as ku,Rd as ine,Re as xC,Rf as Jae,Rg as qie,Rh as Nse,S as et,Sa as W2,Sb as Dt,Sc as poe,Sd as sne,Se as yC,Sf as Qae,Sg as Xie,Sh as xR,T as J6,Ta as U2,Tb as rl,Tc as nC,Td as fC,Te as Une,Tf as eie,Tg as Zie,Th as Lse,U as Re,Ua as H_,Ub as Bte,Uc as moe,Ud as lne,Ue as Gne,Uf as tie,Ug as Jie,Uh as Ase,V as xee,Va as jee,Vb as Hte,Vc as uoe,Vd as dne,Ve as $ne,Vf as oie,Vg as Qie,Vh as m1,W as Zo,Wa as fu,Wb as al,Wc as foe,Wd as cne,We as Tu,Wf as ZB,Wg as yw,Wh as Ise,X as Tee,Xa as D_,Xb as Y_,Xc as hoe,Xd as pne,Xe as Fo,Xf as nie,Xg as ese,Xh as Fse,Y as H2,Ya as zh,Yb as Dte,Yc as Hn,Yd as mne,Ye as Jb,Yf as rie,Yg as bR,Z as lc,Za as Wh,Zb as wu,Zc as goe,Zd as une,Ze as Kne,Zf as iR,Zg as tse,_ as R_,_a as Wb,_b as il,_c as Kp,_d as fne,_e as Vne,_f as Ru,_g as ose,a as O6,aa as dc,ab as Xee,ac as zte,ad as woe,ae as gne,af as kC,ag as uw,ah as rse,b as qs,ba as cc,bb as Zee,bc as X_,bd as $2,be as bne,bf as Yne,bg as fw,bh as iH,c as Xs,ca as uu,cb as Jee,cc as Z_,cd as hc,ce as wne,cf as jne,cg as hw,ch as ase,d as Fn,da as Mh,db as Qee,dc as dB,dd as to,de as wc,df as NB,dg as gw,dh as ut,e as O2,ea as Eee,eb as mr,ec as mc,ed as rC,ee as xne,ef as Qb,eg as JB,eh as zt,f as ru,fa as O_,fb as Ub,fc as Me,fd as koe,fe as yne,ff as Kh,fg as QB,fh as Ma,g as N2,ga as Pee,gb as ete,gc as C,gd as Vp,ge as vne,gf as qne,gg as lR,gh as ro,h as fJ,ha as N_,hb as tte,hc as cn,hd as Soe,he as kne,hf as Xne,hg as aie,hh as ise,i as $P,ia as _ee,ib as ote,ic as wn,id as Mt,ie as kB,if as SC,ig as eH,ih as sse,j as Tb,ja as L_,jb as M_,jc as li,jd as Ha,je as SB,jf as Zne,jg as iie,jh as sH,k as Ih,ka as Bb,kb as nte,kc as J_,kd as uB,ke as TB,kf as Da,kg as sie,kh as lse,l as KP,la as Hb,lb as tB,lc as Wte,ld as iC,le as hC,lf as ll,lg as lie,lh as dse,m as VP,ma as Cee,mb as rte,mc as Ute,md as Toe,me as gC,mf as Ke,mg as cie,mh as cse,n as YP,na as Ree,nb as G2,nc as Gte,nd as Eoe,ne as bC,nf as Eu,ng as pie,nh as pse,o as jP,oa as Db,ob as ate,oc as $te,od as sC,oe as wC,of as Jne,og as mie,oh as hl,p as qP,pa as Oee,pb as ite,pc as Kte,pd as lC,pe as Sne,pf as Qne,pg as uie,ph as mse,q as XP,qa as Nee,qb as ste,qc as Vte,qd as Poe,qe as Tne,qf as ere,qg as fie,qh as vw,r as hJ,ra as Lee,rb as rB,rc as Yte,rd as _oe,re as Ene,rf as tre,rg as hie,rh as use,s as bJ,sa as ol,sb as W_,sc as jte,sd as Coe,se as Pne,sf as Vh,sg as gie,sh as fse,t as wJ,ta as A_,tb as U_,tc as $p,td as Roe,te as X2,tf as TC,tg as bie,th as wR,u as e_,ua as Gp,ub as kte,uc as Q_,ud as V2,ue as Z2,uf as ore,ug as wie,uh as kw,v as t_,va as ms,vb as Ste,vc as qte,vd as Y2,ve as J2,vf as e1,vg as xie,vh as hse,w as JJ,wa as Aee,wb as Yb,wc as Xte,wd as bB,we as Q2,wf as Yh,wg as tH,wh as gse,x as QJ,xa as Iee,xb as aB,xc as Jte,xd as wB,xe as _ne,xf as LB,xg as kie,xh as bse,y as c_,ya as Fee,yb as iB,yc as Qte,yd as Zb,ye as Cne,yf as nre,yg as pR,yh as Zp,z as V6,za as Bee,zb as sB,zc as eoe,zd as pC,ze as Rne,zf as rre,zg as Sie,zh as eg}from"./chunks/chunk-EVIGYNEU.js";import{$ as Qp,$a as pde,A as Ole,Aa as g1,B as Nle,C as Lle,Ca as Jle,D as Ale,Da as BR,E as ER,Ea as HR,F as Rw,Fa as Qle,G as PR,Ga as DR,H as Ile,Ha as Bu,I as _R,Ia as Bw,J as CR,Ja as Sc,K as Fle,Ka as MR,L as Ow,La as Hw,M as Nw,Ma as zR,N as RR,Na as WR,O as Ble,Oa as em,P as Hle,Pa as bH,Q as OR,Qa as ede,R as Au,Ra as tde,S as Dle,Sa as ode,T as NR,Ta as nde,U as Lw,Ua as rde,V as Mle,Va as ade,W as og,Wa as ide,X as zle,Xa as sde,Y as Iu,Ya as lde,Z as Aw,Za as dde,_ as LR,_a as cde,a as ba,aa as Wle,ab as mde,b as wle,ba as Ule,bb as UR,ca as Gle,cb as Hu,da as AR,db as Tc,ea as $le,eb as ude,f as Jp,fa as Kle,fb as ng,g as SR,ga as h1,gb as fde,h as xle,ha as IR,hb as wH,i as yle,ia as Vle,ib as hde,j as fH,ja as Iw,jb as gde,k as vle,ka as Yle,kb as GR,l as kle,lb as bde,m as Sle,mb as bs,n as Tle,na as jle,nb as $R,o as TR,ob as Dw,p as hH,pb as wde,q as Ele,qa as qle,qb as xde,r as wa,ra as Xle,rb as tm,s as Ple,sa as Fu,sb as xH,t as _le,ta as At,u as Lu,ua as Zle,ub as yH,v as Cle,vb as Ec,w as kc,wa as gH,wb as Pc,x as f1,xa as Fw,xb as KR,y as Rle,ya as Mn,yb as rg,z as Cw,za as FR,zb as $r}from"./chunks/chunk-3EWOQHCY.js";import{A as Yse,B as jse,C as qse,D as Xse,E as Zse,F as Jse,G as Qse,H as ele,I as tle,J as pH,K as ole,L as mH,M as xn,N as nle,O as Ai,P as rle,Q as ale,R as kR,S as ur,T as ile,U as sle,V as lle,W as dle,X as Ew,Y as cle,b as yR,ca as Pw,da as Bo,e as u1,ea as tg,f as Tw,fa as ple,ga as _w,h as Dn,ha as Ne,i as vc,ia as mle,j as Bse,ja as uH,k as Hse,ka as ule,l as Dse,la as fle,m as Mse,ma as hle,n as zse,na as gle,o as dH,oa as ble,p as gl,q as Wse,r as Use,s as lt,t as Li,u as Gse,v as $se,w as cH,x as Kse,y as vR,z as Vse}from"./chunks/chunk-5KEEVCY6.js";import{$ as BQ,A as CQ,B as A2,C as RQ,F as Lb,G as du,H as LQ,I as zp,L as AQ,M as Bn,N as b_,O as Jt,P as z,Q as q6,S as pu,T as Ab,U as IQ,V as X6,W as FQ,X as Ib,aa as oB,b as eQ,ba as gu,c as tQ,ca as mte,da as Kb,ea as ute,fa as nl,g as oQ,ga as Ote,ha as He,i as uQ,ia as Qh,j as h_,k as g_,ka as yie,l as fQ,la as dR,m as hQ,ma as vie,n as gQ,na as cR,o as bQ,p as wQ,q as xQ,r as yQ,s as vQ,u as kQ,v as SQ,w as TQ,x as EQ,y as PQ,z as _Q}from"./chunks/chunk-UA7ENMMT.js";import{a as Ni,b as xoe,c as fc,e as fs,h as EC,j as ga,k as jie}from"./chunks/chunk-F24QIWKG.js";import{a as HQ,b as MQ,e as zQ}from"./chunks/chunk-EN6NBFZO.js";import{$b as Ri,$d as Mee,$e as Gh,$f as OC,$g as _re,$h as KC,$i as _ae,$k as oo,A as iu,Ae as xte,Af as uC,Ah as iw,Ai as jC,Aj as nR,Ak as qae,Bf as Qoe,Bh as fa,Bi as uae,Bk as Xae,Cb as vo,Ce as yte,Cf as ene,Ch as MB,Ci as qC,Cj as jB,Ck as Zae,D as ge,Db as Hh,Df as hs,Dh as Ure,Di as fae,Dj as xc,E as Ci,Eb as m_,Ee as vte,Ef as tne,Eh as Gre,Ei as hae,F as SJ,Fb as Wr,Fd as __,Ff as one,Fh as zB,Fi as i1,Fj as Oae,Gf as j2,Gh as WB,Gi as s1,Gj as Nae,H as TJ,Hc as Q6,He as Ete,Hf as nne,Hh as UB,Hi as XC,Hj as Lae,Ib as Mp,Ic as iee,If as rne,Ih as o1,Ii as gae,Ij as Aae,Jb as L2,Jc as see,Je as Pte,Jf as ane,Jh as GB,Ji as bae,Jj as Iae,Ka as XJ,Kb as Dh,Ke as pc,Kh as n1,Ki as wae,L as EJ,Lb as u_,Lc as E_,Lh as Pu,Li as YB,Lj as Fae,Lk as Iie,Ma as ZJ,Mb as f_,Mc as P_,Me as U,Mh as $re,Mi as xae,Mj as Bae,N as PJ,Nc as mu,Ne as j_,Ng as cl,Nh as Kre,Ni as yae,Nj as yc,Nk as Fie,O as _J,Oc as lee,Oe as Rn,Og as Sre,Oh as _u,Oi as vae,Oj as Hae,Pa as Fa,Pc as dee,Pe as jb,Pg as Tre,Ph as UC,Pi as l1,Pj as Dae,Qa as Ba,Qe as Mte,Qg as IC,Qh as Vre,Qi as kae,Qj as Mae,Qk as Bie,Ra as nQ,Rd as yee,Re as q_,Rg as tw,Rh as Yre,Ri as Sae,Rj as d1,S as o_,Sa as rQ,Sd as tl,Se as bu,Sf as yB,Sg as Ere,Sh as Cu,Si as Pr,T as n_,Ta as aQ,Td as vee,Te as Yt,Tf as vB,Tg as qp,Th as jre,Ti as ZC,Tj as zae,U as CJ,Ua as iQ,Ud as Fb,Uf as q2,Ug as ow,Uh as r1,Ui as Tae,V as RJ,Ve as yu,Vf as gs,Vg as FC,Vh as $B,Vi as JC,W as _b,Wa as sQ,Wd as C_,We as eC,Wf as RB,Wg as HB,Wh as KB,Wi as Eae,Wj as c1,X as OJ,Xb as I2,Xd as kee,Xe as tC,Xf as zne,Xg as pl,Xh as GC,Ya as Y6,Yb as w_,Yd as See,Yf as Wne,Yg as er,Yh as qre,Yi as Pae,Zb as x_,Ze as Zte,Zg as Pre,Zh as $C,Zi as di,_ as NJ,_b as md,_c as cee,_d as Dee,_e as yoe,_f as ew,_i as QC,_k as Hie,a as Ys,ac as GQ,af as Ooe,ag as le,ah as Cre,ai as Xre,aj as lw,al as ww,b as qZ,ba as r_,bc as F2,be as lte,bg as ne,bh as BC,bi as Zre,bj as _r,bk as Wae,bl as xw,c as gJ,cc as ps,cd as pee,cf as Noe,cg as Yp,ch as HC,ci as Jre,ck as oe,cl as fl,d as ZP,dd as mee,de as hu,df as dC,dg as Oe,dh as Lre,di as qh,dj as nn,dk as ha,dl as no,ec as el,ed as uee,ee as dte,eg as fre,eh as Are,ei as VC,ek as Uae,el as Die,fc as $Q,fd as fee,fe as Gb,ff as Loe,fg as NC,fh as Ire,fi as Xh,fj as dw,fk as Gae,fl as Mie,g as m,gc as Wp,ge as $b,gf as Aoe,gg as dl,gi as Qre,gj as Cae,gk as Xp,gl as zie,h as pr,ha as B6,hc as y_,he as cte,hf as Ioe,hg as LC,hh as zC,hi as eae,hj as eR,hl as Wie,ic as KQ,ie as pte,if as Foe,ig as AC,ih as Fre,ij as tR,ik as qB,il as Uie,j as au,jc as v_,je as z_,jg as jh,jh as DB,ji as tae,jj as cw,jk as pw,jl as hR,k as sc,ka as UJ,kc as ua,ke as fte,kg as hd,kh as nw,ki as oae,kj as W,kk as Vo,kl as Gie,la as GJ,lb as lQ,lc as k_,ld as Oi,lf as Boe,lg as hre,lh as rw,li as nae,lj as j,lk as rR,ll as $ie,m as vJ,ma as Rb,mc as VQ,md as hee,mg as jp,mh as WC,mi as rae,mj as Q,mk as $ae,ml as Kie,na as $J,nb as dQ,nc as YQ,ng as gd,nh as Bre,ni as aae,nj as Se,nk as rt,oa as Ob,ob as cQ,oc as S_,oe as nB,of as fB,og as gre,oh as Hre,oi as VB,oj as qe,ok as aR,ol as Vie,pa as G6,pf as hB,pg as BB,ph as Dre,pi as iae,pj as Je,pk as XB,pl as Yie,qa as KJ,qd as gee,qf as Hoe,qg as bre,qi as sae,qk as Gr,ql as rH,r as F6,ra as $6,rf as Er,rg as wre,ri as lae,rj as ml,rl as aH,sa as VJ,sb as pQ,se as hte,sf as cC,sg as xre,sh as aw,si as YC,sj as Rae,sl as gR,ta as YJ,tb as j6,te as gte,tf as Doe,tg as lo,ti as sw,tk as Kae,ua as K6,ue as bte,uh as Mre,ui as dae,uk as Vae,va as jJ,vb as Nb,vd as bee,ve as Ur,vf as gB,vg as yre,vi as cae,w as kJ,wa as qJ,wb as Bh,we as us,wg as vre,wi as a1,wk as Yae,x as pd,xa as l_,xb as Qs,xe as Vb,xg as kre,xh as zre,xi as Zh,xk as Jh,y as Pb,ya as d_,ye as wte,yi as pae,yj as oR,yk as mw,zb as p_,zc as aee,zd as wee,zf as Joe,zh as Wre,zi as mae,zj as ul,zk as jae}from"./chunks/chunk-A453E6SC.js";import{d as Z6,h as DQ}from"./chunks/chunk-KDDW7HM7.js";import{$b as JX,$c as Ue,$d as CZ,$e as dn,A as Mr,Ae as BP,Ah as Fh,Ai as DC,B as La,Ba as AX,Bb as zX,Bd as EZ,Bf as QZ,Bh as s_,Bi as MC,C as _n,Ca as Cn,Cf as R2,Cg as lJ,Ch as Js,Ci as tr,Db as SP,Dd as PZ,Df as zP,Dg as dJ,Dh as W6,Di as Rre,E as Zn,Ea as vP,Ee as nu,Ef as L6,Eg as cJ,Eh as su,Ei as Ore,Fa as IX,Fc as CP,Fd as Jn,Fe as HZ,Ff as WP,Fg as pJ,Fh as U6,Fi as Nre,Ga as Ph,Gb as WX,Gc as RP,Gd as ii,Ge as DZ,Gf as ic,H as w6,Ha as _h,Hb as Rh,Hc as S6,Hd as Ie,He as MZ,Hf as Dp,Hh as zJ,Hi as Ou,I as x6,Ib as ac,Ic as cZ,Id as _i,Ie as zZ,Ih as Cb,Ii as die,Jb as fb,Jc as bb,Jd as tt,Je as kb,Jh as WJ,K as SX,Kb as id,Kc as wb,Kg as mJ,Lb as Oh,Lc as pZ,Mb as Qm,Mc as mZ,Md as mt,N as TX,Na as FX,Nb as UX,Nc as T6,Oa as BX,Ob as zr,Oc as uZ,Of as eJ,Og as uJ,Pa as HX,Pb as cr,Pc as xb,Pd as Ge,Pe as WZ,Qb as GX,Qc as fZ,Qf as UP,R as y6,Rb as $X,Rc as T2,Rd as Ia,Sb as KX,Sd as _Z,Ta as DX,Tb as VX,Tc as hZ,Td as ct,Te as _2,U as EX,Ub as TP,Uc as gZ,Ud as yb,Ue as HP,Uf as tJ,Vb as EP,Vc as bZ,Ve as UZ,Vf as GP,Vg as Zs,W as Le,Wb as YX,Wc as wZ,Wd as NP,We as DP,Wg as xJ,Wh as OQ,X as fe,Xb as jX,Xc as xZ,Xd as LP,Xe as GZ,Xg as JP,Yb as qX,Yc as $e,Yd as dd,Ye as $Z,Z as PX,Zb as XX,Zc as Rt,Ze as Qn,_b as ZX,_c as Vs,_e as KZ,aa as _X,ac as S2,ad as ht,b as Tr,bc as QX,bd as E6,bg as A6,bh as Eb,bi as cu,c as y2,cc as eu,cd as yZ,cf as VZ,ch as yJ,ci as NQ,da as ub,dc as eZ,dd as go,de as AP,dh as QP,di as si,e as bP,ea as CX,ec as tZ,ee as ou,eh as a_,f as rc,fa as RX,fc as oZ,fd as ld,ff as YZ,fh as LJ,g as v2,ga as yP,gb as ai,gd as tu,ge as IP,gf as jZ,gh as H6,hc as sd,hd as Aa,he as E2,hh as D6,ic as hb,id as _o,if as Hp,ih as M6,ja as OX,jc as gb,jd as vZ,je as _6,jf as R6,jh as AJ,ji as ud,kc as nZ,ke as C6,kf as MP,kh as IJ,ki as gc,l as g6,lc as rZ,le as RZ,lf as cd,lg as oJ,lh as FJ,li as K2,m as mb,mb as Jm,mc as aZ,me as OZ,mf as Lh,mh as BJ,mi as aC,nc as k6,nd as kZ,ne as NZ,nh as HJ,ni as mB,ob as MX,oc as iZ,od as Be,of as C2,og as nJ,oh as z6,oi as voe,p as b6,pb as Ch,pe as FP,pf as js,ph as DJ,qa as NX,qb as k2,qc as PP,qd as Nh,qe as LZ,qf as Sb,qi as Xb,r as wP,re as vb,rf as N6,rg as rJ,s as Bp,sa as v6,sg as aJ,sh as MJ,t as xP,tc as sZ,u as ft,ub as Ks,ue as AZ,ug as iJ,v as kX,vc as cs,ve as IZ,vf as XZ,w as Vt,wa as LX,wd as OP,we as FZ,x as Gs,xc as lZ,xd as P6,xf as ZZ,xh as i_,y as Xo,yb as kP,yc as _P,yd as SZ,ye as P2,yf as Ah,yg as sJ,z as Lt,za as Po,zc as dZ,zd as TZ,ze as BZ,zf as JZ,zg as I6,zh as ma,zi as t1}from"./chunks/chunk-5NY7QUSW.js";import{a as $s}from"./chunks/chunk-3SSNRXHF.js";import{a as Lte,c as Ate}from"./chunks/chunk-MMTJNMVZ.js";import{a as Pn,b as k8e}from"./chunks/chunk-Y6SLVHK3.js";var xh=Pn(eb=>{"use strict";var Fj,lCt=[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];eb.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};eb.getSymbolTotalCodewords=function(t){return lCt[t]};eb.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};eb.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Fj=t};eb.isKanjiModeEnabled=function(){return typeof Fj<"u"};eb.toSJIS=function(t){return Fj(t)}});var S4=Pn(ed=>{"use strict";ed.L={bit:1};ed.M={bit:0};ed.Q={bit:3};ed.H={bit:2};function dCt(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return ed.L;case"m":case"medium":return ed.M;case"q":case"quartile":return ed.Q;case"h":case"high":return ed.H;default:throw new Error("Unknown EC Level: "+e)}}ed.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};ed.from=function(t,o){if(ed.isValid(t))return t;try{return dCt(t)}catch{return o}}});var BBe=Pn((YOn,FBe)=>{"use strict";function IBe(){this.buffer=[],this.length=0}IBe.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++}};FBe.exports=IBe});var DBe=Pn((jOn,HBe)=>{"use strict";function KE(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)}KE.prototype.set=function(e,t,o,n){let r=e*this.size+t;this.data[r]=o,n&&(this.reservedBit[r]=!0)};KE.prototype.get=function(e,t){return this.data[e*this.size+t]};KE.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};KE.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};HBe.exports=KE});var MBe=Pn(T4=>{"use strict";var cCt=xh().getSymbolSize;T4.getRowColCoords=function(t){if(t===1)return[];let o=Math.floor(t/7)+2,n=cCt(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()};T4.getPositions=function(t){let o=[],n=T4.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 UBe=Pn(WBe=>{"use strict";var pCt=xh().getSymbolSize,zBe=7;WBe.getPositions=function(t){let o=pCt(t);return[[0,0],[o-zBe,0],[0,o-zBe]]}});var GBe=Pn(rn=>{"use strict";rn.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var tb={N1:3,N2:3,N3:40,N4:10};rn.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};rn.from=function(t){return rn.isValid(t)?parseInt(t,10):void 0};rn.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+=tb.N1+(r-5)),i=c,r=1),c=t.get(d,l),c===s?a++:(a>=5&&(n+=tb.N1+(a-5)),s=c,a=1)}r>=5&&(n+=tb.N1+(r-5)),a>=5&&(n+=tb.N1+(a-5))}return n};rn.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*tb.N2};rn.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*tb.N3};rn.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)*tb.N4};function mCt(e,t,o){switch(e){case rn.Patterns.PATTERN000:return(t+o)%2===0;case rn.Patterns.PATTERN001:return t%2===0;case rn.Patterns.PATTERN010:return o%3===0;case rn.Patterns.PATTERN011:return(t+o)%3===0;case rn.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2===0;case rn.Patterns.PATTERN101:return t*o%2+t*o%3===0;case rn.Patterns.PATTERN110:return(t*o%2+t*o%3)%2===0;case rn.Patterns.PATTERN111:return(t*o%3+(t+o)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}rn.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,mCt(t,a,r))};rn.getBestMask=function(t,o){let n=Object.keys(rn.Patterns).length,r=0,a=1/0;for(let i=0;i<n;i++){o(i),rn.applyMask(i,t);let s=rn.getPenaltyN1(t)+rn.getPenaltyN2(t)+rn.getPenaltyN3(t)+rn.getPenaltyN4(t);rn.applyMask(i,t),s<a&&(a=s,r=i)}return r}});var Hj=Pn(Bj=>{"use strict";var yh=S4(),E4=[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],P4=[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];Bj.getBlocksCount=function(t,o){switch(o){case yh.L:return E4[(t-1)*4+0];case yh.M:return E4[(t-1)*4+1];case yh.Q:return E4[(t-1)*4+2];case yh.H:return E4[(t-1)*4+3];default:return}};Bj.getTotalCodewordsCount=function(t,o){switch(o){case yh.L:return P4[(t-1)*4+0];case yh.M:return P4[(t-1)*4+1];case yh.Q:return P4[(t-1)*4+2];case yh.H:return P4[(t-1)*4+3];default:return}}});var $Be=Pn(C4=>{"use strict";var VE=new Uint8Array(512),_4=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)VE[o]=t,_4[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)VE[o]=VE[o-255]})();C4.log=function(t){if(t<1)throw new Error("log("+t+")");return _4[t]};C4.exp=function(t){return VE[t]};C4.mul=function(t,o){return t===0||o===0?0:VE[_4[t]+_4[o]]}});var KBe=Pn(YE=>{"use strict";var Dj=$Be();YE.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]^=Dj.mul(t[r],o[a]);return n};YE.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]^=Dj.mul(o[i],r);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};YE.generateECPolynomial=function(t){let o=new Uint8Array([1]);for(let n=0;n<t;n++)o=YE.mul(o,new Uint8Array([1,Dj.exp(n)]));return o}});var jBe=Pn((tNn,YBe)=>{"use strict";var VBe=KBe();function Mj(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Mj.prototype.initialize=function(t){this.degree=t,this.genPoly=VBe.generateECPolynomial(this.degree)};Mj.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=VBe.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};YBe.exports=Mj});var zj=Pn(qBe=>{"use strict";qBe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Wj=Pn(qm=>{"use strict";var XBe="[0-9]+",uCt="[A-Z $%*+\\-./:]+",jE="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";jE=jE.replace(/u/g,"\\u");var fCt="(?:(?![A-Z0-9 $%*+\\-./:]|"+jE+`)(?:.|[\r
|
|
2
2
|
]))+`;qm.KANJI=new RegExp(jE,"g");qm.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");qm.BYTE=new RegExp(fCt,"g");qm.NUMERIC=new RegExp(XBe,"g");qm.ALPHANUMERIC=new RegExp(uCt,"g");var hCt=new RegExp("^"+jE+"$"),gCt=new RegExp("^"+XBe+"$"),bCt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");qm.testKanji=function(t){return hCt.test(t)};qm.testNumeric=function(t){return gCt.test(t)};qm.testAlphanumeric=function(t){return bCt.test(t)}});var vh=Pn(kr=>{"use strict";var wCt=zj(),Uj=Wj();kr.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};kr.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};kr.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};kr.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};kr.MIXED={bit:-1};kr.getCharCountIndicator=function(t,o){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!wCt.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?t.ccBits[0]:o<27?t.ccBits[1]:t.ccBits[2]};kr.getBestModeForData=function(t){return Uj.testNumeric(t)?kr.NUMERIC:Uj.testAlphanumeric(t)?kr.ALPHANUMERIC:Uj.testKanji(t)?kr.KANJI:kr.BYTE};kr.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};kr.isValid=function(t){return t&&t.bit&&t.ccBits};function xCt(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return kr.NUMERIC;case"alphanumeric":return kr.ALPHANUMERIC;case"kanji":return kr.KANJI;case"byte":return kr.BYTE;default:throw new Error("Unknown mode: "+e)}}kr.from=function(t,o){if(kr.isValid(t))return t;try{return xCt(t)}catch{return o}}});var tHe=Pn(ob=>{"use strict";var R4=xh(),yCt=Hj(),ZBe=S4(),kh=vh(),Gj=zj(),QBe=7973,JBe=R4.getBCHDigit(QBe);function vCt(e,t,o){for(let n=1;n<=40;n++)if(t<=ob.getCapacity(n,o,e))return n}function eHe(e,t){return kh.getCharCountIndicator(e,t)+4}function kCt(e,t){let o=0;return e.forEach(function(n){let r=eHe(n.mode,t);o+=r+n.getBitsLength()}),o}function SCt(e,t){for(let o=1;o<=40;o++)if(kCt(e,o)<=ob.getCapacity(o,t,kh.MIXED))return o}ob.from=function(t,o){return Gj.isValid(t)?parseInt(t,10):o};ob.getCapacity=function(t,o,n){if(!Gj.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=kh.BYTE);let r=R4.getSymbolTotalCodewords(t),a=yCt.getTotalCodewordsCount(t,o),i=(r-a)*8;if(n===kh.MIXED)return i;let s=i-eHe(n,t);switch(n){case kh.NUMERIC:return Math.floor(s/10*3);case kh.ALPHANUMERIC:return Math.floor(s/11*2);case kh.KANJI:return Math.floor(s/13);case kh.BYTE:default:return Math.floor(s/8)}};ob.getBestVersionForData=function(t,o){let n,r=ZBe.from(o,ZBe.M);if(Array.isArray(t)){if(t.length>1)return SCt(t,r);if(t.length===0)return 1;n=t[0]}else n=t;return vCt(n.mode,n.getLength(),r)};ob.getEncodedBits=function(t){if(!Gj.isValid(t)||t<7)throw new Error("Invalid QR Code version");let o=t<<12;for(;R4.getBCHDigit(o)-JBe>=0;)o^=QBe<<R4.getBCHDigit(o)-JBe;return t<<12|o}});var aHe=Pn(rHe=>{"use strict";var $j=xh(),nHe=1335,TCt=21522,oHe=$j.getBCHDigit(nHe);rHe.getEncodedBits=function(t,o){let n=t.bit<<3|o,r=n<<10;for(;$j.getBCHDigit(r)-oHe>=0;)r^=nHe<<$j.getBCHDigit(r)-oHe;return(n<<10|r)^TCt}});var sHe=Pn((sNn,iHe)=>{"use strict";var ECt=vh();function Jv(e){this.mode=ECt.NUMERIC,this.data=e.toString()}Jv.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};Jv.prototype.getLength=function(){return this.data.length};Jv.prototype.getBitsLength=function(){return Jv.getBitsLength(this.data.length)};Jv.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))};iHe.exports=Jv});var dHe=Pn((lNn,lHe)=>{"use strict";var PCt=vh(),Kj=["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 Qv(e){this.mode=PCt.ALPHANUMERIC,this.data=e}Qv.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Qv.prototype.getLength=function(){return this.data.length};Qv.prototype.getBitsLength=function(){return Qv.getBitsLength(this.data.length)};Qv.prototype.write=function(t){let o;for(o=0;o+2<=this.data.length;o+=2){let n=Kj.indexOf(this.data[o])*45;n+=Kj.indexOf(this.data[o+1]),t.put(n,11)}this.data.length%2&&t.put(Kj.indexOf(this.data[o]),6)};lHe.exports=Qv});var pHe=Pn((dNn,cHe)=>{"use strict";var _Ct=vh();function e2(e){this.mode=_Ct.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}e2.getBitsLength=function(t){return t*8};e2.prototype.getLength=function(){return this.data.length};e2.prototype.getBitsLength=function(){return e2.getBitsLength(this.data.length)};e2.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)};cHe.exports=e2});var uHe=Pn((cNn,mHe)=>{"use strict";var CCt=vh(),RCt=xh();function t2(e){this.mode=CCt.KANJI,this.data=e}t2.getBitsLength=function(t){return t*13};t2.prototype.getLength=function(){return this.data.length};t2.prototype.getBitsLength=function(){return t2.getBitsLength(this.data.length)};t2.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let o=RCt.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)}};mHe.exports=t2});var fHe=Pn((pNn,Vj)=>{"use strict";var qE={single_source_shortest_paths:function(e,t,o){var n={},r={};r[t]=0;var a=qE.PriorityQueue.make();a.push(t,0);for(var i,s,l,d,c,p,f,u,h;!a.empty();){i=a.pop(),s=i.value,d=i.cost,c=e[s]||{};for(l in c)c.hasOwnProperty(l)&&(p=c[l],f=d+p,u=r[l],h=typeof r[l]>"u",(h||u>f)&&(r[l]=f,a.push(l,f),n[l]=s))}if(typeof o<"u"&&typeof r[o]>"u"){var g=["Could not find a path from ",t," to ",o,"."].join("");throw new Error(g)}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=qE.single_source_shortest_paths(e,t,o);return qE.extract_shortest_path_from_predecessor_list(n,o)},PriorityQueue:{make:function(e){var t=qE.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 Vj<"u"&&(Vj.exports=qE)});var kHe=Pn(o2=>{"use strict";var Ao=vh(),bHe=sHe(),wHe=dHe(),xHe=pHe(),yHe=uHe(),XE=Wj(),O4=xh(),OCt=fHe();function hHe(e){return unescape(encodeURIComponent(e)).length}function ZE(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 vHe(e){let t=ZE(XE.NUMERIC,Ao.NUMERIC,e),o=ZE(XE.ALPHANUMERIC,Ao.ALPHANUMERIC,e),n,r;return O4.isKanjiModeEnabled()?(n=ZE(XE.BYTE,Ao.BYTE,e),r=ZE(XE.KANJI,Ao.KANJI,e)):(n=ZE(XE.BYTE_KANJI,Ao.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 Yj(e,t){switch(t){case Ao.NUMERIC:return bHe.getBitsLength(e);case Ao.ALPHANUMERIC:return wHe.getBitsLength(e);case Ao.KANJI:return yHe.getBitsLength(e);case Ao.BYTE:return xHe.getBitsLength(e)}}function NCt(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 LCt(e){let t=[];for(let o=0;o<e.length;o++){let n=e[o];switch(n.mode){case Ao.NUMERIC:t.push([n,{data:n.data,mode:Ao.ALPHANUMERIC,length:n.length},{data:n.data,mode:Ao.BYTE,length:n.length}]);break;case Ao.ALPHANUMERIC:t.push([n,{data:n.data,mode:Ao.BYTE,length:n.length}]);break;case Ao.KANJI:t.push([n,{data:n.data,mode:Ao.BYTE,length:hHe(n.data)}]);break;case Ao.BYTE:t.push([{data:n.data,mode:Ao.BYTE,length:hHe(n.data)}])}}return t}function ACt(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 f=r[p];o[f]&&o[f].node.mode===d.mode?(n[f][c]=Yj(o[f].lastCount+d.length,d.mode)-Yj(o[f].lastCount,d.mode),o[f].lastCount+=d.length):(o[f]&&(o[f].lastCount=d.length),n[f][c]=Yj(d.length,d.mode)+4+Ao.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 gHe(e,t){let o,n=Ao.getBestModeForData(e);if(o=Ao.from(t,n),o!==Ao.BYTE&&o.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+Ao.toString(o)+`.
|
|
4
4
|
Suggested mode is: `+Ao.toString(n));switch(o===Ao.KANJI&&!O4.isKanjiModeEnabled()&&(o=Ao.BYTE),o){case Ao.NUMERIC:return new bHe(e);case Ao.ALPHANUMERIC:return new wHe(e);case Ao.KANJI:return new yHe(e);case Ao.BYTE:return new xHe(e)}}o2.fromArray=function(t){return t.reduce(function(o,n){return typeof n=="string"?o.push(gHe(n,null)):n.data&&o.push(gHe(n.data,n.mode)),o},[])};o2.fromString=function(t,o){let n=vHe(t,O4.isKanjiModeEnabled()),r=LCt(n),a=ACt(r,o),i=OCt.find_path(a.map,"start","end"),s=[];for(let l=1;l<i.length-1;l++)s.push(a.table[i[l]].node);return o2.fromArray(NCt(s))};o2.rawSplit=function(t){return o2.fromArray(vHe(t,O4.isKanjiModeEnabled()))}});var THe=Pn(SHe=>{"use strict";var L4=xh(),jj=S4(),ICt=BBe(),FCt=DBe(),BCt=MBe(),HCt=UBe(),Zj=GBe(),Jj=Hj(),DCt=jBe(),N4=tHe(),MCt=aHe(),zCt=vh(),qj=kHe();function WCt(e,t){let o=e.size,n=HCt.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 UCt(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 GCt(e,t){let o=BCt.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 $Ct(e,t){let o=e.size,n=N4.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 Xj(e,t,o){let n=e.size,r=MCt.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 KCt(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 VCt(e,t,o){let n=new ICt;o.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),zCt.getCharCountIndicator(l.mode,e)),l.write(n)});let r=L4.getSymbolTotalCodewords(e),a=Jj.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 YCt(n,e,t)}function YCt(e,t,o){let n=L4.getSymbolTotalCodewords(t),r=Jj.getTotalCodewordsCount(t,o),a=n-r,i=Jj.getBlocksCount(t,o),s=n%i,l=i-s,d=Math.floor(n/i),c=Math.floor(a/i),p=c+1,f=d-c,u=new DCt(f),h=0,g=new Array(i),b=new Array(i),w=0,x=new Uint8Array(e.buffer);for(let T=0;T<i;T++){let E=T<l?c:p;g[T]=x.slice(h,h+E),b[T]=u.encode(g[T]),h+=E,w=Math.max(w,E)}let v=new Uint8Array(n),S=0,k,y;for(k=0;k<w;k++)for(y=0;y<i;y++)k<g[y].length&&(v[S++]=g[y][k]);for(k=0;k<f;k++)for(y=0;y<i;y++)v[S++]=b[y][k];return v}function jCt(e,t,o,n){let r;if(Array.isArray(e))r=qj.fromArray(e);else if(typeof e=="string"){let d=t;if(!d){let c=qj.rawSplit(e);d=N4.getBestVersionForData(c,o)}r=qj.fromString(e,d||40)}else throw new Error("Invalid data");let a=N4.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
|
${v?` @keyframes storefront-cart-slide-left { from { transform: translateX(-40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
|
|
13
|
-
`:""}`}),d]})]})}let h=v=>{!f||!$he(e,!1)||v.target===v.currentTarget&&p()},g=e.height==="full",b=e.fullWidth||g,w=FKe(e),x=wM("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:g?"100%":void 0,maxHeight:e.fullWidth&&!g||w.place==="outside"?`calc(100% - ${xM}px)`:"100%",borderRadius:b?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[w.place!=="none"?Ag("button",{type:"button","aria-label":"Close",onClick:r?void 0:p,"data-popup-close":w.place,"data-popup-close-until":w.until,className:"absolute z-[5] flex h-[38px] w-[38px] items-center justify-center border border-line bg-bg font-mono text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:w.place==="outside"?{top:-IKe,right:0}:{top:12,right:12},children:"\xD7"}):null,w.until?Ag("style",{children:`@container popup-frame (min-width: ${w.until+1}px){[data-popup-close-until="${w.until}"]{display:none}}`}):null,Ag("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return Ag("div",{role:a||r?"dialog":"region","aria-modal":f?!0:void 0,"aria-label":s,"data-popup-frame":r?"inline":"live",onClick:h,className:r?"relative flex min-h-[100vh] w-full":"fixed inset-0 z-[90] flex",style:{...AKe[e.placement],background:Ghe(e.tintColor,e.tintOpacity),padding:b?0:w.place==="outside"&&e.placement.startsWith("top")?`${24+xM}px 24px 24px`:24,...w.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:x})}var HKe=25.4,bk=400,HO=152,DKe=58,Khe=HO*Math.cos(DKe*Math.PI/180),MKe=14,zKe=bk/2,WKe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function Yhe(e){let t=kc(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:WKe}function jhe(e){let t=e.rimDiameter*HKe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=HO*(e.sectionWidth/o),r=t/o;return{cy:zKe,rx:Khe,ry:HO,cxf:bk/2-n/2-MKe,dx:n,rimRx:Khe*r,rimRy:HO*r}}var ao=e=>e.toFixed(1);function DO(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${ao(r)} ${ao(a)} A${ao(e.rx)} ${ao(e.ry)} 0 0 ${o} ${ao(r)} ${ao(i)}`}function kM(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${ao(n)} ${ao(a)} L${ao(r)} ${ao(a)} A${ao(e.rx)} ${ao(e.ry)} 0 0 1 ${ao(r)} ${ao(i)} L${ao(n)} ${ao(i)} A${ao(e.rx)} ${ao(e.ry)} 0 0 0 ${ao(n)} ${ao(a)} Z`}function BO(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 qhe(e,t,o,n,r){let[a,i]=BO(e,t,n),[s,l]=BO(e,t,r),[d,c]=BO(e,o,r),[p,f]=BO(e,o,n);return`M${ao(a)} ${ao(i)} A${ao(e.rx)} ${ao(e.ry)} 0 0 1 ${ao(s)} ${ao(l)} L${ao(d)} ${ao(c)} A${ao(e.rx)} ${ao(e.ry)} 0 0 0 ${ao(p)} ${ao(f)} L${ao(a)} ${ao(i)} Z`}var Vhe=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],UKe={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}}]},GKe=[["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 Xhe(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return Vhe;for(let[o,n]of GKe)if(t.includes(` ${o} `))return UKe[n];return Vhe}var MO="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as $Ke}from"react";function Ka(e,t=/:/g){let o=$Ke().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as wk,jsx as jt,jsxs as Uc}from"react/jsx-runtime";var Ss={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},KKe=[.8,.52,.24],Zhe=.4,Jhe=.88,Qhe=.3,ege=5,tge=.3,oge=.84,VKe=7,bo=e=>Math.round(e*10)/10;function SM({size:e,type:t,className:o}){let n=Ka("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=jhe(Yhe(e)),i=kM(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Uc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${bk} ${bk}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[jt("title",{children:s}),Uc("defs",{children:[jt(jKe,{id:r}),jt("clipPath",{id:r.crown,children:jt("path",{d:i})})]}),jt("ellipse",{cx:bo(a.cxf+a.dx/2),cy:bo(a.cy+a.ry-4),rx:bo(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),jt(qKe,{g:a,id:r}),jt(XKe,{g:a,id:r}),jt("path",{d:i,fill:`url(#${r.tread})`}),jt("g",{clipPath:`url(#${r.crown})`,children:Xhe(t).map(l=>jt(YKe,{g:a,column:l},l.f[0]))}),jt("path",{d:DO(a,0,0,!0),stroke:"currentColor",strokeOpacity:Ss.shoulder,strokeWidth:1.2}),jt("path",{d:DO(a,1,1),stroke:"currentColor",strokeOpacity:Ss.silhouette,strokeWidth:1.4})]})}function YKe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Uc(wk,{children:[jt("path",{d:kM(e,o,n),fill:"currentColor",fillOpacity:Ss.rib}),jt("path",{d:DO(e,o,1),stroke:"currentColor",strokeOpacity:Ss.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(wk,{children:l.map(([d,c])=>jt("path",{d:qhe(e,o,n,d,c),fill:"currentColor",fillOpacity:Ss.rib,stroke:"currentColor",strokeOpacity:Ss.grooveWall,strokeWidth:1},d))})}function jKe({id:e}){return Uc(wk,{children:[Uc("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})]}),Uc("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})]}),Uc("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})]}),Uc("radialGradient",{id:e.shadow,children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function qKe({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 Uc(wk,{children:[jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx),ry:bo(e.ry),fill:`url(#${t.wall})`}),KKe.map((a,i)=>{let s=n(a);return jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*s),ry:bo(e.ry*s),stroke:"currentColor",strokeOpacity:Ss.relief[i],strokeWidth:1},a)}),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*n(Zhe)),ry:bo(e.ry*n(Zhe)),stroke:"currentColor",strokeOpacity:Ss.lettering,strokeWidth:bo(r)})]})}function XKe({g:e,id:t}){let o=Array.from({length:ege},(n,r)=>{let a=(r*(360/ege)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*tge*Math.cos(a),y1:e.cy+e.rimRy*tge*Math.sin(a),x2:e.cxf+e.rimRx*oge*Math.cos(a),y2:e.cy+e.rimRy*oge*Math.sin(a)}});return Uc(wk,{children:[jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx),ry:bo(e.rimRy),fill:`url(#${t.rim})`}),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Jhe),ry:bo(e.rimRy*Jhe),fill:"currentColor",fillOpacity:Ss.dishFill,stroke:"currentColor",strokeOpacity:Ss.dishEdge,strokeWidth:1}),o.map((n,r)=>jt("line",{x1:bo(n.x1),y1:bo(n.y1),x2:bo(n.x2),y2:bo(n.y2),stroke:"currentColor",strokeOpacity:Ss.spoke,strokeWidth:VKe,strokeLinecap:"round"},r)),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Qhe),ry:bo(e.rimRy*Qhe),fill:"currentColor",fillOpacity:Ss.hubFill,stroke:"currentColor",strokeOpacity:Ss.hubEdge,strokeWidth:1})]})}import{jsx as TM}from"react/jsx-runtime";function hm({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return TM("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:TM(ro,{label:t||"Tyre",src:fs(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:TM(SM,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as xk}from"react/jsx-runtime";function ZKe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function EM({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??fde;return xk("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:CR(e)?xk(hm,{image:o?.coverImage,size:e.size,type:ZKe(o),sizes:"96px",className:"h-full w-full"}):a?.src?xk(nl,{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?xk("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:xk(ng,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as PM,jsxs as QKe}from"react/jsx-runtime";var nge={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function rge(e,t){return Math.min(hH,Math.max(1,e+t))}var age="disabled:cursor-not-allowed disabled:opacity-40",JKe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${nge.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${age}`,value:`w-11 text-center font-mono ${nge.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 ${age}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function yk({value:e,onChange:t,size:o}){let n=JKe[o];return QKe("div",{className:n.frame,children:[PM("button",{type:"button",onClick:()=>t(rge(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),PM("span",{className:n.value,children:e}),PM("button",{type:"button",onClick:()=>t(rge(e,1)),disabled:e>=hH,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as Gc,jsx as Ye,jsxs as io}from"react/jsx-runtime";function ige({content:e,closeRef:t}){let{close:o,items:n}=Mn(),r=t;return io("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:[io("div",{className:"flex items-center justify-between",children:[io("span",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?Ye("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]}),Ye("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"})]}),io("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",Ye("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),Ye("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:Vre(e,n.length)})]})}function sge({content:e}){let{totals:t}=Mn(),{activeCountry:o}=At(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ye(Gc,{children:io("div",{className:`grid flex-shrink-0 ${eVe[r-1]} gap-px border-b border-line bg-line`,children:[Ye(_M,{label:"Items",value:io(Gc,{children:[Ye("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?Ye(_M,{label:"Lead time",value:e.leadTimeValue}):null,n?Ye(_M,{label:"Ships to",value:n}):null]})})}function lge({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=Mn();return Ye(Gc,{children:o.length===0?Ye(aVe,{content:e}):o.map(a=>Ye(tVe,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function dge(){let{items:e,totals:t,bundles:o}=Mn(),{formatMoney:n}=At(),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 Ye(Gc,{children:i.length>0&&io("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:[io("div",{className:"mb-4 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[Ye("span",{children:"You may also need"}),Ye("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),Ye("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:i.map(s=>Ye(oVe,{href:`/bundles/${s.slug}`,title:s.name,sub:nVe(s,t.currency,n)},s.slug))})]})})}function cge(){return Ye(Gc,{children:Ye("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ye(bde,{})})})}function pge({content:e}){return Ye(Gc,{children:e.promises.length>0&&Ye("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=>Ye(rVe,{children:t},t))})})}function mge(){let{totals:e,coupon:t}=Mn(),{formatMoney:o}=At();return Ye(Gc,{children:io("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ye(lf,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ye(lf,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:io("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),(e.discount>0||e.deliverySaving>0)&&t?.valid&&Ye(lf,{label:`Coupon \xB7 ${t.code}`,value:Ye("span",{style:{color:"var(--green)"},children:qle(e,n=>o(n,e.currency))})}),t?.deferred&&Ye(lf,{label:`Coupon \xB7 ${t.code}`,value:wle}),t?.valid&&t.effects?.gift&&Ye(lf,{label:`Free gift \xB7 ${t.effects.gift.partNumber}${t.effects.gift.quantity>1?` \xD7${t.effects.gift.quantity}`:""}`,value:Ye("span",{style:{color:"var(--green)"},children:og})}),Ye(lf,{label:"Shipping",value:e.shippingStatus==="free"?Ye("span",{style:{color:"var(--green)"},children:og}):Xle(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ye(lf,{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?Ye(lf,{label:e.tax.name,value:jle}):null),io("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[io("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",Ye("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),Ye("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:e.repricing?zle:o(e.grand,e.currency)})]})]})})}function uge(){let{items:e,close:t}=Mn();return Ye(Gc,{children:io("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[io(He,{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",Ye("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),Ye("div",{className:"flex items-center justify-between px-1 py-2 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:Ye(He,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var eVe=["grid-cols-1","grid-cols-2","grid-cols-3"];function _M({label:e,value:t}){return io("div",{className:"flex flex-col gap-1 bg-bg px-4 py-4",children:[Ye("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),Ye("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function tVe({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=Mn(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=At();return io(Gc,{children:[io("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:[Ye(EM,{line:e,catalog:r,tyre:t}),io("div",{className:"flex min-w-0 flex-col gap-2",children:[io("div",{className:"flex items-start justify-between gap-3",children:[io("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:[io("span",{"data-cart-line-no":"",children:["N\xB0 ",e.positionNo," \xB7 "]}),e.process==="FusionForge\xAE"?io(Gc,{children:["FusionForge",Ye($_,{})]}):e.process]}),Ye("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:gH(e,s)===null?Au:l(gH(e,s),s)})]}),io("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,Ye("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&io("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.config.map(d=>Ye("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&&io("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"]})]}),io("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ye(yk,{value:e.qty,onChange:n,size:"small"}),io("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[Ye(He,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),Ye("button",{type:"button",onClick:o,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&io("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:[Ye("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),io("span",{children:["Verified for your ",Ye("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function oVe({title:e,sub:t,href:o}){return io(He,{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:[io("span",{className:"flex min-w-0 flex-col gap-1",children:[Ye("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),Ye("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),Ye("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 nVe(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 rVe({children:e}){return Ye("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function lf({label:e,value:t}){return io("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[Ye("span",{children:e}),Ye("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function aVe({content:e}){return io("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[Ye("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),Ye("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),io(He,{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 ",Ye("span",{className:"text-accent",children:"\u2192"})]})]})}import{jsx as df,jsxs as fge}from"react/jsx-runtime";var lVe=Cu(void 0),dVe="Your cart";function vk({content:e=UC,look:t=lVe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=Mn(),s=sVe(null),l=Uhe(a.filter(CR).map(d=>d.slug));return iVe(()=>{i(t.autoOpen)},[t.autoOpen,i]),fge($i,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:dVe,children:[df(ige,{content:e,closeRef:s}),df(sge,{content:e}),fge("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[df(lge,{content:e,tyres:l}),df(dge,{}),df(cge,{}),df(pge,{content:e})]}),df(mge,{}),df(uge,{})]})}import cVe from"efficient-easel/screen/components/UiIcon";import{Fragment as mVe,jsx as Ig,jsxs as zO}from"react/jsx-runtime";var pVe=Zw(()=>import("./chunks/EditorPreviewCheckout-ZMKF3EFO.js"),{ssr:!1});function CM(){let{chromePlaceholder:e,themeFromDocument:t}=tr(),{surface:o}=Tie();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?zO(mVe,{children:[Ig(pVe,{}),Ig(hge,{surface:o})]}):Ig(Fu,{children:zO(Fw,{preview:!0,children:[Ig(vk,{}),Ig(hge,{surface:o})]})})}function hge({surface:e}){let{label:t,href:o}=jfe(e);return zO("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:[Ig("span",{style:{whiteSpace:"nowrap"},children:m("{name} \xB7 preview only",{name:m(t)})}),zO("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:[m("Open live"),Ig(cVe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as uVe,CursorClickIcon as fVe,EyeIcon as hVe,FullWidthIcon as gVe,HeightIcon as bVe,OpacityIcon as wge,PlacementIcon as wVe,WidthIcon as xVe}from"efficient-easel/icons";import{group as Px}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as yVe}from"efficient-easel/screen/lib/document/device-fields";import{jsx as gm}from"react/jsx-runtime";var vVe={label:"Inside",value:"inside"},kVe={label:"None",value:"none"};function RM(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,yVe("desktop",o)]))}function gge(e,t){return{_gDesign:Px("Color"),tintColor:ha("Tint color",e),tintOpacity:le("Tint opacity",gm(wge,{}),n1.min,n1.max,5,t,"%")}}function bge(e,t){return{_gBehavior:Px("Behavior"),outsideClick:oe("Outside click",e,gm(fVe,{})),...t}}var SVe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function OM(e){return le("Width",gm(xVe,{}),GB.min,GB.max,4,e,"px")}function xge(e){if(e===_u){let o=Cu(void 0);return RM({_gSize:Px("Width"),width:OM(o.width),_gPosition:Px("Placement"),placement:ne("Placement",gm(wVe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...gge(o.tintColor,o.tintOpacity),...bge(o.outsideClick,{autoOpen:oe("Auto open",o.autoOpen,gm(hVe,{}))})})}let t=Pu;return Ie(RM({_gSize:Px("Width"),width:OM(t.width),height:ne("Height",gm(bVe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:Px("Placement"),placement:hd("Placement",{fallback:t.placement}),fullWidth:oe("Full width",t.fullWidth,gm(gVe,{})),...gge(t.tintColor,t.tintOpacity),...bge(t.outsideClick,{closeButton:ne("Close button",gm(uVe,{}),[vVe,{label:"Outside",value:"outside"},kVe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],SVe])}function yge(e,t){return RM({menuPanelWidth:OM(e),menuPanelTintColor:ha("Tint color",Pu.tintColor),menuPanelTintOpacity:le("Tint opacity",gm(wge,{}),n1.min,n1.max,5,t,"%")})}import{PictureTiles as TVe}from"efficient-shell/ui";import{SettingsField as EVe}from"efficient-easel/panel";import{GridIcon as PVe}from"efficient-easel/icons";import{jsx as Fg}from"react/jsx-runtime";function _Ve({layout:e}){return Fg("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?Fg("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):Fg("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var vge={type:"custom",render:({value:e,onChange:t})=>{let o=GC({layout:e}).layout,n=$B.find(r=>r.value===o);return Fg(EVe,{label:m(KB),icon:Fg(PVe,{}),value:n?m(n.label):void 0,children:Fg(TVe,{className:"sf-gallery-layouts",label:m(KB),value:o,onChange:t,options:$B.map(r=>({value:r.value,label:m(r.label),picture:Fg(_Ve,{layout:r.value})}))})})}};import{CategoryIcon as u5t,CheckIcon as f5t,ClockIcon as wq,ColumnsIcon as h5t,DirectionIcon as g5t,EyeIcon as b5t,ListIcon as w5t,PageIcon as x5t,PlacementIcon as y5t,ScrollPointIcon as v5t,TabsIcon as k5t,TriggerIcon as S5t,CaseIcon as T5t}from"efficient-easel/icons";import{deviceField as EDe}from"efficient-easel/screen/lib/document/device-fields";import{group as od,phoneTwinFields as E5t}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as CVe}from"efficient-easel/screen/lib/document/box-fields";function _x(e){let t=CVe(e);return{...t,render:o=>t.render({...o,value:Qm(o.value)??o.value})}}import{useContext as OVe,useEffect as Sge,useRef as UO,useState as GO}from"react";import{Button as $O}from"efficient-shell/ui";import{ScreenDocumentContext as NVe}from"efficient-easel/screen/components/ScreenDocumentContext";var kk=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},WO=null,NM=null,LM=null;function RVe(){WO=null,NM=null,LM=null}function kge(e=!1){let t=fa(),o=Dn();return(e||!WO||NM===null&&t!==null||LM!==o)&&(NM=t,LM=o,WO=(t?Ne.listForms(t,{siteId:o}):Promise.reject(new kk)).catch(n=>{throw RVe(),n instanceof kk?n:new kk(n)})),WO}import{useEaselHost as LVe}from"efficient-easel/screen/lib/host";import{InertHint as AM}from"efficient-easel/panel";import{jsx as gr,jsxs as $c}from"react/jsx-runtime";var Tge="__create-a-new-form__";function AVe({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?m("Loading\u2026"):o?m("Forms couldn\u2019t be loaded"):n===void 0?m("No form yet"):m(n)},l=e&&!a?[{value:e,label:i||o?e:m("{slug} \u2014 no form with this name",{slug:e})}]:[],d=r.map(p=>({value:p.slug,label:p.is_active?p.title:m("{title} (switched off)",{title:p.title})})),c=i?[]:[{value:Tge,label:m("Create a new form")}];return[s,...l,...d,...c]}function IVe(e){return e===Tge?{action:"create"}:{action:"store",slug:e}}function FVe({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 BVe(e){let t=[m("Goes to {place}",{place:m("Storefront \u2192 Forms")})],o=(e.notify_email??"").trim();return o&&t.push(m("Emails a copy to {email}",{email:o})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?m("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):m("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?m("Creates a wholesale account"):m("Creates a retail account")),t}function IM({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=LVe(),a=OVe(NVe),i=a?a.capabilities.hasForms:!0,[s,l]=GO(null),[d,c]=GO(!1),[p,f]=GO(!1),[u,h]=GO(!1),g=UO(!0),b=UO(e);b.current=e;let w=UO(t);w.current=t;let x=UO(null),v=(P=!1)=>kge(P).then(F=>{if(g.current){l(F),c(!1);let I=FVe({value:b.current,pickedId:x.current,forms:F});I&&w.current(I)}return F},()=>(g.current&&c(!0),[]));Sge(()=>(g.current=!0,i&&v(),()=>{g.current=!1}),[i]),Sge(()=>i?qR(()=>{v(!0)}):void 0,[i]);let k=e?(s??[]).find(P=>P.slug===e)??null:null;k?x.current=k.id:e||(x.current=null);let y=!!e&&!k&&s!==null&&!d,T=AVe({value:e,forms:s,loadFailed:d,emptyLabel:n}),E=async()=>{f(!0),h(!1);try{let P=await Bde(r,{mode:"create"}),F=await v(!0);if(!g.current)return;if(P.status==="timeout"){h(!0);return}if(P.status!=="saved")return;let{form:I}=P;I.slug!==b.current&&w.current(I.slug),F.some(H=>H.id===I.id)||v(!0)}finally{g.current&&f(!1)}},_=P=>{let F=IVe(P);F.action==="create"?E():(h(!1),t(F.slug))};return i?$c("div",{className:"sf-formpicker",children:[gr(iw,{label:o,options:T,fallback:"",value:e??"",onChange:_,placeholder:m("Search forms\u2026")}),u&&gr("p",{className:"sf-formsummary-warn",children:m("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),k?$c("div",{className:"sf-blogsource sf-formsummary",children:[$c("div",{children:[gr("div",{className:"sf-formsummary-caption",children:pr("{n} field","{n} fields",k.fields.length)}),k.fields.length?gr("ol",{className:"sf-formsummary-fields",children:k.fields.map((P,F)=>gr("li",{children:P.label},P.key||`${P.label}-${F}`))}):gr(AM,{children:m("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),$c("div",{children:[gr("div",{className:"sf-formsummary-caption",children:m("Where the answers go")}),gr("ul",{className:"sf-formsummary-fields",children:BVe(k).map(P=>gr("li",{children:P},P))})]}),!k.is_active&&gr("p",{className:"sf-formsummary-warn",children:m("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:m("Storefront \u2192 Forms")})}),$c("div",{className:"sf-formsummary-actions",children:[gr($O,{variant:"secondary",size:"md",onClick:()=>Fde(r,k.id),children:m("Edit form \u270E")}),gr($O,{variant:"secondary",size:"md",disabled:p,onClick:()=>{E()},children:m("New form +")})]}),gr("p",{className:"es-field-hint",children:m("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:m("Storefront \u2192 Forms")})})]}):$c("div",{className:"sf-blogsource sf-formsummary",children:[d?$c(AM,{children:[m("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${m("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):y&&gr("p",{className:"sf-formsummary-warn",children:m("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??""})}),$c("div",{className:"sf-formsummary-actions",children:[d&&gr($O,{variant:"secondary",size:"md",disabled:p,onClick:()=>{v(!0)},children:m("Try again")}),gr($O,{variant:"secondary",size:"md",disabled:p,onClick:()=>{E()},children:m("New form +")})]}),!d&&gr("p",{className:"es-field-hint",children:m("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:m("Storefront \u2192 Forms")})})]})]}):gr("div",{className:"sf-formpicker",children:gr("div",{className:"sf-blogsource sf-formsummary",children:$c("div",{children:[gr("div",{className:"sf-formsummary-caption",children:m(o)}),$c(AM,{children:[m("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${m("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as HVe}from"react/jsx-runtime";function Kc(e,t){return{type:"custom",render:({value:o,onChange:n})=>HVe(IM,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{createContext as DVe,useContext as MVe}from"react";import{jsx as Vc,jsxs as FM}from"react/jsx-runtime";function BM(e){return fc(e)??void 0}var HM=DVe({}),Ege=3;function DM({tag:e,name:t,desc:o,href:n,imageSrc:r,imageLabel:a,price:i}){let s=be(),{showPrice:l,cardStyle:d,partStyles:c,editing:p,ownerId:f,Template:u}=MVe(HM),h=d==="bordered"?" border border-line":d==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",g=BM(r),b=Bn();if(u){let v={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:g??"",tag:e??"",href:n||"#"};return b.scope(Vc("div",{className:Jt(`block w-full min-w-0 ${Pb}${s?` ${iu}`:""}`,b.className),...b.attrs,children:Vc(Ke,{ownerId:f??"Collections",ownerType:"Collections",Template:u,rows:[v],fallback:null,children:S=>S})}))}let w=v=>p?{[yb]:v}:{},x=v=>NP(c?.[dd(v)]?.role,eg[v],yP);return b.scope(FM(He,{href:n||"#",className:Jt(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${h}`,b.className),...b.attrs,children:[Vc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${vme}`,children:Vc(ro,{label:a||"collection.jpg",src:g})}),Vc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${Tme} max-view-wide:hidden`,style:{transition:"none"}}),FM("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&&Vc("span",{...w("tag"),style:x("tag"),className:`font-mono ${Zp.tag} uppercase tracking-[0.25em] opacity-70`,children:N(e)}),t&&Vc("h3",{...w("name"),style:x("name"),className:`font-heading2 ${Zp.name} font-medium leading-none tracking-[-0.03em] ${Zp.namePhone}`,children:typeof t=="string"?re(t,!1):t}),o&&Dt(o).map((v,S)=>Vc("p",{...w("body"),style:x("body"),className:`max-w-[420px] ${Zp.body} leading-[1.5] opacity-80`,children:N(v)},S)),l&&i&&Vc("span",{...w("price"),style:x("price"),className:`font-mono ${Zp.price} tracking-[0.05em] text-accent`,children:N(i)}),FM("span",{...w("link"),style:x("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${Zp.link} uppercase tracking-[0.2em]`,children:["Explore",Vc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as Bge,useCallback as iYe,useContext as Fge,useEffect as Hge,useRef as sYe,useState as $M}from"react";import{slugify as lYe}from"efficient-shell/format";import{useState as GVe}from"react";import{jsx as MM,Fragment as zVe}from"react/jsx-runtime";function Tl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=Cte(e),a=Rte(e),i=t?a:r,s=_te(i);return o&&!i?MM("span",{[mu]:e,children:n}):i?MM("span",{ref:s,[mee]:i.stamp,...i.textStyle?{[uee]:i.textStyle}:{},children:n}):MM(zVe,{children:n})}var Pge="mosaic",WVe=260,UVe=150;function _ge(e){let t=`.${e}.sf-gallery-zone`;return`${t}{grid-auto-rows:${WVe}px}@media (max-width:${Rb}px){${t}{grid-auto-rows:${UVe}px}}`}function Cge(e){return e>1?`${e} photos`:""}import{jsx as nr,jsxs as cf}from"react/jsx-runtime";var $Ve="(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",zM=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function WM({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,setCount:f,sizes:u}){let h=k=>Cre(l,d,k),g=k=>p&&c?{[lee]:c,[dee]:`@${k}`}:{},b=(k,y)=>!p&&c?nr(Tl,{kind:`@${k}`,shared:!0,children:y}):y,[w,x]=GVe(!1);if(f!=null)return nr(KVe,{build:e,count:f,ratio:i,sizes:u,shown:h,keptAttrs:g,kept:b});let v=WJ(s),S=cf("div",{className:["sf-card group relative overflow-hidden bg-surface-2",Fh(i),t?"max-view-wide:hidden":""].join(" "),children:[cf("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:[nr(ro,{label:e.imageLabel,src:e.imageSrc,...u?{sizes:u}:{}}),!o&&nr("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),nr("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&&nr(nl,{src:e.detailSrc,alt:"",fill:!0,sizes:u??$Ve,loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:w?"none":"block"},onError:()=>x(!0)})}),(e.process||r!=null&&a!=null)&&cf("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&&nr("span",{...g("tag"),className:["min-w-0 truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent",h("tag"),"transition-opacity duration-300 ease-out",o||n?"opacity-100":"opacity-0 group-hover:opacity-100 max-view-wide:opacity-100"].join(" "),children:b("tag",ko(e.process))}),r!=null&&a!=null&&nr("span",{...g("number"),className:`ml-auto shrink-0 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] ${h("number")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:b("number",zM(r,a))})]}),nr("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:cf("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&&nr("div",{...g("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] ${h("eyebrow")}`.trim(),children:b("eyebrow",e.car)}),e.wheel&&nr("div",{...g("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 ":""}${h("title")}`.trim(),children:b("title",e.wheel)}),e.finish&&nr("div",{...g("meta"),className:`mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em] ${h("meta")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:nr("span",{children:b("meta",ko(e.finish))})})]})})]});return v?cf("div",{className:t?"max-view-wide:hidden":"",children:[S,cf("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&nr("div",{...g("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${h("title")}`.trim(),children:b("title",e.wheel)}),(e.finish||e.car)&&nr("div",{...g(e.finish?"meta":"eyebrow"),className:`mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim ${h(e.finish?"meta":"eyebrow")}`.trim(),children:b(e.finish?"meta":"eyebrow",ko(e.finish||e.car))})]})]}):S}function KVe({build:e,count:t,ratio:o,sizes:n,shown:r,keptAttrs:a,kept:i}){let s=Cge(t);return cf("div",{className:`sf-card relative overflow-hidden bg-surface-2 ${Fh(o)}`,style:{color:"var(--overlay-fg)"},children:[nr("div",{className:"absolute inset-0 flex items-center justify-center",children:nr(ro,{label:e.imageLabel,src:e.imageSrc,...n?{sizes:n}:{}})}),nr("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, color-mix(in srgb, var(--overlay-scrim) 0%, transparent) 45%, color-mix(in srgb, var(--overlay-scrim) 70%, transparent))"}}),s&&nr("span",{"data-gallery-set-chip":"",className:"absolute right-3 top-3 z-1 bg-overlay-scrim/45 px-2 py-1 text-[length:var(--size-label,11px)] tracking-[0.12em]",children:s}),cf("div",{className:"absolute bottom-[18px] left-5 right-5 z-1 max-view-wide:bottom-2.5 max-view-wide:left-3",children:[e.wheel&&nr("div",{...a("title"),className:`text-[length:var(--size-label,11px)] uppercase tracking-[0.16em] opacity-85 ${r("title")}`.trim(),children:i("title",ko(e.wheel))}),e.car&&nr("div",{...a("eyebrow"),className:`mt-1 text-lg leading-normal max-view-wide:text-sm ${r("eyebrow")}`.trim(),children:i("eyebrow",e.car)})]})]})}import{createContext as VVe,useCallback as YVe,useContext as jVe,useEffect as qVe,useLayoutEffect as XVe,useRef as UM,useState as ZVe}from"react";import{createPortal as JVe}from"react-dom";import{Fragment as oYe,jsx as Sk,jsxs as nYe}from"react/jsx-runtime";var Oge="sf-themed-content",QVe=`.${Oge}`,Rge="sf-section-accent";function eYe(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(Rge)&&(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 ${Rge}`:"contents",style:o}}function tYe(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 Nge=VVe(()=>{});function Yc({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=UM(null),l=UM(null),[d,c]=ZVe(null);XVe(()=>{if(!e){c(null);return}let h=s.current;if(!h)return;let g=h.closest(QVe),b=g?.parentElement??h.ownerDocument.body,w=eYe(h,b);c({host:b,theme:g?{...w,className:`${w.className} ${Oge}`}:w})},[e]);let p=UM({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let f=e&&d!==null,u=YVe(()=>p.current.onClose(),[]);return Wc({active:f,onDismiss:u,scopeRef:l}),qVe(()=>{if(!f)return;let h=l.current,g=h?.ownerDocument??document,b=g.activeElement;h?.focus();let w=v=>{if(v.key==="ArrowLeft")p.current.onPrev?.();else if(v.key==="ArrowRight")p.current.onNext?.();else if(v.key==="Tab"&&h){let S=tYe(h);if(S.length===0){v.preventDefault(),h.focus();return}let k=S[0],y=S[S.length-1],T=g.activeElement,E=!!T&&h.contains(T)&&T!==h;if(v.shiftKey&&(!E||T===k))v.preventDefault(),y.focus();else if(!v.shiftKey&&(!E||T===y))v.preventDefault(),k.focus();else{v.preventDefault();let _=S.indexOf(T);S[v.shiftKey?_-1:_+1]?.focus()}}},x=g.defaultView??window;return x.addEventListener("keydown",w),()=>{x.removeEventListener("keydown",w),b&&b.isConnected&&b.focus()}},[f]),e?nYe(oYe,{children:[Sk("span",{ref:s,hidden:!0}),d&&JVe(Sk("div",{className:d.theme.className,style:d.theme.style,children:Sk("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 ${vM[8]} ${a}`,style:{background:yM},children:Sk(Nge.Provider,{value:t,children:i})})}),d.host)]}):null}var KO="color-mix(in oklab, var(--bg) 70%, transparent)";function bm({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=jVe(Nge);return Sk("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as rYe,useContext as Bg}from"react";var Tk=rYe(null);function Lge(){let e=Bg(t1),t=Bg(Tk),o=pR();return e?e.socialLinks??yie:t?t.socialLinks:o.links}function pf(){return Bg(Tk)?.commerceEnabled??!0}function aYe(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Cx(){return aYe(Bg(Tk))}function Age(){let e=Bg(Tk),t=tr();return e?e.showThemeSwitch??Dp:t.themeSwitchShown??Dp}function Ige(){let e=Bg(t1),t=Bg(Tk),o=tr();return e?FR({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?FR({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):FR({siteName:o.websiteName?.trim()||Ou})}import{useBrowserLayoutEffect as dYe}from"efficient-shell/hooks";import{Fragment as Rx,jsx as Bt,jsxs as Gn}from"react/jsx-runtime";var cYe="(max-width: 1100px) 100vw, min(59vw, 1050px)",Ek=Bge({}),Dge=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],VM=Bge(null),mf="data-gallery-grid",KM="data-gallery-tile";function pYe(e,t){let[o,n]=$M(null);return Hge(()=>{let r=e.current,a=r?.closest(`[${mf}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${KM}]`)),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 Nd={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},mYe=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),Mge=Array.from({length:6},mYe);function uYe(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=lYe(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 Hg({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let i=be(),{galleryHref:s="/gallery",submitHref:l="/contact",previewHover:d,display:c,displayPhone:p,styleOwner:f,photosOnly:u=!1,wordsAtRest:h=!1,Template:g,ownerId:b,sets:w=!1}=Fge(Ek),x=uYe(a),S=pf()&&!u,k=!S&&!fYe(x),y=x.photos??(x.imageSrc?[x.imageSrc]:[]),T=sYe(null),E=iYe(he=>{T.current=he},[]),_=pYe(T,e),P=Fge(VM),F=P?.report,I=r?.id,H=r?.tag??"",B=r?.name??"";dYe(()=>{if(!F||!I)return;let he={id:I,tag:H,name:B};return F(he),()=>F(he,!0)},[F,I,H,B]);let L=(I?P?.positionOf(I):null)??_,A=I?P?.sizesOf?.(I):void 0,$=e&&(!!t||!!d),[Y,V]=$M(!1),[Z,G]=$M(0),q=!!I&&!!P&&P.walkCount>1,te=he=>{let Fe=Z+he;if(q&&(Fe<0||Fe>=y.length)){V(!1),P.walk(I,he);return}G((Fe+y.length)%y.length)},R=()=>te(-1),O=()=>te(1),K=y.length>1||q,X=P?.opening;Hge(()=>{!X||X.id!==I||(G(X.at==="last"?Math.max(0,y.length-1):0),V(!0))},[X,I]);let M=y[Z]??x.imageSrc??"",ee=y.slice(1),de=g?Bt("div",{className:`block w-full min-w-0 ${Pb}${i?` ${iu}`:""}`,children:Bt(Ke,{ownerId:b??"GalleryB",ownerType:"GalleryB",Template:g,rows:[{key:I??x.imageSrc??"tile",image:x.imageSrc??"",tag:x.process,number:L?zM(L.index,L.total):"",eyebrow:x.car,name:x.wheel,meta:x.finish,href:x.href??""}],items:[{hoverMedia:ee.length?{photos:[{finish:"",items:ee.map(he=>({url:he,kind:"image"}))}]}:null}],previewHover:$,fallback:null,children:he=>he})}):Bt(WM,{build:x,forceHover:$,alwaysShowOverlay:h,index:L?.index,total:L?.total,ratio:o,captionPlace:n,display:c,displayPhone:p,styleOwner:f,editing:e,...w?{setCount:y.length}:{},...A?{sizes:A}:{}});return Gn(Rx,{children:[e?Bt(z,{as:"div",ref:E,[KM]:"",className:"block w-full text-left",children:de}):Bt(z,{as:"button",ref:E,[KM]:"",type:"button","aria-label":S?`Open ${x.car||"build"} on ${x.wheel||"wheel"}`:GM(x),onClick:()=>{G(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:de}),w?Bt(Yc,{open:Y,onClose:()=>V(!1),label:x.car&&x.wheel?`${x.car} on ${x.wheel}`:GM(x),onPrev:K?R:void 0,onNext:K?O:void 0,className:"bg-bg",children:Bt(wYe,{build:x,set:y,index:Z,onPick:G,onPrev:K?R:void 0,onNext:K?O:void 0,onLeave:()=>V(!1)})}):Bt(Yc,{open:Y,onClose:()=>V(!1),label:S?`${x.car} on ${x.wheel}`:GM(x),onPrev:K?R:void 0,onNext:K?O:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:Gn("div",{onClick:he=>he.stopPropagation(),className:`relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] ${k?"grid-cols-1":"grid-cols-[1.4fr_1fr]"} overflow-hidden border border-line bg-bg max-view-desktop:grid-cols-1 max-view-desktop:overflow-auto`,style:{boxShadow:"0 60px 120px -20px color-mix(in srgb, var(--sf-shadow-color, #141416) 70%, transparent)"},children:[Bt(bm,{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:KO},children:"\u2715"}),Gn("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[M&&Bt("img",{...to(M,{fallbackWidth:1280}),sizes:cYe,alt:`${(S?x.car:x.wheel||x.car)||"Photo"} \u2014 ${Z+1} of ${y.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},M),K&&Gn(Rx,{children:[Bt("button",{type:"button","aria-label":"Previous photo",onClick:R,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"}),Bt("button",{type:"button","aria-label":"Next photo",onClick:O,className:"absolute right-4 top-1/2 flex h-16 w-16 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,24px)] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25B7"}),y.length>1&&Gn("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:[Z+1," / ",y.length]})]})]}),S?Gn("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[x.process&&Bt("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:N(x.process)}),x.wheel&&Bt("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:re(x.wheel,!1)}),x.car&&Gn("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",Bt("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:N(x.car,!0)})]}),Gn("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:[x.wheel&&Gn(Rx,{children:[Bt("dt",{className:"text-fg-dim",children:"Wheel"}),Bt("dd",{className:"text-fg",children:N(x.wheel)})]}),x.process&&Gn(Rx,{children:[Bt("dt",{className:"text-fg-dim",children:"Process"}),Bt("dd",{className:"text-fg",children:N(x.process)})]}),x.finish&&Gn(Rx,{children:[Bt("dt",{className:"text-fg-dim",children:"Finish"}),Bt("dd",{className:"text-fg",children:N(x.finish)})]}),x.car&&Gn(Rx,{children:[Bt("dt",{className:"text-fg-dim",children:"Vehicle"}),Bt("dd",{className:"text-fg",children:N(x.car)})]})]}),Gn("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[Gn(He,{href:x.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:[Bt("span",{children:"View product"}),Bt("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),Gn(He,{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:[Bt("span",{children:"See more builds"}),Bt("span",{children:"\u2192"})]}),Gn(He,{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:[Bt("span",{children:"Submit your build"}),Bt("span",{children:"\u2192"})]})]})]}):!k&&Bt(hYe,{build:x})]})})]})}function zge(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function fYe(e){return!!e.wheel||zge(e).length>0}function GM(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function hYe({build:e}){let t=e.wheel,o=zge(e);return Gn("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&Bt("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:re(t,!1)}),o.map(n=>Bt("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:N(n)},n))]})}var gYe=360,bYe="120px";function wYe({build:e,set:t,index:o,onPick:n,onPrev:r,onNext:a,onLeave:i}){let s=t[o]??e.imageSrc??"",l="absolute top-1/2 flex h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg bg-bg text-lg text-fg max-view-wide:hidden";return Gn("div",{onClick:d=>d.stopPropagation(),className:"grid h-full w-full grid-cols-[1fr_360px] bg-bg text-fg max-view-wide:grid-cols-1 max-view-wide:grid-rows-[auto_1fr] max-view-wide:overflow-auto",children:[Gn("div",{className:"relative grid min-h-0 place-items-center bg-surface-2 py-12 max-view-wide:p-0",children:[s&&Bt("img",{...to(s,{fallbackWidth:1280}),sizes:`(max-width: ${Rb}px) 100vw, calc(100vw - ${gYe}px)`,alt:`${e.car||e.wheel||"Photo"} \u2014 ${o+1} of ${t.length}`,className:"block max-h-[calc(100vh-96px)] max-w-[calc(100%-192px)] max-view-wide:max-h-[60vh] max-view-wide:max-w-full"},s),r&&Bt("button",{type:"button","aria-label":"Previous photo",onClick:r,className:`${l} left-6`,children:"\u2039"}),a&&Bt("button",{type:"button","aria-label":"Next photo",onClick:a,className:`${l} right-6`,children:"\u203A"})]}),Gn("div",{"data-gallery-set-side":"",className:"flex min-h-0 flex-col overflow-auto p-8 max-view-wide:px-4 max-view-wide:py-5",children:[Bt(bm,{label:"Close popup",className:"flex h-10 w-10 shrink-0 cursor-pointer items-center justify-center self-end border border-fg bg-bg text-lg text-fg max-view-wide:fixed max-view-wide:right-3 max-view-wide:top-3 max-view-wide:z-5",children:"\u2715"}),e.wheel&&Bt("div",{className:"mt-10 text-[length:var(--size-label,11px)] uppercase tracking-[0.16em] text-fg-dim max-view-wide:mt-0",children:e.wheel}),e.car&&Bt("div",{className:"mt-2 mb-2 text-2xl leading-normal",children:e.car}),Gn("div",{className:"text-xs leading-normal text-fg-dim",children:[o+1," / ",t.length]}),t.length>1&&Bt("div",{className:"mt-8 grid grid-cols-3 gap-2 max-view-wide:grid-cols-5",children:t.map((d,c)=>Bt("button",{type:"button","data-gallery-set-thumb":"","aria-label":`Show photo ${c+1}`,"aria-current":c===o?"true":void 0,onClick:()=>n(c),className:`block cursor-pointer p-0 ${c===o?"opacity-100 outline outline-1 outline-offset-2 outline-fg":"opacity-50"}`,children:Bt("img",{...to(d,{fallbackWidth:320,maxWidth:640}),sizes:bYe,alt:"",loading:"lazy",className:"block aspect-[4/3] w-full object-cover"})},`${d}-${c}`))}),e.wheel&&e.href&&Gn(xt,{href:e.href,onClick:i,className:"mt-auto inline-block self-start border border-fg px-8 py-3 text-xs text-fg max-view-wide:mt-6",children:["See ",e.wheel]})]})]})}import{createContext as TYe,useContext as EYe,useEffect as Pk,useId as PYe,useState as Nr,useSyncExternalStore as _Ye}from"react";var xYe=14,yYe=3;function vYe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function kYe(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),vYe(o)}async function Wge(e,t,o={}){let n=o.days??xYe,r=o.read??tg.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=kYe(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>=yYe)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as Uge,formatDateTime as YM,formatTime as Kge}from"efficient-shell/format";var SYe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},Gge={weekday:"long",day:"numeric",month:"long",year:"numeric"},Vge={hour:"numeric",minute:"2-digit"},$ge={...Vge,timeZoneName:"short"};function jM(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function qM(e,...t){let o=gl(...t);return!o||!jM(e)?"":Kge(e,{locale:dH(),timeZone:o})}function XM(e,...t){let o=typeof e=="string"?{start:e}:e,n=gl(...t),r=jM(o.start);if(!n||!r)return"";let a=dH(),i=o.end?jM(o.end):null;if(!i||i.getTime()<=r.getTime())return YM(o.start,{locale:a,timeZone:n,style:SYe,zoneName:"short"});let s=YM(o.start,{locale:a,timeZone:n,style:Gge,clock:Vge}),d=Uge(o.start,n)===Uge(o.end,n)?Kge(o.end,{locale:a,timeZone:n,clock:$ge}):YM(o.end,{locale:a,timeZone:n,style:Gge,clock:$ge});return`${s} \u2013 ${d}`}function VO(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as CYe,userToday as RYe,userZone as OYe}from"efficient-shell/format";import{jsx as HYe}from"react/jsx-runtime";var jge=TYe(null);function uf(){let e=EYe(jge);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var ZM=[{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:""}],NYe=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function Yge(e,t){return{timezone:"",slots:t?NYe.flatMap(({hour:n,minute:r})=>CYe(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var JM={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function LYe(e){let t=String(e?.slots[0]?.start??"");return t?{...JM,startAt:t}:JM}function qge(e){return e.bookingNumber===JM.bookingNumber}function AYe(e,t){return e&&t?.length===0}function IYe(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!VO(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function FYe(){return()=>{}}function BYe(){return null}function Xge({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=PYe(),r=_Ye(FYe,RYe,BYe)??"",[a,i]=Nr(),[s,l]=Nr(""),[d,c]=Nr(""),[p,f]=Nr(r),[u,h]=Nr(r),[g,b]=Nr(!1),[w,x]=Nr(null),[v,S]=Nr(),[k,y]=Nr(""),[T,E]=Nr(""),[_,P]=Nr(""),[F,I]=Nr(""),[H,B]=Nr(""),[L,A]=Nr(()=>yH()),[$,Y]=Nr(null),[V,Z]=Nr(!1),[G,q]=Nr(!1),[te,R]=Nr(null),[O,K]=Nr("");Pk(()=>{K(OYe()??"")},[]),Pk(()=>{let xe=!1;return tg.listServices().then(ie=>{if(xe)return;let ce=yR(ie);i(ce),l(ie.currency),c(J=>J||ce[0]?.id||"")}).catch(()=>{xe||i([])}),()=>{xe=!0}},[]),Pk(()=>{r&&(f(xe=>xe||r),h(xe=>xe||r))},[r]),Pk(()=>{if(g||!d||!r)return;let xe={aborted:!1};return y(""),S(void 0),R(null),x(null),Z(!0),Wge(d,r,{signal:xe}).then(ie=>{if(!xe.aborted){if(ie.outcome==="found"){f(ie.date),h(ie.date),S(ie.availability);return}x(ie.outcome==="noneInWindow"?`No times are available in the next ${ie.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{xe.aborted||Z(!1)}),()=>{xe.aborted=!0}},[g,d,r]),Pk(()=>{if(!g||!d||!p)return;let xe=!1;return y(""),S(void 0),R(null),x(null),Z(!0),tg.getAvailability(d,p).then(ie=>{xe||(S(ie),ie.slots.length===0&&x("No times are available on this date."))}).catch(()=>{xe||x("We couldn't load available times. Please try again.")}).finally(()=>{xe||Z(!1)}),()=>{xe=!0}},[p,g,d]);let X=a?.find(xe=>xe.id===d),M=X?.depositAmountDue!=null,ee=IYe({editing:e,submitting:G,hasService:!!X,hasDay:!!p,selectedStart:k,name:T,email:_,requiresPayment:M},Date.now());async function de(xe){if(xe.preventDefault(),!(!ee||!X)){q(!0),R(null);try{let ie=await tg.create({serviceId:X.id,start:k,customer:{name:T.trim(),email:_.trim(),phone:F.trim()},notes:H.trim(),idempotencyKey:L,customerTimezone:O});Y(ie),A(yH())}catch(ie){R(ie instanceof ur&&ie.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),ie instanceof ur&&ie.status===409&&(y(""),tg.getAvailability(X.id,p).then(S).catch(()=>{}))}finally{q(!1)}}}let he=AYe(e,a),Fe=he?Yge(p,O):void 0,_t=t&&!$?LYe(Fe??Yge(p,O)):null;return HYe(jge.Provider,{value:{fieldPrefix:n,editing:e,services:he?ZM:a,currency:he?"AUD":s,serviceId:he?ZM[0].id:d,setServiceId:c,service:he?ZM[0]:X,requiresPayment:he?!1:M,date:p,earliestDate:u,setDate:f,setDateTouched:b,availability:Fe??v,loadingSlots:he?!1:V,noSlotsMessage:w,selectedStart:Fe?Fe.slots[0]?.start??"":k,setSelectedStart:y,customerTimezone:O,name:T,setName:E,email:_,setEmail:P,phone:F,setPhone:I,notes:H,setNotes:B,confirmation:$??_t,submitting:G,error:te,canSubmit:he?!1:ee,handleSubmit:de,sample:!!he},children:o})}import{jsx as YO,Fragment as Zge,jsxs as Jge}from"react/jsx-runtime";var Qge=`sf-button group inline-flex items-center justify-center gap-2.5 border ${rae} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,e0e={primary:"border-btn bg-btn text-btn-ink hover:border-btn-2 hover:bg-btn-2",ghost:"border-current bg-transparent hover:bg-white/10"};function va(e){let{variant:t="primary",arrow:o,glyphBefore:n,spread:r,className:a,style:i,part:s,glyphPart:l,children:d,href:c,newTab:p,hrefRewrite:f,...u}=e,h=`${r?Qge.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):Qge} ${e0e[t]??e0e.primary} ${a??""}`,g=n?Jge(Zge,{children:[o!==null&&YO("span",{"aria-hidden":!0,className:"inline-flex",...l,children:o??"\u2192"}),d]}):Jge(Zge,{children:[d,o!==null&&YO("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",...l,children:o??"\u2192"})]});return c?YO(xt,{href:c,className:h,style:i,newTab:p?!0:"auto",...f?{hrefRewrite:f}:{},...s,children:g}):YO("button",{type:"button",className:h,style:i,...u,children:g})}import{jsx as DYe}from"react/jsx-runtime";var _k=e=>DYe("div",{className:"grid bg-bg",children:e});import{jsx as po,jsxs as Ld}from"react/jsx-runtime";var Ck="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 MYe(e,t){let o=Number(e);if(o===0)return og;try{return Ple(o,t)}catch{return`${t} ${e}`}}var t0e={selected:!0};function o0e(e,t){return({index:o})=>t?{[E_]:P_(e,o)}:{}}var Rk="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function QM({number:e,children:t}){return Ld("div",{className:"mb-4 flex items-center gap-3",children:[po("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}),po("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 jO({eyebrow:e,heading:t,intro:o}){return Ld("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&po("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&po("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()&&po("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function qO({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:f,loadingSlots:u,noSlotsMessage:h,selectedStart:g,setSelectedStart:b,customerTimezone:w,editing:x}=uf();if(!n)return null;let v=Date.now(),S=gl(w,f?.timezone??""),k=gl(f?.timezone??""),y=k&&k!==S?k:"",T=(f?.slots??[]).map(E=>({start:E.start,time:qM(E.start,S),businessTime:y?`${qM(E.start,y)} business`:"",passed:!x&&VO(E.start,v)}));return Ld(z,{className:"flex flex-col gap-10",style:e,children:[Ld("div",{children:[po(QM,{number:"01",children:"Choose a service"}),po("div",{className:"grid gap-3 sm:grid-cols-2",children:po(Ke,{ownerId:t.id,ownerType:t.type,slot:Pg,Template:t.serviceTemplate,rows:n.map(E=>({name:E.name,meta:`${E.durationMinutes} min \xB7 ${MYe(E.price,r)}`,description:E.description??""})),states:n.map(E=>E.id===a?t0e:void 0),actions:x?void 0:n.map(E=>({press:()=>i(E.id),label:E.name})),copyAttrs:o0e(Pg,x),fallback:null,wrapCopy:_k,children:E=>po(Fo,{children:E})})}),s&&po("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."})]}),Ld("div",{children:[po(QM,{number:"02",children:"Choose a date and time"}),po($r,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:Rk,children:po("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:E=>{p(!0),c(E.target.value)},className:Ck,required:!0})}),po("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 min-[1200px]:grid-cols-4",role:"group","aria-label":"Available appointment times",children:u?po("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"}):f?.slots.length?po(Ke,{ownerId:t.id,ownerType:t.type,slot:_g,Template:t.timeTemplate,rows:T.map(E=>({time:E.time,businessTime:E.businessTime})),states:T.map(E=>E.start===g&&!E.passed?t0e:void 0),actions:x?void 0:T.map(E=>({press:()=>b(E.start),label:E.time,disabled:E.passed})),copyAttrs:o0e(_g,x),fallback:null,wrapCopy:_k,children:E=>po(Fo,{children:E})}):h?po("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:h}):null}),S&&!u&&!!f?.slots.length&&Ld("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 ",S,y?` \xB7 business timezone ${y}`:""]})]})]})}function XO({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:f,error:u,canSubmit:h}=uf();return Ld(z,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[po(QM,{number:"03",children:"Your details"}),Ld("div",{className:"flex flex-col gap-4",children:[po($r,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:Rk,children:po("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:g=>a(g.target.value),className:Ck,required:!0})}),po($r,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:Rk,children:po("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:g=>s(g.target.value),className:Ck,required:!0})}),po($r,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:Rk,children:po("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:g=>d(g.target.value),className:Ck})}),po($r,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:Rk,children:po("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:g=>p(g.target.value),className:`${Ck} resize-y`})})]}),u&&po("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:u}),po(va,{type:n?"button":"submit",disabled:!h,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:f?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function ZO({successMessage:e}){let{confirmation:t,customerTimezone:o}=uf();if(!t)return null;let n=gl(t.customerTimezone,o,t.timezone),r=gl(t.timezone),a=r&&r!==n?r:"";return Ld("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[Ld("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),po("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),po("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:XM(t.startAt,n)}),a&&Ld("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",XM(t.startAt,a)]}),(e??"").trim()&&po("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),po(va,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!qge(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Ox}from"react/jsx-runtime";var n0e=["head","booking","details","confirm"],r0e={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function e9({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}=uf(),f=Vue(d);return e==="head"?Ox(z,{className:"min-[960px]:col-span-2",style:f,children:Ox(jO,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Ox(z,{className:"min-[960px]:col-span-2",style:f,children:Ox(ZO,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Ox(qO,{style:f,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Ox(XO,{buttonLabel:s,style:f}):null}import{useEffect as a0e,useState as ff}from"react";import{jsx as Nx,jsxs as WYe}from"react/jsx-runtime";function jc(e,t){let[o,n]=ff(void 0),[r,a]=ff(0);return a0e(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return Bo.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),a0e(()=>{if(t===void 0)return qR(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var zYe="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Lx(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function hf({form:e,formSlug:t,editing:o=!1}){let[n,r]=ff({}),[a,i]=ff(""),[s,l]=ff(!1),[d,c]=ff(!1),[p,f]=ff(null),[u,h]=ff(null);async function g(b){if(b.preventDefault(),!(o||s||!e||!t)){l(!0),h(null);try{let w=e.fields.map(v=>({fieldKey:v.key,value:n[v.key]??""})),x=await Bo.submitForm(t,{answers:w,...a?{company:a}:{}});f(x?.account??null),c(!0)}catch{h(zYe)}finally{l(!1)}}}return{valueOf:b=>n[b]??"",set:(b,w)=>r(x=>({...x,[b]:w})),honeypot:a,setHoneypot:i,submitting:s,done:d,account:p,error:u,handleSubmit:g}}function Ax({value:e,onChange:t}){return Nx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function gf({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"?Nx("textarea",{required:e.required,rows:r,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l}):e.type==="select"?WYe("select",{required:e.required,value:t,onChange:d=>o(d.target.value),className:n,...l,children:[Nx("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>Nx("option",{value:d,children:d},d))]}):e.type==="checkbox"?Nx("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):Nx("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 El,jsxs as Ok}from"react/jsx-runtime";function UYe(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function i0e({eyebrow:e,title:t}){return Ok("div",{className:"flex flex-col gap-4",children:[e&&El(ut,{text:e,scaled:!1}),t&&El("h2",{className:"font-display text-[min(clamp(40px,5vw,72px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:re(t,!0)})]})}function JO({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return Ok("div",{className:"flex flex-col gap-8",children:[e&&Dt(e).map((l,d)=>El("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:N(l)},d)),a&&(n?r.done?El("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:Lx(n)}):Ok("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",UYe(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?Ok("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:[El(gf,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),Ok("span",{children:[l.label,l.required?El("span",{className:"text-accent",children:" *"}):null]})]},l.key):El(gf,{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)}),El(Ax,{value:r.honeypot,onChange:r.setHoneypot}),r.error&&El("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:r.error}),El("button",{type:s?"button":"submit",disabled:r.submitting,className:"col-span-2 cursor-pointer bg-btn px-6 py-4 font-mono text-[14px] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg hover:text-bg disabled:cursor-wait disabled:opacity-60",children:r.submitting?"Sending\u2026":N(t||Ut.buttonText)})]}):El("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:i?m("Loading form\u2026"):m("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&&El("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:N(o)})]})}var QO=["field","tick","thanks"],s0e={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},eN={field:"styleField",tick:"styleTick",thanks:"styleThanks"},GYe={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 $Ye(e){return typeof e=="string"&&ub.includes(e)?e:null}function l0e(e){let t={};for(let o of QO){let n=$Ye(e[eN[o]]);n&&Object.assign(t,Fc(n,GYe[o]))}return t}import{jsx as tN}from"react/jsx-runtime";var d0e=["head","form"],c0e={head:"Head",form:"Form"};function t9({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=jc(i,s),p=hf({form:c,formSlug:i,editing:l}),f=l0e(d);return e==="head"?tN(z,{as:"div",style:f,children:tN(zt,{look:"statement",num:t,title:o})}):tN(z,{as:"div",style:f,children:tN(JO,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var KYe={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>n0e.map(e=>({region:e,name:r0e[e]})),addBlocked:()=>m("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:()=>d0e.map(e=>({region:e,name:c0e[e]})),addBlocked:()=>m("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:Ege},()=>({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:()=>Mge.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};Ine(KYe);import{jsx as p0e}from"react/jsx-runtime";var VYe={body:"text-[length:var(--size-body,17px)]"},wm=5;function Ix({rating:e}){let t=Math.min(wm,Math.max(0,Math.round(e)));return p0e(z,{role:"img","aria-label":`${t} out of ${wm} stars`,className:`flex gap-1 ${VYe.body} leading-none`,children:Array.from({length:wm}).map((o,n)=>p0e("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var o9="mx-auto max-w-[var(--sf-site-width,1600px)]",YYe=[/^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 m0e(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function n9(e){return e.split(/\s+/).filter(t=>t&&!YYe.some(o=>o.test(m0e(t)))).join(" ")}var jYe=new Set(["max-view-desktop","max-view-wide"]);function qYe(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 Fx(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=m0e(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?qYe(l[1]):void 0;d!==void 0&&(i?jYe.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as XYe,jsx as ZYe}from"react/jsx-runtime";function r9({inBox:e,atTop:t,anyBox:o=!1}){let n=Tu(),r=Jb();return ZYe(XYe,{children:n||o&&r?e:t})}import{createContext as u0e,useContext as i9}from"react";import{Fragment as QYe,jsx as a9}from"react/jsx-runtime";var JYe={atTop:null,inBox:null},s9=u0e(JYe);function oN({pad:e,children:t}){return a9(s9.Provider,{value:e,children:t})}var br=()=>i9(s9).atTop,f0e=()=>i9(s9),h0e=u0e(void 0);function g0e({pads:e,children:t}){return e?a9(h0e.Provider,{value:e,children:t}):a9(QYe,{children:t})}var b0e=()=>i9(h0e);import{jsx as Nk}from"react/jsx-runtime";function kt({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=be(),f=f0e(),u=n9(e),h=o===null?"":n9(o),{className:g,style:b,...w}=Re(u,f.inBox,n),x=Nk(z,{as:"section",ref:s,...i,...w,className:g||void 0,style:b,id:a,children:h?Nk("div",{className:h,children:c}):c}),v=r?{...r,...n}:n,S=d?null:f.atTop,k=d?f.atTop:null,{className:y,style:T,...E}=Re(t?`${o9} ${e}`:e,S,v),_=Nk(z,{as:"section",ref:s,...i,...E,className:y,style:T,id:a,children:o===null?c:Nk("div",{...Re(ge(o,p),k),children:c})});return Nk(r9,{inBox:x,atTop:_,anyBox:l})}import{Fragment as tje,jsx as xm,jsxs as nN}from"react/jsx-runtime";var Bx={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,19px)]",label:"text-[length:var(--size-label,12px)]"},eje="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))]",l9="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 d9({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:nN(kt,{className:"relative z-[2] border-t border-line bg-surface",column:l?l9:eje,padOnColumn:!0,children:[l?null:nN(tje,{children:[(t??"").trim()&&xm(ut,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&xm("h2",{className:`mb-12 font-heading2 ${Bx.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${Bx.headingMediumUpTo800}`,children:re(o??"",!1)})]}),xm("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=>nN("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&&xm(Ix,{rating:c.rating}),(c.title??"").trim()&&xm("h3",{className:`font-display ${Bx.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),xm("div",{className:`flex-1 font-serif ${Bx.bodySmall} leading-[1.65] text-fg-dim`,children:Dt(c.quote).map((p,f)=>xm("p",{className:f?"mt-3":"",children:p},f))}),nN("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[xm("span",{className:`font-mono ${Bx.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),xm("span",{className:`font-mono ${Bx.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var w0e=Fx(l9),c9={top:84,bottom:w0e.bottom,topPhone:84,bottomPhone:w0e.bottomPhone},x0e=c9,[oje,nje]=O2("Testimonials"),rje={type:qs,props:{...Ue,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[Xs]:[{type:"Text",props:{...$e,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Be("quote",Rt,{size:16,lineHeight:1.6}),{type:qs,props:{...Ue,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Xs]:[Be("name",$e,{...ld,weight:500,letterSpacing:.04}),Be("role",Rt,{textStyle:"body-5"})]}}]}},aje={name:"Testimonials",boxProps:e=>({...lc,direction:"column",gap:44,sectionBorder:{top:1},...uu(e,x0e)}),box:[...Up,...Mh(x0e)],parts:[{kind:"group",name:"Heading",props:{...Ue,gap:16},parts:[{...oje,props:$e},{...nje,props:$e,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[rje]}}],site:Eee("title"),drop:{...dc,...cc,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"}};Fn({Testimonials:aje});var Vr={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 aN,tabletKey as p9}from"efficient-easel/draw";var ije={textStyle:"body-5",...go("label",14),letterSpacing:.05,lineHeight:1.5},sje={type:qs,props:{...Ue,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[aN("share")]:"content",[aN("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Xs]:[Be("label",Rt,{...Aa(14),letterSpacing:.05,lineHeight:1.5}),Be("value",{...$e,align:"right"},{...ije,align:"right"})]}},y0e={[Wh]:D_},lje=["dynamic","source","finish","size","wheel"],Lk=il("SpecTable",{slots:{template:[sje]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...Ue,direction:"row",share:"content",gap:48,[p9("gap")]:80,[aN("gap")]:80,...y0e}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),dje=Lk.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(lje.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),rN=Fx(Vr.ownBox),cje={...Lk,parts:dje,boxProps:(e,t)=>{let o=typeof Lk.boxProps=="function"?Lk.boxProps(e,t):Lk.boxProps;return{...o,sectionPaddingBottom:rN.bottom,sectionPaddingBottomPhone:rN.bottomPhone,...y0e,[p9("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[p9("sectionPaddingBottom")]:rN.bottomPhone,[aN("gap")]:36,...rN.line?{sectionBorder:L_({bottom:1})}:{}}}};Fn({SpecTable:cje});Fn({ProductGrid:il("ProductGrid",{slots:{[Lt]:[_fe()]},pressHeading:!0})});Fn({Events:il("Events",{slots:{[Lt]:N8()},coreProps:{sectionAccent:JP},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});Fn({Collections:il("Collections",{slots:{[Lt]:[L8()]},roomBelow:Eme,pressHeading:!0})});Fn({GalleryB:il("GalleryB",{slots:{[Lt]:[A8()]},roomBelow:{bottom:pi.bottom,bottomPhone:O5},pressHeading:!0})});Fn({[hr]:{name:"Product hero",box:[...XJ],boxProps:{direction:"column",gap:0,gapPhone:0,...ht(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[lx]:dx},slots:e=>({[Lt]:n8(e)})}]}});var m9=Fx(Vr.ownBox);Fn({FitmentTable:il("FitmentTable",{slots:{[dO]:[mfe()],[tf]:[ufe()]},roomBelow:{bottom:m9.bottom,bottomPhone:m9.bottomPhone},boxProps:m9.line?{sectionBorder:L_({bottom:1})}:{},pressHeading:!0})});var pje=e=>({type:qs,props:{...Ue,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[Xs]:[{type:qs,props:{...Ue,name:"Words",direction:"column",gap:16},slots:{[Xs]:[Be("eyebrow",$e,{...Aa(13),color:"accent"}),Be("title",$e,{textStyle:"heading-2",...go("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Be("copy",Rt,{textStyle:"body-1",...go("body",15),lineHeight:1.6})]}},{type:qs,props:{...Ue,name:"Picture",direction:"column",gap:12},slots:{[Xs]:[{type:"ImageBlock",props:{[Gs]:"image",aspect:"1/1",fit:"contain"}},Be("tag",{...Rt,align:"right"},{...Aa(11),align:"right"})]}}]}}),mje={name:"Feature Rows",boxProps:{...lc,..._ee,direction:"column",gap:0},box:Up,parts:[{kind:"core",keep:"rest",slots:e=>({template:[pje(e.startLeft===!0)]})}]};Fn({DetailRows:mje});import{phoneKey as f9}from"efficient-easel/draw";var sN=e=>[...Up.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>N_(t,n)],...Mh(e)],h9=(e,t,o)=>(n,r)=>({...lc,sectionAccent:N_(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...uu(n,e)}),g9=(e,t,o)=>({kind:"text",key:e,role:"heading",props:$e,style:{textStyle:"heading-2",...go("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),b9=(e,t,o={})=>({kind:"group",name:"Heading",props:{...Ue,gap:e,gapPhone:e,...o},parts:t}),w9=(e={})=>({kind:"core",keep:"rest",props:R_,...e}),iN=c9,[uje]=O2("ReviewForm"),fje=()=>({name:"Review Form",boxProps:h9(iN,48,32),box:sN(iN),parts:[b9(16,[{...uje,props:$e},g9("title",1,-.02)]),w9()],pressKeepsEmpty:["eyebrow","title"],drop:{...dc,...cc,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[hje]=O2("Reviews"),u9=e=>({...Aa(12),letterSpacing:e}),gje={type:qs,props:{...Ue,name:"Card",gap:16,...ht(40,40,32,32),sectionAccent:0},slots:{[Xs]:[{type:"RatingBlock",props:{[Gs]:"rating"}},Be("title",$e,{textStyle:"heading-1",...go("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Be("quote",Rt,{textStyle:"body-1",...go("body",15),lineHeight:1.65}),{type:qs,props:{...Ue,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[f9("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Xs]:[Be("name",$e,u9(.22)),Be("dateLabel",{...Rt,align:"right"},{...u9(.18),align:"right"}),Be("role",{...Rt,align:"right"},{...u9(.18),align:"right"})]}}]}},bje=()=>({name:"Reviews",boxProps:h9(iN,48,32),box:sN(iN),parts:[b9(16,[{...hje,props:$e},g9("title",1,-.02)]),w9({slots:{template:[gje]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...dc,...cc,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"}}),v0e={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},wje=()=>({name:"Booking Form",boxProps:h9(v0e,40,40),box:sN(v0e),parts:[b9(16,[O_("eyebrow",{...go("label",12),weight:600,letterSpacing:.24,color:"accent"}),g9("heading",.98,-.025),{kind:"text",key:"intro",props:{...Rt,maxWidth:660},style:{textStyle:"heading-1",...go("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),w9()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...dc,...cc}}),k0e={top:88,bottom:88,topPhone:64,bottomPhone:64},xje=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...lc,direction:"column",align:"center",gap:20,gapPhone:20,...uu(e,k0e)}),box:[...Up,...Mh(k0e)],parts:[{...O_("eyebrow"),props:{...$e,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...$e,align:"center",maxWidth:720},style:{textStyle:"heading-1",...go("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...$e,align:"center",maxWidth:560},style:{textStyle:"body-1",...go("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...Ue,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[f9("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...Tee,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...H2,align:"center",icon:"none"},style:{...tu(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...dc,...cc}}),S0e={top:60,bottom:0,topPhone:60,bottomPhone:0},yje=()=>({name:"Contact Form",boxProps:(e,t)=>({...lc,sectionAccent:N_(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...uu(e,S0e)}),box:sN(S0e),parts:[{kind:"group",name:"Header",props:{...Ue,direction:"row",align:"center",share:"content",phoneRow:2,[f9("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[O_("routingNumber"),{kind:"text",key:"routingTagline",props:Rt,style:{textStyle:"heading-1",...go("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:Pee(e.sectionAccent??0,t)})}}],drop:{...dc,...cc}});Fn({ContactRouting:yje(),ReviewForm:fje(),AppointmentBooking:wje(),Reviews:bje(),CheckoutCTA:xje()});var T0e={top:40,bottom:40,topPhone:40,bottomPhone:40},E0e={textStyle:"heading-1",...Qee("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},x9=["heading","intro"],P0e=[Lt,Ua,Ga,$a];function vje(e,t){let o=(t?kb:zZ)(Co,e);return Object.fromEntries(P0e.map(n=>[n,o[n]]))}var kje=()=>({name:"List",boxProps:e=>({...lc,direction:"column",gap:24,gapPhone:24,...uu(e,T0e)}),box:[...Up,...Mh(T0e)],parts:[{kind:"group",name:"Heading",props:{...Ue,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...$e,tag:"h1"},style:E0e,when:e=>!dB(e)},{kind:"text",key:"heading",role:"heading",props:{...$e,tag:"h2"},style:E0e,when:dB},{kind:"text",key:"intro",role:"body",props:Rt,style:{textStyle:"body-1",...go("body",15)}}]},{kind:"core",keep:"rest",props:R_,derive:{reads:[...P0e],props:(e,t)=>vje(e,t.press===!0)}}],pressKeepsEmpty:x9,drop:{...dc,...cc,[X_]:"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"}});Fn({AlloyWheelsListing:kje()});var _0e={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as Sje,useContext as Tje}from"react";function yt(e){return Mt}import{Fragment as Pje,jsx as Hx}from"react/jsx-runtime";var Eje=yt("ProductCard")("buy"),Ro={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)]"},Dx=Sje("catalog");function Ts(){return Tje(Dx)==="catalog"}function bf({children:e}){let t=Ts();return Hx(Pje,{children:e??(t?Hx(z,{"aria-hidden":!0}):null)})}function Mx({children:e}){return Hx(bf,{children:e?Hx(z,{children:e}):null})}function lN({children:e}){return Hx(bf,{children:e?Hx(z,{className:"[.sf-card-rows>*>&]:self-end",...Eje,children:e}):null})}var C0e={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:LP(Ro.label),writable:!0,sized:!0}},R0e={sku:{label:"SKU",follows:"Label",builtIn:LP(Ro.label),writable:!0,sized:!0}},O0e={name:{label:"Name",follows:"Heading 3",builtIn:LP(Ro.headingSmall2),writable:!0,sized:!0}};xse({ProductPrice:_0e,ProductEyebrow:C0e,ProductName:O0e,ProductSku:R0e});function zx(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as _je}from"react/jsx-runtime";import{OpacityIcon as Cje}from"efficient-easel/icons";import{group as dN}from"efficient-easel/screen/lib/document/box-fields";var N0e={fields:{_gContent:dN("Content"),eyebrow:W("Eyebrow",ku.eyebrow),title:j("Heading",ku.title),body:j("Body",ku.body),_gBackground:dN("Background image"),imageSrc:rt("Image","image/*"),overlay:le("Overlay",_je(Cje,{}),0,100,5,60,"%"),_gButton:dN("Button"),...Sl,_gLayout:dN("Layout")}};import{jsx as Ak}from"react/jsx-runtime";import{GroundIcon as A0e,ListIcon as Rje}from"efficient-easel/icons";function I0e(e){let t=e?.data?.root,o=Doe(t?.props)??"";return o&&NB(o,"text").length?o:""}var y9="outsideCardTemplate",Oje={not:{context:y9,is:!0}},Va={[y9]:(e,t)=>{let o=Hp(t.appState,e.props?.id);if(o!==void 0)return o===null&&!I0e(t.appState)},[GX]:(e,t)=>{let o=cd(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[KX]:(e,t)=>cd(t.appState,e.props?.id)?.inCopy};function Yr(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?Ak(er,{noun:"link"}):t==="colour"?Ak(A0e,{}):Ak(Rje,{}),a={...ne(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return tt(a,Oje)}function qc(){return Yr("Link from","link")}var Nje={any:[{field:Xo,set:!1},{context:y9,is:!0,default:!0}]};function wf(e){return tt(e,Nje)}function Ik(e){return e.kind==="link"?_r(Q(e.label)):e.kind==="colour"?Lje(e.label):e.multiline?Je(e.label):Se(e.label)}function Lje(e){return{type:"custom",render:({value:t,onChange:o})=>Ak(Uae,{label:e,icon:Ak(A0e,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function Aje(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var L0e=new WeakMap;function Ya(e,t,o){let n=Object.keys(e).filter(k=>Aje(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?R6(o.appState,r.id)??"":"",l=n.map(k=>typeof r[k]=="string"?r[k].trim():""),d=ft(a?.props),c=i===Mr?Hp(o.appState,a?.props?.id):null,p=c?R6(o.appState,a?.props?.id)??void 0:void 0,f=c?HP(a?.props,c.type,p):"",u=c?ft(c.props):"",h=c?`${String(c.type??"")}\0${u}\0${p??""}`:"",g=i===Mr&&!c?JSON.stringify(a?.props?.[HZ]??null):"",b=a?"":I0e(o.appState),w=[i,s,d,f,h,g,xP(),b,Noe(),...l].join("\0"),x=L0e.get(e);x||L0e.set(e,x=new Map);let v=x.get(w);if(v)return v;let S={...e};return n.forEach((k,y)=>{let T=e[k],E=i===Mr?Lh(o.appState,a,T.cardRowKind):i?UZ(a,T.cardRowKind,s||void 0):NB(b,T.cardRowKind),_=T.cardRowKind==="link"&&!!i&&!E.length;if(!l[y]&&(_||(T.cardRowContent?!i||!E.length:!E.length&&!i&&b))){delete S[k];return}let P=l[y]&&!E.some(H=>H.key===l[y])?l[y]:"",F=T.cardRowKind==="list",I=(H,B)=>F&&B===0&&H.key!==l[y]?"":H.key;S[k]={...T,options:[...F?[]:T.options,...E.map((H,B)=>({label:H.label,value:I(H,B)})),...P?[{label:P,value:P}]:[]]}}),x.set(w,S),S}import{group as B0e}from"efficient-easel/screen/lib/document/box-fields";var cN={meta:"Trailing note"},F0e={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var H0e={fields:{_gContent:B0e("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:Q("Label"),href:_r(Q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:W("Trailing note",cN.meta),_gText:B0e("Text"),rowField:Yr("Shows","text")},resolveFields:(e,t)=>Ya(t.fields,e,t),showWhenFacts:Va};import{jsx as fi,jsxs as Wje}from"react/jsx-runtime";import{ButtonIcon as Uje,ButtonIconIcon as Gje,IconAfterTextIcon as $je,IconBeforeTextIcon as Kje}from"efficient-easel/icons";import{SettingsField as Vje}from"efficient-easel/panel";import{useSelectedFields as $0e}from"efficient-easel/easel";import{buttonFieldSet as Yje}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as jje}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as qje,Segmented as Xje}from"efficient-shell/ui";function pN(e){return typeof e=="boolean"?e:!0}import{parseOption as Ije}from"efficient-shell/format";var v9=["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"],Fje=["before","after","end"];function k9(e){return typeof e=="string"&&v9.includes(e)?e:void 0}function D0e(e,t){return k9(e)??(pN(t)?"arrow-right":"none")}function Fk(e){return Ije(Fje,"after",e)}function M0e(e,t){return Fk(e)==="end"&&Dg(t)==="fill"}function Dg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function z0e(e,t,o,{atSectionLine:n=!1}={}){let r=Dg(e);if(Tr(o)){let i=Dg(o),s=Tr(t)?Dg(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(Tr(t)){let i=Dg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as fN}from"efficient-easel/screen/lib/document/style-fields";import{group as W0e}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as Zje}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as S9}from"react/jsx-runtime";import{LockIcon as Bje}from"efficient-easel/icons";import{FieldText as Hje}from"efficient-easel/fields";import{SettingsField as Dje}from"efficient-easel/panel";import{keptByRow as Mje}from"efficient-easel/screen/lib/document/style-fields";function zje(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??qre}-words`;return S9(Dje,{label:m("Words"),icon:S9(Bje,{}),htmlFor:o,children:S9(Hje,{id:o,value:m("Set by country"),onChange:()=>{},readOnly:!0})})}}}function mN(e){return Mje(e)}function uN(e,t,o,n=[]){return $C(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?zje():a]))}var T9=e=>IC(e==="none"?"no-symbol":e),Jje=v9.map(e=>({value:e,icon:e==="none"?wre(T9(e),fi(BB,{value:e})):T9(e)})),K0e=Q("Button");function Qje({value:e,onChange:t}){let o=$0e(),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(nae,{label:"Button",icon:fi(Uje,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):K0e.render({value:r,field:{label:"Button"},onChange:a=>t(Eae(a))})}function eqe({value:e,onChange:t}){let o=$0e(),n=D0e(e,o.values.arrow),r=Fk(o.values.iconPosition),a=Dg(o.values.widthFit)==="fill",i=T9("icon-at-end");return fi(Vje,{label:m("Icon"),icon:fi(Gje,{size:18}),value:n==="none"?void 0:fi(BB,{value:n}),children:Wje("div",{className:"flex items-center gap-2",children:[fi(qje,{label:m("Icon"),value:n,options:Jje,onChange:t}),n!=="none"&&fi(Xje,{size:"sm",block:!0,label:m("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:fi(Kje,{size:16}),label:fi("span",{className:"sr-only",children:m("Icon before text")}),title:m("Icon before text")},{value:"after",icon:fi($je,{size:16}),label:fi("span",{className:"sr-only",children:m("Icon after text")}),title:m("Icon after text")},...a?[{value:"end",icon:i,label:fi("span",{className:"sr-only",children:m("Icon at the far end")}),title:m("Icon at the far end")}]:[]]})]})})}var U0e=()=>A6(tr().theme),G0e=Yje({lengthUnits:OC,follows:{useFill:()=>U0e().fill,useText:()=>U0e().ink,useBorder:()=>{let[e]=xc("variant"),[t]=xc("buttonColor"),{theme:o}=tr(),n=VB({variant:e,buttonColor:t}).border.width,r=Tr(t)??(e==="ghost"?eJ(o).text:A6(o).fill);return{width:n,color:r}},useCorners:()=>iJ(tr().cornerRadiusPx),useFillOpacity:()=>VB({variant:xc("variant")[0]}).fillOpacity},usePresets:Lre,resetTo:e=>Pae(e,m("Styles")),padding:{fallback:aae,tablet:!0},phone:jje,say:ew});function tqe(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var V0e={fields:{label:Cae(K0e,e=>fi(Qje,{value:e.value,onChange:e.onChange})),labelText:Iae("label"),href:wf({...qe("Button link"),...fN("label")}),consentWords:mN("label"),_gButton:W0e("Button"),rowField:Yr("Shows","text"),[Xo]:qc(),...tqe(G0e,Zje.Design),_gStyle:W0e("Style"),variant:fN("buttonColor"),icon:{type:"custom",render:e=>fi(eqe,{value:e.value,onChange:e.onChange})},iconPosition:fN("icon"),arrow:fN("icon"),...G0e},resolveFields:(e,t)=>uN(Ya(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Va};import{jsx as Bk}from"react/jsx-runtime";import{AccentIcon as oqe,ColumnsIcon as X0e,StylesIcon as Z0e}from"efficient-easel/icons";import{group as E9}from"efficient-easel/screen/lib/document/box-fields";import{newId as j0e}from"efficient-easel/data";function hN(e,{rows:t="items",label:o="title"}={}){let n=ft(e);return n?Bp(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()||m("Card {n}",{n:a+1}),value:KZ(dn(r),a)}))}var Y0e=new WeakMap;function gN(e,t){let o=Y0e.get(e);o||Y0e.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 q0e(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>j0e(t),enumerable:!0})}function bN(e,t="items"){if(!Array.isArray(e[t])||ft(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 f=r(c);if(f&&!i.has(f))return i.add(f),c;let u=!f&&a&&n===String(p+1);if(f||u){let h=j0e("card");return i.add(h),l=!0,u&&(s=h),{...c,key:h}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as nqe}from"efficient-easel/data";var rqe=e=>nqe(e.template)&&e.template.length>0;function aqe(e,t){let o=rqe(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,gN(r,hN(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,lqe(r)]]:[[n,r]]))}var iqe=Object.fromEntries(_2("Cards").filter(e=>!e.everySource).map(e=>[e.key,Ik(e)])),sqe=Object.fromEntries(_2("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,Ik(e)])),J0e=new WeakMap;function lqe(e){let t=J0e.get(e);return t||J0e.set(e,t={...e,arrayFields:iqe}),t}var Q0e={fields:{_gSource:E9("Source"),dataSource:oo("Card content","Manual"),[ww]:xw(),_gContent:E9("Content"),eyebrow:W("Eyebrow",Hb.eyebrow),eyebrowLook:ne("Eyebrow style",Bk(Z0e,{}),[...ol],Gp("Cards")),title:j("Heading",Hb.title),items:{type:"array",label:"Cards",arrayFields:sqe,defaultItemProps:q0e({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...Cee,highlightedCard:ne("Highlighted card",Bk(oqe,{}),[{label:"None",value:""}],""),highlightBadge:W("Highlight badge","Most popular"),_gStyle:E9("Style"),cardStyle:lo("Card style",Bk(Z0e,{}),[{label:"Cards",value:"cards",picture:YB.cards},{label:"Label only",value:"label-only",picture:YB["label-only"]}],"cards",{columns:2,cell:Pr}),columns:le("Columns",Bk(X0e,{}),2,4,1,3),fillLastRow:oe("Last card fills its row",!1,Bk(X0e,{}),"When the last row is short, its last card widens to fill it.")},resolveData:(e,t)=>{let o=t?.lastData?.props,n=gse(e.props,o),r=OP(n),a=r===e.props?e:{...e,props:r},i=a.props,s=bN(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=ct(no("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,mt.Cards.headRows),n=e.props,r=aqe(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:Se("Feature label"),href:_r(Q("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:Gp("KeyFeatures")}}:{}}}};import{jsx as dqe}from"react/jsx-runtime";import{StickyIcon as cqe}from"efficient-easel/icons";import{group as ebe}from"efficient-easel/screen/lib/document/box-fields";var tbe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Label"),count:Q("Count")},getItemSummary:e=>e?.label?`${e.label}${e.count?` \xB7 ${e.count}`:""}`:"Tab"},activeTab:nn(_r(Q("Active tab","All"))),_gLinks:ebe("Links"),links:{type:"array",label:"Right links",arrayFields:{label:Q("Label"),href:_r(Q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:ebe("Style"),sticky:oe("Stick to top",!0,dqe(cqe,{}))}};import{jsx as pqe}from"react/jsx-runtime";import{StylesIcon as mqe}from"efficient-easel/icons";import{group as obe}from"efficient-easel/screen/lib/document/box-fields";var uqe=[...toe],nbe={fields:_i({_gContent:obe("Content"),eyebrow:W("Chip label",qb.eyebrow),title:j("Heading",qb.title),body:j("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:Se("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:W("Caption","Illustrative example"),_gStyle:obe("Style"),chartStyle:lo("Chart style",pqe(mqe,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:XC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:XC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:XC.donut}],"bars",{columns:3,cell:Pr}),valueSuffix:nn(W("Value suffix","%"))},uqe,Ia)};import{jsx as Oqe}from"react/jsx-runtime";import{group as Nqe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as at,Fragment as _9,jsxs as Ad}from"react/jsx-runtime";import{useId as fqe,useState as hqe}from"react";import{InspectorUpLevel as Hk}from"efficient-easel/chrome";import{useEasel as gqe}from"efficient-easel/easel";import{ListField as sbe}from"efficient-easel/fields";import{SettingsField as lbe}from"efficient-easel/panel";import{ClockIcon as rbe,ContrastIcon as bqe,GlobeIcon as wqe,LinkIcon as xqe,LocationIcon as yqe,PhoneIcon as vqe,SquareIcon as kqe,TypeIcon as C9}from"efficient-easel/icons";import{useSectionOps as Sqe}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as Tqe}from"efficient-easel/draw";var R9=(e,t)=>t||e?Rse(e,t):m("Ungrouped");function Eqe(e){let t=[];return e.forEach((o,n)=>{let r=Nu(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 P9({children:e}){return at("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--ink-faint)",margin:"14px 0 6px"},children:e})}var dbe={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"},Pqe={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},cbe={...Pqe,color:"var(--status-danger-soft-ink)"};function ym({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=fqe();return at(lbe,{label:e,icon:r??at(C9,{}),htmlFor:l,children:n?at("textarea",{id:l,value:t,placeholder:o,onChange:d=>a(d.target.value)}):at("input",{id:l,type:"text",value:t,placeholder:o,onChange:d=>a(d.target.value),onBlur:i,onKeyDown:s})})}var _qe=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],Cqe=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function abe({label:e,icon:t,options:o,value:n,onChange:r}){return at(lbe,{label:e,icon:t,children:at("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:o.map(a=>{let i=n===a.value;return at("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:m(a.label)},a.value)})})})}function ibe({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||Rn.mapTheme,a=Rn;return Ad(_9,{children:[!o&&at(P9,{children:m("Section")}),at(ym,{label:m("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),at(ym,{label:m("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),at(ym,{label:m("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:Ad(_9,{children:[at(P9,{children:m("City strip")}),at(ym,{label:m("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),at(ym,{label:m("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),at(abe,{label:m("Shape"),icon:at(kqe,{}),options:Cqe,value:j_(e.imageShape),onChange:i=>t({imageShape:i})}),at(P9,{children:m("Map & Theme")}),at(abe,{label:m("Map theme"),icon:at(bqe,{}),options:_qe,value:r,onChange:i=>t({mapTheme:i})})]})]})}function Rqe({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((u,h)=>Nu(u)===t?h:-1).filter(u=>u>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(Nu).filter(u=>u!==t)),[d,c]=hqe(t),p=u=>o(e.map(h=>Nu(h)===t?{...h,...u}:h)),f=()=>{let u=d;if(u!==t){if(l.has(u)){c(t);return}o(e.map(h=>Nu(h)===t?{...h,group:u}:h)),a(u)}};return Ad("div",{className:"sf-locations-view",children:[at(Hk,{inline:!0,name:m("Section"),onSelect:n,title:R9(t,s)}),at(ym,{label:m("Group heading"),value:d,placeholder:m("e.g. Americas"),onChange:c,onBlur:f,onKeyDown:u=>{u.key==="Enter"&&u.currentTarget.blur()}}),l.has(d)&&d!==t&&at("p",{className:"sf-note sf-note--error",role:"alert",children:m("Another group already uses this heading \u2014 pick a different one.")}),at(ym,{label:m("Group name"),value:s,placeholder:m("Shown beside the heading"),onChange:u=>p({groupName:u})}),at(sbe,{label:m("Cities in this group"),noun:m("city"),items:i.map(u=>e[u]),onChange:u=>o(Ose(e,t,u)),newItem:()=>({...lH,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(u,h)=>Ad("button",{type:"button",style:dbe,onClick:()=>r(i[h]),children:[at("span",{children:u?.name||m("City")}),at("span",{"aria-hidden":"true",children:"\u203A"})]})}),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:cbe,onClick:()=>{o(e.filter(u=>Nu(u)!==t)),n()},children:pr("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function pbe({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=Cse(),r=Rie(),a=Eqe(o),{appState:i,selectedItem:s}=gqe(g=>g),l=Sqe(),d=s?.props??{},c=g=>{if(!s)return;let b=(i.data.content??[]).findIndex(w=>w.props.id===s.props.id);b<0||l.replaceComponent(Tqe,b,{type:s.type,props:{...s.props,...g}})},p=(g,b)=>t(o.map((w,x)=>x===g?{...w,...b}:w)),f=()=>{let g=new Set(a.map(x=>x.key)),b=a.length+1,w=`Group ${b}`;for(;g.has(w);)w=`Group ${++b}`;return w};if(n.level==="texts")return Ad("div",{className:"sf-locations-view",children:[at(Hk,{inline:!0,name:m("Locations"),onSelect:()=>bd({level:"groups"}),title:m("Texts")}),at(ibe,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let g=o[n.index];return g?Ad("div",{className:"sf-locations-view",children:[at(Hk,{inline:!0,name:String(g.name??"")||m("City"),onSelect:()=>bd({level:"city",index:n.index}),title:m("Image")}),at(Hre,{value:g.photo||"",onChange:b=>p(n.index,{photo:b}),label:"Image",accept:"image/*"})]}):u()}if(n.level==="map"){let g=o[n.index];return g?Ad("div",{className:"sf-locations-view",children:[at(Hk,{inline:!0,name:String(g.name??"")||m("City"),onSelect:()=>bd({level:"city",index:n.index}),title:m("Map")}),at(aR,{value:g.geocode,onChange:b=>p(n.index,{geocode:b}),label:"Coordinates"}),at(ym,{label:m("Directions link"),icon:at(xqe,{}),value:String(g.mapsUrl??""),onChange:b=>p(n.index,{mapsUrl:b})})]}):u()}if(n.level==="city"){let g=n.index,b=o[g];if(!b)return u();let w=Nu(b),x=(S,k)=>p(g,{[S]:k}),v=(S,k,y,T=!1)=>at(ym,{label:k,icon:y,textarea:T,value:String(b[S]??""),onChange:E=>x(S,E)});return Ad("div",{className:"sf-locations-view",children:[at(Hk,{inline:!0,name:R9(w,String(b.groupName??"")),onSelect:()=>bd({level:"group",key:w}),title:b.name||m("City")}),v("name",m("Location name"),at(C9,{})),v("state",m("State / Province"),at(C9,{})),v("country",m("Country"),at(wqe,{})),v("address",m("Address"),at(yqe,{}),!0),v("phone",m("Phone"),at(vqe,{})),v("hours",m("Opening hours"),at(rbe,{})),v("timezone",m("Timezone chip"),at(rbe,{})),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:cbe,onClick:()=>{t(o.filter((S,k)=>k!==g)),bd({level:"group",key:w})},children:m("Delete city")})})]})}if(n.level==="group")return a.some(g=>g.key===n.key)?at(Rqe,{cards:o,groupKey:n.key,onChange:t,onBack:()=>bd({level:"groups"}),onOpenCity:g=>bd({level:"city",index:g}),onNavigate:g=>bd({level:"group",key:g})},n.key):u();function u(){return Ad("div",{className:"sf-locations-view",children:[at(ibe,{props:d,setSection:c}),!r&&at(_9,{children:h()})]})}function h(){return at(sbe,{label:m("Locations"),noun:m("group"),items:a,onChange:g=>{let b=g.find(w=>!a.some(x=>x.key===w.key));t(Nse(o,g.map(w=>w.key),w=>[{...lH,group:w,groupName:""}])),b&&bd({level:"group",key:b.key})},newItem:()=>({key:f(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:a.length===0?at("div",{style:{fontSize:12,color:"var(--ink-faint)",padding:"4px 0"},children:m("No locations yet.")}):void 0,renderRow:g=>Ad("button",{type:"button",style:dbe,onClick:()=>bd({level:"group",key:g.key}),children:[at("span",{style:{fontWeight:500},children:R9(g.key,g.name)}),Ad("span",{style:{color:"var(--ink-faint)"},children:[pr("{n} city","{n} cities",g.indices.length)," \u203A"]})]})})}return u()}var mbe={fields:{_gOffices:Nqe("Offices"),dataSource:oo("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>Oqe(pbe,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!BC(o))return e;let n=await HC(o,i=>{let s=q_(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(", ")}),{[bP]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>no("ContactLocations",t,e.props)};import{jsx as ube}from"react/jsx-runtime";import{ClockIcon as Lqe,TagIcon as Aqe}from"efficient-easel/icons";var Iqe=[...soe],fbe={fields:_i({title:W("Heading",pB.title),zeroText:nn(W("At zero",pB.zeroText)),endsAt:Wae("Ends",ube(Lqe,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:oe("Unit labels",!0,ube(Aqe,{}))},Iqe,Ia)};import{jsx as Dk,jsxs as Fqe}from"react/jsx-runtime";import{Suspense as Bqe,lazy as Hqe,useState as Dqe}from"react";import{Button as Mqe}from"efficient-shell/ui";import{CodeIcon as zqe}from"efficient-shell/icons/efficient";import{SettingsField as Wqe}from"efficient-easel/panel";import{iconOf as Uqe}from"efficient-easel/screen/lib/document/box-fields";var Gqe=Hqe(()=>import("./chunks/CustomHtmlCodeWindow-FSTAOP3D.js"));function $qe({value:e,onChange:t}){let[o,n]=Dqe(!1);return Fqe(Wqe,{label:m("HTML"),icon:Uqe(Dk(zqe,{})),children:[Dk(Mqe,{variant:"secondary",onClick:()=>n(!0),children:m("Edit code")}),o?Dk(Bqe,{fallback:null,children:Dk(Gqe,{open:!0,onClose:()=>n(!1),value:typeof e=="string"?e:"",onChange:t})}):null]})}var hbe={fields:{html:{type:"custom",label:"HTML",render:({value:e,onChange:t})=>Dk($qe,{value:e,onChange:t})}}};import{jsx as O9}from"react/jsx-runtime";import{StylesIcon as Kqe,WeightIcon as Vqe,WidthIcon as Yqe}from"efficient-easel/icons";import{keptByRow as jqe}from"efficient-easel/screen/lib/document/style-fields";var qqe={any:[{field:"style",set:!1},{field:"style",is:Zh}]},Xqe={not:{field:"style",is:"none"}},gbe={fields:Ie({style:lo("Style",O9(Kqe,{}),pae.map(e=>({...e,picture:gae(e.value)})),Zh,{columns:3,cell:Pr}),spacing:jqe("sectionPaddingTop"),thickness:le("Thickness",O9(Vqe,{}),1,8,1,1,i1),...gd(i1,"thickness"),lengthPct:le("Length",O9(Yqe,{}),10,100,1,100,s1),...gd(s1,"lengthPct")},[[["thickness"],qqe],[["lengthPct"],Xqe]]),resolveFields:(e,{fields:t})=>{let o=jC[qC(e.props.spacing)],n=jp({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return c1(t,n)}};import{jsx as L9}from"react/jsx-runtime";import{HashIcon as Zqe,StickyIcon as Jqe,TargetIcon as Qqe}from"efficient-easel/icons";import{group as wbe,select as eXe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Wx}from"efficient-easel/screen/lib/document/device-fields";var N9={title:"On this page"},bbe={label:"Contents",defaultProps:{title:N9.title,sticky:!0}};var xbe={fields:{title:Wx("desktop",W("Heading",N9.title)),_gList:Wx("desktop",wbe("List")),[fR]:Wx("desktop",eXe("Number",L9(Zqe,{}),Wte,Ute)),markCurrent:Wx("desktop",oe("Mark the current section",!1,L9(Qqe,{}),"The row of the section a reader is in stands out as they scroll.")),_gStick:Wx("desktop",wbe(Y6)),sticky:Wx("desktop",oe(Y6,!0,L9(Jqe,{})))}};import{group as tXe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as A9}from"efficient-easel/screen/lib/document/device-fields";var Mk={hint:"Search questions",noMatchText:"No question matches your search."},ybe={label:"List search",defaultProps:{hint:Mk.hint,noMatchText:Mk.noMatchText}};var vbe={fields:{_gContent:A9("desktop",tXe("Content")),hint:A9("desktop",nn(W("Hint",Mk.hint))),noMatchText:A9("desktop",nn(W("No match",Mk.noMatchText)))}};import{group as Sbe}from"efficient-easel/screen/lib/document/box-fields";var wN={toc:"On this page"},kbe={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var Tbe={fields:{_gContent:Sbe("Contents"),tocTitle:W("Contents heading",wN.toc),_gSections:Sbe("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:Se("Contents label"),heading:Se("Title"),body:Je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as Ebe}from"efficient-easel/screen/lib/document/box-fields";var Pbe={fields:{_gContent:Ebe("Content"),eyebrow:W("Eyebrow",xu.eyebrow),title:j("Heading",xu.title),deck:j("Deck / standfirst",xu.deck),_gMeta:Ebe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:Se("Label"),value:Se("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var xN=[{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."}],_be={label:"Document Detail Cards",defaultProps:{cards:[]}};var Cbe={fields:{cards:lw({type:"array",label:"Cards",arrayFields:{label:Se("Label"),value:Se("Value"),desc:Je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},xN)}};import{jsx as oXe}from"react/jsx-runtime";import{PageIcon as nXe}from"efficient-easel/icons";import{group as rXe}from"efficient-easel/screen/lib/document/box-fields";var Ux={metaLabel:U.label,metaValue:U.value},Rbe={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var Obe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Tab label"),href:qe("Links to"),current:oe("Current page",!1,oXe(nXe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:rXe("Trailing note"),metaLabel:W("Note label",Ux.metaLabel),metaValue:W("Note value",Ux.metaValue)}};import{jsx as aXe}from"react/jsx-runtime";import{StylesIcon as iXe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as sXe}from"efficient-easel/screen/lib/document/box-fields";var Nbe={fields:{eyebrow:W("Eyebrow",U.eyebrow),...dl("align",{access:sXe}),eyebrowLook:ne("Look",aXe(iXe,{}),ol,A_)}};import{jsx as Abe}from"react/jsx-runtime";import{ChevronIcon as lXe,LinkIcon as dXe}from"efficient-easel/icons";import{group as F9}from"efficient-easel/screen/lib/document/box-fields";var xf={num:U.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},I9=Zn.FAQ,Lbe={label:"Q&A",inline:!0,fields:I9,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var Ibe="faqOnTemplate",cXe={not:{context:Ibe,is:!0}},pXe={[Ibe]:e=>xee("FAQ",e.props??{})},mXe=new Set([eQ,...tQ]);function uXe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||mXe.has(t))}var Fbe={fields:{_gContent:F9("Content"),num:W("Number",xf.num),title:j("Heading",xf.title),linkText:W("Button",xf.link),linkHref:qe("Link"),_gQuestions:F9("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:Se("Question"),answer:Je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:F9("Layout"),defaultOpen:oe("Open first answer",!0,Abe(lXe,{})),openFromLink:oe("Open from a link",!1,Abe(dXe,{}),"A link to a question opens its answer. Each question gets an anchor made from its words, after the section's Anchor."),...I9},resolveFields:(e,{fields:t})=>{let o=ct(t,e.props.headPlacement,mt.FAQ.headRows);return _i(o,uXe(o),cXe)},showWhenFacts:pXe};import{jsx as Ki,Fragment as yN,jsxs as hXe}from"react/jsx-runtime";import{useContext as gXe}from"react";import{SettingsField as Mbe}from"efficient-easel/panel";import{FieldSelect as zbe}from"efficient-easel/fields";import{BlogPostIcon as Wbe}from"efficient-easel/icons";import{ScreenDocumentContext as bXe}from"efficient-easel/screen/components/ScreenDocumentContext";var Bbe=yx({fetch:async(e,t)=>await Ys().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:Dn});import{useEffect as Hbe,useRef as fXe,useState as B9}from"react";function Mg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Gx({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=B9(null),[s,l]=B9(!1),[d,c]=B9(!1),p=fXe(!0);return Hbe(()=>(p.current=!0,e().then(f=>{p.current&&i(f)}),()=>{p.current=!1}),[]),Hbe(()=>{if(!n?.slug||a===null)return;let f=t(a,n);if(!f)return;let u=o(f);Mg(u,n)&&r(u)},[a]),{rows:a,loading:a===null,refreshing:s,errored:d,refresh:()=>{n?.slug&&(l(!0),c(!1),e(!0).then(f=>{if(!p.current)return;i(f);let u=t(f,n);u&&r(o(u))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function Dbe(e,t){return{label:t?m("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function $x({value:e,onChange:t}){let o=gXe(bXe);return o&&!o.capabilities.hasBlog?e?.slug?Ki(wXe,{value:e,onChange:t}):Ki(yN,{}):Ki(xXe,{value:e,onChange:t})}function wXe({value:e,onChange:t}){return Ki("div",{children:Ki(Mbe,{label:m("Blog post source"),icon:Ki(Wbe,{}),hint:Ki(yN,{children:m("Linked to a blog post. This editor has no blog to pick another from; choose \u201CNone (manual)\u201D to author the section yourself.")}),children:Ki(zbe,{value:e.slug,ariaLabel:m("Blog post source"),onChange:o=>o?void 0:t(null),options:[{label:m("None (manual)"),value:""},{label:e.title||e.slug,value:e.slug}]})})})}function xXe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Gx({load:Bbe,resolve:(f,u)=>f.find(h=>h.slug===u.slug),snapshot:N1,value:e,onChange:t}),s=f=>{if(!f){t(null);return}let u=(o??[]).find(h=>h.slug===f);u&&t(N1(u))},l=e?.slug&&!(o??[]).some(f=>f.slug===e.slug),d=a?"error":r?"loading":"idle",c=m("Storefront \u2192 Blog"),p=a?m("Couldn\u2019t reach {place}.",{place:c}):r?m("Syncing from {place}\u2026",{place:c}):m("Linked to \u201C{name}\u201D",{name:e?.title||e?.slug||""});return hXe("div",{children:[Ki(Mbe,{label:m("Blog post source"),icon:Ki(Wbe,{}),hint:e?.slug?void 0:Ki(yN,{children:m("Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.",{place:c})}),children:Ki(zbe,{value:e?.slug??"",ariaLabel:m("Blog post source"),onChange:s,readOnly:n,options:[{label:m("None (manual)"),value:""},...l?[Dbe({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(f=>({label:f.title,value:f.slug}))]})}),e?.slug?Ki(pl,{status:d,statusText:p,onRefresh:i,busy:r,hint:Ki(yN,{children:m("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 yXe}from"efficient-easel/screen/lib/document/box-fields";var jr={badge:"Featured",imageDate:U.date,category:U.category,readLabel:"0 min read",date:U.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:pc.href},Ube={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var vXe=["image","imageDate","date","title","dek","ctaHref"],Gbe={fields:_i({source:Vo($x),_nBound:tt(ml(eR),tR),image:rt("Cover image","image/*"),badge:W("Badge",jr.badge),imageDate:W("Image date",jr.imageDate),_gContent:yXe("Content"),category:W("Category",jr.category),readLabel:W("Read time",jr.readLabel),date:W("Date",jr.date),title:j("Heading",jr.title),dek:j("Dek",jr.dek),ctaText:W("Button",jr.ctaText),ctaHref:qe("Link")},vXe,cw)};import{jsx as wr}from"react/jsx-runtime";import{phoneKey as Lr,tabletKey as ka}from"efficient-easel/draw";import{keptByRow as wZe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as $be}from"react/jsx-runtime";import{OpacityIcon as kXe,StylesIcon as SXe}from"efficient-easel/icons";function Kx(){return{darken:le("Darken",$be(kXe,{}),md.min,md.max,md.step,md.fallback,md.unit),darkenStyle:ne("Darken style",$be(SXe,{}),I2,I2[0].value)}}var TXe={"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]"},EXe=`calc(${EJ} - ${F6}*2)`,Kbe=`var(${PJ},${F6})`,qqt=`pointer-events-none absolute inset-y-0 left-[${Kbe}] right-[${Kbe}] z-[6] mx-auto max-w-[var(${_J},${EXe.replace(/ /g,"_")})]`;function vN(e,t){return`pointer-events-auto absolute ${TXe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function Vbe(e){return a_.includes(e)?e:null}import{parseOption as H9}from"efficient-shell/format";var PXe=a_,D9="top-right",_Xe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],M9=["cards","dots","numbers","bar","squares"],kN="cards",SN={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},TN=["tabs","largeTabs"],Ybe=!0;function EN(e){return H9(_Xe,kN,e)}function jbe(e){return H9(M9,kN,e)}function CXe(e){return H9(PXe,D9,e)}var qbe={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 Xbe(e,t){return vN(CXe(t),qbe[EN(e)])}function Zbe(e){return`flex ${qbe[EN(e)]}`}function Jbe(e){return e.shown!==!1&&(e.count??0)>1}function RXe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function OXe(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 Qbe(e,t){let o=Array.from(t,RXe);return OXe(e,o)?e:o}import{deviceField as Id}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as xZe,ClockIcon as yZe,CropIcon as Owe,GapIcon as vZe,MediaLayoutStackedIcon as zwe,LineBetweenIcon as kZe,LineSolidIcon as SZe,ListIcon as TZe,NumberedListIcon as Nwe,ShadowIcon as EZe,StylesIcon as Lwe,TableIcon as Awe,TargetIcon as PZe,WrapIcon as Wwe}from"efficient-easel/icons";var Wg=s_.map(e=>e.shape),W9=e=>e!==Js&&Wg.includes(String(e??""))?e:null;function zg(e){return W9(e)??(su(e)?Js:"auto")}function PN(e){let t=zg(e);return t==="auto"?"":Fh(t)}function ewe(e,t,o){return zJ({desktop:e,phone:z9(t)!==null?t:o,tablet:o})}var NXe={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)]"},LXe={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 AXe(e,t){let o=zg(t);return o==="auto"&&W9(t)===null?null:o===Js?t===e?null:o:o===zg(e)?null:o}var IXe={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 z9(e){let t=zg(e);return t==="auto"&&W9(e)===null?null:t}function twe(e,t,o){let n=z9(o),r=AXe(e,z9(t)!==null?t:o);if(r===null&&n===null)return PN(e);let a=zg(e);return[r===null?PN(e):a==="auto"?"":NXe[a],r===null?"":LXe[r],n===null?"":IXe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as Uwe,VIEW_KEY_ACCESS as Xc,group as Gg,phoneTwinFields as Zc}from"efficient-easel/screen/lib/document/box-fields";var FXe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},BXe=S2.map(e=>({value:e.value,picture:IC(FXe[e.value])}));function _N(e,t){return lo("Separator",e,BXe,t,{resolve:QX})}import{jsx as HXe}from"react/jsx-runtime";import{cloneElement as DXe}from"react";import{PaddingXIcon as MXe}from"efficient-easel/icons";import{deviceField as zXe}from"efficient-easel/screen/lib/document/device-fields";function owe(){let e=ne(Iie,HXe(MXe,{}),qQ,XQ);return zXe("desktop",{...e,render:t=>{let o=e.render({...t,value:T_(t.value),onChange:n=>t.onChange(JQ(n))});return DXe(o,{hint:m(ZQ)})}})}import{newNodeId as U9}from"efficient-easel/draw";var nwe=["First row","Second row","Third row"],WXe="Write the words for this row.",rwe=e=>({type:"Text",props:{...$e,id:U9("Text"),tag:"p",text:e}}),UXe=(e,t)=>({type:fe,props:{...Ue,id:U9(fe),...t?{startsOpen:!0}:{},rowTitle:[rwe(e)],content:[{type:"Text",props:{...Rt,id:U9("Text"),tag:"p",text:WXe}}]}}),GXe=e=>!Array.isArray(e)||e.length===0;function awe(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:nwe.map((r,a)=>UXe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==fe||!GXe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(nwe[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[rwe(i)]}}});return o?{...e,content:n}:e}import{parseOption as $Xe}from"efficient-shell/format";var zk="rowStyle",KXe=["plain","numbered","chevron"],iwe=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function swe(e){return $Xe(KXe,"plain",e)}var CN="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",RN="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",ON="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",lwe="border-t border-line",dwe="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",cwe="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as VXe}from"efficient-easel/screen/lib/content/view-tiers";var NN=Zn.Flex,pwe={label:"Box",fields:NN,phoneOrder:{prop:VXe("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 mwe}from"react/jsx-runtime";import{isNode as YXe}from"efficient-easel/data";import{useEasel as jXe}from"efficient-easel/easel";import{PhoneOrderField as qXe}from"efficient-easel/fields";import{slotChildRowName as XXe}from"efficient-easel/draw";import{deviceField as ZXe}from"efficient-easel/screen/lib/document/device-fields";function JXe(){try{let e=jXe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!YXe(a)||typeof t[a.type]?.render!="function"?!1:Tr(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 QXe({value:e,onChange:t,readOnly:o}){let n=JXe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return mwe(qXe,{stored:"ids",value:e,ids:a,onChange:t,readOnly:o,noun:"block",hint:m("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=>XXe(r[s],i,Po,void 0,oie)})}function uwe(){return ZXe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>mwe(QXe,{value:e,onChange:t,readOnly:o})})}import{jsx as $k}from"react/jsx-runtime";import{SettingsDefaultReset as cZe,SettingsField as pZe}from"efficient-easel/panel";import{Segmented as mZe}from"efficient-shell/ui";import{SwapIcon as uZe}from"efficient-easel/icons";import{describedAs as fZe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as hZe}from"efficient-easel/screen/lib/document/device-fields";var Wk="Mirror cards",Uk="off",G9=[{value:Uk,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],fwe={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function yf(e){return e==="even"||e==="odd"?e:null}function hwe(e){return yf(e)??void 0}function Gk(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function Ug(e,t,o){return!t||e.direction!=="row"||o||eu("row",e.separator)||e.loop==="scroll"||e.line===!0||ps(e)||S6(e.columns)!==""||cZ(e.columnsTablet)!==""?!1:!(cs(e.share)===""&&gb(e.wrap)!=="")}function gwe(e,t){let o=yf(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var bwe="view-wide:flex-row-reverse",eZe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},tZe={left:"view-wide:text-right!",right:"view-wide:text-left!"},oZe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},nZe={start:"view-wide:items-end!",end:"view-wide:items-start!"},rZe={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!"},LN=(e,t)=>(typeof t=="string"?$s(e,t):void 0)??"";function $9(e,t,o){return e?[LN(eZe,t),LN(tZe,o)].filter(Boolean).join(" "):""}function wwe(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=nZ(o,r,void 0).tablet;return[LN(oZe,o),a?rZe[a]:""].filter(Boolean).join(" ")}return t==="column"?LN(nZe,n):""}function K9(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||ps(e)?!1:S6(e.columns)===""}function AN(e,t){let o=yf(e.mirrorCards);return o&&K9(e,t)?{mirror:o}:null}import{isNodeList as Ewe}from"efficient-easel/data";import{parseOption as xwe}from"efficient-shell/format";var aZe=["columns","rows-left","rows-right"],iZe=["half","third"],ywe=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],vwe=[{value:"half",label:"Half"},{value:"third",label:"One third"}],kwe=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function sZe(e){return xwe(aZe,"columns",e)}var lZe={"rows-left":"even","rows-right":"odd"},dZe={half:"equal",third:"bigRight"};function IN(e){let t=sZe(e?.arrangement);if(t==="columns")return null;let o=xwe(iZe,"half",e?.imageWidth);return{mirror:lZe[t],row:{share:dZe[o],phoneReverse:e?.phoneOrder==="words"}}}var Swe={ProcessSteps:{slot:"boxes",hand:IN}},Twe=(e,t,o)=>Ewe(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function Vx(e,t){let o=xC(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===fe&&Twe(o,Le,t)){let s=cd(e,o.props?.id)?.inCopy===!0;return AN(el(o.props??{},s),s)}let i=$s(Swe,a);if(i&&Twe(o,i.slot,t))return i.hand(o.props??{})}let n=MP(e,t),r=n&&typeof n.type=="string"?$s(Swe,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function Pwe(e){let t=e?.[Le];return Ewe(t)&&t.some(o=>o?.type===fe)}var _we="mirrorCardsIdle",V9="mirrorCardsMirrors",Cwe={[V9]:(e,t)=>{let o=cd(t.appState,e.props?.id);if(o===void 0)return;let n=el(e.props??{},o.inCopy),r=Vx(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&Ug(a,!0,im(a).desktop)}return Ug(n,Gk(o),im(n).desktop)&&yf(n.mirrorCards)!==null},[_we]:(e,t)=>{let o=cd(t.appState,e.props?.id);if(o===void 0)return;let n=el(e.props??{},o.inCopy);return Vx(t.appState,e.props?.id)?!0:Ug(n,Gk(o),im(n).desktop)?!1:!(K9(n,o.inCopy)&&Pwe(n))}};function gZe(e=!1){return G9.map(t=>({value:t.value,label:m(t.label),title:t.value===Uk?void 0:m(fwe[t.value]),disabled:e}))}function bZe({value:e,onChange:t,readOnly:o}){let n=yf(e)??Uk;return $k(pZe,{label:m(Wk),icon:$k(uZe,{}),action:$k(cZe,{words:ZP()?.panel,label:m(Wk),changed:n!==Uk,detail:m("Off"),onReset:()=>t(void 0)}),children:$k(mZe,{size:"sm",block:!0,label:m(Wk),value:n,onChange:r=>t(hwe(r)),options:gZe(o===!0)})})}function Rwe(){return tt(hZe("desktop",{type:"custom",...fZe({},{type:"radio",label:Wk,options:G9.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>$k(bZe,{value:e,onChange:t,readOnly:o})}),{not:{context:_we,is:!0}})}var Iwe=$X,Fwe={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},_Ze={field:"direction",is:"tabs"},CZe={field:"line",in:[!0,!1]},RZe={field:"anchor",set:!0},Y9=["fixed","screen","fill"],OZe={not:{any:[{field:"sectionHeightMode",in:Y9},{field:"sectionHeightModeTablet",in:Y9},{field:"sectionHeightModePhone",in:Y9}]}},NZe={context:"parent.line",is:!0},$g={not:{field:"direction",is:"accordion"}},Bwe={field:"direction",is:"accordion"},Hwe={any:[$g,{not:{field:zk,in:["numbered","chevron"]}},{field:"columns",in:[...pZ]},{field:"phoneRow",in:[...mZ]}]},Gwe="notAccordionRow",LZe={not:{context:Gwe,is:!0}},AZe={[Gwe]:(e,t)=>t.parent?.props?.direction!=="accordion"},q9={field:"direction",is:"row",default:"row"},Kg={not:fJ},jg={all:[q9,Kg,{not:{field:"separator",in:S2.map(e=>e.value)}},{not:{field:"line",is:!0}}]},IZe={field:"direction",is:"column"},$we={all:[jg,...["columns",ka("columns")].map(e=>({not:{field:e,in:Array.from({length:RP},(t,o)=>o+CP)}}))]},FZe={all:[Kg,{not:{all:[q9,{field:"separator",in:S2.map(e=>e.value)}]}}]},j9={not:{all:[jg,{field:"columns",in:Array.from({length:RP},(e,t)=>t+CP)}]}},BZe="sharedColumnsFits",Kwe="sharedColumnsMisfit",Vwe="sharedColumnsDraws",Ywe="sharedColumnsPhoneDraws";function Yg(e,t){return el(e.props??{},cd(t.appState,e.props?.id)?.inCopy!==!1)}var HZe={[BZe]:(e,t)=>B5(Yg(e,t)),[Kwe]:(e,t)=>!B5(Yg(e,t)),[Vwe]:(e,t)=>im(Yg(e,t)).desktop,[Ywe]:(e,t)=>im(Yg(e,t)).phone};function Dwe(e){return{all:[{not:{context:Kwe,is:!0}},{any:[ZB,{field:e,set:!0}]}]}}var Vg={not:{context:Vwe,is:!0}},Yx={not:{context:Ywe,is:!0}},jwe="sharedRowsDraws",DZe={[jwe]:(e,t)=>H5(Yg(e,t))&&Vx(t.appState,e.props?.id)?.row===void 0},Kk={not:{context:jwe,is:!0}},MZe={any:[Vg,Yx]},X9=VX,zZe={not:{context:V9,is:!0}},qwe="rowHanded",WZe={not:{context:qwe,is:!0}},UZe={[qwe]:(e,t)=>{let o=Vx(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},Mwe={all:[$g,X9,Vg,Yx,zZe]},GZe={field:"direction",is:"row"},$Ze={field:"align",in:["start","center","end"]},KZe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function VZe(){let{darken:e,darkenStyle:t}=Kx();return{...Zc("darken",e,Xc),...Zc("darkenStyle",t,Xc)}}var Xwe={not:{all:[jg,{field:ka("columns"),in:Array.from({length:RP},(e,t)=>t+CP)}]}};function YZe(){let e=oe(Uwe,!1,wr(Wwe,{})),t=o=>{let n=k6(o);return n===void 0?void 0:n==="wrap"};return{...jh(),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 jZe(){let e=oe(Uwe,!0,wr(Wwe,{})),t=o=>{let n=k6(o);return n===void 0?void 0:n==="wrap"};return{...jh(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!uZ(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var Zwe={hint:fu},Jwe={all:[X9,{any:[IZe,{all:[jg,Xwe,{not:{all:[$we,{field:ka("share"),set:!0}]}}]}]}]},qZe=tt(Id("desktop",le("Narrows below",wr(zwe,{}),zh.min,zh.max,zh.step,fu,{kind:"breakpoint"},{clear:Zwe,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),Jwe);function XZe(e,t){let o=e;return!(Wh in o)||t.direction!=="column"?e:{...o,[Wh]:qZe}}var Qwe={fields:Ie({_gContent:Gg("Content"),rowTitle:NN.rowTitle,content:NN.content,_gCardDisplay:Gg("Display"),cardDisplay:iR("desktop"),cardDisplayTablet:iR("tablet"),cardDisplayPhone:iR("mobile"),showFor:OO(),_gLayout:Gg("Layout"),direction:QC("Flex"),tabShape:lo("Tab shape",wr(Lwe,{}),TN.map(e=>({label:SN[e],value:e,picture:bae[e]})),"tabs",{columns:2,cell:Pr}),mirrorCards:Rwe(),[Wh]:Id("desktop",le("Stacks below",wr(zwe,{}),zh.min,zh.max,zh.step,fu,{kind:"breakpoint"},{clear:Zwe,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[B2]:owe(),startsOpen:Id("desktop",oe("Starts open",!1,wr(xZe,{}))),[zk]:Id("desktop",lo("Row style",wr(Nwe,{}),iwe.map(e=>({...e,picture:e.value==="numbered"?wr(Nwe,{}):wr(TZe,{})})),"plain",{columns:2})),label:nn(Q("Tab name")),...di("Flex"),...Zc("justify",LC(),Xc),...Zc("align",AC(),Xc),...(()=>{let e=Zc("wrap",jh(),Xc,{phoneRow:jZe()}),t=Zc("wrap",jh(),Xc,{phoneRow:YZe()});return{wrap:t.wrap,[ka("wrap")]:t[ka("wrap")],[Lr("wrap")]:e[Lr("wrap")]}})(),[Lr("order")]:uwe(),...Zc("boxShape",kx("Box shape",wr(Owe,{}),Cb(Wg),"shape","auto"),Xc,{phoneRow:kx("Box shape",wr(Owe,{}),Cb(Wg),"shape","auto",{phoneRest:e=>zg(e)})}),[vP]:Id("desktop",gre(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:_N(wr(kZe,{size:18}),"none"),[Ub]:Id("desktop",lo("Card style",wr(Lwe,{}),ete.map(e=>({...e,picture:xae[e.value]})),"table",{columns:2,cell:Pr})),share:Id("desktop",Fae()),[ka("share")]:Dae(),[Lr("share")]:Hae(),[am]:Id("desktop",ne(BD,wr(Awe,{}),[...Bme],G1)),[Lr(am)]:Id("mobile",ne(BD,wr(Awe,{}),[...Hme],G1)),...Mae(),...Zc("blockSpacing",Bae(),Xc),line:oe("Line",!1,wr(SZe,{}),"A line across the blocks, with a dot on each."),upcoming:oe("Upcoming",!1,wr(yZe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:ne("Join",wr(vZe,{}),U_,W_),_gShadow:Gg("Shadow"),...Zc("shadow",oe("Shadow",!1,wr(EZe,{})),Xc),...Zc("fillColor",Gae(),Xc),[ua]:Yr("Fill content","colour"),[y_]:wZe("fillColor"),_gBackground:Gg("Background image"),bgImage:Id("desktop",rt("Image","image/*")),bgImagePhone:Id("mobile",rt("Image","image/*")),[cr]:Yr("Image content","image",{content:!0}),...VZe(),placement:hd("Content position"),_gLink:Gg("Link"),link:wf(qe("Link to")),[Xo]:qc(),_gJump:Gg("Anchor"),jumpHighlight:oe("Highlight when a link jumps here",!1,wr(PZe,{}),"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"],Iwe],[[Lr("share")],{all:[Fwe,Yx]}],[[am],Dwe(am)],[[Lr(am)],Dwe(Lr(am))],[[Lr("wrap")],{all:[Fwe,Kg,Yx,Kk]}],[[Lr("order")],{all:[jg,Yx,Vg]}],[["phoneRow"],Yx],[[zk],{all:[Bwe,{not:{field:zk,is:"chevron"}}]}],[["tabShape"],_Ze],[["rowTitle","startsOpen"],LZe],[["align","blockSpacing",ka("blockSpacing"),Lr("blockSpacing")],$g],[[ka("justify"),Lr("justify")],{all:[Kg,Mwe,Kk]}],[[ka("align"),Lr("align")],{all:[GZe,$Ze,Mwe]}],[[ka("wrap")],{all:[Kg,j9,Xwe,Vg,$g,Kk]}],[[ka("shadow"),Lr("shadow")],X9],[[ka("darken"),Lr("darken"),ka("darkenStyle"),Lr("darkenStyle")],{all:[Iwe,KZe]}],[["separator"],q9],[[Ub],{field:Ub,set:!0}],[["columns"],{any:[jg,Bwe]}],[[ka("columns")],jg],[[Wh],Jwe],[[ka("gap")],{all:[FZe,Hwe]}],[["gap",Lr("gap")],Hwe],[["justify"],{all:[Kg,MZe,$g,Kk]}],[["wrap"],{all:[Kg,j9,Vg,$g,Kk]}],[["share"],{all:[j9,Vg,$g]}],[[ka("share")],{all:[$we,Vg]}],[["line"],CZe],[["upcoming"],NZe],[["jumpHighlight"],RZe],[["boxShape",ka("boxShape"),Lr("boxShape")],OZe],[["direction","share",Lr("order")],WZe],[["join"],OB],[[B2],OB]]),resolveData:(e,t)=>{let o=e.props,n=o[Ub];return t.changed?.[Ub]===!0&&tte(n)?{...e,props:ote(o,n,fe,Le)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:awe(o)}:e},resolveFields:(e,t)=>{let o=cd(t.appState,e.props?.id)?.inCopy===!0,n=o&&MP(t.appState,e.props?.id)===null;return XZe(QZe(eJe(NO(tJe(e,{...t,fields:Ya(t.fields,e,t)}),e.props),Yg(e,t),o),n),e.props)},showWhenFacts:{...Va,...rie,...Cwe,...UZe,...HZe,...DZe,...RO,...AZe}},ZZe=tt(eie,ZB),JZe=["darken","darkenStyle",_h,Ch];function QZe(e,t){if(!t)return e;let o={...e};for(let n of JZe){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 Ph in n&&ps(t)&&o?{...n,[Ph]:tt(tie,nie)}:!(Ph in n)||ps(t)?e:{...n,[Ph]:ZZe}}function tJe(...[e,t]){let{fields:o}=t;{if(ps(Yg(e,t))){let n=jp({fallback:{top:Ri.desktop,bottom:Ri.desktop,left:Ri.side,right:Ri.side},tablet:!0,siteSide:!0});return c1(o,n)}return e.props.padV2!==!0?c1(o,jp({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as qg}from"react/jsx-runtime";import{ColumnsIcon as ixe,GridIcon as nJe,LayoutIcon as rJe,SlidePickerCardsIcon as aJe,WidthIcon as sxe}from"efficient-easel/icons";import{deviceField as MN}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as oJe}from"efficient-shell/format";var Z9=["grid","carousel"],J9="grid",exe={grid:"Grid",carousel:"Carousel"};function txe(e){return oJe(Z9,J9,e)}var FN=50,BN=80,HN=30,DN=90;function Q9(e,t){let o=Cn(e);return o===void 0?t:Math.min(DN,Math.max(HN,o))}function oxe(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 nxe(e,t,o){return o<=0?0:((e+t)%o+o)%o}function rxe(e,t){return!t||t.height<=0?null:Math.round(t.top-e.top+t.height/2)}var e7=Zn.Grid,axe={label:"Grid",fields:e7,defaultProps:{columns:"3",content:[]}};var iJe={grid:qg(nJe,{}),carousel:qg(aJe,{})},lxe={field:"layout",is:"carousel"},dxe={fields:{layout:lo("Layout",qg(rJe,{}),Z9.map(e=>({label:exe[e],value:e,picture:iJe[e]})),J9),carouselTile:tt(MN("desktop",le("Tile width",qg(sxe,{}),HN,DN,1,FN,{kind:"size",base:"%"})),lxe),carouselTilePhone:tt(MN("mobile",le("Tile width",qg(sxe,{}),HN,DN,1,BN,{kind:"size",base:"%"})),lxe),columns:MN("desktop",le("Columns",qg(ixe,{}),1,YJ,1,qJ)),mobileColumns:MN("mobile",le("Columns",qg(ixe,{}),K6,jJ,1,K6)),...di("Grid"),content:e7.content}};import{jsx as sJe}from"react/jsx-runtime";var cxe={fields:{text:j("Heading",U.heading),level:ne("Level",sJe(er,{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 vn}from"react/jsx-runtime";import{parseOption as lJe}from"efficient-shell/format";var t7="bottom-right",o7=["outline","solid","square","bare"],n7="outline",pxe={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},mxe=!1,uxe=["prev","next"],fxe={prev:"Previous slide",next:"Next slide"};function dJe(e){return lJe(o7,n7,e)}function cJe(e){return Vbe(e)??t7}var pJe="flex-row items-center gap-2";function hxe(e){return vN(cJe(e),pJe)}var mJe={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 gxe(e){return mJe[dJe(e)]}function bxe(e){return e.shown===!0&&(e.count??0)>1}function zN(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 Cxe,EyeIcon as l7,HandIcon as hJe,ScrollMoveDownIcon as Rxe,OpacityIcon as gJe,PhoneIcon as Pxe,PlayIcon as bJe,SlideArrowsBareIcon as wJe,SlideArrowsRoundIcon as xJe,SlideArrowsSquareIcon as yJe,SlidePickerBarIcon as vJe,SlidePickerCardsIcon as kJe,SlidePickerDotsIcon as SJe,SlidePickerNumbersIcon as TJe,SlidePickerSquaresIcon as EJe,SquareIcon as _xe,StylesIcon as PJe}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as _Je}from"efficient-shell/icons/efficient-looks";import{group as vf}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as d7,deviceNote as NJe}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as wxe}from"efficient-shell/format";var r7=["manual","timer","scroll"],xxe={manual:"Hand",timer:"Timer",scroll:"Scroll"};function UN(e){return wxe(r7,e.autoplay===!0?"timer":"manual",e.slideChange)}var a7=25,i7=10,s7=100;function yxe(e){let t=Cn(e);return t===void 0?a7:Math.min(s7,Math.max(i7,t))}var WN=.4;function vxe(e,t,o){if(o<=0||t<=0)return{from:0,to:0,t:0,shown:0};let n=Math.max(0,e/t),r=Math.min(o-1,Math.floor(n)),a=Math.min(o-1,r+1),i=a===r?0:Math.min(1,Math.max(0,(n-r-WN)/(1-WN))),s=Math.round(i*1e4)/1e4;return{from:r,to:a,t:s,shown:s>=.5?a:r}}function kxe(e,t){let o=t/100,n=i=>String(Math.round(i*o*1e4)/1e4),r=WN/2,a=[];for(let i=0;i+1<e;i++)a.push(n(i+r),n(i+WN),n(i+1),n(i+1+r));return a.join(" ")}var uJe=["wipe"],fJe="wipe";function Sxe(e){return wxe(uJe,fJe,e)}var Txe=350,GN=8;var $N=Zn.Hero,Exe={label:"Hero",drawsPictures:!0,fields:$N,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var CJe=_Je,RJe={cards:vn(kJe,{}),dots:vn(SJe,{}),numbers:vn(TJe,{}),bar:vn(vJe,{}),squares:vn(EJe,{})},OJe={outline:vn(xJe,{}),solid:vn(CJe,{}),square:vn(yJe,{}),bare:vn(wJe,{})},LJe={manual:vn(hJe,{}),timer:vn(Cxe,{}),scroll:vn(Rxe,{})},AJe={any:[{field:"slideChange",is:"timer"},{all:[{field:"slideChange",set:!1},{field:"autoplay",is:!0}]}]},IJe={field:"slideChange",is:"scroll"},Oxe={fields:{_dDevice:NJe(),_gContent:vf("Content"),slides:$N.slides,strip:$N.strip,_gStyle:vf("Style"),alignment:fre(),_gTexture:vf("Texture"),showTexture:oe("Show texture",_ne,vn(l7,{})),textureColor:hhe,textureOpacity:le("Texture opacity",vn(gJe,{}),0,100,1,40,"%"),textureShape:ne("Texture style",vn(PJe,{}),Rne,Cne),_gLayout:vf("Layout"),...vO(),...whe,_gAutoplay:vf("Auto-slide"),slideChange:xre("Change slides",vn(bJe,{}),r7.map(e=>({label:xxe[e],value:e,picture:LJe[e]})),"manual"),autoplayInterval:tt(le("Still time per slide",vn(Cxe,{}),2,15,1,6,"s"),AJe),scrollPerSlide:tt(le("Scroll per slide",vn(Rxe,{}),i7,s7,1,a7,{kind:"height",base:"%"}),IJe),_gPicker:vf("Slide picker"),showPicker:oe("Show slide picker",Ybe,vn(l7,{})),pickerShape:lo("Slide picker shape",vn(_xe,{}),M9.map(e=>({label:SN[e],value:e,picture:RJe[e]})),kN),pickerPlacement:hd("Slide picker placement",{fallback:D9}),_gArrows:vf("Arrows"),showArrows:oe("Show arrows",mxe,vn(l7,{})),arrowsShape:lo("Arrows shape",vn(_xe,{}),o7.map(e=>({label:pxe[e],value:e,picture:OJe[e]})),n7),arrowsPlacement:hd("Arrows placement",{fallback:t7}),_gPhone:d7("mobile",vf("On a phone")),phoneUpDown:d7("mobile",Oe(vne,vn(Pxe,{}),Ene(),xne)),phoneSideways:d7("mobile",Oe(kne,vn(Pxe,{}),Pne(),yne)),phoneWordsTop:nf.phoneWordsTop,phoneWordsBottom:nf.phoneWordsBottom,phoneBoxGap:nf.phoneBoxGap},resolveFields:(e,{fields:t})=>{let o=e.props??{},n=UN(o),r=t.slideChange;return!r||r.currentValue===n?t:{...t,slideChange:{...r,currentValue:n}}}};import{jsx as Lxe}from"react/jsx-runtime";import{WidthIcon as Axe}from"efficient-easel/icons";import{BOX_NUDGE_ROW as Ixe,BOX_WIDTH_ROW as p7,group as m7}from"efficient-easel/screen/lib/document/box-fields";var c7={...Zn.HeroGroup,content:{...Zn.HeroGroup.content,allow:PX}},Nxe={label:EX,inline:!0,fields:c7,defaultProps:{placement:LJ,nudgeX:0,nudgeY:0,content:[]}};var Fxe={fields:Ie({_gContent:m7("Content"),name:nn(dw(_r(Q("Box name",U.boxName)))),content:c7.content,_gLayout:m7("Layout"),placement:hd("Placement",{pointsFor:_ae}),width:le("Width",Lxe(Axe,{}),D6,M6,5,AJ,p7),...gd(p7,"width"),direction:QC("HeroGroup"),...di("HeroGroup"),justify:LC(),align:AC(),wrap:jh(),_gNudge:m7("Nudge"),...hre({keys:{x:"nudgeX",y:"nudgeY"},min:-H6,max:H6,label:null,length:Ixe}),...gd(Ixe,"nudgeX"),...jp({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(i_(o?.data,n)===0)return t;let r={...t};return r.width=le("Width",Lxe(Axe,{}),D6,M6,5,IJ,p7),r}};import{jsx as Hxe}from"react/jsx-runtime";import{MediaIcon as BJe,OpacityIcon as HJe}from"efficient-easel/icons";import{group as Vk}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as DJe,deviceNote as MJe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as FJe}from"efficient-shell/format";var u7=Zn.HeroSingle,Bxe={label:"Hero Single",drawsPictures:!0,fields:u7,defaultProps:{mediaType:Ba.HeroSingle,[Fa.image]:FJe,tintColor:gs,tintOpacity:0,overlay:100,overlayColor:gs,overlayPosition:$h}};var f7=Zb("video",Ba.HeroSingle),zJe=Zb("image",Ba.HeroSingle),Dxe=[...TO,"tintColor","tintOpacity"],Mxe={fields:pC({_dDevice:MJe(),boxNotice:CO("HeroSingle"),boxes:u7.boxes,_gStyle:Vk("Style"),overlay:le("Overlay",Hxe(HJe,{}),0,100,5,100,"%"),overlayColor:tM.overlayColor,overlayPosition:tM.overlayPosition,_gLayout:Vk("Layout"),...vO({tabletNumber:!1}),_gPhone:DJe("mobile",Vk("On a phone")),phoneWordsTop:nf.phoneWordsTop,phoneWordsBottom:nf.phoneWordsBottom,phoneBoxGap:nf.phoneBoxGap,_gMedia:Vk("Media"),mediaType:Oe("Type",Hxe(BJe,{}),rR,Ba.HeroSingle),mediaLayout:Og.mediaLayout,mediaLayoutPhone:Og.mediaLayoutPhone,...kO,videoSource:Dc.videoSource,mediaVideo:rt(V2,"video/*",Y2),youtubeUrl:Dc.youtubeUrl,videoPlayback:Dc.videoPlayback,videoProgress:Dc.videoProgress,poster:rt("Video poster","image/*","Upload a poster still"),_gTint:Vk("Image tint"),tintColor:mk(),tintOpacity:pk(),...uk},{parts:{media:["mediaType",...SO,"videoSource","mediaVideo","youtubeUrl","videoPlayback","videoProgress","poster"],image:Dxe,image2:Sx},onlyFor:{image:[...Dxe,"_gTint",...Sx],video:["videoSource","videoPlayback","videoProgress","poster"]},rules:{mediaVideo:{all:[f7,{field:"videoSource",is:"upload",default:hs}]},youtubeUrl:{all:[f7,{field:"videoSource",is:"youtube",default:hs}]},videoProgress:PO(f7),...EO(zJe)},fallback:Ba.HeroSingle})};import{jsx as Yk}from"react/jsx-runtime";import{BlockVideoIcon as UJe,ClockIcon as GJe,ImageIcon as $Je,MediaIcon as KJe,PlayIcon as VJe}from"efficient-easel/icons";import{group as KN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as jx}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as WJe}from"efficient-shell/format";var h7=Zn.HeroSlide,zxe={label:"Hero Slide",fields:h7,defaultProps:{mediaType:Ba.HeroSlide,videoSpeed:100,[Fa.image]:WJe,tintColor:gs,overlay:0}};var vm=Zb("video",Ba.HeroSlide),YJe=Zb("image",Ba.HeroSlide),Wxe=[...TO,"tintColor","overlay"],Uxe={fields:pC({_gContent:KN("Content"),name:nn(dw(Q("Slide name",U.slideName))),process:nn(W("Reel label","Label")),groupNotice:CO("HeroSlide"),groups:h7.groups,_gMedia:KN("Media"),mediaType:Oe("Type",Yk(KJe,{}),rR,Ba.HeroSlide),mediaLayout:Og.mediaLayout,mediaLayoutPhone:Og.mediaLayoutPhone,videoSource:Dc.videoSource,mediaVideo:jx("desktop",rt(V2,"video/*",Y2,{frame:"videoFrame"})),mediaVideoPhone:jx("mobile",rt(V2,"video/*",Y2,{frame:"videoFramePhone"})),videoFramePhone:Xp(),mediaVideoAv1:jx("desktop",rt(bB,"video/mp4",wB)),mediaVideoAv1Phone:jx("mobile",rt(bB,"video/mp4",wB)),youtubeUrl:Dc.youtubeUrl,videoPlayback:Dc.videoPlayback,videoProgress:Dc.videoProgress,videoSpeed:le("Playback speed",Yk(VJe,{}),25,100,5,100,"%"),loadingShows:$ae("Show while loading",Yk(GJe,{}),{frame:Yk(UJe,{}),image:Yk($Je,{})}),videoFrame:Xp(),...kO,poster:jx("desktop",rt("Image","image/*","Choose an image")),posterPhone:jx("mobile",rt("Image","image/*","Choose an image")),_gTint:KN("Image tint"),tintColor:mk(),overlay:pk(),...uk,_gOverlay:KN("Overlay"),overlayColor:oM.overlayColor,overlayPosition:oM.overlayPosition},{parts:{media:["mediaType",...SO,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoProgress","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:Wxe,image2:Sx},onlyFor:{image:[...Wxe,"_gTint",...Sx],video:["videoSource","videoPlayback","videoProgress","loadingShows","videoFrame"]},fallback:Ba.HeroSlide,rules:{mediaVideo:{all:[vm,{field:"videoSource",is:"upload",default:hs}]},mediaVideoPhone:{all:[vm,{field:"videoSource",is:"upload",default:hs}]},mediaVideoAv1:{all:[vm,{field:"videoSource",is:"upload",default:hs}]},mediaVideoAv1Phone:{all:[vm,{field:"videoSource",is:"upload",default:hs}]},youtubeUrl:{all:[vm,{field:"videoSource",is:"youtube",default:hs}]},videoProgress:PO(vm),videoSpeed:{all:[vm,{field:"videoSource",is:"upload",default:hs},{field:"videoPlayback",is:"background",default:j2}]},...EO(YJe),poster:{all:[vm,yB]},posterPhone:{all:[vm,yB]}}})};import{jsx as g7}from"react/jsx-runtime";import{phoneKey as jJe}from"efficient-easel/draw";import{CropIcon as Gxe,ImageIcon as qJe}from"efficient-easel/icons";import{group as b7,phoneTwinFields as XJe}from"efficient-easel/screen/lib/document/box-fields";var $xe={fields:{_gImage:b7("Image"),src:rt("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>A2(t,e.fit,e.aspect,e[jJe("aspect")])}),alt:nn(Q("Alt text")),rowField:Yr("Shows","image"),[Xo]:qc(),...XJe("aspect",kx("Aspect ratio",g7(Gxe,{}),Cb(Wg),"image","16/9",{more:[rhe(bQ)]}),void 0,{phoneRow:kx("Aspect ratio",g7(Gxe,{}),Cb(Wg),"image","16/9",{phoneRest:EQ})}),fit:ne(h_,g7(qJe,{}),fQ(),"cover"),focal:Xp(),focalTablet:Xp(),focalPhone:Xp(),href:wf(qe("Link")),_gStyle:b7("Style"),grayscale:Tx(),...Kx(),_gShape:b7("Shape"),corners:qae(),...Nae(Sre,"corners"),cornerSides:Lae()},resolveFields:(e,t)=>Qae(Ya(t.fields,e,t),e,t),showWhenFacts:Va};import{jsx as ZJe}from"react/jsx-runtime";import{group as Kxe}from"efficient-easel/screen/lib/document/box-fields";var Vxe={fields:{_gContent:Kxe("Content"),eyebrow:W("Chip label","Integrations"),title:j("Heading",`Plays well with
|
|
13
|
+
`:""}`}),d]})]})}let h=v=>{!f||!$he(e,!1)||v.target===v.currentTarget&&p()},g=e.height==="full",b=e.fullWidth||g,w=FKe(e),x=wM("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:g?"100%":void 0,maxHeight:e.fullWidth&&!g||w.place==="outside"?`calc(100% - ${xM}px)`:"100%",borderRadius:b?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[w.place!=="none"?Ag("button",{type:"button","aria-label":"Close",onClick:r?void 0:p,"data-popup-close":w.place,"data-popup-close-until":w.until,className:"absolute z-[5] flex h-[38px] w-[38px] items-center justify-center border border-line bg-bg font-mono text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:w.place==="outside"?{top:-IKe,right:0}:{top:12,right:12},children:"\xD7"}):null,w.until?Ag("style",{children:`@container popup-frame (min-width: ${w.until+1}px){[data-popup-close-until="${w.until}"]{display:none}}`}):null,Ag("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return Ag("div",{role:a||r?"dialog":"region","aria-modal":f?!0:void 0,"aria-label":s,"data-popup-frame":r?"inline":"live",onClick:h,className:r?"relative flex min-h-[100vh] w-full":"fixed inset-0 z-[90] flex",style:{...AKe[e.placement],background:Ghe(e.tintColor,e.tintOpacity),padding:b?0:w.place==="outside"&&e.placement.startsWith("top")?`${24+xM}px 24px 24px`:24,...w.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:x})}var HKe=25.4,bk=400,HO=152,DKe=58,Khe=HO*Math.cos(DKe*Math.PI/180),MKe=14,zKe=bk/2,WKe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function Yhe(e){let t=kc(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:WKe}function jhe(e){let t=e.rimDiameter*HKe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=HO*(e.sectionWidth/o),r=t/o;return{cy:zKe,rx:Khe,ry:HO,cxf:bk/2-n/2-MKe,dx:n,rimRx:Khe*r,rimRy:HO*r}}var ao=e=>e.toFixed(1);function DO(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${ao(r)} ${ao(a)} A${ao(e.rx)} ${ao(e.ry)} 0 0 ${o} ${ao(r)} ${ao(i)}`}function kM(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${ao(n)} ${ao(a)} L${ao(r)} ${ao(a)} A${ao(e.rx)} ${ao(e.ry)} 0 0 1 ${ao(r)} ${ao(i)} L${ao(n)} ${ao(i)} A${ao(e.rx)} ${ao(e.ry)} 0 0 0 ${ao(n)} ${ao(a)} Z`}function BO(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 qhe(e,t,o,n,r){let[a,i]=BO(e,t,n),[s,l]=BO(e,t,r),[d,c]=BO(e,o,r),[p,f]=BO(e,o,n);return`M${ao(a)} ${ao(i)} A${ao(e.rx)} ${ao(e.ry)} 0 0 1 ${ao(s)} ${ao(l)} L${ao(d)} ${ao(c)} A${ao(e.rx)} ${ao(e.ry)} 0 0 0 ${ao(p)} ${ao(f)} L${ao(a)} ${ao(i)} Z`}var Vhe=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],UKe={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}}]},GKe=[["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 Xhe(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return Vhe;for(let[o,n]of GKe)if(t.includes(` ${o} `))return UKe[n];return Vhe}var MO="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as $Ke}from"react";function Ka(e,t=/:/g){let o=$Ke().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as wk,jsx as jt,jsxs as Uc}from"react/jsx-runtime";var Ss={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},KKe=[.8,.52,.24],Zhe=.4,Jhe=.88,Qhe=.3,ege=5,tge=.3,oge=.84,VKe=7,bo=e=>Math.round(e*10)/10;function SM({size:e,type:t,className:o}){let n=Ka("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=jhe(Yhe(e)),i=kM(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Uc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${bk} ${bk}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[jt("title",{children:s}),Uc("defs",{children:[jt(jKe,{id:r}),jt("clipPath",{id:r.crown,children:jt("path",{d:i})})]}),jt("ellipse",{cx:bo(a.cxf+a.dx/2),cy:bo(a.cy+a.ry-4),rx:bo(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),jt(qKe,{g:a,id:r}),jt(XKe,{g:a,id:r}),jt("path",{d:i,fill:`url(#${r.tread})`}),jt("g",{clipPath:`url(#${r.crown})`,children:Xhe(t).map(l=>jt(YKe,{g:a,column:l},l.f[0]))}),jt("path",{d:DO(a,0,0,!0),stroke:"currentColor",strokeOpacity:Ss.shoulder,strokeWidth:1.2}),jt("path",{d:DO(a,1,1),stroke:"currentColor",strokeOpacity:Ss.silhouette,strokeWidth:1.4})]})}function YKe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Uc(wk,{children:[jt("path",{d:kM(e,o,n),fill:"currentColor",fillOpacity:Ss.rib}),jt("path",{d:DO(e,o,1),stroke:"currentColor",strokeOpacity:Ss.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(wk,{children:l.map(([d,c])=>jt("path",{d:qhe(e,o,n,d,c),fill:"currentColor",fillOpacity:Ss.rib,stroke:"currentColor",strokeOpacity:Ss.grooveWall,strokeWidth:1},d))})}function jKe({id:e}){return Uc(wk,{children:[Uc("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})]}),Uc("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})]}),Uc("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})]}),Uc("radialGradient",{id:e.shadow,children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function qKe({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 Uc(wk,{children:[jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx),ry:bo(e.ry),fill:`url(#${t.wall})`}),KKe.map((a,i)=>{let s=n(a);return jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*s),ry:bo(e.ry*s),stroke:"currentColor",strokeOpacity:Ss.relief[i],strokeWidth:1},a)}),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*n(Zhe)),ry:bo(e.ry*n(Zhe)),stroke:"currentColor",strokeOpacity:Ss.lettering,strokeWidth:bo(r)})]})}function XKe({g:e,id:t}){let o=Array.from({length:ege},(n,r)=>{let a=(r*(360/ege)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*tge*Math.cos(a),y1:e.cy+e.rimRy*tge*Math.sin(a),x2:e.cxf+e.rimRx*oge*Math.cos(a),y2:e.cy+e.rimRy*oge*Math.sin(a)}});return Uc(wk,{children:[jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx),ry:bo(e.rimRy),fill:`url(#${t.rim})`}),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Jhe),ry:bo(e.rimRy*Jhe),fill:"currentColor",fillOpacity:Ss.dishFill,stroke:"currentColor",strokeOpacity:Ss.dishEdge,strokeWidth:1}),o.map((n,r)=>jt("line",{x1:bo(n.x1),y1:bo(n.y1),x2:bo(n.x2),y2:bo(n.y2),stroke:"currentColor",strokeOpacity:Ss.spoke,strokeWidth:VKe,strokeLinecap:"round"},r)),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Qhe),ry:bo(e.rimRy*Qhe),fill:"currentColor",fillOpacity:Ss.hubFill,stroke:"currentColor",strokeOpacity:Ss.hubEdge,strokeWidth:1})]})}import{jsx as TM}from"react/jsx-runtime";function hm({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return TM("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:TM(ro,{label:t||"Tyre",src:fs(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:TM(SM,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as xk}from"react/jsx-runtime";function ZKe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function EM({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??fde;return xk("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:CR(e)?xk(hm,{image:o?.coverImage,size:e.size,type:ZKe(o),sizes:"96px",className:"h-full w-full"}):a?.src?xk(nl,{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?xk("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:xk(ng,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as PM,jsxs as QKe}from"react/jsx-runtime";var nge={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function rge(e,t){return Math.min(hH,Math.max(1,e+t))}var age="disabled:cursor-not-allowed disabled:opacity-40",JKe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${nge.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${age}`,value:`w-11 text-center font-mono ${nge.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 ${age}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function yk({value:e,onChange:t,size:o}){let n=JKe[o];return QKe("div",{className:n.frame,children:[PM("button",{type:"button",onClick:()=>t(rge(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),PM("span",{className:n.value,children:e}),PM("button",{type:"button",onClick:()=>t(rge(e,1)),disabled:e>=hH,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as Gc,jsx as Ye,jsxs as io}from"react/jsx-runtime";function ige({content:e,closeRef:t}){let{close:o,items:n}=Mn(),r=t;return io("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:[io("div",{className:"flex items-center justify-between",children:[io("span",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?Ye("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]}),Ye("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"})]}),io("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",Ye("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),Ye("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:Vre(e,n.length)})]})}function sge({content:e}){let{totals:t}=Mn(),{activeCountry:o}=At(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ye(Gc,{children:io("div",{className:`grid flex-shrink-0 ${eVe[r-1]} gap-px border-b border-line bg-line`,children:[Ye(_M,{label:"Items",value:io(Gc,{children:[Ye("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?Ye(_M,{label:"Lead time",value:e.leadTimeValue}):null,n?Ye(_M,{label:"Ships to",value:n}):null]})})}function lge({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=Mn();return Ye(Gc,{children:o.length===0?Ye(aVe,{content:e}):o.map(a=>Ye(tVe,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function dge(){let{items:e,totals:t,bundles:o}=Mn(),{formatMoney:n}=At(),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 Ye(Gc,{children:i.length>0&&io("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:[io("div",{className:"mb-4 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[Ye("span",{children:"You may also need"}),Ye("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),Ye("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:i.map(s=>Ye(oVe,{href:`/bundles/${s.slug}`,title:s.name,sub:nVe(s,t.currency,n)},s.slug))})]})})}function cge(){return Ye(Gc,{children:Ye("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ye(bde,{})})})}function pge({content:e}){return Ye(Gc,{children:e.promises.length>0&&Ye("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=>Ye(rVe,{children:t},t))})})}function mge(){let{totals:e,coupon:t}=Mn(),{formatMoney:o}=At();return Ye(Gc,{children:io("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ye(lf,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ye(lf,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:io("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),(e.discount>0||e.deliverySaving>0)&&t?.valid&&Ye(lf,{label:`Coupon \xB7 ${t.code}`,value:Ye("span",{style:{color:"var(--green)"},children:qle(e,n=>o(n,e.currency))})}),t?.deferred&&Ye(lf,{label:`Coupon \xB7 ${t.code}`,value:wle}),t?.valid&&t.effects?.gift&&Ye(lf,{label:`Free gift \xB7 ${t.effects.gift.partNumber}${t.effects.gift.quantity>1?` \xD7${t.effects.gift.quantity}`:""}`,value:Ye("span",{style:{color:"var(--green)"},children:og})}),Ye(lf,{label:"Shipping",value:e.shippingStatus==="free"?Ye("span",{style:{color:"var(--green)"},children:og}):Xle(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ye(lf,{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?Ye(lf,{label:e.tax.name,value:jle}):null),io("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[io("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",Ye("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),Ye("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:e.repricing?zle:o(e.grand,e.currency)})]})]})})}function uge(){let{items:e,close:t}=Mn();return Ye(Gc,{children:io("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[io(He,{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",Ye("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),Ye("div",{className:"flex items-center justify-between px-1 py-2 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:Ye(He,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var eVe=["grid-cols-1","grid-cols-2","grid-cols-3"];function _M({label:e,value:t}){return io("div",{className:"flex flex-col gap-1 bg-bg px-4 py-4",children:[Ye("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),Ye("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function tVe({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=Mn(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=At();return io(Gc,{children:[io("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:[Ye(EM,{line:e,catalog:r,tyre:t}),io("div",{className:"flex min-w-0 flex-col gap-2",children:[io("div",{className:"flex items-start justify-between gap-3",children:[io("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:[io("span",{"data-cart-line-no":"",children:["N\xB0 ",e.positionNo," \xB7 "]}),e.process==="FusionForge\xAE"?io(Gc,{children:["FusionForge",Ye($_,{})]}):e.process]}),Ye("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:gH(e,s)===null?Au:l(gH(e,s),s)})]}),io("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,Ye("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&io("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.config.map(d=>Ye("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&&io("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"]})]}),io("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ye(yk,{value:e.qty,onChange:n,size:"small"}),io("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[Ye(He,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),Ye("button",{type:"button",onClick:o,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&io("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:[Ye("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),io("span",{children:["Verified for your ",Ye("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function oVe({title:e,sub:t,href:o}){return io(He,{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:[io("span",{className:"flex min-w-0 flex-col gap-1",children:[Ye("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),Ye("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),Ye("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 nVe(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 rVe({children:e}){return Ye("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function lf({label:e,value:t}){return io("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[Ye("span",{children:e}),Ye("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function aVe({content:e}){return io("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[Ye("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),Ye("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),io(He,{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 ",Ye("span",{className:"text-accent",children:"\u2192"})]})]})}import{jsx as df,jsxs as fge}from"react/jsx-runtime";var lVe=Cu(void 0),dVe="Your cart";function vk({content:e=UC,look:t=lVe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=Mn(),s=sVe(null),l=Uhe(a.filter(CR).map(d=>d.slug));return iVe(()=>{i(t.autoOpen)},[t.autoOpen,i]),fge($i,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:dVe,children:[df(ige,{content:e,closeRef:s}),df(sge,{content:e}),fge("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[df(lge,{content:e,tyres:l}),df(dge,{}),df(cge,{}),df(pge,{content:e})]}),df(mge,{}),df(uge,{})]})}import cVe from"efficient-easel/screen/components/UiIcon";import{Fragment as mVe,jsx as Ig,jsxs as zO}from"react/jsx-runtime";var pVe=Zw(()=>import("./chunks/EditorPreviewCheckout-DKU7B2SG.js"),{ssr:!1});function CM(){let{chromePlaceholder:e,themeFromDocument:t}=tr(),{surface:o}=Tie();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?zO(mVe,{children:[Ig(pVe,{}),Ig(hge,{surface:o})]}):Ig(Fu,{children:zO(Fw,{preview:!0,children:[Ig(vk,{}),Ig(hge,{surface:o})]})})}function hge({surface:e}){let{label:t,href:o}=jfe(e);return zO("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:[Ig("span",{style:{whiteSpace:"nowrap"},children:m("{name} \xB7 preview only",{name:m(t)})}),zO("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:[m("Open live"),Ig(cVe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as uVe,CursorClickIcon as fVe,EyeIcon as hVe,FullWidthIcon as gVe,HeightIcon as bVe,OpacityIcon as wge,PlacementIcon as wVe,WidthIcon as xVe}from"efficient-easel/icons";import{group as Px}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as yVe}from"efficient-easel/screen/lib/document/device-fields";import{jsx as gm}from"react/jsx-runtime";var vVe={label:"Inside",value:"inside"},kVe={label:"None",value:"none"};function RM(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,yVe("desktop",o)]))}function gge(e,t){return{_gDesign:Px("Color"),tintColor:ha("Tint color",e),tintOpacity:le("Tint opacity",gm(wge,{}),n1.min,n1.max,5,t,"%")}}function bge(e,t){return{_gBehavior:Px("Behavior"),outsideClick:oe("Outside click",e,gm(fVe,{})),...t}}var SVe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function OM(e){return le("Width",gm(xVe,{}),GB.min,GB.max,4,e,"px")}function xge(e){if(e===_u){let o=Cu(void 0);return RM({_gSize:Px("Width"),width:OM(o.width),_gPosition:Px("Placement"),placement:ne("Placement",gm(wVe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...gge(o.tintColor,o.tintOpacity),...bge(o.outsideClick,{autoOpen:oe("Auto open",o.autoOpen,gm(hVe,{}))})})}let t=Pu;return Ie(RM({_gSize:Px("Width"),width:OM(t.width),height:ne("Height",gm(bVe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:Px("Placement"),placement:hd("Placement",{fallback:t.placement}),fullWidth:oe("Full width",t.fullWidth,gm(gVe,{})),...gge(t.tintColor,t.tintOpacity),...bge(t.outsideClick,{closeButton:ne("Close button",gm(uVe,{}),[vVe,{label:"Outside",value:"outside"},kVe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],SVe])}function yge(e,t){return RM({menuPanelWidth:OM(e),menuPanelTintColor:ha("Tint color",Pu.tintColor),menuPanelTintOpacity:le("Tint opacity",gm(wge,{}),n1.min,n1.max,5,t,"%")})}import{PictureTiles as TVe}from"efficient-shell/ui";import{SettingsField as EVe}from"efficient-easel/panel";import{GridIcon as PVe}from"efficient-easel/icons";import{jsx as Fg}from"react/jsx-runtime";function _Ve({layout:e}){return Fg("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?Fg("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):Fg("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var vge={type:"custom",render:({value:e,onChange:t})=>{let o=GC({layout:e}).layout,n=$B.find(r=>r.value===o);return Fg(EVe,{label:m(KB),icon:Fg(PVe,{}),value:n?m(n.label):void 0,children:Fg(TVe,{className:"sf-gallery-layouts",label:m(KB),value:o,onChange:t,options:$B.map(r=>({value:r.value,label:m(r.label),picture:Fg(_Ve,{layout:r.value})}))})})}};import{CategoryIcon as u5t,CheckIcon as f5t,ClockIcon as wq,ColumnsIcon as h5t,DirectionIcon as g5t,EyeIcon as b5t,ListIcon as w5t,PageIcon as x5t,PlacementIcon as y5t,ScrollPointIcon as v5t,TabsIcon as k5t,TriggerIcon as S5t,CaseIcon as T5t}from"efficient-easel/icons";import{deviceField as EDe}from"efficient-easel/screen/lib/document/device-fields";import{group as od,phoneTwinFields as E5t}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as CVe}from"efficient-easel/screen/lib/document/box-fields";function _x(e){let t=CVe(e);return{...t,render:o=>t.render({...o,value:Qm(o.value)??o.value})}}import{useContext as OVe,useEffect as Sge,useRef as UO,useState as GO}from"react";import{Button as $O}from"efficient-shell/ui";import{ScreenDocumentContext as NVe}from"efficient-easel/screen/components/ScreenDocumentContext";var kk=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},WO=null,NM=null,LM=null;function RVe(){WO=null,NM=null,LM=null}function kge(e=!1){let t=fa(),o=Dn();return(e||!WO||NM===null&&t!==null||LM!==o)&&(NM=t,LM=o,WO=(t?Ne.listForms(t,{siteId:o}):Promise.reject(new kk)).catch(n=>{throw RVe(),n instanceof kk?n:new kk(n)})),WO}import{useEaselHost as LVe}from"efficient-easel/screen/lib/host";import{InertHint as AM}from"efficient-easel/panel";import{jsx as gr,jsxs as $c}from"react/jsx-runtime";var Tge="__create-a-new-form__";function AVe({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?m("Loading\u2026"):o?m("Forms couldn\u2019t be loaded"):n===void 0?m("No form yet"):m(n)},l=e&&!a?[{value:e,label:i||o?e:m("{slug} \u2014 no form with this name",{slug:e})}]:[],d=r.map(p=>({value:p.slug,label:p.is_active?p.title:m("{title} (switched off)",{title:p.title})})),c=i?[]:[{value:Tge,label:m("Create a new form")}];return[s,...l,...d,...c]}function IVe(e){return e===Tge?{action:"create"}:{action:"store",slug:e}}function FVe({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 BVe(e){let t=[m("Goes to {place}",{place:m("Storefront \u2192 Forms")})],o=(e.notify_email??"").trim();return o&&t.push(m("Emails a copy to {email}",{email:o})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?m("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):m("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?m("Creates a wholesale account"):m("Creates a retail account")),t}function IM({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=LVe(),a=OVe(NVe),i=a?a.capabilities.hasForms:!0,[s,l]=GO(null),[d,c]=GO(!1),[p,f]=GO(!1),[u,h]=GO(!1),g=UO(!0),b=UO(e);b.current=e;let w=UO(t);w.current=t;let x=UO(null),v=(P=!1)=>kge(P).then(F=>{if(g.current){l(F),c(!1);let I=FVe({value:b.current,pickedId:x.current,forms:F});I&&w.current(I)}return F},()=>(g.current&&c(!0),[]));Sge(()=>(g.current=!0,i&&v(),()=>{g.current=!1}),[i]),Sge(()=>i?qR(()=>{v(!0)}):void 0,[i]);let k=e?(s??[]).find(P=>P.slug===e)??null:null;k?x.current=k.id:e||(x.current=null);let y=!!e&&!k&&s!==null&&!d,T=AVe({value:e,forms:s,loadFailed:d,emptyLabel:n}),E=async()=>{f(!0),h(!1);try{let P=await Bde(r,{mode:"create"}),F=await v(!0);if(!g.current)return;if(P.status==="timeout"){h(!0);return}if(P.status!=="saved")return;let{form:I}=P;I.slug!==b.current&&w.current(I.slug),F.some(H=>H.id===I.id)||v(!0)}finally{g.current&&f(!1)}},_=P=>{let F=IVe(P);F.action==="create"?E():(h(!1),t(F.slug))};return i?$c("div",{className:"sf-formpicker",children:[gr(iw,{label:o,options:T,fallback:"",value:e??"",onChange:_,placeholder:m("Search forms\u2026")}),u&&gr("p",{className:"sf-formsummary-warn",children:m("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),k?$c("div",{className:"sf-blogsource sf-formsummary",children:[$c("div",{children:[gr("div",{className:"sf-formsummary-caption",children:pr("{n} field","{n} fields",k.fields.length)}),k.fields.length?gr("ol",{className:"sf-formsummary-fields",children:k.fields.map((P,F)=>gr("li",{children:P.label},P.key||`${P.label}-${F}`))}):gr(AM,{children:m("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),$c("div",{children:[gr("div",{className:"sf-formsummary-caption",children:m("Where the answers go")}),gr("ul",{className:"sf-formsummary-fields",children:BVe(k).map(P=>gr("li",{children:P},P))})]}),!k.is_active&&gr("p",{className:"sf-formsummary-warn",children:m("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:m("Storefront \u2192 Forms")})}),$c("div",{className:"sf-formsummary-actions",children:[gr($O,{variant:"secondary",size:"md",onClick:()=>Fde(r,k.id),children:m("Edit form \u270E")}),gr($O,{variant:"secondary",size:"md",disabled:p,onClick:()=>{E()},children:m("New form +")})]}),gr("p",{className:"es-field-hint",children:m("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:m("Storefront \u2192 Forms")})})]}):$c("div",{className:"sf-blogsource sf-formsummary",children:[d?$c(AM,{children:[m("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${m("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):y&&gr("p",{className:"sf-formsummary-warn",children:m("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??""})}),$c("div",{className:"sf-formsummary-actions",children:[d&&gr($O,{variant:"secondary",size:"md",disabled:p,onClick:()=>{v(!0)},children:m("Try again")}),gr($O,{variant:"secondary",size:"md",disabled:p,onClick:()=>{E()},children:m("New form +")})]}),!d&&gr("p",{className:"es-field-hint",children:m("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:m("Storefront \u2192 Forms")})})]})]}):gr("div",{className:"sf-formpicker",children:gr("div",{className:"sf-blogsource sf-formsummary",children:$c("div",{children:[gr("div",{className:"sf-formsummary-caption",children:m(o)}),$c(AM,{children:[m("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${m("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as HVe}from"react/jsx-runtime";function Kc(e,t){return{type:"custom",render:({value:o,onChange:n})=>HVe(IM,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{createContext as DVe,useContext as MVe}from"react";import{jsx as Vc,jsxs as FM}from"react/jsx-runtime";function BM(e){return fc(e)??void 0}var HM=DVe({}),Ege=3;function DM({tag:e,name:t,desc:o,href:n,imageSrc:r,imageLabel:a,price:i}){let s=be(),{showPrice:l,cardStyle:d,partStyles:c,editing:p,ownerId:f,Template:u}=MVe(HM),h=d==="bordered"?" border border-line":d==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",g=BM(r),b=Bn();if(u){let v={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:g??"",tag:e??"",href:n||"#"};return b.scope(Vc("div",{className:Jt(`block w-full min-w-0 ${Pb}${s?` ${iu}`:""}`,b.className),...b.attrs,children:Vc(Ke,{ownerId:f??"Collections",ownerType:"Collections",Template:u,rows:[v],fallback:null,children:S=>S})}))}let w=v=>p?{[yb]:v}:{},x=v=>NP(c?.[dd(v)]?.role,eg[v],yP);return b.scope(FM(He,{href:n||"#",className:Jt(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${h}`,b.className),...b.attrs,children:[Vc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${vme}`,children:Vc(ro,{label:a||"collection.jpg",src:g})}),Vc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${Tme} max-view-wide:hidden`,style:{transition:"none"}}),FM("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&&Vc("span",{...w("tag"),style:x("tag"),className:`font-mono ${Zp.tag} uppercase tracking-[0.25em] opacity-70`,children:N(e)}),t&&Vc("h3",{...w("name"),style:x("name"),className:`font-heading2 ${Zp.name} font-medium leading-none tracking-[-0.03em] ${Zp.namePhone}`,children:typeof t=="string"?re(t,!1):t}),o&&Dt(o).map((v,S)=>Vc("p",{...w("body"),style:x("body"),className:`max-w-[420px] ${Zp.body} leading-[1.5] opacity-80`,children:N(v)},S)),l&&i&&Vc("span",{...w("price"),style:x("price"),className:`font-mono ${Zp.price} tracking-[0.05em] text-accent`,children:N(i)}),FM("span",{...w("link"),style:x("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${Zp.link} uppercase tracking-[0.2em]`,children:["Explore",Vc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as Bge,useCallback as iYe,useContext as Fge,useEffect as Hge,useRef as sYe,useState as $M}from"react";import{slugify as lYe}from"efficient-shell/format";import{useState as GVe}from"react";import{jsx as MM,Fragment as zVe}from"react/jsx-runtime";function Tl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=Cte(e),a=Rte(e),i=t?a:r,s=_te(i);return o&&!i?MM("span",{[mu]:e,children:n}):i?MM("span",{ref:s,[mee]:i.stamp,...i.textStyle?{[uee]:i.textStyle}:{},children:n}):MM(zVe,{children:n})}var Pge="mosaic",WVe=260,UVe=150;function _ge(e){let t=`.${e}.sf-gallery-zone`;return`${t}{grid-auto-rows:${WVe}px}@media (max-width:${Rb}px){${t}{grid-auto-rows:${UVe}px}}`}function Cge(e){return e>1?`${e} photos`:""}import{jsx as nr,jsxs as cf}from"react/jsx-runtime";var $Ve="(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",zM=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function WM({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,setCount:f,sizes:u}){let h=k=>Cre(l,d,k),g=k=>p&&c?{[lee]:c,[dee]:`@${k}`}:{},b=(k,y)=>!p&&c?nr(Tl,{kind:`@${k}`,shared:!0,children:y}):y,[w,x]=GVe(!1);if(f!=null)return nr(KVe,{build:e,count:f,ratio:i,sizes:u,shown:h,keptAttrs:g,kept:b});let v=WJ(s),S=cf("div",{className:["sf-card group relative overflow-hidden bg-surface-2",Fh(i),t?"max-view-wide:hidden":""].join(" "),children:[cf("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:[nr(ro,{label:e.imageLabel,src:e.imageSrc,...u?{sizes:u}:{}}),!o&&nr("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),nr("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&&nr(nl,{src:e.detailSrc,alt:"",fill:!0,sizes:u??$Ve,loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:w?"none":"block"},onError:()=>x(!0)})}),(e.process||r!=null&&a!=null)&&cf("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&&nr("span",{...g("tag"),className:["min-w-0 truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent",h("tag"),"transition-opacity duration-300 ease-out",o||n?"opacity-100":"opacity-0 group-hover:opacity-100 max-view-wide:opacity-100"].join(" "),children:b("tag",ko(e.process))}),r!=null&&a!=null&&nr("span",{...g("number"),className:`ml-auto shrink-0 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] ${h("number")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:b("number",zM(r,a))})]}),nr("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:cf("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&&nr("div",{...g("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] ${h("eyebrow")}`.trim(),children:b("eyebrow",e.car)}),e.wheel&&nr("div",{...g("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 ":""}${h("title")}`.trim(),children:b("title",e.wheel)}),e.finish&&nr("div",{...g("meta"),className:`mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em] ${h("meta")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:nr("span",{children:b("meta",ko(e.finish))})})]})})]});return v?cf("div",{className:t?"max-view-wide:hidden":"",children:[S,cf("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&nr("div",{...g("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${h("title")}`.trim(),children:b("title",e.wheel)}),(e.finish||e.car)&&nr("div",{...g(e.finish?"meta":"eyebrow"),className:`mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim ${h(e.finish?"meta":"eyebrow")}`.trim(),children:b(e.finish?"meta":"eyebrow",ko(e.finish||e.car))})]})]}):S}function KVe({build:e,count:t,ratio:o,sizes:n,shown:r,keptAttrs:a,kept:i}){let s=Cge(t);return cf("div",{className:`sf-card relative overflow-hidden bg-surface-2 ${Fh(o)}`,style:{color:"var(--overlay-fg)"},children:[nr("div",{className:"absolute inset-0 flex items-center justify-center",children:nr(ro,{label:e.imageLabel,src:e.imageSrc,...n?{sizes:n}:{}})}),nr("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, color-mix(in srgb, var(--overlay-scrim) 0%, transparent) 45%, color-mix(in srgb, var(--overlay-scrim) 70%, transparent))"}}),s&&nr("span",{"data-gallery-set-chip":"",className:"absolute right-3 top-3 z-1 bg-overlay-scrim/45 px-2 py-1 text-[length:var(--size-label,11px)] tracking-[0.12em]",children:s}),cf("div",{className:"absolute bottom-[18px] left-5 right-5 z-1 max-view-wide:bottom-2.5 max-view-wide:left-3",children:[e.wheel&&nr("div",{...a("title"),className:`text-[length:var(--size-label,11px)] uppercase tracking-[0.16em] opacity-85 ${r("title")}`.trim(),children:i("title",ko(e.wheel))}),e.car&&nr("div",{...a("eyebrow"),className:`mt-1 text-lg leading-normal max-view-wide:text-sm ${r("eyebrow")}`.trim(),children:i("eyebrow",e.car)})]})]})}import{createContext as VVe,useCallback as YVe,useContext as jVe,useEffect as qVe,useLayoutEffect as XVe,useRef as UM,useState as ZVe}from"react";import{createPortal as JVe}from"react-dom";import{Fragment as oYe,jsx as Sk,jsxs as nYe}from"react/jsx-runtime";var Oge="sf-themed-content",QVe=`.${Oge}`,Rge="sf-section-accent";function eYe(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(Rge)&&(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 ${Rge}`:"contents",style:o}}function tYe(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 Nge=VVe(()=>{});function Yc({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=UM(null),l=UM(null),[d,c]=ZVe(null);XVe(()=>{if(!e){c(null);return}let h=s.current;if(!h)return;let g=h.closest(QVe),b=g?.parentElement??h.ownerDocument.body,w=eYe(h,b);c({host:b,theme:g?{...w,className:`${w.className} ${Oge}`}:w})},[e]);let p=UM({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let f=e&&d!==null,u=YVe(()=>p.current.onClose(),[]);return Wc({active:f,onDismiss:u,scopeRef:l}),qVe(()=>{if(!f)return;let h=l.current,g=h?.ownerDocument??document,b=g.activeElement;h?.focus();let w=v=>{if(v.key==="ArrowLeft")p.current.onPrev?.();else if(v.key==="ArrowRight")p.current.onNext?.();else if(v.key==="Tab"&&h){let S=tYe(h);if(S.length===0){v.preventDefault(),h.focus();return}let k=S[0],y=S[S.length-1],T=g.activeElement,E=!!T&&h.contains(T)&&T!==h;if(v.shiftKey&&(!E||T===k))v.preventDefault(),y.focus();else if(!v.shiftKey&&(!E||T===y))v.preventDefault(),k.focus();else{v.preventDefault();let _=S.indexOf(T);S[v.shiftKey?_-1:_+1]?.focus()}}},x=g.defaultView??window;return x.addEventListener("keydown",w),()=>{x.removeEventListener("keydown",w),b&&b.isConnected&&b.focus()}},[f]),e?nYe(oYe,{children:[Sk("span",{ref:s,hidden:!0}),d&&JVe(Sk("div",{className:d.theme.className,style:d.theme.style,children:Sk("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 ${vM[8]} ${a}`,style:{background:yM},children:Sk(Nge.Provider,{value:t,children:i})})}),d.host)]}):null}var KO="color-mix(in oklab, var(--bg) 70%, transparent)";function bm({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=jVe(Nge);return Sk("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as rYe,useContext as Bg}from"react";var Tk=rYe(null);function Lge(){let e=Bg(t1),t=Bg(Tk),o=pR();return e?e.socialLinks??yie:t?t.socialLinks:o.links}function pf(){return Bg(Tk)?.commerceEnabled??!0}function aYe(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Cx(){return aYe(Bg(Tk))}function Age(){let e=Bg(Tk),t=tr();return e?e.showThemeSwitch??Dp:t.themeSwitchShown??Dp}function Ige(){let e=Bg(t1),t=Bg(Tk),o=tr();return e?FR({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?FR({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):FR({siteName:o.websiteName?.trim()||Ou})}import{useBrowserLayoutEffect as dYe}from"efficient-shell/hooks";import{Fragment as Rx,jsx as Bt,jsxs as Gn}from"react/jsx-runtime";var cYe="(max-width: 1100px) 100vw, min(59vw, 1050px)",Ek=Bge({}),Dge=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],VM=Bge(null),mf="data-gallery-grid",KM="data-gallery-tile";function pYe(e,t){let[o,n]=$M(null);return Hge(()=>{let r=e.current,a=r?.closest(`[${mf}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${KM}]`)),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 Nd={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},mYe=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),Mge=Array.from({length:6},mYe);function uYe(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=lYe(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 Hg({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let i=be(),{galleryHref:s="/gallery",submitHref:l="/contact",previewHover:d,display:c,displayPhone:p,styleOwner:f,photosOnly:u=!1,wordsAtRest:h=!1,Template:g,ownerId:b,sets:w=!1}=Fge(Ek),x=uYe(a),S=pf()&&!u,k=!S&&!fYe(x),y=x.photos??(x.imageSrc?[x.imageSrc]:[]),T=sYe(null),E=iYe(he=>{T.current=he},[]),_=pYe(T,e),P=Fge(VM),F=P?.report,I=r?.id,H=r?.tag??"",B=r?.name??"";dYe(()=>{if(!F||!I)return;let he={id:I,tag:H,name:B};return F(he),()=>F(he,!0)},[F,I,H,B]);let L=(I?P?.positionOf(I):null)??_,A=I?P?.sizesOf?.(I):void 0,$=e&&(!!t||!!d),[Y,V]=$M(!1),[Z,G]=$M(0),q=!!I&&!!P&&P.walkCount>1,te=he=>{let Fe=Z+he;if(q&&(Fe<0||Fe>=y.length)){V(!1),P.walk(I,he);return}G((Fe+y.length)%y.length)},R=()=>te(-1),O=()=>te(1),K=y.length>1||q,X=P?.opening;Hge(()=>{!X||X.id!==I||(G(X.at==="last"?Math.max(0,y.length-1):0),V(!0))},[X,I]);let M=y[Z]??x.imageSrc??"",ee=y.slice(1),de=g?Bt("div",{className:`block w-full min-w-0 ${Pb}${i?` ${iu}`:""}`,children:Bt(Ke,{ownerId:b??"GalleryB",ownerType:"GalleryB",Template:g,rows:[{key:I??x.imageSrc??"tile",image:x.imageSrc??"",tag:x.process,number:L?zM(L.index,L.total):"",eyebrow:x.car,name:x.wheel,meta:x.finish,href:x.href??""}],items:[{hoverMedia:ee.length?{photos:[{finish:"",items:ee.map(he=>({url:he,kind:"image"}))}]}:null}],previewHover:$,fallback:null,children:he=>he})}):Bt(WM,{build:x,forceHover:$,alwaysShowOverlay:h,index:L?.index,total:L?.total,ratio:o,captionPlace:n,display:c,displayPhone:p,styleOwner:f,editing:e,...w?{setCount:y.length}:{},...A?{sizes:A}:{}});return Gn(Rx,{children:[e?Bt(z,{as:"div",ref:E,[KM]:"",className:"block w-full text-left",children:de}):Bt(z,{as:"button",ref:E,[KM]:"",type:"button","aria-label":S?`Open ${x.car||"build"} on ${x.wheel||"wheel"}`:GM(x),onClick:()=>{G(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:de}),w?Bt(Yc,{open:Y,onClose:()=>V(!1),label:x.car&&x.wheel?`${x.car} on ${x.wheel}`:GM(x),onPrev:K?R:void 0,onNext:K?O:void 0,className:"bg-bg",children:Bt(wYe,{build:x,set:y,index:Z,onPick:G,onPrev:K?R:void 0,onNext:K?O:void 0,onLeave:()=>V(!1)})}):Bt(Yc,{open:Y,onClose:()=>V(!1),label:S?`${x.car} on ${x.wheel}`:GM(x),onPrev:K?R:void 0,onNext:K?O:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:Gn("div",{onClick:he=>he.stopPropagation(),className:`relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] ${k?"grid-cols-1":"grid-cols-[1.4fr_1fr]"} overflow-hidden border border-line bg-bg max-view-desktop:grid-cols-1 max-view-desktop:overflow-auto`,style:{boxShadow:"0 60px 120px -20px color-mix(in srgb, var(--sf-shadow-color, #141416) 70%, transparent)"},children:[Bt(bm,{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:KO},children:"\u2715"}),Gn("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[M&&Bt("img",{...to(M,{fallbackWidth:1280}),sizes:cYe,alt:`${(S?x.car:x.wheel||x.car)||"Photo"} \u2014 ${Z+1} of ${y.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},M),K&&Gn(Rx,{children:[Bt("button",{type:"button","aria-label":"Previous photo",onClick:R,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"}),Bt("button",{type:"button","aria-label":"Next photo",onClick:O,className:"absolute right-4 top-1/2 flex h-16 w-16 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,24px)] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25B7"}),y.length>1&&Gn("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:[Z+1," / ",y.length]})]})]}),S?Gn("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[x.process&&Bt("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:N(x.process)}),x.wheel&&Bt("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:re(x.wheel,!1)}),x.car&&Gn("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",Bt("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:N(x.car,!0)})]}),Gn("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:[x.wheel&&Gn(Rx,{children:[Bt("dt",{className:"text-fg-dim",children:"Wheel"}),Bt("dd",{className:"text-fg",children:N(x.wheel)})]}),x.process&&Gn(Rx,{children:[Bt("dt",{className:"text-fg-dim",children:"Process"}),Bt("dd",{className:"text-fg",children:N(x.process)})]}),x.finish&&Gn(Rx,{children:[Bt("dt",{className:"text-fg-dim",children:"Finish"}),Bt("dd",{className:"text-fg",children:N(x.finish)})]}),x.car&&Gn(Rx,{children:[Bt("dt",{className:"text-fg-dim",children:"Vehicle"}),Bt("dd",{className:"text-fg",children:N(x.car)})]})]}),Gn("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[Gn(He,{href:x.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:[Bt("span",{children:"View product"}),Bt("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),Gn(He,{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:[Bt("span",{children:"See more builds"}),Bt("span",{children:"\u2192"})]}),Gn(He,{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:[Bt("span",{children:"Submit your build"}),Bt("span",{children:"\u2192"})]})]})]}):!k&&Bt(hYe,{build:x})]})})]})}function zge(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function fYe(e){return!!e.wheel||zge(e).length>0}function GM(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function hYe({build:e}){let t=e.wheel,o=zge(e);return Gn("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&Bt("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:re(t,!1)}),o.map(n=>Bt("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:N(n)},n))]})}var gYe=360,bYe="120px";function wYe({build:e,set:t,index:o,onPick:n,onPrev:r,onNext:a,onLeave:i}){let s=t[o]??e.imageSrc??"",l="absolute top-1/2 flex h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg bg-bg text-lg text-fg max-view-wide:hidden";return Gn("div",{onClick:d=>d.stopPropagation(),className:"grid h-full w-full grid-cols-[1fr_360px] bg-bg text-fg max-view-wide:grid-cols-1 max-view-wide:grid-rows-[auto_1fr] max-view-wide:overflow-auto",children:[Gn("div",{className:"relative grid min-h-0 place-items-center bg-surface-2 py-12 max-view-wide:p-0",children:[s&&Bt("img",{...to(s,{fallbackWidth:1280}),sizes:`(max-width: ${Rb}px) 100vw, calc(100vw - ${gYe}px)`,alt:`${e.car||e.wheel||"Photo"} \u2014 ${o+1} of ${t.length}`,className:"block max-h-[calc(100vh-96px)] max-w-[calc(100%-192px)] max-view-wide:max-h-[60vh] max-view-wide:max-w-full"},s),r&&Bt("button",{type:"button","aria-label":"Previous photo",onClick:r,className:`${l} left-6`,children:"\u2039"}),a&&Bt("button",{type:"button","aria-label":"Next photo",onClick:a,className:`${l} right-6`,children:"\u203A"})]}),Gn("div",{"data-gallery-set-side":"",className:"flex min-h-0 flex-col overflow-auto p-8 max-view-wide:px-4 max-view-wide:py-5",children:[Bt(bm,{label:"Close popup",className:"flex h-10 w-10 shrink-0 cursor-pointer items-center justify-center self-end border border-fg bg-bg text-lg text-fg max-view-wide:fixed max-view-wide:right-3 max-view-wide:top-3 max-view-wide:z-5",children:"\u2715"}),e.wheel&&Bt("div",{className:"mt-10 text-[length:var(--size-label,11px)] uppercase tracking-[0.16em] text-fg-dim max-view-wide:mt-0",children:e.wheel}),e.car&&Bt("div",{className:"mt-2 mb-2 text-2xl leading-normal",children:e.car}),Gn("div",{className:"text-xs leading-normal text-fg-dim",children:[o+1," / ",t.length]}),t.length>1&&Bt("div",{className:"mt-8 grid grid-cols-3 gap-2 max-view-wide:grid-cols-5",children:t.map((d,c)=>Bt("button",{type:"button","data-gallery-set-thumb":"","aria-label":`Show photo ${c+1}`,"aria-current":c===o?"true":void 0,onClick:()=>n(c),className:`block cursor-pointer p-0 ${c===o?"opacity-100 outline outline-1 outline-offset-2 outline-fg":"opacity-50"}`,children:Bt("img",{...to(d,{fallbackWidth:320,maxWidth:640}),sizes:bYe,alt:"",loading:"lazy",className:"block aspect-[4/3] w-full object-cover"})},`${d}-${c}`))}),e.wheel&&e.href&&Gn(xt,{href:e.href,onClick:i,className:"mt-auto inline-block self-start border border-fg px-8 py-3 text-xs text-fg max-view-wide:mt-6",children:["See ",e.wheel]})]})]})}import{createContext as TYe,useContext as EYe,useEffect as Pk,useId as PYe,useState as Nr,useSyncExternalStore as _Ye}from"react";var xYe=14,yYe=3;function vYe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function kYe(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),vYe(o)}async function Wge(e,t,o={}){let n=o.days??xYe,r=o.read??tg.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=kYe(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>=yYe)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as Uge,formatDateTime as YM,formatTime as Kge}from"efficient-shell/format";var SYe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},Gge={weekday:"long",day:"numeric",month:"long",year:"numeric"},Vge={hour:"numeric",minute:"2-digit"},$ge={...Vge,timeZoneName:"short"};function jM(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function qM(e,...t){let o=gl(...t);return!o||!jM(e)?"":Kge(e,{locale:dH(),timeZone:o})}function XM(e,...t){let o=typeof e=="string"?{start:e}:e,n=gl(...t),r=jM(o.start);if(!n||!r)return"";let a=dH(),i=o.end?jM(o.end):null;if(!i||i.getTime()<=r.getTime())return YM(o.start,{locale:a,timeZone:n,style:SYe,zoneName:"short"});let s=YM(o.start,{locale:a,timeZone:n,style:Gge,clock:Vge}),d=Uge(o.start,n)===Uge(o.end,n)?Kge(o.end,{locale:a,timeZone:n,clock:$ge}):YM(o.end,{locale:a,timeZone:n,style:Gge,clock:$ge});return`${s} \u2013 ${d}`}function VO(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as CYe,userToday as RYe,userZone as OYe}from"efficient-shell/format";import{jsx as HYe}from"react/jsx-runtime";var jge=TYe(null);function uf(){let e=EYe(jge);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var ZM=[{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:""}],NYe=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function Yge(e,t){return{timezone:"",slots:t?NYe.flatMap(({hour:n,minute:r})=>CYe(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var JM={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function LYe(e){let t=String(e?.slots[0]?.start??"");return t?{...JM,startAt:t}:JM}function qge(e){return e.bookingNumber===JM.bookingNumber}function AYe(e,t){return e&&t?.length===0}function IYe(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!VO(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function FYe(){return()=>{}}function BYe(){return null}function Xge({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=PYe(),r=_Ye(FYe,RYe,BYe)??"",[a,i]=Nr(),[s,l]=Nr(""),[d,c]=Nr(""),[p,f]=Nr(r),[u,h]=Nr(r),[g,b]=Nr(!1),[w,x]=Nr(null),[v,S]=Nr(),[k,y]=Nr(""),[T,E]=Nr(""),[_,P]=Nr(""),[F,I]=Nr(""),[H,B]=Nr(""),[L,A]=Nr(()=>yH()),[$,Y]=Nr(null),[V,Z]=Nr(!1),[G,q]=Nr(!1),[te,R]=Nr(null),[O,K]=Nr("");Pk(()=>{K(OYe()??"")},[]),Pk(()=>{let xe=!1;return tg.listServices().then(ie=>{if(xe)return;let ce=yR(ie);i(ce),l(ie.currency),c(J=>J||ce[0]?.id||"")}).catch(()=>{xe||i([])}),()=>{xe=!0}},[]),Pk(()=>{r&&(f(xe=>xe||r),h(xe=>xe||r))},[r]),Pk(()=>{if(g||!d||!r)return;let xe={aborted:!1};return y(""),S(void 0),R(null),x(null),Z(!0),Wge(d,r,{signal:xe}).then(ie=>{if(!xe.aborted){if(ie.outcome==="found"){f(ie.date),h(ie.date),S(ie.availability);return}x(ie.outcome==="noneInWindow"?`No times are available in the next ${ie.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{xe.aborted||Z(!1)}),()=>{xe.aborted=!0}},[g,d,r]),Pk(()=>{if(!g||!d||!p)return;let xe=!1;return y(""),S(void 0),R(null),x(null),Z(!0),tg.getAvailability(d,p).then(ie=>{xe||(S(ie),ie.slots.length===0&&x("No times are available on this date."))}).catch(()=>{xe||x("We couldn't load available times. Please try again.")}).finally(()=>{xe||Z(!1)}),()=>{xe=!0}},[p,g,d]);let X=a?.find(xe=>xe.id===d),M=X?.depositAmountDue!=null,ee=IYe({editing:e,submitting:G,hasService:!!X,hasDay:!!p,selectedStart:k,name:T,email:_,requiresPayment:M},Date.now());async function de(xe){if(xe.preventDefault(),!(!ee||!X)){q(!0),R(null);try{let ie=await tg.create({serviceId:X.id,start:k,customer:{name:T.trim(),email:_.trim(),phone:F.trim()},notes:H.trim(),idempotencyKey:L,customerTimezone:O});Y(ie),A(yH())}catch(ie){R(ie instanceof ur&&ie.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),ie instanceof ur&&ie.status===409&&(y(""),tg.getAvailability(X.id,p).then(S).catch(()=>{}))}finally{q(!1)}}}let he=AYe(e,a),Fe=he?Yge(p,O):void 0,_t=t&&!$?LYe(Fe??Yge(p,O)):null;return HYe(jge.Provider,{value:{fieldPrefix:n,editing:e,services:he?ZM:a,currency:he?"AUD":s,serviceId:he?ZM[0].id:d,setServiceId:c,service:he?ZM[0]:X,requiresPayment:he?!1:M,date:p,earliestDate:u,setDate:f,setDateTouched:b,availability:Fe??v,loadingSlots:he?!1:V,noSlotsMessage:w,selectedStart:Fe?Fe.slots[0]?.start??"":k,setSelectedStart:y,customerTimezone:O,name:T,setName:E,email:_,setEmail:P,phone:F,setPhone:I,notes:H,setNotes:B,confirmation:$??_t,submitting:G,error:te,canSubmit:he?!1:ee,handleSubmit:de,sample:!!he},children:o})}import{jsx as YO,Fragment as Zge,jsxs as Jge}from"react/jsx-runtime";var Qge=`sf-button group inline-flex items-center justify-center gap-2.5 border ${rae} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,e0e={primary:"border-btn bg-btn text-btn-ink hover:border-btn-2 hover:bg-btn-2",ghost:"border-current bg-transparent hover:bg-white/10"};function va(e){let{variant:t="primary",arrow:o,glyphBefore:n,spread:r,className:a,style:i,part:s,glyphPart:l,children:d,href:c,newTab:p,hrefRewrite:f,...u}=e,h=`${r?Qge.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):Qge} ${e0e[t]??e0e.primary} ${a??""}`,g=n?Jge(Zge,{children:[o!==null&&YO("span",{"aria-hidden":!0,className:"inline-flex",...l,children:o??"\u2192"}),d]}):Jge(Zge,{children:[d,o!==null&&YO("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",...l,children:o??"\u2192"})]});return c?YO(xt,{href:c,className:h,style:i,newTab:p?!0:"auto",...f?{hrefRewrite:f}:{},...s,children:g}):YO("button",{type:"button",className:h,style:i,...u,children:g})}import{jsx as DYe}from"react/jsx-runtime";var _k=e=>DYe("div",{className:"grid bg-bg",children:e});import{jsx as po,jsxs as Ld}from"react/jsx-runtime";var Ck="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 MYe(e,t){let o=Number(e);if(o===0)return og;try{return Ple(o,t)}catch{return`${t} ${e}`}}var t0e={selected:!0};function o0e(e,t){return({index:o})=>t?{[E_]:P_(e,o)}:{}}var Rk="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function QM({number:e,children:t}){return Ld("div",{className:"mb-4 flex items-center gap-3",children:[po("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}),po("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 jO({eyebrow:e,heading:t,intro:o}){return Ld("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&po("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&po("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()&&po("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function qO({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:f,loadingSlots:u,noSlotsMessage:h,selectedStart:g,setSelectedStart:b,customerTimezone:w,editing:x}=uf();if(!n)return null;let v=Date.now(),S=gl(w,f?.timezone??""),k=gl(f?.timezone??""),y=k&&k!==S?k:"",T=(f?.slots??[]).map(E=>({start:E.start,time:qM(E.start,S),businessTime:y?`${qM(E.start,y)} business`:"",passed:!x&&VO(E.start,v)}));return Ld(z,{className:"flex flex-col gap-10",style:e,children:[Ld("div",{children:[po(QM,{number:"01",children:"Choose a service"}),po("div",{className:"grid gap-3 sm:grid-cols-2",children:po(Ke,{ownerId:t.id,ownerType:t.type,slot:Pg,Template:t.serviceTemplate,rows:n.map(E=>({name:E.name,meta:`${E.durationMinutes} min \xB7 ${MYe(E.price,r)}`,description:E.description??""})),states:n.map(E=>E.id===a?t0e:void 0),actions:x?void 0:n.map(E=>({press:()=>i(E.id),label:E.name})),copyAttrs:o0e(Pg,x),fallback:null,wrapCopy:_k,children:E=>po(Fo,{children:E})})}),s&&po("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."})]}),Ld("div",{children:[po(QM,{number:"02",children:"Choose a date and time"}),po($r,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:Rk,children:po("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:E=>{p(!0),c(E.target.value)},className:Ck,required:!0})}),po("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 min-[1200px]:grid-cols-4",role:"group","aria-label":"Available appointment times",children:u?po("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"}):f?.slots.length?po(Ke,{ownerId:t.id,ownerType:t.type,slot:_g,Template:t.timeTemplate,rows:T.map(E=>({time:E.time,businessTime:E.businessTime})),states:T.map(E=>E.start===g&&!E.passed?t0e:void 0),actions:x?void 0:T.map(E=>({press:()=>b(E.start),label:E.time,disabled:E.passed})),copyAttrs:o0e(_g,x),fallback:null,wrapCopy:_k,children:E=>po(Fo,{children:E})}):h?po("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:h}):null}),S&&!u&&!!f?.slots.length&&Ld("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 ",S,y?` \xB7 business timezone ${y}`:""]})]})]})}function XO({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:f,error:u,canSubmit:h}=uf();return Ld(z,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[po(QM,{number:"03",children:"Your details"}),Ld("div",{className:"flex flex-col gap-4",children:[po($r,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:Rk,children:po("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:g=>a(g.target.value),className:Ck,required:!0})}),po($r,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:Rk,children:po("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:g=>s(g.target.value),className:Ck,required:!0})}),po($r,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:Rk,children:po("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:g=>d(g.target.value),className:Ck})}),po($r,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:Rk,children:po("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:g=>p(g.target.value),className:`${Ck} resize-y`})})]}),u&&po("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:u}),po(va,{type:n?"button":"submit",disabled:!h,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:f?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function ZO({successMessage:e}){let{confirmation:t,customerTimezone:o}=uf();if(!t)return null;let n=gl(t.customerTimezone,o,t.timezone),r=gl(t.timezone),a=r&&r!==n?r:"";return Ld("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[Ld("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),po("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),po("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:XM(t.startAt,n)}),a&&Ld("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",XM(t.startAt,a)]}),(e??"").trim()&&po("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),po(va,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!qge(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Ox}from"react/jsx-runtime";var n0e=["head","booking","details","confirm"],r0e={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function e9({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}=uf(),f=Vue(d);return e==="head"?Ox(z,{className:"min-[960px]:col-span-2",style:f,children:Ox(jO,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Ox(z,{className:"min-[960px]:col-span-2",style:f,children:Ox(ZO,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Ox(qO,{style:f,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Ox(XO,{buttonLabel:s,style:f}):null}import{useEffect as a0e,useState as ff}from"react";import{jsx as Nx,jsxs as WYe}from"react/jsx-runtime";function jc(e,t){let[o,n]=ff(void 0),[r,a]=ff(0);return a0e(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return Bo.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),a0e(()=>{if(t===void 0)return qR(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var zYe="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Lx(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function hf({form:e,formSlug:t,editing:o=!1}){let[n,r]=ff({}),[a,i]=ff(""),[s,l]=ff(!1),[d,c]=ff(!1),[p,f]=ff(null),[u,h]=ff(null);async function g(b){if(b.preventDefault(),!(o||s||!e||!t)){l(!0),h(null);try{let w=e.fields.map(v=>({fieldKey:v.key,value:n[v.key]??""})),x=await Bo.submitForm(t,{answers:w,...a?{company:a}:{}});f(x?.account??null),c(!0)}catch{h(zYe)}finally{l(!1)}}}return{valueOf:b=>n[b]??"",set:(b,w)=>r(x=>({...x,[b]:w})),honeypot:a,setHoneypot:i,submitting:s,done:d,account:p,error:u,handleSubmit:g}}function Ax({value:e,onChange:t}){return Nx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function gf({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"?Nx("textarea",{required:e.required,rows:r,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l}):e.type==="select"?WYe("select",{required:e.required,value:t,onChange:d=>o(d.target.value),className:n,...l,children:[Nx("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>Nx("option",{value:d,children:d},d))]}):e.type==="checkbox"?Nx("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):Nx("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 El,jsxs as Ok}from"react/jsx-runtime";function UYe(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function i0e({eyebrow:e,title:t}){return Ok("div",{className:"flex flex-col gap-4",children:[e&&El(ut,{text:e,scaled:!1}),t&&El("h2",{className:"font-display text-[min(clamp(40px,5vw,72px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:re(t,!0)})]})}function JO({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return Ok("div",{className:"flex flex-col gap-8",children:[e&&Dt(e).map((l,d)=>El("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:N(l)},d)),a&&(n?r.done?El("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:Lx(n)}):Ok("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",UYe(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?Ok("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:[El(gf,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),Ok("span",{children:[l.label,l.required?El("span",{className:"text-accent",children:" *"}):null]})]},l.key):El(gf,{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)}),El(Ax,{value:r.honeypot,onChange:r.setHoneypot}),r.error&&El("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:r.error}),El("button",{type:s?"button":"submit",disabled:r.submitting,className:"col-span-2 cursor-pointer bg-btn px-6 py-4 font-mono text-[14px] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg hover:text-bg disabled:cursor-wait disabled:opacity-60",children:r.submitting?"Sending\u2026":N(t||Ut.buttonText)})]}):El("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:i?m("Loading form\u2026"):m("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&&El("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:N(o)})]})}var QO=["field","tick","thanks"],s0e={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},eN={field:"styleField",tick:"styleTick",thanks:"styleThanks"},GYe={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 $Ye(e){return typeof e=="string"&&ub.includes(e)?e:null}function l0e(e){let t={};for(let o of QO){let n=$Ye(e[eN[o]]);n&&Object.assign(t,Fc(n,GYe[o]))}return t}import{jsx as tN}from"react/jsx-runtime";var d0e=["head","form"],c0e={head:"Head",form:"Form"};function t9({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=jc(i,s),p=hf({form:c,formSlug:i,editing:l}),f=l0e(d);return e==="head"?tN(z,{as:"div",style:f,children:tN(zt,{look:"statement",num:t,title:o})}):tN(z,{as:"div",style:f,children:tN(JO,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var KYe={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>n0e.map(e=>({region:e,name:r0e[e]})),addBlocked:()=>m("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:()=>d0e.map(e=>({region:e,name:c0e[e]})),addBlocked:()=>m("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:Ege},()=>({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:()=>Mge.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};Ine(KYe);import{jsx as p0e}from"react/jsx-runtime";var VYe={body:"text-[length:var(--size-body,17px)]"},wm=5;function Ix({rating:e}){let t=Math.min(wm,Math.max(0,Math.round(e)));return p0e(z,{role:"img","aria-label":`${t} out of ${wm} stars`,className:`flex gap-1 ${VYe.body} leading-none`,children:Array.from({length:wm}).map((o,n)=>p0e("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var o9="mx-auto max-w-[var(--sf-site-width,1600px)]",YYe=[/^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 m0e(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function n9(e){return e.split(/\s+/).filter(t=>t&&!YYe.some(o=>o.test(m0e(t)))).join(" ")}var jYe=new Set(["max-view-desktop","max-view-wide"]);function qYe(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 Fx(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=m0e(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?qYe(l[1]):void 0;d!==void 0&&(i?jYe.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as XYe,jsx as ZYe}from"react/jsx-runtime";function r9({inBox:e,atTop:t,anyBox:o=!1}){let n=Tu(),r=Jb();return ZYe(XYe,{children:n||o&&r?e:t})}import{createContext as u0e,useContext as i9}from"react";import{Fragment as QYe,jsx as a9}from"react/jsx-runtime";var JYe={atTop:null,inBox:null},s9=u0e(JYe);function oN({pad:e,children:t}){return a9(s9.Provider,{value:e,children:t})}var br=()=>i9(s9).atTop,f0e=()=>i9(s9),h0e=u0e(void 0);function g0e({pads:e,children:t}){return e?a9(h0e.Provider,{value:e,children:t}):a9(QYe,{children:t})}var b0e=()=>i9(h0e);import{jsx as Nk}from"react/jsx-runtime";function kt({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=be(),f=f0e(),u=n9(e),h=o===null?"":n9(o),{className:g,style:b,...w}=Re(u,f.inBox,n),x=Nk(z,{as:"section",ref:s,...i,...w,className:g||void 0,style:b,id:a,children:h?Nk("div",{className:h,children:c}):c}),v=r?{...r,...n}:n,S=d?null:f.atTop,k=d?f.atTop:null,{className:y,style:T,...E}=Re(t?`${o9} ${e}`:e,S,v),_=Nk(z,{as:"section",ref:s,...i,...E,className:y,style:T,id:a,children:o===null?c:Nk("div",{...Re(ge(o,p),k),children:c})});return Nk(r9,{inBox:x,atTop:_,anyBox:l})}import{Fragment as tje,jsx as xm,jsxs as nN}from"react/jsx-runtime";var Bx={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,19px)]",label:"text-[length:var(--size-label,12px)]"},eje="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))]",l9="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 d9({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:nN(kt,{className:"relative z-[2] border-t border-line bg-surface",column:l?l9:eje,padOnColumn:!0,children:[l?null:nN(tje,{children:[(t??"").trim()&&xm(ut,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&xm("h2",{className:`mb-12 font-heading2 ${Bx.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${Bx.headingMediumUpTo800}`,children:re(o??"",!1)})]}),xm("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=>nN("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&&xm(Ix,{rating:c.rating}),(c.title??"").trim()&&xm("h3",{className:`font-display ${Bx.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),xm("div",{className:`flex-1 font-serif ${Bx.bodySmall} leading-[1.65] text-fg-dim`,children:Dt(c.quote).map((p,f)=>xm("p",{className:f?"mt-3":"",children:p},f))}),nN("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[xm("span",{className:`font-mono ${Bx.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),xm("span",{className:`font-mono ${Bx.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var w0e=Fx(l9),c9={top:84,bottom:w0e.bottom,topPhone:84,bottomPhone:w0e.bottomPhone},x0e=c9,[oje,nje]=O2("Testimonials"),rje={type:qs,props:{...Ue,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[Xs]:[{type:"Text",props:{...$e,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Be("quote",Rt,{size:16,lineHeight:1.6}),{type:qs,props:{...Ue,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Xs]:[Be("name",$e,{...ld,weight:500,letterSpacing:.04}),Be("role",Rt,{textStyle:"body-5"})]}}]}},aje={name:"Testimonials",boxProps:e=>({...lc,direction:"column",gap:44,sectionBorder:{top:1},...uu(e,x0e)}),box:[...Up,...Mh(x0e)],parts:[{kind:"group",name:"Heading",props:{...Ue,gap:16},parts:[{...oje,props:$e},{...nje,props:$e,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[rje]}}],site:Eee("title"),drop:{...dc,...cc,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"}};Fn({Testimonials:aje});var Vr={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 aN,tabletKey as p9}from"efficient-easel/draw";var ije={textStyle:"body-5",...go("label",14),letterSpacing:.05,lineHeight:1.5},sje={type:qs,props:{...Ue,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[aN("share")]:"content",[aN("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Xs]:[Be("label",Rt,{...Aa(14),letterSpacing:.05,lineHeight:1.5}),Be("value",{...$e,align:"right"},{...ije,align:"right"})]}},y0e={[Wh]:D_},lje=["dynamic","source","finish","size","wheel"],Lk=il("SpecTable",{slots:{template:[sje]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...Ue,direction:"row",share:"content",gap:48,[p9("gap")]:80,[aN("gap")]:80,...y0e}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),dje=Lk.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(lje.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),rN=Fx(Vr.ownBox),cje={...Lk,parts:dje,boxProps:(e,t)=>{let o=typeof Lk.boxProps=="function"?Lk.boxProps(e,t):Lk.boxProps;return{...o,sectionPaddingBottom:rN.bottom,sectionPaddingBottomPhone:rN.bottomPhone,...y0e,[p9("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[p9("sectionPaddingBottom")]:rN.bottomPhone,[aN("gap")]:36,...rN.line?{sectionBorder:L_({bottom:1})}:{}}}};Fn({SpecTable:cje});Fn({ProductGrid:il("ProductGrid",{slots:{[Lt]:[_fe()]},pressHeading:!0})});Fn({Events:il("Events",{slots:{[Lt]:N8()},coreProps:{sectionAccent:JP},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});Fn({Collections:il("Collections",{slots:{[Lt]:[L8()]},roomBelow:Eme,pressHeading:!0})});Fn({GalleryB:il("GalleryB",{slots:{[Lt]:[A8()]},roomBelow:{bottom:pi.bottom,bottomPhone:O5},pressHeading:!0})});Fn({[hr]:{name:"Product hero",box:[...XJ],boxProps:{direction:"column",gap:0,gapPhone:0,...ht(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[lx]:dx},slots:e=>({[Lt]:n8(e)})}]}});var m9=Fx(Vr.ownBox);Fn({FitmentTable:il("FitmentTable",{slots:{[dO]:[mfe()],[tf]:[ufe()]},roomBelow:{bottom:m9.bottom,bottomPhone:m9.bottomPhone},boxProps:m9.line?{sectionBorder:L_({bottom:1})}:{},pressHeading:!0})});var pje=e=>({type:qs,props:{...Ue,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[Xs]:[{type:qs,props:{...Ue,name:"Words",direction:"column",gap:16},slots:{[Xs]:[Be("eyebrow",$e,{...Aa(13),color:"accent"}),Be("title",$e,{textStyle:"heading-2",...go("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Be("copy",Rt,{textStyle:"body-1",...go("body",15),lineHeight:1.6})]}},{type:qs,props:{...Ue,name:"Picture",direction:"column",gap:12},slots:{[Xs]:[{type:"ImageBlock",props:{[Gs]:"image",aspect:"1/1",fit:"contain"}},Be("tag",{...Rt,align:"right"},{...Aa(11),align:"right"})]}}]}}),mje={name:"Feature Rows",boxProps:{...lc,..._ee,direction:"column",gap:0},box:Up,parts:[{kind:"core",keep:"rest",slots:e=>({template:[pje(e.startLeft===!0)]})}]};Fn({DetailRows:mje});import{phoneKey as f9}from"efficient-easel/draw";var sN=e=>[...Up.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>N_(t,n)],...Mh(e)],h9=(e,t,o)=>(n,r)=>({...lc,sectionAccent:N_(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...uu(n,e)}),g9=(e,t,o)=>({kind:"text",key:e,role:"heading",props:$e,style:{textStyle:"heading-2",...go("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),b9=(e,t,o={})=>({kind:"group",name:"Heading",props:{...Ue,gap:e,gapPhone:e,...o},parts:t}),w9=(e={})=>({kind:"core",keep:"rest",props:R_,...e}),iN=c9,[uje]=O2("ReviewForm"),fje=()=>({name:"Review Form",boxProps:h9(iN,48,32),box:sN(iN),parts:[b9(16,[{...uje,props:$e},g9("title",1,-.02)]),w9()],pressKeepsEmpty:["eyebrow","title"],drop:{...dc,...cc,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[hje]=O2("Reviews"),u9=e=>({...Aa(12),letterSpacing:e}),gje={type:qs,props:{...Ue,name:"Card",gap:16,...ht(40,40,32,32),sectionAccent:0},slots:{[Xs]:[{type:"RatingBlock",props:{[Gs]:"rating"}},Be("title",$e,{textStyle:"heading-1",...go("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Be("quote",Rt,{textStyle:"body-1",...go("body",15),lineHeight:1.65}),{type:qs,props:{...Ue,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[f9("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Xs]:[Be("name",$e,u9(.22)),Be("dateLabel",{...Rt,align:"right"},{...u9(.18),align:"right"}),Be("role",{...Rt,align:"right"},{...u9(.18),align:"right"})]}}]}},bje=()=>({name:"Reviews",boxProps:h9(iN,48,32),box:sN(iN),parts:[b9(16,[{...hje,props:$e},g9("title",1,-.02)]),w9({slots:{template:[gje]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...dc,...cc,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"}}),v0e={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},wje=()=>({name:"Booking Form",boxProps:h9(v0e,40,40),box:sN(v0e),parts:[b9(16,[O_("eyebrow",{...go("label",12),weight:600,letterSpacing:.24,color:"accent"}),g9("heading",.98,-.025),{kind:"text",key:"intro",props:{...Rt,maxWidth:660},style:{textStyle:"heading-1",...go("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),w9()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...dc,...cc}}),k0e={top:88,bottom:88,topPhone:64,bottomPhone:64},xje=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...lc,direction:"column",align:"center",gap:20,gapPhone:20,...uu(e,k0e)}),box:[...Up,...Mh(k0e)],parts:[{...O_("eyebrow"),props:{...$e,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...$e,align:"center",maxWidth:720},style:{textStyle:"heading-1",...go("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...$e,align:"center",maxWidth:560},style:{textStyle:"body-1",...go("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...Ue,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[f9("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...Tee,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...H2,align:"center",icon:"none"},style:{...tu(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...dc,...cc}}),S0e={top:60,bottom:0,topPhone:60,bottomPhone:0},yje=()=>({name:"Contact Form",boxProps:(e,t)=>({...lc,sectionAccent:N_(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...uu(e,S0e)}),box:sN(S0e),parts:[{kind:"group",name:"Header",props:{...Ue,direction:"row",align:"center",share:"content",phoneRow:2,[f9("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[O_("routingNumber"),{kind:"text",key:"routingTagline",props:Rt,style:{textStyle:"heading-1",...go("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:Pee(e.sectionAccent??0,t)})}}],drop:{...dc,...cc}});Fn({ContactRouting:yje(),ReviewForm:fje(),AppointmentBooking:wje(),Reviews:bje(),CheckoutCTA:xje()});var T0e={top:40,bottom:40,topPhone:40,bottomPhone:40},E0e={textStyle:"heading-1",...Qee("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},x9=["heading","intro"],P0e=[Lt,Ua,Ga,$a];function vje(e,t){let o=(t?kb:zZ)(Co,e);return Object.fromEntries(P0e.map(n=>[n,o[n]]))}var kje=()=>({name:"List",boxProps:e=>({...lc,direction:"column",gap:24,gapPhone:24,...uu(e,T0e)}),box:[...Up,...Mh(T0e)],parts:[{kind:"group",name:"Heading",props:{...Ue,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...$e,tag:"h1"},style:E0e,when:e=>!dB(e)},{kind:"text",key:"heading",role:"heading",props:{...$e,tag:"h2"},style:E0e,when:dB},{kind:"text",key:"intro",role:"body",props:Rt,style:{textStyle:"body-1",...go("body",15)}}]},{kind:"core",keep:"rest",props:R_,derive:{reads:[...P0e],props:(e,t)=>vje(e,t.press===!0)}}],pressKeepsEmpty:x9,drop:{...dc,...cc,[X_]:"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"}});Fn({AlloyWheelsListing:kje()});var _0e={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as Sje,useContext as Tje}from"react";function yt(e){return Mt}import{Fragment as Pje,jsx as Hx}from"react/jsx-runtime";var Eje=yt("ProductCard")("buy"),Ro={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)]"},Dx=Sje("catalog");function Ts(){return Tje(Dx)==="catalog"}function bf({children:e}){let t=Ts();return Hx(Pje,{children:e??(t?Hx(z,{"aria-hidden":!0}):null)})}function Mx({children:e}){return Hx(bf,{children:e?Hx(z,{children:e}):null})}function lN({children:e}){return Hx(bf,{children:e?Hx(z,{className:"[.sf-card-rows>*>&]:self-end",...Eje,children:e}):null})}var C0e={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:LP(Ro.label),writable:!0,sized:!0}},R0e={sku:{label:"SKU",follows:"Label",builtIn:LP(Ro.label),writable:!0,sized:!0}},O0e={name:{label:"Name",follows:"Heading 3",builtIn:LP(Ro.headingSmall2),writable:!0,sized:!0}};xse({ProductPrice:_0e,ProductEyebrow:C0e,ProductName:O0e,ProductSku:R0e});function zx(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as _je}from"react/jsx-runtime";import{OpacityIcon as Cje}from"efficient-easel/icons";import{group as dN}from"efficient-easel/screen/lib/document/box-fields";var N0e={fields:{_gContent:dN("Content"),eyebrow:W("Eyebrow",ku.eyebrow),title:j("Heading",ku.title),body:j("Body",ku.body),_gBackground:dN("Background image"),imageSrc:rt("Image","image/*"),overlay:le("Overlay",_je(Cje,{}),0,100,5,60,"%"),_gButton:dN("Button"),...Sl,_gLayout:dN("Layout")}};import{jsx as Ak}from"react/jsx-runtime";import{GroundIcon as A0e,ListIcon as Rje}from"efficient-easel/icons";function I0e(e){let t=e?.data?.root,o=Doe(t?.props)??"";return o&&NB(o,"text").length?o:""}var y9="outsideCardTemplate",Oje={not:{context:y9,is:!0}},Va={[y9]:(e,t)=>{let o=Hp(t.appState,e.props?.id);if(o!==void 0)return o===null&&!I0e(t.appState)},[GX]:(e,t)=>{let o=cd(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[KX]:(e,t)=>cd(t.appState,e.props?.id)?.inCopy};function Yr(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?Ak(er,{noun:"link"}):t==="colour"?Ak(A0e,{}):Ak(Rje,{}),a={...ne(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return tt(a,Oje)}function qc(){return Yr("Link from","link")}var Nje={any:[{field:Xo,set:!1},{context:y9,is:!0,default:!0}]};function wf(e){return tt(e,Nje)}function Ik(e){return e.kind==="link"?_r(Q(e.label)):e.kind==="colour"?Lje(e.label):e.multiline?Je(e.label):Se(e.label)}function Lje(e){return{type:"custom",render:({value:t,onChange:o})=>Ak(Uae,{label:e,icon:Ak(A0e,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function Aje(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var L0e=new WeakMap;function Ya(e,t,o){let n=Object.keys(e).filter(k=>Aje(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?R6(o.appState,r.id)??"":"",l=n.map(k=>typeof r[k]=="string"?r[k].trim():""),d=ft(a?.props),c=i===Mr?Hp(o.appState,a?.props?.id):null,p=c?R6(o.appState,a?.props?.id)??void 0:void 0,f=c?HP(a?.props,c.type,p):"",u=c?ft(c.props):"",h=c?`${String(c.type??"")}\0${u}\0${p??""}`:"",g=i===Mr&&!c?JSON.stringify(a?.props?.[HZ]??null):"",b=a?"":I0e(o.appState),w=[i,s,d,f,h,g,xP(),b,Noe(),...l].join("\0"),x=L0e.get(e);x||L0e.set(e,x=new Map);let v=x.get(w);if(v)return v;let S={...e};return n.forEach((k,y)=>{let T=e[k],E=i===Mr?Lh(o.appState,a,T.cardRowKind):i?UZ(a,T.cardRowKind,s||void 0):NB(b,T.cardRowKind),_=T.cardRowKind==="link"&&!!i&&!E.length;if(!l[y]&&(_||(T.cardRowContent?!i||!E.length:!E.length&&!i&&b))){delete S[k];return}let P=l[y]&&!E.some(H=>H.key===l[y])?l[y]:"",F=T.cardRowKind==="list",I=(H,B)=>F&&B===0&&H.key!==l[y]?"":H.key;S[k]={...T,options:[...F?[]:T.options,...E.map((H,B)=>({label:H.label,value:I(H,B)})),...P?[{label:P,value:P}]:[]]}}),x.set(w,S),S}import{group as B0e}from"efficient-easel/screen/lib/document/box-fields";var cN={meta:"Trailing note"},F0e={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var H0e={fields:{_gContent:B0e("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:Q("Label"),href:_r(Q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:W("Trailing note",cN.meta),_gText:B0e("Text"),rowField:Yr("Shows","text")},resolveFields:(e,t)=>Ya(t.fields,e,t),showWhenFacts:Va};import{jsx as fi,jsxs as Wje}from"react/jsx-runtime";import{ButtonIcon as Uje,ButtonIconIcon as Gje,IconAfterTextIcon as $je,IconBeforeTextIcon as Kje}from"efficient-easel/icons";import{SettingsField as Vje}from"efficient-easel/panel";import{useSelectedFields as $0e}from"efficient-easel/easel";import{buttonFieldSet as Yje}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as jje}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as qje,Segmented as Xje}from"efficient-shell/ui";function pN(e){return typeof e=="boolean"?e:!0}import{parseOption as Ije}from"efficient-shell/format";var v9=["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"],Fje=["before","after","end"];function k9(e){return typeof e=="string"&&v9.includes(e)?e:void 0}function D0e(e,t){return k9(e)??(pN(t)?"arrow-right":"none")}function Fk(e){return Ije(Fje,"after",e)}function M0e(e,t){return Fk(e)==="end"&&Dg(t)==="fill"}function Dg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function z0e(e,t,o,{atSectionLine:n=!1}={}){let r=Dg(e);if(Tr(o)){let i=Dg(o),s=Tr(t)?Dg(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(Tr(t)){let i=Dg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as fN}from"efficient-easel/screen/lib/document/style-fields";import{group as W0e}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as Zje}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as S9}from"react/jsx-runtime";import{LockIcon as Bje}from"efficient-easel/icons";import{FieldText as Hje}from"efficient-easel/fields";import{SettingsField as Dje}from"efficient-easel/panel";import{keptByRow as Mje}from"efficient-easel/screen/lib/document/style-fields";function zje(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??qre}-words`;return S9(Dje,{label:m("Words"),icon:S9(Bje,{}),htmlFor:o,children:S9(Hje,{id:o,value:m("Set by country"),onChange:()=>{},readOnly:!0})})}}}function mN(e){return Mje(e)}function uN(e,t,o,n=[]){return $C(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?zje():a]))}var T9=e=>IC(e==="none"?"no-symbol":e),Jje=v9.map(e=>({value:e,icon:e==="none"?wre(T9(e),fi(BB,{value:e})):T9(e)})),K0e=Q("Button");function Qje({value:e,onChange:t}){let o=$0e(),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(nae,{label:"Button",icon:fi(Uje,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):K0e.render({value:r,field:{label:"Button"},onChange:a=>t(Eae(a))})}function eqe({value:e,onChange:t}){let o=$0e(),n=D0e(e,o.values.arrow),r=Fk(o.values.iconPosition),a=Dg(o.values.widthFit)==="fill",i=T9("icon-at-end");return fi(Vje,{label:m("Icon"),icon:fi(Gje,{size:18}),value:n==="none"?void 0:fi(BB,{value:n}),children:Wje("div",{className:"flex items-center gap-2",children:[fi(qje,{label:m("Icon"),value:n,options:Jje,onChange:t}),n!=="none"&&fi(Xje,{size:"sm",block:!0,label:m("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:fi(Kje,{size:16}),label:fi("span",{className:"sr-only",children:m("Icon before text")}),title:m("Icon before text")},{value:"after",icon:fi($je,{size:16}),label:fi("span",{className:"sr-only",children:m("Icon after text")}),title:m("Icon after text")},...a?[{value:"end",icon:i,label:fi("span",{className:"sr-only",children:m("Icon at the far end")}),title:m("Icon at the far end")}]:[]]})]})})}var U0e=()=>A6(tr().theme),G0e=Yje({lengthUnits:OC,follows:{useFill:()=>U0e().fill,useText:()=>U0e().ink,useBorder:()=>{let[e]=xc("variant"),[t]=xc("buttonColor"),{theme:o}=tr(),n=VB({variant:e,buttonColor:t}).border.width,r=Tr(t)??(e==="ghost"?eJ(o).text:A6(o).fill);return{width:n,color:r}},useCorners:()=>iJ(tr().cornerRadiusPx),useFillOpacity:()=>VB({variant:xc("variant")[0]}).fillOpacity},usePresets:Lre,resetTo:e=>Pae(e,m("Styles")),padding:{fallback:aae,tablet:!0},phone:jje,say:ew});function tqe(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var V0e={fields:{label:Cae(K0e,e=>fi(Qje,{value:e.value,onChange:e.onChange})),labelText:Iae("label"),href:wf({...qe("Button link"),...fN("label")}),consentWords:mN("label"),_gButton:W0e("Button"),rowField:Yr("Shows","text"),[Xo]:qc(),...tqe(G0e,Zje.Design),_gStyle:W0e("Style"),variant:fN("buttonColor"),icon:{type:"custom",render:e=>fi(eqe,{value:e.value,onChange:e.onChange})},iconPosition:fN("icon"),arrow:fN("icon"),...G0e},resolveFields:(e,t)=>uN(Ya(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Va};import{jsx as Bk}from"react/jsx-runtime";import{AccentIcon as oqe,ColumnsIcon as X0e,StylesIcon as Z0e}from"efficient-easel/icons";import{group as E9}from"efficient-easel/screen/lib/document/box-fields";import{newId as j0e}from"efficient-easel/data";function hN(e,{rows:t="items",label:o="title"}={}){let n=ft(e);return n?Bp(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()||m("Card {n}",{n:a+1}),value:KZ(dn(r),a)}))}var Y0e=new WeakMap;function gN(e,t){let o=Y0e.get(e);o||Y0e.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 q0e(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>j0e(t),enumerable:!0})}function bN(e,t="items"){if(!Array.isArray(e[t])||ft(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 f=r(c);if(f&&!i.has(f))return i.add(f),c;let u=!f&&a&&n===String(p+1);if(f||u){let h=j0e("card");return i.add(h),l=!0,u&&(s=h),{...c,key:h}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as nqe}from"efficient-easel/data";var rqe=e=>nqe(e.template)&&e.template.length>0;function aqe(e,t){let o=rqe(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,gN(r,hN(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,lqe(r)]]:[[n,r]]))}var iqe=Object.fromEntries(_2("Cards").filter(e=>!e.everySource).map(e=>[e.key,Ik(e)])),sqe=Object.fromEntries(_2("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,Ik(e)])),J0e=new WeakMap;function lqe(e){let t=J0e.get(e);return t||J0e.set(e,t={...e,arrayFields:iqe}),t}var Q0e={fields:{_gSource:E9("Source"),dataSource:oo("Card content","Manual"),[ww]:xw(),_gContent:E9("Content"),eyebrow:W("Eyebrow",Hb.eyebrow),eyebrowLook:ne("Eyebrow style",Bk(Z0e,{}),[...ol],Gp("Cards")),title:j("Heading",Hb.title),items:{type:"array",label:"Cards",arrayFields:sqe,defaultItemProps:q0e({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...Cee,highlightedCard:ne("Highlighted card",Bk(oqe,{}),[{label:"None",value:""}],""),highlightBadge:W("Highlight badge","Most popular"),_gStyle:E9("Style"),cardStyle:lo("Card style",Bk(Z0e,{}),[{label:"Cards",value:"cards",picture:YB.cards},{label:"Label only",value:"label-only",picture:YB["label-only"]}],"cards",{columns:2,cell:Pr}),columns:le("Columns",Bk(X0e,{}),2,4,1,3),fillLastRow:oe("Last card fills its row",!1,Bk(X0e,{}),"When the last row is short, its last card widens to fill it.")},resolveData:(e,t)=>{let o=t?.lastData?.props,n=gse(e.props,o),r=OP(n),a=r===e.props?e:{...e,props:r},i=a.props,s=bN(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=ct(no("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,mt.Cards.headRows),n=e.props,r=aqe(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:Se("Feature label"),href:_r(Q("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:Gp("KeyFeatures")}}:{}}}};import{jsx as dqe}from"react/jsx-runtime";import{StickyIcon as cqe}from"efficient-easel/icons";import{group as ebe}from"efficient-easel/screen/lib/document/box-fields";var tbe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Label"),count:Q("Count")},getItemSummary:e=>e?.label?`${e.label}${e.count?` \xB7 ${e.count}`:""}`:"Tab"},activeTab:nn(_r(Q("Active tab","All"))),_gLinks:ebe("Links"),links:{type:"array",label:"Right links",arrayFields:{label:Q("Label"),href:_r(Q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:ebe("Style"),sticky:oe("Stick to top",!0,dqe(cqe,{}))}};import{jsx as pqe}from"react/jsx-runtime";import{StylesIcon as mqe}from"efficient-easel/icons";import{group as obe}from"efficient-easel/screen/lib/document/box-fields";var uqe=[...toe],nbe={fields:_i({_gContent:obe("Content"),eyebrow:W("Chip label",qb.eyebrow),title:j("Heading",qb.title),body:j("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:Se("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:W("Caption","Illustrative example"),_gStyle:obe("Style"),chartStyle:lo("Chart style",pqe(mqe,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:XC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:XC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:XC.donut}],"bars",{columns:3,cell:Pr}),valueSuffix:nn(W("Value suffix","%"))},uqe,Ia)};import{jsx as Oqe}from"react/jsx-runtime";import{group as Nqe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as at,Fragment as _9,jsxs as Ad}from"react/jsx-runtime";import{useId as fqe,useState as hqe}from"react";import{InspectorUpLevel as Hk}from"efficient-easel/chrome";import{useEasel as gqe}from"efficient-easel/easel";import{ListField as sbe}from"efficient-easel/fields";import{SettingsField as lbe}from"efficient-easel/panel";import{ClockIcon as rbe,ContrastIcon as bqe,GlobeIcon as wqe,LinkIcon as xqe,LocationIcon as yqe,PhoneIcon as vqe,SquareIcon as kqe,TypeIcon as C9}from"efficient-easel/icons";import{useSectionOps as Sqe}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as Tqe}from"efficient-easel/draw";var R9=(e,t)=>t||e?Rse(e,t):m("Ungrouped");function Eqe(e){let t=[];return e.forEach((o,n)=>{let r=Nu(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 P9({children:e}){return at("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--ink-faint)",margin:"14px 0 6px"},children:e})}var dbe={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"},Pqe={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},cbe={...Pqe,color:"var(--status-danger-soft-ink)"};function ym({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=fqe();return at(lbe,{label:e,icon:r??at(C9,{}),htmlFor:l,children:n?at("textarea",{id:l,value:t,placeholder:o,onChange:d=>a(d.target.value)}):at("input",{id:l,type:"text",value:t,placeholder:o,onChange:d=>a(d.target.value),onBlur:i,onKeyDown:s})})}var _qe=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],Cqe=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function abe({label:e,icon:t,options:o,value:n,onChange:r}){return at(lbe,{label:e,icon:t,children:at("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:o.map(a=>{let i=n===a.value;return at("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:m(a.label)},a.value)})})})}function ibe({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||Rn.mapTheme,a=Rn;return Ad(_9,{children:[!o&&at(P9,{children:m("Section")}),at(ym,{label:m("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),at(ym,{label:m("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),at(ym,{label:m("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:Ad(_9,{children:[at(P9,{children:m("City strip")}),at(ym,{label:m("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),at(ym,{label:m("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),at(abe,{label:m("Shape"),icon:at(kqe,{}),options:Cqe,value:j_(e.imageShape),onChange:i=>t({imageShape:i})}),at(P9,{children:m("Map & Theme")}),at(abe,{label:m("Map theme"),icon:at(bqe,{}),options:_qe,value:r,onChange:i=>t({mapTheme:i})})]})]})}function Rqe({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((u,h)=>Nu(u)===t?h:-1).filter(u=>u>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(Nu).filter(u=>u!==t)),[d,c]=hqe(t),p=u=>o(e.map(h=>Nu(h)===t?{...h,...u}:h)),f=()=>{let u=d;if(u!==t){if(l.has(u)){c(t);return}o(e.map(h=>Nu(h)===t?{...h,group:u}:h)),a(u)}};return Ad("div",{className:"sf-locations-view",children:[at(Hk,{inline:!0,name:m("Section"),onSelect:n,title:R9(t,s)}),at(ym,{label:m("Group heading"),value:d,placeholder:m("e.g. Americas"),onChange:c,onBlur:f,onKeyDown:u=>{u.key==="Enter"&&u.currentTarget.blur()}}),l.has(d)&&d!==t&&at("p",{className:"sf-note sf-note--error",role:"alert",children:m("Another group already uses this heading \u2014 pick a different one.")}),at(ym,{label:m("Group name"),value:s,placeholder:m("Shown beside the heading"),onChange:u=>p({groupName:u})}),at(sbe,{label:m("Cities in this group"),noun:m("city"),items:i.map(u=>e[u]),onChange:u=>o(Ose(e,t,u)),newItem:()=>({...lH,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(u,h)=>Ad("button",{type:"button",style:dbe,onClick:()=>r(i[h]),children:[at("span",{children:u?.name||m("City")}),at("span",{"aria-hidden":"true",children:"\u203A"})]})}),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:cbe,onClick:()=>{o(e.filter(u=>Nu(u)!==t)),n()},children:pr("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function pbe({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=Cse(),r=Rie(),a=Eqe(o),{appState:i,selectedItem:s}=gqe(g=>g),l=Sqe(),d=s?.props??{},c=g=>{if(!s)return;let b=(i.data.content??[]).findIndex(w=>w.props.id===s.props.id);b<0||l.replaceComponent(Tqe,b,{type:s.type,props:{...s.props,...g}})},p=(g,b)=>t(o.map((w,x)=>x===g?{...w,...b}:w)),f=()=>{let g=new Set(a.map(x=>x.key)),b=a.length+1,w=`Group ${b}`;for(;g.has(w);)w=`Group ${++b}`;return w};if(n.level==="texts")return Ad("div",{className:"sf-locations-view",children:[at(Hk,{inline:!0,name:m("Locations"),onSelect:()=>bd({level:"groups"}),title:m("Texts")}),at(ibe,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let g=o[n.index];return g?Ad("div",{className:"sf-locations-view",children:[at(Hk,{inline:!0,name:String(g.name??"")||m("City"),onSelect:()=>bd({level:"city",index:n.index}),title:m("Image")}),at(Hre,{value:g.photo||"",onChange:b=>p(n.index,{photo:b}),label:"Image",accept:"image/*"})]}):u()}if(n.level==="map"){let g=o[n.index];return g?Ad("div",{className:"sf-locations-view",children:[at(Hk,{inline:!0,name:String(g.name??"")||m("City"),onSelect:()=>bd({level:"city",index:n.index}),title:m("Map")}),at(aR,{value:g.geocode,onChange:b=>p(n.index,{geocode:b}),label:"Coordinates"}),at(ym,{label:m("Directions link"),icon:at(xqe,{}),value:String(g.mapsUrl??""),onChange:b=>p(n.index,{mapsUrl:b})})]}):u()}if(n.level==="city"){let g=n.index,b=o[g];if(!b)return u();let w=Nu(b),x=(S,k)=>p(g,{[S]:k}),v=(S,k,y,T=!1)=>at(ym,{label:k,icon:y,textarea:T,value:String(b[S]??""),onChange:E=>x(S,E)});return Ad("div",{className:"sf-locations-view",children:[at(Hk,{inline:!0,name:R9(w,String(b.groupName??"")),onSelect:()=>bd({level:"group",key:w}),title:b.name||m("City")}),v("name",m("Location name"),at(C9,{})),v("state",m("State / Province"),at(C9,{})),v("country",m("Country"),at(wqe,{})),v("address",m("Address"),at(yqe,{}),!0),v("phone",m("Phone"),at(vqe,{})),v("hours",m("Opening hours"),at(rbe,{})),v("timezone",m("Timezone chip"),at(rbe,{})),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:cbe,onClick:()=>{t(o.filter((S,k)=>k!==g)),bd({level:"group",key:w})},children:m("Delete city")})})]})}if(n.level==="group")return a.some(g=>g.key===n.key)?at(Rqe,{cards:o,groupKey:n.key,onChange:t,onBack:()=>bd({level:"groups"}),onOpenCity:g=>bd({level:"city",index:g}),onNavigate:g=>bd({level:"group",key:g})},n.key):u();function u(){return Ad("div",{className:"sf-locations-view",children:[at(ibe,{props:d,setSection:c}),!r&&at(_9,{children:h()})]})}function h(){return at(sbe,{label:m("Locations"),noun:m("group"),items:a,onChange:g=>{let b=g.find(w=>!a.some(x=>x.key===w.key));t(Nse(o,g.map(w=>w.key),w=>[{...lH,group:w,groupName:""}])),b&&bd({level:"group",key:b.key})},newItem:()=>({key:f(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:a.length===0?at("div",{style:{fontSize:12,color:"var(--ink-faint)",padding:"4px 0"},children:m("No locations yet.")}):void 0,renderRow:g=>Ad("button",{type:"button",style:dbe,onClick:()=>bd({level:"group",key:g.key}),children:[at("span",{style:{fontWeight:500},children:R9(g.key,g.name)}),Ad("span",{style:{color:"var(--ink-faint)"},children:[pr("{n} city","{n} cities",g.indices.length)," \u203A"]})]})})}return u()}var mbe={fields:{_gOffices:Nqe("Offices"),dataSource:oo("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>Oqe(pbe,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!BC(o))return e;let n=await HC(o,i=>{let s=q_(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(", ")}),{[bP]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>no("ContactLocations",t,e.props)};import{jsx as ube}from"react/jsx-runtime";import{ClockIcon as Lqe,TagIcon as Aqe}from"efficient-easel/icons";var Iqe=[...soe],fbe={fields:_i({title:W("Heading",pB.title),zeroText:nn(W("At zero",pB.zeroText)),endsAt:Wae("Ends",ube(Lqe,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:oe("Unit labels",!0,ube(Aqe,{}))},Iqe,Ia)};import{jsx as Dk,jsxs as Fqe}from"react/jsx-runtime";import{Suspense as Bqe,lazy as Hqe,useState as Dqe}from"react";import{Button as Mqe}from"efficient-shell/ui";import{CodeIcon as zqe}from"efficient-shell/icons/efficient";import{SettingsField as Wqe}from"efficient-easel/panel";import{iconOf as Uqe}from"efficient-easel/screen/lib/document/box-fields";var Gqe=Hqe(()=>import("./chunks/CustomHtmlCodeWindow-FSTAOP3D.js"));function $qe({value:e,onChange:t}){let[o,n]=Dqe(!1);return Fqe(Wqe,{label:m("HTML"),icon:Uqe(Dk(zqe,{})),children:[Dk(Mqe,{variant:"secondary",onClick:()=>n(!0),children:m("Edit code")}),o?Dk(Bqe,{fallback:null,children:Dk(Gqe,{open:!0,onClose:()=>n(!1),value:typeof e=="string"?e:"",onChange:t})}):null]})}var hbe={fields:{html:{type:"custom",label:"HTML",render:({value:e,onChange:t})=>Dk($qe,{value:e,onChange:t})}}};import{jsx as O9}from"react/jsx-runtime";import{StylesIcon as Kqe,WeightIcon as Vqe,WidthIcon as Yqe}from"efficient-easel/icons";import{keptByRow as jqe}from"efficient-easel/screen/lib/document/style-fields";var qqe={any:[{field:"style",set:!1},{field:"style",is:Zh}]},Xqe={not:{field:"style",is:"none"}},gbe={fields:Ie({style:lo("Style",O9(Kqe,{}),pae.map(e=>({...e,picture:gae(e.value)})),Zh,{columns:3,cell:Pr}),spacing:jqe("sectionPaddingTop"),thickness:le("Thickness",O9(Vqe,{}),1,8,1,1,i1),...gd(i1,"thickness"),lengthPct:le("Length",O9(Yqe,{}),10,100,1,100,s1),...gd(s1,"lengthPct")},[[["thickness"],qqe],[["lengthPct"],Xqe]]),resolveFields:(e,{fields:t})=>{let o=jC[qC(e.props.spacing)],n=jp({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return c1(t,n)}};import{jsx as L9}from"react/jsx-runtime";import{HashIcon as Zqe,StickyIcon as Jqe,TargetIcon as Qqe}from"efficient-easel/icons";import{group as wbe,select as eXe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Wx}from"efficient-easel/screen/lib/document/device-fields";var N9={title:"On this page"},bbe={label:"Contents",defaultProps:{title:N9.title,sticky:!0}};var xbe={fields:{title:Wx("desktop",W("Heading",N9.title)),_gList:Wx("desktop",wbe("List")),[fR]:Wx("desktop",eXe("Number",L9(Zqe,{}),Wte,Ute)),markCurrent:Wx("desktop",oe("Mark the current section",!1,L9(Qqe,{}),"The row of the section a reader is in stands out as they scroll.")),_gStick:Wx("desktop",wbe(Y6)),sticky:Wx("desktop",oe(Y6,!0,L9(Jqe,{})))}};import{group as tXe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as A9}from"efficient-easel/screen/lib/document/device-fields";var Mk={hint:"Search questions",noMatchText:"No question matches your search."},ybe={label:"List search",defaultProps:{hint:Mk.hint,noMatchText:Mk.noMatchText}};var vbe={fields:{_gContent:A9("desktop",tXe("Content")),hint:A9("desktop",nn(W("Hint",Mk.hint))),noMatchText:A9("desktop",nn(W("No match",Mk.noMatchText)))}};import{group as Sbe}from"efficient-easel/screen/lib/document/box-fields";var wN={toc:"On this page"},kbe={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var Tbe={fields:{_gContent:Sbe("Contents"),tocTitle:W("Contents heading",wN.toc),_gSections:Sbe("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:Se("Contents label"),heading:Se("Title"),body:Je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as Ebe}from"efficient-easel/screen/lib/document/box-fields";var Pbe={fields:{_gContent:Ebe("Content"),eyebrow:W("Eyebrow",xu.eyebrow),title:j("Heading",xu.title),deck:j("Deck / standfirst",xu.deck),_gMeta:Ebe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:Se("Label"),value:Se("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var xN=[{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."}],_be={label:"Document Detail Cards",defaultProps:{cards:[]}};var Cbe={fields:{cards:lw({type:"array",label:"Cards",arrayFields:{label:Se("Label"),value:Se("Value"),desc:Je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},xN)}};import{jsx as oXe}from"react/jsx-runtime";import{PageIcon as nXe}from"efficient-easel/icons";import{group as rXe}from"efficient-easel/screen/lib/document/box-fields";var Ux={metaLabel:U.label,metaValue:U.value},Rbe={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var Obe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Tab label"),href:qe("Links to"),current:oe("Current page",!1,oXe(nXe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:rXe("Trailing note"),metaLabel:W("Note label",Ux.metaLabel),metaValue:W("Note value",Ux.metaValue)}};import{jsx as aXe}from"react/jsx-runtime";import{StylesIcon as iXe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as sXe}from"efficient-easel/screen/lib/document/box-fields";var Nbe={fields:{eyebrow:W("Eyebrow",U.eyebrow),...dl("align",{access:sXe}),eyebrowLook:ne("Look",aXe(iXe,{}),ol,A_)}};import{jsx as Abe}from"react/jsx-runtime";import{ChevronIcon as lXe,LinkIcon as dXe}from"efficient-easel/icons";import{group as F9}from"efficient-easel/screen/lib/document/box-fields";var xf={num:U.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},I9=Zn.FAQ,Lbe={label:"Q&A",inline:!0,fields:I9,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var Ibe="faqOnTemplate",cXe={not:{context:Ibe,is:!0}},pXe={[Ibe]:e=>xee("FAQ",e.props??{})},mXe=new Set([eQ,...tQ]);function uXe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||mXe.has(t))}var Fbe={fields:{_gContent:F9("Content"),num:W("Number",xf.num),title:j("Heading",xf.title),linkText:W("Button",xf.link),linkHref:qe("Link"),_gQuestions:F9("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:Se("Question"),answer:Je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:F9("Layout"),defaultOpen:oe("Open first answer",!0,Abe(lXe,{})),openFromLink:oe("Open from a link",!1,Abe(dXe,{}),"A link to a question opens its answer. Each question gets an anchor made from its words, after the section's Anchor."),...I9},resolveFields:(e,{fields:t})=>{let o=ct(t,e.props.headPlacement,mt.FAQ.headRows);return _i(o,uXe(o),cXe)},showWhenFacts:pXe};import{jsx as Ki,Fragment as yN,jsxs as hXe}from"react/jsx-runtime";import{useContext as gXe}from"react";import{SettingsField as Mbe}from"efficient-easel/panel";import{FieldSelect as zbe}from"efficient-easel/fields";import{BlogPostIcon as Wbe}from"efficient-easel/icons";import{ScreenDocumentContext as bXe}from"efficient-easel/screen/components/ScreenDocumentContext";var Bbe=yx({fetch:async(e,t)=>await Ys().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:Dn});import{useEffect as Hbe,useRef as fXe,useState as B9}from"react";function Mg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Gx({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=B9(null),[s,l]=B9(!1),[d,c]=B9(!1),p=fXe(!0);return Hbe(()=>(p.current=!0,e().then(f=>{p.current&&i(f)}),()=>{p.current=!1}),[]),Hbe(()=>{if(!n?.slug||a===null)return;let f=t(a,n);if(!f)return;let u=o(f);Mg(u,n)&&r(u)},[a]),{rows:a,loading:a===null,refreshing:s,errored:d,refresh:()=>{n?.slug&&(l(!0),c(!1),e(!0).then(f=>{if(!p.current)return;i(f);let u=t(f,n);u&&r(o(u))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function Dbe(e,t){return{label:t?m("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function $x({value:e,onChange:t}){let o=gXe(bXe);return o&&!o.capabilities.hasBlog?e?.slug?Ki(wXe,{value:e,onChange:t}):Ki(yN,{}):Ki(xXe,{value:e,onChange:t})}function wXe({value:e,onChange:t}){return Ki("div",{children:Ki(Mbe,{label:m("Blog post source"),icon:Ki(Wbe,{}),hint:Ki(yN,{children:m("Linked to a blog post. This editor has no blog to pick another from; choose \u201CNone (manual)\u201D to author the section yourself.")}),children:Ki(zbe,{value:e.slug,ariaLabel:m("Blog post source"),onChange:o=>o?void 0:t(null),options:[{label:m("None (manual)"),value:""},{label:e.title||e.slug,value:e.slug}]})})})}function xXe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Gx({load:Bbe,resolve:(f,u)=>f.find(h=>h.slug===u.slug),snapshot:N1,value:e,onChange:t}),s=f=>{if(!f){t(null);return}let u=(o??[]).find(h=>h.slug===f);u&&t(N1(u))},l=e?.slug&&!(o??[]).some(f=>f.slug===e.slug),d=a?"error":r?"loading":"idle",c=m("Storefront \u2192 Blog"),p=a?m("Couldn\u2019t reach {place}.",{place:c}):r?m("Syncing from {place}\u2026",{place:c}):m("Linked to \u201C{name}\u201D",{name:e?.title||e?.slug||""});return hXe("div",{children:[Ki(Mbe,{label:m("Blog post source"),icon:Ki(Wbe,{}),hint:e?.slug?void 0:Ki(yN,{children:m("Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.",{place:c})}),children:Ki(zbe,{value:e?.slug??"",ariaLabel:m("Blog post source"),onChange:s,readOnly:n,options:[{label:m("None (manual)"),value:""},...l?[Dbe({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(f=>({label:f.title,value:f.slug}))]})}),e?.slug?Ki(pl,{status:d,statusText:p,onRefresh:i,busy:r,hint:Ki(yN,{children:m("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 yXe}from"efficient-easel/screen/lib/document/box-fields";var jr={badge:"Featured",imageDate:U.date,category:U.category,readLabel:"0 min read",date:U.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:pc.href},Ube={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var vXe=["image","imageDate","date","title","dek","ctaHref"],Gbe={fields:_i({source:Vo($x),_nBound:tt(ml(eR),tR),image:rt("Cover image","image/*"),badge:W("Badge",jr.badge),imageDate:W("Image date",jr.imageDate),_gContent:yXe("Content"),category:W("Category",jr.category),readLabel:W("Read time",jr.readLabel),date:W("Date",jr.date),title:j("Heading",jr.title),dek:j("Dek",jr.dek),ctaText:W("Button",jr.ctaText),ctaHref:qe("Link")},vXe,cw)};import{jsx as wr}from"react/jsx-runtime";import{phoneKey as Lr,tabletKey as ka}from"efficient-easel/draw";import{keptByRow as wZe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as $be}from"react/jsx-runtime";import{OpacityIcon as kXe,StylesIcon as SXe}from"efficient-easel/icons";function Kx(){return{darken:le("Darken",$be(kXe,{}),md.min,md.max,md.step,md.fallback,md.unit),darkenStyle:ne("Darken style",$be(SXe,{}),I2,I2[0].value)}}var TXe={"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]"},EXe=`calc(${EJ} - ${F6}*2)`,Kbe=`var(${PJ},${F6})`,qqt=`pointer-events-none absolute inset-y-0 left-[${Kbe}] right-[${Kbe}] z-[6] mx-auto max-w-[var(${_J},${EXe.replace(/ /g,"_")})]`;function vN(e,t){return`pointer-events-auto absolute ${TXe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function Vbe(e){return a_.includes(e)?e:null}import{parseOption as H9}from"efficient-shell/format";var PXe=a_,D9="top-right",_Xe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],M9=["cards","dots","numbers","bar","squares"],kN="cards",SN={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},TN=["tabs","largeTabs"],Ybe=!0;function EN(e){return H9(_Xe,kN,e)}function jbe(e){return H9(M9,kN,e)}function CXe(e){return H9(PXe,D9,e)}var qbe={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 Xbe(e,t){return vN(CXe(t),qbe[EN(e)])}function Zbe(e){return`flex ${qbe[EN(e)]}`}function Jbe(e){return e.shown!==!1&&(e.count??0)>1}function RXe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function OXe(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 Qbe(e,t){let o=Array.from(t,RXe);return OXe(e,o)?e:o}import{deviceField as Id}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as xZe,ClockIcon as yZe,CropIcon as Owe,GapIcon as vZe,MediaLayoutStackedIcon as zwe,LineBetweenIcon as kZe,LineSolidIcon as SZe,ListIcon as TZe,NumberedListIcon as Nwe,ShadowIcon as EZe,StylesIcon as Lwe,TableIcon as Awe,TargetIcon as PZe,WrapIcon as Wwe}from"efficient-easel/icons";var Wg=s_.map(e=>e.shape),W9=e=>e!==Js&&Wg.includes(String(e??""))?e:null;function zg(e){return W9(e)??(su(e)?Js:"auto")}function PN(e){let t=zg(e);return t==="auto"?"":Fh(t)}function ewe(e,t,o){return zJ({desktop:e,phone:z9(t)!==null?t:o,tablet:o})}var NXe={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)]"},LXe={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 AXe(e,t){let o=zg(t);return o==="auto"&&W9(t)===null?null:o===Js?t===e?null:o:o===zg(e)?null:o}var IXe={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 z9(e){let t=zg(e);return t==="auto"&&W9(e)===null?null:t}function twe(e,t,o){let n=z9(o),r=AXe(e,z9(t)!==null?t:o);if(r===null&&n===null)return PN(e);let a=zg(e);return[r===null?PN(e):a==="auto"?"":NXe[a],r===null?"":LXe[r],n===null?"":IXe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as Uwe,VIEW_KEY_ACCESS as Xc,group as Gg,phoneTwinFields as Zc}from"efficient-easel/screen/lib/document/box-fields";var FXe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},BXe=S2.map(e=>({value:e.value,picture:IC(FXe[e.value])}));function _N(e,t){return lo("Separator",e,BXe,t,{resolve:QX})}import{jsx as HXe}from"react/jsx-runtime";import{cloneElement as DXe}from"react";import{PaddingXIcon as MXe}from"efficient-easel/icons";import{deviceField as zXe}from"efficient-easel/screen/lib/document/device-fields";function owe(){let e=ne(Iie,HXe(MXe,{}),qQ,XQ);return zXe("desktop",{...e,render:t=>{let o=e.render({...t,value:T_(t.value),onChange:n=>t.onChange(JQ(n))});return DXe(o,{hint:m(ZQ)})}})}import{newNodeId as U9}from"efficient-easel/draw";var nwe=["First row","Second row","Third row"],WXe="Write the words for this row.",rwe=e=>({type:"Text",props:{...$e,id:U9("Text"),tag:"p",text:e}}),UXe=(e,t)=>({type:fe,props:{...Ue,id:U9(fe),...t?{startsOpen:!0}:{},rowTitle:[rwe(e)],content:[{type:"Text",props:{...Rt,id:U9("Text"),tag:"p",text:WXe}}]}}),GXe=e=>!Array.isArray(e)||e.length===0;function awe(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:nwe.map((r,a)=>UXe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==fe||!GXe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(nwe[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[rwe(i)]}}});return o?{...e,content:n}:e}import{parseOption as $Xe}from"efficient-shell/format";var zk="rowStyle",KXe=["plain","numbered","chevron"],iwe=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function swe(e){return $Xe(KXe,"plain",e)}var CN="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",RN="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",ON="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",lwe="border-t border-line",dwe="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",cwe="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as VXe}from"efficient-easel/screen/lib/content/view-tiers";var NN=Zn.Flex,pwe={label:"Box",fields:NN,phoneOrder:{prop:VXe("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 mwe}from"react/jsx-runtime";import{isNode as YXe}from"efficient-easel/data";import{useEasel as jXe}from"efficient-easel/easel";import{PhoneOrderField as qXe}from"efficient-easel/fields";import{slotChildRowName as XXe}from"efficient-easel/draw";import{deviceField as ZXe}from"efficient-easel/screen/lib/document/device-fields";function JXe(){try{let e=jXe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!YXe(a)||typeof t[a.type]?.render!="function"?!1:Tr(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 QXe({value:e,onChange:t,readOnly:o}){let n=JXe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return mwe(qXe,{stored:"ids",value:e,ids:a,onChange:t,readOnly:o,noun:"block",hint:m("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=>XXe(r[s],i,Po,void 0,oie)})}function uwe(){return ZXe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>mwe(QXe,{value:e,onChange:t,readOnly:o})})}import{jsx as $k}from"react/jsx-runtime";import{SettingsDefaultReset as cZe,SettingsField as pZe}from"efficient-easel/panel";import{Segmented as mZe}from"efficient-shell/ui";import{SwapIcon as uZe}from"efficient-easel/icons";import{describedAs as fZe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as hZe}from"efficient-easel/screen/lib/document/device-fields";var Wk="Mirror cards",Uk="off",G9=[{value:Uk,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],fwe={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function yf(e){return e==="even"||e==="odd"?e:null}function hwe(e){return yf(e)??void 0}function Gk(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function Ug(e,t,o){return!t||e.direction!=="row"||o||eu("row",e.separator)||e.loop==="scroll"||e.line===!0||ps(e)||S6(e.columns)!==""||cZ(e.columnsTablet)!==""?!1:!(cs(e.share)===""&&gb(e.wrap)!=="")}function gwe(e,t){let o=yf(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var bwe="view-wide:flex-row-reverse",eZe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},tZe={left:"view-wide:text-right!",right:"view-wide:text-left!"},oZe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},nZe={start:"view-wide:items-end!",end:"view-wide:items-start!"},rZe={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!"},LN=(e,t)=>(typeof t=="string"?$s(e,t):void 0)??"";function $9(e,t,o){return e?[LN(eZe,t),LN(tZe,o)].filter(Boolean).join(" "):""}function wwe(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=nZ(o,r,void 0).tablet;return[LN(oZe,o),a?rZe[a]:""].filter(Boolean).join(" ")}return t==="column"?LN(nZe,n):""}function K9(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||ps(e)?!1:S6(e.columns)===""}function AN(e,t){let o=yf(e.mirrorCards);return o&&K9(e,t)?{mirror:o}:null}import{isNodeList as Ewe}from"efficient-easel/data";import{parseOption as xwe}from"efficient-shell/format";var aZe=["columns","rows-left","rows-right"],iZe=["half","third"],ywe=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],vwe=[{value:"half",label:"Half"},{value:"third",label:"One third"}],kwe=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function sZe(e){return xwe(aZe,"columns",e)}var lZe={"rows-left":"even","rows-right":"odd"},dZe={half:"equal",third:"bigRight"};function IN(e){let t=sZe(e?.arrangement);if(t==="columns")return null;let o=xwe(iZe,"half",e?.imageWidth);return{mirror:lZe[t],row:{share:dZe[o],phoneReverse:e?.phoneOrder==="words"}}}var Swe={ProcessSteps:{slot:"boxes",hand:IN}},Twe=(e,t,o)=>Ewe(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function Vx(e,t){let o=xC(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===fe&&Twe(o,Le,t)){let s=cd(e,o.props?.id)?.inCopy===!0;return AN(el(o.props??{},s),s)}let i=$s(Swe,a);if(i&&Twe(o,i.slot,t))return i.hand(o.props??{})}let n=MP(e,t),r=n&&typeof n.type=="string"?$s(Swe,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function Pwe(e){let t=e?.[Le];return Ewe(t)&&t.some(o=>o?.type===fe)}var _we="mirrorCardsIdle",V9="mirrorCardsMirrors",Cwe={[V9]:(e,t)=>{let o=cd(t.appState,e.props?.id);if(o===void 0)return;let n=el(e.props??{},o.inCopy),r=Vx(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&Ug(a,!0,im(a).desktop)}return Ug(n,Gk(o),im(n).desktop)&&yf(n.mirrorCards)!==null},[_we]:(e,t)=>{let o=cd(t.appState,e.props?.id);if(o===void 0)return;let n=el(e.props??{},o.inCopy);return Vx(t.appState,e.props?.id)?!0:Ug(n,Gk(o),im(n).desktop)?!1:!(K9(n,o.inCopy)&&Pwe(n))}};function gZe(e=!1){return G9.map(t=>({value:t.value,label:m(t.label),title:t.value===Uk?void 0:m(fwe[t.value]),disabled:e}))}function bZe({value:e,onChange:t,readOnly:o}){let n=yf(e)??Uk;return $k(pZe,{label:m(Wk),icon:$k(uZe,{}),action:$k(cZe,{words:ZP()?.panel,label:m(Wk),changed:n!==Uk,detail:m("Off"),onReset:()=>t(void 0)}),children:$k(mZe,{size:"sm",block:!0,label:m(Wk),value:n,onChange:r=>t(hwe(r)),options:gZe(o===!0)})})}function Rwe(){return tt(hZe("desktop",{type:"custom",...fZe({},{type:"radio",label:Wk,options:G9.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>$k(bZe,{value:e,onChange:t,readOnly:o})}),{not:{context:_we,is:!0}})}var Iwe=$X,Fwe={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},_Ze={field:"direction",is:"tabs"},CZe={field:"line",in:[!0,!1]},RZe={field:"anchor",set:!0},Y9=["fixed","screen","fill"],OZe={not:{any:[{field:"sectionHeightMode",in:Y9},{field:"sectionHeightModeTablet",in:Y9},{field:"sectionHeightModePhone",in:Y9}]}},NZe={context:"parent.line",is:!0},$g={not:{field:"direction",is:"accordion"}},Bwe={field:"direction",is:"accordion"},Hwe={any:[$g,{not:{field:zk,in:["numbered","chevron"]}},{field:"columns",in:[...pZ]},{field:"phoneRow",in:[...mZ]}]},Gwe="notAccordionRow",LZe={not:{context:Gwe,is:!0}},AZe={[Gwe]:(e,t)=>t.parent?.props?.direction!=="accordion"},q9={field:"direction",is:"row",default:"row"},Kg={not:fJ},jg={all:[q9,Kg,{not:{field:"separator",in:S2.map(e=>e.value)}},{not:{field:"line",is:!0}}]},IZe={field:"direction",is:"column"},$we={all:[jg,...["columns",ka("columns")].map(e=>({not:{field:e,in:Array.from({length:RP},(t,o)=>o+CP)}}))]},FZe={all:[Kg,{not:{all:[q9,{field:"separator",in:S2.map(e=>e.value)}]}}]},j9={not:{all:[jg,{field:"columns",in:Array.from({length:RP},(e,t)=>t+CP)}]}},BZe="sharedColumnsFits",Kwe="sharedColumnsMisfit",Vwe="sharedColumnsDraws",Ywe="sharedColumnsPhoneDraws";function Yg(e,t){return el(e.props??{},cd(t.appState,e.props?.id)?.inCopy!==!1)}var HZe={[BZe]:(e,t)=>B5(Yg(e,t)),[Kwe]:(e,t)=>!B5(Yg(e,t)),[Vwe]:(e,t)=>im(Yg(e,t)).desktop,[Ywe]:(e,t)=>im(Yg(e,t)).phone};function Dwe(e){return{all:[{not:{context:Kwe,is:!0}},{any:[ZB,{field:e,set:!0}]}]}}var Vg={not:{context:Vwe,is:!0}},Yx={not:{context:Ywe,is:!0}},jwe="sharedRowsDraws",DZe={[jwe]:(e,t)=>H5(Yg(e,t))&&Vx(t.appState,e.props?.id)?.row===void 0},Kk={not:{context:jwe,is:!0}},MZe={any:[Vg,Yx]},X9=VX,zZe={not:{context:V9,is:!0}},qwe="rowHanded",WZe={not:{context:qwe,is:!0}},UZe={[qwe]:(e,t)=>{let o=Vx(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},Mwe={all:[$g,X9,Vg,Yx,zZe]},GZe={field:"direction",is:"row"},$Ze={field:"align",in:["start","center","end"]},KZe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function VZe(){let{darken:e,darkenStyle:t}=Kx();return{...Zc("darken",e,Xc),...Zc("darkenStyle",t,Xc)}}var Xwe={not:{all:[jg,{field:ka("columns"),in:Array.from({length:RP},(e,t)=>t+CP)}]}};function YZe(){let e=oe(Uwe,!1,wr(Wwe,{})),t=o=>{let n=k6(o);return n===void 0?void 0:n==="wrap"};return{...jh(),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 jZe(){let e=oe(Uwe,!0,wr(Wwe,{})),t=o=>{let n=k6(o);return n===void 0?void 0:n==="wrap"};return{...jh(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!uZ(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var Zwe={hint:fu},Jwe={all:[X9,{any:[IZe,{all:[jg,Xwe,{not:{all:[$we,{field:ka("share"),set:!0}]}}]}]}]},qZe=tt(Id("desktop",le("Narrows below",wr(zwe,{}),zh.min,zh.max,zh.step,fu,{kind:"breakpoint"},{clear:Zwe,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),Jwe);function XZe(e,t){let o=e;return!(Wh in o)||t.direction!=="column"?e:{...o,[Wh]:qZe}}var Qwe={fields:Ie({_gContent:Gg("Content"),rowTitle:NN.rowTitle,content:NN.content,_gCardDisplay:Gg("Display"),cardDisplay:iR("desktop"),cardDisplayTablet:iR("tablet"),cardDisplayPhone:iR("mobile"),showFor:OO(),_gLayout:Gg("Layout"),direction:QC("Flex"),tabShape:lo("Tab shape",wr(Lwe,{}),TN.map(e=>({label:SN[e],value:e,picture:bae[e]})),"tabs",{columns:2,cell:Pr}),mirrorCards:Rwe(),[Wh]:Id("desktop",le("Stacks below",wr(zwe,{}),zh.min,zh.max,zh.step,fu,{kind:"breakpoint"},{clear:Zwe,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[B2]:owe(),startsOpen:Id("desktop",oe("Starts open",!1,wr(xZe,{}))),[zk]:Id("desktop",lo("Row style",wr(Nwe,{}),iwe.map(e=>({...e,picture:e.value==="numbered"?wr(Nwe,{}):wr(TZe,{})})),"plain",{columns:2})),label:nn(Q("Tab name")),...di("Flex"),...Zc("justify",LC(),Xc),...Zc("align",AC(),Xc),...(()=>{let e=Zc("wrap",jh(),Xc,{phoneRow:jZe()}),t=Zc("wrap",jh(),Xc,{phoneRow:YZe()});return{wrap:t.wrap,[ka("wrap")]:t[ka("wrap")],[Lr("wrap")]:e[Lr("wrap")]}})(),[Lr("order")]:uwe(),...Zc("boxShape",kx("Box shape",wr(Owe,{}),Cb(Wg),"shape","auto"),Xc,{phoneRow:kx("Box shape",wr(Owe,{}),Cb(Wg),"shape","auto",{phoneRest:e=>zg(e)})}),[vP]:Id("desktop",gre(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:_N(wr(kZe,{size:18}),"none"),[Ub]:Id("desktop",lo("Card style",wr(Lwe,{}),ete.map(e=>({...e,picture:xae[e.value]})),"table",{columns:2,cell:Pr})),share:Id("desktop",Fae()),[ka("share")]:Dae(),[Lr("share")]:Hae(),[am]:Id("desktop",ne(BD,wr(Awe,{}),[...Bme],G1)),[Lr(am)]:Id("mobile",ne(BD,wr(Awe,{}),[...Hme],G1)),...Mae(),...Zc("blockSpacing",Bae(),Xc),line:oe("Line",!1,wr(SZe,{}),"A line across the blocks, with a dot on each."),upcoming:oe("Upcoming",!1,wr(yZe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:ne("Join",wr(vZe,{}),U_,W_),_gShadow:Gg("Shadow"),...Zc("shadow",oe("Shadow",!1,wr(EZe,{})),Xc),...Zc("fillColor",Gae(),Xc),[ua]:Yr("Fill content","colour"),[y_]:wZe("fillColor"),_gBackground:Gg("Background image"),bgImage:Id("desktop",rt("Image","image/*")),bgImagePhone:Id("mobile",rt("Image","image/*")),[cr]:Yr("Image content","image",{content:!0}),...VZe(),placement:hd("Content position"),_gLink:Gg("Link"),link:wf(qe("Link to")),[Xo]:qc(),_gJump:Gg("Anchor"),jumpHighlight:oe("Highlight when a link jumps here",!1,wr(PZe,{}),"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"],Iwe],[[Lr("share")],{all:[Fwe,Yx]}],[[am],Dwe(am)],[[Lr(am)],Dwe(Lr(am))],[[Lr("wrap")],{all:[Fwe,Kg,Yx,Kk]}],[[Lr("order")],{all:[jg,Yx,Vg]}],[["phoneRow"],Yx],[[zk],{all:[Bwe,{not:{field:zk,is:"chevron"}}]}],[["tabShape"],_Ze],[["rowTitle","startsOpen"],LZe],[["align","blockSpacing",ka("blockSpacing"),Lr("blockSpacing")],$g],[[ka("justify"),Lr("justify")],{all:[Kg,Mwe,Kk]}],[[ka("align"),Lr("align")],{all:[GZe,$Ze,Mwe]}],[[ka("wrap")],{all:[Kg,j9,Xwe,Vg,$g,Kk]}],[[ka("shadow"),Lr("shadow")],X9],[[ka("darken"),Lr("darken"),ka("darkenStyle"),Lr("darkenStyle")],{all:[Iwe,KZe]}],[["separator"],q9],[[Ub],{field:Ub,set:!0}],[["columns"],{any:[jg,Bwe]}],[[ka("columns")],jg],[[Wh],Jwe],[[ka("gap")],{all:[FZe,Hwe]}],[["gap",Lr("gap")],Hwe],[["justify"],{all:[Kg,MZe,$g,Kk]}],[["wrap"],{all:[Kg,j9,Vg,$g,Kk]}],[["share"],{all:[j9,Vg,$g]}],[[ka("share")],{all:[$we,Vg]}],[["line"],CZe],[["upcoming"],NZe],[["jumpHighlight"],RZe],[["boxShape",ka("boxShape"),Lr("boxShape")],OZe],[["direction","share",Lr("order")],WZe],[["join"],OB],[[B2],OB]]),resolveData:(e,t)=>{let o=e.props,n=o[Ub];return t.changed?.[Ub]===!0&&tte(n)?{...e,props:ote(o,n,fe,Le)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:awe(o)}:e},resolveFields:(e,t)=>{let o=cd(t.appState,e.props?.id)?.inCopy===!0,n=o&&MP(t.appState,e.props?.id)===null;return XZe(QZe(eJe(NO(tJe(e,{...t,fields:Ya(t.fields,e,t)}),e.props),Yg(e,t),o),n),e.props)},showWhenFacts:{...Va,...rie,...Cwe,...UZe,...HZe,...DZe,...RO,...AZe}},ZZe=tt(eie,ZB),JZe=["darken","darkenStyle",_h,Ch];function QZe(e,t){if(!t)return e;let o={...e};for(let n of JZe){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 Ph in n&&ps(t)&&o?{...n,[Ph]:tt(tie,nie)}:!(Ph in n)||ps(t)?e:{...n,[Ph]:ZZe}}function tJe(...[e,t]){let{fields:o}=t;{if(ps(Yg(e,t))){let n=jp({fallback:{top:Ri.desktop,bottom:Ri.desktop,left:Ri.side,right:Ri.side},tablet:!0,siteSide:!0});return c1(o,n)}return e.props.padV2!==!0?c1(o,jp({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as qg}from"react/jsx-runtime";import{ColumnsIcon as ixe,GridIcon as nJe,LayoutIcon as rJe,SlidePickerCardsIcon as aJe,WidthIcon as sxe}from"efficient-easel/icons";import{deviceField as MN}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as oJe}from"efficient-shell/format";var Z9=["grid","carousel"],J9="grid",exe={grid:"Grid",carousel:"Carousel"};function txe(e){return oJe(Z9,J9,e)}var FN=50,BN=80,HN=30,DN=90;function Q9(e,t){let o=Cn(e);return o===void 0?t:Math.min(DN,Math.max(HN,o))}function oxe(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 nxe(e,t,o){return o<=0?0:((e+t)%o+o)%o}function rxe(e,t){return!t||t.height<=0?null:Math.round(t.top-e.top+t.height/2)}var e7=Zn.Grid,axe={label:"Grid",fields:e7,defaultProps:{columns:"3",content:[]}};var iJe={grid:qg(nJe,{}),carousel:qg(aJe,{})},lxe={field:"layout",is:"carousel"},dxe={fields:{layout:lo("Layout",qg(rJe,{}),Z9.map(e=>({label:exe[e],value:e,picture:iJe[e]})),J9),carouselTile:tt(MN("desktop",le("Tile width",qg(sxe,{}),HN,DN,1,FN,{kind:"size",base:"%"})),lxe),carouselTilePhone:tt(MN("mobile",le("Tile width",qg(sxe,{}),HN,DN,1,BN,{kind:"size",base:"%"})),lxe),columns:MN("desktop",le("Columns",qg(ixe,{}),1,YJ,1,qJ)),mobileColumns:MN("mobile",le("Columns",qg(ixe,{}),K6,jJ,1,K6)),...di("Grid"),content:e7.content}};import{jsx as sJe}from"react/jsx-runtime";var cxe={fields:{text:j("Heading",U.heading),level:ne("Level",sJe(er,{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 vn}from"react/jsx-runtime";import{parseOption as lJe}from"efficient-shell/format";var t7="bottom-right",o7=["outline","solid","square","bare"],n7="outline",pxe={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},mxe=!1,uxe=["prev","next"],fxe={prev:"Previous slide",next:"Next slide"};function dJe(e){return lJe(o7,n7,e)}function cJe(e){return Vbe(e)??t7}var pJe="flex-row items-center gap-2";function hxe(e){return vN(cJe(e),pJe)}var mJe={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 gxe(e){return mJe[dJe(e)]}function bxe(e){return e.shown===!0&&(e.count??0)>1}function zN(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 Cxe,EyeIcon as l7,HandIcon as hJe,ScrollMoveDownIcon as Rxe,OpacityIcon as gJe,PhoneIcon as Pxe,PlayIcon as bJe,SlideArrowsBareIcon as wJe,SlideArrowsRoundIcon as xJe,SlideArrowsSquareIcon as yJe,SlidePickerBarIcon as vJe,SlidePickerCardsIcon as kJe,SlidePickerDotsIcon as SJe,SlidePickerNumbersIcon as TJe,SlidePickerSquaresIcon as EJe,SquareIcon as _xe,StylesIcon as PJe}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as _Je}from"efficient-shell/icons/efficient-looks";import{group as vf}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as d7,deviceNote as NJe}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as wxe}from"efficient-shell/format";var r7=["manual","timer","scroll"],xxe={manual:"Hand",timer:"Timer",scroll:"Scroll"};function UN(e){return wxe(r7,e.autoplay===!0?"timer":"manual",e.slideChange)}var a7=25,i7=10,s7=100;function yxe(e){let t=Cn(e);return t===void 0?a7:Math.min(s7,Math.max(i7,t))}var WN=.4;function vxe(e,t,o){if(o<=0||t<=0)return{from:0,to:0,t:0,shown:0};let n=Math.max(0,e/t),r=Math.min(o-1,Math.floor(n)),a=Math.min(o-1,r+1),i=a===r?0:Math.min(1,Math.max(0,(n-r-WN)/(1-WN))),s=Math.round(i*1e4)/1e4;return{from:r,to:a,t:s,shown:s>=.5?a:r}}function kxe(e,t){let o=t/100,n=i=>String(Math.round(i*o*1e4)/1e4),r=WN/2,a=[];for(let i=0;i+1<e;i++)a.push(n(i+r),n(i+WN),n(i+1),n(i+1+r));return a.join(" ")}var uJe=["wipe"],fJe="wipe";function Sxe(e){return wxe(uJe,fJe,e)}var Txe=350,GN=8;var $N=Zn.Hero,Exe={label:"Hero",drawsPictures:!0,fields:$N,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var CJe=_Je,RJe={cards:vn(kJe,{}),dots:vn(SJe,{}),numbers:vn(TJe,{}),bar:vn(vJe,{}),squares:vn(EJe,{})},OJe={outline:vn(xJe,{}),solid:vn(CJe,{}),square:vn(yJe,{}),bare:vn(wJe,{})},LJe={manual:vn(hJe,{}),timer:vn(Cxe,{}),scroll:vn(Rxe,{})},AJe={any:[{field:"slideChange",is:"timer"},{all:[{field:"slideChange",set:!1},{field:"autoplay",is:!0}]}]},IJe={field:"slideChange",is:"scroll"},Oxe={fields:{_dDevice:NJe(),_gContent:vf("Content"),slides:$N.slides,strip:$N.strip,_gStyle:vf("Style"),alignment:fre(),_gTexture:vf("Texture"),showTexture:oe("Show texture",_ne,vn(l7,{})),textureColor:hhe,textureOpacity:le("Texture opacity",vn(gJe,{}),0,100,1,40,"%"),textureShape:ne("Texture style",vn(PJe,{}),Rne,Cne),_gLayout:vf("Layout"),...vO(),...whe,_gAutoplay:vf("Auto-slide"),slideChange:xre("Change slides",vn(bJe,{}),r7.map(e=>({label:xxe[e],value:e,picture:LJe[e]})),"manual"),autoplayInterval:tt(le("Still time per slide",vn(Cxe,{}),2,15,1,6,"s"),AJe),scrollPerSlide:tt(le("Scroll per slide",vn(Rxe,{}),i7,s7,1,a7,{kind:"height",base:"%"}),IJe),_gPicker:vf("Slide picker"),showPicker:oe("Show slide picker",Ybe,vn(l7,{})),pickerShape:lo("Slide picker shape",vn(_xe,{}),M9.map(e=>({label:SN[e],value:e,picture:RJe[e]})),kN),pickerPlacement:hd("Slide picker placement",{fallback:D9}),_gArrows:vf("Arrows"),showArrows:oe("Show arrows",mxe,vn(l7,{})),arrowsShape:lo("Arrows shape",vn(_xe,{}),o7.map(e=>({label:pxe[e],value:e,picture:OJe[e]})),n7),arrowsPlacement:hd("Arrows placement",{fallback:t7}),_gPhone:d7("mobile",vf("On a phone")),phoneUpDown:d7("mobile",Oe(vne,vn(Pxe,{}),Ene(),xne)),phoneSideways:d7("mobile",Oe(kne,vn(Pxe,{}),Pne(),yne)),phoneWordsTop:nf.phoneWordsTop,phoneWordsBottom:nf.phoneWordsBottom,phoneBoxGap:nf.phoneBoxGap},resolveFields:(e,{fields:t})=>{let o=e.props??{},n=UN(o),r=t.slideChange;return!r||r.currentValue===n?t:{...t,slideChange:{...r,currentValue:n}}}};import{jsx as Lxe}from"react/jsx-runtime";import{WidthIcon as Axe}from"efficient-easel/icons";import{BOX_NUDGE_ROW as Ixe,BOX_WIDTH_ROW as p7,group as m7}from"efficient-easel/screen/lib/document/box-fields";var c7={...Zn.HeroGroup,content:{...Zn.HeroGroup.content,allow:PX}},Nxe={label:EX,inline:!0,fields:c7,defaultProps:{placement:LJ,nudgeX:0,nudgeY:0,content:[]}};var Fxe={fields:Ie({_gContent:m7("Content"),name:nn(dw(_r(Q("Box name",U.boxName)))),content:c7.content,_gLayout:m7("Layout"),placement:hd("Placement",{pointsFor:_ae}),width:le("Width",Lxe(Axe,{}),D6,M6,5,AJ,p7),...gd(p7,"width"),direction:QC("HeroGroup"),...di("HeroGroup"),justify:LC(),align:AC(),wrap:jh(),_gNudge:m7("Nudge"),...hre({keys:{x:"nudgeX",y:"nudgeY"},min:-H6,max:H6,label:null,length:Ixe}),...gd(Ixe,"nudgeX"),...jp({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(i_(o?.data,n)===0)return t;let r={...t};return r.width=le("Width",Lxe(Axe,{}),D6,M6,5,IJ,p7),r}};import{jsx as Hxe}from"react/jsx-runtime";import{MediaIcon as BJe,OpacityIcon as HJe}from"efficient-easel/icons";import{group as Vk}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as DJe,deviceNote as MJe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as FJe}from"efficient-shell/format";var u7=Zn.HeroSingle,Bxe={label:"Hero Single",drawsPictures:!0,fields:u7,defaultProps:{mediaType:Ba.HeroSingle,[Fa.image]:FJe,tintColor:gs,tintOpacity:0,overlay:100,overlayColor:gs,overlayPosition:$h}};var f7=Zb("video",Ba.HeroSingle),zJe=Zb("image",Ba.HeroSingle),Dxe=[...TO,"tintColor","tintOpacity"],Mxe={fields:pC({_dDevice:MJe(),boxNotice:CO("HeroSingle"),boxes:u7.boxes,_gStyle:Vk("Style"),overlay:le("Overlay",Hxe(HJe,{}),0,100,5,100,"%"),overlayColor:tM.overlayColor,overlayPosition:tM.overlayPosition,_gLayout:Vk("Layout"),...vO({tabletNumber:!1}),_gPhone:DJe("mobile",Vk("On a phone")),phoneWordsTop:nf.phoneWordsTop,phoneWordsBottom:nf.phoneWordsBottom,phoneBoxGap:nf.phoneBoxGap,_gMedia:Vk("Media"),mediaType:Oe("Type",Hxe(BJe,{}),rR,Ba.HeroSingle),mediaLayout:Og.mediaLayout,mediaLayoutPhone:Og.mediaLayoutPhone,...kO,videoSource:Dc.videoSource,mediaVideo:rt(V2,"video/*",Y2),youtubeUrl:Dc.youtubeUrl,videoPlayback:Dc.videoPlayback,videoProgress:Dc.videoProgress,poster:rt("Video poster","image/*","Upload a poster still"),_gTint:Vk("Image tint"),tintColor:mk(),tintOpacity:pk(),...uk},{parts:{media:["mediaType",...SO,"videoSource","mediaVideo","youtubeUrl","videoPlayback","videoProgress","poster"],image:Dxe,image2:Sx},onlyFor:{image:[...Dxe,"_gTint",...Sx],video:["videoSource","videoPlayback","videoProgress","poster"]},rules:{mediaVideo:{all:[f7,{field:"videoSource",is:"upload",default:hs}]},youtubeUrl:{all:[f7,{field:"videoSource",is:"youtube",default:hs}]},videoProgress:PO(f7),...EO(zJe)},fallback:Ba.HeroSingle})};import{jsx as Yk}from"react/jsx-runtime";import{BlockVideoIcon as UJe,ClockIcon as GJe,ImageIcon as $Je,MediaIcon as KJe,PlayIcon as VJe}from"efficient-easel/icons";import{group as KN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as jx}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as WJe}from"efficient-shell/format";var h7=Zn.HeroSlide,zxe={label:"Hero Slide",fields:h7,defaultProps:{mediaType:Ba.HeroSlide,videoSpeed:100,[Fa.image]:WJe,tintColor:gs,overlay:0}};var vm=Zb("video",Ba.HeroSlide),YJe=Zb("image",Ba.HeroSlide),Wxe=[...TO,"tintColor","overlay"],Uxe={fields:pC({_gContent:KN("Content"),name:nn(dw(Q("Slide name",U.slideName))),process:nn(W("Reel label","Label")),groupNotice:CO("HeroSlide"),groups:h7.groups,_gMedia:KN("Media"),mediaType:Oe("Type",Yk(KJe,{}),rR,Ba.HeroSlide),mediaLayout:Og.mediaLayout,mediaLayoutPhone:Og.mediaLayoutPhone,videoSource:Dc.videoSource,mediaVideo:jx("desktop",rt(V2,"video/*",Y2,{frame:"videoFrame"})),mediaVideoPhone:jx("mobile",rt(V2,"video/*",Y2,{frame:"videoFramePhone"})),videoFramePhone:Xp(),mediaVideoAv1:jx("desktop",rt(bB,"video/mp4",wB)),mediaVideoAv1Phone:jx("mobile",rt(bB,"video/mp4",wB)),youtubeUrl:Dc.youtubeUrl,videoPlayback:Dc.videoPlayback,videoProgress:Dc.videoProgress,videoSpeed:le("Playback speed",Yk(VJe,{}),25,100,5,100,"%"),loadingShows:$ae("Show while loading",Yk(GJe,{}),{frame:Yk(UJe,{}),image:Yk($Je,{})}),videoFrame:Xp(),...kO,poster:jx("desktop",rt("Image","image/*","Choose an image")),posterPhone:jx("mobile",rt("Image","image/*","Choose an image")),_gTint:KN("Image tint"),tintColor:mk(),overlay:pk(),...uk,_gOverlay:KN("Overlay"),overlayColor:oM.overlayColor,overlayPosition:oM.overlayPosition},{parts:{media:["mediaType",...SO,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoProgress","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:Wxe,image2:Sx},onlyFor:{image:[...Wxe,"_gTint",...Sx],video:["videoSource","videoPlayback","videoProgress","loadingShows","videoFrame"]},fallback:Ba.HeroSlide,rules:{mediaVideo:{all:[vm,{field:"videoSource",is:"upload",default:hs}]},mediaVideoPhone:{all:[vm,{field:"videoSource",is:"upload",default:hs}]},mediaVideoAv1:{all:[vm,{field:"videoSource",is:"upload",default:hs}]},mediaVideoAv1Phone:{all:[vm,{field:"videoSource",is:"upload",default:hs}]},youtubeUrl:{all:[vm,{field:"videoSource",is:"youtube",default:hs}]},videoProgress:PO(vm),videoSpeed:{all:[vm,{field:"videoSource",is:"upload",default:hs},{field:"videoPlayback",is:"background",default:j2}]},...EO(YJe),poster:{all:[vm,yB]},posterPhone:{all:[vm,yB]}}})};import{jsx as g7}from"react/jsx-runtime";import{phoneKey as jJe}from"efficient-easel/draw";import{CropIcon as Gxe,ImageIcon as qJe}from"efficient-easel/icons";import{group as b7,phoneTwinFields as XJe}from"efficient-easel/screen/lib/document/box-fields";var $xe={fields:{_gImage:b7("Image"),src:rt("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>A2(t,e.fit,e.aspect,e[jJe("aspect")])}),alt:nn(Q("Alt text")),rowField:Yr("Shows","image"),[Xo]:qc(),...XJe("aspect",kx("Aspect ratio",g7(Gxe,{}),Cb(Wg),"image","16/9",{more:[rhe(bQ)]}),void 0,{phoneRow:kx("Aspect ratio",g7(Gxe,{}),Cb(Wg),"image","16/9",{phoneRest:EQ})}),fit:ne(h_,g7(qJe,{}),fQ(),"cover"),focal:Xp(),focalTablet:Xp(),focalPhone:Xp(),href:wf(qe("Link")),_gStyle:b7("Style"),grayscale:Tx(),...Kx(),_gShape:b7("Shape"),corners:qae(),...Nae(Sre,"corners"),cornerSides:Lae()},resolveFields:(e,t)=>Qae(Ya(t.fields,e,t),e,t),showWhenFacts:Va};import{jsx as ZJe}from"react/jsx-runtime";import{group as Kxe}from"efficient-easel/screen/lib/document/box-fields";var Vxe={fields:{_gContent:Kxe("Content"),eyebrow:W("Chip label","Integrations"),title:j("Heading",`Plays well with
|
|
14
14
|
*your favourite apps.*`),body:j("Body",""),apps:Gr("App chips",ZJe(er,{noun:"tag"}),"App name","verbatim"),_gStat:Kxe("Stat & note"),statValue:W("Big stat","100s"),statLabel:W("Stat label",""),note:W("Footnote","")}};import{jsx as jk}from"react/jsx-runtime";import{keptByRow as JJe}from"efficient-easel/screen/lib/document/style-fields";import{CaseIcon as QJe,OpacityIcon as eQe,PlacementIcon as tQe,TextLinesIcon as Yxe}from"efficient-easel/icons";import{group as qx}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Jc,deviceNote as oQe}from"efficient-easel/screen/lib/document/device-fields";var jxe={fields:{_dDevice:oQe(),_gContent:qx("Content"),eyebrow:W("Eyebrow",Kp.eyebrow),title:j("Heading",Kp.title),body:j("Subtitle",Kp.body),uppercase:oe("Uppercase heading",!1,jk(QJe,{})),_gBackground:qx("Background images"),imageSrc:Jc("desktop",rt("Background image","image/*")),imageSrcMobile:Jc("mobile",rt("Background image","image/*")),_gLayout:qx("Layout"),layout:lo("Text position",jk(tQe,{}),eoe.map(e=>({...e,picture:vae[e.value]})),Qte,{columns:2,cell:ZC}),heightDesktop:nM("desktop"),heightMobile:nM("mobile"),copyShareDesktop:Jc("desktop",le("Text height",jk(Yxe,{}),sl.min,sl.max,sl.step,sl.desktop,"%")),copyShareMobile:Jc("mobile",le("Text height",jk(Yxe,{}),sl.min,sl.max,sl.step,sl.mobile,"%")),sticky:JJe("stickTop"),overlay:le("Overlay",jk(eQe,{}),0,100,5,60,"%"),_gTextDesktop:Jc("desktop",qx("Text style")),titleSizeDesktop:Jc("desktop",d1("Heading font size",32,120,1,96,"heading",{row:eC,view:"desktop"})),bodySizeDesktop:Jc("desktop",d1("Subtitle font size",12,28,1,17,"body",{row:tC,view:"desktop"})),_gTextMobile:Jc("mobile",qx("Text style")),titleSizeMobile:Jc("mobile",d1("Heading font size",24,72,1,44,"heading",{row:eC,view:"phone"})),bodySizeMobile:Jc("mobile",d1("Subtitle font size",12,22,1,16,"body",{row:tC,view:"phone"})),...gd(eC,"titleSizeDesktop",{phone:!0}),...gd(tC,"bodySizeDesktop",{phone:!0}),_gButton:qx("Button"),...Sl,buttonColor:ha("Button color","#C9A461"),buttonTextColor:ha("Button text color","#000000")}};import{jsx as qxe}from"react/jsx-runtime";import{ColumnsIcon as nQe,StylesIcon as rQe}from"efficient-easel/icons";import{group as Xxe}from"efficient-easel/screen/lib/document/box-fields";var Zxe={fields:{_gContent:Xxe("Content"),eyebrow:W("Eyebrow",Db.eyebrow),eyebrowLook:ne("Eyebrow style",qxe(rQe,{}),[...ol],Gp("KeyFeatures")),title:j("Heading",Db.title),items:{type:"array",label:"Features",arrayFields:{label:Se("Feature label"),href:_r(Q("Link"))},defaultItemProps:{label:"",href:""},getItemSummary:e=>e?.label||"Feature"},_gStyle:Xxe("Style"),columns:le("Columns",qxe(nQe,{}),2,4,1,3)}};import{jsx as aQe}from"react/jsx-runtime";import{readHidable as iQe}from"efficient-easel/draw";import{ThemeIcon as sQe}from"efficient-easel/icons";import{group as Jxe}from"efficient-easel/screen/lib/document/box-fields";var VN=e=>iQe(e).text;function lQe(e){return[VN(e.address).replace(/\s*\n+\s*/g,", "),VN(e.name),VN(e.state),VN(e.country)].map(t=>t.trim()).filter(Boolean).join(", ")}var Qxe={fields:{_gMap:Jxe("Map"),name:Q("Location name"),state:Q("State / Province"),country:Q("Country"),address:j("Address"),geocode:Vo(aR,{label:"Coordinates"}),mapsUrl:Q("Directions link"),_gStyle:Jxe("Style"),mapTheme:Oe("Map theme",aQe(sQe,{}),[{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(!BC([o]))return e;let[n]=await HC([o],lQe);return{...e,props:{...e.props,lat:n.lat,lng:n.lng,geocode:n.geocode}}}};import{jsx as cQe}from"react/jsx-runtime";import{HeightIcon as pQe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as mQe,group as uQe}from"efficient-easel/screen/lib/document/box-fields";var eye="auto";var YN="custom",w7="#000000";function jN(e,t){return e===YN?{reverse:!1,color:(typeof t=="string"?t.trim():"")||w7}:{reverse:e!=="off",color:null}}var qN={reverse:{type:"select",label:"Logo color",options:[{label:"Auto contrast",value:eye},{label:"As uploaded",value:"off"},{label:"Custom color",value:YN}]},customColor:tt(ha("Color",w7),{field:"reverse",is:YN})};var tye={fields:Ie({src:rt("Logo image","image/*"),alt:nn(Q("Alt text","Brand name","Read out in place of the picture, and shown if it can\u2019t load.")),href:wf(qe("Link")),heightPx:le("Height",cQe(pQe,{}),mte,ute,1,gu,"px"),...dl("align",{access:mQe}),...qN,_gText:uQe("Text"),rowField:Yr("Shows","text"),[Xo]:qc()},[[["alt"],{field:"src",set:!0}]]),resolveFields:(e,t)=>Ya(t.fields,e,t),showWhenFacts:Va};import{jsx as Xk}from"react/jsx-runtime";import{BlackAndWhiteIcon as hQe,ColumnsIcon as gQe,HeightIcon as bQe,PaddingYIcon as wQe,StylesIcon as xQe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as yQe,group as nye}from"efficient-easel/screen/lib/document/box-fields";import{parseOption as fQe}from"efficient-shell/format";var qk="plain",x7=[{label:"Plain",value:"plain"},{label:"Cards",value:"cards"},{label:"Marks",value:"marks"},{label:"Chips",value:"chips"}],oye=e=>fQe(x7,qk,e);var vQe=["items","heading","bandPadding"],kQe=["look"],SQe={field:"bandPadding",set:!0},TQe={field:y2,set:!0},rye={not:{field:"look",is:"chips"}},EQe=Ie({_gContent:nye("Content"),dataSource:oo("Logo content","Manual"),heading:j("Heading",M_.heading),items:{type:"array",label:"Logos",arrayFields:{src:rt("Image","image/*"),alt:nn(Q("Name / alt"))},getItemSummary:e=>e.alt||e.src||"logo"},logos:tt(tB.logos,fl),template:tt(tB.template,TQe),_gStyle:nye("Style"),columns:le("Columns",Xk(gQe,{}),3,6,1,5),logoHeight:tt(le("Logo height",Xk(bQe,{}),16,72,2,28,"px"),rye),bandPadding:tt(le("Space above and below",Xk(wQe,{}),16,120,4,40,"px"),SQe),grayscale:tt(oe("Black and white logos",!0,Xk(hQe,{})),rye),look:lo("Logo style",Xk(xQe,{}),x7.map(e=>({...e,picture:yae[e.value]})),qk,{columns:2,cell:Pr}),...dl("align",{access:yQe})},[[vQe,Ia],[kQe,_Z]]),aye={fields:EQe,resolveFields:(e,{fields:t})=>no("Logos",t,e.props,{hides:["logos"]}),resolveData:(e,t)=>{if(!t?.changed?.[y2])return e;let o=PZ(e.props);return o===e.props?e:{...e,props:o}}};import{group as Zk}from"efficient-easel/screen/lib/document/box-fields";var Oo={headNum:U.sectionNumber,headTitle:U.headingAccent,headDesc:U.body,category:U.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 "+U.date,ctaText:"Begin reading",ctaHref:pc.href,imageLabel:"Featured *image*",metaPublished:U.date,metaReads:"0 min"},iye={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 PQe=["image","title","dek","ctaHref","metaPublished"],sye={fields:_i({source:Vo($x),_nBound:tt(ml(eR),tR),_gHead:Zk("Section header"),headNum:W("Number",Oo.headNum),headTitle:j("Heading",Oo.headTitle),headDesc:j("Body",Oo.headDesc),_gMeta:Zk("Article"),category:W("Category",Oo.category),metaMiddle:W("Middle meta",Oo.metaMiddle),readLabel:W("Read time",Oo.readLabel),title:j("Article title",Oo.title),dek:j("Dek",Oo.dek),_gQuote:Zk("Pull quote"),quote:j("Quote",Oo.quote),quoteAttribution:W("Attribution",Oo.quoteAttribution),_gLink:Zk("Link"),ctaText:W("Button",Oo.ctaText),ctaHref:qe("Link"),image:rt("Image","image/*"),imageLabel:W("Image label",Oo.imageLabel),_gOverlay:Zk("Image caption"),metaPublished:W("Published",Oo.metaPublished),metaReads:W("Reads in",Oo.metaReads)},PQe,cw),resolveFields:(e,{fields:t})=>ct(t,e.props.headPlacement,mt.LongRead.headRows)};import{group as y7}from"efficient-easel/screen/lib/document/box-fields";var lye={fields:{_gContent:y7("Content"),eyebrow:W("Eyebrow",U.eyebrow),heading:j("Heading",`Main heading
|
|
15
15
|
*Highlight line*`),body:j("Body",U.body),stats:{type:"array",label:"Stats",arrayFields:{value:Q("Number"),label:Q("Label")},getItemSummary:e=>e.label||e.value||"Stat"},_gMedia:y7("Media"),imageSrc:rt("Image","image/*"),_gStyle:y7("Style"),grayscale:Tx()}};import{jsx as _Qe}from"react/jsx-runtime";import{TextLinesIcon as CQe}from"efficient-easel/icons";import{group as v7}from"efficient-easel/screen/lib/document/box-fields";var Qc={eyebrow:U.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"},dye={label:"Issue Header",defaultProps:{eyebrow:"",issueMeta:[],lead:"",issueHeading:"",issueList:[],issueTotal:""}};var cye={fields:{_gTop:v7("Top row"),eyebrow:W("Eyebrow",Qc.eyebrow),issueMeta:{type:"array",label:"Issue meta lines",arrayFields:{lead:Se("Bold word"),rest:Se("Rest")},getItemSummary:e=>[e?.lead,e?.rest].filter(Boolean).join(" ")||"Line"},_gLead:v7("Lead"),lead:j("Lead",Qc.lead),_gIssue:v7("In this issue"),issueHeading:j("Panel heading",Qc.issueHeading),issueList:Gr("Issue lines",_Qe(CQe,{}),"Line","markup"),issueTotal:W("Total line",Qc.issueTotal)}};import{jsx as kf}from"react/jsx-runtime";import{BlockColumnIcon as XN,PlacementIcon as NQe,StateIcon as LQe,TemplateIcon as AQe,TextLinesIcon as IQe}from"efficient-easel/icons";import{group as Xg}from"efficient-easel/screen/lib/document/box-fields";import{parseOption as Vto}from"efficient-shell/format";var k7=[{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"}],RQe=k7.map(e=>e.value),S7="spec-card",OQe={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 pye(e){return Ie(e,Object.entries(OQe).map(([t,o])=>[[t],Jn("variant",RQe,S7,o)]))}var FQe=[...noe,"align"],mye={fields:_i(pye({_gContent:Xg("Content"),eyebrow:W("Chip label","In the product"),title:j("Heading",`Seen from
|
|
16
16
|
*the counter.*`),body:j("Body",""),_gCard:Xg("Mockup card"),variant:lo("Card type",kf(AQe,{}),k7.map(e=>({...e,picture:Sae[e.value]})),S7,{columns:3,cell:Pr}),cardHeader:W("Card header strip","Product record"),badge:W("Header badge","LIVE"),cardTitle:W("Card title",""),cardSubtitle:W("Card subtitle",""),pills:{type:"array",label:"Selector pills",arrayFields:{label:Q("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" ")||"Pill"},tiles:{type:"array",label:"Spec tiles",arrayFields:{label:Q("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" ")||"Tile"},rows:{type:"array",label:"Result / order rows",arrayFields:{lead:Q("Lead"),detail:Q("Detail"),state:ne("State",kf(LQe,{}),[{label:"Match / done (green)",value:"ok"},{label:"In progress (main)",value:"warn"},{label:"No match (gray \u2715)",value:"no"}],"ok"),status:Q("Status chip")},defaultItemProps:{lead:"",detail:"",state:"ok",status:""},getItemSummary:e=>[e?.lead,e?.detail].filter(Boolean).join(" \xB7 ")||"Row"},button:W("Button",""),footnote:W("Footnote",""),_gKanban:Xg("Kanban columns"),col1Title:W("Column 1 title",""),col1Cards:Gr("Column 1 cards",kf(XN,{}),"Job card label","verbatim"),col2Title:W("Column 2 title",""),col2Cards:Gr("Column 2 cards",kf(XN,{}),"Job card label","verbatim"),col3Title:W("Column 3 title",""),col3Cards:Gr("Column 3 cards",kf(XN,{}),"Job card label","verbatim"),col4Title:W("Column 4 title",""),col4Cards:Gr("Column 4 cards",kf(XN,{}),"Job card label","verbatim"),_gClaims:Xg("Claims bars"),barsHeading:W("Bars heading","Defect rate by product"),bars:{type:"array",label:"Bars",arrayFields:{label:Q("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Bar"},_gTerminal:Xg("Terminal"),termLines:Gr("Terminal lines",kf(IQe,{}),"$ efficient \u2026","verbatim"),_gBrowser:Xg("Browser mock"),urlText:W("URL pill",""),heroTitle:W("Hero line",""),heroButton:W("Hero button",""),products:{type:"array",label:"Product tiles",arrayFields:{name:Q("Name"),price:Q("Price")},defaultItemProps:{name:"",price:""},getItemSummary:e=>[e?.name,e?.price].filter(Boolean).join(" \xB7 ")||"Tile"},_gStyle:Xg("Style"),align:ne("Mockup position",kf(NQe,{}),[{label:"Right of the copy",value:"right"},{label:"Left of the copy",value:"left"}],"right")}),FQe,Ia)};import{group as ZN}from"efficient-easel/screen/lib/document/box-fields";var Zg={title:"Order summary",note:"A short reassurance note under the total."},T7=Zn.OrderSummary,uye={label:"Order Table",fields:T7,defaultProps:{eyebrow:"",title:"",rows:[],subRows:[],totalLabel:"",totalAmount:"",note:"",contained:!0}};var fye={fields:{_gContent:ZN("Content"),eyebrow:W("Eyebrow",U.eyebrow),title:j("Heading",Zg.title),_gItems:ZN("Items"),dataSource:oo("Order content","Manual"),rows:{type:"array",label:"Items",arrayFields:{label:Se("Item"),meta:Se("Meta line"),amount:Se("Amount")},getItemSummary:e=>e.label||"Item"},...T7,subRows:{type:"array",label:"Sub-total lines",arrayFields:{label:Se("Label"),amount:Se("Amount")},getItemSummary:e=>e.label||"Line"},_gTotal:ZN("Total"),totalLabel:W("Total label","Total"),totalAmount:W("Total amount","$0,000"),note:j("Note",Zg.note),_gLayout:ZN("Layout")},resolveFields:(e,{fields:t})=>no("OrderSummary",t,e.props,{hides:["rows"]})};import{jsx as Cye}from"react/jsx-runtime";import{AccentIcon as ZQe,ListIcon as JQe}from"efficient-easel/icons";import{isNodeList as QQe,newId as eet}from"efficient-easel/data";import{group as Tye}from"efficient-easel/screen/lib/document/box-fields";import{jsx as hi}from"react/jsx-runtime";import{useId as gye}from"react";import{useEasel as BQe,useSelectedHost as HQe}from"efficient-easel/easel";import{CloseIcon as DQe,LinkIcon as bye,LockIcon as MQe}from"efficient-easel/icons";import{SettingsField as wye}from"efficient-easel/panel";import{deviceField as zQe,deviceNote as WQe}from"efficient-easel/screen/lib/document/device-fields";import{Input as E7}from"efficient-shell/ui";var P7=(e,t)=>t==="number"?`${oH(e.value)} \xB7 ${m(e.label)}`:`${m(e.label)} \xB7 ${oH(e.value)}`;function UQe(e,t){return[{type:"label",key:"heading",label:m("Live numbers")},...e.map(o=>({key:o.key,label:P7(o,"name"),onSelect:()=>t(o.key)}))]}var xye=(e,t)=>e.length?{label:m("Connect to a live number"),icon:hi(bye,{size:16}),menu:UQe(e,t)}:void 0,yye=(e,t,o)=>hi(E7,{id:e,readOnly:!0,value:t,leftIcon:hi(MQe,{size:16}),endAction:{label:m("Unlink"),icon:hi(DQe,{size:16}),onClick:()=>o("")}});function GQe({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?yye(e,i?P7(i,"number"):t,a):hi(E7,{id:e,value:t,onChange:s=>r(s.target.value),endAction:xye(n,a)})})}function $Qe({id:e,countKey:t,onLink:o}){let n=Bp(v2),r=bw({[rc]:t}),a=r?n.find(i=>i.key===r):void 0;return hi("div",{className:"sf-copybox",children:r?yye(e,a?P7(a,"number"):r,o):hi(E7,{id:e,readOnly:!0,value:m("Typed by hand"),endAction:xye(n,o)})})}var vye={type:"custom",icon:hi(bye,{}),render:({value:e,onChange:t})=>hi(KQe,{value:e,onChange:t})};function KQe({value:e,onChange:t}){let o=gye();return hi(wye,{label:m("Live number"),htmlFor:o,children:hi($Qe,{id:o,countKey:typeof e=="string"?e:"",onLink:t})})}function VQe(){let e=HQe();try{return BQe(t=>Pie(t.appState.data.content,e?.id))}catch{return!0}}function YQe({value:e,onChange:t}){let o=gye(),[n,r]=xc(rc),a=VQe();return hi(wye,{label:m("Body"),htmlFor:o,children:hi(GQe,{id:o,text:JC(e).text,countKey:bw({[rc]:n}),choices:a?Bp(v2):qQe,onText:i=>t(aee("textarea",e,i)),onLink:r})})}var jQe=WQe(),qQe=[],hye=new WeakMap;function XQe(e){let t=hye.get(e);if(!t){let o={...e,render:({value:n,onChange:r})=>hi(YQe,{value:n,onChange:r})};t=zQe("desktop",o),hye.set(e,t)}return t}function kye(e,t){if(typeof t?.[rc]!="string"||$C(t)!==null||Qn(t))return e;let o=e.text;return!o||typeof o!="object"?e:{_dDevice:jQe,...e,text:XQe(o)}}var _7=Zn.CardList,Sye={label:"Card list",inline:!0,fields:_7,defaultProps:{rowField:""}};function Rye(e){return QQe(e)?e.some(t=>{let o=t.props??{};return t.type==="Text"&&typeof o[rc]=="string"&&Qn(o)?!0:Object.values(o).some(Rye)}):!1}var tet=e=>Object.defineProperty(Object.fromEntries(e.map(t=>[t.key,""])),"key",{get:()=>eet("row"),enumerable:!0}),Eye=new WeakMap;function oet(e,t,o){let n=t.filter(s=>!s.everySource),r=Eye.get(e);r||Eye.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,Ik(d)]));o&&(s[rc]=vye);let l=n[0]?.key;i={...e,arrayFields:s,defaultItemProps:tet(n),getItemSummary:d=>l&&typeof d?.[l]=="string"&&d[l]||m("Row")},r.set(a,i)}return i}var Oye="cardListInCardTemplate",JN={not:{context:Oye,is:!0}},net={...Va,[Oye]:(e,t)=>{let o=Hp(t.appState,e.props?.id);return o===void 0?void 0:o!==null}},ret=tt({type:"array",label:"Rows",icon:Cye(JQe,{}),arrayFields:{}},{all:[JN,fl]}),aet=e=>DZ(e,"text").find(t=>!t.everySource)?.key??"title",Pye=new WeakMap;function iet(e,t){let o=Pye.get(e);o||Pye.set(e,o=new WeakMap);let n=o.get(t);return n||o.set(t,n={...e,highlightedCard:t}),n}var set=e=>{let t=new Set(Lh(null,{type:Mr,props:e}).map(o=>o.key));return o=>t.has(o)},_ye=new WeakMap;function det(e,t){let o=_ye.get(e);o||_ye.set(e,o=new WeakMap);let n=o.get(t);return n||o.set(t,n={...e,[nu]:t}),n}var Nye={fields:{_gSource:Tye("Source"),dataSource:tt(oo("Card content","Manual"),JN),[ww]:xw(),_gCardList:Tye("Card list"),rowField:Yr("Shows","list"),[nu]:ret,highlightedCard:tt(ne("Highlighted card",Cye(ZQe,{}),[{label:"None",value:""}],""),JN),highlightBadge:tt(W("Highlight badge","Most popular"),JN),..._7},resolveData:(e,t)=>{let o=e.props,n=t?.lastData?.props,r=bN(hse(o,n),nu),a=OP(r,set(r));return a===o?e:{...e,props:a}},resolveFields:(e,t)=>{let o=e.props??{},n=no(Mr,Ya(t.fields,e,t),o),r=!!Hp(t.appState,o.id),a=n[nu];if(r||!a)return n;let i=Lh(t.appState,{type:Mr,props:o}),s=det(n,oet(a,i,Rye(o.template))),l=n.highlightedCard;return l?iet(s,gN(l,hN(o,{rows:nu,label:aet(i)}))):s},showWhenFacts:net};function cet(e){let t=typeof e?.label=="string"?e.label.trim():"",o=typeof e?.name=="string"?e.name.trim():"";return t||o}var Lye={fields:{},resolveFields:e=>({_nHostPart:ml("The section draws {what} here, in every card.",{what:cet(e.props)})})};import{group as Aye}from"efficient-easel/screen/lib/document/box-fields";var Iye={fields:{_gContent:Aye("Content"),eyebrow:W("Eyebrow",uc.eyebrow),lead:j("Lead",U.body),stats:{type:"array",label:"Stats",arrayFields:{value:Se("Number"),label:Se("Unit")},getItemSummary:e=>e.label||e.value||"Stat"},_gFounders:Aye("Founders"),foundersHeading:j("Founders heading",uc.foundersHeading),foundersBody:j("Founders statement",uc.foundersBody),attribution:W("Attribution",uc.attribution)}};import{group as Fye}from"efficient-easel/screen/lib/document/box-fields";var Bye={fields:{_gContent:Fye("Content"),heading:W("Heading",G2.heading),dataSource:oo("Payment content","Manual"),badges:{type:"array",label:"Payment methods",arrayFields:{label:Se("Name"),src:rt("Logo","image/*")},getItemSummary:e=>e.label||e.src||"Method"},assurances:{type:"array",label:"Reassurance lines",arrayFields:{text:Se("Line")},getItemSummary:e=>e.text||"Line"},_gLayout:Fye("Layout")},resolveFields:(e,{fields:t})=>no("PaymentBadges",t,e.props,{hides:["badges"]})};import{jsx as C7}from"react/jsx-runtime";import{HeightIcon as pet,ImageIcon as met,LayoutIcon as uet}from"efficient-easel/icons";import{group as fet}from"efficient-easel/screen/lib/document/box-fields";var Pl={title:"Add a *headline* for this post.",excerpt:"A short summary of the post \u2014 one or two sentences.",category:U.category,date:U.date,readLabel:"0 min read"},Hye={label:"Post Card",drawsPictures:!0,defaultProps:{source:null,image:"",title:"",excerpt:"",href:"",category:"",date:"",readLabel:"",layout:P5,showCover:!0,placement:"bottom-left",darken:55,darkenStyle:I2[0].value,minHeight:wl.fallback}};var Dye={field:"layout",is:"cover"},het={not:Dye},get=["placement","darken","darkenStyle","minHeight","_gTint"],bet=["showCover"],wet=["image","title","excerpt","href"],Mye={fields:Ie({source:Vo($x),image:rt("Cover image","image/*"),title:j("Heading",Pl.title),excerpt:j("Excerpt",Pl.excerpt),href:qe("Link"),category:W("Category",Pl.category),date:W("Date",Pl.date),readLabel:W("Read time",Pl.readLabel),layout:lo("Card layout",C7(uet,{}),bme.map(e=>({...e,picture:wae[e.value]})),P5,{columns:2,cell:ZC}),showCover:oe("Show cover image",!0,C7(met,{})),placement:hd("Text position"),minHeight:le("Card height",C7(pet,{}),wl.min,wl.max,wl.step,wl.fallback,wl.length),_gTint:fet("Image tint"),...Kx()},[[get,Dye],[bet,het],[wet,cw]])};import{jsx as Jk}from"react/jsx-runtime";import{ColumnWidthsIcon as xet,ColumnsIcon as yet,LayoutIcon as vet,MediaLayoutStackedIcon as ket,PlacementIcon as Tet}from"efficient-easel/icons";import{deviceField as Eet}from"efficient-easel/screen/lib/document/device-fields";import{group as Wye,section as Uye}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as Pet}from"efficient-easel/screen/lib/document/field-buckets";import{isNodeList as Kye}from"efficient-easel/data";var Xx={num:U.sectionNumber,title:U.headingAccent,description:U.body,cta:U.viewAll},QN=Zn.ProcessSteps,zye={label:"Image & Text Columns",drawsPictures:!0,fields:QN,defaultProps:{num:"",title:"",description:"",columns:3,padTop:120,padBottom:120}};var Gye={field:"arrangement",in:["rows-left","rows-right"]},Vye="drawsLegacySteps",$ye={not:{context:Vye,is:!0}},_et={[Vye]:e=>{let t=e.props??{};return!ft(t)&&!Kye(t.boxes)}},Cet=e=>e?.data?.root?.props??null,Yye={fields:Ie({_gSource:Wye("Source"),dataSource:oo("Item content","Manual"),[ww]:xw(),_sHeader:Uye("Header"),_gContent:Wye("Content"),num:W("Number",Xx.num),title:W("Heading",Xx.title),description:j("Body",U.body),boxes:QN.boxes,[Lt]:QN[Lt],[Pet.Design]:Uye("Design"),arrangement:lo("Arrangement",Jk(vet,{}),ywe.map(e=>({label:e.label,hint:e.hint,value:e.value,picture:Tae[e.value]})),"columns",{columns:3,cell:Pr}),imageWidth:Oe("Image width",Jk(xet,{}),vwe.map(e=>({label:e.label,value:e.value})),"half"),phoneOrder:Eet("mobile",Oe("Order",Jk(ket,{}),kwe.map(e=>({label:e.label,value:e.value})),"picture")),columns:le("Columns",Jk(yet,{}),2,4,1,3),...jae(),cardText:Oe("Text position",Jk(Tet,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below")},[[["cardText"],{not:{field:"boxes",set:!0}}],[["arrangement"],$ye],[["imageWidth","phoneOrder"],{all:[Gye,$ye]}],[["columns"],{not:Gye}]]),showWhenFacts:_et,resolveFields:(e,t)=>no(P6,ct(t.fields,e.props.headPlacement,mt.ProcessSteps.headRows),e.props,{root:Cet(t.appState)}),resolveData:(e,t)=>{let o=e.props;return t?.changed?.dataSource!==!0||!ft(o)||Kye(o[Lt])?e:{...e,props:{...o,[Lt]:SZ(vZ(o,P6))}}}};import{jsx as Ret}from"react/jsx-runtime";import{SquareIcon as Oet}from"efficient-easel/icons";import{group as Net,section as Let}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as Aet}from"efficient-easel/screen/lib/document/field-buckets";var jye={fields:{_gContent:Net("Content"),eyebrow:W("Eyebrow",vu.eyebrow),title:j("Heading",vu.title),body:j("Body",vu.body),[Aet.Design]:Let("Design"),topBorder:oe("Top border",!0,Ret(Oet,{}))},resolveFields:(e,{fields:t})=>ct(t,e.props.headPlacement,mt.Prose.headRows)};import{jsx as R7}from"react/jsx-runtime";import{HashIcon as Iet,StylesIcon as qye}from"efficient-easel/icons";import{group as Xye}from"efficient-easel/screen/lib/document/box-fields";var Zye={fields:ree({_gContent:Xye("Content"),headStyle:lo("Style",R7(qye,{}),eee.map(e=>({...e,picture:kae[e.value]})),QQ,{columns:3,cell:Pr}),num:W("Number",Hn.num),eyebrowLook:ne("Eyebrow style",R7(qye,{}),[...ol],Lee),numStyle:Oe("Number style",R7(Iet,{}),[...hoe],foe),title:j("Heading",Hn.title),description:j("Body",Hn.description),linkText:W("Button",Hn.linkText),linkHref:qe("Link"),_gLogo:Xye("Logo"),logoSrc:rt("Logo image","image/*"),logoAlt:nn(Q("Logo alt text","Logo description"))})};import{group as eL}from"efficient-easel/screen/lib/document/box-fields";var ep={headNum:U.sectionNumber,headTitle:U.headingAccent,headDesc:U.body,viewLabel:"View series \u2192"},Jye={label:"Recurring Columns",defaultProps:{headNum:"",headTitle:"",headDesc:"",cards:[],viewLabel:"",background:"transparent"}};var Qye={fields:{_gHead:eL("Section header"),headNum:W("Number",ep.headNum),headTitle:j("Heading",ep.headTitle),headDesc:j("Body",ep.headDesc),_gCards:eL("Cards"),cards:{type:"array",label:"Cards",arrayFields:{num:Se("Number"),since:Se("Right Top Text"),title:Je("Title"),desc:Je("Body"),entries:Se("Entries count"),entriesLabel:Se("Button Right Text")},getItemSummary:e=>e?.title||(e?.num?`Column ${e.num}`:"Column")},_gViewLabel:eL("Card link"),viewLabel:W("Card button",ep.viewLabel),_gStyle:eL("Style"),background:ul("Background color",mr.Series,!0)},resolveFields:(e,{fields:t})=>ct(t,e.props.headPlacement,mt.Series.headRows)};var eve={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 tve}from"react/jsx-runtime";import{BackgroundIcon as Fet,ContrastIcon as Bet}from"efficient-easel/icons";import{group as ove}from"efficient-easel/screen/lib/document/box-fields";var nve={fields:{_gContent:ove("Content"),cells:{type:"array",label:"Strip items",arrayFields:{text:Q("Label","Label"),tone:Oe("Tone",tve(Bet,{}),[{label:"Normal",value:"normal"},{label:"Muted",value:"muted"}],"normal")},defaultItemProps:{text:"",tone:"normal"},getItemSummary:e=>e?.text||"Item",min:2,max:8},_gStyle:ove("Style"),fill:Oe("Strip fill",tve(Fet,{}),[{label:"Dark band",value:"dark"},{label:"None",value:"none"}],"dark")}};import{jsx as tL}from"react/jsx-runtime";import{CaseIcon as Het,OpacityIcon as rve,PlacementIcon as Det}from"efficient-easel/icons";import{group as Zx,section as ave}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as Met}from"efficient-easel/screen/lib/document/box-fields";var ive={fields:{_sText:ave("Text column"),_gContent:Zx("Content"),eyebrow:W("Eyebrow",$p.eyebrow),title:j("Heading",$p.title),body:j("Body",$p.body),uppercase:oe("Uppercase heading",!1,tL(Het,{})),...NC("textAlign",{access:Met}),_gButton:Zx("Button"),...Sl,_gTextBg:Zx("Background image"),textBgSrc:rt("Background image","image/*"),overlay:le("Overlay",tL(rve,{}),0,100,5,60,"%"),_sImage:ave("Image column"),_gImage:Zx("Image"),imageSrc:rt("Image","image/*"),reverse:Oe("Image side",tL(Det,{}),[{label:"Image left",value:!1},{label:"Image right",value:!0}],!1),_gImageBtn:Zx("Overlay button"),imageBtnText:W("Overlay button",Q_.text),imageBtnHref:qe("Overlay button link"),_gStyle:Zx("Style"),grayscale:Tx(),imageOverlay:le("Image overlay",tL(rve,{}),0,100,5,40,"%")}};import{jsx as zet}from"react/jsx-runtime";import{ColumnsIcon as Wet}from"efficient-easel/icons";import{group as sve}from"efficient-easel/screen/lib/document/box-fields";var lve={fields:{_gContent:sve("Content"),heading:W("Heading","By the *numbers*"),items:{type:"array",label:"Stats",arrayFields:{value:Se("Value"),label:Se("Label")},getItemSummary:e=>e.label||e.value||"stat"},columns:le("Columns",zet(Wet,{}),2,4,1,4),_gStyle:sve("Style"),background:ul("Background color",mr.Stats)}};import{jsx as Uet}from"react/jsx-runtime";import{AccentIcon as Get}from"efficient-easel/icons";import{group as cve}from"efficient-easel/screen/lib/document/box-fields";var Sf={eyebrow:U.eyebrow,title:U.headingAccent,desc:U.body},dve={label:"Stats with Text",defaultProps:{eyebrow:"",title:"",desc:"",stats:[],background:yee,padTop:120,padBottom:120}};var pve={fields:{_gContent:cve("Content"),eyebrow:W("Eyebrow",Sf.eyebrow),title:j("Heading",Sf.title),desc:j("Body",Sf.desc),stats:{type:"array",label:"Stats",arrayFields:{value:Q("Number"),prefix:Q("Prefix"),suffix:Q("Unit"),supSuffix:Q("Superscript"),emphasizeAll:oe("Whole number Theme Color",!1,Uet(Get,{})),label:Q("Label"),sub:Je("Body")},defaultItemProps:{value:"",prefix:"",suffix:"",supSuffix:"",emphasizeAll:!1,label:"",sub:""},getItemSummary:e=>e.label||e.value||"Stat"},_gStyle:cve("Style"),background:ul("Background color",mr.StatsParagraph,!0)},resolveFields:(e,{fields:t})=>ct(t,e.props.headPlacement,mt.StatsParagraph.headRows)};import{jsx as uve}from"react/jsx-runtime";import{ColumnsIcon as $et,StylesIcon as Ket}from"efficient-easel/icons";import{group as fve}from"efficient-easel/screen/lib/document/box-fields";var Jx={eyebrow:"Feedback",title:"What people *say.*"},mve={label:"Testimonials",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var hve={fields:{_gContent:fve("Content"),eyebrow:W("Eyebrow",Jx.eyebrow),eyebrowLook:ne("Eyebrow style",uve(Ket,{}),[...ol],Gp("Testimonials")),title:j("Heading",Jx.title),items:{type:"array",label:"Quotes",arrayFields:{quote:Je("Quote"),name:Q("Name"),role:Q("Role \xB7 location")},defaultItemProps:{quote:"",name:"",role:""},getItemSummary:e=>e?.name||e?.quote||"Quote"},_gStyle:fve("Style"),columns:le("Columns",uve($et,{}),1,3,1,3)},resolveFields:(e,{fields:t})=>ct(t,e.props.headPlacement,mt.Testimonials.headRows)};import{jsx as oL}from"react/jsx-runtime";import{BlockBadgeIcon as Vet,BorderTopIcon as Yet,MediaLayoutInsetIcon as jet}from"efficient-easel/icons";import{group as qet}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as Xet}from"efficient-easel/screen/lib/document/style-fields";import{VIEW_KEY_ACCESS as Zet}from"efficient-easel/screen/lib/document/box-fields";function Jet(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 nL={fields:{text:j("Body",U.body),consentWords:mN("text"),[rc]:Xet("text"),...dl("align",{access:Zet}),tone:_O(),_gText:qet("Text"),rowField:Yr("Shows",["text","date"]),[Xo]:qc(),[Iee]:tt(Oe("Place",oL(Vet,{}),[{label:"In the card",value:"",picture:oL(jet,{})},{label:"On the top line",value:"top-line",picture:oL(Yet,{})}],""),{not:{context:eB,is:!0}}),tag:ne("HTML tag",oL(er,{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)=>Jet(kye(uN(Ya(t.fields,e,t),e.props,"text"),e.props),e.props),showWhenFacts:{...Va,[eB]:(e,t)=>{let o=Hp(t.appState,e.props?.id);return o===void 0?void 0:!Mb(o?.type)}}};import{jsx as Qk}from"react/jsx-runtime";import{GapIcon as Qet,LineBetweenIcon as ett,SquareIcon as ttt,StylesIcon as ott,TextSizeIcon as ntt}from"efficient-easel/icons";import{group as gve}from"efficient-easel/screen/lib/document/box-fields";var bve={fields:{_gContent:gve("Content"),items:lw(Gr(XB.label,XB.icon,"item","markup"),XP),_gStyle:gve("Style"),tone:Oe("Style",Qk(ott,{}),[{label:"Solid",value:"scrim"},{label:"Plain",value:"plain"}],"scrim"),borders:oe("Hairline borders",!0,Qk(ttt,{})),size:Oe("Text size",Qk(ntt,{}),[...YX],TP),separator:_N(Qk(ett,{}),EP),join:ne("Join",Qk(Qet,{}),U_,W_)}};import{jsx as wve}from"react/jsx-runtime";import{ClockIcon as rtt,EyeIcon as att}from"efficient-easel/icons";import{group as xve,section as rL}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as yve}from"efficient-easel/screen/lib/document/field-buckets";var vve={field:"layout",is:"track"},itt={not:vve},kve={fields:Ie({[yve.Layout]:rL("Layout"),layout:lo("Display",wve(att,{}),[{label:"Split",hint:"Split (editorial aside)",value:"split",picture:l1.split},{label:"Spine",hint:"Spine (single rail)",value:"spine",picture:l1.spine},{label:"Alternating",hint:"Alternating (zig-zag)",value:"alternating",picture:l1.alternating},{label:"Track",hint:"Track (year rail)",value:"track",picture:l1.track}],"split",{columns:2,cell:Pr}),[yve.Design]:rL("Design"),background:ul("Background color",mr.TimelineTrack),_sHeader:rL("Header"),_gContent:xve("Content"),eyebrow:W("Eyebrow",rl.eyebrow),title:j("Heading",rl.title),intro:j("Intro",rl.intro),imageSrc:rt("Image","image/*"),imageCaption:W("Image caption",rl.imageCaption),imageMeta:W("Image meta",rl.imageMeta),_gButton:xve("Button"),...Sl,_sEntries:rL("Timeline entries"),entries:{type:"array",label:"Entries",arrayFields:{date:Se("Sub-title"),title:Je("Title"),body:Je("Body")},defaultItemProps:{date:"",title:"",body:""},getItemSummary:e=>e?.date||e?.title||"Entry"}},[[["imageSrc","imageCaption","imageMeta"],itt],[["background"],vve]]),resolveFields:(e,{fields:t})=>{if(e.props.layout!=="track")return t;let o=t.entries;return{...t,entries:{...o,arrayFields:{...o?.arrayFields,future:oe("Upcoming",!1,wve(rtt,{}))}}}}};import{jsx as stt}from"react/jsx-runtime";import{ClockIcon as ltt}from"efficient-easel/icons";import{section as eS}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as Sve}from"efficient-easel/screen/lib/document/field-buckets";var Tve={fields:{_sHeader:eS("Header"),eyebrow:W("Eyebrow",al.eyebrow),title:j("Heading",al.title),intro:j("Body",al.intro),_sEntries:eS("Milestones"),entries:{type:"array",label:"Milestones",arrayFields:{date:Q("Year"),title:Je("Title"),blurb:Je("Body"),future:oe("Upcoming",!1,stt(ltt,{}))},defaultItemProps:{date:"",title:"",blurb:"",future:!1},getItemSummary:e=>e?.date||e?.title||"Milestone"},_sButton:eS("Button"),...Sl,[Sve.Design]:eS("Design"),background:ul("Background color",mr.TimelineTrack),[Sve.Layout]:eS("Layout")},resolveFields:(e,{fields:t})=>ct(t,e.props.headPlacement,mt.TimelineTrack.headRows)};import{jsx as dtt}from"react/jsx-runtime";import{StylesIcon as ctt}from"efficient-easel/icons";import{group as Eve}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as ptt}from"efficient-easel/screen/lib/document/box-fields";var Pve={fields:{_gContent:Eve("Content"),title:j("Heading",nC.title),buttons:{type:"array",label:"Buttons",arrayFields:{label:Q("Button"),href:_r(Q("Button link")),variant:ne("Style",dtt(ctt,{}),[{label:"Filled",value:"primary"},{label:"Outline",value:"outline"}],"outline")},defaultItemProps:{label:"",href:"#",variant:"outline"},getItemSummary:e=>e?.label||"Button"},_gStyle:Eve("Style"),...dl("buttonsAlign",{fallback:"right",access:ptt})},resolveFields:(e,{fields:t})=>{let o=JC(e.props.title);if(!(!o.hidden&&o.text.trim()))return t;let{buttonsAlign:n,buttonsAlignPhone:r,...a}=t;return a}};import{jsx as utt}from"react/jsx-runtime";import{jsx as tp,jsxs as O7}from"react/jsx-runtime";var N7={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 _ve({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 tp(Ft,{contained:i,...Re("py-6",l),children:O7("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&&O7("div",{className:"absolute inset-0","aria-hidden":!0,children:[tp(Lb,{children:tp(mtt,{src:Ni(a)})}),tp("div",{className:"absolute inset-0",style:{background:ma(d)}})]}),O7("div",{className:"relative z-[1] flex max-w-[680px] flex-col gap-5",style:a?Zs:void 0,children:[e&&tp(ut,{text:e}),t&&tp("h2",{className:`font-heading2 ${N7.headingMedium} font-medium leading-[1.05] tracking-[-0.03em] ${N7.headingMediumUpTo800}`,children:re(t,!1)}),o&&Dt(o).map((c,p)=>tp("p",{className:`${N7.body} leading-[1.6] opacity-85`,children:N(c)},p)),n&&tp("div",{className:"mt-2 self-start",children:tp(va,{href:r||"#",variant:"primary",children:N(n)})})]})]})})}function mtt({src:e}){let t=to(e);return tp(Vp,{src:t.src,...t.srcSet?{srcSet:t.srcSet,sizes:$2}:{},alt:"",className:"h-full w-full object-cover"})}var Cve={...poe,render:e=>{let{eyebrow:t,title:o,body:n,imageSrc:r,ctaText:a,ctaHref:i,contained:s,overlay:l,editor:d}=e,c=li(a,i,d);return utt(_ve,{eyebrow:C(t,ku.eyebrow,d),title:C(o,ku.title,d),body:C(n,ku.body,d),imageSrc:r,overlay:typeof l=="number"?l:60,ctaText:c.text,ctaHref:c.href,contained:s,pad:et("Banner",e)})}};import{jsx as Nve}from"react/jsx-runtime";import{jsx as Qx,jsxs as L7,Fragment as ftt}from"react/jsx-runtime";import{Fragment as htt}from"react";var gtt={16:"max-view-tablet:py-4"},Rve=e=>f_({values:Wr(e,Hh,!0),frame:u_(e_),drawsFrame:!0},!0).root;function Ove({items:e,current:t,meta:o,editing:n=!1,pad:r}){let a=be(),i=(e??[]).filter(d=>d?.label?.trim()),s=t?.trim()?[...i,{label:t}]:i,l=s.length>0?s:n?[{label:m("Breadcrumb")}]:[];return l.length===0&&!o?null:Qx("nav",{className:ge(["border-b border-line px-[var(--sf-site-gutter,40px)]",r?null:L2.all[e_.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:gtt[e_.topPhone]].filter(Boolean).join(" "),a),style:r&&Object.keys(r.style).length?r.style:void 0,...r?.attrs,children:L7("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 L7(htt,{children:[c>0&&Qx("span",{className:"opacity-40",children:"/"}),d.href&&!p?Qx(xt,{newTab:"auto",href:d.href,className:"hover:text-fg",children:Jo(d.label)}):Qx("span",{className:p?"text-fg":void 0,children:Jo(d.label)})]},c)}),o&&L7(ftt,{children:[Qx("span",{className:"opacity-40",children:"\xB7"}),Qx("span",{children:N(o)})]})]})})}var btt=()=>[{label:m("Home"),href:"/"},{label:m("Section"),href:""}],Lve={...F0e,render:e=>{let{items:t,meta:o,editor:n}=e,r=a=>Nve(Ove,{items:Me(t,btt(),n),current:typeof a=="string"?a:void 0,meta:C(o,cN.meta,n),editing:n?.isEditing,pad:Rve(e)});return Qn(e)?Nve(ll,{type:"Breadcrumb",props:e,children:a=>r(a.currentCrumb)}):r()}};import{jsx as A7,Fragment as Gtt}from"react/jsx-runtime";import{jsx as aL}from"react/jsx-runtime";import{ArrowLongRightIcon as wtt,ArrowRightIcon as xtt,ArrowUpRightIcon as ytt,BagIcon as vtt,CarIcon as ktt,CartIcon as Stt,ChatIcon as Ttt,ChevronLeftIcon as Ett,ChevronRightIcon as Ptt,DownloadIcon as _tt,EmailIcon as Ctt,ExternalIcon as Rtt,LocationIcon as Ott,PackageIcon as Ntt,PhoneIcon as Ltt,PlayIcon as Att,ReceiptRefundIcon as Itt,SearchIcon as Ftt,ShieldCheckIcon as Btt,TagIcon as Htt,TruckIcon as Dtt,WheelIcon as Mtt}from"efficient-shell/icons/efficient";var ztt="sf-button-block",Wtt={"arrow-right":xtt,"arrow-long-right":wtt,"arrow-up-right":ytt,"chevron-right":Ptt,external:Rtt,cart:Stt,bag:vtt,tag:Htt,email:Ctt,location:Ott,play:Att,download:_tt,search:Ftt,car:ktt,phone:Ltt,wheel:Mtt,chat:Ttt,"chevron-left":Ett,package:Ntt,truck:Dtt,"shield-check":Btt,"receipt-refund":Itt},Utt=e=>e?` ${e}`:"";function Ave(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:f,widthFitTablet:u,buttonColor:h,buttonTextColor:g,hrefRewrite:b,blockPad:w}=e,x=pu(),v=k9(d),S=v&&v!=="none"?Wtt[v]:void 0,k=v===void 0?pN(l)?{}:{arrow:null}:S?{arrow:aL(S,{size:16}),...Fk(c)==="before"?{glyphBefore:!0}:{}}:{arrow:null},y=lae(e),T=[z0e(p,f,u,{atSectionLine:!x}),y?.className??""].filter(Boolean).join(" "),E=T?{className:T}:{},_=M0e(c,p)?{spread:!0}:{},P=iae(e),F=P?P.background==="transparent"?"ghost":"primary":n,I={...P??(h?n==="ghost"?{borderColor:h}:{background:h,borderColor:h}:{}),...g?{color:g}:{},...y?.style??{},...sae(e)??{}},H=Object.keys(I).length?{style:I}:{},B=Dh(w,Mp.text);return aL(Ft,{contained:s,...B,className:`${ztt} ${B.className}`,part:Mt("button-block"),children:aL("div",{className:`flex${r?` ${ac[r]}`:""}${Utt(zr("justify",r,a,i,{atSectionLine:!x}))}`,children:aL(va,{href:o||"#",variant:F,...E,..._,...k,...H,...o&&b?{hrefRewrite:b}:{},part:Mt("button"),glyphPart:Mt("button-icon"),children:N(t)})})})}import{phoneKey as $tt}from"efficient-easel/draw";var Ive={...mQ,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:f,buttonTextColor:u,editor:h}=e,g=Object.fromEntries(Object.entries(e).filter(([k])=>k==="buttonFillOpacity"||k==="buttonBorder"||k==="buttonCorners"||k==="buttonCornerSides"||k.startsWith("buttonPadding"))),b=Nte(e),w=b?{hrefRewrite:b}:{},x=(k,y)=>A7(Ave,{label:mc(k,pc.text,h)??"",href:y,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,widthFitPhone:e[$tt("widthFit")],buttonColor:f,buttonTextColor:u,...g,...w,blockPad:Wr(e)}),v=Qn(e),S=Qn(e,Xo);return!v&&!S?x(t,o):A7(ll,{type:"ButtonBlock",props:e,children:(k,y,T)=>T&&!h?.isEditing&&!(typeof k.label=="string"&&k.label.trim())?A7(Gtt,{}):x(k.label,k.href)})}};import{jsx as oS,Fragment as zve}from"react/jsx-runtime";import{jsx as tS,Fragment as Ktt,jsxs as Fve}from"react/jsx-runtime";var Bve={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))]"},Vtt="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))]",Ytt="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))]",jtt="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))]",km={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 Hve(e,t,o,n=!1){let r=Bb(o),a=t-1,i=Math.floor(a/r)*r,s=[];return e===0&&s.push(km.phone.tl,km.phone.tr,km.wide.tl),e===a&&s.push(km.phone.bl,km.phone.br),e===r-1&&t>=r&&s.push(km.wide.tr),e===i&&s.push(km.wide.bl),e===a&&(t%r===0||iL(e,t,o,n)>1)&&s.push(km.wide.br),e===a&&t<r&&iL(e,t,o,n)>1&&s.push(km.wide.tr),s.join(" ")}function iL(e,t,o,n){if(!n||t<1||e!==t-1)return 1;let r=Bb(o),a=t%r;return a===0?1:r-a+1}var Dve="view-wide:[grid-column:span_var(--cd-span)/span_var(--cd-span)]";function Mve({look:e,eyebrow:t,title:o,columns:n,omitHead:r=!1,editing:a=!1,cards:i,pad:s}={}){let l=be(),d=Bb(n),c=!!(t??"").trim()||!!(o??"").trim();return!a&&!c&&!i?null:tS(z,{as:"section",className:"relative z-[2] bg-surface",children:Fve("div",{...Re(ge(r?Ytt:Vtt,l),s),children:[r?null:Fve(Ktt,{children:[(t??"").trim()&&tS(ut,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&tS("h2",{className:`mb-9 font-heading2 ${Bve.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-7 ${Bve.headingMediumUpTo800}`,children:re(o??"",!1)})]}),i?tS("div",{className:jtt,style:{"--cd-cols":String(d),overflowY:"visible"},children:tS(Fo,{children:i})}):null]})})}var Wve=()=>[{title:m("Card title one"),body:m("A short line about this card.")},{title:m("Card title two"),body:m("A short line about this card.")},{title:m("Card title three"),body:m("A short line about this card.")}],Uve=()=>Wve().map(e=>({[Nh.title]:e.title??"",[Nh.body]:e.body??""}));function qtt(e){return ft(e)?Vt(e,e.editor?.isEditing===!0,Uve()).rows.filter(t=>t[Nh.title]||t[Nh.body]).map(t=>({title:t[Nh.title]??"",body:t[Nh.body]??""})):null}function Xtt(e){let t=e.editor?.isEditing===!0,o=ft(e),n=H_(e);if(o){let a=Vt(e,t,Uve());return U2(z2(a.rows,a.sample?Bp(o):[]).filter(W2),n)}let r=Me(e.items,Wve(),e.editor).map(dn);return U2(z2(r).filter(a=>t||W2(a)),n)}function Ztt(e,t,o=1){let n=[`relative grid ${OQ} bg-bg`,t,o>1?Dve:""].filter(Boolean).join(" "),r=o>1?{"--cd-span":String(o)}:void 0;return oS("div",{className:n,style:r,children:e})}var Gve={...Ree,render:e=>{let t=Ge(e.headPlacement)==="own-box",o=l=>t?void 0:l,n=(e.template?.blockCount??0)>0,r=qtt(e);if(!n&&r&&!r.length)return oS(zve,{});let a=l=>oS(Mve,{look:ms(e.eyebrowLook,e.cardStyle==="label-only"?"KeyFeatures":"Cards"),eyebrow:o(C(e.eyebrow,Hb.eyebrow,e.editor)),title:o(C(e.title,Hb.title,e.editor)),columns:e.columns,omitHead:t,editing:e.editor?.isEditing,cards:l,pad:et("Cards",e)}),{rows:i,states:s}=n?Xtt(e):{rows:[],states:[]};return n&&r&&!i.length?oS(zve,{}):oS(Ke,{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 Ztt(l,Hve(d.index,i.length,c,p),iL(d.index,i.length,c,p))},children:l=>i.length?a(l):a()})}};import{jsx as Qtt}from"react/jsx-runtime";import{jsx as nS,jsxs as I7}from"react/jsx-runtime";var F7={body:"text-[length:var(--size-body,12px)]",label:"text-[length:var(--size-label,13px)]"};function $ve({tabs:e,activeTab:t,links:o,sticky:n=!0,editing:r=!1}){let a=Bn(),i=(e??[]).filter(p=>p?.label?.trim()),s=i.length>0?i:r?[{label:m("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(nS("nav",{className:Jt(`${n?`${Xb} 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:I7("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,f)=>{let u=f===c,h=p.count?.trim()?p.count:"";return I7("span",{className:[`relative whitespace-nowrap border-r border-line px-[22px] py-[18px] font-mono ${F7.label} uppercase tracking-[0.22em] transition-colors`,f===0?"border-l border-line":"",u?"text-fg":"text-fg-dim hover:text-fg"].join(" "),children:[Jo(p.label),h&&nS("span",{className:`ml-2 ${F7.body} text-accent opacity-70`,children:Jo(h)}),u&&nS("span",{className:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"})]},f)}),l.length>0&&nS("div",{className:"ml-auto flex border-l border-line",children:l.map((p,f)=>I7(xt,{newTab:"auto",href:p.href||"#",className:`flex items-center gap-2.5 px-[22px] py-[18px] font-mono ${F7.label} uppercase tracking-[0.22em] text-fg-dim hover:text-fg`,children:[Jo(p.label)," ",nS("span",{className:"text-accent",children:"\u2197"})]},f))})]})}))}import{hidableText as eot}from"efficient-easel/draw";var Jtt=[{label:"Archive",href:"#sub-recent-issues"},{label:"RSS",href:"/contact"}],Kve={label:"Category bar",defaultProps:{tabs:[],activeTab:"All",links:Jtt,sticky:!0}};var tot=()=>[{label:m("All")},{label:U.category},{label:U.category}],Vve={...Kve,render:({tabs:e,activeTab:t,links:o,sticky:n,editor:r})=>Qtt($ve,{tabs:Me(e,tot(),r),activeTab:eot(t),links:o,sticky:n,editing:r?.isEditing})};import{jsx as aot}from"react/jsx-runtime";import{jsx as mn,jsxs as Fd}from"react/jsx-runtime";var Sm={headingMediumUpTo800:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMedium:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",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 B7(e){return Number.isInteger(e)?String(e):String(Math.round(e*10)/10)}var Yve=[100,70,46,30,19,12];function jve(e){return`color-mix(in srgb, var(--accent) ${Yve[e%Yve.length]}%, var(--bg))`}function oot({data:e,suffix:t}){let o=Math.max(...e.map(n=>n.value),0)||1;return mn("div",{className:"flex w-full flex-col gap-6",children:e.map((n,r)=>Fd("div",{children:[Fd("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[mn("span",{className:`font-mono ${Sm.label} uppercase tracking-[0.14em] text-fg/60`,children:N(n.label)}),Fd("span",{className:`font-display ${Sm.bodyLarge} font-medium text-fg`,children:[B7(n.value),t]})]}),mn("div",{className:"h-[10px] border border-line bg-bg",children:mn("div",{className:"h-full bg-accent",style:{width:`${Math.max(n.value/o*100,n.value===0?0:2)}%`}})})]},r))})}function not({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 Fd("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(c=>mn("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)),mn("line",{x1:o.l,x2:640-o.r,y1:o.t+r,y2:o.t+r,stroke:"var(--site-line)",strokeWidth:"1.5"}),mn("path",{d,fill:"var(--accent)",opacity:"0.13"}),mn("path",{d:l,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),s.map((c,p)=>Fd("g",{children:[mn("circle",{cx:c.x,cy:c.y,r:"4",fill:"var(--accent)"}),Fd("text",{x:c.x,y:c.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[B7(e[p].value),t]}),mn("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 rot({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:jve(l)};return a+=d*r,c});return Fd("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[mn("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:i.map((s,l)=>mn("circle",{cx:"100",cy:"100",r:n,fill:"none",stroke:s.ink,strokeWidth:"34",strokeDasharray:`${s.dash} ${r-s.dash}`,strokeDashoffset:-s.off},l))}),mn("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:e.map((s,l)=>Fd("li",{className:"flex items-baseline gap-3",children:[mn("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:jve(l)}}),mn("span",{className:`flex-1 font-mono ${Sm.label} uppercase tracking-[0.12em] text-fg/60`,children:N(s.label)}),mn("span",{className:`font-display ${Sm.bodySmall} font-medium text-fg`,children:t?`${B7(s.value)}${t}`:`${Math.round(s.value/o*100)}%`})]},l))})]})}function qve({eyebrow:e,title:t,body:o,chartStyle:n,items:r,valueSuffix:a,caption:i,editing:s=!1,omitHead:l=!1,pad:d}={}){let c=be(),p=(a??"").trim()===""?"":a??"",f=(r??[]).map(b=>({label:(b.label??"").trim(),value:parseFloat(b.value??"")})).filter(b=>s?!0:b.label&&Number.isFinite(b.value)).map(b=>({label:b.label||"\u2014",value:Number.isFinite(b.value)?b.value:0})),u=!l&&(!!(e??"").trim()||!!(t??"").trim());if(!s&&!u&&f.length===0)return null;let h=n??"bars",g=f.length===0?null:h==="line"&&f.length>1?mn(not,{data:f,suffix:p}):h==="donut"?mn(rot,{data:f,suffix:p}):mn(oot,{data:f,suffix:p});return l?g?mn("div",{className:"w-full",children:g}):null:mn(z,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:Fd("div",{...Re(ge("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:[Fd("div",{children:[(e??"").trim()&&mn("span",{className:`inline-block bg-accent px-3.5 py-1.5 font-mono ${Sm.labelLarge} font-semibold uppercase tracking-[0.16em] text-bg`,children:N(e??"")}),(t??"").trim()&&mn("h2",{className:`mt-5 font-heading2 ${Sm.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${Sm.headingMediumUpTo800}`,children:re(t??"",!1)}),(o??"").trim()&&mn("p",{className:`mt-5 max-w-[46ch] ${Sm.bodySmall} leading-relaxed text-fg/65`,children:o})]}),Fd("div",{children:[g,(i??"").trim()&&mn("p",{className:`mt-4 font-mono ${Sm.labelSmall} uppercase tracking-[0.14em] text-fg/40`,children:i})]})]})})}var iot=()=>[{label:m("Before"),value:"9"},{label:m("After"),value:"3"},{label:m("With us"),value:"1"}],Xve={...ooe,render:e=>{let{eyebrow:t,title:o,body:n,items:r,caption:a,chartStyle:i,valueSuffix:s,headPlacement:l,editor:d}=e,c=Ge(l)==="own-box",p=f=>c?void 0:f;return aot(qve,{eyebrow:p(C(t,qb.eyebrow,d)),title:p(C(o,qb.title,d)),body:p(cn(n)),items:Me(r,iot(),d),chartStyle:i,valueSuffix:cn(s),caption:p(cn(a)),editing:d?.isEditing,omitHead:c,pad:et("Chart",e)})}};import{jsx as W7,Fragment as Cot}from"react/jsx-runtime";import{jsx as Gt,jsxs as Es,Fragment as t2e}from"react/jsx-runtime";import{useEffect as wot,useState as xot}from"react";import{useRootIsDark as yot}from"efficient-shell/theme";import{jsx as Zve,jsxs as Jve}from"react/jsx-runtime";var H7={headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function sL({groupKey:e,name:t,count:o}){return Jve("div",{className:"mb-5 flex items-end justify-between gap-4 border-b border-line pb-4",children:[Zve("span",{className:`font-mono ${H7.labelLarge} uppercase tracking-[0.3em] text-accent`,children:e}),t?Zve("span",{className:`font-heading3 ${H7.headingSmall} font-medium uppercase tracking-[-0.01em]`,children:t}):null,Jve("span",{className:`font-mono ${H7.labelSmall} uppercase tracking-[0.22em] text-fg-dim`,children:[o," location",o===1?"":"s"]})]})}import{jsx as rS,jsxs as D7}from"react/jsx-runtime";import{useMemo as hot}from"react";import{jsx as sot,jsxs as lot}from"react/jsx-runtime";import{useEffect as Qve,useRef as dot,useState as e2e}from"react";import{EntityMap as cot}from"efficient-shell/map";import{watchRootTheme as pot}from"efficient-shell/format";var mot={"--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 uot(e){let[t,o]=e2e(()=>AP(e));return Qve(()=>(o(AP(e)),pot(()=>o(AP(e)))),[e]),t?"light":"dark"}function fot(e){let[t,o]=e2e(!1);return Qve(()=>{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 ey({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=dot(null),f=fot(p),u=uot(t);return lot("div",{ref:p,"data-site-map":"",className:n,style:mot,children:[f&&sot(cot,{pins:e,selectedKey:r,focus:a,onSelect:i??(()=>{}),ariaLabel:o,fitTo:s,card:l,groupCrowded:d,look:"site",theme:u,cooperativeGestures:"coarse"}),c]})}var got="relative overflow-hidden max-view-desktop:aspect-square";function bot(e,t,o){return ou(t,o)?[{key:"place",label:e,lat:t,lng:o,glyph:"",tone:""}]:[]}function M7(e,t,o,n){return e||(t?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent([t,o,n].filter(Boolean).join(" "))}`:"")}function z7({href:e}){return rS("a",{href:e,...F_,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 lL({name:e,state:t,country:o,lat:n,lng:r,mapsUrl:a,mapTheme:i="auto",pick:s,editing:l,boxClass:d=got,takesViewHide:c=!1}){let p=ou(n,r),f=t,u=e||"Location",h=hot(()=>bot(u,n,r),[u,n,r]),g=M7(a,e,t,o),b=D7("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:[D7("span",{className:"font-display text-[length:var(--size-body,14px)] font-medium tracking-[-0.01em]",children:[u,f?`, ${f}`:""]}),g&&rS(z7,{href:g})]});return p?rS(z,{takes:c,"data-loc-pick":s,className:d,children:rS(ey,{pins:h,mapTheme:i,ariaLabel:u,className:"absolute inset-0",children:b})}):D7(z,{takes:c,"data-loc-pick":s,className:`${d} bg-bg`,style:{backgroundImage:"repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 4%, transparent) 0 1px, transparent 1px 14px), linear-gradient(135deg, var(--site-surface-2), var(--site-surface))"},children:[b,l&&rS("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 vot=Kee({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:e=>[`${e} > div:first-child`]}),o2e=e=>Tr(e?.photo)?.trim()||void 0;function n2e({value:e}){if(typeof e=="string"){let t=e.split(`
|