efficient-storefront-blocks 0.134.0 → 0.134.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{$ as Mp,$a as Mee,$b as yu,$c as soe,$d as ane,$e as gC,$f as oR,$g as Vie,A as du,Aa as _ee,Ab as fte,Ac as Z_,Ad as sB,Ae as Gh,Af as Ft,Ag as fie,Ah as sse,B as oQ,Ba as Ib,Bb as bte,Bc as nl,Bd as Roe,Be as uB,Bf as qne,Bg as mw,Bh as lse,C as NQ,Ca as R_,Cb as wte,Cc as J6,Cd as Ooe,Ce as yne,Cf as Xne,Cg as $B,Ch as dse,D as ge,Da as U6,Db as D_,Dc as $b,Dd as Tu,De as fB,Df as vB,Dg as hie,Dh as cse,E as LQ,Ea as Fb,Eb as xte,Ec as Kte,Ed as hc,Ee as cd,Ef as vC,Eg as gie,Eh as pse,F as N2,Fa as Oee,Fb as Wh,Fc as Vte,Fd as Noe,Fe as vne,Ff as kC,Fg as KB,Fh as mse,G as DQ,Ga as O_,Gb as vo,Gc as Yte,Gd as Loe,Ge as kne,Gf as Zne,Gg as s1,Gh as use,H as MQ,Ha as Nee,Hb as M_,Hc as jte,Hd as sC,He as hB,Hf as SC,Hg as bie,Hh as ww,I as zQ,Ia as A2,Ib as vte,Ic as qte,Id as Aoe,Ie as Sne,If as Jne,Ig as sR,Ih as fse,J as WQ,Ja as I2,Jb as z_,Jc as Xte,Jd as Ioe,Je as Tne,Jf as kB,Jg as lR,Jh as hse,K as x_,Ka as N_,Kb as W_,Kc as Q6,Kd as Foe,Ke as Ene,Kf as TC,Kg as wie,Kh as gse,L as UQ,La as Lee,Lb as Tte,Lc as Zte,Ld as Boe,Le as Pne,Lf as Qne,Lg as xie,Lh as ud,M as GQ,Ma as Aee,Mb as xt,Mc as Jte,Md as Hoe,Me as gB,Mf as SB,Mg as dR,Mh as bse,N as $Q,Na as Iee,Nb as Ete,Nc as ku,Nd as Doe,Ne as _ne,Nf as ere,Ng as yie,Nh as Lu,O as KQ,Oa as Fee,Ob as N,Oc as Qte,Od as Moe,Oe as Cne,Of as tre,Og as vie,Oh as wse,P as VQ,Pa as Bee,Pb as Xo,Pc as pc,Pd as zoe,Pe as Rne,Pf as ore,Pg as kie,Ph as XB,Q as YQ,Qa as Hee,Qb as X6,Qc as eoe,Qd as Woe,Qe as wB,Qf as nre,Qg as Sie,Qh as xse,R as jQ,Ra as F2,Rb as re,Rc as Su,Rd as Xoe,Re as fC,Rf as Uae,Rg as Die,Rh as yse,S as et,Sa as B2,Sb as Dt,Sc as toe,Sd as Zoe,Se as hC,Sf as Gae,Sg as Mie,Sh as fR,T as z6,Ta as H2,Tb as el,Tc as J_,Td as dC,Te as Lne,Tf as $ae,Tg as zie,Th as vse,U as _e,Ua as L_,Ub as Pte,Uc as ooe,Ud as Joe,Ue as Ane,Uf as Kae,Ug as Wie,Uh as kse,V as dee,Va as Dee,Vb as _te,Vc as noe,Vd as Qoe,Ve as Ine,Vf as Vae,Vg as Uie,Vh as l1,W as qo,Wa as hu,Wb as tl,Wc as roe,Wd as ene,We as Eu,Wf as MB,Wg as hw,Wh as Sse,X as fee,Xa as A_,Xb as U_,Xc as aoe,Xd as tne,Xe as Lo,Xf as Yae,Xg as Gie,Xh as Tse,Y as L2,Ya as Mh,Yb as Cte,Yc as Bn,Yd as one,Ye as Yb,Yf as jae,Yg as mR,Z as ic,Za as zh,Zb as xu,Zc as ioe,Zd as nne,Ze as Fne,Zf as tR,Zg as $ie,_ as T_,_a as Bb,_b as ol,_c as Up,_d as rne,_e as Bne,_f as Ou,_g as Kie,a as w6,aa as sc,ab as zee,ac as Ote,ad as loe,ae as ine,af as bC,ag as lw,ah as Yie,b as Ks,ba as lc,bb as Wee,bc as K_,bd as M2,be as sne,bf as Hne,bg as dw,bh as jB,c as Vs,ca as fu,cb as Uee,cc as V_,cd as uc,ce as lne,cf as Dne,cg as cw,ch as jie,d as In,da as Dh,db as Gee,dc as Z6,dd as oo,de as $p,df as xB,dg as pw,dh as ft,e as E2,ea as hee,eb as mr,ec as cc,ed as Q_,ee as dne,ef as jb,eg as zB,eh as zt,f as au,fa as E_,fb as Hb,fc as Me,fd as moe,fe as cne,ff as $h,fg as WB,fh as za,g as P2,ga as gee,gb as $ee,gc as C,gd as Gp,ge as pne,gf as Mne,gg as nR,gh as ao,h as iJ,ha as P_,hb as Kee,hc as an,hd as uoe,he as mne,hf as zne,hg as qae,hh as qie,i as DP,ia as bee,ib as Vee,ic as hn,id as Mt,ie as cB,if as wC,ig as UB,ih as Xie,j as yb,ja as __,jb as I_,jc as di,jd as Ha,je as pB,jf as Wne,jg as Xae,jh as qB,k as Ah,ka as Nb,kb as Yee,kc as Y_,kd as tB,ke as mB,kf as Da,kg as Zae,kh as Zie,l as MP,la as Lb,lb as G6,lc as Nte,ld as tC,le as cC,lf as rl,lg as Jae,lh as Jie,m as zP,ma as wee,mb as jee,mc as Lte,md as foe,me as pC,mf as Ke,mg as eie,mh as Qie,n as WP,na as xee,nb as D2,nc as Ate,nd as hoe,ne as mC,nf as Pu,ng as tie,nh as ese,o as UP,oa as Ab,ob as qee,oc as Ite,od as oC,oe as uC,of as Une,og as oie,oh as pl,p as GP,pa as yee,pb as Xee,pc as Fte,pd as nC,pe as une,pf as Gne,pg as nie,ph as tse,q as $P,qa as vee,qb as Zee,qc as Bte,qd as goe,qe as fne,qf as $ne,qg as rie,qh as gw,r as sJ,ra as kee,rb as V6,rc as Hte,rd as boe,re as hne,rf as Kne,rg as aie,rh as ose,s as dJ,sa as Js,sb as B_,sc as Dte,sd as woe,se as gne,sf as q2,sg as iie,sh as nse,t as cJ,ta as C_,tb as H_,tc as Wp,td as xoe,te as K2,tf as xC,tg as sie,th as uR,u as jP,ua as zp,ub as mte,uc as j_,ud as W2,ue as V2,uf as Vne,ug as lie,uh as bw,v as qP,va as cs,vb as ute,vc as Mte,vd as U2,ve as Y2,vf as X2,vg as die,vh as rse,w as UJ,wa as See,wb as Ub,wc as zte,wd as aB,we as j2,wf as Kh,wg as GB,wh as ase,x as GJ,xa as Tee,xb as Y6,xc as Ute,xd as iB,xe as bne,xf as yB,xg as mie,xh as ise,y as a_,ya as Eee,yb as j6,yc as Gte,yd as Vb,ye as wne,yf as Yne,yg as iR,yh as qp,z as I6,za as Pee,zb as q6,zc as $te,zd as iC,ze as xne,zf as jne,zg as uie,zh as Jh}from"./chunks/chunk-MM7TBACQ.js";import{$ as Zp,$a as Du,A as xle,B as yle,Ba as Wle,C as vle,Ca as NR,D as kle,Da as LR,E as yR,Ea as Ule,F as Tw,Fa as AR,G as vR,Ga as Hu,H as Sle,Ha as Nw,I as kR,Ia as yc,J as SR,Ja as IR,K as Tle,Ka as Lw,L as Ew,La as FR,M as Pw,Ma as BR,N as TR,Na as Jp,O as Ele,Oa as aH,P as Ple,Pa as Gle,Q as ER,Qa as $le,R as Iu,Ra as Kle,S as _le,Sa as Vle,T as PR,Ta as Yle,U as _w,Ua as jle,V as Cle,Va as qle,W as eg,Wa as Xle,X as Rle,Xa as Zle,Y as Fu,Ya as Jle,Z as Cw,Za as Qle,_ as _R,_a as HR,a as ga,aa as Ole,ab as vc,b as sle,ba as Nle,bb as ede,ca as Lle,cb as tg,da as CR,db as tde,ea as Ale,eb as iH,f as Xp,fa as Ile,fb as ode,g as wR,ga as p1,gb as nde,h as lle,ha as RR,hb as DR,i as dle,ia as Fle,ib as rde,j as oH,ja as Rw,jb as hs,k as cle,ka as Ble,kb as MR,l as ple,lb as Aw,m as mle,mb as ade,n as ule,na as Hle,nb as ide,o as xR,ob as Qp,p as nH,pa as Dle,pb as sH,q as fle,qa as Mle,r as ba,ra as Bu,rb as lH,s as hle,sa as It,sb as kc,t as gle,ta as zle,tb as Sc,u as Au,ub as zR,v as ble,va as rH,vb as og,w as xc,wa as Ow,wb as Kr,x as c1,xa as Dn,y as wle,ya as OR,z as Sw,za as m1}from"./chunks/chunk-K7S3C6QE.js";import{A as Bse,B as Hse,C as Dse,D as Mse,E as zse,F as Wse,G as Use,H as Gse,I as $se,J as QB,K as Kse,L as eH,M as gn,N as Vse,O as Li,P as Yse,Q as jse,R as bR,S as ur,T as qse,U as Xse,V as Zse,W as Jse,X as yw,Y as Qse,b as hR,ca as vw,da as Ao,e as d1,ea as Qh,f as xw,fa as ele,ga as kw,h as Hn,ha as Fe,i as wc,ia as tle,j as Ese,ja as tH,k as Pse,ka as ole,l as _se,la as nle,m as Cse,ma as rle,n as Rse,na as ale,o as ZB,oa as ile,p as ml,q as Ose,r as Nse,s as lt,t as Ni,u as Lse,v as Ase,w as JB,x as Ise,y as gR,z as Fse}from"./chunks/chunk-6RKYPO5H.js";import{$ as PQ,A as wQ,B as C2,C as xQ,F as _b,G as cu,H as kQ,I as Hp,L as SQ,M as Fn,N as m_,O as Qt,P as z,Q as H6,S as mu,T as Cb,U as TQ,V as D6,W as EQ,X as Rb,aa as $6,b as $J,ba as bu,c as KJ,ca as ote,da as zb,ea as nte,fa as Qs,g as VJ,ga as yte,ha as He,i as nQ,ia as Zh,j as c_,k as p_,ka as cie,l as rQ,la as rR,m as aQ,ma as pie,n as iQ,na as aR,o as sQ,p as lQ,q as dQ,r as cQ,s as pQ,u as mQ,v as uQ,w as fQ,x as hQ,y as gQ,z as bQ}from"./chunks/chunk-UYU65XIT.js";import{a as Oi,b as doe,c as mc,e as ms,h as yC,j as ha,k as Hie}from"./chunks/chunk-YMJRKOEC.js";import{a as _Q,b as RQ,e as OQ}from"./chunks/chunk-ITZRFN64.js";import{$c as oee,$d as gu,$e as rC,$f as Oe,$g as kre,$h as Yh,$i as en,$j as Ma,$k as Oie,A as su,Ab as s_,Ae as pte,Af as Koe,Ah as Are,Ai as aae,Bb as Ur,Bd as k_,Bf as Voe,Bh as CB,Bi as o1,Bj as yae,Cf as G2,Ch as RB,Ci as n1,Cj as vae,D as he,Dc as W6,De as hte,Df as Yoe,Dh as OB,Di as KC,Dj as kae,E as _i,Eb as Bp,Ec as XQ,Ef as joe,Eh as J2,Ei as iae,Ej as Sae,F as hJ,Fb as _2,Fc as ZQ,Fe as gte,Ff as qoe,Fh as NB,Fi as sae,Fj as Tae,Gb as Hh,Ge as dc,Gh as Q2,Gi as lae,H as gJ,Hb as l_,Hc as y_,Hh as _u,Hi as FB,Hj as Eae,Hk as Tie,Ia as zJ,Ib as d_,Ic as v_,Ie as U,Ih as Ire,Ii as dae,Ij as Pae,Jc as uu,Je as G_,Jg as il,Jh as Fre,Ji as cae,Jj as bc,Ka as WJ,Kc as JQ,Ke as Rn,Kg as ure,Kh as Cu,Ki as pae,Kj as _ae,Kk as Eie,L as bJ,Lc as QQ,Le as Gb,Lg as fre,Lh as HC,Li as r1,Lj as Cae,Me as Rte,Mg as RC,Mh as Bre,Mi as mae,Mj as Rae,N as wJ,Na as Fa,Nd as cee,Ne as $_,Ng as Xb,Nh as Hre,Ni as uae,Nj as a1,O as xJ,Oa as Ba,Od as Zs,Oe as wu,Of as lB,Og as hre,Oh as Ru,Oi as _r,Pa as YJ,Pd as pee,Pe as qt,Pf as dB,Pg as Yp,Ph as Dre,Pi as VC,Pj as Oae,Qa as jJ,Qd as Ob,Qf as $2,Qg as Zb,Qh as e1,Qi as fae,Ra as qJ,Re as vu,Rf as fs,Rg as OC,Rh as LB,Ri as YC,S as XP,Sa as XJ,Sd as S_,Se as q_,Sf as bB,Sg as EB,Sh as AB,Si as hae,Sj as i1,Sk as Pie,T as ZP,Tb as R2,Td as mee,Te as X_,Tf as One,Tg as sl,Th as DC,Tk as no,U as yJ,Ua as ZJ,Ub as u_,Ud as uee,Uf as Nne,Ug as Qn,Uh as Mre,Ui as gae,Uk as uw,V as vJ,Vb as f_,Ve as Wte,Vg as gre,Vh as MC,Vi as ci,Vk as fw,W as Sb,Wa as F6,Wb as ld,Wc as eee,Wd as Cee,We as coe,Wf as qb,Wi as jC,Wk as cl,X as kJ,Xb as Ci,Xd as Ree,Xe as Uh,Xf as EC,Xg as bre,Xh as zC,Xi as bae,Xk as ro,Yb as AQ,Ye as yoe,Yf as le,Yg as wre,Yh as zre,Yi as nw,Yk as _ie,Zb as O2,Zd as Jee,Zf as ne,Zg as NC,Zh as Wre,Zi as Cr,Zj as Nae,Zk as Cie,_ as SJ,_b as ds,_c as tee,_e as voe,_f as Kp,_g as LC,_h as Ure,_j as oe,_k as Rie,a as nc,ac as Xs,ad as nee,ae as Qee,ag as rre,ah as Sre,ai as WC,ak as Lae,al as Nie,b as WZ,ba as JP,bc as IQ,bd as ree,be as Db,bf as koe,bg as PC,bh as Tre,bi as jh,bj as rw,bk as Aae,bl as cR,c as lJ,cc as Dp,ce as Mb,cf as Soe,cg as al,ci as Gre,cj as wae,ck as jp,cl as Lie,d as KP,dc as h_,de as ete,df as Toe,dg as _C,dh as FC,di as $re,dj as qC,dl as Aie,ec as FQ,ee as tte,ef as Eoe,eg as CC,eh as Ere,ej as XC,ek as HB,el as Iie,fc as g_,fe as F_,fg as Vh,fh as PB,fi as Kre,fj as aw,fk as iw,g as u,gc as ua,ge as rte,gg as pd,gh as Jb,gi as Vre,gj as W,gk as Ko,gl as Fie,h as pr,ha as T6,hb as JJ,hc as b_,hd as Ri,hf as Poe,hg as are,hh as Qb,hi as Yre,hj as j,hk as QC,hl as Bie,ic as BQ,id as aee,ig as Vp,ih as BC,ii as jre,ij as Q,ik as Iae,il as VB,j as iu,jb as QJ,jc as HQ,jg as md,jh as Pre,ji as qre,jj as ve,jk as rt,jl as YB,k as ac,ka as o_,kb as eQ,kc as w_,ke as K6,kf as oB,kg as ire,kh as _re,ki as IB,kj as Xe,kk as eR,kl as pR,la as IJ,lf as nB,lg as TB,lh as Cre,li as Xre,lj as Je,lk as DB,m as uJ,ma as Eb,md as iee,mf as _oe,mg as sre,mi as Zre,mk as $r,na as N6,nf as Pr,ng as lre,ni as Jre,nj as ll,oa as FJ,ob as tQ,oe as ate,of as aC,og as dre,oh as ew,oi as UC,oj as xae,pa as L6,pb as B6,pe as ite,pf as Coe,pg as co,pi as ow,pk as Fae,qa as BJ,qe as ste,qh as Rre,qi as Qre,qk as Bae,r as S6,ra as HJ,rb as Pb,rd as see,re as Gr,rf as rB,rg as cre,ri as eae,sa as A6,sb as Fh,se as ps,sg as pre,si as t1,sk as Hae,ta as DJ,tb as qs,te as Wb,tg as mre,th as Ore,ti as qh,tk as Xh,ua as MJ,ue as lte,ui as tae,uj as ZC,uk as sw,va as n_,vb as i_,vc as qQ,vd as lee,vf as Uoe,vh as Nre,vi as oae,vj as dl,vk as Dae,w as fJ,wa as r_,we as dte,wf as lC,wh as tw,wi as GC,wj as JC,wk as Mae,x as sd,xf as Goe,xh as fa,xi as nae,xk as zae,y as kb,yb as yo,ye as cte,yf as $oe,yh as _B,yi as $C,yj as BB,yk as Wae,zb as Bh,zf as us,zh as Lre,zi as rae,zj as gc}from"./chunks/chunk-AKNNDIRL.js";import{d as M6,h as CQ}from"./chunks/chunk-4HZQEMGD.js";import{$b as $X,$c as Ue,$d as yZ,$e as rn,A as zr,Ae as OP,Ah as Ih,Ai as AC,B as La,Ba as EX,Bb as LX,Bd as bZ,Bf as KZ,Bh as t_,Bi as IC,C as _n,Ca as Cn,Cf as T2,Cg as eJ,Ch as js,Ci as er,Db as bP,Dd as wZ,Df as IP,Dg as tJ,Dh as R6,Di as xre,E as Xn,Ea as hP,Ee as ru,Ef as y6,Eg as oJ,Eh as lu,Ei as yre,Fa as PX,Fc as kP,Fd as Zn,Fe as RZ,Ff as FP,Fg as nJ,Fh as O6,Fi as vre,Ga as Eh,Gb as AX,Gc as SP,Gd as si,Ge as OZ,Gf as rc,H as i6,Ha as Ph,Hb as Ch,Hc as p6,Hd as Ae,He as NZ,Hf as Fp,Hh as LJ,Hi as Nu,I as s6,Ib as oc,Ic as oZ,Id as Pi,Ie as LZ,Ih as Tb,Ii as Qae,Jb as cb,Jc as ub,Jd as ot,Je as wb,Jh as AJ,K as hX,Kb as od,Kc as fb,Kg as rJ,Lb as Rh,Lc as nZ,Mb as eu,Mc as rZ,Md as ut,N as gX,Na as _X,Nb as IX,Nc as m6,Oa as CX,Ob as Wr,Oc as aZ,Of as VZ,Og as aJ,Pa as RX,Pb as cr,Pc as hb,Pd as Ge,Pe as AZ,Qb as FX,Qc as iZ,Qf as BP,R as l6,Rb as BX,Rc as x2,Rd as Ia,Sb as HX,Sd as xZ,Ta as OX,Tb as DX,Tc as sZ,Td as pt,Te as k2,U as bX,Ub as wP,Uc as lZ,Ud as gb,Ue as NP,Uf as YZ,Vb as xP,Vc as dZ,Ve as IZ,Vf as HP,Vg as Ys,W as Ne,Wb as MX,Wc as cZ,Wd as EP,We as LP,Wg as pJ,Wh as yQ,X as fe,Xb as zX,Xc as pZ,Xd as PP,Xe as FZ,Xg as VP,Yb as WX,Yc as $e,Yd as ad,Ye as BZ,Z as wX,Zb as UX,Zc as Rt,Ze as Jn,_b as GX,_c as Gs,_e as HZ,aa as xX,ac as w2,ad as gt,b as Er,bc as KX,bd as u6,bg as v6,bh as vb,bi as pu,c as h2,cc as tu,cd as mZ,cf as DZ,ch as mJ,ci as vQ,da as db,dc as VX,dd as ho,de as _P,dh as YP,di as li,e as pP,ea as yX,ec as YX,ee as nu,eh as QP,f as tc,fa as vX,fc as jX,fd as rd,ff as MZ,fh as TJ,g as g2,ga as fP,gb as ii,gd as ou,ge as CP,gf as zZ,gh as E6,hc as nd,hd as Aa,he as y2,hh as P6,ic as pb,id as To,if as Ip,ih as _6,ja as kX,jc as mb,jd as uZ,je as h6,jf as b6,jh as EJ,ji as dd,kc as qX,ke as g6,kf as AP,kh as PJ,ki as fc,l as r6,lc as XX,le as vZ,lf as id,lg as jZ,lh as _J,li as z2,m as lb,mb as Qm,mc as ZX,me as kZ,mf as Nh,mh as CJ,mi as eC,nc as c6,nd as fZ,ne as SZ,nh as RJ,ni as eB,ob as NX,oc as JX,od as Ie,of as S2,og as qZ,oh as C6,oi as poe,p as a6,pb as _h,pe as RP,pf as $s,ph as OJ,qa as SX,qb as b2,qc as yP,qd as Oh,qe as TZ,qf as xb,qi as Kb,r as mP,re as bb,rf as x6,rg as XZ,s as Ap,sa as d6,sg as ZZ,sh as NJ,t as uP,tc as QX,u as ht,ub as Us,ue as EZ,ug as JZ,v as fX,vc as ls,ve as PZ,vf as UZ,w as Kt,wa as TX,wd as TP,we as _Z,x as zs,xc as eZ,xd as f6,xf as GZ,xh as e_,y as jo,yb as gP,yc as vP,yd as hZ,ye as v2,yf as Lh,yg as QZ,z as Lt,za as So,zc as tZ,zd as gZ,ze as CZ,zf as $Z,zg as k6,zh as ma,zi as Z2}from"./chunks/chunk-GZKBN53C.js";import{a as Ws}from"./chunks/chunk-XPDSLIZ3.js";import{a as kte,c as Ste}from"./chunks/chunk-DSTQVJ5G.js";import{a as Pn,b as i8e}from"./chunks/chunk-Y6SLVHK3.js";var wh=Pn(Z0=>{"use strict";var Tj,Y_t=[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];Z0.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};Z0.getSymbolTotalCodewords=function(t){return Y_t[t]};Z0.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Z0.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Tj=t};Z0.isKanjiModeEnabled=function(){return typeof Tj<"u"};Z0.toSJIS=function(t){return Tj(t)}});var u4=Pn(ql=>{"use strict";ql.L={bit:1};ql.M={bit:0};ql.Q={bit:3};ql.H={bit:2};function j_t(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return ql.L;case"m":case"medium":return ql.M;case"q":case"quartile":return ql.Q;case"h":case"high":return ql.H;default:throw new Error("Unknown EC Level: "+e)}}ql.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};ql.from=function(t,o){if(ql.isValid(t))return t;try{return j_t(t)}catch{return o}}});var wBe=Pn((EOn,bBe)=>{"use strict";function gBe(){this.buffer=[],this.length=0}gBe.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++}};bBe.exports=gBe});var yBe=Pn((POn,xBe)=>{"use strict";function WE(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)}WE.prototype.set=function(e,t,o,n){let r=e*this.size+t;this.data[r]=o,n&&(this.reservedBit[r]=!0)};WE.prototype.get=function(e,t){return this.data[e*this.size+t]};WE.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};WE.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};xBe.exports=WE});var vBe=Pn(f4=>{"use strict";var q_t=wh().getSymbolSize;f4.getRowColCoords=function(t){if(t===1)return[];let o=Math.floor(t/7)+2,n=q_t(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()};f4.getPositions=function(t){let o=[],n=f4.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 TBe=Pn(SBe=>{"use strict";var X_t=wh().getSymbolSize,kBe=7;SBe.getPositions=function(t){let o=X_t(t);return[[0,0],[o-kBe,0],[0,o-kBe]]}});var EBe=Pn(on=>{"use strict";on.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var J0={N1:3,N2:3,N3:40,N4:10};on.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};on.from=function(t){return on.isValid(t)?parseInt(t,10):void 0};on.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+=J0.N1+(r-5)),i=c,r=1),c=t.get(d,l),c===s?a++:(a>=5&&(n+=J0.N1+(a-5)),s=c,a=1)}r>=5&&(n+=J0.N1+(r-5)),a>=5&&(n+=J0.N1+(a-5))}return n};on.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*J0.N2};on.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*J0.N3};on.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)*J0.N4};function Z_t(e,t,o){switch(e){case on.Patterns.PATTERN000:return(t+o)%2===0;case on.Patterns.PATTERN001:return t%2===0;case on.Patterns.PATTERN010:return o%3===0;case on.Patterns.PATTERN011:return(t+o)%3===0;case on.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2===0;case on.Patterns.PATTERN101:return t*o%2+t*o%3===0;case on.Patterns.PATTERN110:return(t*o%2+t*o%3)%2===0;case on.Patterns.PATTERN111:return(t*o%3+(t+o)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}on.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,Z_t(t,a,r))};on.getBestMask=function(t,o){let n=Object.keys(on.Patterns).length,r=0,a=1/0;for(let i=0;i<n;i++){o(i),on.applyMask(i,t);let s=on.getPenaltyN1(t)+on.getPenaltyN2(t)+on.getPenaltyN3(t)+on.getPenaltyN4(t);on.applyMask(i,t),s<a&&(a=s,r=i)}return r}});var Pj=Pn(Ej=>{"use strict";var xh=u4(),h4=[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],g4=[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];Ej.getBlocksCount=function(t,o){switch(o){case xh.L:return h4[(t-1)*4+0];case xh.M:return h4[(t-1)*4+1];case xh.Q:return h4[(t-1)*4+2];case xh.H:return h4[(t-1)*4+3];default:return}};Ej.getTotalCodewordsCount=function(t,o){switch(o){case xh.L:return g4[(t-1)*4+0];case xh.M:return g4[(t-1)*4+1];case xh.Q:return g4[(t-1)*4+2];case xh.H:return g4[(t-1)*4+3];default:return}}});var PBe=Pn(w4=>{"use strict";var UE=new Uint8Array(512),b4=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)UE[o]=t,b4[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)UE[o]=UE[o-255]})();w4.log=function(t){if(t<1)throw new Error("log("+t+")");return b4[t]};w4.exp=function(t){return UE[t]};w4.mul=function(t,o){return t===0||o===0?0:UE[b4[t]+b4[o]]}});var _Be=Pn(GE=>{"use strict";var _j=PBe();GE.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]^=_j.mul(t[r],o[a]);return n};GE.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]^=_j.mul(o[i],r);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};GE.generateECPolynomial=function(t){let o=new Uint8Array([1]);for(let n=0;n<t;n++)o=GE.mul(o,new Uint8Array([1,_j.exp(n)]));return o}});var OBe=Pn((AOn,RBe)=>{"use strict";var CBe=_Be();function Cj(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Cj.prototype.initialize=function(t){this.degree=t,this.genPoly=CBe.generateECPolynomial(this.degree)};Cj.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=CBe.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};RBe.exports=Cj});var Rj=Pn(NBe=>{"use strict";NBe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Oj=Pn(qm=>{"use strict";var LBe="[0-9]+",J_t="[A-Z $%*+\\-./:]+",$E="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";$E=$E.replace(/u/g,"\\u");var Q_t="(?:(?![A-Z0-9 $%*+\\-./:]|"+$E+`)(?:.|[\r
1
+ import{$ as Mp,$a as Mee,$b as yu,$c as soe,$d as ane,$e as gC,$f as oR,$g as Vie,A as du,Aa as _ee,Ab as fte,Ac as Z_,Ad as sB,Ae as Gh,Af as Ft,Ag as fie,Ah as sse,B as oQ,Ba as Ib,Bb as bte,Bc as nl,Bd as Roe,Be as uB,Bf as qne,Bg as mw,Bh as lse,C as NQ,Ca as R_,Cb as wte,Cc as J6,Cd as Ooe,Ce as yne,Cf as Xne,Cg as $B,Ch as dse,D as ge,Da as U6,Db as D_,Dc as $b,Dd as Tu,De as fB,Df as vB,Dg as hie,Dh as cse,E as LQ,Ea as Fb,Eb as xte,Ec as Kte,Ed as hc,Ee as cd,Ef as vC,Eg as gie,Eh as pse,F as N2,Fa as Oee,Fb as Wh,Fc as Vte,Fd as Noe,Fe as vne,Ff as kC,Fg as KB,Fh as mse,G as DQ,Ga as O_,Gb as vo,Gc as Yte,Gd as Loe,Ge as kne,Gf as Zne,Gg as s1,Gh as use,H as MQ,Ha as Nee,Hb as M_,Hc as jte,Hd as sC,He as hB,Hf as SC,Hg as bie,Hh as ww,I as zQ,Ia as A2,Ib as vte,Ic as qte,Id as Aoe,Ie as Sne,If as Jne,Ig as sR,Ih as fse,J as WQ,Ja as I2,Jb as z_,Jc as Xte,Jd as Ioe,Je as Tne,Jf as kB,Jg as lR,Jh as hse,K as x_,Ka as N_,Kb as W_,Kc as Q6,Kd as Foe,Ke as Ene,Kf as TC,Kg as wie,Kh as gse,L as UQ,La as Lee,Lb as Tte,Lc as Zte,Ld as Boe,Le as Pne,Lf as Qne,Lg as xie,Lh as ud,M as GQ,Ma as Aee,Mb as xt,Mc as Jte,Md as Hoe,Me as gB,Mf as SB,Mg as dR,Mh as bse,N as $Q,Na as Iee,Nb as Ete,Nc as ku,Nd as Doe,Ne as _ne,Nf as ere,Ng as yie,Nh as Lu,O as KQ,Oa as Fee,Ob as N,Oc as Qte,Od as Moe,Oe as Cne,Of as tre,Og as vie,Oh as wse,P as VQ,Pa as Bee,Pb as Xo,Pc as pc,Pd as zoe,Pe as Rne,Pf as ore,Pg as kie,Ph as XB,Q as YQ,Qa as Hee,Qb as X6,Qc as eoe,Qd as Woe,Qe as wB,Qf as nre,Qg as Sie,Qh as xse,R as jQ,Ra as F2,Rb as re,Rc as Su,Rd as Xoe,Re as fC,Rf as Uae,Rg as Die,Rh as yse,S as et,Sa as B2,Sb as Dt,Sc as toe,Sd as Zoe,Se as hC,Sf as Gae,Sg as Mie,Sh as fR,T as z6,Ta as H2,Tb as el,Tc as J_,Td as dC,Te as Lne,Tf as $ae,Tg as zie,Th as vse,U as _e,Ua as L_,Ub as Pte,Uc as ooe,Ud as Joe,Ue as Ane,Uf as Kae,Ug as Wie,Uh as kse,V as dee,Va as Dee,Vb as _te,Vc as noe,Vd as Qoe,Ve as Ine,Vf as Vae,Vg as Uie,Vh as l1,W as qo,Wa as hu,Wb as tl,Wc as roe,Wd as ene,We as Eu,Wf as MB,Wg as hw,Wh as Sse,X as fee,Xa as A_,Xb as U_,Xc as aoe,Xd as tne,Xe as Lo,Xf as Yae,Xg as Gie,Xh as Tse,Y as L2,Ya as Mh,Yb as Cte,Yc as Bn,Yd as one,Ye as Yb,Yf as jae,Yg as mR,Z as ic,Za as zh,Zb as xu,Zc as ioe,Zd as nne,Ze as Fne,Zf as tR,Zg as $ie,_ as T_,_a as Bb,_b as ol,_c as Up,_d as rne,_e as Bne,_f as Ou,_g as Kie,a as w6,aa as sc,ab as zee,ac as Ote,ad as loe,ae as ine,af as bC,ag as lw,ah as Yie,b as Ks,ba as lc,bb as Wee,bc as K_,bd as M2,be as sne,bf as Hne,bg as dw,bh as jB,c as Vs,ca as fu,cb as Uee,cc as V_,cd as uc,ce as lne,cf as Dne,cg as cw,ch as jie,d as In,da as Dh,db as Gee,dc as Z6,dd as oo,de as $p,df as xB,dg as pw,dh as ft,e as E2,ea as hee,eb as mr,ec as cc,ed as Q_,ee as dne,ef as jb,eg as zB,eh as zt,f as au,fa as E_,fb as Hb,fc as Me,fd as moe,fe as cne,ff as $h,fg as WB,fh as za,g as P2,ga as gee,gb as $ee,gc as C,gd as Gp,ge as pne,gf as Mne,gg as nR,gh as ao,h as iJ,ha as P_,hb as Kee,hc as an,hd as uoe,he as mne,hf as zne,hg as qae,hh as qie,i as DP,ia as bee,ib as Vee,ic as hn,id as Mt,ie as cB,if as wC,ig as UB,ih as Xie,j as yb,ja as __,jb as I_,jc as di,jd as Ha,je as pB,jf as Wne,jg as Xae,jh as qB,k as Ah,ka as Nb,kb as Yee,kc as Y_,kd as tB,ke as mB,kf as Da,kg as Zae,kh as Zie,l as MP,la as Lb,lb as G6,lc as Nte,ld as tC,le as cC,lf as rl,lg as Jae,lh as Jie,m as zP,ma as wee,mb as jee,mc as Lte,md as foe,me as pC,mf as Ke,mg as eie,mh as Qie,n as WP,na as xee,nb as D2,nc as Ate,nd as hoe,ne as mC,nf as Pu,ng as tie,nh as ese,o as UP,oa as Ab,ob as qee,oc as Ite,od as oC,oe as uC,of as Une,og as oie,oh as pl,p as GP,pa as yee,pb as Xee,pc as Fte,pd as nC,pe as une,pf as Gne,pg as nie,ph as tse,q as $P,qa as vee,qb as Zee,qc as Bte,qd as goe,qe as fne,qf as $ne,qg as rie,qh as gw,r as sJ,ra as kee,rb as V6,rc as Hte,rd as boe,re as hne,rf as Kne,rg as aie,rh as ose,s as dJ,sa as Js,sb as B_,sc as Dte,sd as woe,se as gne,sf as q2,sg as iie,sh as nse,t as cJ,ta as C_,tb as H_,tc as Wp,td as xoe,te as K2,tf as xC,tg as sie,th as uR,u as jP,ua as zp,ub as mte,uc as j_,ud as W2,ue as V2,uf as Vne,ug as lie,uh as bw,v as qP,va as cs,vb as ute,vc as Mte,vd as U2,ve as Y2,vf as X2,vg as die,vh as rse,w as UJ,wa as See,wb as Ub,wc as zte,wd as aB,we as j2,wf as Kh,wg as GB,wh as ase,x as GJ,xa as Tee,xb as Y6,xc as Ute,xd as iB,xe as bne,xf as yB,xg as mie,xh as ise,y as a_,ya as Eee,yb as j6,yc as Gte,yd as Vb,ye as wne,yf as Yne,yg as iR,yh as qp,z as I6,za as Pee,zb as q6,zc as $te,zd as iC,ze as xne,zf as jne,zg as uie,zh as Jh}from"./chunks/chunk-MM7TBACQ.js";import{$ as Zp,$a as Du,A as xle,B as yle,Ba as Wle,C as vle,Ca as NR,D as kle,Da as LR,E as yR,Ea as Ule,F as Tw,Fa as AR,G as vR,Ga as Hu,H as Sle,Ha as Nw,I as kR,Ia as yc,J as SR,Ja as IR,K as Tle,Ka as Lw,L as Ew,La as FR,M as Pw,Ma as BR,N as TR,Na as Jp,O as Ele,Oa as aH,P as Ple,Pa as Gle,Q as ER,Qa as $le,R as Iu,Ra as Kle,S as _le,Sa as Vle,T as PR,Ta as Yle,U as _w,Ua as jle,V as Cle,Va as qle,W as eg,Wa as Xle,X as Rle,Xa as Zle,Y as Fu,Ya as Jle,Z as Cw,Za as Qle,_ as _R,_a as HR,a as ga,aa as Ole,ab as vc,b as sle,ba as Nle,bb as ede,ca as Lle,cb as tg,da as CR,db as tde,ea as Ale,eb as iH,f as Xp,fa as Ile,fb as ode,g as wR,ga as p1,gb as nde,h as lle,ha as RR,hb as DR,i as dle,ia as Fle,ib as rde,j as oH,ja as Rw,jb as hs,k as cle,ka as Ble,kb as MR,l as ple,lb as Aw,m as mle,mb as ade,n as ule,na as Hle,nb as ide,o as xR,ob as Qp,p as nH,pa as Dle,pb as sH,q as fle,qa as Mle,r as ba,ra as Bu,rb as lH,s as hle,sa as It,sb as kc,t as gle,ta as zle,tb as Sc,u as Au,ub as zR,v as ble,va as rH,vb as og,w as xc,wa as Ow,wb as Kr,x as c1,xa as Dn,y as wle,ya as OR,z as Sw,za as m1}from"./chunks/chunk-V7SYE7AE.js";import{A as Bse,B as Hse,C as Dse,D as Mse,E as zse,F as Wse,G as Use,H as Gse,I as $se,J as QB,K as Kse,L as eH,M as gn,N as Vse,O as Li,P as Yse,Q as jse,R as bR,S as ur,T as qse,U as Xse,V as Zse,W as Jse,X as yw,Y as Qse,b as hR,ca as vw,da as Ao,e as d1,ea as Qh,f as xw,fa as ele,ga as kw,h as Hn,ha as Fe,i as wc,ia as tle,j as Ese,ja as tH,k as Pse,ka as ole,l as _se,la as nle,m as Cse,ma as rle,n as Rse,na as ale,o as ZB,oa as ile,p as ml,q as Ose,r as Nse,s as lt,t as Ni,u as Lse,v as Ase,w as JB,x as Ise,y as gR,z as Fse}from"./chunks/chunk-6RKYPO5H.js";import{$ as PQ,A as wQ,B as C2,C as xQ,F as _b,G as cu,H as kQ,I as Hp,L as SQ,M as Fn,N as m_,O as Qt,P as z,Q as H6,S as mu,T as Cb,U as TQ,V as D6,W as EQ,X as Rb,aa as $6,b as $J,ba as bu,c as KJ,ca as ote,da as zb,ea as nte,fa as Qs,g as VJ,ga as yte,ha as He,i as nQ,ia as Zh,j as c_,k as p_,ka as cie,l as rQ,la as rR,m as aQ,ma as pie,n as iQ,na as aR,o as sQ,p as lQ,q as dQ,r as cQ,s as pQ,u as mQ,v as uQ,w as fQ,x as hQ,y as gQ,z as bQ}from"./chunks/chunk-UYU65XIT.js";import{a as Oi,b as doe,c as mc,e as ms,h as yC,j as ha,k as Hie}from"./chunks/chunk-YMJRKOEC.js";import{a as _Q,b as RQ,e as OQ}from"./chunks/chunk-ITZRFN64.js";import{$c as oee,$d as gu,$e as rC,$f as Oe,$g as kre,$h as Yh,$i as en,$j as Ma,$k as Oie,A as su,Ab as s_,Ae as pte,Af as Koe,Ah as Are,Ai as aae,Bb as Ur,Bd as k_,Bf as Voe,Bh as CB,Bi as o1,Bj as yae,Cf as G2,Ch as RB,Ci as n1,Cj as vae,D as he,Dc as W6,De as hte,Df as Yoe,Dh as OB,Di as KC,Dj as kae,E as _i,Eb as Bp,Ec as XQ,Ef as joe,Eh as J2,Ei as iae,Ej as Sae,F as hJ,Fb as _2,Fc as ZQ,Fe as gte,Ff as qoe,Fh as NB,Fi as sae,Fj as Tae,Gb as Hh,Ge as dc,Gh as Q2,Gi as lae,H as gJ,Hb as l_,Hc as y_,Hh as _u,Hi as FB,Hj as Eae,Hk as Tie,Ia as zJ,Ib as d_,Ic as v_,Ie as U,Ih as Ire,Ii as dae,Ij as Pae,Jc as uu,Je as G_,Jg as il,Jh as Fre,Ji as cae,Jj as bc,Ka as WJ,Kc as JQ,Ke as Rn,Kg as ure,Kh as Cu,Ki as pae,Kj as _ae,Kk as Eie,L as bJ,Lc as QQ,Le as Gb,Lg as fre,Lh as HC,Li as r1,Lj as Cae,Me as Rte,Mg as RC,Mh as Bre,Mi as mae,Mj as Rae,N as wJ,Na as Fa,Nd as cee,Ne as $_,Ng as Xb,Nh as Hre,Ni as uae,Nj as a1,O as xJ,Oa as Ba,Od as Zs,Oe as wu,Of as lB,Og as hre,Oh as Ru,Oi as _r,Pa as YJ,Pd as pee,Pe as qt,Pf as dB,Pg as Yp,Ph as Dre,Pi as VC,Pj as Oae,Qa as jJ,Qd as Ob,Qf as $2,Qg as Zb,Qh as e1,Qi as fae,Ra as qJ,Re as vu,Rf as fs,Rg as OC,Rh as LB,Ri as YC,S as XP,Sa as XJ,Sd as S_,Se as q_,Sf as bB,Sg as EB,Sh as AB,Si as hae,Sj as i1,Sk as Pie,T as ZP,Tb as R2,Td as mee,Te as X_,Tf as One,Tg as sl,Th as DC,Tk as no,U as yJ,Ua as ZJ,Ub as u_,Ud as uee,Uf as Nne,Ug as Qn,Uh as Mre,Ui as gae,Uk as uw,V as vJ,Vb as f_,Ve as Wte,Vg as gre,Vh as MC,Vi as ci,Vk as fw,W as Sb,Wa as F6,Wb as ld,Wc as eee,Wd as Cee,We as coe,Wf as qb,Wi as jC,Wk as cl,X as kJ,Xb as Ci,Xd as Ree,Xe as Uh,Xf as EC,Xg as bre,Xh as zC,Xi as bae,Xk as ro,Yb as AQ,Ye as yoe,Yf as le,Yg as wre,Yh as zre,Yi as nw,Yk as _ie,Zb as O2,Zd as Jee,Zf as ne,Zg as NC,Zh as Wre,Zi as Cr,Zj as Nae,Zk as Cie,_ as SJ,_b as ds,_c as tee,_e as voe,_f as Kp,_g as LC,_h as Ure,_j as oe,_k as Rie,a as nc,ac as Xs,ad as nee,ae as Qee,ag as rre,ah as Sre,ai as WC,ak as Lae,al as Nie,b as WZ,ba as JP,bc as IQ,bd as ree,be as Db,bf as koe,bg as PC,bh as Tre,bi as jh,bj as rw,bk as Aae,bl as cR,c as lJ,cc as Dp,ce as Mb,cf as Soe,cg as al,ci as Gre,cj as wae,ck as jp,cl as Lie,d as KP,dc as h_,de as ete,df as Toe,dg as _C,dh as FC,di as $re,dj as qC,dl as Aie,ec as FQ,ee as tte,ef as Eoe,eg as CC,eh as Ere,ej as XC,ek as HB,el as Iie,fc as g_,fe as F_,fg as Vh,fh as PB,fi as Kre,fj as aw,fk as iw,g as u,gc as ua,ge as rte,gg as pd,gh as Jb,gi as Vre,gj as W,gk as Ko,gl as Fie,h as pr,ha as T6,hb as JJ,hc as b_,hd as Ri,hf as Poe,hg as are,hh as Qb,hi as Yre,hj as j,hk as QC,hl as Bie,ic as BQ,id as aee,ig as Vp,ih as BC,ii as jre,ij as Q,ik as Iae,il as VB,j as iu,jb as QJ,jc as HQ,jg as md,jh as Pre,ji as qre,jj as ve,jk as rt,jl as YB,k as ac,ka as o_,kb as eQ,kc as w_,ke as K6,kf as oB,kg as ire,kh as _re,ki as IB,kj as Xe,kk as eR,kl as pR,la as IJ,lf as nB,lg as TB,lh as Cre,li as Xre,lj as Je,lk as DB,m as uJ,ma as Eb,md as iee,mf as _oe,mg as sre,mi as Zre,mk as $r,na as N6,nf as Pr,ng as lre,ni as Jre,nj as ll,oa as FJ,ob as tQ,oe as ate,of as aC,og as dre,oh as ew,oi as UC,oj as xae,pa as L6,pb as B6,pe as ite,pf as Coe,pg as co,pi as ow,pk as Fae,qa as BJ,qe as ste,qh as Rre,qi as Qre,qk as Bae,r as S6,ra as HJ,rb as Pb,rd as see,re as Gr,rf as rB,rg as cre,ri as eae,sa as A6,sb as Fh,se as ps,sg as pre,si as t1,sk as Hae,ta as DJ,tb as qs,te as Wb,tg as mre,th as Ore,ti as qh,tk as Xh,ua as MJ,ue as lte,ui as tae,uj as ZC,uk as sw,va as n_,vb as i_,vc as qQ,vd as lee,vf as Uoe,vh as Nre,vi as oae,vj as dl,vk as Dae,w as fJ,wa as r_,we as dte,wf as lC,wh as tw,wi as GC,wj as JC,wk as Mae,x as sd,xf as Goe,xh as fa,xi as nae,xk as zae,y as kb,yb as yo,ye as cte,yf as $oe,yh as _B,yi as $C,yj as BB,yk as Wae,zb as Bh,zf as us,zh as Lre,zi as rae,zj as gc}from"./chunks/chunk-AKNNDIRL.js";import{d as M6,h as CQ}from"./chunks/chunk-4HZQEMGD.js";import{$b as $X,$c as Ue,$d as yZ,$e as rn,A as zr,Ae as OP,Ah as Ih,Ai as AC,B as La,Ba as EX,Bb as LX,Bd as bZ,Bf as KZ,Bh as t_,Bi as IC,C as _n,Ca as Cn,Cf as T2,Cg as eJ,Ch as js,Ci as er,Db as bP,Dd as wZ,Df as IP,Dg as tJ,Dh as R6,Di as xre,E as Xn,Ea as hP,Ee as ru,Ef as y6,Eg as oJ,Eh as lu,Ei as yre,Fa as PX,Fc as kP,Fd as Zn,Fe as RZ,Ff as FP,Fg as nJ,Fh as O6,Fi as vre,Ga as Eh,Gb as AX,Gc as SP,Gd as si,Ge as OZ,Gf as rc,H as i6,Ha as Ph,Hb as Ch,Hc as p6,Hd as Ae,He as NZ,Hf as Fp,Hh as LJ,Hi as Nu,I as s6,Ib as oc,Ic as oZ,Id as Pi,Ie as LZ,Ih as Tb,Ii as Qae,Jb as cb,Jc as ub,Jd as ot,Je as wb,Jh as AJ,K as hX,Kb as od,Kc as fb,Kg as rJ,Lb as Rh,Lc as nZ,Mb as eu,Mc as rZ,Md as ut,N as gX,Na as _X,Nb as IX,Nc as m6,Oa as CX,Ob as Wr,Oc as aZ,Of as VZ,Og as aJ,Pa as RX,Pb as cr,Pc as hb,Pd as Ge,Pe as AZ,Qb as FX,Qc as iZ,Qf as BP,R as l6,Rb as BX,Rc as x2,Rd as Ia,Sb as HX,Sd as xZ,Ta as OX,Tb as DX,Tc as sZ,Td as pt,Te as k2,U as bX,Ub as wP,Uc as lZ,Ud as gb,Ue as NP,Uf as YZ,Vb as xP,Vc as dZ,Ve as IZ,Vf as HP,Vg as Ys,W as Ne,Wb as MX,Wc as cZ,Wd as EP,We as LP,Wg as pJ,Wh as yQ,X as fe,Xb as zX,Xc as pZ,Xd as PP,Xe as FZ,Xg as VP,Yb as WX,Yc as $e,Yd as ad,Ye as BZ,Z as wX,Zb as UX,Zc as Rt,Ze as Jn,_b as GX,_c as Gs,_e as HZ,aa as xX,ac as w2,ad as gt,b as Er,bc as KX,bd as u6,bg as v6,bh as vb,bi as pu,c as h2,cc as tu,cd as mZ,cf as DZ,ch as mJ,ci as vQ,da as db,dc as VX,dd as ho,de as _P,dh as YP,di as li,e as pP,ea as yX,ec as YX,ee as nu,eh as QP,f as tc,fa as vX,fc as jX,fd as rd,ff as MZ,fh as TJ,g as g2,ga as fP,gb as ii,gd as ou,ge as CP,gf as zZ,gh as E6,hc as nd,hd as Aa,he as y2,hh as P6,ic as pb,id as To,if as Ip,ih as _6,ja as kX,jc as mb,jd as uZ,je as h6,jf as b6,jh as EJ,ji as dd,kc as qX,ke as g6,kf as AP,kh as PJ,ki as fc,l as r6,lc as XX,le as vZ,lf as id,lg as jZ,lh as _J,li as z2,m as lb,mb as Qm,mc as ZX,me as kZ,mf as Nh,mh as CJ,mi as eC,nc as c6,nd as fZ,ne as SZ,nh as RJ,ni as eB,ob as NX,oc as JX,od as Ie,of as S2,og as qZ,oh as C6,oi as poe,p as a6,pb as _h,pe as RP,pf as $s,ph as OJ,qa as SX,qb as b2,qc as yP,qd as Oh,qe as TZ,qf as xb,qi as Kb,r as mP,re as bb,rf as x6,rg as XZ,s as Ap,sa as d6,sg as ZZ,sh as NJ,t as uP,tc as QX,u as ht,ub as Us,ue as EZ,ug as JZ,v as fX,vc as ls,ve as PZ,vf as UZ,w as Kt,wa as TX,wd as TP,we as _Z,x as zs,xc as eZ,xd as f6,xf as GZ,xh as e_,y as jo,yb as gP,yc as vP,yd as hZ,ye as v2,yf as Lh,yg as QZ,z as Lt,za as So,zc as tZ,zd as gZ,ze as CZ,zf as $Z,zg as k6,zh as ma,zi as Z2}from"./chunks/chunk-GZKBN53C.js";import{a as Ws}from"./chunks/chunk-XPDSLIZ3.js";import{a as kte,c as Ste}from"./chunks/chunk-DSTQVJ5G.js";import{a as Pn,b as i8e}from"./chunks/chunk-Y6SLVHK3.js";var wh=Pn(Z0=>{"use strict";var Tj,Y_t=[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];Z0.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};Z0.getSymbolTotalCodewords=function(t){return Y_t[t]};Z0.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Z0.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Tj=t};Z0.isKanjiModeEnabled=function(){return typeof Tj<"u"};Z0.toSJIS=function(t){return Tj(t)}});var u4=Pn(ql=>{"use strict";ql.L={bit:1};ql.M={bit:0};ql.Q={bit:3};ql.H={bit:2};function j_t(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return ql.L;case"m":case"medium":return ql.M;case"q":case"quartile":return ql.Q;case"h":case"high":return ql.H;default:throw new Error("Unknown EC Level: "+e)}}ql.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};ql.from=function(t,o){if(ql.isValid(t))return t;try{return j_t(t)}catch{return o}}});var wBe=Pn((EOn,bBe)=>{"use strict";function gBe(){this.buffer=[],this.length=0}gBe.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++}};bBe.exports=gBe});var yBe=Pn((POn,xBe)=>{"use strict";function WE(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)}WE.prototype.set=function(e,t,o,n){let r=e*this.size+t;this.data[r]=o,n&&(this.reservedBit[r]=!0)};WE.prototype.get=function(e,t){return this.data[e*this.size+t]};WE.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};WE.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};xBe.exports=WE});var vBe=Pn(f4=>{"use strict";var q_t=wh().getSymbolSize;f4.getRowColCoords=function(t){if(t===1)return[];let o=Math.floor(t/7)+2,n=q_t(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()};f4.getPositions=function(t){let o=[],n=f4.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 TBe=Pn(SBe=>{"use strict";var X_t=wh().getSymbolSize,kBe=7;SBe.getPositions=function(t){let o=X_t(t);return[[0,0],[o-kBe,0],[0,o-kBe]]}});var EBe=Pn(on=>{"use strict";on.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var J0={N1:3,N2:3,N3:40,N4:10};on.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};on.from=function(t){return on.isValid(t)?parseInt(t,10):void 0};on.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+=J0.N1+(r-5)),i=c,r=1),c=t.get(d,l),c===s?a++:(a>=5&&(n+=J0.N1+(a-5)),s=c,a=1)}r>=5&&(n+=J0.N1+(r-5)),a>=5&&(n+=J0.N1+(a-5))}return n};on.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*J0.N2};on.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*J0.N3};on.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)*J0.N4};function Z_t(e,t,o){switch(e){case on.Patterns.PATTERN000:return(t+o)%2===0;case on.Patterns.PATTERN001:return t%2===0;case on.Patterns.PATTERN010:return o%3===0;case on.Patterns.PATTERN011:return(t+o)%3===0;case on.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2===0;case on.Patterns.PATTERN101:return t*o%2+t*o%3===0;case on.Patterns.PATTERN110:return(t*o%2+t*o%3)%2===0;case on.Patterns.PATTERN111:return(t*o%3+(t+o)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}on.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,Z_t(t,a,r))};on.getBestMask=function(t,o){let n=Object.keys(on.Patterns).length,r=0,a=1/0;for(let i=0;i<n;i++){o(i),on.applyMask(i,t);let s=on.getPenaltyN1(t)+on.getPenaltyN2(t)+on.getPenaltyN3(t)+on.getPenaltyN4(t);on.applyMask(i,t),s<a&&(a=s,r=i)}return r}});var Pj=Pn(Ej=>{"use strict";var xh=u4(),h4=[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],g4=[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];Ej.getBlocksCount=function(t,o){switch(o){case xh.L:return h4[(t-1)*4+0];case xh.M:return h4[(t-1)*4+1];case xh.Q:return h4[(t-1)*4+2];case xh.H:return h4[(t-1)*4+3];default:return}};Ej.getTotalCodewordsCount=function(t,o){switch(o){case xh.L:return g4[(t-1)*4+0];case xh.M:return g4[(t-1)*4+1];case xh.Q:return g4[(t-1)*4+2];case xh.H:return g4[(t-1)*4+3];default:return}}});var PBe=Pn(w4=>{"use strict";var UE=new Uint8Array(512),b4=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)UE[o]=t,b4[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)UE[o]=UE[o-255]})();w4.log=function(t){if(t<1)throw new Error("log("+t+")");return b4[t]};w4.exp=function(t){return UE[t]};w4.mul=function(t,o){return t===0||o===0?0:UE[b4[t]+b4[o]]}});var _Be=Pn(GE=>{"use strict";var _j=PBe();GE.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]^=_j.mul(t[r],o[a]);return n};GE.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]^=_j.mul(o[i],r);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};GE.generateECPolynomial=function(t){let o=new Uint8Array([1]);for(let n=0;n<t;n++)o=GE.mul(o,new Uint8Array([1,_j.exp(n)]));return o}});var OBe=Pn((AOn,RBe)=>{"use strict";var CBe=_Be();function Cj(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Cj.prototype.initialize=function(t){this.degree=t,this.genPoly=CBe.generateECPolynomial(this.degree)};Cj.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=CBe.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};RBe.exports=Cj});var Rj=Pn(NBe=>{"use strict";NBe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Oj=Pn(qm=>{"use strict";var LBe="[0-9]+",J_t="[A-Z $%*+\\-./:]+",$E="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";$E=$E.replace(/u/g,"\\u");var Q_t="(?:(?![A-Z0-9 $%*+\\-./:]|"+$E+`)(?:.|[\r
2
2
  ]))+`;qm.KANJI=new RegExp($E,"g");qm.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");qm.BYTE=new RegExp(Q_t,"g");qm.NUMERIC=new RegExp(LBe,"g");qm.ALPHANUMERIC=new RegExp(J_t,"g");var eCt=new RegExp("^"+$E+"$"),tCt=new RegExp("^"+LBe+"$"),oCt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");qm.testKanji=function(t){return eCt.test(t)};qm.testNumeric=function(t){return tCt.test(t)};qm.testAlphanumeric=function(t){return oCt.test(t)}});var yh=Pn(kr=>{"use strict";var nCt=Rj(),Nj=Oj();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(!nCt.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 Nj.testNumeric(t)?kr.NUMERIC:Nj.testAlphanumeric(t)?kr.ALPHANUMERIC:Nj.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 rCt(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 rCt(t)}catch{return o}}});var HBe=Pn(Q0=>{"use strict";var x4=wh(),aCt=Pj(),ABe=u4(),vh=yh(),Lj=Rj(),FBe=7973,IBe=x4.getBCHDigit(FBe);function iCt(e,t,o){for(let n=1;n<=40;n++)if(t<=Q0.getCapacity(n,o,e))return n}function BBe(e,t){return vh.getCharCountIndicator(e,t)+4}function sCt(e,t){let o=0;return e.forEach(function(n){let r=BBe(n.mode,t);o+=r+n.getBitsLength()}),o}function lCt(e,t){for(let o=1;o<=40;o++)if(sCt(e,o)<=Q0.getCapacity(o,t,vh.MIXED))return o}Q0.from=function(t,o){return Lj.isValid(t)?parseInt(t,10):o};Q0.getCapacity=function(t,o,n){if(!Lj.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=vh.BYTE);let r=x4.getSymbolTotalCodewords(t),a=aCt.getTotalCodewordsCount(t,o),i=(r-a)*8;if(n===vh.MIXED)return i;let s=i-BBe(n,t);switch(n){case vh.NUMERIC:return Math.floor(s/10*3);case vh.ALPHANUMERIC:return Math.floor(s/11*2);case vh.KANJI:return Math.floor(s/13);case vh.BYTE:default:return Math.floor(s/8)}};Q0.getBestVersionForData=function(t,o){let n,r=ABe.from(o,ABe.M);if(Array.isArray(t)){if(t.length>1)return lCt(t,r);if(t.length===0)return 1;n=t[0]}else n=t;return iCt(n.mode,n.getLength(),r)};Q0.getEncodedBits=function(t){if(!Lj.isValid(t)||t<7)throw new Error("Invalid QR Code version");let o=t<<12;for(;x4.getBCHDigit(o)-IBe>=0;)o^=FBe<<x4.getBCHDigit(o)-IBe;return t<<12|o}});var WBe=Pn(zBe=>{"use strict";var Aj=wh(),MBe=1335,dCt=21522,DBe=Aj.getBCHDigit(MBe);zBe.getEncodedBits=function(t,o){let n=t.bit<<3|o,r=n<<10;for(;Aj.getBCHDigit(r)-DBe>=0;)r^=MBe<<Aj.getBCHDigit(r)-DBe;return(n<<10|r)^dCt}});var GBe=Pn((MOn,UBe)=>{"use strict";var cCt=yh();function Yv(e){this.mode=cCt.NUMERIC,this.data=e.toString()}Yv.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};Yv.prototype.getLength=function(){return this.data.length};Yv.prototype.getBitsLength=function(){return Yv.getBitsLength(this.data.length)};Yv.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))};UBe.exports=Yv});var KBe=Pn((zOn,$Be)=>{"use strict";var pCt=yh(),Ij=["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 jv(e){this.mode=pCt.ALPHANUMERIC,this.data=e}jv.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};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;for(o=0;o+2<=this.data.length;o+=2){let n=Ij.indexOf(this.data[o])*45;n+=Ij.indexOf(this.data[o+1]),t.put(n,11)}this.data.length%2&&t.put(Ij.indexOf(this.data[o]),6)};$Be.exports=jv});var YBe=Pn((WOn,VBe)=>{"use strict";var mCt=yh();function qv(e){this.mode=mCt.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}qv.getBitsLength=function(t){return t*8};qv.prototype.getLength=function(){return this.data.length};qv.prototype.getBitsLength=function(){return qv.getBitsLength(this.data.length)};qv.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)};VBe.exports=qv});var qBe=Pn((UOn,jBe)=>{"use strict";var uCt=yh(),fCt=wh();function Xv(e){this.mode=uCt.KANJI,this.data=e}Xv.getBitsLength=function(t){return t*13};Xv.prototype.getLength=function(){return this.data.length};Xv.prototype.getBitsLength=function(){return Xv.getBitsLength(this.data.length)};Xv.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let o=fCt.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)}};jBe.exports=Xv});var XBe=Pn((GOn,Fj)=>{"use strict";var KE={single_source_shortest_paths:function(e,t,o){var n={},r={};r[t]=0;var a=KE.PriorityQueue.make();a.push(t,0);for(var i,s,l,d,c,p,m,f,g;!a.empty();){i=a.pop(),s=i.value,d=i.cost,c=e[s]||{};for(l in c)c.hasOwnProperty(l)&&(p=c[l],m=d+p,f=r[l],g=typeof r[l]>"u",(g||f>m)&&(r[l]=m,a.push(l,m),n[l]=s))}if(typeof o<"u"&&typeof r[o]>"u"){var h=["Could not find a path from ",t," to ",o,"."].join("");throw new Error(h)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var o=[],n=t,r;n;)o.push(n),r=e[n],n=e[n];return o.reverse(),o},find_path:function(e,t,o){var n=KE.single_source_shortest_paths(e,t,o);return KE.extract_shortest_path_from_predecessor_list(n,o)},PriorityQueue:{make:function(e){var t=KE.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 Fj<"u"&&(Fj.exports=KE)});var rHe=Pn(Zv=>{"use strict";var Oo=yh(),QBe=GBe(),eHe=KBe(),tHe=YBe(),oHe=qBe(),VE=Oj(),y4=wh(),hCt=XBe();function ZBe(e){return unescape(encodeURIComponent(e)).length}function YE(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 nHe(e){let t=YE(VE.NUMERIC,Oo.NUMERIC,e),o=YE(VE.ALPHANUMERIC,Oo.ALPHANUMERIC,e),n,r;return y4.isKanjiModeEnabled()?(n=YE(VE.BYTE,Oo.BYTE,e),r=YE(VE.KANJI,Oo.KANJI,e)):(n=YE(VE.BYTE_KANJI,Oo.BYTE,e),r=[]),t.concat(o,n,r).sort(function(i,s){return i.index-s.index}).map(function(i){return{data:i.data,mode:i.mode,length:i.length}})}function Bj(e,t){switch(t){case Oo.NUMERIC:return QBe.getBitsLength(e);case Oo.ALPHANUMERIC:return eHe.getBitsLength(e);case Oo.KANJI:return oHe.getBitsLength(e);case Oo.BYTE:return tHe.getBitsLength(e)}}function gCt(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 bCt(e){let t=[];for(let o=0;o<e.length;o++){let n=e[o];switch(n.mode){case Oo.NUMERIC:t.push([n,{data:n.data,mode:Oo.ALPHANUMERIC,length:n.length},{data:n.data,mode:Oo.BYTE,length:n.length}]);break;case Oo.ALPHANUMERIC:t.push([n,{data:n.data,mode:Oo.BYTE,length:n.length}]);break;case Oo.KANJI:t.push([n,{data:n.data,mode:Oo.BYTE,length:ZBe(n.data)}]);break;case Oo.BYTE:t.push([{data:n.data,mode:Oo.BYTE,length:ZBe(n.data)}])}}return t}function wCt(e,t){let o={},n={start:{}},r=["start"];for(let a=0;a<e.length;a++){let i=e[a],s=[];for(let l=0;l<i.length;l++){let d=i[l],c=""+a+l;s.push(c),o[c]={node:d,lastCount:0},n[c]={};for(let p=0;p<r.length;p++){let m=r[p];o[m]&&o[m].node.mode===d.mode?(n[m][c]=Bj(o[m].lastCount+d.length,d.mode)-Bj(o[m].lastCount,d.mode),o[m].lastCount+=d.length):(o[m]&&(o[m].lastCount=d.length),n[m][c]=Bj(d.length,d.mode)+4+Oo.getCharCountIndicator(d.mode,t))}}r=s}for(let a=0;a<r.length;a++)n[r[a]].end=0;return{map:n,table:o}}function JBe(e,t){let o,n=Oo.getBestModeForData(e);if(o=Oo.from(t,n),o!==Oo.BYTE&&o.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+Oo.toString(o)+`.
4
4
  Suggested mode is: `+Oo.toString(n));switch(o===Oo.KANJI&&!y4.isKanjiModeEnabled()&&(o=Oo.BYTE),o){case Oo.NUMERIC:return new QBe(e);case Oo.ALPHANUMERIC:return new eHe(e);case Oo.KANJI:return new oHe(e);case Oo.BYTE:return new tHe(e)}}Zv.fromArray=function(t){return t.reduce(function(o,n){return typeof n=="string"?o.push(JBe(n,null)):n.data&&o.push(JBe(n.data,n.mode)),o},[])};Zv.fromString=function(t,o){let n=nHe(t,y4.isKanjiModeEnabled()),r=bCt(n),a=wCt(r,o),i=hCt.find_path(a.map,"start","end"),s=[];for(let l=1;l<i.length-1;l++)s.push(a.table[i[l]].node);return Zv.fromArray(gCt(s))};Zv.rawSplit=function(t){return Zv.fromArray(nHe(t,y4.isKanjiModeEnabled()))}});var iHe=Pn(aHe=>{"use strict";var k4=wh(),Hj=u4(),xCt=wBe(),yCt=yBe(),vCt=vBe(),kCt=TBe(),zj=EBe(),Wj=Pj(),SCt=OBe(),v4=HBe(),TCt=WBe(),ECt=yh(),Dj=rHe();function PCt(e,t){let o=e.size,n=kCt.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 _Ct(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 CCt(e,t){let o=vCt.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 RCt(e,t){let o=e.size,n=v4.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 Mj(e,t,o){let n=e.size,r=TCt.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 OCt(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 NCt(e,t,o){let n=new xCt;o.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),ECt.getCharCountIndicator(l.mode,e)),l.write(n)});let r=k4.getSymbolTotalCodewords(e),a=Wj.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 LCt(n,e,t)}function LCt(e,t,o){let n=k4.getSymbolTotalCodewords(t),r=Wj.getTotalCodewordsCount(t,o),a=n-r,i=Wj.getBlocksCount(t,o),s=n%i,l=i-s,d=Math.floor(n/i),c=Math.floor(a/i),p=c+1,m=d-c,f=new SCt(m),g=0,h=new Array(i),b=new Array(i),w=0,x=new Uint8Array(e.buffer);for(let E=0;E<i;E++){let T=E<l?c:p;h[E]=x.slice(g,g+T),b[E]=f.encode(h[E]),g+=T,w=Math.max(w,T)}let y=new Uint8Array(n),S=0,k,v;for(k=0;k<w;k++)for(v=0;v<i;v++)k<h[v].length&&(y[S++]=h[v][k]);for(k=0;k<m;k++)for(v=0;v<i;v++)y[S++]=b[v][k];return y}function ACt(e,t,o,n){let r;if(Array.isArray(e))r=Dj.fromArray(e);else if(typeof e=="string"){let d=t;if(!d){let c=Dj.rawSplit(e);d=v4.getBestVersionForData(c,o)}r=Dj.fromString(e,d||40)}else throw new Error("Invalid data");let a=v4.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
  ${y?` @keyframes storefront-cart-slide-left { from { transform: translateX(-40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
13
- `:""}`}),d]})]})}let g=y=>{!m||!Rhe(e,!1)||y.target===y.currentTarget&&p()},h=e.height==="full",b=e.fullWidth||h,w=uKe(e),x=aM("div",{ref:c,tabIndex:-1,"data-popup-panel":"",className:"relative flex flex-col bg-bg text-fg outline-none",style:{width:e.fullWidth?"100%":`min(${e.width}px, 100%)`,height:h?"100%":void 0,maxHeight:e.fullWidth&&!h||w.place==="outside"?`calc(100% - ${iM}px)`:"100%",borderRadius:b?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[w.place!=="none"?Og("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:-mKe,right:0}:{top:12,right:12},children:"\xD7"}):null,w.until?Og("style",{children:`@container popup-frame (min-width: ${w.until+1}px){[data-popup-close-until="${w.until}"]{display:none}}`}):null,Og("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return Og("div",{role:a||r?"dialog":"region","aria-modal":m?!0:void 0,"aria-label":s,"data-popup-frame":r?"inline":"live",onClick:g,className:r?"relative flex min-h-[100vh] w-full":"fixed inset-0 z-[90] flex",style:{...pKe[e.placement],background:Che(e.tintColor,e.tintOpacity),padding:b?0:w.place==="outside"&&e.placement.startsWith("top")?`${24+iM}px 24px 24px`:24,...w.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:x})}var hKe=25.4,uk=400,RO=152,gKe=58,Ohe=RO*Math.cos(gKe*Math.PI/180),bKe=14,wKe=uk/2,xKe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function Lhe(e){let t=xc(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:xKe}function Ahe(e){let t=e.rimDiameter*hKe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=RO*(e.sectionWidth/o),r=t/o;return{cy:wKe,rx:Ohe,ry:RO,cxf:uk/2-n/2-bKe,dx:n,rimRx:Ohe*r,rimRy:RO*r}}var io=e=>e.toFixed(1);function OO(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${io(r)} ${io(a)} A${io(e.rx)} ${io(e.ry)} 0 0 ${o} ${io(r)} ${io(i)}`}function dM(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${io(n)} ${io(a)} L${io(r)} ${io(a)} A${io(e.rx)} ${io(e.ry)} 0 0 1 ${io(r)} ${io(i)} L${io(n)} ${io(i)} A${io(e.rx)} ${io(e.ry)} 0 0 0 ${io(n)} ${io(a)} Z`}function CO(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 Ihe(e,t,o,n,r){let[a,i]=CO(e,t,n),[s,l]=CO(e,t,r),[d,c]=CO(e,o,r),[p,m]=CO(e,o,n);return`M${io(a)} ${io(i)} A${io(e.rx)} ${io(e.ry)} 0 0 1 ${io(s)} ${io(l)} L${io(d)} ${io(c)} A${io(e.rx)} ${io(e.ry)} 0 0 0 ${io(p)} ${io(m)} L${io(a)} ${io(i)} Z`}var Nhe=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],yKe={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}}]},vKe=[["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 Fhe(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return Nhe;for(let[o,n]of vKe)if(t.includes(` ${o} `))return yKe[n];return Nhe}var NO="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as kKe}from"react";function Va(e,t=/:/g){let o=kKe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as fk,jsx as Xt,jsxs as Mc}from"react/jsx-runtime";var vs={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},SKe=[.8,.52,.24],Bhe=.4,Hhe=.88,Dhe=.3,Mhe=5,zhe=.3,Whe=.84,TKe=7,go=e=>Math.round(e*10)/10;function cM({size:e,type:t,className:o}){let n=Va("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=Ahe(Lhe(e)),i=dM(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Mc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${uk} ${uk}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[Xt("title",{children:s}),Mc("defs",{children:[Xt(PKe,{id:r}),Xt("clipPath",{id:r.crown,children:Xt("path",{d:i})})]}),Xt("ellipse",{cx:go(a.cxf+a.dx/2),cy:go(a.cy+a.ry-4),rx:go(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),Xt(_Ke,{g:a,id:r}),Xt(CKe,{g:a,id:r}),Xt("path",{d:i,fill:`url(#${r.tread})`}),Xt("g",{clipPath:`url(#${r.crown})`,children:Fhe(t).map(l=>Xt(EKe,{g:a,column:l},l.f[0]))}),Xt("path",{d:OO(a,0,0,!0),stroke:"currentColor",strokeOpacity:vs.shoulder,strokeWidth:1.2}),Xt("path",{d:OO(a,1,1),stroke:"currentColor",strokeOpacity:vs.silhouette,strokeWidth:1.4})]})}function EKe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Mc(fk,{children:[Xt("path",{d:dM(e,o,n),fill:"currentColor",fillOpacity:vs.rib}),Xt("path",{d:OO(e,o,1),stroke:"currentColor",strokeOpacity:vs.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 Xt(fk,{children:l.map(([d,c])=>Xt("path",{d:Ihe(e,o,n,d,c),fill:"currentColor",fillOpacity:vs.rib,stroke:"currentColor",strokeOpacity:vs.grooveWall,strokeWidth:1},d))})}function PKe({id:e}){return Mc(fk,{children:[Mc("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[Xt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),Xt("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),Xt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),Xt("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),Xt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),Mc("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[Xt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),Xt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),Xt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),Mc("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[Xt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),Xt("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),Xt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),Mc("radialGradient",{id:e.shadow,children:[Xt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),Xt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function _Ke({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 Mc(fk,{children:[Xt("ellipse",{cx:go(e.cxf),cy:go(e.cy),rx:go(e.rx),ry:go(e.ry),fill:`url(#${t.wall})`}),SKe.map((a,i)=>{let s=n(a);return Xt("ellipse",{cx:go(e.cxf),cy:go(e.cy),rx:go(e.rx*s),ry:go(e.ry*s),stroke:"currentColor",strokeOpacity:vs.relief[i],strokeWidth:1},a)}),Xt("ellipse",{cx:go(e.cxf),cy:go(e.cy),rx:go(e.rx*n(Bhe)),ry:go(e.ry*n(Bhe)),stroke:"currentColor",strokeOpacity:vs.lettering,strokeWidth:go(r)})]})}function CKe({g:e,id:t}){let o=Array.from({length:Mhe},(n,r)=>{let a=(r*(360/Mhe)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*zhe*Math.cos(a),y1:e.cy+e.rimRy*zhe*Math.sin(a),x2:e.cxf+e.rimRx*Whe*Math.cos(a),y2:e.cy+e.rimRy*Whe*Math.sin(a)}});return Mc(fk,{children:[Xt("ellipse",{cx:go(e.cxf),cy:go(e.cy),rx:go(e.rimRx),ry:go(e.rimRy),fill:`url(#${t.rim})`}),Xt("ellipse",{cx:go(e.cxf),cy:go(e.cy),rx:go(e.rimRx*Hhe),ry:go(e.rimRy*Hhe),fill:"currentColor",fillOpacity:vs.dishFill,stroke:"currentColor",strokeOpacity:vs.dishEdge,strokeWidth:1}),o.map((n,r)=>Xt("line",{x1:go(n.x1),y1:go(n.y1),x2:go(n.x2),y2:go(n.y2),stroke:"currentColor",strokeOpacity:vs.spoke,strokeWidth:TKe,strokeLinecap:"round"},r)),Xt("ellipse",{cx:go(e.cxf),cy:go(e.cy),rx:go(e.rimRx*Dhe),ry:go(e.rimRy*Dhe),fill:"currentColor",fillOpacity:vs.hubFill,stroke:"currentColor",strokeOpacity:vs.hubEdge,strokeWidth:1})]})}import{jsx as pM}from"react/jsx-runtime";function um({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return pM("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:pM(ao,{label:t||"Tyre",src:ms(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:pM(cM,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as hk}from"react/jsx-runtime";function RKe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function mM({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??tde;return hk("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:SR(e)?hk(um,{image:o?.coverImage,size:e.size,type:RKe(o),sizes:"96px",className:"h-full w-full"}):a?.src?hk(Qs,{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?hk("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:hk(tg,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as uM,jsxs as NKe}from"react/jsx-runtime";var Uhe={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function Ghe(e,t){return Math.min(nH,Math.max(1,e+t))}var $he="disabled:cursor-not-allowed disabled:opacity-40",OKe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${Uhe.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${$he}`,value:`w-11 text-center font-mono ${Uhe.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 ${$he}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function gk({value:e,onChange:t,size:o}){let n=OKe[o];return NKe("div",{className:n.frame,children:[uM("button",{type:"button",onClick:()=>t(Ghe(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),uM("span",{className:n.value,children:e}),uM("button",{type:"button",onClick:()=>t(Ghe(e,1)),disabled:e>=nH,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as zc,jsx as Ye,jsxs as so}from"react/jsx-runtime";function Khe({content:e,closeRef:t}){let{close:o,items:n}=Dn(),r=t;return so("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:[so("div",{className:"flex items-center justify-between",children:[so("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"})]}),so("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:Bre(e,n.length)})]})}function Vhe({content:e}){let{totals:t}=Dn(),{activeCountry:o}=It(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ye(zc,{children:so("div",{className:`grid flex-shrink-0 ${LKe[r-1]} gap-px border-b border-line bg-line`,children:[Ye(fM,{label:"Items",value:so(zc,{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(fM,{label:"Lead time",value:e.leadTimeValue}):null,n?Ye(fM,{label:"Ships to",value:n}):null]})})}function Yhe({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=Dn();return Ye(zc,{children:o.length===0?Ye(HKe,{content:e}):o.map(a=>Ye(AKe,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function jhe(){let{items:e,totals:t,bundles:o}=Dn(),{formatMoney:n}=It(),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(zc,{children:i.length>0&&so("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:[so("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(IKe,{href:`/bundles/${s.slug}`,title:s.name,sub:FKe(s,t.currency,n)},s.slug))})]})})}function qhe(){return Ye(zc,{children:Ye("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ye(rde,{})})})}function Xhe({content:e}){return Ye(zc,{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(BKe,{children:t},t))})})}function Zhe(){let{totals:e,coupon:t}=Dn(),{formatMoney:o}=It();return Ye(zc,{children:so("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ye(df,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ye(df,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:so("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),(e.discount>0||e.deliverySaving>0)&&t?.valid&&Ye(df,{label:`Coupon \xB7 ${t.code}`,value:Ye("span",{style:{color:"var(--green)"},children:Dle(e,n=>o(n,e.currency))})}),t?.deferred&&Ye(df,{label:`Coupon \xB7 ${t.code}`,value:sle}),t?.valid&&t.effects?.gift&&Ye(df,{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:eg})}),Ye(df,{label:"Shipping",value:e.shippingStatus==="free"?Ye("span",{style:{color:"var(--green)"},children:eg}):Mle(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ye(df,{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(df,{label:e.tax.name,value:Hle}):null),so("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[so("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?Rle:o(e.grand,e.currency)})]})]})})}function Jhe(){let{items:e,close:t}=Dn();return Ye(zc,{children:so("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[so(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 LKe=["grid-cols-1","grid-cols-2","grid-cols-3"];function fM({label:e,value:t}){return so("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 AKe({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=Dn(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=It();return so(zc,{children:[so("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(mM,{line:e,catalog:r,tyre:t}),so("div",{className:"flex min-w-0 flex-col gap-2",children:[so("div",{className:"flex items-start justify-between gap-3",children:[so("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:[so("span",{"data-cart-line-no":"",children:["N\xB0 ",e.positionNo," \xB7 "]}),e.process==="FusionForge\xAE"?so(zc,{children:["FusionForge",Ye(M_,{})]}):e.process]}),Ye("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:rH(e,s)===null?Iu:l(rH(e,s),s)})]}),so("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&&so("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&&so("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"]})]}),so("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ye(gk,{value:e.qty,onChange:n,size:"small"}),so("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&&so("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"}),so("span",{children:["Verified for your ",Ye("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function IKe({title:e,sub:t,href:o}){return so(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:[so("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 FKe(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 BKe({children:e}){return Ye("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function df({label:e,value:t}){return so("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 HKe({content:e}){return so("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}),so(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 cf,jsxs as Qhe}from"react/jsx-runtime";var zKe=Ru(void 0),WKe="Your cart";function bk({content:e=HC,look:t=zKe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=Dn(),s=MKe(null),l=_he(a.filter(SR).map(d=>d.slug));return DKe(()=>{i(t.autoOpen)},[t.autoOpen,i]),Qhe(Gi,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:WKe,children:[cf(Khe,{content:e,closeRef:s}),cf(Vhe,{content:e}),Qhe("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[cf(Yhe,{content:e,tyres:l}),cf(jhe,{}),cf(qhe,{}),cf(Xhe,{content:e})]}),cf(Zhe,{}),cf(Jhe,{})]})}import UKe from"efficient-easel/screen/components/UiIcon";import{Fragment as $Ke,jsx as Ng,jsxs as LO}from"react/jsx-runtime";var GKe=Yw(()=>import("./chunks/EditorPreviewCheckout-K5CYDY5Q.js"),{ssr:!1});function hM(){let{chromePlaceholder:e,themeFromDocument:t}=er(),{surface:o}=fie();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?LO($Ke,{children:[Ng(GKe,{}),Ng(ege,{surface:o})]}):Ng(Bu,{children:LO(Ow,{preview:!0,children:[Ng(bk,{}),Ng(ege,{surface:o})]})})}function ege({surface:e}){let{label:t,href:o}=Bfe(e);return LO("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:[Ng("span",{style:{whiteSpace:"nowrap"},children:u("{name} \xB7 preview only",{name:u(t)})}),LO("a",{className:"rounded-(--radius-control) px-3 py-1",href:o,target:"_blank",rel:"noopener noreferrer",style:{pointerEvents:"auto",flex:"none",display:"inline-flex",alignItems:"center",gap:5,color:"#fff",background:"#2563eb",textDecoration:"none"},children:[u("Open live"),Ng(UKe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as KKe,CursorClickIcon as VKe,EyeIcon as YKe,FullWidthIcon as jKe,HeightIcon as qKe,OpacityIcon as nge,PlacementIcon as XKe,WidthIcon as ZKe}from"efficient-easel/icons";import{group as kx}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as JKe}from"efficient-easel/screen/lib/document/device-fields";import{jsx as fm}from"react/jsx-runtime";var QKe={label:"Inside",value:"inside"},eVe={label:"None",value:"none"};function gM(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,JKe("desktop",o)]))}function tge(e,t){return{_gDesign:kx("Color"),tintColor:Ma("Tint color",e),tintOpacity:le("Tint opacity",fm(nge,{}),Q2.min,Q2.max,5,t,"%")}}function oge(e,t){return{_gBehavior:kx("Behavior"),outsideClick:oe("Outside click",e,fm(VKe,{})),...t}}var tVe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function bM(e){return le("Width",fm(ZKe,{}),NB.min,NB.max,4,e,"px")}function rge(e){if(e===Cu){let o=Ru(void 0);return gM({_gSize:kx("Width"),width:bM(o.width),_gPosition:kx("Placement"),placement:ne("Placement",fm(XKe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...tge(o.tintColor,o.tintOpacity),...oge(o.outsideClick,{autoOpen:oe("Auto open",o.autoOpen,fm(YKe,{}))})})}let t=_u;return Ae(gM({_gSize:kx("Width"),width:bM(t.width),height:ne("Height",fm(qKe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:kx("Placement"),placement:pd("Placement",{fallback:t.placement}),fullWidth:oe("Full width",t.fullWidth,fm(jKe,{})),...tge(t.tintColor,t.tintOpacity),...oge(t.outsideClick,{closeButton:ne("Close button",fm(KKe,{}),[QKe,{label:"Outside",value:"outside"},eVe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],tVe])}function age(e,t){return gM({menuPanelWidth:bM(e),menuPanelTintColor:Ma("Tint color",_u.tintColor),menuPanelTintOpacity:le("Tint opacity",fm(nge,{}),Q2.min,Q2.max,5,t,"%")})}import{PictureTiles as oVe}from"efficient-shell/ui";import{SettingsField as nVe}from"efficient-easel/panel";import{GridIcon as rVe}from"efficient-easel/icons";import{jsx as Lg}from"react/jsx-runtime";function aVe({layout:e}){return Lg("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?Lg("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):Lg("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var ige={type:"custom",render:({value:e,onChange:t})=>{let o=DC({layout:e}).layout,n=LB.find(r=>r.value===o);return Lg(nVe,{label:u(AB),icon:Lg(rVe,{}),value:n?u(n.label):void 0,children:Lg(oVe,{className:"sf-gallery-layouts",label:u(AB),value:o,onChange:t,options:LB.map(r=>({value:r.value,label:u(r.label),picture:Lg(aVe,{layout:r.value})}))})})}};import{CategoryIcon as JRt,CheckIcon as QRt,ClockIcon as lq,ColumnsIcon as e5t,DirectionIcon as t5t,EyeIcon as o5t,ListIcon as n5t,PageIcon as r5t,PlacementIcon as a5t,ScrollPointIcon as i5t,TabsIcon as s5t,TriggerIcon as l5t,CaseIcon as d5t}from"efficient-easel/icons";import{deviceField as sDe}from"efficient-easel/screen/lib/document/device-fields";import{group as Zl,phoneTwinFields as c5t}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as iVe}from"efficient-easel/screen/lib/document/box-fields";function Sx(e){let t=iVe(e);return{...t,render:o=>t.render({...o,value:eu(o.value)??o.value})}}import{useContext as lVe,useEffect as lge,useRef as IO,useState as FO}from"react";import{Button as BO}from"efficient-shell/ui";import{ScreenDocumentContext as dVe}from"efficient-easel/screen/components/ScreenDocumentContext";var wk=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},AO=null,wM=null,xM=null;function sVe(){AO=null,wM=null,xM=null}function sge(e=!1){let t=fa(),o=Hn();return(e||!AO||wM===null&&t!==null||xM!==o)&&(wM=t,xM=o,AO=(t?Fe.listForms(t,{siteId:o}):Promise.reject(new wk)).catch(n=>{throw sVe(),n instanceof wk?n:new wk(n)})),AO}import{useEaselHost as cVe}from"efficient-easel/screen/lib/host";import{InertHint as yM}from"efficient-easel/panel";import{jsx as gr,jsxs as Wc}from"react/jsx-runtime";var dge="__create-a-new-form__";function pVe({value:e,forms:t,loadFailed:o,emptyLabel:n}){let r=t??[],a=e?r.some(p=>p.slug===e):!0,i=t===null&&!o,s={value:"",label:i?u("Loading\u2026"):o?u("Forms couldn\u2019t be loaded"):n===void 0?u("No form yet"):u(n)},l=e&&!a?[{value:e,label:i||o?e:u("{slug} \u2014 no form with this name",{slug:e})}]:[],d=r.map(p=>({value:p.slug,label:p.is_active?p.title:u("{title} (switched off)",{title:p.title})})),c=i?[]:[{value:dge,label:u("Create a new form")}];return[s,...l,...d,...c]}function mVe(e){return e===dge?{action:"create"}:{action:"store",slug:e}}function uVe({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 fVe(e){let t=[u("Goes to {place}",{place:u("Storefront \u2192 Forms")})],o=(e.notify_email??"").trim();return o&&t.push(u("Emails a copy to {email}",{email:o})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?u("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):u("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?u("Creates a wholesale account"):u("Creates a retail account")),t}function vM({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=cVe(),a=lVe(dVe),i=a?a.capabilities.hasForms:!0,[s,l]=FO(null),[d,c]=FO(!1),[p,m]=FO(!1),[f,g]=FO(!1),h=IO(!0),b=IO(e);b.current=e;let w=IO(t);w.current=t;let x=IO(null),y=(P=!1)=>sge(P).then(I=>{if(h.current){l(I),c(!1);let F=uVe({value:b.current,pickedId:x.current,forms:I});F&&w.current(F)}return I},()=>(h.current&&c(!0),[]));lge(()=>(h.current=!0,i&&y(),()=>{h.current=!1}),[i]),lge(()=>i?$R(()=>{y(!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 v=!!e&&!k&&s!==null&&!d,E=pVe({value:e,forms:s,loadFailed:d,emptyLabel:n}),T=async()=>{m(!0),g(!1);try{let P=await Sde(r,{mode:"create"}),I=await y(!0);if(!h.current)return;if(P.status==="timeout"){g(!0);return}if(P.status!=="saved")return;let{form:F}=P;F.slug!==b.current&&w.current(F.slug),I.some(H=>H.id===F.id)||y(!0)}finally{h.current&&m(!1)}},_=P=>{let I=mVe(P);I.action==="create"?T():(g(!1),t(I.slug))};return i?Wc("div",{className:"sf-formpicker",children:[gr(tw,{label:o,options:E,fallback:"",value:e??"",onChange:_,placeholder:u("Search forms\u2026")}),f&&gr("p",{className:"sf-formsummary-warn",children:u("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),k?Wc("div",{className:"sf-blogsource sf-formsummary",children:[Wc("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,I)=>gr("li",{children:P.label},P.key||`${P.label}-${I}`))}):gr(yM,{children:u("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),Wc("div",{children:[gr("div",{className:"sf-formsummary-caption",children:u("Where the answers go")}),gr("ul",{className:"sf-formsummary-fields",children:fVe(k).map(P=>gr("li",{children:P},P))})]}),!k.is_active&&gr("p",{className:"sf-formsummary-warn",children:u("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:u("Storefront \u2192 Forms")})}),Wc("div",{className:"sf-formsummary-actions",children:[gr(BO,{variant:"secondary",size:"md",onClick:()=>kde(r,k.id),children:u("Edit form \u270E")}),gr(BO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:u("New form +")})]}),gr("p",{className:"es-field-hint",children:u("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:u("Storefront \u2192 Forms")})})]}):Wc("div",{className:"sf-blogsource sf-formsummary",children:[d?Wc(yM,{children:[u("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):v&&gr("p",{className:"sf-formsummary-warn",children:u("This section points at \u201C{slug}\u201D, and this website has no form with that name. Pick one from the list above, or leave it \u2014 nothing has been changed.",{slug:e??""})}),Wc("div",{className:"sf-formsummary-actions",children:[d&&gr(BO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{y(!0)},children:u("Try again")}),gr(BO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:u("New form +")})]}),!d&&gr("p",{className:"es-field-hint",children:u("Pick a form to show here, or build a new one. Forms are made once in {place} and can be shown on any number of pages.",{place:u("Storefront \u2192 Forms")})})]})]}):gr("div",{className:"sf-formpicker",children:gr("div",{className:"sf-blogsource sf-formsummary",children:Wc("div",{children:[gr("div",{className:"sf-formsummary-caption",children:u(o)}),Wc(yM,{children:[u("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as hVe}from"react/jsx-runtime";function Uc(e,t){return{type:"custom",render:({value:o,onChange:n})=>hVe(vM,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{createContext as gVe,useContext as bVe}from"react";import{jsx as Gc,jsxs as kM}from"react/jsx-runtime";function SM(e){return mc(e)??void 0}var TM=gVe({}),cge=3;function EM({tag:e,name:t,desc:o,href:n,imageSrc:r,imageLabel:a,price:i}){let s=ge(),{showPrice:l,cardStyle:d,partStyles:c,editing:p,ownerId:m,Template:f}=bVe(TM),g=d==="bordered"?" border border-line":d==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",h=SM(r),b=Fn();if(f){let y={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:h??"",tag:e??"",href:n||"#"};return b.scope(Gc("div",{className:Qt(`block w-full min-w-0 ${kb}${s?` ${su}`:""}`,b.className),...b.attrs,children:Gc(Ke,{ownerId:m??"Collections",ownerType:"Collections",Template:f,rows:[y],fallback:null,children:S=>S})}))}let w=y=>p?{[gb]:y}:{},x=y=>EP(c?.[ad(y)]?.role,Jh[y],fP);return b.scope(kM(He,{href:n||"#",className:Qt(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${g}`,b.className),...b.attrs,children:[Gc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${dme}`,children:Gc(ao,{label:a||"collection.jpg",src:h})}),Gc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${mme} max-view-wide:hidden`,style:{transition:"none"}}),kM("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&&Gc("span",{...w("tag"),style:x("tag"),className:`font-mono ${qp.tag} uppercase tracking-[0.25em] opacity-70`,children:N(e)}),t&&Gc("h3",{...w("name"),style:x("name"),className:`font-heading2 ${qp.name} font-medium leading-none tracking-[-0.03em] ${qp.namePhone}`,children:typeof t=="string"?re(t,!1):t}),o&&Dt(o).map((y,S)=>Gc("p",{...w("body"),style:x("body"),className:`max-w-[420px] ${qp.body} leading-[1.5] opacity-80`,children:N(y)},S)),l&&i&&Gc("span",{...w("price"),style:x("price"),className:`font-mono ${qp.price} tracking-[0.05em] text-accent`,children:N(i)}),kM("span",{...w("link"),style:x("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${qp.link} uppercase tracking-[0.2em]`,children:["Explore",Gc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as vge,useCallback as HVe,useContext as yge,useEffect as kge,useRef as DVe,useState as NM}from"react";import{slugify as MVe}from"efficient-shell/format";import{useState as vVe}from"react";import{jsx as PM,Fragment as wVe}from"react/jsx-runtime";function yl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=wte(e),a=xte(e),i=t?a:r,s=bte(i);return o&&!i?PM("span",{[uu]:e,children:n}):i?PM("span",{ref:s,[oee]:i.stamp,...i.textStyle?{[nee]:i.textStyle}:{},children:n}):PM(wVe,{children:n})}var pge="mosaic",xVe=260,yVe=150;function mge(e){let t=`.${e}.sf-gallery-zone`;return`${t}{grid-auto-rows:${xVe}px}@media (max-width:${o_}px){${t}{grid-auto-rows:${yVe}px}}`}function uge(e){return e>1?`${e} photos`:""}import{jsx as or,jsxs as pf}from"react/jsx-runtime";var _M=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function CM({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:m}){let f=S=>wre(l,d,S),g=S=>p&&c?{[JQ]:c,[QQ]:`@${S}`}:{},h=(S,k)=>!p&&c?or(yl,{kind:`@${S}`,shared:!0,children:k}):k,[b,w]=vVe(!1);if(m!=null)return or(kVe,{build:e,count:m,ratio:i,shown:f,keptAttrs:g,kept:h});let x=AJ(s),y=pf("div",{className:["sf-card group relative overflow-hidden bg-surface-2",Ih(i),t?"max-view-wide:hidden":""].join(" "),children:[pf("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:[or(ao,{label:e.imageLabel,src:e.imageSrc}),!o&&or("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),or("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&&or(Qs,{src:e.detailSrc,alt:"",fill:!0,sizes:"(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:b?"none":"block"},onError:()=>w(!0)})}),(e.process||r!=null&&a!=null)&&pf("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&&or("span",{...g("tag"),className:["min-w-0 truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent",f("tag"),"transition-opacity duration-300 ease-out",o||n?"opacity-100":"opacity-0 group-hover:opacity-100 max-view-wide:opacity-100"].join(" "),children:h("tag",vo(e.process))}),r!=null&&a!=null&&or("span",{...g("number"),className:`ml-auto shrink-0 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] ${f("number")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:h("number",_M(r,a))})]}),or("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:pf("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&&or("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] ${f("eyebrow")}`.trim(),children:h("eyebrow",e.car)}),e.wheel&&or("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 ":""}${f("title")}`.trim(),children:h("title",e.wheel)}),e.finish&&or("div",{...g("meta"),className:`mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em] ${f("meta")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:or("span",{children:h("meta",vo(e.finish))})})]})})]});return x?pf("div",{className:t?"max-view-wide:hidden":"",children:[y,pf("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&or("div",{...g("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${f("title")}`.trim(),children:h("title",e.wheel)}),(e.finish||e.car)&&or("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 ${f(e.finish?"meta":"eyebrow")}`.trim(),children:h(e.finish?"meta":"eyebrow",vo(e.finish||e.car))})]})]}):y}function kVe({build:e,count:t,ratio:o,shown:n,keptAttrs:r,kept:a}){let i=uge(t);return pf("div",{className:`sf-card relative overflow-hidden bg-surface-2 ${Ih(o)}`,style:{color:"var(--overlay-fg)"},children:[or("div",{className:"absolute inset-0 flex items-center justify-center",children:or(ao,{label:e.imageLabel,src:e.imageSrc})}),or("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))"}}),i&&or("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:i}),pf("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&&or("div",{...r("title"),className:`text-[length:var(--size-label,11px)] uppercase tracking-[0.16em] opacity-85 ${n("title")}`.trim(),children:a("title",vo(e.wheel))}),e.car&&or("div",{...r("eyebrow"),className:`mt-1 text-lg leading-normal max-view-wide:text-sm ${n("eyebrow")}`.trim(),children:a("eyebrow",e.car)})]})]})}import{createContext as SVe,useCallback as TVe,useContext as EVe,useEffect as PVe,useLayoutEffect as _Ve,useRef as RM,useState as CVe}from"react";import{createPortal as RVe}from"react-dom";import{Fragment as AVe,jsx as xk,jsxs as IVe}from"react/jsx-runtime";var hge="sf-themed-content",OVe=`.${hge}`,fge="sf-section-accent";function NVe(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(fge)&&(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 ${fge}`:"contents",style:o}}function LVe(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 gge=SVe(()=>{});function $c({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=RM(null),l=RM(null),[d,c]=CVe(null);_Ve(()=>{if(!e){c(null);return}let g=s.current;if(!g)return;let h=g.closest(OVe),b=h?.parentElement??g.ownerDocument.body,w=NVe(g,b);c({host:b,theme:h?{...w,className:`${w.className} ${hge}`}:w})},[e]);let p=RM({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let m=e&&d!==null,f=TVe(()=>p.current.onClose(),[]);return Dc({active:m,onDismiss:f,scopeRef:l}),PVe(()=>{if(!m)return;let g=l.current,h=g?.ownerDocument??document,b=h.activeElement;g?.focus();let w=y=>{if(y.key==="ArrowLeft")p.current.onPrev?.();else if(y.key==="ArrowRight")p.current.onNext?.();else if(y.key==="Tab"&&g){let S=LVe(g);if(S.length===0){y.preventDefault(),g.focus();return}let k=S[0],v=S[S.length-1],E=h.activeElement,T=!!E&&g.contains(E)&&E!==g;if(y.shiftKey&&(!T||E===k))y.preventDefault(),v.focus();else if(!y.shiftKey&&(!T||E===v))y.preventDefault(),k.focus();else{y.preventDefault();let _=S.indexOf(E);S[y.shiftKey?_-1:_+1]?.focus()}}},x=h.defaultView??window;return x.addEventListener("keydown",w),()=>{x.removeEventListener("keydown",w),b&&b.isConnected&&b.focus()}},[m]),e?IVe(AVe,{children:[xk("span",{ref:s,hidden:!0}),d&&RVe(xk("div",{className:d.theme.className,style:d.theme.style,children:xk("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 ${lM[8]} ${a}`,style:{background:sM},children:xk(gge.Provider,{value:t,children:i})})}),d.host)]}):null}var HO="color-mix(in oklab, var(--bg) 70%, transparent)";function hm({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=EVe(gge);return xk("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as FVe,useContext as Ag}from"react";var yk=FVe(null);function bge(){let e=Ag(Z2),t=Ag(yk),o=iR();return e?e.socialLinks??cie:t?t.socialLinks:o.links}function mf(){return Ag(yk)?.commerceEnabled??!0}function BVe(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Tx(){return BVe(Ag(yk))}function wge(){let e=Ag(yk),t=er();return e?e.showThemeSwitch??Fp:t.themeSwitchShown??Fp}function xge(){let e=Ag(Z2),t=Ag(yk),o=er();return e?OR({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?OR({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):OR({siteName:o.websiteName?.trim()||Nu})}import{useBrowserLayoutEffect as zVe}from"efficient-shell/hooks";import{Fragment as Ex,jsx as Bt,jsxs as Un}from"react/jsx-runtime";var WVe="(max-width: 1100px) 100vw, min(59vw, 1050px)",vk=vge({}),Sge=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],AM=vge(null),uf="data-gallery-grid",LM="data-gallery-tile";function UVe(e,t){let[o,n]=NM(null);return kge(()=>{let r=e.current,a=r?.closest(`[${uf}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${LM}]`)),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 _d={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},GVe=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),Tge=Array.from({length:6},GVe);function $Ve(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=MVe(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 Ig({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let i=ge(),{galleryHref:s="/gallery",submitHref:l="/contact",previewHover:d,display:c,displayPhone:p,styleOwner:m,photosOnly:f=!1,wordsAtRest:g=!1,Template:h,ownerId:b,sets:w=!1}=yge(vk),x=$Ve(a),S=mf()&&!f,k=!S&&!KVe(x),v=x.photos??(x.imageSrc?[x.imageSrc]:[]),E=DVe(null),T=HVe(ae=>{E.current=ae},[]),_=UVe(E,e),P=yge(AM),I=P?.report,F=r?.id,H=r?.tag??"",B=r?.name??"";zVe(()=>{if(!I||!F)return;let ae={id:F,tag:H,name:B};return I(ae),()=>I(ae,!0)},[I,F,H,B]);let L=(F?P?.positionOf(F):null)??_,A=e&&(!!t||!!d),[G,K]=NM(!1),[Y,Z]=NM(0),$=!!F&&!!P&&P.walkCount>1,q=ae=>{let Te=Y+ae;if($&&(Te<0||Te>=v.length)){K(!1),P.walk(F,ae);return}Z((Te+v.length)%v.length)},ee=()=>q(-1),O=()=>q(1),R=v.length>1||$,V=P?.opening;kge(()=>{!V||V.id!==F||(Z(V.at==="last"?Math.max(0,v.length-1):0),K(!0))},[V,F]);let X=v[Y]??x.imageSrc??"",M=v.slice(1),te=h?Bt("div",{className:`block w-full min-w-0 ${kb}${i?` ${su}`:""}`,children:Bt(Ke,{ownerId:b??"GalleryB",ownerType:"GalleryB",Template:h,rows:[{key:F??x.imageSrc??"tile",image:x.imageSrc??"",tag:x.process,number:L?_M(L.index,L.total):"",eyebrow:x.car,name:x.wheel,meta:x.finish,href:x.href??""}],items:[{hoverMedia:M.length?{photos:[{finish:"",items:M.map(ae=>({url:ae,kind:"image"}))}]}:null}],previewHover:A,fallback:null,children:ae=>ae})}):Bt(CM,{build:x,forceHover:A,alwaysShowOverlay:g,index:L?.index,total:L?.total,ratio:o,captionPlace:n,display:c,displayPhone:p,styleOwner:m,editing:e,...w?{setCount:v.length}:{}});return Un(Ex,{children:[e?Bt(z,{as:"div",ref:T,[LM]:"",className:"block w-full text-left",children:te}):Bt(z,{as:"button",ref:T,[LM]:"",type:"button","aria-label":S?`Open ${x.car||"build"} on ${x.wheel||"wheel"}`:OM(x),onClick:()=>{Z(0),K(!0)},className:"block w-full cursor-pointer text-left focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2",children:te}),w?Bt($c,{open:G,onClose:()=>K(!1),label:x.car&&x.wheel?`${x.car} on ${x.wheel}`:OM(x),onPrev:R?ee:void 0,onNext:R?O:void 0,className:"bg-bg",children:Bt(qVe,{build:x,set:v,index:Y,onPick:Z,onPrev:R?ee:void 0,onNext:R?O:void 0,onLeave:()=>K(!1)})}):Bt($c,{open:G,onClose:()=>K(!1),label:S?`${x.car} on ${x.wheel}`:OM(x),onPrev:R?ee:void 0,onNext:R?O:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:Un("div",{onClick:ae=>ae.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(hm,{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:HO},children:"\u2715"}),Un("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[X&&Bt("img",{...oo(X,{fallbackWidth:1280}),sizes:WVe,alt:`${(S?x.car:x.wheel||x.car)||"Photo"} \u2014 ${Y+1} of ${v.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},X),R&&Un(Ex,{children:[Bt("button",{type:"button","aria-label":"Previous photo",onClick:ee,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"}),v.length>1&&Un("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:[Y+1," / ",v.length]})]})]}),S?Un("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&&Un("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)})]}),Un("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&&Un(Ex,{children:[Bt("dt",{className:"text-fg-dim",children:"Wheel"}),Bt("dd",{className:"text-fg",children:N(x.wheel)})]}),x.process&&Un(Ex,{children:[Bt("dt",{className:"text-fg-dim",children:"Process"}),Bt("dd",{className:"text-fg",children:N(x.process)})]}),x.finish&&Un(Ex,{children:[Bt("dt",{className:"text-fg-dim",children:"Finish"}),Bt("dd",{className:"text-fg",children:N(x.finish)})]}),x.car&&Un(Ex,{children:[Bt("dt",{className:"text-fg-dim",children:"Vehicle"}),Bt("dd",{className:"text-fg",children:N(x.car)})]})]}),Un("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[Un(He,{href:x.href||"/wheels",onClick:()=>K(!1),className:"group flex items-center justify-between gap-6 border border-btn bg-btn px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-btn-ink transition-colors hover:border-fg hover:bg-fg",children:[Bt("span",{children:"View product"}),Bt("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),Un(He,{href:s,onClick:()=>K(!1),className:"flex items-center justify-between gap-6 border border-line px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[Bt("span",{children:"See more builds"}),Bt("span",{children:"\u2192"})]}),Un(He,{href:l,onClick:()=>K(!1),className:"flex items-center justify-between gap-6 border border-line px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[Bt("span",{children:"Submit your build"}),Bt("span",{children:"\u2192"})]})]})]}):!k&&Bt(VVe,{build:x})]})})]})}function Ege(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function KVe(e){return!!e.wheel||Ege(e).length>0}function OM(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function VVe({build:e}){let t=e.wheel,o=Ege(e);return Un("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 YVe=360,jVe="120px";function qVe({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 Un("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:[Un("div",{className:"relative grid min-h-0 place-items-center bg-surface-2 py-12 max-view-wide:p-0",children:[s&&Bt("img",{...oo(s,{fallbackWidth:1280}),sizes:`(max-width: ${o_}px) 100vw, calc(100vw - ${YVe}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"})]}),Un("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(hm,{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}),Un("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",{...oo(d,{fallbackWidth:320,maxWidth:640}),sizes:jVe,alt:"",loading:"lazy",className:"block aspect-[4/3] w-full object-cover"})},`${d}-${c}`))}),e.wheel&&e.href&&Un(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 oYe,useEffect as kk,useId as nYe,useState as Nr,useSyncExternalStore as rYe}from"react";var XVe=14,ZVe=3;function JVe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function QVe(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),JVe(o)}async function Pge(e,t,o={}){let n=o.days??XVe,r=o.read??Qh.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=QVe(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>=ZVe)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as _ge,formatDateTime as IM,formatTime as Oge}from"efficient-shell/format";var eYe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},Cge={weekday:"long",day:"numeric",month:"long",year:"numeric"},Nge={hour:"numeric",minute:"2-digit"},Rge={...Nge,timeZoneName:"short"};function FM(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function BM(e,...t){let o=ml(...t);return!o||!FM(e)?"":Oge(e,{locale:ZB(),timeZone:o})}function HM(e,...t){let o=typeof e=="string"?{start:e}:e,n=ml(...t),r=FM(o.start);if(!n||!r)return"";let a=ZB(),i=o.end?FM(o.end):null;if(!i||i.getTime()<=r.getTime())return IM(o.start,{locale:a,timeZone:n,style:eYe,zoneName:"short"});let s=IM(o.start,{locale:a,timeZone:n,style:Cge,clock:Nge}),d=_ge(o.start,n)===_ge(o.end,n)?Oge(o.end,{locale:a,timeZone:n,clock:Rge}):IM(o.end,{locale:a,timeZone:n,style:Cge,clock:Rge});return`${s} \u2013 ${d}`}function DO(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as aYe,userToday as iYe,userZone as sYe}from"efficient-shell/format";import{jsx as fYe}from"react/jsx-runtime";var Age=tYe(null);function ff(){let e=oYe(Age);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var DM=[{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:""}],lYe=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function Lge(e,t){return{timezone:"",slots:t?lYe.flatMap(({hour:n,minute:r})=>aYe(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var MM={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function dYe(e){let t=String(e?.slots[0]?.start??"");return t?{...MM,startAt:t}:MM}function Ige(e){return e.bookingNumber===MM.bookingNumber}function cYe(e,t){return e&&t?.length===0}function pYe(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!DO(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function mYe(){return()=>{}}function uYe(){return null}function Fge({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=nYe(),r=rYe(mYe,iYe,uYe)??"",[a,i]=Nr(),[s,l]=Nr(""),[d,c]=Nr(""),[p,m]=Nr(r),[f,g]=Nr(r),[h,b]=Nr(!1),[w,x]=Nr(null),[y,S]=Nr(),[k,v]=Nr(""),[E,T]=Nr(""),[_,P]=Nr(""),[I,F]=Nr(""),[H,B]=Nr(""),[L,A]=Nr(()=>lH()),[G,K]=Nr(null),[Y,Z]=Nr(!1),[$,q]=Nr(!1),[ee,O]=Nr(null),[R,V]=Nr("");kk(()=>{V(sYe()??"")},[]),kk(()=>{let xe=!1;return Qh.listServices().then(ie=>{if(xe)return;let ce=hR(ie);i(ce),l(ie.currency),c(J=>J||ce[0]?.id||"")}).catch(()=>{xe||i([])}),()=>{xe=!0}},[]),kk(()=>{r&&(m(xe=>xe||r),g(xe=>xe||r))},[r]),kk(()=>{if(h||!d||!r)return;let xe={aborted:!1};return v(""),S(void 0),O(null),x(null),Z(!0),Pge(d,r,{signal:xe}).then(ie=>{if(!xe.aborted){if(ie.outcome==="found"){m(ie.date),g(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}},[h,d,r]),kk(()=>{if(!h||!d||!p)return;let xe=!1;return v(""),S(void 0),O(null),x(null),Z(!0),Qh.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,h,d]);let X=a?.find(xe=>xe.id===d),M=X?.depositAmountDue!=null,te=pYe({editing:e,submitting:$,hasService:!!X,hasDay:!!p,selectedStart:k,name:E,email:_,requiresPayment:M},Date.now());async function ae(xe){if(xe.preventDefault(),!(!te||!X)){q(!0),O(null);try{let ie=await Qh.create({serviceId:X.id,start:k,customer:{name:E.trim(),email:_.trim(),phone:I.trim()},notes:H.trim(),idempotencyKey:L,customerTimezone:R});K(ie),A(lH())}catch(ie){O(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&&(v(""),Qh.getAvailability(X.id,p).then(S).catch(()=>{}))}finally{q(!1)}}}let Te=cYe(e,a),De=Te?Lge(p,R):void 0,_t=t&&!G?dYe(De??Lge(p,R)):null;return fYe(Age.Provider,{value:{fieldPrefix:n,editing:e,services:Te?DM:a,currency:Te?"AUD":s,serviceId:Te?DM[0].id:d,setServiceId:c,service:Te?DM[0]:X,requiresPayment:Te?!1:M,date:p,earliestDate:f,setDate:m,setDateTouched:b,availability:De??y,loadingSlots:Te?!1:Y,noSlotsMessage:w,selectedStart:De?De.slots[0]?.start??"":k,setSelectedStart:v,customerTimezone:R,name:E,setName:T,email:_,setEmail:P,phone:I,setPhone:F,notes:H,setNotes:B,confirmation:G??_t,submitting:$,error:ee,canSubmit:Te?!1:te,handleSubmit:ae,sample:!!Te},children:o})}import{jsx as MO,Fragment as Bge,jsxs as Hge}from"react/jsx-runtime";var Dge=`sf-button group inline-flex items-center justify-center gap-2.5 border ${jre} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,Mge={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 ya(e){let{variant:t="primary",arrow:o,glyphBefore:n,spread:r,className:a,style:i,part:s,glyphPart:l,children:d,href:c,newTab:p,hrefRewrite:m,...f}=e,g=`${r?Dge.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):Dge} ${Mge[t]??Mge.primary} ${a??""}`,h=n?Hge(Bge,{children:[o!==null&&MO("span",{"aria-hidden":!0,className:"inline-flex",...l,children:o??"\u2192"}),d]}):Hge(Bge,{children:[d,o!==null&&MO("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",...l,children:o??"\u2192"})]});return c?MO(xt,{href:c,className:g,style:i,newTab:p?!0:"auto",...m?{hrefRewrite:m}:{},...s,children:h}):MO("button",{type:"button",className:g,style:i,...f,children:h})}import{jsx as hYe}from"react/jsx-runtime";var Sk=e=>hYe("div",{className:"grid bg-bg",children:e});import{jsx as mo,jsxs as Cd}from"react/jsx-runtime";var Tk="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 gYe(e,t){let o=Number(e);if(o===0)return eg;try{return hle(o,t)}catch{return`${t} ${e}`}}var zge={selected:!0};function Wge(e,t){return({index:o})=>t?{[y_]:v_(e,o)}:{}}var Ek="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function zM({number:e,children:t}){return Cd("div",{className:"mb-4 flex items-center gap-3",children:[mo("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}),mo("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 zO({eyebrow:e,heading:t,intro:o}){return Cd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&mo("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&mo("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()&&mo("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function WO({style:e,owner:t}){let{fieldPrefix:o,services:n,currency:r,serviceId:a,setServiceId:i,requiresPayment:s,date:l,earliestDate:d,setDate:c,setDateTouched:p,availability:m,loadingSlots:f,noSlotsMessage:g,selectedStart:h,setSelectedStart:b,customerTimezone:w,editing:x}=ff();if(!n)return null;let y=Date.now(),S=ml(w,m?.timezone??""),k=ml(m?.timezone??""),v=k&&k!==S?k:"",E=(m?.slots??[]).map(T=>({start:T.start,time:BM(T.start,S),businessTime:v?`${BM(T.start,v)} business`:"",passed:!x&&DO(T.start,y)}));return Cd(z,{className:"flex flex-col gap-10",style:e,children:[Cd("div",{children:[mo(zM,{number:"01",children:"Choose a service"}),mo("div",{className:"grid gap-3 sm:grid-cols-2",children:mo(Ke,{ownerId:t.id,ownerType:t.type,slot:Sg,Template:t.serviceTemplate,rows:n.map(T=>({name:T.name,meta:`${T.durationMinutes} min \xB7 ${gYe(T.price,r)}`,description:T.description??""})),states:n.map(T=>T.id===a?zge:void 0),actions:x?void 0:n.map(T=>({press:()=>i(T.id),label:T.name})),copyAttrs:Wge(Sg,x),fallback:null,wrapCopy:Sk,children:T=>mo(Lo,{children:T})})}),s&&mo("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."})]}),Cd("div",{children:[mo(zM,{number:"02",children:"Choose a date and time"}),mo(Kr,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:Ek,children:mo("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:T=>{p(!0),c(T.target.value)},className:Tk,required:!0})}),mo("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 min-[1200px]:grid-cols-4",role:"group","aria-label":"Available appointment times",children:f?mo("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",children:"Loading times\u2026"}):m?.slots.length?mo(Ke,{ownerId:t.id,ownerType:t.type,slot:Tg,Template:t.timeTemplate,rows:E.map(T=>({time:T.time,businessTime:T.businessTime})),states:E.map(T=>T.start===h&&!T.passed?zge:void 0),actions:x?void 0:E.map(T=>({press:()=>b(T.start),label:T.time,disabled:T.passed})),copyAttrs:Wge(Tg,x),fallback:null,wrapCopy:Sk,children:T=>mo(Lo,{children:T})}):g?mo("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",role:"status",children:g}):null}),S&&!f&&!!m?.slots.length&&Cd("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,v?` \xB7 business timezone ${v}`:""]})]})]})}function UO({buttonLabel:e,style:t}){let{fieldPrefix:o,editing:n,name:r,setName:a,email:i,setEmail:s,phone:l,setPhone:d,notes:c,setNotes:p,submitting:m,error:f,canSubmit:g}=ff();return Cd(z,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[mo(zM,{number:"03",children:"Your details"}),Cd("div",{className:"flex flex-col gap-4",children:[mo(Kr,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:Ek,children:mo("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:h=>a(h.target.value),className:Tk,required:!0})}),mo(Kr,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:Ek,children:mo("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:h=>s(h.target.value),className:Tk,required:!0})}),mo(Kr,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:Ek,children:mo("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:h=>d(h.target.value),className:Tk})}),mo(Kr,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:Ek,children:mo("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:h=>p(h.target.value),className:`${Tk} resize-y`})})]}),f&&mo("p",{className:"mt-4 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.16em] text-alert",role:"alert",children:f}),mo(ya,{type:n?"button":"submit",disabled:!g,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:m?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function GO({successMessage:e}){let{confirmation:t,customerTimezone:o}=ff();if(!t)return null;let n=ml(t.customerTimezone,o,t.timezone),r=ml(t.timezone),a=r&&r!==n?r:"";return Cd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[Cd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),mo("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),mo("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:HM(t.startAt,n)}),a&&Cd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",HM(t.startAt,a)]}),(e??"").trim()&&mo("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),mo(ya,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!Ige(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Px}from"react/jsx-runtime";var Uge=["head","booking","details","confirm"],Gge={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function WM({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}=ff(),m=Iue(d);return e==="head"?Px(z,{className:"min-[960px]:col-span-2",style:m,children:Px(zO,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Px(z,{className:"min-[960px]:col-span-2",style:m,children:Px(GO,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Px(WO,{style:m,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Px(UO,{buttonLabel:s,style:m}):null}import{useEffect as $ge,useState as hf}from"react";import{jsx as _x,jsxs as wYe}from"react/jsx-runtime";function Kc(e,t){let[o,n]=hf(void 0),[r,a]=hf(0);return $ge(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return Ao.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),$ge(()=>{if(t===void 0)return $R(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var bYe="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Cx(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function gf({form:e,formSlug:t,editing:o=!1}){let[n,r]=hf({}),[a,i]=hf(""),[s,l]=hf(!1),[d,c]=hf(!1),[p,m]=hf(null),[f,g]=hf(null);async function h(b){if(b.preventDefault(),!(o||s||!e||!t)){l(!0),g(null);try{let w=e.fields.map(y=>({fieldKey:y.key,value:n[y.key]??""})),x=await Ao.submitForm(t,{answers:w,...a?{company:a}:{}});m(x?.account??null),c(!0)}catch{g(bYe)}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:f,handleSubmit:h}}function Rx({value:e,onChange:t}){return _x("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function bf({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"?_x("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:[_x("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>_x("option",{value:d,children:d},d))]}):e.type==="checkbox"?_x("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):_x("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 vl,jsxs as Pk}from"react/jsx-runtime";function xYe(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function Kge({eyebrow:e,title:t}){return Pk("div",{className:"flex flex-col gap-4",children:[e&&vl(ft,{text:e,scaled:!1}),t&&vl("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 $O({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return Pk("div",{className:"flex flex-col gap-8",children:[e&&Dt(e).map((l,d)=>vl("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:N(l)},d)),a&&(n?r.done?vl("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:Cx(n)}):Pk("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",xYe(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?Pk("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:[vl(bf,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),Pk("span",{children:[l.label,l.required?vl("span",{className:"text-accent",children:" *"}):null]})]},l.key):vl(bf,{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)}),vl(Rx,{value:r.honeypot,onChange:r.setHoneypot}),r.error&&vl("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:r.error}),vl("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)})]}):vl("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:i?u("Loading form\u2026"):u("Choose a form in the inspector, under Form \u2014 until then this form is hidden on the live page and nothing can be submitted.")})),a&&o&&vl("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:N(o)})]})}var KO=["field","tick","thanks"],Vge={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},VO={field:"styleField",tick:"styleTick",thanks:"styleThanks"},yYe={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 vYe(e){return typeof e=="string"&&db.includes(e)?e:null}function Yge(e){let t={};for(let o of KO){let n=vYe(e[VO[o]]);n&&Object.assign(t,Lc(n,yYe[o]))}return t}import{jsx as YO}from"react/jsx-runtime";var jge=["head","form"],qge={head:"Head",form:"Form"};function UM({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=Kc(i,s),p=gf({form:c,formSlug:i,editing:l}),m=Yge(d);return e==="head"?YO(z,{as:"div",style:m,children:YO(zt,{look:"statement",num:t,title:o})}):YO(z,{as:"div",style:m,children:YO($O,{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:()=>Uge.map(e=>({region:e,name:Gge[e]})),addBlocked:()=>u("A Booking Form is these three boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},SubmitBuild:{slot:"boxes",childType:"SubmitBox",addLabel:"Add box",fixed:!0,seeds:()=>jge.map(e=>({region:e,name:qge[e]})),addBlocked:()=>u("A Submit-a-build section is these two boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},Collections:{slot:"cards",childType:"CollectionCard",addLabel:"Add card",seeds:()=>Array.from({length:cge},()=>({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:()=>Tge.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};Tne(kYe);import{jsx as Xge}from"react/jsx-runtime";var SYe={body:"text-[length:var(--size-body,17px)]"},gm=5;function Ox({rating:e}){let t=Math.min(gm,Math.max(0,Math.round(e)));return Xge(z,{role:"img","aria-label":`${t} out of ${gm} stars`,className:`flex gap-1 ${SYe.body} leading-none`,children:Array.from({length:gm}).map((o,n)=>Xge("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var GM="mx-auto max-w-[var(--sf-site-width,1600px)]",TYe=[/^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 Zge(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function $M(e){return e.split(/\s+/).filter(t=>t&&!TYe.some(o=>o.test(Zge(t)))).join(" ")}var EYe=new Set(["max-view-desktop","max-view-wide"]);function PYe(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 Nx(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=Zge(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?PYe(l[1]):void 0;d!==void 0&&(i?EYe.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as _Ye,jsx as CYe}from"react/jsx-runtime";function KM({inBox:e,atTop:t,anyBox:o=!1}){let n=Eu(),r=Yb();return CYe(_Ye,{children:n||o&&r?e:t})}import{createContext as Jge,useContext as YM}from"react";import{Fragment as OYe,jsx as VM}from"react/jsx-runtime";var RYe={atTop:null,inBox:null},jM=Jge(RYe);function jO({pad:e,children:t}){return VM(jM.Provider,{value:e,children:t})}var br=()=>YM(jM).atTop,Qge=()=>YM(jM),e0e=Jge(void 0);function t0e({pads:e,children:t}){return e?VM(e0e.Provider,{value:e,children:t}):VM(OYe,{children:t})}var o0e=()=>YM(e0e);import{jsx as _k}from"react/jsx-runtime";function kt({className:e,capped:t=!1,column:o=_i,style:n,defaults:r,id:a,attrs:i,rootRef:s,inAnyBox:l=!1,padOnColumn:d=!1,children:c}){let p=ge(),m=Qge(),f=$M(e),g=o===null?"":$M(o),{className:h,style:b,...w}=_e(f,m.inBox,n),x=_k(z,{as:"section",ref:s,...i,...w,className:h||void 0,style:b,id:a,children:g?_k("div",{className:g,children:c}):c}),y=r?{...r,...n}:n,S=d?null:m.atTop,k=d?m.atTop:null,{className:v,style:E,...T}=_e(t?`${GM} ${e}`:e,S,y),_=_k(z,{as:"section",ref:s,...i,...T,className:v,style:E,id:a,children:o===null?c:_k("div",{..._e(he(o,p),k),children:c})});return _k(KM,{inBox:x,atTop:_,anyBox:l})}import{Fragment as LYe,jsx as bm,jsxs as qO}from"react/jsx-runtime";var Lx={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)]"},NYe="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))]",qM="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 XM({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:qO(kt,{className:"relative z-[2] border-t border-line bg-surface",column:l?qM:NYe,padOnColumn:!0,children:[l?null:qO(LYe,{children:[(t??"").trim()&&bm(ft,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&bm("h2",{className:`mb-12 font-heading2 ${Lx.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${Lx.headingMediumUpTo800}`,children:re(o??"",!1)})]}),bm("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=>qO("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&&bm(Ox,{rating:c.rating}),(c.title??"").trim()&&bm("h3",{className:`font-display ${Lx.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),bm("div",{className:`flex-1 font-serif ${Lx.bodySmall} leading-[1.65] text-fg-dim`,children:Dt(c.quote).map((p,m)=>bm("p",{className:m?"mt-3":"",children:p},m))}),qO("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[bm("span",{className:`font-mono ${Lx.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),bm("span",{className:`font-mono ${Lx.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var n0e=Nx(qM),ZM={top:84,bottom:n0e.bottom,topPhone:84,bottomPhone:n0e.bottomPhone},r0e=ZM,[AYe,IYe]=E2("Testimonials"),FYe={type:Ks,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:{[Vs]:[{type:"Text",props:{...$e,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Ie("quote",Rt,{size:16,lineHeight:1.6}),{type:Ks,props:{...Ue,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Vs]:[Ie("name",$e,{...rd,weight:500,letterSpacing:.04}),Ie("role",Rt,{textStyle:"body-5"})]}}]}},BYe={name:"Testimonials",boxProps:e=>({...ic,direction:"column",gap:44,sectionBorder:{top:1},...fu(e,r0e)}),box:[...Mp,...Dh(r0e)],parts:[{kind:"group",name:"Heading",props:{...Ue,gap:16},parts:[{...AYe,props:$e},{...IYe,props:$e,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[FYe]}}],site:hee("title"),drop:{...sc,...lc,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"}};In({Testimonials:BYe});var jr={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 ZO,tabletKey as JM}from"efficient-easel/draw";var HYe={textStyle:"body-5",...ho("label",14),letterSpacing:.05,lineHeight:1.5},DYe={type:Ks,props:{...Ue,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[ZO("share")]:"content",[ZO("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Vs]:[Ie("label",Rt,{...Aa(14),letterSpacing:.05,lineHeight:1.5}),Ie("value",{...$e,align:"right"},{...HYe,align:"right"})]}},a0e={[zh]:A_},MYe=["dynamic","source","finish","size","wheel"],Ck=ol("SpecTable",{slots:{template:[DYe]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...Ue,direction:"row",share:"content",gap:48,[JM("gap")]:80,[ZO("gap")]:80,...a0e}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),zYe=Ck.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(MYe.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),XO=Nx(jr.ownBox),WYe={...Ck,parts:zYe,boxProps:(e,t)=>{let o=typeof Ck.boxProps=="function"?Ck.boxProps(e,t):Ck.boxProps;return{...o,sectionPaddingBottom:XO.bottom,sectionPaddingBottomPhone:XO.bottomPhone,...a0e,[JM("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[JM("sectionPaddingBottom")]:XO.bottomPhone,[ZO("gap")]:36,...XO.line?{sectionBorder:__({bottom:1})}:{}}}};In({SpecTable:WYe});In({ProductGrid:ol("ProductGrid",{slots:{[Lt]:[hfe()]},pressHeading:!0})});In({Events:ol("Events",{slots:{[Lt]:w8()},coreProps:{sectionAccent:VP},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});In({Collections:ol("Collections",{slots:{[Lt]:[x8()]},roomBelow:ume,pressHeading:!0})});In({GalleryB:ol("GalleryB",{slots:{[Lt]:[y8()]},roomBelow:{bottom:mi.bottom,bottomPhone:E5},pressHeading:!0})});In({[hr]:{name:"Product hero",box:[...zJ],boxProps:{direction:"column",gap:0,gapPhone:0,...gt(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[rx]:ax},slots:e=>({[Lt]:$D(e)})}]}});var QM=Nx(jr.ownBox);In({FitmentTable:ol("FitmentTable",{slots:{[rO]:[efe()],[of]:[tfe()]},roomBelow:{bottom:QM.bottom,bottomPhone:QM.bottomPhone},boxProps:QM.line?{sectionBorder:__({bottom:1})}:{},pressHeading:!0})});var UYe=e=>({type:Ks,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:{[Vs]:[{type:Ks,props:{...Ue,name:"Words",direction:"column",gap:16},slots:{[Vs]:[Ie("eyebrow",$e,{...Aa(13),color:"accent"}),Ie("title",$e,{textStyle:"heading-2",...ho("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Ie("copy",Rt,{textStyle:"body-1",...ho("body",15),lineHeight:1.6})]}},{type:Ks,props:{...Ue,name:"Picture",direction:"column",gap:12},slots:{[Vs]:[{type:"ImageBlock",props:{[zs]:"image",aspect:"1/1",fit:"contain"}},Ie("tag",{...Rt,align:"right"},{...Aa(11),align:"right"})]}}]}}),GYe={name:"Feature Rows",boxProps:{...ic,...bee,direction:"column",gap:0},box:Mp,parts:[{kind:"core",keep:"rest",slots:e=>({template:[UYe(e.startLeft===!0)]})}]};In({DetailRows:GYe});import{phoneKey as t9}from"efficient-easel/draw";var QO=e=>[...Mp.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>P_(t,n)],...Dh(e)],o9=(e,t,o)=>(n,r)=>({...ic,sectionAccent:P_(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...fu(n,e)}),n9=(e,t,o)=>({kind:"text",key:e,role:"heading",props:$e,style:{textStyle:"heading-2",...ho("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),r9=(e,t,o={})=>({kind:"group",name:"Heading",props:{...Ue,gap:e,gapPhone:e,...o},parts:t}),a9=(e={})=>({kind:"core",keep:"rest",props:T_,...e}),JO=ZM,[$Ye]=E2("ReviewForm"),KYe=()=>({name:"Review Form",boxProps:o9(JO,48,32),box:QO(JO),parts:[r9(16,[{...$Ye,props:$e},n9("title",1,-.02)]),a9()],pressKeepsEmpty:["eyebrow","title"],drop:{...sc,...lc,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[VYe]=E2("Reviews"),e9=e=>({...Aa(12),letterSpacing:e}),YYe={type:Ks,props:{...Ue,name:"Card",gap:16,...gt(40,40,32,32),sectionAccent:0},slots:{[Vs]:[{type:"RatingBlock",props:{[zs]:"rating"}},Ie("title",$e,{textStyle:"heading-1",...ho("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Ie("quote",Rt,{textStyle:"body-1",...ho("body",15),lineHeight:1.65}),{type:Ks,props:{...Ue,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[t9("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Vs]:[Ie("name",$e,e9(.22)),Ie("dateLabel",{...Rt,align:"right"},{...e9(.18),align:"right"}),Ie("role",{...Rt,align:"right"},{...e9(.18),align:"right"})]}}]}},jYe=()=>({name:"Reviews",boxProps:o9(JO,48,32),box:QO(JO),parts:[r9(16,[{...VYe,props:$e},n9("title",1,-.02)]),a9({slots:{template:[YYe]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...sc,...lc,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"}}),i0e={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},qYe=()=>({name:"Booking Form",boxProps:o9(i0e,40,40),box:QO(i0e),parts:[r9(16,[E_("eyebrow",{...ho("label",12),weight:600,letterSpacing:.24,color:"accent"}),n9("heading",.98,-.025),{kind:"text",key:"intro",props:{...Rt,maxWidth:660},style:{textStyle:"heading-1",...ho("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),a9()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...sc,...lc}}),s0e={top:88,bottom:88,topPhone:64,bottomPhone:64},XYe=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...ic,direction:"column",align:"center",gap:20,gapPhone:20,...fu(e,s0e)}),box:[...Mp,...Dh(s0e)],parts:[{...E_("eyebrow"),props:{...$e,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...$e,align:"center",maxWidth:720},style:{textStyle:"heading-1",...ho("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",...ho("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...Ue,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[t9("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...fee,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...L2,align:"center",icon:"none"},style:{...ou(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...sc,...lc}}),l0e={top:60,bottom:0,topPhone:60,bottomPhone:0},ZYe=()=>({name:"Contact Form",boxProps:(e,t)=>({...ic,sectionAccent:P_(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...fu(e,l0e)}),box:QO(l0e),parts:[{kind:"group",name:"Header",props:{...Ue,direction:"row",align:"center",share:"content",phoneRow:2,[t9("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[E_("routingNumber"),{kind:"text",key:"routingTagline",props:Rt,style:{textStyle:"heading-1",...ho("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:gee(e.sectionAccent??0,t)})}}],drop:{...sc,...lc}});In({ContactRouting:ZYe(),ReviewForm:KYe(),AppointmentBooking:qYe(),Reviews:jYe(),CheckoutCTA:XYe()});var d0e={top:40,bottom:40,topPhone:40,bottomPhone:40},c0e={textStyle:"heading-1",...Gee("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},i9=["heading","intro"],p0e=[Lt,Ga,$a,Ka];function JYe(e,t){let o=(t?wb:LZ)(Eo,e);return Object.fromEntries(p0e.map(n=>[n,o[n]]))}var QYe=()=>({name:"List",boxProps:e=>({...ic,direction:"column",gap:24,gapPhone:24,...fu(e,d0e)}),box:[...Mp,...Dh(d0e)],parts:[{kind:"group",name:"Heading",props:{...Ue,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...$e,tag:"h1"},style:c0e,when:e=>!Z6(e)},{kind:"text",key:"heading",role:"heading",props:{...$e,tag:"h2"},style:c0e,when:Z6},{kind:"text",key:"intro",role:"body",props:Rt,style:{textStyle:"body-1",...ho("body",15)}}]},{kind:"core",keep:"rest",props:T_,derive:{reads:[...p0e],props:(e,t)=>JYe(e,t.press===!0)}}],pressKeepsEmpty:i9,drop:{...sc,...lc,[K_]:"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"}});In({AlloyWheelsListing:QYe()});var m0e={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as eje,useContext as tje}from"react";function yt(e){return Mt}import{Fragment as nje,jsx as Ax}from"react/jsx-runtime";var oje=yt("ProductCard")("buy"),Po={headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},Ix=eje("catalog");function ks(){return tje(Ix)==="catalog"}function wf({children:e}){let t=ks();return Ax(nje,{children:e??(t?Ax(z,{"aria-hidden":!0}):null)})}function Fx({children:e}){return Ax(wf,{children:e?Ax(z,{children:e}):null})}function eN({children:e}){return Ax(wf,{children:e?Ax(z,{className:"[.sf-card-rows>*>&]:self-end",...oje,children:e}):null})}var u0e={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:PP(Po.label),writable:!0,sized:!0}},f0e={sku:{label:"SKU",follows:"Label",builtIn:PP(Po.label),writable:!0,sized:!0}},h0e={name:{label:"Name",follows:"Heading 3",builtIn:PP(Po.headingSmall2),writable:!0,sized:!0}};lse({ProductPrice:m0e,ProductEyebrow:u0e,ProductName:h0e,ProductSku:f0e});function Bx(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as rje}from"react/jsx-runtime";import{OpacityIcon as aje}from"efficient-easel/icons";import{group as tN}from"efficient-easel/screen/lib/document/box-fields";var g0e={fields:{_gContent:tN("Content"),eyebrow:W("Eyebrow",Su.eyebrow),title:j("Heading",Su.title),body:j("Body",Su.body),_gBackground:tN("Background image"),imageSrc:rt("Image","image/*"),overlay:le("Overlay",rje(aje,{}),0,100,5,60,"%"),_gButton:tN("Button"),...xl,_gLayout:tN("Layout")}};import{jsx as Rk}from"react/jsx-runtime";import{GroundIcon as w0e,ListIcon as ije}from"efficient-easel/icons";function x0e(e){let t=e?.data?.root,o=Coe(t?.props)??"";return o&&xB(o,"text").length?o:""}var s9="outsideCardTemplate",sje={not:{context:s9,is:!0}},Ya={[s9]:(e,t)=>{let o=Ip(t.appState,e.props?.id);if(o!==void 0)return o===null&&!x0e(t.appState)},[FX]:(e,t)=>{let o=id(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[HX]:(e,t)=>id(t.appState,e.props?.id)?.inCopy};function qr(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?Rk(Qn,{noun:"link"}):t==="colour"?Rk(w0e,{}):Rk(ije,{}),a={...ne(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return ot(a,sje)}function Vc(){return qr("Link from","link")}var lje={any:[{field:jo,set:!1},{context:s9,is:!0,default:!0}]};function xf(e){return ot(e,lje)}function Ok(e){return e.kind==="link"?Cr(Q(e.label)):e.kind==="colour"?dje(e.label):e.multiline?Je(e.label):ve(e.label)}function dje(e){return{type:"custom",render:({value:t,onChange:o})=>Rk(Lae,{label:e,icon:Rk(w0e,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function cje(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var b0e=new WeakMap;function ja(e,t,o){let n=Object.keys(e).filter(k=>cje(e[k]));if(!n.length)return e;let r=t.props??{},a=Ip(o.appState,r.id),i=typeof a?.type=="string"?a.type:"",s=a?b6(o.appState,r.id)??"":"",l=n.map(k=>typeof r[k]=="string"?r[k].trim():""),d=ht(a?.props),c=i===zr?Ip(o.appState,a?.props?.id):null,p=c?b6(o.appState,a?.props?.id)??void 0:void 0,m=c?NP(a?.props,c.type,p):"",f=c?ht(c.props):"",g=c?`${String(c.type??"")}\0${f}\0${p??""}`:"",h=i===zr&&!c?JSON.stringify(a?.props?.[RZ]??null):"",b=a?"":x0e(o.appState),w=[i,s,d,m,g,h,uP(),b,voe(),...l].join("\0"),x=b0e.get(e);x||b0e.set(e,x=new Map);let y=x.get(w);if(y)return y;let S={...e};return n.forEach((k,v)=>{let E=e[k],T=i===zr?Nh(o.appState,a,E.cardRowKind):i?IZ(a,E.cardRowKind,s||void 0):xB(b,E.cardRowKind),_=E.cardRowKind==="link"&&!!i&&!T.length;if(!l[v]&&(_||(E.cardRowContent?!i||!T.length:!T.length&&!i&&b))){delete S[k];return}let P=l[v]&&!T.some(H=>H.key===l[v])?l[v]:"",I=E.cardRowKind==="list",F=(H,B)=>I&&B===0&&H.key!==l[v]?"":H.key;S[k]={...E,options:[...I?[]:E.options,...T.map((H,B)=>({label:H.label,value:F(H,B)})),...P?[{label:P,value:P}]:[]]}}),x.set(w,S),S}import{group as v0e}from"efficient-easel/screen/lib/document/box-fields";var oN={meta:"Trailing note"},y0e={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var k0e={fields:{_gContent:v0e("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:Q("Label"),href:Cr(Q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:W("Trailing note",oN.meta),_gText:v0e("Text"),rowField:qr("Shows","text")},resolveFields:(e,t)=>ja(t.fields,e,t),showWhenFacts:Ya};import{jsx as hi,jsxs as wje}from"react/jsx-runtime";import{ButtonIcon as xje,ButtonIconIcon as yje,IconAfterTextIcon as vje,IconBeforeTextIcon as kje}from"efficient-easel/icons";import{SettingsField as Sje}from"efficient-easel/panel";import{useSelectedFields as R0e}from"efficient-easel/easel";import{buttonFieldSet as Tje}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as Eje}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as Pje,Segmented as _je}from"efficient-shell/ui";function nN(e){return typeof e=="boolean"?e:!0}import{parseOption as pje}from"efficient-shell/format";var l9=["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"],mje=["before","after","end"];function d9(e){return typeof e=="string"&&l9.includes(e)?e:void 0}function S0e(e,t){return d9(e)??(nN(t)?"arrow-right":"none")}function Nk(e){return pje(mje,"after",e)}function T0e(e,t){return Nk(e)==="end"&&Fg(t)==="fill"}function Fg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function E0e(e,t,o,{atSectionLine:n=!1}={}){let r=Fg(e);if(Er(o)){let i=Fg(o),s=Er(t)?Fg(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(Er(t)){let i=Fg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as iN}from"efficient-easel/screen/lib/document/style-fields";import{group as P0e}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as Cje}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as c9}from"react/jsx-runtime";import{LockIcon as uje}from"efficient-easel/icons";import{FieldText as fje}from"efficient-easel/fields";import{SettingsField as hje}from"efficient-easel/panel";import{keptByRow as gje}from"efficient-easel/screen/lib/document/style-fields";function bje(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??Mre}-words`;return c9(hje,{label:u("Words"),icon:c9(uje,{}),htmlFor:o,children:c9(fje,{id:o,value:u("Set by country"),onChange:()=>{},readOnly:!0})})}}}function rN(e){return gje(e)}function aN(e,t,o,n=[]){return MC(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?bje():a]))}var p9=e=>RC(e==="none"?"no-symbol":e),Rje=l9.map(e=>({value:e,icon:e==="none"?lre(p9(e),hi(TB,{value:e})):p9(e)})),O0e=Q("Button");function Oje({value:e,onChange:t}){let o=R0e(),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?hi(Yre,{label:"Button",icon:hi(xje,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):O0e.render({value:r,field:{label:"Button"},onChange:a=>t(hae(a))})}function Nje({value:e,onChange:t}){let o=R0e(),n=S0e(e,o.values.arrow),r=Nk(o.values.iconPosition),a=Fg(o.values.widthFit)==="fill",i=p9("icon-at-end");return hi(Sje,{label:u("Icon"),icon:hi(yje,{size:18}),value:n==="none"?void 0:hi(TB,{value:n}),children:wje("div",{className:"flex items-center gap-2",children:[hi(Pje,{label:u("Icon"),value:n,options:Rje,onChange:t}),n!=="none"&&hi(_je,{size:"sm",block:!0,label:u("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:hi(kje,{size:16}),label:hi("span",{className:"sr-only",children:u("Icon before text")}),title:u("Icon before text")},{value:"after",icon:hi(vje,{size:16}),label:hi("span",{className:"sr-only",children:u("Icon after text")}),title:u("Icon after text")},...a?[{value:"end",icon:i,label:hi("span",{className:"sr-only",children:u("Icon at the far end")}),title:u("Icon at the far end")}]:[]]})]})})}var _0e=()=>v6(er().theme),C0e=Tje({lengthUnits:EC,follows:{useFill:()=>_0e().fill,useText:()=>_0e().ink,useBorder:()=>{let[e]=gc("variant"),[t]=gc("buttonColor"),{theme:o}=er(),n=IB({variant:e,buttonColor:t}).border.width,r=Er(t)??(e==="ghost"?VZ(o).text:v6(o).fill);return{width:n,color:r}},useCorners:()=>JZ(er().cornerRadiusPx),useFillOpacity:()=>IB({variant:gc("variant")[0]}).fillOpacity},usePresets:kre,resetTo:e=>gae(e,u("Styles")),padding:{fallback:qre,tablet:!0},phone:Eje,say:qb});function Lje(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var N0e={fields:{label:wae(O0e,e=>hi(Oje,{value:e.value,onChange:e.onChange})),labelText:Tae("label"),href:xf({...Xe("Button link"),...iN("label")}),consentWords:rN("label"),_gButton:P0e("Button"),rowField:qr("Shows","text"),[jo]:Vc(),...Lje(C0e,Cje.Design),_gStyle:P0e("Style"),variant:iN("buttonColor"),icon:{type:"custom",render:e=>hi(Nje,{value:e.value,onChange:e.onChange})},iconPosition:iN("icon"),arrow:iN("icon"),...C0e},resolveFields:(e,t)=>aN(ja(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Ya};import{jsx as Lk}from"react/jsx-runtime";import{AccentIcon as Aje,ColumnsIcon as F0e,StylesIcon as B0e}from"efficient-easel/icons";import{group as m9}from"efficient-easel/screen/lib/document/box-fields";import{newId as A0e}from"efficient-easel/data";function sN(e,{rows:t="items",label:o="title"}={}){let n=ht(e);return n?Ap(n).map(r=>({label:r.label,value:r.key})):(Array.isArray(e[t])?e[t]:[]).map((r,a)=>({label:typeof r?.[o]=="string"&&r[o].trim()||u("Card {n}",{n:a+1}),value:HZ(rn(r),a)}))}var L0e=new WeakMap;function lN(e,t){let o=L0e.get(e);o||L0e.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 I0e(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>A0e(t),enumerable:!0})}function dN(e,t="items"){if(!Array.isArray(e[t])||ht(e))return e;let o=e[t],n=typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",r=c=>c&&typeof c=="object"&&typeof c.key=="string"?c.key:"",a=!!n&&!o.some(c=>r(c)===n),i=new Set,s=e.highlightedCard,l=!1,d=o.map((c,p)=>{if(!c||typeof c!="object")return c;let m=r(c);if(m&&!i.has(m))return i.add(m),c;let f=!m&&a&&n===String(p+1);if(m||f){let g=A0e("card");return i.add(g),l=!0,f&&(s=g),{...c,key:g}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as Ije}from"efficient-easel/data";var Fje=e=>Ije(e.template)&&e.template.length>0;function Bje(e,t){let o=Fje(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,lN(r,sN(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,Mje(r)]]:[[n,r]]))}var Hje=Object.fromEntries(k2("Cards").filter(e=>!e.everySource).map(e=>[e.key,Ok(e)])),Dje=Object.fromEntries(k2("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,Ok(e)])),H0e=new WeakMap;function Mje(e){let t=H0e.get(e);return t||H0e.set(e,t={...e,arrayFields:Hje}),t}var D0e={fields:{_gSource:m9("Source"),dataSource:no("Card content","Manual"),[uw]:fw(),_gContent:m9("Content"),eyebrow:W("Eyebrow",Lb.eyebrow),eyebrowLook:ne("Eyebrow style",Lk(B0e,{}),[...Js],zp("Cards")),title:j("Heading",Lb.title),items:{type:"array",label:"Cards",arrayFields:Dje,defaultItemProps:I0e({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...wee,highlightedCard:ne("Highlighted card",Lk(Aje,{}),[{label:"None",value:""}],""),highlightBadge:W("Highlight badge","Most popular"),_gStyle:m9("Style"),cardStyle:co("Card style",Lk(B0e,{}),[{label:"Cards",value:"cards",picture:FB.cards},{label:"Label only",value:"label-only",picture:FB["label-only"]}],"cards",{columns:2,cell:_r}),columns:le("Columns",Lk(F0e,{}),2,4,1,3),fillLastRow:oe("Last card fills its row",!1,Lk(F0e,{}),"When the last row is short, its last card widens to fill it.")},resolveData:(e,t)=>{let o=t?.lastData?.props,n=ase(e.props,o),r=TP(n),a=r===e.props?e:{...e,props:r},i=a.props,s=dN(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=pt(ro("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,ut.Cards.headRows),n=e.props,r=Bje(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:ve("Feature label"),href:Cr(Q("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:zp("KeyFeatures")}}:{}}}};import{jsx as zje}from"react/jsx-runtime";import{StickyIcon as Wje}from"efficient-easel/icons";import{group as M0e}from"efficient-easel/screen/lib/document/box-fields";var z0e={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:en(Cr(Q("Active tab","All"))),_gLinks:M0e("Links"),links:{type:"array",label:"Right links",arrayFields:{label:Q("Label"),href:Cr(Q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:M0e("Style"),sticky:oe("Stick to top",!0,zje(Wje,{}))}};import{jsx as Uje}from"react/jsx-runtime";import{StylesIcon as Gje}from"efficient-easel/icons";import{group as W0e}from"efficient-easel/screen/lib/document/box-fields";var $je=[...Kte],U0e={fields:Pi({_gContent:W0e("Content"),eyebrow:W("Chip label",$b.eyebrow),title:j("Heading",$b.title),body:j("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:ve("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:W("Caption","Illustrative example"),_gStyle:W0e("Style"),chartStyle:co("Chart style",Uje(Gje,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:KC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:KC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:KC.donut}],"bars",{columns:3,cell:_r}),valueSuffix:en(W("Value suffix","%"))},$je,Ia)};import{jsx as sqe}from"react/jsx-runtime";import{group as lqe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as at,Fragment as f9,jsxs as Rd}from"react/jsx-runtime";import{useId as Kje,useState as Vje}from"react";import{InspectorUpLevel as Ak}from"efficient-easel/chrome";import{useEasel as Yje}from"efficient-easel/easel";import{ListField as V0e}from"efficient-easel/fields";import{SettingsField as Y0e}from"efficient-easel/panel";import{ClockIcon as G0e,ContrastIcon as jje,GlobeIcon as qje,LinkIcon as Xje,LocationIcon as Zje,PhoneIcon as Jje,SquareIcon as Qje,TypeIcon as h9}from"efficient-easel/icons";import{useSectionOps as eqe}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as tqe}from"efficient-easel/draw";var g9=(e,t)=>t||e?wse(e,t):u("Ungrouped");function oqe(e){let t=[];return e.forEach((o,n)=>{let r=Lu(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 u9({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 j0e={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"},nqe={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},q0e={...nqe,color:"var(--status-danger-soft-ink)"};function wm({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=Kje();return at(Y0e,{label:e,icon:r??at(h9,{}),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 rqe=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],aqe=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function $0e({label:e,icon:t,options:o,value:n,onChange:r}){return at(Y0e,{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:u(a.label)},a.value)})})})}function K0e({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||Rn.mapTheme,a=Rn;return Rd(f9,{children:[!o&&at(u9,{children:u("Section")}),at(wm,{label:u("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),at(wm,{label:u("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),at(wm,{label:u("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:Rd(f9,{children:[at(u9,{children:u("City strip")}),at(wm,{label:u("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),at(wm,{label:u("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),at($0e,{label:u("Shape"),icon:at(Qje,{}),options:aqe,value:G_(e.imageShape),onChange:i=>t({imageShape:i})}),at(u9,{children:u("Map & Theme")}),at($0e,{label:u("Map theme"),icon:at(jje,{}),options:rqe,value:r,onChange:i=>t({mapTheme:i})})]})]})}function iqe({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((f,g)=>Lu(f)===t?g:-1).filter(f=>f>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(Lu).filter(f=>f!==t)),[d,c]=Vje(t),p=f=>o(e.map(g=>Lu(g)===t?{...g,...f}:g)),m=()=>{let f=d;if(f!==t){if(l.has(f)){c(t);return}o(e.map(g=>Lu(g)===t?{...g,group:f}:g)),a(f)}};return Rd("div",{className:"sf-locations-view",children:[at(Ak,{inline:!0,name:u("Section"),onSelect:n,title:g9(t,s)}),at(wm,{label:u("Group heading"),value:d,placeholder:u("e.g. Americas"),onChange:c,onBlur:m,onKeyDown:f=>{f.key==="Enter"&&f.currentTarget.blur()}}),l.has(d)&&d!==t&&at("p",{className:"sf-note sf-note--error",role:"alert",children:u("Another group already uses this heading \u2014 pick a different one.")}),at(wm,{label:u("Group name"),value:s,placeholder:u("Shown beside the heading"),onChange:f=>p({groupName:f})}),at(V0e,{label:u("Cities in this group"),noun:u("city"),items:i.map(f=>e[f]),onChange:f=>o(xse(e,t,f)),newItem:()=>({...XB,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(f,g)=>Rd("button",{type:"button",style:j0e,onClick:()=>r(i[g]),children:[at("span",{children:f?.name||u("City")}),at("span",{"aria-hidden":"true",children:"\u203A"})]})}),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:q0e,onClick:()=>{o(e.filter(f=>Lu(f)!==t)),n()},children:pr("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function X0e({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=bse(),r=xie(),a=oqe(o),{appState:i,selectedItem:s}=Yje(h=>h),l=eqe(),d=s?.props??{},c=h=>{if(!s)return;let b=(i.data.content??[]).findIndex(w=>w.props.id===s.props.id);b<0||l.replaceComponent(tqe,b,{type:s.type,props:{...s.props,...h}})},p=(h,b)=>t(o.map((w,x)=>x===h?{...w,...b}:w)),m=()=>{let h=new Set(a.map(x=>x.key)),b=a.length+1,w=`Group ${b}`;for(;h.has(w);)w=`Group ${++b}`;return w};if(n.level==="texts")return Rd("div",{className:"sf-locations-view",children:[at(Ak,{inline:!0,name:u("Locations"),onSelect:()=>ud({level:"groups"}),title:u("Texts")}),at(K0e,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let h=o[n.index];return h?Rd("div",{className:"sf-locations-view",children:[at(Ak,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>ud({level:"city",index:n.index}),title:u("Image")}),at(_re,{value:h.photo||"",onChange:b=>p(n.index,{photo:b}),label:"Image",accept:"image/*"})]}):f()}if(n.level==="map"){let h=o[n.index];return h?Rd("div",{className:"sf-locations-view",children:[at(Ak,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>ud({level:"city",index:n.index}),title:u("Map")}),at(eR,{value:h.geocode,onChange:b=>p(n.index,{geocode:b}),label:"Coordinates"}),at(wm,{label:u("Directions link"),icon:at(Xje,{}),value:String(h.mapsUrl??""),onChange:b=>p(n.index,{mapsUrl:b})})]}):f()}if(n.level==="city"){let h=n.index,b=o[h];if(!b)return f();let w=Lu(b),x=(S,k)=>p(h,{[S]:k}),y=(S,k,v,E=!1)=>at(wm,{label:k,icon:v,textarea:E,value:String(b[S]??""),onChange:T=>x(S,T)});return Rd("div",{className:"sf-locations-view",children:[at(Ak,{inline:!0,name:g9(w,String(b.groupName??"")),onSelect:()=>ud({level:"group",key:w}),title:b.name||u("City")}),y("name",u("Location name"),at(h9,{})),y("state",u("State / Province"),at(h9,{})),y("country",u("Country"),at(qje,{})),y("address",u("Address"),at(Zje,{}),!0),y("phone",u("Phone"),at(Jje,{})),y("hours",u("Opening hours"),at(G0e,{})),y("timezone",u("Timezone chip"),at(G0e,{})),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:q0e,onClick:()=>{t(o.filter((S,k)=>k!==h)),ud({level:"group",key:w})},children:u("Delete city")})})]})}if(n.level==="group")return a.some(h=>h.key===n.key)?at(iqe,{cards:o,groupKey:n.key,onChange:t,onBack:()=>ud({level:"groups"}),onOpenCity:h=>ud({level:"city",index:h}),onNavigate:h=>ud({level:"group",key:h})},n.key):f();function f(){return Rd("div",{className:"sf-locations-view",children:[at(K0e,{props:d,setSection:c}),!r&&at(f9,{children:g()})]})}function g(){return at(V0e,{label:u("Locations"),noun:u("group"),items:a,onChange:h=>{let b=h.find(w=>!a.some(x=>x.key===w.key));t(yse(o,h.map(w=>w.key),w=>[{...XB,group:w,groupName:""}])),b&&ud({level:"group",key:b.key})},newItem:()=>({key:m(),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:u("No locations yet.")}):void 0,renderRow:h=>Rd("button",{type:"button",style:j0e,onClick:()=>ud({level:"group",key:h.key}),children:[at("span",{style:{fontWeight:500},children:g9(h.key,h.name)}),Rd("span",{style:{color:"var(--ink-faint)"},children:[pr("{n} city","{n} cities",h.indices.length)," \u203A"]})]})})}return f()}var Z0e={fields:{_gOffices:lqe("Offices"),dataSource:no("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>sqe(X0e,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!NC(o))return e;let n=await LC(o,i=>{let s=$_(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(", ")}),{[pP]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>ro("ContactLocations",t,e.props)};import{jsx as J0e}from"react/jsx-runtime";import{ClockIcon as dqe,TagIcon as cqe}from"efficient-easel/icons";var pqe=[...Zte],Q0e={fields:Pi({title:W("Heading",Q6.title),zeroText:en(W("At zero",Q6.zeroText)),endsAt:Nae("Ends",J0e(dqe,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:oe("Unit labels",!0,J0e(cqe,{}))},pqe,Ia)};import{jsx as Ik,jsxs as mqe}from"react/jsx-runtime";import{Suspense as uqe,lazy as fqe,useState as hqe}from"react";import{Button as gqe}from"efficient-shell/ui";import{CodeIcon as bqe}from"efficient-shell/icons/efficient";import{SettingsField as wqe}from"efficient-easel/panel";import{iconOf as xqe}from"efficient-easel/screen/lib/document/box-fields";var yqe=fqe(()=>import("./chunks/CustomHtmlCodeWindow-PCCIJDTP.js"));function vqe({value:e,onChange:t}){let[o,n]=hqe(!1);return mqe(wqe,{label:u("HTML"),icon:xqe(Ik(bqe,{})),children:[Ik(gqe,{variant:"secondary",onClick:()=>n(!0),children:u("Edit code")}),o?Ik(uqe,{fallback:null,children:Ik(yqe,{open:!0,onClose:()=>n(!1),value:typeof e=="string"?e:"",onChange:t})}):null]})}var ebe={fields:{html:{type:"custom",label:"HTML",render:({value:e,onChange:t})=>Ik(vqe,{value:e,onChange:t})}}};import{jsx as b9}from"react/jsx-runtime";import{StylesIcon as kqe,WeightIcon as Sqe,WidthIcon as Tqe}from"efficient-easel/icons";import{keptByRow as Eqe}from"efficient-easel/screen/lib/document/style-fields";var Pqe={any:[{field:"style",set:!1},{field:"style",is:qh}]},_qe={not:{field:"style",is:"none"}},tbe={fields:Ae({style:co("Style",b9(kqe,{}),tae.map(e=>({...e,picture:iae(e.value)})),qh,{columns:3,cell:_r}),spacing:Eqe("sectionPaddingTop"),thickness:le("Thickness",b9(Sqe,{}),1,8,1,1,o1),...md(o1,"thickness"),lengthPct:le("Length",b9(Tqe,{}),10,100,1,100,n1),...md(n1,"lengthPct")},[[["thickness"],Pqe],[["lengthPct"],_qe]]),resolveFields:(e,{fields:t})=>{let o=GC[$C(e.props.spacing)],n=Vp({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return i1(t,n)}};import{jsx as x9}from"react/jsx-runtime";import{HashIcon as Cqe,StickyIcon as Rqe,TargetIcon as Oqe}from"efficient-easel/icons";import{group as nbe,select as Nqe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Hx}from"efficient-easel/screen/lib/document/device-fields";var w9={title:"On this page"},obe={label:"Contents",defaultProps:{title:w9.title,sticky:!0}};var rbe={fields:{title:Hx("desktop",W("Heading",w9.title)),_gList:Hx("desktop",nbe("List")),[dR]:Hx("desktop",Nqe("Number",x9(Cqe,{}),Nte,Lte)),markCurrent:Hx("desktop",oe("Mark the current section",!1,x9(Oqe,{}),"The row of the section a reader is in stands out as they scroll.")),_gStick:Hx("desktop",nbe(F6)),sticky:Hx("desktop",oe(F6,!0,x9(Rqe,{})))}};import{group as Lqe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as y9}from"efficient-easel/screen/lib/document/device-fields";var Fk={hint:"Search questions",noMatchText:"No question matches your search."},abe={label:"List search",defaultProps:{hint:Fk.hint,noMatchText:Fk.noMatchText}};var ibe={fields:{_gContent:y9("desktop",Lqe("Content")),hint:y9("desktop",en(W("Hint",Fk.hint))),noMatchText:y9("desktop",en(W("No match",Fk.noMatchText)))}};import{group as lbe}from"efficient-easel/screen/lib/document/box-fields";var cN={toc:"On this page"},sbe={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var dbe={fields:{_gContent:lbe("Contents"),tocTitle:W("Contents heading",cN.toc),_gSections:lbe("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:ve("Contents label"),heading:ve("Title"),body:Je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as cbe}from"efficient-easel/screen/lib/document/box-fields";var pbe={fields:{_gContent:cbe("Content"),eyebrow:W("Eyebrow",yu.eyebrow),title:j("Heading",yu.title),deck:j("Deck / standfirst",yu.deck),_gMeta:cbe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:ve("Label"),value:ve("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var pN=[{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."}],mbe={label:"Document Detail Cards",defaultProps:{cards:[]}};var ube={fields:{cards:nw({type:"array",label:"Cards",arrayFields:{label:ve("Label"),value:ve("Value"),desc:Je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},pN)}};import{jsx as Aqe}from"react/jsx-runtime";import{PageIcon as Iqe}from"efficient-easel/icons";import{group as Fqe}from"efficient-easel/screen/lib/document/box-fields";var Dx={metaLabel:U.label,metaValue:U.value},fbe={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var hbe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Tab label"),href:Xe("Links to"),current:oe("Current page",!1,Aqe(Iqe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:Fqe("Trailing note"),metaLabel:W("Note label",Dx.metaLabel),metaValue:W("Note value",Dx.metaValue)}};import{jsx as Bqe}from"react/jsx-runtime";import{StylesIcon as Hqe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as Dqe}from"efficient-easel/screen/lib/document/box-fields";var gbe={fields:{eyebrow:W("Eyebrow",U.eyebrow),...al("align",{access:Dqe}),eyebrowLook:ne("Look",Bqe(Hqe,{}),Js,C_)}};import{jsx as wbe}from"react/jsx-runtime";import{ChevronIcon as Mqe,LinkIcon as zqe}from"efficient-easel/icons";import{group as k9}from"efficient-easel/screen/lib/document/box-fields";var yf={num:U.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},v9=Xn.FAQ,bbe={label:"Q&A",inline:!0,fields:v9,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var xbe="faqOnTemplate",Wqe={not:{context:xbe,is:!0}},Uqe={[xbe]:e=>dee("FAQ",e.props??{})},Gqe=new Set([$J,...KJ]);function $qe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||Gqe.has(t))}var ybe={fields:{_gContent:k9("Content"),num:W("Number",yf.num),title:j("Heading",yf.title),linkText:W("Button",yf.link),linkHref:Xe("Link"),_gQuestions:k9("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:ve("Question"),answer:Je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:k9("Layout"),defaultOpen:oe("Open first answer",!0,wbe(Mqe,{})),openFromLink:oe("Open from a link",!1,wbe(zqe,{}),"A link to a question opens its answer. Each question gets an anchor made from its words, after the section's Anchor."),...v9},resolveFields:(e,{fields:t})=>{let o=pt(t,e.props.headPlacement,ut.FAQ.headRows);return Pi(o,$qe(o),Wqe)},showWhenFacts:Uqe};import{jsx as $i,Fragment as mN,jsxs as Vqe}from"react/jsx-runtime";import{useContext as Yqe}from"react";import{SettingsField as Tbe}from"efficient-easel/panel";import{FieldSelect as Ebe}from"efficient-easel/fields";import{BlogPostIcon as Pbe}from"efficient-easel/icons";import{ScreenDocumentContext as jqe}from"efficient-easel/screen/components/ScreenDocumentContext";var vbe=gx({fetch:async(e,t)=>await nc().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:Hn});import{useEffect as kbe,useRef as Kqe,useState as S9}from"react";function Bg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Mx({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=S9(null),[s,l]=S9(!1),[d,c]=S9(!1),p=Kqe(!0);return kbe(()=>(p.current=!0,e().then(m=>{p.current&&i(m)}),()=>{p.current=!1}),[]),kbe(()=>{if(!n?.slug||a===null)return;let m=t(a,n);if(!m)return;let f=o(m);Bg(f,n)&&r(f)},[a]),{rows:a,loading:a===null,refreshing:s,errored:d,refresh:()=>{n?.slug&&(l(!0),c(!1),e(!0).then(m=>{if(!p.current)return;i(m);let f=t(m,n);f&&r(o(f))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function Sbe(e,t){return{label:t?u("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function zx({value:e,onChange:t}){let o=Yqe(jqe);return o&&!o.capabilities.hasBlog?e?.slug?$i(qqe,{value:e,onChange:t}):$i(mN,{}):$i(Xqe,{value:e,onChange:t})}function qqe({value:e,onChange:t}){return $i("div",{children:$i(Tbe,{label:u("Blog post source"),icon:$i(Pbe,{}),hint:$i(mN,{children:u("Linked to a blog post. This editor has no blog to pick another from; choose \u201CNone (manual)\u201D to author the section yourself.")}),children:$i(Ebe,{value:e.slug,ariaLabel:u("Blog post source"),onChange:o=>o?void 0:t(null),options:[{label:u("None (manual)"),value:""},{label:e.title||e.slug,value:e.slug}]})})})}function Xqe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Mx({load:vbe,resolve:(m,f)=>m.find(g=>g.slug===f.slug),snapshot:_1,value:e,onChange:t}),s=m=>{if(!m){t(null);return}let f=(o??[]).find(g=>g.slug===m);f&&t(_1(f))},l=e?.slug&&!(o??[]).some(m=>m.slug===e.slug),d=a?"error":r?"loading":"idle",c=u("Storefront \u2192 Blog"),p=a?u("Couldn\u2019t reach {place}.",{place:c}):r?u("Syncing from {place}\u2026",{place:c}):u("Linked to \u201C{name}\u201D",{name:e?.title||e?.slug||""});return Vqe("div",{children:[$i(Tbe,{label:u("Blog post source"),icon:$i(Pbe,{}),hint:e?.slug?void 0:$i(mN,{children:u("Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.",{place:c})}),children:$i(Ebe,{value:e?.slug??"",ariaLabel:u("Blog post source"),onChange:s,readOnly:n,options:[{label:u("None (manual)"),value:""},...l?[Sbe({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(m=>({label:m.title,value:m.slug}))]})}),e?.slug?$i(sl,{status:d,statusText:p,onRefresh:i,busy:r,hint:$i(mN,{children:u("Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.")})}):null]})}import{group as Zqe}from"efficient-easel/screen/lib/document/box-fields";var Xr={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:dc.href},_be={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var Jqe=["image","imageDate","date","title","dek","ctaHref"],Cbe={fields:Pi({source:Ko(zx),_nBound:ot(ll(qC),XC),image:rt("Cover image","image/*"),badge:W("Badge",Xr.badge),imageDate:W("Image date",Xr.imageDate),_gContent:Zqe("Content"),category:W("Category",Xr.category),readLabel:W("Read time",Xr.readLabel),date:W("Date",Xr.date),title:j("Heading",Xr.title),dek:j("Dek",Xr.dek),ctaText:W("Button",Xr.ctaText),ctaHref:Xe("Link")},Jqe,aw)};import{jsx as wr}from"react/jsx-runtime";import{phoneKey as Lr,tabletKey as va}from"efficient-easel/draw";import{keptByRow as tZe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as Rbe}from"react/jsx-runtime";import{OpacityIcon as Qqe,StylesIcon as eXe}from"efficient-easel/icons";function Wx(){return{darken:le("Darken",Rbe(Qqe,{}),ld.min,ld.max,ld.step,ld.fallback,ld.unit),darkenStyle:ne("Darken style",Rbe(eXe,{}),R2,R2[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]"},oXe=`calc(${bJ} - ${S6}*2)`,Obe=`var(${wJ},${S6})`,Pqt=`pointer-events-none absolute inset-y-0 left-[${Obe}] right-[${Obe}] z-[6] mx-auto max-w-[var(${xJ},${oXe.replace(/ /g,"_")})]`;function uN(e,t){return`pointer-events-auto absolute ${tXe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function Nbe(e){return QP.includes(e)?e:null}import{parseOption as T9}from"efficient-shell/format";var nXe=QP,E9="top-right",rXe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],P9=["cards","dots","numbers","bar","squares"],fN="cards",hN={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},gN=["tabs","largeTabs"],Lbe=!0;function bN(e){return T9(rXe,fN,e)}function Abe(e){return T9(P9,fN,e)}function aXe(e){return T9(nXe,E9,e)}var Ibe={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 Fbe(e,t){return uN(aXe(t),Ibe[bN(e)])}function Bbe(e){return`flex ${Ibe[bN(e)]}`}function Hbe(e){return e.shown!==!1&&(e.count??0)>1}function iXe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function sXe(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 Dbe(e,t){let o=Array.from(t,iXe);return sXe(e,o)?e:o}import{deviceField as Od}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as oZe,ClockIcon as nZe,CropIcon as vwe,GapIcon as rZe,MediaLayoutStackedIcon as Nwe,LineBetweenIcon as aZe,LineSolidIcon as iZe,ListIcon as sZe,NumberedListIcon as kwe,ShadowIcon as lZe,StylesIcon as Swe,TableIcon as Twe,TargetIcon as dZe,WrapIcon as Lwe}from"efficient-easel/icons";var Dg=t_.map(e=>e.shape),C9=e=>e!==js&&Dg.includes(String(e??""))?e:null;function Hg(e){return C9(e)??(lu(e)?js:"auto")}function wN(e){let t=Hg(e);return t==="auto"?"":Ih(t)}function Mbe(e,t,o){return LJ({desktop:e,phone:_9(t)!==null?t:o,tablet:o})}var lXe={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)]"},dXe={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 cXe(e,t){let o=Hg(t);return o==="auto"&&C9(t)===null?null:o===js?t===e?null:o:o===Hg(e)?null:o}var pXe={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 _9(e){let t=Hg(e);return t==="auto"&&C9(e)===null?null:t}function zbe(e,t,o){let n=_9(o),r=cXe(e,_9(t)!==null?t:o);if(r===null&&n===null)return wN(e);let a=Hg(e);return[r===null?wN(e):a==="auto"?"":lXe[a],r===null?"":dXe[r],n===null?"":pXe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as Awe,VIEW_KEY_ACCESS as Yc,group as zg,phoneTwinFields as jc}from"efficient-easel/screen/lib/document/box-fields";var mXe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},uXe=w2.map(e=>({value:e.value,picture:RC(mXe[e.value])}));function xN(e,t){return co("Separator",e,uXe,t,{resolve:KX})}import{jsx as fXe}from"react/jsx-runtime";import{cloneElement as hXe}from"react";import{PaddingXIcon as gXe}from"efficient-easel/icons";import{deviceField as bXe}from"efficient-easel/screen/lib/document/device-fields";function Wbe(){let e=ne(Tie,fXe(gXe,{}),MQ,zQ);return bXe("desktop",{...e,render:t=>{let o=e.render({...t,value:x_(t.value),onChange:n=>t.onChange(UQ(n))});return hXe(o,{hint:u(WQ)})}})}import{newNodeId as R9}from"efficient-easel/draw";var Ube=["First row","Second row","Third row"],wXe="Write the words for this row.",Gbe=e=>({type:"Text",props:{...$e,id:R9("Text"),tag:"p",text:e}}),xXe=(e,t)=>({type:fe,props:{...Ue,id:R9(fe),...t?{startsOpen:!0}:{},rowTitle:[Gbe(e)],content:[{type:"Text",props:{...Rt,id:R9("Text"),tag:"p",text:wXe}}]}}),yXe=e=>!Array.isArray(e)||e.length===0;function $be(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:Ube.map((r,a)=>xXe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==fe||!yXe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(Ube[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[Gbe(i)]}}});return o?{...e,content:n}:e}import{parseOption as vXe}from"efficient-shell/format";var Bk="rowStyle",kXe=["plain","numbered","chevron"],Kbe=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function Vbe(e){return vXe(kXe,"plain",e)}var yN="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",vN="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",kN="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",Ybe="border-t border-line",jbe="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",qbe="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as SXe}from"efficient-easel/screen/lib/content/view-tiers";var SN=Xn.Flex,Xbe={label:"Box",fields:SN,phoneOrder:{prop:SXe("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 Zbe}from"react/jsx-runtime";import{isNode as TXe}from"efficient-easel/data";import{useEasel as EXe}from"efficient-easel/easel";import{PhoneOrderField as PXe}from"efficient-easel/fields";import{slotChildRowName as _Xe}from"efficient-easel/draw";import{deviceField as CXe}from"efficient-easel/screen/lib/document/device-fields";function RXe(){try{let e=EXe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!TXe(a)||typeof t[a.type]?.render!="function"?!1:Er(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 OXe({value:e,onChange:t,readOnly:o}){let n=RXe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return Zbe(PXe,{stored:"ids",value:e,ids:a,onChange:t,readOnly:o,noun:"block",hint:u("The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."),itemLabel:s=>_Xe(r[s],i,So,void 0,Vae)})}function Jbe(){return CXe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>Zbe(OXe,{value:e,onChange:t,readOnly:o})})}import{jsx as zk}from"react/jsx-runtime";import{SettingsDefaultReset as WXe,SettingsField as UXe}from"efficient-easel/panel";import{Segmented as GXe}from"efficient-shell/ui";import{SwapIcon as $Xe}from"efficient-easel/icons";import{describedAs as KXe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as VXe}from"efficient-easel/screen/lib/document/device-fields";var Hk="Mirror cards",Dk="off",O9=[{value:Dk,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],Qbe={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function vf(e){return e==="even"||e==="odd"?e:null}function ewe(e){return vf(e)??void 0}function Mk(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function Mg(e,t,o){return!t||e.direction!=="row"||o||tu("row",e.separator)||e.loop==="scroll"||e.line===!0||ds(e)||p6(e.columns)!==""||oZ(e.columnsTablet)!==""?!1:!(ls(e.share)===""&&mb(e.wrap)!=="")}function twe(e,t){let o=vf(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var owe="view-wide:flex-row-reverse",NXe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},LXe={left:"view-wide:text-right!",right:"view-wide:text-left!"},AXe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},IXe={start:"view-wide:items-end!",end:"view-wide:items-start!"},FXe={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!"},TN=(e,t)=>(typeof t=="string"?Ws(e,t):void 0)??"";function N9(e,t,o){return e?[TN(NXe,t),TN(LXe,o)].filter(Boolean).join(" "):""}function nwe(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=qX(o,r,void 0).tablet;return[TN(AXe,o),a?FXe[a]:""].filter(Boolean).join(" ")}return t==="column"?TN(IXe,n):""}function L9(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||ds(e)?!1:p6(e.columns)===""}function EN(e,t){let o=vf(e.mirrorCards);return o&&L9(e,t)?{mirror:o}:null}import{isNodeList as cwe}from"efficient-easel/data";import{parseOption as rwe}from"efficient-shell/format";var BXe=["columns","rows-left","rows-right"],HXe=["half","third"],awe=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],iwe=[{value:"half",label:"Half"},{value:"third",label:"One third"}],swe=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function DXe(e){return rwe(BXe,"columns",e)}var MXe={"rows-left":"even","rows-right":"odd"},zXe={half:"equal",third:"bigRight"};function PN(e){let t=DXe(e?.arrangement);if(t==="columns")return null;let o=rwe(HXe,"half",e?.imageWidth);return{mirror:MXe[t],row:{share:zXe[o],phoneReverse:e?.phoneOrder==="words"}}}var lwe={ProcessSteps:{slot:"boxes",hand:PN}},dwe=(e,t,o)=>cwe(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function Ux(e,t){let o=fC(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===fe&&dwe(o,Ne,t)){let s=id(e,o.props?.id)?.inCopy===!0;return EN(Xs(o.props??{},s),s)}let i=Ws(lwe,a);if(i&&dwe(o,i.slot,t))return i.hand(o.props??{})}let n=AP(e,t),r=n&&typeof n.type=="string"?Ws(lwe,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function pwe(e){let t=e?.[Ne];return cwe(t)&&t.some(o=>o?.type===fe)}var mwe="mirrorCardsIdle",A9="mirrorCardsMirrors",uwe={[A9]:(e,t)=>{let o=id(t.appState,e.props?.id);if(o===void 0)return;let n=Xs(e.props??{},o.inCopy),r=Ux(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&Mg(a,!0,rm(a).desktop)}return Mg(n,Mk(o),rm(n).desktop)&&vf(n.mirrorCards)!==null},[mwe]:(e,t)=>{let o=id(t.appState,e.props?.id);if(o===void 0)return;let n=Xs(e.props??{},o.inCopy);return Ux(t.appState,e.props?.id)?!0:Mg(n,Mk(o),rm(n).desktop)?!1:!(L9(n,o.inCopy)&&pwe(n))}};function YXe(e=!1){return O9.map(t=>({value:t.value,label:u(t.label),title:t.value===Dk?void 0:u(Qbe[t.value]),disabled:e}))}function jXe({value:e,onChange:t,readOnly:o}){let n=vf(e)??Dk;return zk(UXe,{label:u(Hk),icon:zk($Xe,{}),action:zk(WXe,{words:KP()?.panel,label:u(Hk),changed:n!==Dk,detail:u("Off"),onReset:()=>t(void 0)}),children:zk(GXe,{size:"sm",block:!0,label:u(Hk),value:n,onChange:r=>t(ewe(r)),options:YXe(o===!0)})})}function fwe(){return ot(VXe("desktop",{type:"custom",...KXe({},{type:"radio",label:Hk,options:O9.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>zk(jXe,{value:e,onChange:t,readOnly:o})}),{not:{context:mwe,is:!0}})}import{jsx as qXe}from"react/jsx-runtime";import{FilterIcon as XXe}from"efficient-easel/icons";import{deviceField as ZXe}from"efficient-easel/screen/lib/document/device-fields";var bwe="showForUnoffered",wwe={[bwe]:e=>xC().length===0&&X2(e.props?.[q2])===void 0},JXe="Show for",QXe="All";function eZe(e,t){if(!e)return;let o=xC().find(r=>r.slug===e);if(o)return{slug:o.slug,name:o.name};let n=X2(t);return n?.slug===e?n:void 0}function xwe(){let e=ne(JXe,qXe(XXe,{}),[{label:QXe,value:""}],"");return ot(ZXe("desktop",{...e,render:t=>e.render({...t,value:X2(t.value)?.slug??"",onChange:o=>t.onChange(eZe(o,t.value))})}),{not:{context:bwe,is:!0}})}var hwe=new WeakMap;function ywe(e,t){let o=e[q2];if(!o)return e;let n=xC(),r=X2(t?.[q2]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=hwe.get(o);i||hwe.set(o,i=new Map);let s=`${Vne()}\0${a?`${a.slug}\0${a.name}`:""}`,l=i.get(s);l||(l={...o,options:[...o.options,...n.map(p=>({label:p.name,value:p.slug})),...a?[{label:a.name,value:a.slug}]:[]]},i.set(s,l));let d=gwe.get(e);d||gwe.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[q2]:l}),c}var gwe=new WeakMap;var Ewe=BX,Pwe={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},cZe={field:"direction",is:"tabs"},pZe={field:"line",in:[!0,!1]},mZe={field:"anchor",set:!0},I9=["fixed","screen","fill"],uZe={not:{any:[{field:"sectionHeightMode",in:I9},{field:"sectionHeightModeTablet",in:I9},{field:"sectionHeightModePhone",in:I9}]}},fZe={context:"parent.line",is:!0},Wg={not:{field:"direction",is:"accordion"}},_we={field:"direction",is:"accordion"},Cwe={any:[Wg,{not:{field:Bk,in:["numbered","chevron"]}},{field:"columns",in:[...nZ]},{field:"phoneRow",in:[...rZ]}]},Iwe="notAccordionRow",hZe={not:{context:Iwe,is:!0}},gZe={[Iwe]:(e,t)=>t.parent?.props?.direction!=="accordion"},B9={field:"direction",is:"row",default:"row"},Ug={not:iJ},Kg={all:[B9,Ug,{not:{field:"separator",in:w2.map(e=>e.value)}},{not:{field:"line",is:!0}}]},bZe={field:"direction",is:"column"},Fwe={all:[Kg,...["columns",va("columns")].map(e=>({not:{field:e,in:Array.from({length:SP},(t,o)=>o+kP)}}))]},wZe={all:[Ug,{not:{all:[B9,{field:"separator",in:w2.map(e=>e.value)}]}}]},F9={not:{all:[Kg,{field:"columns",in:Array.from({length:SP},(e,t)=>t+kP)}]}},xZe="sharedColumnsFits",Bwe="sharedColumnsMisfit",Hwe="sharedColumnsDraws",Dwe="sharedColumnsPhoneDraws";function $g(e,t){return Xs(e.props??{},id(t.appState,e.props?.id)?.inCopy!==!1)}var yZe={[xZe]:(e,t)=>N5($g(e,t)),[Bwe]:(e,t)=>!N5($g(e,t)),[Hwe]:(e,t)=>rm($g(e,t)).desktop,[Dwe]:(e,t)=>rm($g(e,t)).phone};function Rwe(e){return{all:[{not:{context:Bwe,is:!0}},{any:[MB,{field:e,set:!0}]}]}}var Gg={not:{context:Hwe,is:!0}},Gx={not:{context:Dwe,is:!0}},Mwe="sharedRowsDraws",vZe={[Mwe]:(e,t)=>L5($g(e,t))&&Ux(t.appState,e.props?.id)?.row===void 0},Wk={not:{context:Mwe,is:!0}},kZe={any:[Gg,Gx]},H9=DX,SZe={not:{context:A9,is:!0}},zwe="rowHanded",TZe={not:{context:zwe,is:!0}},EZe={[zwe]:(e,t)=>{let o=Ux(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},Owe={all:[Wg,H9,Gg,Gx,SZe]},PZe={field:"direction",is:"row"},_Ze={field:"align",in:["start","center","end"]},CZe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function RZe(){let{darken:e,darkenStyle:t}=Wx();return{...jc("darken",e,Yc),...jc("darkenStyle",t,Yc)}}var Wwe={not:{all:[Kg,{field:va("columns"),in:Array.from({length:SP},(e,t)=>t+kP)}]}};function OZe(){let e=oe(Awe,!1,wr(Lwe,{})),t=o=>{let n=c6(o);return n===void 0?void 0:n==="wrap"};return{...Vh(),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 NZe(){let e=oe(Awe,!0,wr(Lwe,{})),t=o=>{let n=c6(o);return n===void 0?void 0:n==="wrap"};return{...Vh(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!aZ(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var Uwe={hint:hu},Gwe={all:[H9,{any:[bZe,{all:[Kg,Wwe,{not:{all:[Fwe,{field:va("share"),set:!0}]}}]}]}]},LZe=ot(Od("desktop",le("Narrows below",wr(Nwe,{}),Mh.min,Mh.max,Mh.step,hu,{kind:"breakpoint"},{clear:Uwe,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),Gwe);function AZe(e,t){let o=e;return!(zh in o)||t.direction!=="column"?e:{...o,[zh]:LZe}}var $we={fields:Ae({_gContent:zg("Content"),rowTitle:SN.rowTitle,content:SN.content,_gCardDisplay:zg("Display"),cardDisplay:tR("desktop"),cardDisplayTablet:tR("tablet"),cardDisplayPhone:tR("mobile"),showFor:xwe(),_gLayout:zg("Layout"),direction:jC("Flex"),tabShape:co("Tab shape",wr(Swe,{}),gN.map(e=>({label:hN[e],value:e,picture:sae[e]})),"tabs",{columns:2,cell:_r}),mirrorCards:fwe(),[zh]:Od("desktop",le("Stacks below",wr(Nwe,{}),Mh.min,Mh.max,Mh.step,hu,{kind:"breakpoint"},{clear:Uwe,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[N2]:Wbe(),startsOpen:Od("desktop",oe("Starts open",!1,wr(oZe,{}))),[Bk]:Od("desktop",co("Row style",wr(kwe,{}),Kbe.map(e=>({...e,picture:e.value==="numbered"?wr(kwe,{}):wr(sZe,{})})),"plain",{columns:2})),label:en(Q("Tab name")),...ci("Flex"),...jc("justify",_C(),Yc),...jc("align",CC(),Yc),...(()=>{let e=jc("wrap",Vh(),Yc,{phoneRow:NZe()}),t=jc("wrap",Vh(),Yc,{phoneRow:OZe()});return{wrap:t.wrap,[va("wrap")]:t[va("wrap")],[Lr("wrap")]:e[Lr("wrap")]}})(),[Lr("order")]:Jbe(),...jc("boxShape",wx("Box shape",wr(vwe,{}),Tb(Dg),"shape","auto"),Yc,{phoneRow:wx("Box shape",wr(vwe,{}),Tb(Dg),"shape","auto",{phoneRest:e=>Hg(e)})}),[hP]:Od("desktop",ire(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:xN(wr(aZe,{size:18}),"none"),[Hb]:Od("desktop",co("Card style",wr(Swe,{}),$ee.map(e=>({...e,picture:dae[e.value]})),"table",{columns:2,cell:_r})),share:Od("desktop",Eae()),[va("share")]:Cae(),[Lr("share")]:_ae(),[nm]:Od("desktop",ne(SD,wr(Twe,{}),[...Tme],M1)),[Lr(nm)]:Od("mobile",ne(SD,wr(Twe,{}),[...Eme],M1)),...Rae(),...jc("blockSpacing",Pae(),Yc),line:oe("Line",!1,wr(iZe,{}),"A line across the blocks, with a dot on each."),upcoming:oe("Upcoming",!1,wr(nZe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:ne("Join",wr(rZe,{}),H_,B_),_gShadow:zg("Shadow"),...jc("shadow",oe("Shadow",!1,wr(lZe,{})),Yc),...jc("fillColor",Aae(),Yc),[ua]:qr("Fill content","colour"),[h_]:tZe("fillColor"),_gBackground:zg("Background image"),bgImage:Od("desktop",rt("Image","image/*")),bgImagePhone:Od("mobile",rt("Image","image/*")),[cr]:qr("Image content","image",{content:!0}),...RZe(),placement:pd("Content position"),_gLink:zg("Link"),link:xf(Xe("Link to")),[jo]:Vc(),_gJump:zg("Anchor"),jumpHighlight:oe("Highlight when a link jumps here",!1,wr(dZe,{}),"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"],Ewe],[[Lr("share")],{all:[Pwe,Gx]}],[[nm],Rwe(nm)],[[Lr(nm)],Rwe(Lr(nm))],[[Lr("wrap")],{all:[Pwe,Ug,Gx,Wk]}],[[Lr("order")],{all:[Kg,Gx,Gg]}],[["phoneRow"],Gx],[[Bk],{all:[_we,{not:{field:Bk,is:"chevron"}}]}],[["tabShape"],cZe],[["rowTitle","startsOpen"],hZe],[["align","blockSpacing",va("blockSpacing"),Lr("blockSpacing")],Wg],[[va("justify"),Lr("justify")],{all:[Ug,Owe,Wk]}],[[va("align"),Lr("align")],{all:[PZe,_Ze,Owe]}],[[va("wrap")],{all:[Ug,F9,Wwe,Gg,Wg,Wk]}],[[va("shadow"),Lr("shadow")],H9],[[va("darken"),Lr("darken"),va("darkenStyle"),Lr("darkenStyle")],{all:[Ewe,CZe]}],[["separator"],B9],[[Hb],{field:Hb,set:!0}],[["columns"],{any:[Kg,_we]}],[[va("columns")],Kg],[[zh],Gwe],[[va("gap")],{all:[wZe,Cwe]}],[["gap",Lr("gap")],Cwe],[["justify"],{all:[Ug,kZe,Wg,Wk]}],[["wrap"],{all:[Ug,F9,Gg,Wg,Wk]}],[["share"],{all:[F9,Gg,Wg]}],[[va("share")],{all:[Fwe,Gg]}],[["line"],pZe],[["upcoming"],fZe],[["jumpHighlight"],mZe],[["boxShape",va("boxShape"),Lr("boxShape")],uZe],[["direction","share",Lr("order")],TZe],[["join"],wB],[[N2],wB]]),resolveData:(e,t)=>{let o=e.props,n=o[Hb];return t.changed?.[Hb]===!0&&Kee(n)?{...e,props:Vee(o,n,fe,Ne)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:$be(o)}:e},resolveFields:(e,t)=>{let o=id(t.appState,e.props?.id)?.inCopy===!0,n=o&&AP(t.appState,e.props?.id)===null;return AZe(BZe(HZe(ywe(DZe(e,{...t,fields:ja(t.fields,e,t)}),e.props),$g(e,t),o),n),e.props)},showWhenFacts:{...Ya,...jae,...uwe,...EZe,...yZe,...vZe,...wwe,...gZe}},IZe=ot($ae,MB),FZe=["darken","darkenStyle",Ph,_h];function BZe(e,t){if(!t)return e;let o={...e};for(let n of FZe){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function HZe(e,t,o=!1){let n=e;return Eh in n&&ds(t)&&o?{...n,[Eh]:ot(Kae,Yae)}:!(Eh in n)||ds(t)?e:{...n,[Eh]:IZe}}function DZe(...[e,t]){let{fields:o}=t;{if(ds($g(e,t))){let n=Vp({fallback:{top:Ci.desktop,bottom:Ci.desktop,left:Ci.side,right:Ci.side},tablet:!0,siteSide:!0});return i1(o,n)}return e.props.padV2!==!0?i1(o,Vp({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as Vg}from"react/jsx-runtime";import{ColumnsIcon as Zwe,GridIcon as zZe,LayoutIcon as WZe,SlidePickerCardsIcon as UZe,WidthIcon as Jwe}from"efficient-easel/icons";import{deviceField as NN}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as MZe}from"efficient-shell/format";var D9=["grid","carousel"],M9="grid",Kwe={grid:"Grid",carousel:"Carousel"};function Vwe(e){return MZe(D9,M9,e)}var _N=50,CN=80,RN=30,ON=90;function z9(e,t){let o=Cn(e);return o===void 0?t:Math.min(ON,Math.max(RN,o))}function Ywe(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 jwe(e,t,o){return o<=0?0:((e+t)%o+o)%o}function qwe(e,t){return!t||t.height<=0?null:Math.round(t.top-e.top+t.height/2)}var W9=Xn.Grid,Xwe={label:"Grid",fields:W9,defaultProps:{columns:"3",content:[]}};var GZe={grid:Vg(zZe,{}),carousel:Vg(UZe,{})},Qwe={field:"layout",is:"carousel"},exe={fields:{layout:co("Layout",Vg(WZe,{}),D9.map(e=>({label:Kwe[e],value:e,picture:GZe[e]})),M9),carouselTile:ot(NN("desktop",le("Tile width",Vg(Jwe,{}),RN,ON,1,_N,{kind:"size",base:"%"})),Qwe),carouselTilePhone:ot(NN("mobile",le("Tile width",Vg(Jwe,{}),RN,ON,1,CN,{kind:"size",base:"%"})),Qwe),columns:NN("desktop",le("Columns",Vg(Zwe,{}),1,HJ,1,MJ)),mobileColumns:NN("mobile",le("Columns",Vg(Zwe,{}),A6,DJ,1,A6)),...ci("Grid"),content:W9.content}};import{jsx as $Ze}from"react/jsx-runtime";var txe={fields:{text:j("Heading",U.heading),level:ne("Level",$Ze(Qn,{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 wn}from"react/jsx-runtime";import{parseOption as KZe}from"efficient-shell/format";var U9="bottom-right",G9=["outline","solid","square","bare"],$9="outline",oxe={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},nxe=!1,rxe=["prev","next"],axe={prev:"Previous slide",next:"Next slide"};function VZe(e){return KZe(G9,$9,e)}function YZe(e){return Nbe(e)??U9}var jZe="flex-row items-center gap-2";function ixe(e){return uN(YZe(e),jZe)}var qZe={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 sxe(e){return qZe[VZe(e)]}function lxe(e){return e.shown===!0&&(e.count??0)>1}function LN(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 wxe,EyeIcon as X9,HandIcon as JZe,ScrollMoveDownIcon as xxe,OpacityIcon as QZe,PhoneIcon as gxe,PlayIcon as eJe,SlideArrowsBareIcon as tJe,SlideArrowsRoundIcon as oJe,SlideArrowsSquareIcon as nJe,SlidePickerBarIcon as rJe,SlidePickerCardsIcon as aJe,SlidePickerDotsIcon as iJe,SlidePickerNumbersIcon as sJe,SlidePickerSquaresIcon as lJe,SquareIcon as bxe,StylesIcon as dJe}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as cJe}from"efficient-shell/icons/efficient-looks";import{group as kf}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Z9,deviceNote as fJe}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as dxe}from"efficient-shell/format";var K9=["manual","timer","scroll"],cxe={manual:"Hand",timer:"Timer",scroll:"Scroll"};function AN(e){return dxe(K9,e.autoplay===!0?"timer":"manual",e.slideChange)}var V9=25,Y9=10,j9=100;function pxe(e){let t=Cn(e);return t===void 0?V9:Math.min(j9,Math.max(Y9,t))}function mxe(e,t,o){return o<=0||t<=0?0:Math.min(o-1,Math.max(0,Math.floor(e/t)))}var XZe=["wipe"],ZZe="wipe";function uxe(e){return dxe(XZe,ZZe,e)}var fxe=350,q9=8;var IN=Xn.Hero,hxe={label:"Hero",drawsPictures:!0,fields:IN,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var pJe=cJe,mJe={cards:wn(aJe,{}),dots:wn(iJe,{}),numbers:wn(sJe,{}),bar:wn(rJe,{}),squares:wn(lJe,{})},uJe={outline:wn(oJe,{}),solid:wn(pJe,{}),square:wn(nJe,{}),bare:wn(tJe,{})},hJe={manual:wn(JZe,{}),timer:wn(wxe,{}),scroll:wn(xxe,{})},gJe={any:[{field:"slideChange",is:"timer"},{all:[{field:"slideChange",set:!1},{field:"autoplay",is:!0}]}]},bJe={field:"slideChange",is:"scroll"},yxe={fields:{_dDevice:fJe(),_gContent:kf("Content"),slides:IN.slides,strip:IN.strip,_gStyle:kf("Style"),alignment:rre(),_gTexture:kf("Texture"),showTexture:oe("Show texture",bne,wn(X9,{})),textureColor:nhe,textureOpacity:le("Texture opacity",wn(QZe,{}),0,100,1,40,"%"),textureShape:ne("Texture style",wn(dJe,{}),xne,wne),_gLayout:kf("Layout"),...gO(),...ihe,_gAutoplay:kf("Auto-slide"),slideChange:dre("Change slides",wn(eJe,{}),K9.map(e=>({label:cxe[e],value:e,picture:hJe[e]})),"manual"),autoplayInterval:ot(le("Still time per slide",wn(wxe,{}),2,15,1,6,"s"),gJe),scrollPerSlide:ot(le("Scroll per slide",wn(xxe,{}),Y9,j9,1,V9,{kind:"height",base:"%"}),bJe),_gPicker:kf("Slide picker"),showPicker:oe("Show slide picker",Lbe,wn(X9,{})),pickerShape:co("Slide picker shape",wn(bxe,{}),P9.map(e=>({label:hN[e],value:e,picture:mJe[e]})),fN),pickerPlacement:pd("Slide picker placement",{fallback:E9}),_gArrows:kf("Arrows"),showArrows:oe("Show arrows",nxe,wn(X9,{})),arrowsShape:co("Arrows shape",wn(bxe,{}),G9.map(e=>({label:oxe[e],value:e,picture:uJe[e]})),$9),arrowsPlacement:pd("Arrows placement",{fallback:U9}),_gPhone:Z9("mobile",kf("On a phone")),phoneUpDown:Z9("mobile",Oe(pne,wn(gxe,{}),hne(),dne)),phoneSideways:Z9("mobile",Oe(mne,wn(gxe,{}),gne(),cne)),phoneWordsTop:rf.phoneWordsTop,phoneWordsBottom:rf.phoneWordsBottom,phoneBoxGap:rf.phoneBoxGap},resolveFields:(e,{fields:t})=>{let o=e.props??{},n=AN(o),r=t.slideChange;return!r||r.currentValue===n?t:{...t,slideChange:{...r,currentValue:n}}}};import{jsx as kxe}from"react/jsx-runtime";import{WidthIcon as Sxe}from"efficient-easel/icons";import{BOX_NUDGE_ROW as Txe,BOX_WIDTH_ROW as Q9,group as e7}from"efficient-easel/screen/lib/document/box-fields";var J9={...Xn.HeroGroup,content:{...Xn.HeroGroup.content,allow:wX}},vxe={label:bX,inline:!0,fields:J9,defaultProps:{placement:TJ,nudgeX:0,nudgeY:0,content:[]}};var Exe={fields:Ae({_gContent:e7("Content"),name:en(rw(Cr(Q("Box name",U.boxName)))),content:J9.content,_gLayout:e7("Layout"),placement:pd("Placement",{pointsFor:bae}),width:le("Width",kxe(Sxe,{}),P6,_6,5,EJ,Q9),...md(Q9,"width"),direction:jC("HeroGroup"),...ci("HeroGroup"),justify:_C(),align:CC(),wrap:Vh(),_gNudge:e7("Nudge"),...are({keys:{x:"nudgeX",y:"nudgeY"},min:-E6,max:E6,label:null,length:Txe}),...md(Txe,"nudgeX"),...Vp({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(e_(o?.data,n)===0)return t;let r={...t};return r.width=le("Width",kxe(Sxe,{}),P6,_6,5,PJ,Q9),r}};import{jsx as _xe}from"react/jsx-runtime";import{MediaIcon as xJe,OpacityIcon as yJe}from"efficient-easel/icons";import{group as Uk}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as vJe,deviceNote as kJe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as wJe}from"efficient-shell/format";var t7=Xn.HeroSingle,Pxe={label:"Hero Single",drawsPictures:!0,fields:t7,defaultProps:{mediaType:Ba.HeroSingle,[Fa.image]:wJe,tintColor:fs,tintOpacity:0,overlay:100,overlayColor:fs,overlayPosition:Gh}};var o7=Vb("video",Ba.HeroSingle),SJe=Vb("image",Ba.HeroSingle),Cxe=[...xO,"tintColor","tintOpacity"],Rxe={fields:iC({_dDevice:kJe(),boxNotice:SO("HeroSingle"),boxes:t7.boxes,_gStyle:Uk("Style"),overlay:le("Overlay",_xe(yJe,{}),0,100,5,100,"%"),overlayColor:U8.overlayColor,overlayPosition:U8.overlayPosition,_gLayout:Uk("Layout"),...gO({tabletNumber:!1}),_gPhone:vJe("mobile",Uk("On a phone")),phoneWordsTop:rf.phoneWordsTop,phoneWordsBottom:rf.phoneWordsBottom,phoneBoxGap:rf.phoneBoxGap,_gMedia:Uk("Media"),mediaType:Oe("Type",_xe(xJe,{}),QC,Ba.HeroSingle),mediaLayout:_g.mediaLayout,mediaLayoutPhone:_g.mediaLayoutPhone,...bO,videoSource:Fc.videoSource,mediaVideo:rt(W2,"video/*",U2),youtubeUrl:Fc.youtubeUrl,videoPlayback:Fc.videoPlayback,videoProgress:Fc.videoProgress,poster:rt("Video poster","image/*","Upload a poster still"),_gTint:Uk("Image tint"),tintColor:lk(),tintOpacity:sk(),...dk},{parts:{media:["mediaType",...wO,"videoSource","mediaVideo","youtubeUrl","videoPlayback","videoProgress","poster"],image:Cxe,image2:xx},onlyFor:{image:[...Cxe,"_gTint",...xx],video:["videoSource","videoPlayback","videoProgress","poster"]},rules:{mediaVideo:{all:[o7,{field:"videoSource",is:"upload",default:us}]},youtubeUrl:{all:[o7,{field:"videoSource",is:"youtube",default:us}]},videoProgress:vO(o7),...yO(SJe)},fallback:Ba.HeroSingle})};import{jsx as Gk}from"react/jsx-runtime";import{BlockVideoIcon as EJe,ClockIcon as PJe,ImageIcon as _Je,MediaIcon as CJe,PlayIcon as RJe}from"efficient-easel/icons";import{group as FN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as $x}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as TJe}from"efficient-shell/format";var n7=Xn.HeroSlide,Oxe={label:"Hero Slide",fields:n7,defaultProps:{mediaType:Ba.HeroSlide,videoSpeed:100,[Fa.image]:TJe,tintColor:fs,overlay:0}};var xm=Vb("video",Ba.HeroSlide),OJe=Vb("image",Ba.HeroSlide),Nxe=[...xO,"tintColor","overlay"],Lxe={fields:iC({_gContent:FN("Content"),name:en(rw(Q("Slide name",U.slideName))),process:en(W("Reel label","Label")),groupNotice:SO("HeroSlide"),groups:n7.groups,_gMedia:FN("Media"),mediaType:Oe("Type",Gk(CJe,{}),QC,Ba.HeroSlide),mediaLayout:_g.mediaLayout,mediaLayoutPhone:_g.mediaLayoutPhone,videoSource:Fc.videoSource,mediaVideo:$x("desktop",rt(W2,"video/*",U2,{frame:"videoFrame"})),mediaVideoPhone:$x("mobile",rt(W2,"video/*",U2,{frame:"videoFramePhone"})),videoFramePhone:jp(),mediaVideoAv1:$x("desktop",rt(aB,"video/mp4",iB)),mediaVideoAv1Phone:$x("mobile",rt(aB,"video/mp4",iB)),youtubeUrl:Fc.youtubeUrl,videoPlayback:Fc.videoPlayback,videoProgress:Fc.videoProgress,videoSpeed:le("Playback speed",Gk(RJe,{}),25,100,5,100,"%"),loadingShows:Iae("Show while loading",Gk(PJe,{}),{frame:Gk(EJe,{}),image:Gk(_Je,{})}),videoFrame:jp(),...bO,poster:$x("desktop",rt("Image","image/*","Choose an image")),posterPhone:$x("mobile",rt("Image","image/*","Choose an image")),_gTint:FN("Image tint"),tintColor:lk(),overlay:sk(),...dk,_gOverlay:FN("Overlay"),overlayColor:G8.overlayColor,overlayPosition:G8.overlayPosition},{parts:{media:["mediaType",...wO,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoProgress","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:Nxe,image2:xx},onlyFor:{image:[...Nxe,"_gTint",...xx],video:["videoSource","videoPlayback","videoProgress","loadingShows","videoFrame"]},fallback:Ba.HeroSlide,rules:{mediaVideo:{all:[xm,{field:"videoSource",is:"upload",default:us}]},mediaVideoPhone:{all:[xm,{field:"videoSource",is:"upload",default:us}]},mediaVideoAv1:{all:[xm,{field:"videoSource",is:"upload",default:us}]},mediaVideoAv1Phone:{all:[xm,{field:"videoSource",is:"upload",default:us}]},youtubeUrl:{all:[xm,{field:"videoSource",is:"youtube",default:us}]},videoProgress:vO(xm),videoSpeed:{all:[xm,{field:"videoSource",is:"upload",default:us},{field:"videoPlayback",is:"background",default:G2}]},...yO(OJe),poster:{all:[xm,lB]},posterPhone:{all:[xm,lB]}}})};import{jsx as r7}from"react/jsx-runtime";import{phoneKey as NJe}from"efficient-easel/draw";import{CropIcon as Axe,ImageIcon as LJe}from"efficient-easel/icons";import{group as a7,phoneTwinFields as AJe}from"efficient-easel/screen/lib/document/box-fields";var Ixe={fields:{_gImage:a7("Image"),src:rt("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>C2(t,e.fit,e.aspect,e[NJe("aspect")])}),alt:en(Q("Alt text")),rowField:qr("Shows","image"),[jo]:Vc(),...AJe("aspect",wx("Aspect ratio",r7(Axe,{}),Tb(Dg),"image","16/9",{more:[Vfe(sQ)]}),void 0,{phoneRow:wx("Aspect ratio",r7(Axe,{}),Tb(Dg),"image","16/9",{phoneRest:hQ})}),fit:ne(c_,r7(LJe,{}),rQ(),"cover"),focal:jp(),focalTablet:jp(),focalPhone:jp(),href:xf(Xe("Link")),_gStyle:a7("Style"),grayscale:yx(),...Wx(),_gShape:a7("Shape"),corners:Mae(),...vae(ure,"corners"),cornerSides:kae()},resolveFields:(e,t)=>Gae(ja(t.fields,e,t),e,t),showWhenFacts:Ya};import{jsx as IJe}from"react/jsx-runtime";import{group as Fxe}from"efficient-easel/screen/lib/document/box-fields";var Bxe={fields:{_gContent:Fxe("Content"),eyebrow:W("Chip label","Integrations"),title:j("Heading",`Plays well with
13
+ `:""}`}),d]})]})}let g=y=>{!m||!Rhe(e,!1)||y.target===y.currentTarget&&p()},h=e.height==="full",b=e.fullWidth||h,w=uKe(e),x=aM("div",{ref:c,tabIndex:-1,"data-popup-panel":"",className:"relative flex flex-col bg-bg text-fg outline-none",style:{width:e.fullWidth?"100%":`min(${e.width}px, 100%)`,height:h?"100%":void 0,maxHeight:e.fullWidth&&!h||w.place==="outside"?`calc(100% - ${iM}px)`:"100%",borderRadius:b?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[w.place!=="none"?Og("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:-mKe,right:0}:{top:12,right:12},children:"\xD7"}):null,w.until?Og("style",{children:`@container popup-frame (min-width: ${w.until+1}px){[data-popup-close-until="${w.until}"]{display:none}}`}):null,Og("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return Og("div",{role:a||r?"dialog":"region","aria-modal":m?!0:void 0,"aria-label":s,"data-popup-frame":r?"inline":"live",onClick:g,className:r?"relative flex min-h-[100vh] w-full":"fixed inset-0 z-[90] flex",style:{...pKe[e.placement],background:Che(e.tintColor,e.tintOpacity),padding:b?0:w.place==="outside"&&e.placement.startsWith("top")?`${24+iM}px 24px 24px`:24,...w.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:x})}var hKe=25.4,uk=400,RO=152,gKe=58,Ohe=RO*Math.cos(gKe*Math.PI/180),bKe=14,wKe=uk/2,xKe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function Lhe(e){let t=xc(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:xKe}function Ahe(e){let t=e.rimDiameter*hKe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=RO*(e.sectionWidth/o),r=t/o;return{cy:wKe,rx:Ohe,ry:RO,cxf:uk/2-n/2-bKe,dx:n,rimRx:Ohe*r,rimRy:RO*r}}var io=e=>e.toFixed(1);function OO(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${io(r)} ${io(a)} A${io(e.rx)} ${io(e.ry)} 0 0 ${o} ${io(r)} ${io(i)}`}function dM(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${io(n)} ${io(a)} L${io(r)} ${io(a)} A${io(e.rx)} ${io(e.ry)} 0 0 1 ${io(r)} ${io(i)} L${io(n)} ${io(i)} A${io(e.rx)} ${io(e.ry)} 0 0 0 ${io(n)} ${io(a)} Z`}function CO(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 Ihe(e,t,o,n,r){let[a,i]=CO(e,t,n),[s,l]=CO(e,t,r),[d,c]=CO(e,o,r),[p,m]=CO(e,o,n);return`M${io(a)} ${io(i)} A${io(e.rx)} ${io(e.ry)} 0 0 1 ${io(s)} ${io(l)} L${io(d)} ${io(c)} A${io(e.rx)} ${io(e.ry)} 0 0 0 ${io(p)} ${io(m)} L${io(a)} ${io(i)} Z`}var Nhe=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],yKe={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}}]},vKe=[["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 Fhe(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return Nhe;for(let[o,n]of vKe)if(t.includes(` ${o} `))return yKe[n];return Nhe}var NO="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as kKe}from"react";function Va(e,t=/:/g){let o=kKe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as fk,jsx as Xt,jsxs as Mc}from"react/jsx-runtime";var vs={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},SKe=[.8,.52,.24],Bhe=.4,Hhe=.88,Dhe=.3,Mhe=5,zhe=.3,Whe=.84,TKe=7,go=e=>Math.round(e*10)/10;function cM({size:e,type:t,className:o}){let n=Va("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=Ahe(Lhe(e)),i=dM(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Mc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${uk} ${uk}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[Xt("title",{children:s}),Mc("defs",{children:[Xt(PKe,{id:r}),Xt("clipPath",{id:r.crown,children:Xt("path",{d:i})})]}),Xt("ellipse",{cx:go(a.cxf+a.dx/2),cy:go(a.cy+a.ry-4),rx:go(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),Xt(_Ke,{g:a,id:r}),Xt(CKe,{g:a,id:r}),Xt("path",{d:i,fill:`url(#${r.tread})`}),Xt("g",{clipPath:`url(#${r.crown})`,children:Fhe(t).map(l=>Xt(EKe,{g:a,column:l},l.f[0]))}),Xt("path",{d:OO(a,0,0,!0),stroke:"currentColor",strokeOpacity:vs.shoulder,strokeWidth:1.2}),Xt("path",{d:OO(a,1,1),stroke:"currentColor",strokeOpacity:vs.silhouette,strokeWidth:1.4})]})}function EKe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Mc(fk,{children:[Xt("path",{d:dM(e,o,n),fill:"currentColor",fillOpacity:vs.rib}),Xt("path",{d:OO(e,o,1),stroke:"currentColor",strokeOpacity:vs.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 Xt(fk,{children:l.map(([d,c])=>Xt("path",{d:Ihe(e,o,n,d,c),fill:"currentColor",fillOpacity:vs.rib,stroke:"currentColor",strokeOpacity:vs.grooveWall,strokeWidth:1},d))})}function PKe({id:e}){return Mc(fk,{children:[Mc("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[Xt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),Xt("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),Xt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),Xt("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),Xt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),Mc("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[Xt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),Xt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),Xt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),Mc("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[Xt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),Xt("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),Xt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),Mc("radialGradient",{id:e.shadow,children:[Xt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),Xt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function _Ke({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 Mc(fk,{children:[Xt("ellipse",{cx:go(e.cxf),cy:go(e.cy),rx:go(e.rx),ry:go(e.ry),fill:`url(#${t.wall})`}),SKe.map((a,i)=>{let s=n(a);return Xt("ellipse",{cx:go(e.cxf),cy:go(e.cy),rx:go(e.rx*s),ry:go(e.ry*s),stroke:"currentColor",strokeOpacity:vs.relief[i],strokeWidth:1},a)}),Xt("ellipse",{cx:go(e.cxf),cy:go(e.cy),rx:go(e.rx*n(Bhe)),ry:go(e.ry*n(Bhe)),stroke:"currentColor",strokeOpacity:vs.lettering,strokeWidth:go(r)})]})}function CKe({g:e,id:t}){let o=Array.from({length:Mhe},(n,r)=>{let a=(r*(360/Mhe)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*zhe*Math.cos(a),y1:e.cy+e.rimRy*zhe*Math.sin(a),x2:e.cxf+e.rimRx*Whe*Math.cos(a),y2:e.cy+e.rimRy*Whe*Math.sin(a)}});return Mc(fk,{children:[Xt("ellipse",{cx:go(e.cxf),cy:go(e.cy),rx:go(e.rimRx),ry:go(e.rimRy),fill:`url(#${t.rim})`}),Xt("ellipse",{cx:go(e.cxf),cy:go(e.cy),rx:go(e.rimRx*Hhe),ry:go(e.rimRy*Hhe),fill:"currentColor",fillOpacity:vs.dishFill,stroke:"currentColor",strokeOpacity:vs.dishEdge,strokeWidth:1}),o.map((n,r)=>Xt("line",{x1:go(n.x1),y1:go(n.y1),x2:go(n.x2),y2:go(n.y2),stroke:"currentColor",strokeOpacity:vs.spoke,strokeWidth:TKe,strokeLinecap:"round"},r)),Xt("ellipse",{cx:go(e.cxf),cy:go(e.cy),rx:go(e.rimRx*Dhe),ry:go(e.rimRy*Dhe),fill:"currentColor",fillOpacity:vs.hubFill,stroke:"currentColor",strokeOpacity:vs.hubEdge,strokeWidth:1})]})}import{jsx as pM}from"react/jsx-runtime";function um({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return pM("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:pM(ao,{label:t||"Tyre",src:ms(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:pM(cM,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as hk}from"react/jsx-runtime";function RKe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function mM({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??tde;return hk("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:SR(e)?hk(um,{image:o?.coverImage,size:e.size,type:RKe(o),sizes:"96px",className:"h-full w-full"}):a?.src?hk(Qs,{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?hk("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:hk(tg,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as uM,jsxs as NKe}from"react/jsx-runtime";var Uhe={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function Ghe(e,t){return Math.min(nH,Math.max(1,e+t))}var $he="disabled:cursor-not-allowed disabled:opacity-40",OKe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${Uhe.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${$he}`,value:`w-11 text-center font-mono ${Uhe.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 ${$he}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function gk({value:e,onChange:t,size:o}){let n=OKe[o];return NKe("div",{className:n.frame,children:[uM("button",{type:"button",onClick:()=>t(Ghe(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),uM("span",{className:n.value,children:e}),uM("button",{type:"button",onClick:()=>t(Ghe(e,1)),disabled:e>=nH,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as zc,jsx as Ye,jsxs as so}from"react/jsx-runtime";function Khe({content:e,closeRef:t}){let{close:o,items:n}=Dn(),r=t;return so("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:[so("div",{className:"flex items-center justify-between",children:[so("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"})]}),so("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:Bre(e,n.length)})]})}function Vhe({content:e}){let{totals:t}=Dn(),{activeCountry:o}=It(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ye(zc,{children:so("div",{className:`grid flex-shrink-0 ${LKe[r-1]} gap-px border-b border-line bg-line`,children:[Ye(fM,{label:"Items",value:so(zc,{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(fM,{label:"Lead time",value:e.leadTimeValue}):null,n?Ye(fM,{label:"Ships to",value:n}):null]})})}function Yhe({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=Dn();return Ye(zc,{children:o.length===0?Ye(HKe,{content:e}):o.map(a=>Ye(AKe,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function jhe(){let{items:e,totals:t,bundles:o}=Dn(),{formatMoney:n}=It(),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(zc,{children:i.length>0&&so("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:[so("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(IKe,{href:`/bundles/${s.slug}`,title:s.name,sub:FKe(s,t.currency,n)},s.slug))})]})})}function qhe(){return Ye(zc,{children:Ye("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ye(rde,{})})})}function Xhe({content:e}){return Ye(zc,{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(BKe,{children:t},t))})})}function Zhe(){let{totals:e,coupon:t}=Dn(),{formatMoney:o}=It();return Ye(zc,{children:so("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ye(df,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ye(df,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:so("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),(e.discount>0||e.deliverySaving>0)&&t?.valid&&Ye(df,{label:`Coupon \xB7 ${t.code}`,value:Ye("span",{style:{color:"var(--green)"},children:Dle(e,n=>o(n,e.currency))})}),t?.deferred&&Ye(df,{label:`Coupon \xB7 ${t.code}`,value:sle}),t?.valid&&t.effects?.gift&&Ye(df,{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:eg})}),Ye(df,{label:"Shipping",value:e.shippingStatus==="free"?Ye("span",{style:{color:"var(--green)"},children:eg}):Mle(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ye(df,{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(df,{label:e.tax.name,value:Hle}):null),so("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[so("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?Rle:o(e.grand,e.currency)})]})]})})}function Jhe(){let{items:e,close:t}=Dn();return Ye(zc,{children:so("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[so(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 LKe=["grid-cols-1","grid-cols-2","grid-cols-3"];function fM({label:e,value:t}){return so("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 AKe({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=Dn(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=It();return so(zc,{children:[so("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(mM,{line:e,catalog:r,tyre:t}),so("div",{className:"flex min-w-0 flex-col gap-2",children:[so("div",{className:"flex items-start justify-between gap-3",children:[so("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:[so("span",{"data-cart-line-no":"",children:["N\xB0 ",e.positionNo," \xB7 "]}),e.process==="FusionForge\xAE"?so(zc,{children:["FusionForge",Ye(M_,{})]}):e.process]}),Ye("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:rH(e,s)===null?Iu:l(rH(e,s),s)})]}),so("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&&so("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&&so("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"]})]}),so("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ye(gk,{value:e.qty,onChange:n,size:"small"}),so("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&&so("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"}),so("span",{children:["Verified for your ",Ye("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function IKe({title:e,sub:t,href:o}){return so(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:[so("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 FKe(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 BKe({children:e}){return Ye("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function df({label:e,value:t}){return so("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 HKe({content:e}){return so("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}),so(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 cf,jsxs as Qhe}from"react/jsx-runtime";var zKe=Ru(void 0),WKe="Your cart";function bk({content:e=HC,look:t=zKe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=Dn(),s=MKe(null),l=_he(a.filter(SR).map(d=>d.slug));return DKe(()=>{i(t.autoOpen)},[t.autoOpen,i]),Qhe(Gi,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:WKe,children:[cf(Khe,{content:e,closeRef:s}),cf(Vhe,{content:e}),Qhe("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[cf(Yhe,{content:e,tyres:l}),cf(jhe,{}),cf(qhe,{}),cf(Xhe,{content:e})]}),cf(Zhe,{}),cf(Jhe,{})]})}import UKe from"efficient-easel/screen/components/UiIcon";import{Fragment as $Ke,jsx as Ng,jsxs as LO}from"react/jsx-runtime";var GKe=Yw(()=>import("./chunks/EditorPreviewCheckout-NAWXDKVA.js"),{ssr:!1});function hM(){let{chromePlaceholder:e,themeFromDocument:t}=er(),{surface:o}=fie();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?LO($Ke,{children:[Ng(GKe,{}),Ng(ege,{surface:o})]}):Ng(Bu,{children:LO(Ow,{preview:!0,children:[Ng(bk,{}),Ng(ege,{surface:o})]})})}function ege({surface:e}){let{label:t,href:o}=Bfe(e);return LO("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:[Ng("span",{style:{whiteSpace:"nowrap"},children:u("{name} \xB7 preview only",{name:u(t)})}),LO("a",{className:"rounded-(--radius-control) px-3 py-1",href:o,target:"_blank",rel:"noopener noreferrer",style:{pointerEvents:"auto",flex:"none",display:"inline-flex",alignItems:"center",gap:5,color:"#fff",background:"#2563eb",textDecoration:"none"},children:[u("Open live"),Ng(UKe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as KKe,CursorClickIcon as VKe,EyeIcon as YKe,FullWidthIcon as jKe,HeightIcon as qKe,OpacityIcon as nge,PlacementIcon as XKe,WidthIcon as ZKe}from"efficient-easel/icons";import{group as kx}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as JKe}from"efficient-easel/screen/lib/document/device-fields";import{jsx as fm}from"react/jsx-runtime";var QKe={label:"Inside",value:"inside"},eVe={label:"None",value:"none"};function gM(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,JKe("desktop",o)]))}function tge(e,t){return{_gDesign:kx("Color"),tintColor:Ma("Tint color",e),tintOpacity:le("Tint opacity",fm(nge,{}),Q2.min,Q2.max,5,t,"%")}}function oge(e,t){return{_gBehavior:kx("Behavior"),outsideClick:oe("Outside click",e,fm(VKe,{})),...t}}var tVe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function bM(e){return le("Width",fm(ZKe,{}),NB.min,NB.max,4,e,"px")}function rge(e){if(e===Cu){let o=Ru(void 0);return gM({_gSize:kx("Width"),width:bM(o.width),_gPosition:kx("Placement"),placement:ne("Placement",fm(XKe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...tge(o.tintColor,o.tintOpacity),...oge(o.outsideClick,{autoOpen:oe("Auto open",o.autoOpen,fm(YKe,{}))})})}let t=_u;return Ae(gM({_gSize:kx("Width"),width:bM(t.width),height:ne("Height",fm(qKe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:kx("Placement"),placement:pd("Placement",{fallback:t.placement}),fullWidth:oe("Full width",t.fullWidth,fm(jKe,{})),...tge(t.tintColor,t.tintOpacity),...oge(t.outsideClick,{closeButton:ne("Close button",fm(KKe,{}),[QKe,{label:"Outside",value:"outside"},eVe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],tVe])}function age(e,t){return gM({menuPanelWidth:bM(e),menuPanelTintColor:Ma("Tint color",_u.tintColor),menuPanelTintOpacity:le("Tint opacity",fm(nge,{}),Q2.min,Q2.max,5,t,"%")})}import{PictureTiles as oVe}from"efficient-shell/ui";import{SettingsField as nVe}from"efficient-easel/panel";import{GridIcon as rVe}from"efficient-easel/icons";import{jsx as Lg}from"react/jsx-runtime";function aVe({layout:e}){return Lg("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?Lg("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):Lg("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var ige={type:"custom",render:({value:e,onChange:t})=>{let o=DC({layout:e}).layout,n=LB.find(r=>r.value===o);return Lg(nVe,{label:u(AB),icon:Lg(rVe,{}),value:n?u(n.label):void 0,children:Lg(oVe,{className:"sf-gallery-layouts",label:u(AB),value:o,onChange:t,options:LB.map(r=>({value:r.value,label:u(r.label),picture:Lg(aVe,{layout:r.value})}))})})}};import{CategoryIcon as JRt,CheckIcon as QRt,ClockIcon as lq,ColumnsIcon as e5t,DirectionIcon as t5t,EyeIcon as o5t,ListIcon as n5t,PageIcon as r5t,PlacementIcon as a5t,ScrollPointIcon as i5t,TabsIcon as s5t,TriggerIcon as l5t,CaseIcon as d5t}from"efficient-easel/icons";import{deviceField as sDe}from"efficient-easel/screen/lib/document/device-fields";import{group as Zl,phoneTwinFields as c5t}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as iVe}from"efficient-easel/screen/lib/document/box-fields";function Sx(e){let t=iVe(e);return{...t,render:o=>t.render({...o,value:eu(o.value)??o.value})}}import{useContext as lVe,useEffect as lge,useRef as IO,useState as FO}from"react";import{Button as BO}from"efficient-shell/ui";import{ScreenDocumentContext as dVe}from"efficient-easel/screen/components/ScreenDocumentContext";var wk=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},AO=null,wM=null,xM=null;function sVe(){AO=null,wM=null,xM=null}function sge(e=!1){let t=fa(),o=Hn();return(e||!AO||wM===null&&t!==null||xM!==o)&&(wM=t,xM=o,AO=(t?Fe.listForms(t,{siteId:o}):Promise.reject(new wk)).catch(n=>{throw sVe(),n instanceof wk?n:new wk(n)})),AO}import{useEaselHost as cVe}from"efficient-easel/screen/lib/host";import{InertHint as yM}from"efficient-easel/panel";import{jsx as gr,jsxs as Wc}from"react/jsx-runtime";var dge="__create-a-new-form__";function pVe({value:e,forms:t,loadFailed:o,emptyLabel:n}){let r=t??[],a=e?r.some(p=>p.slug===e):!0,i=t===null&&!o,s={value:"",label:i?u("Loading\u2026"):o?u("Forms couldn\u2019t be loaded"):n===void 0?u("No form yet"):u(n)},l=e&&!a?[{value:e,label:i||o?e:u("{slug} \u2014 no form with this name",{slug:e})}]:[],d=r.map(p=>({value:p.slug,label:p.is_active?p.title:u("{title} (switched off)",{title:p.title})})),c=i?[]:[{value:dge,label:u("Create a new form")}];return[s,...l,...d,...c]}function mVe(e){return e===dge?{action:"create"}:{action:"store",slug:e}}function uVe({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 fVe(e){let t=[u("Goes to {place}",{place:u("Storefront \u2192 Forms")})],o=(e.notify_email??"").trim();return o&&t.push(u("Emails a copy to {email}",{email:o})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?u("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):u("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?u("Creates a wholesale account"):u("Creates a retail account")),t}function vM({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=cVe(),a=lVe(dVe),i=a?a.capabilities.hasForms:!0,[s,l]=FO(null),[d,c]=FO(!1),[p,m]=FO(!1),[f,g]=FO(!1),h=IO(!0),b=IO(e);b.current=e;let w=IO(t);w.current=t;let x=IO(null),y=(P=!1)=>sge(P).then(I=>{if(h.current){l(I),c(!1);let F=uVe({value:b.current,pickedId:x.current,forms:I});F&&w.current(F)}return I},()=>(h.current&&c(!0),[]));lge(()=>(h.current=!0,i&&y(),()=>{h.current=!1}),[i]),lge(()=>i?$R(()=>{y(!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 v=!!e&&!k&&s!==null&&!d,E=pVe({value:e,forms:s,loadFailed:d,emptyLabel:n}),T=async()=>{m(!0),g(!1);try{let P=await Sde(r,{mode:"create"}),I=await y(!0);if(!h.current)return;if(P.status==="timeout"){g(!0);return}if(P.status!=="saved")return;let{form:F}=P;F.slug!==b.current&&w.current(F.slug),I.some(H=>H.id===F.id)||y(!0)}finally{h.current&&m(!1)}},_=P=>{let I=mVe(P);I.action==="create"?T():(g(!1),t(I.slug))};return i?Wc("div",{className:"sf-formpicker",children:[gr(tw,{label:o,options:E,fallback:"",value:e??"",onChange:_,placeholder:u("Search forms\u2026")}),f&&gr("p",{className:"sf-formsummary-warn",children:u("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),k?Wc("div",{className:"sf-blogsource sf-formsummary",children:[Wc("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,I)=>gr("li",{children:P.label},P.key||`${P.label}-${I}`))}):gr(yM,{children:u("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),Wc("div",{children:[gr("div",{className:"sf-formsummary-caption",children:u("Where the answers go")}),gr("ul",{className:"sf-formsummary-fields",children:fVe(k).map(P=>gr("li",{children:P},P))})]}),!k.is_active&&gr("p",{className:"sf-formsummary-warn",children:u("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:u("Storefront \u2192 Forms")})}),Wc("div",{className:"sf-formsummary-actions",children:[gr(BO,{variant:"secondary",size:"md",onClick:()=>kde(r,k.id),children:u("Edit form \u270E")}),gr(BO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:u("New form +")})]}),gr("p",{className:"es-field-hint",children:u("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:u("Storefront \u2192 Forms")})})]}):Wc("div",{className:"sf-blogsource sf-formsummary",children:[d?Wc(yM,{children:[u("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):v&&gr("p",{className:"sf-formsummary-warn",children:u("This section points at \u201C{slug}\u201D, and this website has no form with that name. Pick one from the list above, or leave it \u2014 nothing has been changed.",{slug:e??""})}),Wc("div",{className:"sf-formsummary-actions",children:[d&&gr(BO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{y(!0)},children:u("Try again")}),gr(BO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:u("New form +")})]}),!d&&gr("p",{className:"es-field-hint",children:u("Pick a form to show here, or build a new one. Forms are made once in {place} and can be shown on any number of pages.",{place:u("Storefront \u2192 Forms")})})]})]}):gr("div",{className:"sf-formpicker",children:gr("div",{className:"sf-blogsource sf-formsummary",children:Wc("div",{children:[gr("div",{className:"sf-formsummary-caption",children:u(o)}),Wc(yM,{children:[u("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as hVe}from"react/jsx-runtime";function Uc(e,t){return{type:"custom",render:({value:o,onChange:n})=>hVe(vM,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{createContext as gVe,useContext as bVe}from"react";import{jsx as Gc,jsxs as kM}from"react/jsx-runtime";function SM(e){return mc(e)??void 0}var TM=gVe({}),cge=3;function EM({tag:e,name:t,desc:o,href:n,imageSrc:r,imageLabel:a,price:i}){let s=ge(),{showPrice:l,cardStyle:d,partStyles:c,editing:p,ownerId:m,Template:f}=bVe(TM),g=d==="bordered"?" border border-line":d==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",h=SM(r),b=Fn();if(f){let y={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:h??"",tag:e??"",href:n||"#"};return b.scope(Gc("div",{className:Qt(`block w-full min-w-0 ${kb}${s?` ${su}`:""}`,b.className),...b.attrs,children:Gc(Ke,{ownerId:m??"Collections",ownerType:"Collections",Template:f,rows:[y],fallback:null,children:S=>S})}))}let w=y=>p?{[gb]:y}:{},x=y=>EP(c?.[ad(y)]?.role,Jh[y],fP);return b.scope(kM(He,{href:n||"#",className:Qt(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${g}`,b.className),...b.attrs,children:[Gc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${dme}`,children:Gc(ao,{label:a||"collection.jpg",src:h})}),Gc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${mme} max-view-wide:hidden`,style:{transition:"none"}}),kM("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&&Gc("span",{...w("tag"),style:x("tag"),className:`font-mono ${qp.tag} uppercase tracking-[0.25em] opacity-70`,children:N(e)}),t&&Gc("h3",{...w("name"),style:x("name"),className:`font-heading2 ${qp.name} font-medium leading-none tracking-[-0.03em] ${qp.namePhone}`,children:typeof t=="string"?re(t,!1):t}),o&&Dt(o).map((y,S)=>Gc("p",{...w("body"),style:x("body"),className:`max-w-[420px] ${qp.body} leading-[1.5] opacity-80`,children:N(y)},S)),l&&i&&Gc("span",{...w("price"),style:x("price"),className:`font-mono ${qp.price} tracking-[0.05em] text-accent`,children:N(i)}),kM("span",{...w("link"),style:x("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${qp.link} uppercase tracking-[0.2em]`,children:["Explore",Gc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as vge,useCallback as HVe,useContext as yge,useEffect as kge,useRef as DVe,useState as NM}from"react";import{slugify as MVe}from"efficient-shell/format";import{useState as vVe}from"react";import{jsx as PM,Fragment as wVe}from"react/jsx-runtime";function yl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=wte(e),a=xte(e),i=t?a:r,s=bte(i);return o&&!i?PM("span",{[uu]:e,children:n}):i?PM("span",{ref:s,[oee]:i.stamp,...i.textStyle?{[nee]:i.textStyle}:{},children:n}):PM(wVe,{children:n})}var pge="mosaic",xVe=260,yVe=150;function mge(e){let t=`.${e}.sf-gallery-zone`;return`${t}{grid-auto-rows:${xVe}px}@media (max-width:${o_}px){${t}{grid-auto-rows:${yVe}px}}`}function uge(e){return e>1?`${e} photos`:""}import{jsx as or,jsxs as pf}from"react/jsx-runtime";var _M=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function CM({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:m}){let f=S=>wre(l,d,S),g=S=>p&&c?{[JQ]:c,[QQ]:`@${S}`}:{},h=(S,k)=>!p&&c?or(yl,{kind:`@${S}`,shared:!0,children:k}):k,[b,w]=vVe(!1);if(m!=null)return or(kVe,{build:e,count:m,ratio:i,shown:f,keptAttrs:g,kept:h});let x=AJ(s),y=pf("div",{className:["sf-card group relative overflow-hidden bg-surface-2",Ih(i),t?"max-view-wide:hidden":""].join(" "),children:[pf("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:[or(ao,{label:e.imageLabel,src:e.imageSrc}),!o&&or("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),or("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&&or(Qs,{src:e.detailSrc,alt:"",fill:!0,sizes:"(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:b?"none":"block"},onError:()=>w(!0)})}),(e.process||r!=null&&a!=null)&&pf("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&&or("span",{...g("tag"),className:["min-w-0 truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent",f("tag"),"transition-opacity duration-300 ease-out",o||n?"opacity-100":"opacity-0 group-hover:opacity-100 max-view-wide:opacity-100"].join(" "),children:h("tag",vo(e.process))}),r!=null&&a!=null&&or("span",{...g("number"),className:`ml-auto shrink-0 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] ${f("number")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:h("number",_M(r,a))})]}),or("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:pf("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&&or("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] ${f("eyebrow")}`.trim(),children:h("eyebrow",e.car)}),e.wheel&&or("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 ":""}${f("title")}`.trim(),children:h("title",e.wheel)}),e.finish&&or("div",{...g("meta"),className:`mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em] ${f("meta")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:or("span",{children:h("meta",vo(e.finish))})})]})})]});return x?pf("div",{className:t?"max-view-wide:hidden":"",children:[y,pf("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&or("div",{...g("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${f("title")}`.trim(),children:h("title",e.wheel)}),(e.finish||e.car)&&or("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 ${f(e.finish?"meta":"eyebrow")}`.trim(),children:h(e.finish?"meta":"eyebrow",vo(e.finish||e.car))})]})]}):y}function kVe({build:e,count:t,ratio:o,shown:n,keptAttrs:r,kept:a}){let i=uge(t);return pf("div",{className:`sf-card relative overflow-hidden bg-surface-2 ${Ih(o)}`,style:{color:"var(--overlay-fg)"},children:[or("div",{className:"absolute inset-0 flex items-center justify-center",children:or(ao,{label:e.imageLabel,src:e.imageSrc})}),or("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))"}}),i&&or("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:i}),pf("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&&or("div",{...r("title"),className:`text-[length:var(--size-label,11px)] uppercase tracking-[0.16em] opacity-85 ${n("title")}`.trim(),children:a("title",vo(e.wheel))}),e.car&&or("div",{...r("eyebrow"),className:`mt-1 text-lg leading-normal max-view-wide:text-sm ${n("eyebrow")}`.trim(),children:a("eyebrow",e.car)})]})]})}import{createContext as SVe,useCallback as TVe,useContext as EVe,useEffect as PVe,useLayoutEffect as _Ve,useRef as RM,useState as CVe}from"react";import{createPortal as RVe}from"react-dom";import{Fragment as AVe,jsx as xk,jsxs as IVe}from"react/jsx-runtime";var hge="sf-themed-content",OVe=`.${hge}`,fge="sf-section-accent";function NVe(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(fge)&&(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 ${fge}`:"contents",style:o}}function LVe(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 gge=SVe(()=>{});function $c({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=RM(null),l=RM(null),[d,c]=CVe(null);_Ve(()=>{if(!e){c(null);return}let g=s.current;if(!g)return;let h=g.closest(OVe),b=h?.parentElement??g.ownerDocument.body,w=NVe(g,b);c({host:b,theme:h?{...w,className:`${w.className} ${hge}`}:w})},[e]);let p=RM({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let m=e&&d!==null,f=TVe(()=>p.current.onClose(),[]);return Dc({active:m,onDismiss:f,scopeRef:l}),PVe(()=>{if(!m)return;let g=l.current,h=g?.ownerDocument??document,b=h.activeElement;g?.focus();let w=y=>{if(y.key==="ArrowLeft")p.current.onPrev?.();else if(y.key==="ArrowRight")p.current.onNext?.();else if(y.key==="Tab"&&g){let S=LVe(g);if(S.length===0){y.preventDefault(),g.focus();return}let k=S[0],v=S[S.length-1],E=h.activeElement,T=!!E&&g.contains(E)&&E!==g;if(y.shiftKey&&(!T||E===k))y.preventDefault(),v.focus();else if(!y.shiftKey&&(!T||E===v))y.preventDefault(),k.focus();else{y.preventDefault();let _=S.indexOf(E);S[y.shiftKey?_-1:_+1]?.focus()}}},x=h.defaultView??window;return x.addEventListener("keydown",w),()=>{x.removeEventListener("keydown",w),b&&b.isConnected&&b.focus()}},[m]),e?IVe(AVe,{children:[xk("span",{ref:s,hidden:!0}),d&&RVe(xk("div",{className:d.theme.className,style:d.theme.style,children:xk("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 ${lM[8]} ${a}`,style:{background:sM},children:xk(gge.Provider,{value:t,children:i})})}),d.host)]}):null}var HO="color-mix(in oklab, var(--bg) 70%, transparent)";function hm({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=EVe(gge);return xk("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as FVe,useContext as Ag}from"react";var yk=FVe(null);function bge(){let e=Ag(Z2),t=Ag(yk),o=iR();return e?e.socialLinks??cie:t?t.socialLinks:o.links}function mf(){return Ag(yk)?.commerceEnabled??!0}function BVe(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Tx(){return BVe(Ag(yk))}function wge(){let e=Ag(yk),t=er();return e?e.showThemeSwitch??Fp:t.themeSwitchShown??Fp}function xge(){let e=Ag(Z2),t=Ag(yk),o=er();return e?OR({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?OR({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):OR({siteName:o.websiteName?.trim()||Nu})}import{useBrowserLayoutEffect as zVe}from"efficient-shell/hooks";import{Fragment as Ex,jsx as Bt,jsxs as Un}from"react/jsx-runtime";var WVe="(max-width: 1100px) 100vw, min(59vw, 1050px)",vk=vge({}),Sge=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],AM=vge(null),uf="data-gallery-grid",LM="data-gallery-tile";function UVe(e,t){let[o,n]=NM(null);return kge(()=>{let r=e.current,a=r?.closest(`[${uf}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${LM}]`)),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 _d={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},GVe=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),Tge=Array.from({length:6},GVe);function $Ve(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=MVe(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 Ig({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let i=ge(),{galleryHref:s="/gallery",submitHref:l="/contact",previewHover:d,display:c,displayPhone:p,styleOwner:m,photosOnly:f=!1,wordsAtRest:g=!1,Template:h,ownerId:b,sets:w=!1}=yge(vk),x=$Ve(a),S=mf()&&!f,k=!S&&!KVe(x),v=x.photos??(x.imageSrc?[x.imageSrc]:[]),E=DVe(null),T=HVe(ae=>{E.current=ae},[]),_=UVe(E,e),P=yge(AM),I=P?.report,F=r?.id,H=r?.tag??"",B=r?.name??"";zVe(()=>{if(!I||!F)return;let ae={id:F,tag:H,name:B};return I(ae),()=>I(ae,!0)},[I,F,H,B]);let L=(F?P?.positionOf(F):null)??_,A=e&&(!!t||!!d),[G,K]=NM(!1),[Y,Z]=NM(0),$=!!F&&!!P&&P.walkCount>1,q=ae=>{let Te=Y+ae;if($&&(Te<0||Te>=v.length)){K(!1),P.walk(F,ae);return}Z((Te+v.length)%v.length)},ee=()=>q(-1),O=()=>q(1),R=v.length>1||$,V=P?.opening;kge(()=>{!V||V.id!==F||(Z(V.at==="last"?Math.max(0,v.length-1):0),K(!0))},[V,F]);let X=v[Y]??x.imageSrc??"",M=v.slice(1),te=h?Bt("div",{className:`block w-full min-w-0 ${kb}${i?` ${su}`:""}`,children:Bt(Ke,{ownerId:b??"GalleryB",ownerType:"GalleryB",Template:h,rows:[{key:F??x.imageSrc??"tile",image:x.imageSrc??"",tag:x.process,number:L?_M(L.index,L.total):"",eyebrow:x.car,name:x.wheel,meta:x.finish,href:x.href??""}],items:[{hoverMedia:M.length?{photos:[{finish:"",items:M.map(ae=>({url:ae,kind:"image"}))}]}:null}],previewHover:A,fallback:null,children:ae=>ae})}):Bt(CM,{build:x,forceHover:A,alwaysShowOverlay:g,index:L?.index,total:L?.total,ratio:o,captionPlace:n,display:c,displayPhone:p,styleOwner:m,editing:e,...w?{setCount:v.length}:{}});return Un(Ex,{children:[e?Bt(z,{as:"div",ref:T,[LM]:"",className:"block w-full text-left",children:te}):Bt(z,{as:"button",ref:T,[LM]:"",type:"button","aria-label":S?`Open ${x.car||"build"} on ${x.wheel||"wheel"}`:OM(x),onClick:()=>{Z(0),K(!0)},className:"block w-full cursor-pointer text-left focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2",children:te}),w?Bt($c,{open:G,onClose:()=>K(!1),label:x.car&&x.wheel?`${x.car} on ${x.wheel}`:OM(x),onPrev:R?ee:void 0,onNext:R?O:void 0,className:"bg-bg",children:Bt(qVe,{build:x,set:v,index:Y,onPick:Z,onPrev:R?ee:void 0,onNext:R?O:void 0,onLeave:()=>K(!1)})}):Bt($c,{open:G,onClose:()=>K(!1),label:S?`${x.car} on ${x.wheel}`:OM(x),onPrev:R?ee:void 0,onNext:R?O:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:Un("div",{onClick:ae=>ae.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(hm,{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:HO},children:"\u2715"}),Un("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[X&&Bt("img",{...oo(X,{fallbackWidth:1280}),sizes:WVe,alt:`${(S?x.car:x.wheel||x.car)||"Photo"} \u2014 ${Y+1} of ${v.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},X),R&&Un(Ex,{children:[Bt("button",{type:"button","aria-label":"Previous photo",onClick:ee,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"}),v.length>1&&Un("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:[Y+1," / ",v.length]})]})]}),S?Un("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&&Un("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)})]}),Un("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&&Un(Ex,{children:[Bt("dt",{className:"text-fg-dim",children:"Wheel"}),Bt("dd",{className:"text-fg",children:N(x.wheel)})]}),x.process&&Un(Ex,{children:[Bt("dt",{className:"text-fg-dim",children:"Process"}),Bt("dd",{className:"text-fg",children:N(x.process)})]}),x.finish&&Un(Ex,{children:[Bt("dt",{className:"text-fg-dim",children:"Finish"}),Bt("dd",{className:"text-fg",children:N(x.finish)})]}),x.car&&Un(Ex,{children:[Bt("dt",{className:"text-fg-dim",children:"Vehicle"}),Bt("dd",{className:"text-fg",children:N(x.car)})]})]}),Un("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[Un(He,{href:x.href||"/wheels",onClick:()=>K(!1),className:"group flex items-center justify-between gap-6 border border-btn bg-btn px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-btn-ink transition-colors hover:border-fg hover:bg-fg",children:[Bt("span",{children:"View product"}),Bt("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),Un(He,{href:s,onClick:()=>K(!1),className:"flex items-center justify-between gap-6 border border-line px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[Bt("span",{children:"See more builds"}),Bt("span",{children:"\u2192"})]}),Un(He,{href:l,onClick:()=>K(!1),className:"flex items-center justify-between gap-6 border border-line px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[Bt("span",{children:"Submit your build"}),Bt("span",{children:"\u2192"})]})]})]}):!k&&Bt(VVe,{build:x})]})})]})}function Ege(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function KVe(e){return!!e.wheel||Ege(e).length>0}function OM(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function VVe({build:e}){let t=e.wheel,o=Ege(e);return Un("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 YVe=360,jVe="120px";function qVe({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 Un("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:[Un("div",{className:"relative grid min-h-0 place-items-center bg-surface-2 py-12 max-view-wide:p-0",children:[s&&Bt("img",{...oo(s,{fallbackWidth:1280}),sizes:`(max-width: ${o_}px) 100vw, calc(100vw - ${YVe}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"})]}),Un("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(hm,{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}),Un("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",{...oo(d,{fallbackWidth:320,maxWidth:640}),sizes:jVe,alt:"",loading:"lazy",className:"block aspect-[4/3] w-full object-cover"})},`${d}-${c}`))}),e.wheel&&e.href&&Un(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 oYe,useEffect as kk,useId as nYe,useState as Nr,useSyncExternalStore as rYe}from"react";var XVe=14,ZVe=3;function JVe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function QVe(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),JVe(o)}async function Pge(e,t,o={}){let n=o.days??XVe,r=o.read??Qh.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=QVe(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>=ZVe)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as _ge,formatDateTime as IM,formatTime as Oge}from"efficient-shell/format";var eYe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},Cge={weekday:"long",day:"numeric",month:"long",year:"numeric"},Nge={hour:"numeric",minute:"2-digit"},Rge={...Nge,timeZoneName:"short"};function FM(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function BM(e,...t){let o=ml(...t);return!o||!FM(e)?"":Oge(e,{locale:ZB(),timeZone:o})}function HM(e,...t){let o=typeof e=="string"?{start:e}:e,n=ml(...t),r=FM(o.start);if(!n||!r)return"";let a=ZB(),i=o.end?FM(o.end):null;if(!i||i.getTime()<=r.getTime())return IM(o.start,{locale:a,timeZone:n,style:eYe,zoneName:"short"});let s=IM(o.start,{locale:a,timeZone:n,style:Cge,clock:Nge}),d=_ge(o.start,n)===_ge(o.end,n)?Oge(o.end,{locale:a,timeZone:n,clock:Rge}):IM(o.end,{locale:a,timeZone:n,style:Cge,clock:Rge});return`${s} \u2013 ${d}`}function DO(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as aYe,userToday as iYe,userZone as sYe}from"efficient-shell/format";import{jsx as fYe}from"react/jsx-runtime";var Age=tYe(null);function ff(){let e=oYe(Age);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var DM=[{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:""}],lYe=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function Lge(e,t){return{timezone:"",slots:t?lYe.flatMap(({hour:n,minute:r})=>aYe(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var MM={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function dYe(e){let t=String(e?.slots[0]?.start??"");return t?{...MM,startAt:t}:MM}function Ige(e){return e.bookingNumber===MM.bookingNumber}function cYe(e,t){return e&&t?.length===0}function pYe(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!DO(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function mYe(){return()=>{}}function uYe(){return null}function Fge({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=nYe(),r=rYe(mYe,iYe,uYe)??"",[a,i]=Nr(),[s,l]=Nr(""),[d,c]=Nr(""),[p,m]=Nr(r),[f,g]=Nr(r),[h,b]=Nr(!1),[w,x]=Nr(null),[y,S]=Nr(),[k,v]=Nr(""),[E,T]=Nr(""),[_,P]=Nr(""),[I,F]=Nr(""),[H,B]=Nr(""),[L,A]=Nr(()=>lH()),[G,K]=Nr(null),[Y,Z]=Nr(!1),[$,q]=Nr(!1),[ee,O]=Nr(null),[R,V]=Nr("");kk(()=>{V(sYe()??"")},[]),kk(()=>{let xe=!1;return Qh.listServices().then(ie=>{if(xe)return;let ce=hR(ie);i(ce),l(ie.currency),c(J=>J||ce[0]?.id||"")}).catch(()=>{xe||i([])}),()=>{xe=!0}},[]),kk(()=>{r&&(m(xe=>xe||r),g(xe=>xe||r))},[r]),kk(()=>{if(h||!d||!r)return;let xe={aborted:!1};return v(""),S(void 0),O(null),x(null),Z(!0),Pge(d,r,{signal:xe}).then(ie=>{if(!xe.aborted){if(ie.outcome==="found"){m(ie.date),g(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}},[h,d,r]),kk(()=>{if(!h||!d||!p)return;let xe=!1;return v(""),S(void 0),O(null),x(null),Z(!0),Qh.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,h,d]);let X=a?.find(xe=>xe.id===d),M=X?.depositAmountDue!=null,te=pYe({editing:e,submitting:$,hasService:!!X,hasDay:!!p,selectedStart:k,name:E,email:_,requiresPayment:M},Date.now());async function ae(xe){if(xe.preventDefault(),!(!te||!X)){q(!0),O(null);try{let ie=await Qh.create({serviceId:X.id,start:k,customer:{name:E.trim(),email:_.trim(),phone:I.trim()},notes:H.trim(),idempotencyKey:L,customerTimezone:R});K(ie),A(lH())}catch(ie){O(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&&(v(""),Qh.getAvailability(X.id,p).then(S).catch(()=>{}))}finally{q(!1)}}}let Te=cYe(e,a),De=Te?Lge(p,R):void 0,_t=t&&!G?dYe(De??Lge(p,R)):null;return fYe(Age.Provider,{value:{fieldPrefix:n,editing:e,services:Te?DM:a,currency:Te?"AUD":s,serviceId:Te?DM[0].id:d,setServiceId:c,service:Te?DM[0]:X,requiresPayment:Te?!1:M,date:p,earliestDate:f,setDate:m,setDateTouched:b,availability:De??y,loadingSlots:Te?!1:Y,noSlotsMessage:w,selectedStart:De?De.slots[0]?.start??"":k,setSelectedStart:v,customerTimezone:R,name:E,setName:T,email:_,setEmail:P,phone:I,setPhone:F,notes:H,setNotes:B,confirmation:G??_t,submitting:$,error:ee,canSubmit:Te?!1:te,handleSubmit:ae,sample:!!Te},children:o})}import{jsx as MO,Fragment as Bge,jsxs as Hge}from"react/jsx-runtime";var Dge=`sf-button group inline-flex items-center justify-center gap-2.5 border ${jre} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,Mge={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 ya(e){let{variant:t="primary",arrow:o,glyphBefore:n,spread:r,className:a,style:i,part:s,glyphPart:l,children:d,href:c,newTab:p,hrefRewrite:m,...f}=e,g=`${r?Dge.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):Dge} ${Mge[t]??Mge.primary} ${a??""}`,h=n?Hge(Bge,{children:[o!==null&&MO("span",{"aria-hidden":!0,className:"inline-flex",...l,children:o??"\u2192"}),d]}):Hge(Bge,{children:[d,o!==null&&MO("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",...l,children:o??"\u2192"})]});return c?MO(xt,{href:c,className:g,style:i,newTab:p?!0:"auto",...m?{hrefRewrite:m}:{},...s,children:h}):MO("button",{type:"button",className:g,style:i,...f,children:h})}import{jsx as hYe}from"react/jsx-runtime";var Sk=e=>hYe("div",{className:"grid bg-bg",children:e});import{jsx as mo,jsxs as Cd}from"react/jsx-runtime";var Tk="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 gYe(e,t){let o=Number(e);if(o===0)return eg;try{return hle(o,t)}catch{return`${t} ${e}`}}var zge={selected:!0};function Wge(e,t){return({index:o})=>t?{[y_]:v_(e,o)}:{}}var Ek="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function zM({number:e,children:t}){return Cd("div",{className:"mb-4 flex items-center gap-3",children:[mo("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}),mo("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 zO({eyebrow:e,heading:t,intro:o}){return Cd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&mo("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&mo("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()&&mo("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function WO({style:e,owner:t}){let{fieldPrefix:o,services:n,currency:r,serviceId:a,setServiceId:i,requiresPayment:s,date:l,earliestDate:d,setDate:c,setDateTouched:p,availability:m,loadingSlots:f,noSlotsMessage:g,selectedStart:h,setSelectedStart:b,customerTimezone:w,editing:x}=ff();if(!n)return null;let y=Date.now(),S=ml(w,m?.timezone??""),k=ml(m?.timezone??""),v=k&&k!==S?k:"",E=(m?.slots??[]).map(T=>({start:T.start,time:BM(T.start,S),businessTime:v?`${BM(T.start,v)} business`:"",passed:!x&&DO(T.start,y)}));return Cd(z,{className:"flex flex-col gap-10",style:e,children:[Cd("div",{children:[mo(zM,{number:"01",children:"Choose a service"}),mo("div",{className:"grid gap-3 sm:grid-cols-2",children:mo(Ke,{ownerId:t.id,ownerType:t.type,slot:Sg,Template:t.serviceTemplate,rows:n.map(T=>({name:T.name,meta:`${T.durationMinutes} min \xB7 ${gYe(T.price,r)}`,description:T.description??""})),states:n.map(T=>T.id===a?zge:void 0),actions:x?void 0:n.map(T=>({press:()=>i(T.id),label:T.name})),copyAttrs:Wge(Sg,x),fallback:null,wrapCopy:Sk,children:T=>mo(Lo,{children:T})})}),s&&mo("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."})]}),Cd("div",{children:[mo(zM,{number:"02",children:"Choose a date and time"}),mo(Kr,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:Ek,children:mo("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:T=>{p(!0),c(T.target.value)},className:Tk,required:!0})}),mo("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 min-[1200px]:grid-cols-4",role:"group","aria-label":"Available appointment times",children:f?mo("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",children:"Loading times\u2026"}):m?.slots.length?mo(Ke,{ownerId:t.id,ownerType:t.type,slot:Tg,Template:t.timeTemplate,rows:E.map(T=>({time:T.time,businessTime:T.businessTime})),states:E.map(T=>T.start===h&&!T.passed?zge:void 0),actions:x?void 0:E.map(T=>({press:()=>b(T.start),label:T.time,disabled:T.passed})),copyAttrs:Wge(Tg,x),fallback:null,wrapCopy:Sk,children:T=>mo(Lo,{children:T})}):g?mo("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",role:"status",children:g}):null}),S&&!f&&!!m?.slots.length&&Cd("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,v?` \xB7 business timezone ${v}`:""]})]})]})}function UO({buttonLabel:e,style:t}){let{fieldPrefix:o,editing:n,name:r,setName:a,email:i,setEmail:s,phone:l,setPhone:d,notes:c,setNotes:p,submitting:m,error:f,canSubmit:g}=ff();return Cd(z,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[mo(zM,{number:"03",children:"Your details"}),Cd("div",{className:"flex flex-col gap-4",children:[mo(Kr,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:Ek,children:mo("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:h=>a(h.target.value),className:Tk,required:!0})}),mo(Kr,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:Ek,children:mo("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:h=>s(h.target.value),className:Tk,required:!0})}),mo(Kr,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:Ek,children:mo("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:h=>d(h.target.value),className:Tk})}),mo(Kr,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:Ek,children:mo("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:h=>p(h.target.value),className:`${Tk} resize-y`})})]}),f&&mo("p",{className:"mt-4 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.16em] text-alert",role:"alert",children:f}),mo(ya,{type:n?"button":"submit",disabled:!g,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:m?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function GO({successMessage:e}){let{confirmation:t,customerTimezone:o}=ff();if(!t)return null;let n=ml(t.customerTimezone,o,t.timezone),r=ml(t.timezone),a=r&&r!==n?r:"";return Cd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[Cd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),mo("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),mo("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:HM(t.startAt,n)}),a&&Cd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",HM(t.startAt,a)]}),(e??"").trim()&&mo("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),mo(ya,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!Ige(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Px}from"react/jsx-runtime";var Uge=["head","booking","details","confirm"],Gge={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function WM({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}=ff(),m=Iue(d);return e==="head"?Px(z,{className:"min-[960px]:col-span-2",style:m,children:Px(zO,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Px(z,{className:"min-[960px]:col-span-2",style:m,children:Px(GO,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Px(WO,{style:m,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Px(UO,{buttonLabel:s,style:m}):null}import{useEffect as $ge,useState as hf}from"react";import{jsx as _x,jsxs as wYe}from"react/jsx-runtime";function Kc(e,t){let[o,n]=hf(void 0),[r,a]=hf(0);return $ge(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return Ao.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),$ge(()=>{if(t===void 0)return $R(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var bYe="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Cx(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function gf({form:e,formSlug:t,editing:o=!1}){let[n,r]=hf({}),[a,i]=hf(""),[s,l]=hf(!1),[d,c]=hf(!1),[p,m]=hf(null),[f,g]=hf(null);async function h(b){if(b.preventDefault(),!(o||s||!e||!t)){l(!0),g(null);try{let w=e.fields.map(y=>({fieldKey:y.key,value:n[y.key]??""})),x=await Ao.submitForm(t,{answers:w,...a?{company:a}:{}});m(x?.account??null),c(!0)}catch{g(bYe)}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:f,handleSubmit:h}}function Rx({value:e,onChange:t}){return _x("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function bf({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"?_x("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:[_x("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>_x("option",{value:d,children:d},d))]}):e.type==="checkbox"?_x("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):_x("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 vl,jsxs as Pk}from"react/jsx-runtime";function xYe(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function Kge({eyebrow:e,title:t}){return Pk("div",{className:"flex flex-col gap-4",children:[e&&vl(ft,{text:e,scaled:!1}),t&&vl("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 $O({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return Pk("div",{className:"flex flex-col gap-8",children:[e&&Dt(e).map((l,d)=>vl("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:N(l)},d)),a&&(n?r.done?vl("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:Cx(n)}):Pk("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",xYe(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?Pk("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:[vl(bf,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),Pk("span",{children:[l.label,l.required?vl("span",{className:"text-accent",children:" *"}):null]})]},l.key):vl(bf,{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)}),vl(Rx,{value:r.honeypot,onChange:r.setHoneypot}),r.error&&vl("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:r.error}),vl("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)})]}):vl("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:i?u("Loading form\u2026"):u("Choose a form in the inspector, under Form \u2014 until then this form is hidden on the live page and nothing can be submitted.")})),a&&o&&vl("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:N(o)})]})}var KO=["field","tick","thanks"],Vge={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},VO={field:"styleField",tick:"styleTick",thanks:"styleThanks"},yYe={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 vYe(e){return typeof e=="string"&&db.includes(e)?e:null}function Yge(e){let t={};for(let o of KO){let n=vYe(e[VO[o]]);n&&Object.assign(t,Lc(n,yYe[o]))}return t}import{jsx as YO}from"react/jsx-runtime";var jge=["head","form"],qge={head:"Head",form:"Form"};function UM({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=Kc(i,s),p=gf({form:c,formSlug:i,editing:l}),m=Yge(d);return e==="head"?YO(z,{as:"div",style:m,children:YO(zt,{look:"statement",num:t,title:o})}):YO(z,{as:"div",style:m,children:YO($O,{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:()=>Uge.map(e=>({region:e,name:Gge[e]})),addBlocked:()=>u("A Booking Form is these three boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},SubmitBuild:{slot:"boxes",childType:"SubmitBox",addLabel:"Add box",fixed:!0,seeds:()=>jge.map(e=>({region:e,name:qge[e]})),addBlocked:()=>u("A Submit-a-build section is these two boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},Collections:{slot:"cards",childType:"CollectionCard",addLabel:"Add card",seeds:()=>Array.from({length:cge},()=>({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:()=>Tge.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};Tne(kYe);import{jsx as Xge}from"react/jsx-runtime";var SYe={body:"text-[length:var(--size-body,17px)]"},gm=5;function Ox({rating:e}){let t=Math.min(gm,Math.max(0,Math.round(e)));return Xge(z,{role:"img","aria-label":`${t} out of ${gm} stars`,className:`flex gap-1 ${SYe.body} leading-none`,children:Array.from({length:gm}).map((o,n)=>Xge("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var GM="mx-auto max-w-[var(--sf-site-width,1600px)]",TYe=[/^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 Zge(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function $M(e){return e.split(/\s+/).filter(t=>t&&!TYe.some(o=>o.test(Zge(t)))).join(" ")}var EYe=new Set(["max-view-desktop","max-view-wide"]);function PYe(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 Nx(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=Zge(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?PYe(l[1]):void 0;d!==void 0&&(i?EYe.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as _Ye,jsx as CYe}from"react/jsx-runtime";function KM({inBox:e,atTop:t,anyBox:o=!1}){let n=Eu(),r=Yb();return CYe(_Ye,{children:n||o&&r?e:t})}import{createContext as Jge,useContext as YM}from"react";import{Fragment as OYe,jsx as VM}from"react/jsx-runtime";var RYe={atTop:null,inBox:null},jM=Jge(RYe);function jO({pad:e,children:t}){return VM(jM.Provider,{value:e,children:t})}var br=()=>YM(jM).atTop,Qge=()=>YM(jM),e0e=Jge(void 0);function t0e({pads:e,children:t}){return e?VM(e0e.Provider,{value:e,children:t}):VM(OYe,{children:t})}var o0e=()=>YM(e0e);import{jsx as _k}from"react/jsx-runtime";function kt({className:e,capped:t=!1,column:o=_i,style:n,defaults:r,id:a,attrs:i,rootRef:s,inAnyBox:l=!1,padOnColumn:d=!1,children:c}){let p=ge(),m=Qge(),f=$M(e),g=o===null?"":$M(o),{className:h,style:b,...w}=_e(f,m.inBox,n),x=_k(z,{as:"section",ref:s,...i,...w,className:h||void 0,style:b,id:a,children:g?_k("div",{className:g,children:c}):c}),y=r?{...r,...n}:n,S=d?null:m.atTop,k=d?m.atTop:null,{className:v,style:E,...T}=_e(t?`${GM} ${e}`:e,S,y),_=_k(z,{as:"section",ref:s,...i,...T,className:v,style:E,id:a,children:o===null?c:_k("div",{..._e(he(o,p),k),children:c})});return _k(KM,{inBox:x,atTop:_,anyBox:l})}import{Fragment as LYe,jsx as bm,jsxs as qO}from"react/jsx-runtime";var Lx={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)]"},NYe="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))]",qM="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 XM({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:qO(kt,{className:"relative z-[2] border-t border-line bg-surface",column:l?qM:NYe,padOnColumn:!0,children:[l?null:qO(LYe,{children:[(t??"").trim()&&bm(ft,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&bm("h2",{className:`mb-12 font-heading2 ${Lx.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${Lx.headingMediumUpTo800}`,children:re(o??"",!1)})]}),bm("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=>qO("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&&bm(Ox,{rating:c.rating}),(c.title??"").trim()&&bm("h3",{className:`font-display ${Lx.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),bm("div",{className:`flex-1 font-serif ${Lx.bodySmall} leading-[1.65] text-fg-dim`,children:Dt(c.quote).map((p,m)=>bm("p",{className:m?"mt-3":"",children:p},m))}),qO("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[bm("span",{className:`font-mono ${Lx.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),bm("span",{className:`font-mono ${Lx.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var n0e=Nx(qM),ZM={top:84,bottom:n0e.bottom,topPhone:84,bottomPhone:n0e.bottomPhone},r0e=ZM,[AYe,IYe]=E2("Testimonials"),FYe={type:Ks,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:{[Vs]:[{type:"Text",props:{...$e,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Ie("quote",Rt,{size:16,lineHeight:1.6}),{type:Ks,props:{...Ue,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Vs]:[Ie("name",$e,{...rd,weight:500,letterSpacing:.04}),Ie("role",Rt,{textStyle:"body-5"})]}}]}},BYe={name:"Testimonials",boxProps:e=>({...ic,direction:"column",gap:44,sectionBorder:{top:1},...fu(e,r0e)}),box:[...Mp,...Dh(r0e)],parts:[{kind:"group",name:"Heading",props:{...Ue,gap:16},parts:[{...AYe,props:$e},{...IYe,props:$e,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[FYe]}}],site:hee("title"),drop:{...sc,...lc,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"}};In({Testimonials:BYe});var jr={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 ZO,tabletKey as JM}from"efficient-easel/draw";var HYe={textStyle:"body-5",...ho("label",14),letterSpacing:.05,lineHeight:1.5},DYe={type:Ks,props:{...Ue,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[ZO("share")]:"content",[ZO("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Vs]:[Ie("label",Rt,{...Aa(14),letterSpacing:.05,lineHeight:1.5}),Ie("value",{...$e,align:"right"},{...HYe,align:"right"})]}},a0e={[zh]:A_},MYe=["dynamic","source","finish","size","wheel"],Ck=ol("SpecTable",{slots:{template:[DYe]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...Ue,direction:"row",share:"content",gap:48,[JM("gap")]:80,[ZO("gap")]:80,...a0e}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),zYe=Ck.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(MYe.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),XO=Nx(jr.ownBox),WYe={...Ck,parts:zYe,boxProps:(e,t)=>{let o=typeof Ck.boxProps=="function"?Ck.boxProps(e,t):Ck.boxProps;return{...o,sectionPaddingBottom:XO.bottom,sectionPaddingBottomPhone:XO.bottomPhone,...a0e,[JM("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[JM("sectionPaddingBottom")]:XO.bottomPhone,[ZO("gap")]:36,...XO.line?{sectionBorder:__({bottom:1})}:{}}}};In({SpecTable:WYe});In({ProductGrid:ol("ProductGrid",{slots:{[Lt]:[hfe()]},pressHeading:!0})});In({Events:ol("Events",{slots:{[Lt]:w8()},coreProps:{sectionAccent:VP},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});In({Collections:ol("Collections",{slots:{[Lt]:[x8()]},roomBelow:ume,pressHeading:!0})});In({GalleryB:ol("GalleryB",{slots:{[Lt]:[y8()]},roomBelow:{bottom:mi.bottom,bottomPhone:E5},pressHeading:!0})});In({[hr]:{name:"Product hero",box:[...zJ],boxProps:{direction:"column",gap:0,gapPhone:0,...gt(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[rx]:ax},slots:e=>({[Lt]:$D(e)})}]}});var QM=Nx(jr.ownBox);In({FitmentTable:ol("FitmentTable",{slots:{[rO]:[efe()],[of]:[tfe()]},roomBelow:{bottom:QM.bottom,bottomPhone:QM.bottomPhone},boxProps:QM.line?{sectionBorder:__({bottom:1})}:{},pressHeading:!0})});var UYe=e=>({type:Ks,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:{[Vs]:[{type:Ks,props:{...Ue,name:"Words",direction:"column",gap:16},slots:{[Vs]:[Ie("eyebrow",$e,{...Aa(13),color:"accent"}),Ie("title",$e,{textStyle:"heading-2",...ho("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Ie("copy",Rt,{textStyle:"body-1",...ho("body",15),lineHeight:1.6})]}},{type:Ks,props:{...Ue,name:"Picture",direction:"column",gap:12},slots:{[Vs]:[{type:"ImageBlock",props:{[zs]:"image",aspect:"1/1",fit:"contain"}},Ie("tag",{...Rt,align:"right"},{...Aa(11),align:"right"})]}}]}}),GYe={name:"Feature Rows",boxProps:{...ic,...bee,direction:"column",gap:0},box:Mp,parts:[{kind:"core",keep:"rest",slots:e=>({template:[UYe(e.startLeft===!0)]})}]};In({DetailRows:GYe});import{phoneKey as t9}from"efficient-easel/draw";var QO=e=>[...Mp.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>P_(t,n)],...Dh(e)],o9=(e,t,o)=>(n,r)=>({...ic,sectionAccent:P_(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...fu(n,e)}),n9=(e,t,o)=>({kind:"text",key:e,role:"heading",props:$e,style:{textStyle:"heading-2",...ho("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),r9=(e,t,o={})=>({kind:"group",name:"Heading",props:{...Ue,gap:e,gapPhone:e,...o},parts:t}),a9=(e={})=>({kind:"core",keep:"rest",props:T_,...e}),JO=ZM,[$Ye]=E2("ReviewForm"),KYe=()=>({name:"Review Form",boxProps:o9(JO,48,32),box:QO(JO),parts:[r9(16,[{...$Ye,props:$e},n9("title",1,-.02)]),a9()],pressKeepsEmpty:["eyebrow","title"],drop:{...sc,...lc,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[VYe]=E2("Reviews"),e9=e=>({...Aa(12),letterSpacing:e}),YYe={type:Ks,props:{...Ue,name:"Card",gap:16,...gt(40,40,32,32),sectionAccent:0},slots:{[Vs]:[{type:"RatingBlock",props:{[zs]:"rating"}},Ie("title",$e,{textStyle:"heading-1",...ho("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Ie("quote",Rt,{textStyle:"body-1",...ho("body",15),lineHeight:1.65}),{type:Ks,props:{...Ue,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[t9("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Vs]:[Ie("name",$e,e9(.22)),Ie("dateLabel",{...Rt,align:"right"},{...e9(.18),align:"right"}),Ie("role",{...Rt,align:"right"},{...e9(.18),align:"right"})]}}]}},jYe=()=>({name:"Reviews",boxProps:o9(JO,48,32),box:QO(JO),parts:[r9(16,[{...VYe,props:$e},n9("title",1,-.02)]),a9({slots:{template:[YYe]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...sc,...lc,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"}}),i0e={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},qYe=()=>({name:"Booking Form",boxProps:o9(i0e,40,40),box:QO(i0e),parts:[r9(16,[E_("eyebrow",{...ho("label",12),weight:600,letterSpacing:.24,color:"accent"}),n9("heading",.98,-.025),{kind:"text",key:"intro",props:{...Rt,maxWidth:660},style:{textStyle:"heading-1",...ho("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),a9()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...sc,...lc}}),s0e={top:88,bottom:88,topPhone:64,bottomPhone:64},XYe=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...ic,direction:"column",align:"center",gap:20,gapPhone:20,...fu(e,s0e)}),box:[...Mp,...Dh(s0e)],parts:[{...E_("eyebrow"),props:{...$e,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...$e,align:"center",maxWidth:720},style:{textStyle:"heading-1",...ho("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",...ho("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...Ue,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[t9("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...fee,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...L2,align:"center",icon:"none"},style:{...ou(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...sc,...lc}}),l0e={top:60,bottom:0,topPhone:60,bottomPhone:0},ZYe=()=>({name:"Contact Form",boxProps:(e,t)=>({...ic,sectionAccent:P_(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...fu(e,l0e)}),box:QO(l0e),parts:[{kind:"group",name:"Header",props:{...Ue,direction:"row",align:"center",share:"content",phoneRow:2,[t9("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[E_("routingNumber"),{kind:"text",key:"routingTagline",props:Rt,style:{textStyle:"heading-1",...ho("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:gee(e.sectionAccent??0,t)})}}],drop:{...sc,...lc}});In({ContactRouting:ZYe(),ReviewForm:KYe(),AppointmentBooking:qYe(),Reviews:jYe(),CheckoutCTA:XYe()});var d0e={top:40,bottom:40,topPhone:40,bottomPhone:40},c0e={textStyle:"heading-1",...Gee("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},i9=["heading","intro"],p0e=[Lt,Ga,$a,Ka];function JYe(e,t){let o=(t?wb:LZ)(Eo,e);return Object.fromEntries(p0e.map(n=>[n,o[n]]))}var QYe=()=>({name:"List",boxProps:e=>({...ic,direction:"column",gap:24,gapPhone:24,...fu(e,d0e)}),box:[...Mp,...Dh(d0e)],parts:[{kind:"group",name:"Heading",props:{...Ue,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...$e,tag:"h1"},style:c0e,when:e=>!Z6(e)},{kind:"text",key:"heading",role:"heading",props:{...$e,tag:"h2"},style:c0e,when:Z6},{kind:"text",key:"intro",role:"body",props:Rt,style:{textStyle:"body-1",...ho("body",15)}}]},{kind:"core",keep:"rest",props:T_,derive:{reads:[...p0e],props:(e,t)=>JYe(e,t.press===!0)}}],pressKeepsEmpty:i9,drop:{...sc,...lc,[K_]:"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"}});In({AlloyWheelsListing:QYe()});var m0e={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as eje,useContext as tje}from"react";function yt(e){return Mt}import{Fragment as nje,jsx as Ax}from"react/jsx-runtime";var oje=yt("ProductCard")("buy"),Po={headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},Ix=eje("catalog");function ks(){return tje(Ix)==="catalog"}function wf({children:e}){let t=ks();return Ax(nje,{children:e??(t?Ax(z,{"aria-hidden":!0}):null)})}function Fx({children:e}){return Ax(wf,{children:e?Ax(z,{children:e}):null})}function eN({children:e}){return Ax(wf,{children:e?Ax(z,{className:"[.sf-card-rows>*>&]:self-end",...oje,children:e}):null})}var u0e={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:PP(Po.label),writable:!0,sized:!0}},f0e={sku:{label:"SKU",follows:"Label",builtIn:PP(Po.label),writable:!0,sized:!0}},h0e={name:{label:"Name",follows:"Heading 3",builtIn:PP(Po.headingSmall2),writable:!0,sized:!0}};lse({ProductPrice:m0e,ProductEyebrow:u0e,ProductName:h0e,ProductSku:f0e});function Bx(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as rje}from"react/jsx-runtime";import{OpacityIcon as aje}from"efficient-easel/icons";import{group as tN}from"efficient-easel/screen/lib/document/box-fields";var g0e={fields:{_gContent:tN("Content"),eyebrow:W("Eyebrow",Su.eyebrow),title:j("Heading",Su.title),body:j("Body",Su.body),_gBackground:tN("Background image"),imageSrc:rt("Image","image/*"),overlay:le("Overlay",rje(aje,{}),0,100,5,60,"%"),_gButton:tN("Button"),...xl,_gLayout:tN("Layout")}};import{jsx as Rk}from"react/jsx-runtime";import{GroundIcon as w0e,ListIcon as ije}from"efficient-easel/icons";function x0e(e){let t=e?.data?.root,o=Coe(t?.props)??"";return o&&xB(o,"text").length?o:""}var s9="outsideCardTemplate",sje={not:{context:s9,is:!0}},Ya={[s9]:(e,t)=>{let o=Ip(t.appState,e.props?.id);if(o!==void 0)return o===null&&!x0e(t.appState)},[FX]:(e,t)=>{let o=id(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[HX]:(e,t)=>id(t.appState,e.props?.id)?.inCopy};function qr(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?Rk(Qn,{noun:"link"}):t==="colour"?Rk(w0e,{}):Rk(ije,{}),a={...ne(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return ot(a,sje)}function Vc(){return qr("Link from","link")}var lje={any:[{field:jo,set:!1},{context:s9,is:!0,default:!0}]};function xf(e){return ot(e,lje)}function Ok(e){return e.kind==="link"?Cr(Q(e.label)):e.kind==="colour"?dje(e.label):e.multiline?Je(e.label):ve(e.label)}function dje(e){return{type:"custom",render:({value:t,onChange:o})=>Rk(Lae,{label:e,icon:Rk(w0e,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function cje(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var b0e=new WeakMap;function ja(e,t,o){let n=Object.keys(e).filter(k=>cje(e[k]));if(!n.length)return e;let r=t.props??{},a=Ip(o.appState,r.id),i=typeof a?.type=="string"?a.type:"",s=a?b6(o.appState,r.id)??"":"",l=n.map(k=>typeof r[k]=="string"?r[k].trim():""),d=ht(a?.props),c=i===zr?Ip(o.appState,a?.props?.id):null,p=c?b6(o.appState,a?.props?.id)??void 0:void 0,m=c?NP(a?.props,c.type,p):"",f=c?ht(c.props):"",g=c?`${String(c.type??"")}\0${f}\0${p??""}`:"",h=i===zr&&!c?JSON.stringify(a?.props?.[RZ]??null):"",b=a?"":x0e(o.appState),w=[i,s,d,m,g,h,uP(),b,voe(),...l].join("\0"),x=b0e.get(e);x||b0e.set(e,x=new Map);let y=x.get(w);if(y)return y;let S={...e};return n.forEach((k,v)=>{let E=e[k],T=i===zr?Nh(o.appState,a,E.cardRowKind):i?IZ(a,E.cardRowKind,s||void 0):xB(b,E.cardRowKind),_=E.cardRowKind==="link"&&!!i&&!T.length;if(!l[v]&&(_||(E.cardRowContent?!i||!T.length:!T.length&&!i&&b))){delete S[k];return}let P=l[v]&&!T.some(H=>H.key===l[v])?l[v]:"",I=E.cardRowKind==="list",F=(H,B)=>I&&B===0&&H.key!==l[v]?"":H.key;S[k]={...E,options:[...I?[]:E.options,...T.map((H,B)=>({label:H.label,value:F(H,B)})),...P?[{label:P,value:P}]:[]]}}),x.set(w,S),S}import{group as v0e}from"efficient-easel/screen/lib/document/box-fields";var oN={meta:"Trailing note"},y0e={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var k0e={fields:{_gContent:v0e("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:Q("Label"),href:Cr(Q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:W("Trailing note",oN.meta),_gText:v0e("Text"),rowField:qr("Shows","text")},resolveFields:(e,t)=>ja(t.fields,e,t),showWhenFacts:Ya};import{jsx as hi,jsxs as wje}from"react/jsx-runtime";import{ButtonIcon as xje,ButtonIconIcon as yje,IconAfterTextIcon as vje,IconBeforeTextIcon as kje}from"efficient-easel/icons";import{SettingsField as Sje}from"efficient-easel/panel";import{useSelectedFields as R0e}from"efficient-easel/easel";import{buttonFieldSet as Tje}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as Eje}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as Pje,Segmented as _je}from"efficient-shell/ui";function nN(e){return typeof e=="boolean"?e:!0}import{parseOption as pje}from"efficient-shell/format";var l9=["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"],mje=["before","after","end"];function d9(e){return typeof e=="string"&&l9.includes(e)?e:void 0}function S0e(e,t){return d9(e)??(nN(t)?"arrow-right":"none")}function Nk(e){return pje(mje,"after",e)}function T0e(e,t){return Nk(e)==="end"&&Fg(t)==="fill"}function Fg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function E0e(e,t,o,{atSectionLine:n=!1}={}){let r=Fg(e);if(Er(o)){let i=Fg(o),s=Er(t)?Fg(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(Er(t)){let i=Fg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as iN}from"efficient-easel/screen/lib/document/style-fields";import{group as P0e}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as Cje}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as c9}from"react/jsx-runtime";import{LockIcon as uje}from"efficient-easel/icons";import{FieldText as fje}from"efficient-easel/fields";import{SettingsField as hje}from"efficient-easel/panel";import{keptByRow as gje}from"efficient-easel/screen/lib/document/style-fields";function bje(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??Mre}-words`;return c9(hje,{label:u("Words"),icon:c9(uje,{}),htmlFor:o,children:c9(fje,{id:o,value:u("Set by country"),onChange:()=>{},readOnly:!0})})}}}function rN(e){return gje(e)}function aN(e,t,o,n=[]){return MC(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?bje():a]))}var p9=e=>RC(e==="none"?"no-symbol":e),Rje=l9.map(e=>({value:e,icon:e==="none"?lre(p9(e),hi(TB,{value:e})):p9(e)})),O0e=Q("Button");function Oje({value:e,onChange:t}){let o=R0e(),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?hi(Yre,{label:"Button",icon:hi(xje,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):O0e.render({value:r,field:{label:"Button"},onChange:a=>t(hae(a))})}function Nje({value:e,onChange:t}){let o=R0e(),n=S0e(e,o.values.arrow),r=Nk(o.values.iconPosition),a=Fg(o.values.widthFit)==="fill",i=p9("icon-at-end");return hi(Sje,{label:u("Icon"),icon:hi(yje,{size:18}),value:n==="none"?void 0:hi(TB,{value:n}),children:wje("div",{className:"flex items-center gap-2",children:[hi(Pje,{label:u("Icon"),value:n,options:Rje,onChange:t}),n!=="none"&&hi(_je,{size:"sm",block:!0,label:u("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:hi(kje,{size:16}),label:hi("span",{className:"sr-only",children:u("Icon before text")}),title:u("Icon before text")},{value:"after",icon:hi(vje,{size:16}),label:hi("span",{className:"sr-only",children:u("Icon after text")}),title:u("Icon after text")},...a?[{value:"end",icon:i,label:hi("span",{className:"sr-only",children:u("Icon at the far end")}),title:u("Icon at the far end")}]:[]]})]})})}var _0e=()=>v6(er().theme),C0e=Tje({lengthUnits:EC,follows:{useFill:()=>_0e().fill,useText:()=>_0e().ink,useBorder:()=>{let[e]=gc("variant"),[t]=gc("buttonColor"),{theme:o}=er(),n=IB({variant:e,buttonColor:t}).border.width,r=Er(t)??(e==="ghost"?VZ(o).text:v6(o).fill);return{width:n,color:r}},useCorners:()=>JZ(er().cornerRadiusPx),useFillOpacity:()=>IB({variant:gc("variant")[0]}).fillOpacity},usePresets:kre,resetTo:e=>gae(e,u("Styles")),padding:{fallback:qre,tablet:!0},phone:Eje,say:qb});function Lje(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var N0e={fields:{label:wae(O0e,e=>hi(Oje,{value:e.value,onChange:e.onChange})),labelText:Tae("label"),href:xf({...Xe("Button link"),...iN("label")}),consentWords:rN("label"),_gButton:P0e("Button"),rowField:qr("Shows","text"),[jo]:Vc(),...Lje(C0e,Cje.Design),_gStyle:P0e("Style"),variant:iN("buttonColor"),icon:{type:"custom",render:e=>hi(Nje,{value:e.value,onChange:e.onChange})},iconPosition:iN("icon"),arrow:iN("icon"),...C0e},resolveFields:(e,t)=>aN(ja(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Ya};import{jsx as Lk}from"react/jsx-runtime";import{AccentIcon as Aje,ColumnsIcon as F0e,StylesIcon as B0e}from"efficient-easel/icons";import{group as m9}from"efficient-easel/screen/lib/document/box-fields";import{newId as A0e}from"efficient-easel/data";function sN(e,{rows:t="items",label:o="title"}={}){let n=ht(e);return n?Ap(n).map(r=>({label:r.label,value:r.key})):(Array.isArray(e[t])?e[t]:[]).map((r,a)=>({label:typeof r?.[o]=="string"&&r[o].trim()||u("Card {n}",{n:a+1}),value:HZ(rn(r),a)}))}var L0e=new WeakMap;function lN(e,t){let o=L0e.get(e);o||L0e.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 I0e(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>A0e(t),enumerable:!0})}function dN(e,t="items"){if(!Array.isArray(e[t])||ht(e))return e;let o=e[t],n=typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",r=c=>c&&typeof c=="object"&&typeof c.key=="string"?c.key:"",a=!!n&&!o.some(c=>r(c)===n),i=new Set,s=e.highlightedCard,l=!1,d=o.map((c,p)=>{if(!c||typeof c!="object")return c;let m=r(c);if(m&&!i.has(m))return i.add(m),c;let f=!m&&a&&n===String(p+1);if(m||f){let g=A0e("card");return i.add(g),l=!0,f&&(s=g),{...c,key:g}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as Ije}from"efficient-easel/data";var Fje=e=>Ije(e.template)&&e.template.length>0;function Bje(e,t){let o=Fje(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,lN(r,sN(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,Mje(r)]]:[[n,r]]))}var Hje=Object.fromEntries(k2("Cards").filter(e=>!e.everySource).map(e=>[e.key,Ok(e)])),Dje=Object.fromEntries(k2("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,Ok(e)])),H0e=new WeakMap;function Mje(e){let t=H0e.get(e);return t||H0e.set(e,t={...e,arrayFields:Hje}),t}var D0e={fields:{_gSource:m9("Source"),dataSource:no("Card content","Manual"),[uw]:fw(),_gContent:m9("Content"),eyebrow:W("Eyebrow",Lb.eyebrow),eyebrowLook:ne("Eyebrow style",Lk(B0e,{}),[...Js],zp("Cards")),title:j("Heading",Lb.title),items:{type:"array",label:"Cards",arrayFields:Dje,defaultItemProps:I0e({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...wee,highlightedCard:ne("Highlighted card",Lk(Aje,{}),[{label:"None",value:""}],""),highlightBadge:W("Highlight badge","Most popular"),_gStyle:m9("Style"),cardStyle:co("Card style",Lk(B0e,{}),[{label:"Cards",value:"cards",picture:FB.cards},{label:"Label only",value:"label-only",picture:FB["label-only"]}],"cards",{columns:2,cell:_r}),columns:le("Columns",Lk(F0e,{}),2,4,1,3),fillLastRow:oe("Last card fills its row",!1,Lk(F0e,{}),"When the last row is short, its last card widens to fill it.")},resolveData:(e,t)=>{let o=t?.lastData?.props,n=ase(e.props,o),r=TP(n),a=r===e.props?e:{...e,props:r},i=a.props,s=dN(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=pt(ro("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,ut.Cards.headRows),n=e.props,r=Bje(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:ve("Feature label"),href:Cr(Q("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:zp("KeyFeatures")}}:{}}}};import{jsx as zje}from"react/jsx-runtime";import{StickyIcon as Wje}from"efficient-easel/icons";import{group as M0e}from"efficient-easel/screen/lib/document/box-fields";var z0e={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:en(Cr(Q("Active tab","All"))),_gLinks:M0e("Links"),links:{type:"array",label:"Right links",arrayFields:{label:Q("Label"),href:Cr(Q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:M0e("Style"),sticky:oe("Stick to top",!0,zje(Wje,{}))}};import{jsx as Uje}from"react/jsx-runtime";import{StylesIcon as Gje}from"efficient-easel/icons";import{group as W0e}from"efficient-easel/screen/lib/document/box-fields";var $je=[...Kte],U0e={fields:Pi({_gContent:W0e("Content"),eyebrow:W("Chip label",$b.eyebrow),title:j("Heading",$b.title),body:j("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:ve("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:W("Caption","Illustrative example"),_gStyle:W0e("Style"),chartStyle:co("Chart style",Uje(Gje,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:KC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:KC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:KC.donut}],"bars",{columns:3,cell:_r}),valueSuffix:en(W("Value suffix","%"))},$je,Ia)};import{jsx as sqe}from"react/jsx-runtime";import{group as lqe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as at,Fragment as f9,jsxs as Rd}from"react/jsx-runtime";import{useId as Kje,useState as Vje}from"react";import{InspectorUpLevel as Ak}from"efficient-easel/chrome";import{useEasel as Yje}from"efficient-easel/easel";import{ListField as V0e}from"efficient-easel/fields";import{SettingsField as Y0e}from"efficient-easel/panel";import{ClockIcon as G0e,ContrastIcon as jje,GlobeIcon as qje,LinkIcon as Xje,LocationIcon as Zje,PhoneIcon as Jje,SquareIcon as Qje,TypeIcon as h9}from"efficient-easel/icons";import{useSectionOps as eqe}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as tqe}from"efficient-easel/draw";var g9=(e,t)=>t||e?wse(e,t):u("Ungrouped");function oqe(e){let t=[];return e.forEach((o,n)=>{let r=Lu(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 u9({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 j0e={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"},nqe={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},q0e={...nqe,color:"var(--status-danger-soft-ink)"};function wm({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=Kje();return at(Y0e,{label:e,icon:r??at(h9,{}),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 rqe=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],aqe=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function $0e({label:e,icon:t,options:o,value:n,onChange:r}){return at(Y0e,{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:u(a.label)},a.value)})})})}function K0e({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||Rn.mapTheme,a=Rn;return Rd(f9,{children:[!o&&at(u9,{children:u("Section")}),at(wm,{label:u("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),at(wm,{label:u("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),at(wm,{label:u("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:Rd(f9,{children:[at(u9,{children:u("City strip")}),at(wm,{label:u("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),at(wm,{label:u("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),at($0e,{label:u("Shape"),icon:at(Qje,{}),options:aqe,value:G_(e.imageShape),onChange:i=>t({imageShape:i})}),at(u9,{children:u("Map & Theme")}),at($0e,{label:u("Map theme"),icon:at(jje,{}),options:rqe,value:r,onChange:i=>t({mapTheme:i})})]})]})}function iqe({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((f,g)=>Lu(f)===t?g:-1).filter(f=>f>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(Lu).filter(f=>f!==t)),[d,c]=Vje(t),p=f=>o(e.map(g=>Lu(g)===t?{...g,...f}:g)),m=()=>{let f=d;if(f!==t){if(l.has(f)){c(t);return}o(e.map(g=>Lu(g)===t?{...g,group:f}:g)),a(f)}};return Rd("div",{className:"sf-locations-view",children:[at(Ak,{inline:!0,name:u("Section"),onSelect:n,title:g9(t,s)}),at(wm,{label:u("Group heading"),value:d,placeholder:u("e.g. Americas"),onChange:c,onBlur:m,onKeyDown:f=>{f.key==="Enter"&&f.currentTarget.blur()}}),l.has(d)&&d!==t&&at("p",{className:"sf-note sf-note--error",role:"alert",children:u("Another group already uses this heading \u2014 pick a different one.")}),at(wm,{label:u("Group name"),value:s,placeholder:u("Shown beside the heading"),onChange:f=>p({groupName:f})}),at(V0e,{label:u("Cities in this group"),noun:u("city"),items:i.map(f=>e[f]),onChange:f=>o(xse(e,t,f)),newItem:()=>({...XB,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(f,g)=>Rd("button",{type:"button",style:j0e,onClick:()=>r(i[g]),children:[at("span",{children:f?.name||u("City")}),at("span",{"aria-hidden":"true",children:"\u203A"})]})}),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:q0e,onClick:()=>{o(e.filter(f=>Lu(f)!==t)),n()},children:pr("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function X0e({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=bse(),r=xie(),a=oqe(o),{appState:i,selectedItem:s}=Yje(h=>h),l=eqe(),d=s?.props??{},c=h=>{if(!s)return;let b=(i.data.content??[]).findIndex(w=>w.props.id===s.props.id);b<0||l.replaceComponent(tqe,b,{type:s.type,props:{...s.props,...h}})},p=(h,b)=>t(o.map((w,x)=>x===h?{...w,...b}:w)),m=()=>{let h=new Set(a.map(x=>x.key)),b=a.length+1,w=`Group ${b}`;for(;h.has(w);)w=`Group ${++b}`;return w};if(n.level==="texts")return Rd("div",{className:"sf-locations-view",children:[at(Ak,{inline:!0,name:u("Locations"),onSelect:()=>ud({level:"groups"}),title:u("Texts")}),at(K0e,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let h=o[n.index];return h?Rd("div",{className:"sf-locations-view",children:[at(Ak,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>ud({level:"city",index:n.index}),title:u("Image")}),at(_re,{value:h.photo||"",onChange:b=>p(n.index,{photo:b}),label:"Image",accept:"image/*"})]}):f()}if(n.level==="map"){let h=o[n.index];return h?Rd("div",{className:"sf-locations-view",children:[at(Ak,{inline:!0,name:String(h.name??"")||u("City"),onSelect:()=>ud({level:"city",index:n.index}),title:u("Map")}),at(eR,{value:h.geocode,onChange:b=>p(n.index,{geocode:b}),label:"Coordinates"}),at(wm,{label:u("Directions link"),icon:at(Xje,{}),value:String(h.mapsUrl??""),onChange:b=>p(n.index,{mapsUrl:b})})]}):f()}if(n.level==="city"){let h=n.index,b=o[h];if(!b)return f();let w=Lu(b),x=(S,k)=>p(h,{[S]:k}),y=(S,k,v,E=!1)=>at(wm,{label:k,icon:v,textarea:E,value:String(b[S]??""),onChange:T=>x(S,T)});return Rd("div",{className:"sf-locations-view",children:[at(Ak,{inline:!0,name:g9(w,String(b.groupName??"")),onSelect:()=>ud({level:"group",key:w}),title:b.name||u("City")}),y("name",u("Location name"),at(h9,{})),y("state",u("State / Province"),at(h9,{})),y("country",u("Country"),at(qje,{})),y("address",u("Address"),at(Zje,{}),!0),y("phone",u("Phone"),at(Jje,{})),y("hours",u("Opening hours"),at(G0e,{})),y("timezone",u("Timezone chip"),at(G0e,{})),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:q0e,onClick:()=>{t(o.filter((S,k)=>k!==h)),ud({level:"group",key:w})},children:u("Delete city")})})]})}if(n.level==="group")return a.some(h=>h.key===n.key)?at(iqe,{cards:o,groupKey:n.key,onChange:t,onBack:()=>ud({level:"groups"}),onOpenCity:h=>ud({level:"city",index:h}),onNavigate:h=>ud({level:"group",key:h})},n.key):f();function f(){return Rd("div",{className:"sf-locations-view",children:[at(K0e,{props:d,setSection:c}),!r&&at(f9,{children:g()})]})}function g(){return at(V0e,{label:u("Locations"),noun:u("group"),items:a,onChange:h=>{let b=h.find(w=>!a.some(x=>x.key===w.key));t(yse(o,h.map(w=>w.key),w=>[{...XB,group:w,groupName:""}])),b&&ud({level:"group",key:b.key})},newItem:()=>({key:m(),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:u("No locations yet.")}):void 0,renderRow:h=>Rd("button",{type:"button",style:j0e,onClick:()=>ud({level:"group",key:h.key}),children:[at("span",{style:{fontWeight:500},children:g9(h.key,h.name)}),Rd("span",{style:{color:"var(--ink-faint)"},children:[pr("{n} city","{n} cities",h.indices.length)," \u203A"]})]})})}return f()}var Z0e={fields:{_gOffices:lqe("Offices"),dataSource:no("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>sqe(X0e,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!NC(o))return e;let n=await LC(o,i=>{let s=$_(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(", ")}),{[pP]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>ro("ContactLocations",t,e.props)};import{jsx as J0e}from"react/jsx-runtime";import{ClockIcon as dqe,TagIcon as cqe}from"efficient-easel/icons";var pqe=[...Zte],Q0e={fields:Pi({title:W("Heading",Q6.title),zeroText:en(W("At zero",Q6.zeroText)),endsAt:Nae("Ends",J0e(dqe,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:oe("Unit labels",!0,J0e(cqe,{}))},pqe,Ia)};import{jsx as Ik,jsxs as mqe}from"react/jsx-runtime";import{Suspense as uqe,lazy as fqe,useState as hqe}from"react";import{Button as gqe}from"efficient-shell/ui";import{CodeIcon as bqe}from"efficient-shell/icons/efficient";import{SettingsField as wqe}from"efficient-easel/panel";import{iconOf as xqe}from"efficient-easel/screen/lib/document/box-fields";var yqe=fqe(()=>import("./chunks/CustomHtmlCodeWindow-PCCIJDTP.js"));function vqe({value:e,onChange:t}){let[o,n]=hqe(!1);return mqe(wqe,{label:u("HTML"),icon:xqe(Ik(bqe,{})),children:[Ik(gqe,{variant:"secondary",onClick:()=>n(!0),children:u("Edit code")}),o?Ik(uqe,{fallback:null,children:Ik(yqe,{open:!0,onClose:()=>n(!1),value:typeof e=="string"?e:"",onChange:t})}):null]})}var ebe={fields:{html:{type:"custom",label:"HTML",render:({value:e,onChange:t})=>Ik(vqe,{value:e,onChange:t})}}};import{jsx as b9}from"react/jsx-runtime";import{StylesIcon as kqe,WeightIcon as Sqe,WidthIcon as Tqe}from"efficient-easel/icons";import{keptByRow as Eqe}from"efficient-easel/screen/lib/document/style-fields";var Pqe={any:[{field:"style",set:!1},{field:"style",is:qh}]},_qe={not:{field:"style",is:"none"}},tbe={fields:Ae({style:co("Style",b9(kqe,{}),tae.map(e=>({...e,picture:iae(e.value)})),qh,{columns:3,cell:_r}),spacing:Eqe("sectionPaddingTop"),thickness:le("Thickness",b9(Sqe,{}),1,8,1,1,o1),...md(o1,"thickness"),lengthPct:le("Length",b9(Tqe,{}),10,100,1,100,n1),...md(n1,"lengthPct")},[[["thickness"],Pqe],[["lengthPct"],_qe]]),resolveFields:(e,{fields:t})=>{let o=GC[$C(e.props.spacing)],n=Vp({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return i1(t,n)}};import{jsx as x9}from"react/jsx-runtime";import{HashIcon as Cqe,StickyIcon as Rqe,TargetIcon as Oqe}from"efficient-easel/icons";import{group as nbe,select as Nqe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Hx}from"efficient-easel/screen/lib/document/device-fields";var w9={title:"On this page"},obe={label:"Contents",defaultProps:{title:w9.title,sticky:!0}};var rbe={fields:{title:Hx("desktop",W("Heading",w9.title)),_gList:Hx("desktop",nbe("List")),[dR]:Hx("desktop",Nqe("Number",x9(Cqe,{}),Nte,Lte)),markCurrent:Hx("desktop",oe("Mark the current section",!1,x9(Oqe,{}),"The row of the section a reader is in stands out as they scroll.")),_gStick:Hx("desktop",nbe(F6)),sticky:Hx("desktop",oe(F6,!0,x9(Rqe,{})))}};import{group as Lqe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as y9}from"efficient-easel/screen/lib/document/device-fields";var Fk={hint:"Search questions",noMatchText:"No question matches your search."},abe={label:"List search",defaultProps:{hint:Fk.hint,noMatchText:Fk.noMatchText}};var ibe={fields:{_gContent:y9("desktop",Lqe("Content")),hint:y9("desktop",en(W("Hint",Fk.hint))),noMatchText:y9("desktop",en(W("No match",Fk.noMatchText)))}};import{group as lbe}from"efficient-easel/screen/lib/document/box-fields";var cN={toc:"On this page"},sbe={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var dbe={fields:{_gContent:lbe("Contents"),tocTitle:W("Contents heading",cN.toc),_gSections:lbe("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:ve("Contents label"),heading:ve("Title"),body:Je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as cbe}from"efficient-easel/screen/lib/document/box-fields";var pbe={fields:{_gContent:cbe("Content"),eyebrow:W("Eyebrow",yu.eyebrow),title:j("Heading",yu.title),deck:j("Deck / standfirst",yu.deck),_gMeta:cbe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:ve("Label"),value:ve("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var pN=[{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."}],mbe={label:"Document Detail Cards",defaultProps:{cards:[]}};var ube={fields:{cards:nw({type:"array",label:"Cards",arrayFields:{label:ve("Label"),value:ve("Value"),desc:Je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},pN)}};import{jsx as Aqe}from"react/jsx-runtime";import{PageIcon as Iqe}from"efficient-easel/icons";import{group as Fqe}from"efficient-easel/screen/lib/document/box-fields";var Dx={metaLabel:U.label,metaValue:U.value},fbe={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var hbe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Tab label"),href:Xe("Links to"),current:oe("Current page",!1,Aqe(Iqe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:Fqe("Trailing note"),metaLabel:W("Note label",Dx.metaLabel),metaValue:W("Note value",Dx.metaValue)}};import{jsx as Bqe}from"react/jsx-runtime";import{StylesIcon as Hqe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as Dqe}from"efficient-easel/screen/lib/document/box-fields";var gbe={fields:{eyebrow:W("Eyebrow",U.eyebrow),...al("align",{access:Dqe}),eyebrowLook:ne("Look",Bqe(Hqe,{}),Js,C_)}};import{jsx as wbe}from"react/jsx-runtime";import{ChevronIcon as Mqe,LinkIcon as zqe}from"efficient-easel/icons";import{group as k9}from"efficient-easel/screen/lib/document/box-fields";var yf={num:U.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},v9=Xn.FAQ,bbe={label:"Q&A",inline:!0,fields:v9,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var xbe="faqOnTemplate",Wqe={not:{context:xbe,is:!0}},Uqe={[xbe]:e=>dee("FAQ",e.props??{})},Gqe=new Set([$J,...KJ]);function $qe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||Gqe.has(t))}var ybe={fields:{_gContent:k9("Content"),num:W("Number",yf.num),title:j("Heading",yf.title),linkText:W("Button",yf.link),linkHref:Xe("Link"),_gQuestions:k9("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:ve("Question"),answer:Je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:k9("Layout"),defaultOpen:oe("Open first answer",!0,wbe(Mqe,{})),openFromLink:oe("Open from a link",!1,wbe(zqe,{}),"A link to a question opens its answer. Each question gets an anchor made from its words, after the section's Anchor."),...v9},resolveFields:(e,{fields:t})=>{let o=pt(t,e.props.headPlacement,ut.FAQ.headRows);return Pi(o,$qe(o),Wqe)},showWhenFacts:Uqe};import{jsx as $i,Fragment as mN,jsxs as Vqe}from"react/jsx-runtime";import{useContext as Yqe}from"react";import{SettingsField as Tbe}from"efficient-easel/panel";import{FieldSelect as Ebe}from"efficient-easel/fields";import{BlogPostIcon as Pbe}from"efficient-easel/icons";import{ScreenDocumentContext as jqe}from"efficient-easel/screen/components/ScreenDocumentContext";var vbe=gx({fetch:async(e,t)=>await nc().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:Hn});import{useEffect as kbe,useRef as Kqe,useState as S9}from"react";function Bg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Mx({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=S9(null),[s,l]=S9(!1),[d,c]=S9(!1),p=Kqe(!0);return kbe(()=>(p.current=!0,e().then(m=>{p.current&&i(m)}),()=>{p.current=!1}),[]),kbe(()=>{if(!n?.slug||a===null)return;let m=t(a,n);if(!m)return;let f=o(m);Bg(f,n)&&r(f)},[a]),{rows:a,loading:a===null,refreshing:s,errored:d,refresh:()=>{n?.slug&&(l(!0),c(!1),e(!0).then(m=>{if(!p.current)return;i(m);let f=t(m,n);f&&r(o(f))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function Sbe(e,t){return{label:t?u("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function zx({value:e,onChange:t}){let o=Yqe(jqe);return o&&!o.capabilities.hasBlog?e?.slug?$i(qqe,{value:e,onChange:t}):$i(mN,{}):$i(Xqe,{value:e,onChange:t})}function qqe({value:e,onChange:t}){return $i("div",{children:$i(Tbe,{label:u("Blog post source"),icon:$i(Pbe,{}),hint:$i(mN,{children:u("Linked to a blog post. This editor has no blog to pick another from; choose \u201CNone (manual)\u201D to author the section yourself.")}),children:$i(Ebe,{value:e.slug,ariaLabel:u("Blog post source"),onChange:o=>o?void 0:t(null),options:[{label:u("None (manual)"),value:""},{label:e.title||e.slug,value:e.slug}]})})})}function Xqe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Mx({load:vbe,resolve:(m,f)=>m.find(g=>g.slug===f.slug),snapshot:_1,value:e,onChange:t}),s=m=>{if(!m){t(null);return}let f=(o??[]).find(g=>g.slug===m);f&&t(_1(f))},l=e?.slug&&!(o??[]).some(m=>m.slug===e.slug),d=a?"error":r?"loading":"idle",c=u("Storefront \u2192 Blog"),p=a?u("Couldn\u2019t reach {place}.",{place:c}):r?u("Syncing from {place}\u2026",{place:c}):u("Linked to \u201C{name}\u201D",{name:e?.title||e?.slug||""});return Vqe("div",{children:[$i(Tbe,{label:u("Blog post source"),icon:$i(Pbe,{}),hint:e?.slug?void 0:$i(mN,{children:u("Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.",{place:c})}),children:$i(Ebe,{value:e?.slug??"",ariaLabel:u("Blog post source"),onChange:s,readOnly:n,options:[{label:u("None (manual)"),value:""},...l?[Sbe({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(m=>({label:m.title,value:m.slug}))]})}),e?.slug?$i(sl,{status:d,statusText:p,onRefresh:i,busy:r,hint:$i(mN,{children:u("Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.")})}):null]})}import{group as Zqe}from"efficient-easel/screen/lib/document/box-fields";var Xr={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:dc.href},_be={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var Jqe=["image","imageDate","date","title","dek","ctaHref"],Cbe={fields:Pi({source:Ko(zx),_nBound:ot(ll(qC),XC),image:rt("Cover image","image/*"),badge:W("Badge",Xr.badge),imageDate:W("Image date",Xr.imageDate),_gContent:Zqe("Content"),category:W("Category",Xr.category),readLabel:W("Read time",Xr.readLabel),date:W("Date",Xr.date),title:j("Heading",Xr.title),dek:j("Dek",Xr.dek),ctaText:W("Button",Xr.ctaText),ctaHref:Xe("Link")},Jqe,aw)};import{jsx as wr}from"react/jsx-runtime";import{phoneKey as Lr,tabletKey as va}from"efficient-easel/draw";import{keptByRow as tZe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as Rbe}from"react/jsx-runtime";import{OpacityIcon as Qqe,StylesIcon as eXe}from"efficient-easel/icons";function Wx(){return{darken:le("Darken",Rbe(Qqe,{}),ld.min,ld.max,ld.step,ld.fallback,ld.unit),darkenStyle:ne("Darken style",Rbe(eXe,{}),R2,R2[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]"},oXe=`calc(${bJ} - ${S6}*2)`,Obe=`var(${wJ},${S6})`,Pqt=`pointer-events-none absolute inset-y-0 left-[${Obe}] right-[${Obe}] z-[6] mx-auto max-w-[var(${xJ},${oXe.replace(/ /g,"_")})]`;function uN(e,t){return`pointer-events-auto absolute ${tXe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function Nbe(e){return QP.includes(e)?e:null}import{parseOption as T9}from"efficient-shell/format";var nXe=QP,E9="top-right",rXe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],P9=["cards","dots","numbers","bar","squares"],fN="cards",hN={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},gN=["tabs","largeTabs"],Lbe=!0;function bN(e){return T9(rXe,fN,e)}function Abe(e){return T9(P9,fN,e)}function aXe(e){return T9(nXe,E9,e)}var Ibe={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 Fbe(e,t){return uN(aXe(t),Ibe[bN(e)])}function Bbe(e){return`flex ${Ibe[bN(e)]}`}function Hbe(e){return e.shown!==!1&&(e.count??0)>1}function iXe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function sXe(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 Dbe(e,t){let o=Array.from(t,iXe);return sXe(e,o)?e:o}import{deviceField as Od}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as oZe,ClockIcon as nZe,CropIcon as vwe,GapIcon as rZe,MediaLayoutStackedIcon as Nwe,LineBetweenIcon as aZe,LineSolidIcon as iZe,ListIcon as sZe,NumberedListIcon as kwe,ShadowIcon as lZe,StylesIcon as Swe,TableIcon as Twe,TargetIcon as dZe,WrapIcon as Lwe}from"efficient-easel/icons";var Dg=t_.map(e=>e.shape),C9=e=>e!==js&&Dg.includes(String(e??""))?e:null;function Hg(e){return C9(e)??(lu(e)?js:"auto")}function wN(e){let t=Hg(e);return t==="auto"?"":Ih(t)}function Mbe(e,t,o){return LJ({desktop:e,phone:_9(t)!==null?t:o,tablet:o})}var lXe={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)]"},dXe={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 cXe(e,t){let o=Hg(t);return o==="auto"&&C9(t)===null?null:o===js?t===e?null:o:o===Hg(e)?null:o}var pXe={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 _9(e){let t=Hg(e);return t==="auto"&&C9(e)===null?null:t}function zbe(e,t,o){let n=_9(o),r=cXe(e,_9(t)!==null?t:o);if(r===null&&n===null)return wN(e);let a=Hg(e);return[r===null?wN(e):a==="auto"?"":lXe[a],r===null?"":dXe[r],n===null?"":pXe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as Awe,VIEW_KEY_ACCESS as Yc,group as zg,phoneTwinFields as jc}from"efficient-easel/screen/lib/document/box-fields";var mXe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},uXe=w2.map(e=>({value:e.value,picture:RC(mXe[e.value])}));function xN(e,t){return co("Separator",e,uXe,t,{resolve:KX})}import{jsx as fXe}from"react/jsx-runtime";import{cloneElement as hXe}from"react";import{PaddingXIcon as gXe}from"efficient-easel/icons";import{deviceField as bXe}from"efficient-easel/screen/lib/document/device-fields";function Wbe(){let e=ne(Tie,fXe(gXe,{}),MQ,zQ);return bXe("desktop",{...e,render:t=>{let o=e.render({...t,value:x_(t.value),onChange:n=>t.onChange(UQ(n))});return hXe(o,{hint:u(WQ)})}})}import{newNodeId as R9}from"efficient-easel/draw";var Ube=["First row","Second row","Third row"],wXe="Write the words for this row.",Gbe=e=>({type:"Text",props:{...$e,id:R9("Text"),tag:"p",text:e}}),xXe=(e,t)=>({type:fe,props:{...Ue,id:R9(fe),...t?{startsOpen:!0}:{},rowTitle:[Gbe(e)],content:[{type:"Text",props:{...Rt,id:R9("Text"),tag:"p",text:wXe}}]}}),yXe=e=>!Array.isArray(e)||e.length===0;function $be(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:Ube.map((r,a)=>xXe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==fe||!yXe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(Ube[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[Gbe(i)]}}});return o?{...e,content:n}:e}import{parseOption as vXe}from"efficient-shell/format";var Bk="rowStyle",kXe=["plain","numbered","chevron"],Kbe=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function Vbe(e){return vXe(kXe,"plain",e)}var yN="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",vN="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",kN="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",Ybe="border-t border-line",jbe="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",qbe="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as SXe}from"efficient-easel/screen/lib/content/view-tiers";var SN=Xn.Flex,Xbe={label:"Box",fields:SN,phoneOrder:{prop:SXe("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 Zbe}from"react/jsx-runtime";import{isNode as TXe}from"efficient-easel/data";import{useEasel as EXe}from"efficient-easel/easel";import{PhoneOrderField as PXe}from"efficient-easel/fields";import{slotChildRowName as _Xe}from"efficient-easel/draw";import{deviceField as CXe}from"efficient-easel/screen/lib/document/device-fields";function RXe(){try{let e=EXe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!TXe(a)||typeof t[a.type]?.render!="function"?!1:Er(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 OXe({value:e,onChange:t,readOnly:o}){let n=RXe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return Zbe(PXe,{stored:"ids",value:e,ids:a,onChange:t,readOnly:o,noun:"block",hint:u("The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."),itemLabel:s=>_Xe(r[s],i,So,void 0,Vae)})}function Jbe(){return CXe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>Zbe(OXe,{value:e,onChange:t,readOnly:o})})}import{jsx as zk}from"react/jsx-runtime";import{SettingsDefaultReset as WXe,SettingsField as UXe}from"efficient-easel/panel";import{Segmented as GXe}from"efficient-shell/ui";import{SwapIcon as $Xe}from"efficient-easel/icons";import{describedAs as KXe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as VXe}from"efficient-easel/screen/lib/document/device-fields";var Hk="Mirror cards",Dk="off",O9=[{value:Dk,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],Qbe={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function vf(e){return e==="even"||e==="odd"?e:null}function ewe(e){return vf(e)??void 0}function Mk(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function Mg(e,t,o){return!t||e.direction!=="row"||o||tu("row",e.separator)||e.loop==="scroll"||e.line===!0||ds(e)||p6(e.columns)!==""||oZ(e.columnsTablet)!==""?!1:!(ls(e.share)===""&&mb(e.wrap)!=="")}function twe(e,t){let o=vf(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var owe="view-wide:flex-row-reverse",NXe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},LXe={left:"view-wide:text-right!",right:"view-wide:text-left!"},AXe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},IXe={start:"view-wide:items-end!",end:"view-wide:items-start!"},FXe={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!"},TN=(e,t)=>(typeof t=="string"?Ws(e,t):void 0)??"";function N9(e,t,o){return e?[TN(NXe,t),TN(LXe,o)].filter(Boolean).join(" "):""}function nwe(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=qX(o,r,void 0).tablet;return[TN(AXe,o),a?FXe[a]:""].filter(Boolean).join(" ")}return t==="column"?TN(IXe,n):""}function L9(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||ds(e)?!1:p6(e.columns)===""}function EN(e,t){let o=vf(e.mirrorCards);return o&&L9(e,t)?{mirror:o}:null}import{isNodeList as cwe}from"efficient-easel/data";import{parseOption as rwe}from"efficient-shell/format";var BXe=["columns","rows-left","rows-right"],HXe=["half","third"],awe=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],iwe=[{value:"half",label:"Half"},{value:"third",label:"One third"}],swe=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function DXe(e){return rwe(BXe,"columns",e)}var MXe={"rows-left":"even","rows-right":"odd"},zXe={half:"equal",third:"bigRight"};function PN(e){let t=DXe(e?.arrangement);if(t==="columns")return null;let o=rwe(HXe,"half",e?.imageWidth);return{mirror:MXe[t],row:{share:zXe[o],phoneReverse:e?.phoneOrder==="words"}}}var lwe={ProcessSteps:{slot:"boxes",hand:PN}},dwe=(e,t,o)=>cwe(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function Ux(e,t){let o=fC(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===fe&&dwe(o,Ne,t)){let s=id(e,o.props?.id)?.inCopy===!0;return EN(Xs(o.props??{},s),s)}let i=Ws(lwe,a);if(i&&dwe(o,i.slot,t))return i.hand(o.props??{})}let n=AP(e,t),r=n&&typeof n.type=="string"?Ws(lwe,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function pwe(e){let t=e?.[Ne];return cwe(t)&&t.some(o=>o?.type===fe)}var mwe="mirrorCardsIdle",A9="mirrorCardsMirrors",uwe={[A9]:(e,t)=>{let o=id(t.appState,e.props?.id);if(o===void 0)return;let n=Xs(e.props??{},o.inCopy),r=Ux(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&Mg(a,!0,rm(a).desktop)}return Mg(n,Mk(o),rm(n).desktop)&&vf(n.mirrorCards)!==null},[mwe]:(e,t)=>{let o=id(t.appState,e.props?.id);if(o===void 0)return;let n=Xs(e.props??{},o.inCopy);return Ux(t.appState,e.props?.id)?!0:Mg(n,Mk(o),rm(n).desktop)?!1:!(L9(n,o.inCopy)&&pwe(n))}};function YXe(e=!1){return O9.map(t=>({value:t.value,label:u(t.label),title:t.value===Dk?void 0:u(Qbe[t.value]),disabled:e}))}function jXe({value:e,onChange:t,readOnly:o}){let n=vf(e)??Dk;return zk(UXe,{label:u(Hk),icon:zk($Xe,{}),action:zk(WXe,{words:KP()?.panel,label:u(Hk),changed:n!==Dk,detail:u("Off"),onReset:()=>t(void 0)}),children:zk(GXe,{size:"sm",block:!0,label:u(Hk),value:n,onChange:r=>t(ewe(r)),options:YXe(o===!0)})})}function fwe(){return ot(VXe("desktop",{type:"custom",...KXe({},{type:"radio",label:Hk,options:O9.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>zk(jXe,{value:e,onChange:t,readOnly:o})}),{not:{context:mwe,is:!0}})}import{jsx as qXe}from"react/jsx-runtime";import{FilterIcon as XXe}from"efficient-easel/icons";import{deviceField as ZXe}from"efficient-easel/screen/lib/document/device-fields";var bwe="showForUnoffered",wwe={[bwe]:e=>xC().length===0&&X2(e.props?.[q2])===void 0},JXe="Show for",QXe="All";function eZe(e,t){if(!e)return;let o=xC().find(r=>r.slug===e);if(o)return{slug:o.slug,name:o.name};let n=X2(t);return n?.slug===e?n:void 0}function xwe(){let e=ne(JXe,qXe(XXe,{}),[{label:QXe,value:""}],"");return ot(ZXe("desktop",{...e,render:t=>e.render({...t,value:X2(t.value)?.slug??"",onChange:o=>t.onChange(eZe(o,t.value))})}),{not:{context:bwe,is:!0}})}var hwe=new WeakMap;function ywe(e,t){let o=e[q2];if(!o)return e;let n=xC(),r=X2(t?.[q2]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=hwe.get(o);i||hwe.set(o,i=new Map);let s=`${Vne()}\0${a?`${a.slug}\0${a.name}`:""}`,l=i.get(s);l||(l={...o,options:[...o.options,...n.map(p=>({label:p.name,value:p.slug})),...a?[{label:a.name,value:a.slug}]:[]]},i.set(s,l));let d=gwe.get(e);d||gwe.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[q2]:l}),c}var gwe=new WeakMap;var Ewe=BX,Pwe={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},cZe={field:"direction",is:"tabs"},pZe={field:"line",in:[!0,!1]},mZe={field:"anchor",set:!0},I9=["fixed","screen","fill"],uZe={not:{any:[{field:"sectionHeightMode",in:I9},{field:"sectionHeightModeTablet",in:I9},{field:"sectionHeightModePhone",in:I9}]}},fZe={context:"parent.line",is:!0},Wg={not:{field:"direction",is:"accordion"}},_we={field:"direction",is:"accordion"},Cwe={any:[Wg,{not:{field:Bk,in:["numbered","chevron"]}},{field:"columns",in:[...nZ]},{field:"phoneRow",in:[...rZ]}]},Iwe="notAccordionRow",hZe={not:{context:Iwe,is:!0}},gZe={[Iwe]:(e,t)=>t.parent?.props?.direction!=="accordion"},B9={field:"direction",is:"row",default:"row"},Ug={not:iJ},Kg={all:[B9,Ug,{not:{field:"separator",in:w2.map(e=>e.value)}},{not:{field:"line",is:!0}}]},bZe={field:"direction",is:"column"},Fwe={all:[Kg,...["columns",va("columns")].map(e=>({not:{field:e,in:Array.from({length:SP},(t,o)=>o+kP)}}))]},wZe={all:[Ug,{not:{all:[B9,{field:"separator",in:w2.map(e=>e.value)}]}}]},F9={not:{all:[Kg,{field:"columns",in:Array.from({length:SP},(e,t)=>t+kP)}]}},xZe="sharedColumnsFits",Bwe="sharedColumnsMisfit",Hwe="sharedColumnsDraws",Dwe="sharedColumnsPhoneDraws";function $g(e,t){return Xs(e.props??{},id(t.appState,e.props?.id)?.inCopy!==!1)}var yZe={[xZe]:(e,t)=>N5($g(e,t)),[Bwe]:(e,t)=>!N5($g(e,t)),[Hwe]:(e,t)=>rm($g(e,t)).desktop,[Dwe]:(e,t)=>rm($g(e,t)).phone};function Rwe(e){return{all:[{not:{context:Bwe,is:!0}},{any:[MB,{field:e,set:!0}]}]}}var Gg={not:{context:Hwe,is:!0}},Gx={not:{context:Dwe,is:!0}},Mwe="sharedRowsDraws",vZe={[Mwe]:(e,t)=>L5($g(e,t))&&Ux(t.appState,e.props?.id)?.row===void 0},Wk={not:{context:Mwe,is:!0}},kZe={any:[Gg,Gx]},H9=DX,SZe={not:{context:A9,is:!0}},zwe="rowHanded",TZe={not:{context:zwe,is:!0}},EZe={[zwe]:(e,t)=>{let o=Ux(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},Owe={all:[Wg,H9,Gg,Gx,SZe]},PZe={field:"direction",is:"row"},_Ze={field:"align",in:["start","center","end"]},CZe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function RZe(){let{darken:e,darkenStyle:t}=Wx();return{...jc("darken",e,Yc),...jc("darkenStyle",t,Yc)}}var Wwe={not:{all:[Kg,{field:va("columns"),in:Array.from({length:SP},(e,t)=>t+kP)}]}};function OZe(){let e=oe(Awe,!1,wr(Lwe,{})),t=o=>{let n=c6(o);return n===void 0?void 0:n==="wrap"};return{...Vh(),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 NZe(){let e=oe(Awe,!0,wr(Lwe,{})),t=o=>{let n=c6(o);return n===void 0?void 0:n==="wrap"};return{...Vh(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!aZ(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var Uwe={hint:hu},Gwe={all:[H9,{any:[bZe,{all:[Kg,Wwe,{not:{all:[Fwe,{field:va("share"),set:!0}]}}]}]}]},LZe=ot(Od("desktop",le("Narrows below",wr(Nwe,{}),Mh.min,Mh.max,Mh.step,hu,{kind:"breakpoint"},{clear:Uwe,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),Gwe);function AZe(e,t){let o=e;return!(zh in o)||t.direction!=="column"?e:{...o,[zh]:LZe}}var $we={fields:Ae({_gContent:zg("Content"),rowTitle:SN.rowTitle,content:SN.content,_gCardDisplay:zg("Display"),cardDisplay:tR("desktop"),cardDisplayTablet:tR("tablet"),cardDisplayPhone:tR("mobile"),showFor:xwe(),_gLayout:zg("Layout"),direction:jC("Flex"),tabShape:co("Tab shape",wr(Swe,{}),gN.map(e=>({label:hN[e],value:e,picture:sae[e]})),"tabs",{columns:2,cell:_r}),mirrorCards:fwe(),[zh]:Od("desktop",le("Stacks below",wr(Nwe,{}),Mh.min,Mh.max,Mh.step,hu,{kind:"breakpoint"},{clear:Uwe,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[N2]:Wbe(),startsOpen:Od("desktop",oe("Starts open",!1,wr(oZe,{}))),[Bk]:Od("desktop",co("Row style",wr(kwe,{}),Kbe.map(e=>({...e,picture:e.value==="numbered"?wr(kwe,{}):wr(sZe,{})})),"plain",{columns:2})),label:en(Q("Tab name")),...ci("Flex"),...jc("justify",_C(),Yc),...jc("align",CC(),Yc),...(()=>{let e=jc("wrap",Vh(),Yc,{phoneRow:NZe()}),t=jc("wrap",Vh(),Yc,{phoneRow:OZe()});return{wrap:t.wrap,[va("wrap")]:t[va("wrap")],[Lr("wrap")]:e[Lr("wrap")]}})(),[Lr("order")]:Jbe(),...jc("boxShape",wx("Box shape",wr(vwe,{}),Tb(Dg),"shape","auto"),Yc,{phoneRow:wx("Box shape",wr(vwe,{}),Tb(Dg),"shape","auto",{phoneRest:e=>Hg(e)})}),[hP]:Od("desktop",ire(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:xN(wr(aZe,{size:18}),"none"),[Hb]:Od("desktop",co("Card style",wr(Swe,{}),$ee.map(e=>({...e,picture:dae[e.value]})),"table",{columns:2,cell:_r})),share:Od("desktop",Eae()),[va("share")]:Cae(),[Lr("share")]:_ae(),[nm]:Od("desktop",ne(SD,wr(Twe,{}),[...Tme],M1)),[Lr(nm)]:Od("mobile",ne(SD,wr(Twe,{}),[...Eme],M1)),...Rae(),...jc("blockSpacing",Pae(),Yc),line:oe("Line",!1,wr(iZe,{}),"A line across the blocks, with a dot on each."),upcoming:oe("Upcoming",!1,wr(nZe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:ne("Join",wr(rZe,{}),H_,B_),_gShadow:zg("Shadow"),...jc("shadow",oe("Shadow",!1,wr(lZe,{})),Yc),...jc("fillColor",Aae(),Yc),[ua]:qr("Fill content","colour"),[h_]:tZe("fillColor"),_gBackground:zg("Background image"),bgImage:Od("desktop",rt("Image","image/*")),bgImagePhone:Od("mobile",rt("Image","image/*")),[cr]:qr("Image content","image",{content:!0}),...RZe(),placement:pd("Content position"),_gLink:zg("Link"),link:xf(Xe("Link to")),[jo]:Vc(),_gJump:zg("Anchor"),jumpHighlight:oe("Highlight when a link jumps here",!1,wr(dZe,{}),"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"],Ewe],[[Lr("share")],{all:[Pwe,Gx]}],[[nm],Rwe(nm)],[[Lr(nm)],Rwe(Lr(nm))],[[Lr("wrap")],{all:[Pwe,Ug,Gx,Wk]}],[[Lr("order")],{all:[Kg,Gx,Gg]}],[["phoneRow"],Gx],[[Bk],{all:[_we,{not:{field:Bk,is:"chevron"}}]}],[["tabShape"],cZe],[["rowTitle","startsOpen"],hZe],[["align","blockSpacing",va("blockSpacing"),Lr("blockSpacing")],Wg],[[va("justify"),Lr("justify")],{all:[Ug,Owe,Wk]}],[[va("align"),Lr("align")],{all:[PZe,_Ze,Owe]}],[[va("wrap")],{all:[Ug,F9,Wwe,Gg,Wg,Wk]}],[[va("shadow"),Lr("shadow")],H9],[[va("darken"),Lr("darken"),va("darkenStyle"),Lr("darkenStyle")],{all:[Ewe,CZe]}],[["separator"],B9],[[Hb],{field:Hb,set:!0}],[["columns"],{any:[Kg,_we]}],[[va("columns")],Kg],[[zh],Gwe],[[va("gap")],{all:[wZe,Cwe]}],[["gap",Lr("gap")],Cwe],[["justify"],{all:[Ug,kZe,Wg,Wk]}],[["wrap"],{all:[Ug,F9,Gg,Wg,Wk]}],[["share"],{all:[F9,Gg,Wg]}],[[va("share")],{all:[Fwe,Gg]}],[["line"],pZe],[["upcoming"],fZe],[["jumpHighlight"],mZe],[["boxShape",va("boxShape"),Lr("boxShape")],uZe],[["direction","share",Lr("order")],TZe],[["join"],wB],[[N2],wB]]),resolveData:(e,t)=>{let o=e.props,n=o[Hb];return t.changed?.[Hb]===!0&&Kee(n)?{...e,props:Vee(o,n,fe,Ne)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:$be(o)}:e},resolveFields:(e,t)=>{let o=id(t.appState,e.props?.id)?.inCopy===!0,n=o&&AP(t.appState,e.props?.id)===null;return AZe(BZe(HZe(ywe(DZe(e,{...t,fields:ja(t.fields,e,t)}),e.props),$g(e,t),o),n),e.props)},showWhenFacts:{...Ya,...jae,...uwe,...EZe,...yZe,...vZe,...wwe,...gZe}},IZe=ot($ae,MB),FZe=["darken","darkenStyle",Ph,_h];function BZe(e,t){if(!t)return e;let o={...e};for(let n of FZe){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function HZe(e,t,o=!1){let n=e;return Eh in n&&ds(t)&&o?{...n,[Eh]:ot(Kae,Yae)}:!(Eh in n)||ds(t)?e:{...n,[Eh]:IZe}}function DZe(...[e,t]){let{fields:o}=t;{if(ds($g(e,t))){let n=Vp({fallback:{top:Ci.desktop,bottom:Ci.desktop,left:Ci.side,right:Ci.side},tablet:!0,siteSide:!0});return i1(o,n)}return e.props.padV2!==!0?i1(o,Vp({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as Vg}from"react/jsx-runtime";import{ColumnsIcon as Zwe,GridIcon as zZe,LayoutIcon as WZe,SlidePickerCardsIcon as UZe,WidthIcon as Jwe}from"efficient-easel/icons";import{deviceField as NN}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as MZe}from"efficient-shell/format";var D9=["grid","carousel"],M9="grid",Kwe={grid:"Grid",carousel:"Carousel"};function Vwe(e){return MZe(D9,M9,e)}var _N=50,CN=80,RN=30,ON=90;function z9(e,t){let o=Cn(e);return o===void 0?t:Math.min(ON,Math.max(RN,o))}function Ywe(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 jwe(e,t,o){return o<=0?0:((e+t)%o+o)%o}function qwe(e,t){return!t||t.height<=0?null:Math.round(t.top-e.top+t.height/2)}var W9=Xn.Grid,Xwe={label:"Grid",fields:W9,defaultProps:{columns:"3",content:[]}};var GZe={grid:Vg(zZe,{}),carousel:Vg(UZe,{})},Qwe={field:"layout",is:"carousel"},exe={fields:{layout:co("Layout",Vg(WZe,{}),D9.map(e=>({label:Kwe[e],value:e,picture:GZe[e]})),M9),carouselTile:ot(NN("desktop",le("Tile width",Vg(Jwe,{}),RN,ON,1,_N,{kind:"size",base:"%"})),Qwe),carouselTilePhone:ot(NN("mobile",le("Tile width",Vg(Jwe,{}),RN,ON,1,CN,{kind:"size",base:"%"})),Qwe),columns:NN("desktop",le("Columns",Vg(Zwe,{}),1,HJ,1,MJ)),mobileColumns:NN("mobile",le("Columns",Vg(Zwe,{}),A6,DJ,1,A6)),...ci("Grid"),content:W9.content}};import{jsx as $Ze}from"react/jsx-runtime";var txe={fields:{text:j("Heading",U.heading),level:ne("Level",$Ze(Qn,{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 wn}from"react/jsx-runtime";import{parseOption as KZe}from"efficient-shell/format";var U9="bottom-right",G9=["outline","solid","square","bare"],$9="outline",oxe={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},nxe=!1,rxe=["prev","next"],axe={prev:"Previous slide",next:"Next slide"};function VZe(e){return KZe(G9,$9,e)}function YZe(e){return Nbe(e)??U9}var jZe="flex-row items-center gap-2";function ixe(e){return uN(YZe(e),jZe)}var qZe={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 sxe(e){return qZe[VZe(e)]}function lxe(e){return e.shown===!0&&(e.count??0)>1}function LN(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 wxe,EyeIcon as X9,HandIcon as JZe,ScrollMoveDownIcon as xxe,OpacityIcon as QZe,PhoneIcon as gxe,PlayIcon as eJe,SlideArrowsBareIcon as tJe,SlideArrowsRoundIcon as oJe,SlideArrowsSquareIcon as nJe,SlidePickerBarIcon as rJe,SlidePickerCardsIcon as aJe,SlidePickerDotsIcon as iJe,SlidePickerNumbersIcon as sJe,SlidePickerSquaresIcon as lJe,SquareIcon as bxe,StylesIcon as dJe}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as cJe}from"efficient-shell/icons/efficient-looks";import{group as kf}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Z9,deviceNote as fJe}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as dxe}from"efficient-shell/format";var K9=["manual","timer","scroll"],cxe={manual:"Hand",timer:"Timer",scroll:"Scroll"};function AN(e){return dxe(K9,e.autoplay===!0?"timer":"manual",e.slideChange)}var V9=25,Y9=10,j9=100;function pxe(e){let t=Cn(e);return t===void 0?V9:Math.min(j9,Math.max(Y9,t))}function mxe(e,t,o){return o<=0||t<=0?0:Math.min(o-1,Math.max(0,Math.floor(e/t)))}var XZe=["wipe"],ZZe="wipe";function uxe(e){return dxe(XZe,ZZe,e)}var fxe=350,q9=8;var IN=Xn.Hero,hxe={label:"Hero",drawsPictures:!0,fields:IN,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var pJe=cJe,mJe={cards:wn(aJe,{}),dots:wn(iJe,{}),numbers:wn(sJe,{}),bar:wn(rJe,{}),squares:wn(lJe,{})},uJe={outline:wn(oJe,{}),solid:wn(pJe,{}),square:wn(nJe,{}),bare:wn(tJe,{})},hJe={manual:wn(JZe,{}),timer:wn(wxe,{}),scroll:wn(xxe,{})},gJe={any:[{field:"slideChange",is:"timer"},{all:[{field:"slideChange",set:!1},{field:"autoplay",is:!0}]}]},bJe={field:"slideChange",is:"scroll"},yxe={fields:{_dDevice:fJe(),_gContent:kf("Content"),slides:IN.slides,strip:IN.strip,_gStyle:kf("Style"),alignment:rre(),_gTexture:kf("Texture"),showTexture:oe("Show texture",bne,wn(X9,{})),textureColor:nhe,textureOpacity:le("Texture opacity",wn(QZe,{}),0,100,1,40,"%"),textureShape:ne("Texture style",wn(dJe,{}),xne,wne),_gLayout:kf("Layout"),...gO(),...ihe,_gAutoplay:kf("Auto-slide"),slideChange:dre("Change slides",wn(eJe,{}),K9.map(e=>({label:cxe[e],value:e,picture:hJe[e]})),"manual"),autoplayInterval:ot(le("Still time per slide",wn(wxe,{}),2,15,1,6,"s"),gJe),scrollPerSlide:ot(le("Scroll per slide",wn(xxe,{}),Y9,j9,1,V9,{kind:"height",base:"%"}),bJe),_gPicker:kf("Slide picker"),showPicker:oe("Show slide picker",Lbe,wn(X9,{})),pickerShape:co("Slide picker shape",wn(bxe,{}),P9.map(e=>({label:hN[e],value:e,picture:mJe[e]})),fN),pickerPlacement:pd("Slide picker placement",{fallback:E9}),_gArrows:kf("Arrows"),showArrows:oe("Show arrows",nxe,wn(X9,{})),arrowsShape:co("Arrows shape",wn(bxe,{}),G9.map(e=>({label:oxe[e],value:e,picture:uJe[e]})),$9),arrowsPlacement:pd("Arrows placement",{fallback:U9}),_gPhone:Z9("mobile",kf("On a phone")),phoneUpDown:Z9("mobile",Oe(pne,wn(gxe,{}),hne(),dne)),phoneSideways:Z9("mobile",Oe(mne,wn(gxe,{}),gne(),cne)),phoneWordsTop:rf.phoneWordsTop,phoneWordsBottom:rf.phoneWordsBottom,phoneBoxGap:rf.phoneBoxGap},resolveFields:(e,{fields:t})=>{let o=e.props??{},n=AN(o),r=t.slideChange;return!r||r.currentValue===n?t:{...t,slideChange:{...r,currentValue:n}}}};import{jsx as kxe}from"react/jsx-runtime";import{WidthIcon as Sxe}from"efficient-easel/icons";import{BOX_NUDGE_ROW as Txe,BOX_WIDTH_ROW as Q9,group as e7}from"efficient-easel/screen/lib/document/box-fields";var J9={...Xn.HeroGroup,content:{...Xn.HeroGroup.content,allow:wX}},vxe={label:bX,inline:!0,fields:J9,defaultProps:{placement:TJ,nudgeX:0,nudgeY:0,content:[]}};var Exe={fields:Ae({_gContent:e7("Content"),name:en(rw(Cr(Q("Box name",U.boxName)))),content:J9.content,_gLayout:e7("Layout"),placement:pd("Placement",{pointsFor:bae}),width:le("Width",kxe(Sxe,{}),P6,_6,5,EJ,Q9),...md(Q9,"width"),direction:jC("HeroGroup"),...ci("HeroGroup"),justify:_C(),align:CC(),wrap:Vh(),_gNudge:e7("Nudge"),...are({keys:{x:"nudgeX",y:"nudgeY"},min:-E6,max:E6,label:null,length:Txe}),...md(Txe,"nudgeX"),...Vp({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(e_(o?.data,n)===0)return t;let r={...t};return r.width=le("Width",kxe(Sxe,{}),P6,_6,5,PJ,Q9),r}};import{jsx as _xe}from"react/jsx-runtime";import{MediaIcon as xJe,OpacityIcon as yJe}from"efficient-easel/icons";import{group as Uk}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as vJe,deviceNote as kJe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as wJe}from"efficient-shell/format";var t7=Xn.HeroSingle,Pxe={label:"Hero Single",drawsPictures:!0,fields:t7,defaultProps:{mediaType:Ba.HeroSingle,[Fa.image]:wJe,tintColor:fs,tintOpacity:0,overlay:100,overlayColor:fs,overlayPosition:Gh}};var o7=Vb("video",Ba.HeroSingle),SJe=Vb("image",Ba.HeroSingle),Cxe=[...xO,"tintColor","tintOpacity"],Rxe={fields:iC({_dDevice:kJe(),boxNotice:SO("HeroSingle"),boxes:t7.boxes,_gStyle:Uk("Style"),overlay:le("Overlay",_xe(yJe,{}),0,100,5,100,"%"),overlayColor:U8.overlayColor,overlayPosition:U8.overlayPosition,_gLayout:Uk("Layout"),...gO({tabletNumber:!1}),_gPhone:vJe("mobile",Uk("On a phone")),phoneWordsTop:rf.phoneWordsTop,phoneWordsBottom:rf.phoneWordsBottom,phoneBoxGap:rf.phoneBoxGap,_gMedia:Uk("Media"),mediaType:Oe("Type",_xe(xJe,{}),QC,Ba.HeroSingle),mediaLayout:_g.mediaLayout,mediaLayoutPhone:_g.mediaLayoutPhone,...bO,videoSource:Fc.videoSource,mediaVideo:rt(W2,"video/*",U2),youtubeUrl:Fc.youtubeUrl,videoPlayback:Fc.videoPlayback,videoProgress:Fc.videoProgress,poster:rt("Video poster","image/*","Upload a poster still"),_gTint:Uk("Image tint"),tintColor:lk(),tintOpacity:sk(),...dk},{parts:{media:["mediaType",...wO,"videoSource","mediaVideo","youtubeUrl","videoPlayback","videoProgress","poster"],image:Cxe,image2:xx},onlyFor:{image:[...Cxe,"_gTint",...xx],video:["videoSource","videoPlayback","videoProgress","poster"]},rules:{mediaVideo:{all:[o7,{field:"videoSource",is:"upload",default:us}]},youtubeUrl:{all:[o7,{field:"videoSource",is:"youtube",default:us}]},videoProgress:vO(o7),...yO(SJe)},fallback:Ba.HeroSingle})};import{jsx as Gk}from"react/jsx-runtime";import{BlockVideoIcon as EJe,ClockIcon as PJe,ImageIcon as _Je,MediaIcon as CJe,PlayIcon as RJe}from"efficient-easel/icons";import{group as FN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as $x}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as TJe}from"efficient-shell/format";var n7=Xn.HeroSlide,Oxe={label:"Hero Slide",fields:n7,defaultProps:{mediaType:Ba.HeroSlide,videoSpeed:100,[Fa.image]:TJe,tintColor:fs,overlay:0}};var xm=Vb("video",Ba.HeroSlide),OJe=Vb("image",Ba.HeroSlide),Nxe=[...xO,"tintColor","overlay"],Lxe={fields:iC({_gContent:FN("Content"),name:en(rw(Q("Slide name",U.slideName))),process:en(W("Reel label","Label")),groupNotice:SO("HeroSlide"),groups:n7.groups,_gMedia:FN("Media"),mediaType:Oe("Type",Gk(CJe,{}),QC,Ba.HeroSlide),mediaLayout:_g.mediaLayout,mediaLayoutPhone:_g.mediaLayoutPhone,videoSource:Fc.videoSource,mediaVideo:$x("desktop",rt(W2,"video/*",U2,{frame:"videoFrame"})),mediaVideoPhone:$x("mobile",rt(W2,"video/*",U2,{frame:"videoFramePhone"})),videoFramePhone:jp(),mediaVideoAv1:$x("desktop",rt(aB,"video/mp4",iB)),mediaVideoAv1Phone:$x("mobile",rt(aB,"video/mp4",iB)),youtubeUrl:Fc.youtubeUrl,videoPlayback:Fc.videoPlayback,videoProgress:Fc.videoProgress,videoSpeed:le("Playback speed",Gk(RJe,{}),25,100,5,100,"%"),loadingShows:Iae("Show while loading",Gk(PJe,{}),{frame:Gk(EJe,{}),image:Gk(_Je,{})}),videoFrame:jp(),...bO,poster:$x("desktop",rt("Image","image/*","Choose an image")),posterPhone:$x("mobile",rt("Image","image/*","Choose an image")),_gTint:FN("Image tint"),tintColor:lk(),overlay:sk(),...dk,_gOverlay:FN("Overlay"),overlayColor:G8.overlayColor,overlayPosition:G8.overlayPosition},{parts:{media:["mediaType",...wO,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoProgress","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:Nxe,image2:xx},onlyFor:{image:[...Nxe,"_gTint",...xx],video:["videoSource","videoPlayback","videoProgress","loadingShows","videoFrame"]},fallback:Ba.HeroSlide,rules:{mediaVideo:{all:[xm,{field:"videoSource",is:"upload",default:us}]},mediaVideoPhone:{all:[xm,{field:"videoSource",is:"upload",default:us}]},mediaVideoAv1:{all:[xm,{field:"videoSource",is:"upload",default:us}]},mediaVideoAv1Phone:{all:[xm,{field:"videoSource",is:"upload",default:us}]},youtubeUrl:{all:[xm,{field:"videoSource",is:"youtube",default:us}]},videoProgress:vO(xm),videoSpeed:{all:[xm,{field:"videoSource",is:"upload",default:us},{field:"videoPlayback",is:"background",default:G2}]},...yO(OJe),poster:{all:[xm,lB]},posterPhone:{all:[xm,lB]}}})};import{jsx as r7}from"react/jsx-runtime";import{phoneKey as NJe}from"efficient-easel/draw";import{CropIcon as Axe,ImageIcon as LJe}from"efficient-easel/icons";import{group as a7,phoneTwinFields as AJe}from"efficient-easel/screen/lib/document/box-fields";var Ixe={fields:{_gImage:a7("Image"),src:rt("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>C2(t,e.fit,e.aspect,e[NJe("aspect")])}),alt:en(Q("Alt text")),rowField:qr("Shows","image"),[jo]:Vc(),...AJe("aspect",wx("Aspect ratio",r7(Axe,{}),Tb(Dg),"image","16/9",{more:[Vfe(sQ)]}),void 0,{phoneRow:wx("Aspect ratio",r7(Axe,{}),Tb(Dg),"image","16/9",{phoneRest:hQ})}),fit:ne(c_,r7(LJe,{}),rQ(),"cover"),focal:jp(),focalTablet:jp(),focalPhone:jp(),href:xf(Xe("Link")),_gStyle:a7("Style"),grayscale:yx(),...Wx(),_gShape:a7("Shape"),corners:Mae(),...vae(ure,"corners"),cornerSides:kae()},resolveFields:(e,t)=>Gae(ja(t.fields,e,t),e,t),showWhenFacts:Ya};import{jsx as IJe}from"react/jsx-runtime";import{group as Fxe}from"efficient-easel/screen/lib/document/box-fields";var Bxe={fields:{_gContent:Fxe("Content"),eyebrow:W("Chip label","Integrations"),title:j("Heading",`Plays well with
14
14
  *your favourite apps.*`),body:j("Body",""),apps:$r("App chips",IJe(Qn,{noun:"tag"}),"App name","verbatim"),_gStat:Fxe("Stat & note"),statValue:W("Big stat","100s"),statLabel:W("Stat label",""),note:W("Footnote","")}};import{jsx as $k}from"react/jsx-runtime";import{keptByRow as FJe}from"efficient-easel/screen/lib/document/style-fields";import{CaseIcon as BJe,OpacityIcon as HJe,PlacementIcon as DJe,TextLinesIcon as Hxe}from"efficient-easel/icons";import{group as Kx}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as qc,deviceNote as MJe}from"efficient-easel/screen/lib/document/device-fields";var Dxe={fields:{_dDevice:MJe(),_gContent:Kx("Content"),eyebrow:W("Eyebrow",Up.eyebrow),title:j("Heading",Up.title),body:j("Subtitle",Up.body),uppercase:oe("Uppercase heading",!1,$k(BJe,{})),_gBackground:Kx("Background images"),imageSrc:qc("desktop",rt("Background image","image/*")),imageSrcMobile:qc("mobile",rt("Background image","image/*")),_gLayout:Kx("Layout"),layout:co("Text position",$k(DJe,{}),$te.map(e=>({...e,picture:pae[e.value]})),Gte,{columns:2,cell:VC}),heightDesktop:$8("desktop"),heightMobile:$8("mobile"),copyShareDesktop:qc("desktop",le("Text height",$k(Hxe,{}),nl.min,nl.max,nl.step,nl.desktop,"%")),copyShareMobile:qc("mobile",le("Text height",$k(Hxe,{}),nl.min,nl.max,nl.step,nl.mobile,"%")),sticky:FJe("stickTop"),overlay:le("Overlay",$k(HJe,{}),0,100,5,60,"%"),_gTextDesktop:qc("desktop",Kx("Text style")),titleSizeDesktop:qc("desktop",a1("Heading font size",32,120,1,96,"heading",{row:q_,view:"desktop"})),bodySizeDesktop:qc("desktop",a1("Subtitle font size",12,28,1,17,"body",{row:X_,view:"desktop"})),_gTextMobile:qc("mobile",Kx("Text style")),titleSizeMobile:qc("mobile",a1("Heading font size",24,72,1,44,"heading",{row:q_,view:"phone"})),bodySizeMobile:qc("mobile",a1("Subtitle font size",12,22,1,16,"body",{row:X_,view:"phone"})),...md(q_,"titleSizeDesktop",{phone:!0}),...md(X_,"bodySizeDesktop",{phone:!0}),_gButton:Kx("Button"),...xl,buttonColor:Ma("Button color","#C9A461"),buttonTextColor:Ma("Button text color","#000000")}};import{jsx as Mxe}from"react/jsx-runtime";import{ColumnsIcon as zJe,StylesIcon as WJe}from"efficient-easel/icons";import{group as zxe}from"efficient-easel/screen/lib/document/box-fields";var Wxe={fields:{_gContent:zxe("Content"),eyebrow:W("Eyebrow",Ab.eyebrow),eyebrowLook:ne("Eyebrow style",Mxe(WJe,{}),[...Js],zp("KeyFeatures")),title:j("Heading",Ab.title),items:{type:"array",label:"Features",arrayFields:{label:ve("Feature label"),href:Cr(Q("Link"))},defaultItemProps:{label:"",href:""},getItemSummary:e=>e?.label||"Feature"},_gStyle:zxe("Style"),columns:le("Columns",Mxe(zJe,{}),2,4,1,3)}};import{jsx as UJe}from"react/jsx-runtime";import{readHidable as GJe}from"efficient-easel/draw";import{ThemeIcon as $Je}from"efficient-easel/icons";import{group as Uxe}from"efficient-easel/screen/lib/document/box-fields";var BN=e=>GJe(e).text;function KJe(e){return[BN(e.address).replace(/\s*\n+\s*/g,", "),BN(e.name),BN(e.state),BN(e.country)].map(t=>t.trim()).filter(Boolean).join(", ")}var Gxe={fields:{_gMap:Uxe("Map"),name:Q("Location name"),state:Q("State / Province"),country:Q("Country"),address:j("Address"),geocode:Ko(eR,{label:"Coordinates"}),mapsUrl:Q("Directions link"),_gStyle:Uxe("Style"),mapTheme:Oe("Map theme",UJe($Je,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],"auto")},resolveData:async e=>{let t=e.props,o={...t,lat:Number(t.lat)||0,lng:Number(t.lng)||0};if(!NC([o]))return e;let[n]=await LC([o],KJe);return{...e,props:{...e.props,lat:n.lat,lng:n.lng,geocode:n.geocode}}}};import{jsx as YJe}from"react/jsx-runtime";import{HeightIcon as jJe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as qJe,group as XJe}from"efficient-easel/screen/lib/document/box-fields";var $xe="auto";var HN="custom",i7="#000000";function DN(e,t){return e===HN?{reverse:!1,color:(typeof t=="string"?t.trim():"")||i7}:{reverse:e!=="off",color:null}}var MN={reverse:{type:"select",label:"Logo color",options:[{label:"Auto contrast",value:$xe},{label:"As uploaded",value:"off"},{label:"Custom color",value:HN}]},customColor:ot(Ma("Color",i7),{field:"reverse",is:HN})};var Kxe={fields:Ae({src:rt("Logo image","image/*"),alt:en(Q("Alt text","Brand name","Read out in place of the picture, and shown if it can\u2019t load.")),href:xf(Xe("Link")),heightPx:le("Height",YJe(jJe,{}),ote,nte,1,bu,"px"),...al("align",{access:qJe}),...MN,_gText:XJe("Text"),rowField:qr("Shows","text"),[jo]:Vc()},[[["alt"],{field:"src",set:!0}]]),resolveFields:(e,t)=>ja(t.fields,e,t),showWhenFacts:Ya};import{jsx as Vk}from"react/jsx-runtime";import{BlackAndWhiteIcon as JJe,ColumnsIcon as QJe,HeightIcon as eQe,PaddingYIcon as tQe,StylesIcon as oQe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as nQe,group as Yxe}from"efficient-easel/screen/lib/document/box-fields";import{parseOption as ZJe}from"efficient-shell/format";var Kk="plain",s7=[{label:"Plain",value:"plain"},{label:"Cards",value:"cards"},{label:"Marks",value:"marks"},{label:"Chips",value:"chips"}],Vxe=e=>ZJe(s7,Kk,e);var rQe=["items","heading","bandPadding"],aQe=["look"],iQe={field:"bandPadding",set:!0},sQe={field:h2,set:!0},jxe={not:{field:"look",is:"chips"}},lQe=Ae({_gContent:Yxe("Content"),dataSource:no("Logo content","Manual"),heading:j("Heading",I_.heading),items:{type:"array",label:"Logos",arrayFields:{src:rt("Image","image/*"),alt:en(Q("Name / alt"))},getItemSummary:e=>e.alt||e.src||"logo"},logos:ot(G6.logos,cl),template:ot(G6.template,sQe),_gStyle:Yxe("Style"),columns:le("Columns",Vk(QJe,{}),3,6,1,5),logoHeight:ot(le("Logo height",Vk(eQe,{}),16,72,2,28,"px"),jxe),bandPadding:ot(le("Space above and below",Vk(tQe,{}),16,120,4,40,"px"),iQe),grayscale:ot(oe("Black and white logos",!0,Vk(JJe,{})),jxe),look:co("Logo style",Vk(oQe,{}),s7.map(e=>({...e,picture:cae[e.value]})),Kk,{columns:2,cell:_r}),...al("align",{access:nQe})},[[rQe,Ia],[aQe,xZ]]),qxe={fields:lQe,resolveFields:(e,{fields:t})=>ro("Logos",t,e.props,{hides:["logos"]}),resolveData:(e,t)=>{if(!t?.changed?.[h2])return e;let o=wZ(e.props);return o===e.props?e:{...e,props:o}}};import{group as Yk}from"efficient-easel/screen/lib/document/box-fields";var _o={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:dc.href,imageLabel:"Featured *image*",metaPublished:U.date,metaReads:"0 min"},Xxe={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 dQe=["image","title","dek","ctaHref","metaPublished"],Zxe={fields:Pi({source:Ko(zx),_nBound:ot(ll(qC),XC),_gHead:Yk("Section header"),headNum:W("Number",_o.headNum),headTitle:j("Heading",_o.headTitle),headDesc:j("Body",_o.headDesc),_gMeta:Yk("Article"),category:W("Category",_o.category),metaMiddle:W("Middle meta",_o.metaMiddle),readLabel:W("Read time",_o.readLabel),title:j("Article title",_o.title),dek:j("Dek",_o.dek),_gQuote:Yk("Pull quote"),quote:j("Quote",_o.quote),quoteAttribution:W("Attribution",_o.quoteAttribution),_gLink:Yk("Link"),ctaText:W("Button",_o.ctaText),ctaHref:Xe("Link"),image:rt("Image","image/*"),imageLabel:W("Image label",_o.imageLabel),_gOverlay:Yk("Image caption"),metaPublished:W("Published",_o.metaPublished),metaReads:W("Reads in",_o.metaReads)},dQe,aw),resolveFields:(e,{fields:t})=>pt(t,e.props.headPlacement,ut.LongRead.headRows)};import{group as l7}from"efficient-easel/screen/lib/document/box-fields";var Jxe={fields:{_gContent:l7("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:l7("Media"),imageSrc:rt("Image","image/*"),_gStyle:l7("Style"),grayscale:yx()}};import{jsx as cQe}from"react/jsx-runtime";import{TextLinesIcon as pQe}from"efficient-easel/icons";import{group as d7}from"efficient-easel/screen/lib/document/box-fields";var Xc={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"},Qxe={label:"Issue Header",defaultProps:{eyebrow:"",issueMeta:[],lead:"",issueHeading:"",issueList:[],issueTotal:""}};var eye={fields:{_gTop:d7("Top row"),eyebrow:W("Eyebrow",Xc.eyebrow),issueMeta:{type:"array",label:"Issue meta lines",arrayFields:{lead:ve("Bold word"),rest:ve("Rest")},getItemSummary:e=>[e?.lead,e?.rest].filter(Boolean).join(" ")||"Line"},_gLead:d7("Lead"),lead:j("Lead",Xc.lead),_gIssue:d7("In this issue"),issueHeading:j("Panel heading",Xc.issueHeading),issueList:$r("Issue lines",cQe(pQe,{}),"Line","markup"),issueTotal:W("Total line",Xc.issueTotal)}};import{jsx as Sf}from"react/jsx-runtime";import{BlockColumnIcon as zN,PlacementIcon as fQe,StateIcon as hQe,TemplateIcon as gQe,TextLinesIcon as bQe}from"efficient-easel/icons";import{group as Yg}from"efficient-easel/screen/lib/document/box-fields";import{parseOption as Oto}from"efficient-shell/format";var c7=[{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"}],mQe=c7.map(e=>e.value),p7="spec-card",uQe={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 tye(e){return Ae(e,Object.entries(uQe).map(([t,o])=>[[t],Zn("variant",mQe,p7,o)]))}var wQe=[...Yte,"align"],oye={fields:Pi(tye({_gContent:Yg("Content"),eyebrow:W("Chip label","In the product"),title:j("Heading",`Seen from
16
16
  *the counter.*`),body:j("Body",""),_gCard:Yg("Mockup card"),variant:co("Card type",Sf(gQe,{}),c7.map(e=>({...e,picture:uae[e.value]})),p7,{columns:3,cell:_r}),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",Sf(hQe,{}),[{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:Yg("Kanban columns"),col1Title:W("Column 1 title",""),col1Cards:$r("Column 1 cards",Sf(zN,{}),"Job card label","verbatim"),col2Title:W("Column 2 title",""),col2Cards:$r("Column 2 cards",Sf(zN,{}),"Job card label","verbatim"),col3Title:W("Column 3 title",""),col3Cards:$r("Column 3 cards",Sf(zN,{}),"Job card label","verbatim"),col4Title:W("Column 4 title",""),col4Cards:$r("Column 4 cards",Sf(zN,{}),"Job card label","verbatim"),_gClaims:Yg("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:Yg("Terminal"),termLines:$r("Terminal lines",Sf(bQe,{}),"$ efficient \u2026","verbatim"),_gBrowser:Yg("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:Yg("Style"),align:ne("Mockup position",Sf(fQe,{}),[{label:"Right of the copy",value:"right"},{label:"Left of the copy",value:"left"}],"right")}),wQe,Ia)};import{group as WN}from"efficient-easel/screen/lib/document/box-fields";var jg={title:"Order summary",note:"A short reassurance note under the total."},m7=Xn.OrderSummary,nye={label:"Order Table",fields:m7,defaultProps:{eyebrow:"",title:"",rows:[],subRows:[],totalLabel:"",totalAmount:"",note:"",contained:!0}};var rye={fields:{_gContent:WN("Content"),eyebrow:W("Eyebrow",U.eyebrow),title:j("Heading",jg.title),_gItems:WN("Items"),dataSource:no("Order content","Manual"),rows:{type:"array",label:"Items",arrayFields:{label:ve("Item"),meta:ve("Meta line"),amount:ve("Amount")},getItemSummary:e=>e.label||"Item"},...m7,subRows:{type:"array",label:"Sub-total lines",arrayFields:{label:ve("Label"),amount:ve("Amount")},getItemSummary:e=>e.label||"Line"},_gTotal:WN("Total"),totalLabel:W("Total label","Total"),totalAmount:W("Total amount","$0,000"),note:j("Note",jg.note),_gLayout:WN("Layout")},resolveFields:(e,{fields:t})=>ro("OrderSummary",t,e.props,{hides:["rows"]})};import{jsx as wye}from"react/jsx-runtime";import{AccentIcon as IQe,ListIcon as FQe}from"efficient-easel/icons";import{isNodeList as BQe,newId as HQe}from"efficient-easel/data";import{group as fye}from"efficient-easel/screen/lib/document/box-fields";import{jsx as gi}from"react/jsx-runtime";import{useId as iye}from"react";import{useEasel as xQe,useSelectedHost as yQe}from"efficient-easel/easel";import{CloseIcon as vQe,LinkIcon as sye,LockIcon as kQe}from"efficient-easel/icons";import{SettingsField as lye}from"efficient-easel/panel";import{deviceField as SQe,deviceNote as TQe}from"efficient-easel/screen/lib/document/device-fields";import{Input as u7}from"efficient-shell/ui";var f7=(e,t)=>t==="number"?`${$B(e.value)} \xB7 ${u(e.label)}`:`${u(e.label)} \xB7 ${$B(e.value)}`;function EQe(e,t){return[{type:"label",key:"heading",label:u("Live numbers")},...e.map(o=>({key:o.key,label:f7(o,"name"),onSelect:()=>t(o.key)}))]}var dye=(e,t)=>e.length?{label:u("Connect to a live number"),icon:gi(sye,{size:16}),menu:EQe(e,t)}:void 0,cye=(e,t,o)=>gi(u7,{id:e,readOnly:!0,value:t,leftIcon:gi(kQe,{size:16}),endAction:{label:u("Unlink"),icon:gi(vQe,{size:16}),onClick:()=>o("")}});function PQe({id:e,text:t,countKey:o,choices:n,onText:r,onLink:a}){let i=o?n.find(s=>s.key===o):void 0;return gi("div",{className:"sf-copybox",children:o?cye(e,i?f7(i,"number"):t,a):gi(u7,{id:e,value:t,onChange:s=>r(s.target.value),endAction:dye(n,a)})})}function _Qe({id:e,countKey:t,onLink:o}){let n=Ap(g2),r=mw({[tc]:t}),a=r?n.find(i=>i.key===r):void 0;return gi("div",{className:"sf-copybox",children:r?cye(e,a?f7(a,"number"):r,o):gi(u7,{id:e,readOnly:!0,value:u("Typed by hand"),endAction:dye(n,o)})})}var pye={type:"custom",icon:gi(sye,{}),render:({value:e,onChange:t})=>gi(CQe,{value:e,onChange:t})};function CQe({value:e,onChange:t}){let o=iye();return gi(lye,{label:u("Live number"),htmlFor:o,children:gi(_Qe,{id:o,countKey:typeof e=="string"?e:"",onLink:t})})}function RQe(){let e=yQe();try{return xQe(t=>gie(t.appState.data.content,e?.id))}catch{return!0}}function OQe({value:e,onChange:t}){let o=iye(),[n,r]=gc(tc),a=RQe();return gi(lye,{label:u("Body"),htmlFor:o,children:gi(PQe,{id:o,text:YC(e).text,countKey:mw({[tc]:n}),choices:a?Ap(g2):LQe,onText:i=>t(qQ("textarea",e,i)),onLink:r})})}var NQe=TQe(),LQe=[],aye=new WeakMap;function AQe(e){let t=aye.get(e);if(!t){let o={...e,render:({value:n,onChange:r})=>gi(OQe,{value:n,onChange:r})};t=SQe("desktop",o),aye.set(e,t)}return t}function mye(e,t){if(typeof t?.[tc]!="string"||MC(t)!==null||Jn(t))return e;let o=e.text;return!o||typeof o!="object"?e:{_dDevice:NQe,...e,text:AQe(o)}}var h7=Xn.CardList,uye={label:"Card list",inline:!0,fields:h7,defaultProps:{rowField:""}};function xye(e){return BQe(e)?e.some(t=>{let o=t.props??{};return t.type==="Text"&&typeof o[tc]=="string"&&Jn(o)?!0:Object.values(o).some(xye)}):!1}var DQe=e=>Object.defineProperty(Object.fromEntries(e.map(t=>[t.key,""])),"key",{get:()=>HQe("row"),enumerable:!0}),hye=new WeakMap;function MQe(e,t,o){let n=t.filter(s=>!s.everySource),r=hye.get(e);r||hye.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,Ok(d)]));o&&(s[tc]=pye);let l=n[0]?.key;i={...e,arrayFields:s,defaultItemProps:DQe(n),getItemSummary:d=>l&&typeof d?.[l]=="string"&&d[l]||u("Row")},r.set(a,i)}return i}var yye="cardListInCardTemplate",UN={not:{context:yye,is:!0}},zQe={...Ya,[yye]:(e,t)=>{let o=Ip(t.appState,e.props?.id);return o===void 0?void 0:o!==null}},WQe=ot({type:"array",label:"Rows",icon:wye(FQe,{}),arrayFields:{}},{all:[UN,cl]}),UQe=e=>OZ(e,"text").find(t=>!t.everySource)?.key??"title",gye=new WeakMap;function GQe(e,t){let o=gye.get(e);o||gye.set(e,o=new WeakMap);let n=o.get(t);return n||o.set(t,n={...e,highlightedCard:t}),n}var $Qe=e=>{let t=new Set(Nh(null,{type:zr,props:e}).map(o=>o.key));return o=>t.has(o)},bye=new WeakMap;function KQe(e,t){let o=bye.get(e);o||bye.set(e,o=new WeakMap);let n=o.get(t);return n||o.set(t,n={...e,[ru]:t}),n}var vye={fields:{_gSource:fye("Source"),dataSource:ot(no("Card content","Manual"),UN),[uw]:fw(),_gCardList:fye("Card list"),rowField:qr("Shows","list"),[ru]:WQe,highlightedCard:ot(ne("Highlighted card",wye(IQe,{}),[{label:"None",value:""}],""),UN),highlightBadge:ot(W("Highlight badge","Most popular"),UN),...h7},resolveData:(e,t)=>{let o=e.props,n=t?.lastData?.props,r=dN(rse(o,n),ru),a=TP(r,$Qe(r));return a===o?e:{...e,props:a}},resolveFields:(e,t)=>{let o=e.props??{},n=ro(zr,ja(t.fields,e,t),o),r=!!Ip(t.appState,o.id),a=n[ru];if(r||!a)return n;let i=Nh(t.appState,{type:zr,props:o}),s=KQe(n,MQe(a,i,xye(o.template))),l=n.highlightedCard;return l?GQe(s,lN(l,sN(o,{rows:ru,label:UQe(i)}))):s},showWhenFacts:zQe};function VQe(e){let t=typeof e?.label=="string"?e.label.trim():"",o=typeof e?.name=="string"?e.name.trim():"";return t||o}var kye={fields:{},resolveFields:e=>({_nHostPart:ll("The section draws {what} here, in every card.",{what:VQe(e.props)})})};import{group as Sye}from"efficient-easel/screen/lib/document/box-fields";var Tye={fields:{_gContent:Sye("Content"),eyebrow:W("Eyebrow",pc.eyebrow),lead:j("Lead",U.body),stats:{type:"array",label:"Stats",arrayFields:{value:ve("Number"),label:ve("Unit")},getItemSummary:e=>e.label||e.value||"Stat"},_gFounders:Sye("Founders"),foundersHeading:j("Founders heading",pc.foundersHeading),foundersBody:j("Founders statement",pc.foundersBody),attribution:W("Attribution",pc.attribution)}};import{group as Eye}from"efficient-easel/screen/lib/document/box-fields";var Pye={fields:{_gContent:Eye("Content"),heading:W("Heading",D2.heading),dataSource:no("Payment content","Manual"),badges:{type:"array",label:"Payment methods",arrayFields:{label:ve("Name"),src:rt("Logo","image/*")},getItemSummary:e=>e.label||e.src||"Method"},assurances:{type:"array",label:"Reassurance lines",arrayFields:{text:ve("Line")},getItemSummary:e=>e.text||"Line"},_gLayout:Eye("Layout")},resolveFields:(e,{fields:t})=>ro("PaymentBadges",t,e.props,{hides:["badges"]})};import{jsx as g7}from"react/jsx-runtime";import{HeightIcon as YQe,ImageIcon as jQe,LayoutIcon as qQe}from"efficient-easel/icons";import{group as XQe}from"efficient-easel/screen/lib/document/box-fields";var kl={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"},_ye={label:"Post Card",drawsPictures:!0,defaultProps:{source:null,image:"",title:"",excerpt:"",href:"",category:"",date:"",readLabel:"",layout:v5,showCover:!0,placement:"bottom-left",darken:55,darkenStyle:R2[0].value,minHeight:fl.fallback}};var Cye={field:"layout",is:"cover"},ZQe={not:Cye},JQe=["placement","darken","darkenStyle","minHeight","_gTint"],QQe=["showCover"],eet=["image","title","excerpt","href"],Rye={fields:Ae({source:Ko(zx),image:rt("Cover image","image/*"),title:j("Heading",kl.title),excerpt:j("Excerpt",kl.excerpt),href:Xe("Link"),category:W("Category",kl.category),date:W("Date",kl.date),readLabel:W("Read time",kl.readLabel),layout:co("Card layout",g7(qQe,{}),ame.map(e=>({...e,picture:lae[e.value]})),v5,{columns:2,cell:VC}),showCover:oe("Show cover image",!0,g7(jQe,{})),placement:pd("Text position"),minHeight:le("Card height",g7(YQe,{}),fl.min,fl.max,fl.step,fl.fallback,fl.length),_gTint:XQe("Image tint"),...Wx()},[[JQe,Cye],[QQe,ZQe],[eet,aw]])};import{jsx as jk}from"react/jsx-runtime";import{ColumnWidthsIcon as tet,ColumnsIcon as oet,LayoutIcon as net,MediaLayoutStackedIcon as ret,PlacementIcon as aet}from"efficient-easel/icons";import{deviceField as iet}from"efficient-easel/screen/lib/document/device-fields";import{group as Nye,section as Lye}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as set}from"efficient-easel/screen/lib/document/field-buckets";import{isNodeList as Fye}from"efficient-easel/data";var Vx={num:U.sectionNumber,title:U.headingAccent,description:U.body,cta:U.viewAll},GN=Xn.ProcessSteps,Oye={label:"Image & Text Columns",drawsPictures:!0,fields:GN,defaultProps:{num:"",title:"",description:"",columns:3,padTop:120,padBottom:120}};var Aye={field:"arrangement",in:["rows-left","rows-right"]},Bye="drawsLegacySteps",Iye={not:{context:Bye,is:!0}},det={[Bye]:e=>{let t=e.props??{};return!ht(t)&&!Fye(t.boxes)}},cet=e=>e?.data?.root?.props??null,Hye={fields:Ae({_gSource:Nye("Source"),dataSource:no("Item content","Manual"),[uw]:fw(),_sHeader:Lye("Header"),_gContent:Nye("Content"),num:W("Number",Vx.num),title:W("Heading",Vx.title),description:j("Body",U.body),boxes:GN.boxes,[Lt]:GN[Lt],[set.Design]:Lye("Design"),arrangement:co("Arrangement",jk(net,{}),awe.map(e=>({label:e.label,hint:e.hint,value:e.value,picture:fae[e.value]})),"columns",{columns:3,cell:_r}),imageWidth:Oe("Image width",jk(tet,{}),iwe.map(e=>({label:e.label,value:e.value})),"half"),phoneOrder:iet("mobile",Oe("Order",jk(ret,{}),swe.map(e=>({label:e.label,value:e.value})),"picture")),columns:le("Columns",jk(oet,{}),2,4,1,3),...Dae(),cardText:Oe("Text position",jk(aet,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below")},[[["cardText"],{not:{field:"boxes",set:!0}}],[["arrangement"],Iye],[["imageWidth","phoneOrder"],{all:[Aye,Iye]}],[["columns"],{not:Aye}]]),showWhenFacts:det,resolveFields:(e,t)=>ro(f6,pt(t.fields,e.props.headPlacement,ut.ProcessSteps.headRows),e.props,{root:cet(t.appState)}),resolveData:(e,t)=>{let o=e.props;return t?.changed?.dataSource!==!0||!ht(o)||Fye(o[Lt])?e:{...e,props:{...o,[Lt]:hZ(uZ(o,f6))}}}};import{jsx as pet}from"react/jsx-runtime";import{SquareIcon as met}from"efficient-easel/icons";import{group as uet,section as fet}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as het}from"efficient-easel/screen/lib/document/field-buckets";var Dye={fields:{_gContent:uet("Content"),eyebrow:W("Eyebrow",ku.eyebrow),title:j("Heading",ku.title),body:j("Body",ku.body),[het.Design]:fet("Design"),topBorder:oe("Top border",!0,pet(met,{}))},resolveFields:(e,{fields:t})=>pt(t,e.props.headPlacement,ut.Prose.headRows)};import{jsx as b7}from"react/jsx-runtime";import{HashIcon as get,StylesIcon as Mye}from"efficient-easel/icons";import{group as zye}from"efficient-easel/screen/lib/document/box-fields";var Wye={fields:jQ({_gContent:zye("Content"),headStyle:co("Style",b7(Mye,{}),$Q.map(e=>({...e,picture:mae[e.value]})),GQ,{columns:3,cell:_r}),num:W("Number",Bn.num),eyebrowLook:ne("Eyebrow style",b7(Mye,{}),[...Js],kee),numStyle:Oe("Number style",b7(get,{}),[...aoe],roe),title:j("Heading",Bn.title),description:j("Body",Bn.description),linkText:W("Button",Bn.linkText),linkHref:Xe("Link"),_gLogo:zye("Logo"),logoSrc:rt("Logo image","image/*"),logoAlt:en(Q("Logo alt text","Logo description"))})};import{group as $N}from"efficient-easel/screen/lib/document/box-fields";var Zc={headNum:U.sectionNumber,headTitle:U.headingAccent,headDesc:U.body,viewLabel:"View series \u2192"},Uye={label:"Recurring Columns",defaultProps:{headNum:"",headTitle:"",headDesc:"",cards:[],viewLabel:"",background:"transparent"}};var Gye={fields:{_gHead:$N("Section header"),headNum:W("Number",Zc.headNum),headTitle:j("Heading",Zc.headTitle),headDesc:j("Body",Zc.headDesc),_gCards:$N("Cards"),cards:{type:"array",label:"Cards",arrayFields:{num:ve("Number"),since:ve("Right Top Text"),title:Je("Title"),desc:Je("Body"),entries:ve("Entries count"),entriesLabel:ve("Button Right Text")},getItemSummary:e=>e?.title||(e?.num?`Column ${e.num}`:"Column")},_gViewLabel:$N("Card link"),viewLabel:W("Card button",Zc.viewLabel),_gStyle:$N("Style"),background:dl("Background color",mr.Series,!0)},resolveFields:(e,{fields:t})=>pt(t,e.props.headPlacement,ut.Series.headRows)};var $ye={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 Kye}from"react/jsx-runtime";import{BackgroundIcon as bet,ContrastIcon as wet}from"efficient-easel/icons";import{group as Vye}from"efficient-easel/screen/lib/document/box-fields";var Yye={fields:{_gContent:Vye("Content"),cells:{type:"array",label:"Strip items",arrayFields:{text:Q("Label","Label"),tone:Oe("Tone",Kye(wet,{}),[{label:"Normal",value:"normal"},{label:"Muted",value:"muted"}],"normal")},defaultItemProps:{text:"",tone:"normal"},getItemSummary:e=>e?.text||"Item",min:2,max:8},_gStyle:Vye("Style"),fill:Oe("Strip fill",Kye(bet,{}),[{label:"Dark band",value:"dark"},{label:"None",value:"none"}],"dark")}};import{jsx as KN}from"react/jsx-runtime";import{CaseIcon as xet,OpacityIcon as jye,PlacementIcon as yet}from"efficient-easel/icons";import{group as Yx,section as qye}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as vet}from"efficient-easel/screen/lib/document/box-fields";var Xye={fields:{_sText:qye("Text column"),_gContent:Yx("Content"),eyebrow:W("Eyebrow",Wp.eyebrow),title:j("Heading",Wp.title),body:j("Body",Wp.body),uppercase:oe("Uppercase heading",!1,KN(xet,{})),...PC("textAlign",{access:vet}),_gButton:Yx("Button"),...xl,_gTextBg:Yx("Background image"),textBgSrc:rt("Background image","image/*"),overlay:le("Overlay",KN(jye,{}),0,100,5,60,"%"),_sImage:qye("Image column"),_gImage:Yx("Image"),imageSrc:rt("Image","image/*"),reverse:Oe("Image side",KN(yet,{}),[{label:"Image left",value:!1},{label:"Image right",value:!0}],!1),_gImageBtn:Yx("Overlay button"),imageBtnText:W("Overlay button",j_.text),imageBtnHref:Xe("Overlay button link"),_gStyle:Yx("Style"),grayscale:yx(),imageOverlay:le("Image overlay",KN(jye,{}),0,100,5,40,"%")}};import{jsx as ket}from"react/jsx-runtime";import{ColumnsIcon as Tet}from"efficient-easel/icons";import{group as Zye}from"efficient-easel/screen/lib/document/box-fields";var Jye={fields:{_gContent:Zye("Content"),heading:W("Heading","By the *numbers*"),items:{type:"array",label:"Stats",arrayFields:{value:ve("Value"),label:ve("Label")},getItemSummary:e=>e.label||e.value||"stat"},columns:le("Columns",ket(Tet,{}),2,4,1,4),_gStyle:Zye("Style"),background:dl("Background color",mr.Stats)}};import{jsx as Eet}from"react/jsx-runtime";import{AccentIcon as Pet}from"efficient-easel/icons";import{group as eve}from"efficient-easel/screen/lib/document/box-fields";var Tf={eyebrow:U.eyebrow,title:U.headingAccent,desc:U.body},Qye={label:"Stats with Text",defaultProps:{eyebrow:"",title:"",desc:"",stats:[],background:cee,padTop:120,padBottom:120}};var tve={fields:{_gContent:eve("Content"),eyebrow:W("Eyebrow",Tf.eyebrow),title:j("Heading",Tf.title),desc:j("Body",Tf.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,Eet(Pet,{})),label:Q("Label"),sub:Je("Body")},defaultItemProps:{value:"",prefix:"",suffix:"",supSuffix:"",emphasizeAll:!1,label:"",sub:""},getItemSummary:e=>e.label||e.value||"Stat"},_gStyle:eve("Style"),background:dl("Background color",mr.StatsParagraph,!0)},resolveFields:(e,{fields:t})=>pt(t,e.props.headPlacement,ut.StatsParagraph.headRows)};import{jsx as nve}from"react/jsx-runtime";import{ColumnsIcon as _et,StylesIcon as Cet}from"efficient-easel/icons";import{group as rve}from"efficient-easel/screen/lib/document/box-fields";var jx={eyebrow:"Feedback",title:"What people *say.*"},ove={label:"Testimonials",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var ave={fields:{_gContent:rve("Content"),eyebrow:W("Eyebrow",jx.eyebrow),eyebrowLook:ne("Eyebrow style",nve(Cet,{}),[...Js],zp("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:rve("Style"),columns:le("Columns",nve(_et,{}),1,3,1,3)},resolveFields:(e,{fields:t})=>pt(t,e.props.headPlacement,ut.Testimonials.headRows)};import{jsx as VN}from"react/jsx-runtime";import{BlockBadgeIcon as Ret,BorderTopIcon as Oet,MediaLayoutInsetIcon as Net}from"efficient-easel/icons";import{group as Let}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as Aet}from"efficient-easel/screen/lib/document/style-fields";import{VIEW_KEY_ACCESS as Iet}from"efficient-easel/screen/lib/document/box-fields";function Fet(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 YN={fields:{text:j("Body",U.body),consentWords:rN("text"),[tc]:Aet("text"),...al("align",{access:Iet}),tone:kO(),_gText:Let("Text"),rowField:qr("Shows",["text","date"]),[jo]:Vc(),[Tee]:ot(Oe("Place",VN(Ret,{}),[{label:"In the card",value:"",picture:VN(Net,{})},{label:"On the top line",value:"top-line",picture:VN(Oet,{})}],""),{not:{context:U6,is:!0}}),tag:ne("HTML tag",VN(Qn,{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)=>Fet(mye(aN(ja(t.fields,e,t),e.props,"text"),e.props),e.props),showWhenFacts:{...Ya,[U6]:(e,t)=>{let o=Ip(t.appState,e.props?.id);return o===void 0?void 0:!Ib(o?.type)}}};import{jsx as qk}from"react/jsx-runtime";import{GapIcon as Bet,LineBetweenIcon as Het,SquareIcon as Det,StylesIcon as Met,TextSizeIcon as zet}from"efficient-easel/icons";import{group as ive}from"efficient-easel/screen/lib/document/box-fields";var sve={fields:{_gContent:ive("Content"),items:nw($r(DB.label,DB.icon,"item","markup"),$P),_gStyle:ive("Style"),tone:Oe("Style",qk(Met,{}),[{label:"Solid",value:"scrim"},{label:"Plain",value:"plain"}],"scrim"),borders:oe("Hairline borders",!0,qk(Det,{})),size:Oe("Text size",qk(zet,{}),[...MX],wP),separator:xN(qk(Het,{}),xP),join:ne("Join",qk(Bet,{}),H_,B_)}};import{jsx as lve}from"react/jsx-runtime";import{ClockIcon as Wet,EyeIcon as Uet}from"efficient-easel/icons";import{group as dve,section as jN}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as cve}from"efficient-easel/screen/lib/document/field-buckets";var pve={field:"layout",is:"track"},Get={not:pve},mve={fields:Ae({[cve.Layout]:jN("Layout"),layout:co("Display",lve(Uet,{}),[{label:"Split",hint:"Split (editorial aside)",value:"split",picture:r1.split},{label:"Spine",hint:"Spine (single rail)",value:"spine",picture:r1.spine},{label:"Alternating",hint:"Alternating (zig-zag)",value:"alternating",picture:r1.alternating},{label:"Track",hint:"Track (year rail)",value:"track",picture:r1.track}],"split",{columns:2,cell:_r}),[cve.Design]:jN("Design"),background:dl("Background color",mr.TimelineTrack),_sHeader:jN("Header"),_gContent:dve("Content"),eyebrow:W("Eyebrow",el.eyebrow),title:j("Heading",el.title),intro:j("Intro",el.intro),imageSrc:rt("Image","image/*"),imageCaption:W("Image caption",el.imageCaption),imageMeta:W("Image meta",el.imageMeta),_gButton:dve("Button"),...xl,_sEntries:jN("Timeline entries"),entries:{type:"array",label:"Entries",arrayFields:{date:ve("Sub-title"),title:Je("Title"),body:Je("Body")},defaultItemProps:{date:"",title:"",body:""},getItemSummary:e=>e?.date||e?.title||"Entry"}},[[["imageSrc","imageCaption","imageMeta"],Get],[["background"],pve]]),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,lve(Wet,{}))}}}}};import{jsx as $et}from"react/jsx-runtime";import{ClockIcon as Ket}from"efficient-easel/icons";import{section as Xk}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as uve}from"efficient-easel/screen/lib/document/field-buckets";var fve={fields:{_sHeader:Xk("Header"),eyebrow:W("Eyebrow",tl.eyebrow),title:j("Heading",tl.title),intro:j("Body",tl.intro),_sEntries:Xk("Milestones"),entries:{type:"array",label:"Milestones",arrayFields:{date:Q("Year"),title:Je("Title"),blurb:Je("Body"),future:oe("Upcoming",!1,$et(Ket,{}))},defaultItemProps:{date:"",title:"",blurb:"",future:!1},getItemSummary:e=>e?.date||e?.title||"Milestone"},_sButton:Xk("Button"),...xl,[uve.Design]:Xk("Design"),background:dl("Background color",mr.TimelineTrack),[uve.Layout]:Xk("Layout")},resolveFields:(e,{fields:t})=>pt(t,e.props.headPlacement,ut.TimelineTrack.headRows)};import{jsx as Vet}from"react/jsx-runtime";import{StylesIcon as Yet}from"efficient-easel/icons";import{group as hve}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as jet}from"efficient-easel/screen/lib/document/box-fields";var gve={fields:{_gContent:hve("Content"),title:j("Heading",J_.title),buttons:{type:"array",label:"Buttons",arrayFields:{label:Q("Button"),href:Cr(Q("Button link")),variant:ne("Style",Vet(Yet,{}),[{label:"Filled",value:"primary"},{label:"Outline",value:"outline"}],"outline")},defaultItemProps:{label:"",href:"#",variant:"outline"},getItemSummary:e=>e?.label||"Button"},_gStyle:hve("Style"),...al("buttonsAlign",{fallback:"right",access:jet})},resolveFields:(e,{fields:t})=>{let o=YC(e.props.title);if(!(!o.hidden&&o.text.trim()))return t;let{buttonsAlign:n,buttonsAlignPhone:r,...a}=t;return a}};import{jsx as Xet}from"react/jsx-runtime";import{jsx as Jc,jsxs as w7}from"react/jsx-runtime";var x7={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 bve({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 Jc(Ft,{contained:i,..._e("py-6",l),children:w7("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&&w7("div",{className:"absolute inset-0","aria-hidden":!0,children:[Jc(_b,{children:Jc(qet,{src:Oi(a)})}),Jc("div",{className:"absolute inset-0",style:{background:ma(d)}})]}),w7("div",{className:"relative z-[1] flex max-w-[680px] flex-col gap-5",style:a?Ys:void 0,children:[e&&Jc(ft,{text:e}),t&&Jc("h2",{className:`font-heading2 ${x7.headingMedium} font-medium leading-[1.05] tracking-[-0.03em] ${x7.headingMediumUpTo800}`,children:re(t,!1)}),o&&Dt(o).map((c,p)=>Jc("p",{className:`${x7.body} leading-[1.6] opacity-85`,children:N(c)},p)),n&&Jc("div",{className:"mt-2 self-start",children:Jc(ya,{href:r||"#",variant:"primary",children:N(n)})})]})]})})}function qet({src:e}){let t=oo(e);return Jc(Gp,{src:t.src,...t.srcSet?{srcSet:t.srcSet,sizes:M2}:{},alt:"",className:"h-full w-full object-cover"})}var wve={...toe,render:e=>{let{eyebrow:t,title:o,body:n,imageSrc:r,ctaText:a,ctaHref:i,contained:s,overlay:l,editor:d}=e,c=di(a,i,d);return Xet(bve,{eyebrow:C(t,Su.eyebrow,d),title:C(o,Su.title,d),body:C(n,Su.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 vve}from"react/jsx-runtime";import{jsx as qx,jsxs as y7,Fragment as Zet}from"react/jsx-runtime";import{Fragment as Jet}from"react";var Qet={16:"max-view-tablet:py-4"},xve=e=>d_({values:Ur(e,Bh,!0),frame:l_(jP),drawsFrame:!0},!0).root;function yve({items:e,current:t,meta:o,editing:n=!1,pad:r}){let a=ge(),i=(e??[]).filter(d=>d?.label?.trim()),s=t?.trim()?[...i,{label:t}]:i,l=s.length>0?s:n?[{label:u("Breadcrumb")}]:[];return l.length===0&&!o?null:qx("nav",{className:he(["border-b border-line px-[var(--sf-site-gutter,40px)]",r?null:_2.all[jP.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:Qet[jP.topPhone]].filter(Boolean).join(" "),a),style:r&&Object.keys(r.style).length?r.style:void 0,...r?.attrs,children:y7("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 y7(Jet,{children:[c>0&&qx("span",{className:"opacity-40",children:"/"}),d.href&&!p?qx(xt,{newTab:"auto",href:d.href,className:"hover:text-fg",children:Xo(d.label)}):qx("span",{className:p?"text-fg":void 0,children:Xo(d.label)})]},c)}),o&&y7(Zet,{children:[qx("span",{className:"opacity-40",children:"\xB7"}),qx("span",{children:N(o)})]})]})})}var ett=()=>[{label:u("Home"),href:"/"},{label:u("Section"),href:""}],kve={...y0e,render:e=>{let{items:t,meta:o,editor:n}=e,r=a=>vve(yve,{items:Me(t,ett(),n),current:typeof a=="string"?a:void 0,meta:C(o,oN.meta,n),editing:n?.isEditing,pad:xve(e)});return Jn(e)?vve(rl,{type:"Breadcrumb",props:e,children:a=>r(a.currentCrumb)}):r()}};import{jsx as v7,Fragment as Ptt}from"react/jsx-runtime";import{jsx as qN}from"react/jsx-runtime";import{ArrowLongRightIcon as ttt,ArrowRightIcon as ott,ArrowUpRightIcon as ntt,BagIcon as rtt,CarIcon as att,CartIcon as itt,ChatIcon as stt,ChevronLeftIcon as ltt,ChevronRightIcon as dtt,DownloadIcon as ctt,EmailIcon as ptt,ExternalIcon as mtt,LocationIcon as utt,PackageIcon as ftt,PhoneIcon as htt,PlayIcon as gtt,ReceiptRefundIcon as btt,SearchIcon as wtt,ShieldCheckIcon as xtt,TagIcon as ytt,TruckIcon as vtt,WheelIcon as ktt}from"efficient-shell/icons/efficient";var Stt="sf-button-block",Ttt={"arrow-right":ott,"arrow-long-right":ttt,"arrow-up-right":ntt,"chevron-right":dtt,external:mtt,cart:itt,bag:rtt,tag:ytt,email:ptt,location:utt,play:gtt,download:ctt,search:wtt,car:att,phone:htt,wheel:ktt,chat:stt,"chevron-left":ltt,package:ftt,truck:vtt,"shield-check":xtt,"receipt-refund":btt},Ett=e=>e?` ${e}`:"";function Sve(e){let{label:t,href:o,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,widthFitPhone:m,widthFitTablet:f,buttonColor:g,buttonTextColor:h,hrefRewrite:b,blockPad:w}=e,x=mu(),y=d9(d),S=y&&y!=="none"?Ttt[y]:void 0,k=y===void 0?nN(l)?{}:{arrow:null}:S?{arrow:qN(S,{size:16}),...Nk(c)==="before"?{glyphBefore:!0}:{}}:{arrow:null},v=Jre(e),E=[E0e(p,m,f,{atSectionLine:!x}),v?.className??""].filter(Boolean).join(" "),T=E?{className:E}:{},_=T0e(c,p)?{spread:!0}:{},P=Xre(e),I=P?P.background==="transparent"?"ghost":"primary":n,F={...P??(g?n==="ghost"?{borderColor:g}:{background:g,borderColor:g}:{}),...h?{color:h}:{},...v?.style??{},...Zre(e)??{}},H=Object.keys(F).length?{style:F}:{},B=Hh(w,Bp.text);return qN(Ft,{contained:s,...B,className:`${Stt} ${B.className}`,part:Mt("button-block"),children:qN("div",{className:`flex${r?` ${oc[r]}`:""}${Ett(Wr("justify",r,a,i,{atSectionLine:!x}))}`,children:qN(ya,{href:o||"#",variant:I,...T,..._,...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 Tve={...oQ,render:e=>{let{label:t,href:o,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,buttonColor:m,buttonTextColor:f,editor:g}=e,h=Object.fromEntries(Object.entries(e).filter(([k])=>k==="buttonFillOpacity"||k==="buttonBorder"||k==="buttonCorners"||k==="buttonCornerSides"||k.startsWith("buttonPadding"))),b=vte(e),w=b?{hrefRewrite:b}:{},x=(k,v)=>v7(Sve,{label:cc(k,dc.text,g)??"",href:v,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,widthFitPhone:e[_tt("widthFit")],buttonColor:m,buttonTextColor:f,...h,...w,blockPad:Ur(e)}),y=Jn(e),S=Jn(e,jo);return!y&&!S?x(t,o):v7(rl,{type:"ButtonBlock",props:e,children:(k,v,E)=>E&&!g?.isEditing&&!(typeof k.label=="string"&&k.label.trim())?v7(Ptt,{}):x(k.label,k.href)})}};import{jsx as Jk,Fragment as Ove}from"react/jsx-runtime";import{jsx as Zk,Fragment as Ctt,jsxs as Eve}from"react/jsx-runtime";var Pve={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))]"},Rtt="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))]",Ott="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))]",Ntt="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))]",ym={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 _ve(e,t,o,n=!1){let r=Nb(o),a=t-1,i=Math.floor(a/r)*r,s=[];return e===0&&s.push(ym.phone.tl,ym.phone.tr,ym.wide.tl),e===a&&s.push(ym.phone.bl,ym.phone.br),e===r-1&&t>=r&&s.push(ym.wide.tr),e===i&&s.push(ym.wide.bl),e===a&&(t%r===0||XN(e,t,o,n)>1)&&s.push(ym.wide.br),e===a&&t<r&&XN(e,t,o,n)>1&&s.push(ym.wide.tr),s.join(" ")}function XN(e,t,o,n){if(!n||t<1||e!==t-1)return 1;let r=Nb(o),a=t%r;return a===0?1:r-a+1}var Cve="view-wide:[grid-column:span_var(--cd-span)/span_var(--cd-span)]";function Rve({look:e,eyebrow:t,title:o,columns:n,omitHead:r=!1,editing:a=!1,cards:i,pad:s}={}){let l=ge(),d=Nb(n),c=!!(t??"").trim()||!!(o??"").trim();return!a&&!c&&!i?null:Zk(z,{as:"section",className:"relative z-[2] bg-surface",children:Eve("div",{..._e(he(r?Ott:Rtt,l),s),children:[r?null:Eve(Ctt,{children:[(t??"").trim()&&Zk(ft,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&Zk("h2",{className:`mb-9 font-heading2 ${Pve.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-7 ${Pve.headingMediumUpTo800}`,children:re(o??"",!1)})]}),i?Zk("div",{className:Ntt,style:{"--cd-cols":String(d),overflowY:"visible"},children:Zk(Lo,{children:i})}):null]})})}var Nve=()=>[{title:u("Card title one"),body:u("A short line about this card.")},{title:u("Card title two"),body:u("A short line about this card.")},{title:u("Card title three"),body:u("A short line about this card.")}],Lve=()=>Nve().map(e=>({[Oh.title]:e.title??"",[Oh.body]:e.body??""}));function Ltt(e){return ht(e)?Kt(e,e.editor?.isEditing===!0,Lve()).rows.filter(t=>t[Oh.title]||t[Oh.body]).map(t=>({title:t[Oh.title]??"",body:t[Oh.body]??""})):null}function Att(e){let t=e.editor?.isEditing===!0,o=ht(e),n=L_(e);if(o){let a=Kt(e,t,Lve());return H2(F2(a.rows,a.sample?Ap(o):[]).filter(B2),n)}let r=Me(e.items,Nve(),e.editor).map(rn);return H2(F2(r).filter(a=>t||B2(a)),n)}function Itt(e,t,o=1){let n=[`relative grid ${yQ} bg-bg`,t,o>1?Cve:""].filter(Boolean).join(" "),r=o>1?{"--cd-span":String(o)}:void 0;return Jk("div",{className:n,style:r,children:e})}var Ave={...xee,render:e=>{let t=Ge(e.headPlacement)==="own-box",o=l=>t?void 0:l,n=(e.template?.blockCount??0)>0,r=Ltt(e);if(!n&&r&&!r.length)return Jk(Ove,{});let a=l=>Jk(Rve,{look:cs(e.eyebrowLook,e.cardStyle==="label-only"?"KeyFeatures":"Cards"),eyebrow:o(C(e.eyebrow,Lb.eyebrow,e.editor)),title:o(C(e.title,Lb.title,e.editor)),columns:e.columns,omitHead:t,editing:e.editor?.isEditing,cards:l,pad:et("Cards",e)}),{rows:i,states:s}=n?Att(e):{rows:[],states:[]};return n&&r&&!i.length?Jk(Ove,{}):Jk(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 Itt(l,_ve(d.index,i.length,c,p),XN(d.index,i.length,c,p))},children:l=>i.length?a(l):a()})}};import{jsx as Btt}from"react/jsx-runtime";import{jsx as Qk,jsxs as k7}from"react/jsx-runtime";var S7={body:"text-[length:var(--size-body,12px)]",label:"text-[length:var(--size-label,13px)]"};function Ive({tabs:e,activeTab:t,links:o,sticky:n=!0,editing:r=!1}){let a=Fn(),i=(e??[]).filter(p=>p?.label?.trim()),s=i.length>0?i:r?[{label:u("Tab")}]:[],l=(o??[]).filter(p=>p?.label?.trim());if(s.length===0&&l.length===0)return null;let d=t?s.findIndex(p=>p.label.toLowerCase()===t.toLowerCase()):-1,c=d===-1?0:d;return a.scope(Qk("nav",{className:Qt(`${n?`${Kb} 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:k7("div",{className:"mx-auto flex max-w-[calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2)] items-stretch gap-0 overflow-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[s.map((p,m)=>{let f=m===c,g=p.count?.trim()?p.count:"";return k7("span",{className:[`relative whitespace-nowrap border-r border-line px-[22px] py-[18px] font-mono ${S7.label} uppercase tracking-[0.22em] transition-colors`,m===0?"border-l border-line":"",f?"text-fg":"text-fg-dim hover:text-fg"].join(" "),children:[Xo(p.label),g&&Qk("span",{className:`ml-2 ${S7.body} text-accent opacity-70`,children:Xo(g)}),f&&Qk("span",{className:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"})]},m)}),l.length>0&&Qk("div",{className:"ml-auto flex border-l border-line",children:l.map((p,m)=>k7(xt,{newTab:"auto",href:p.href||"#",className:`flex items-center gap-2.5 px-[22px] py-[18px] font-mono ${S7.label} uppercase tracking-[0.22em] text-fg-dim hover:text-fg`,children:[Xo(p.label)," ",Qk("span",{className:"text-accent",children:"\u2197"})]},m))})]})}))}import{hidableText as Htt}from"efficient-easel/draw";var Ftt=[{label:"Archive",href:"#sub-recent-issues"},{label:"RSS",href:"/contact"}],Fve={label:"Category bar",defaultProps:{tabs:[],activeTab:"All",links:Ftt,sticky:!0}};var Dtt=()=>[{label:u("All")},{label:U.category},{label:U.category}],Bve={...Fve,render:({tabs:e,activeTab:t,links:o,sticky:n,editor:r})=>Btt(Ive,{tabs:Me(e,Dtt(),r),activeTab:Htt(t),links:o,sticky:n,editing:r?.isEditing})};import{jsx as Utt}from"react/jsx-runtime";import{jsx as ln,jsxs as Nd}from"react/jsx-runtime";var vm={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 T7(e){return Number.isInteger(e)?String(e):String(Math.round(e*10)/10)}var Hve=[100,70,46,30,19,12];function Dve(e){return`color-mix(in srgb, var(--accent) ${Hve[e%Hve.length]}%, var(--bg))`}function Mtt({data:e,suffix:t}){let o=Math.max(...e.map(n=>n.value),0)||1;return ln("div",{className:"flex w-full flex-col gap-6",children:e.map((n,r)=>Nd("div",{children:[Nd("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[ln("span",{className:`font-mono ${vm.label} uppercase tracking-[0.14em] text-fg/60`,children:N(n.label)}),Nd("span",{className:`font-display ${vm.bodyLarge} font-medium text-fg`,children:[T7(n.value),t]})]}),ln("div",{className:"h-[10px] border border-line bg-bg",children:ln("div",{className:"h-full bg-accent",style:{width:`${Math.max(n.value/o*100,n.value===0?0:2)}%`}})})]},r))})}function ztt({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 Nd("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(c=>ln("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)),ln("line",{x1:o.l,x2:640-o.r,y1:o.t+r,y2:o.t+r,stroke:"var(--site-line)",strokeWidth:"1.5"}),ln("path",{d,fill:"var(--accent)",opacity:"0.13"}),ln("path",{d:l,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),s.map((c,p)=>Nd("g",{children:[ln("circle",{cx:c.x,cy:c.y,r:"4",fill:"var(--accent)"}),Nd("text",{x:c.x,y:c.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[T7(e[p].value),t]}),ln("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 Wtt({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:Dve(l)};return a+=d*r,c});return Nd("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[ln("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:i.map((s,l)=>ln("circle",{cx:"100",cy:"100",r:n,fill:"none",stroke:s.ink,strokeWidth:"34",strokeDasharray:`${s.dash} ${r-s.dash}`,strokeDashoffset:-s.off},l))}),ln("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:e.map((s,l)=>Nd("li",{className:"flex items-baseline gap-3",children:[ln("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:Dve(l)}}),ln("span",{className:`flex-1 font-mono ${vm.label} uppercase tracking-[0.12em] text-fg/60`,children:N(s.label)}),ln("span",{className:`font-display ${vm.bodySmall} font-medium text-fg`,children:t?`${T7(s.value)}${t}`:`${Math.round(s.value/o*100)}%`})]},l))})]})}function Mve({eyebrow:e,title:t,body:o,chartStyle:n,items:r,valueSuffix:a,caption:i,editing:s=!1,omitHead:l=!1,pad:d}={}){let c=ge(),p=(a??"").trim()===""?"":a??"",m=(r??[]).map(b=>({label:(b.label??"").trim(),value:parseFloat(b.value??"")})).filter(b=>s?!0:b.label&&Number.isFinite(b.value)).map(b=>({label:b.label||"\u2014",value:Number.isFinite(b.value)?b.value:0})),f=!l&&(!!(e??"").trim()||!!(t??"").trim());if(!s&&!f&&m.length===0)return null;let g=n??"bars",h=m.length===0?null:g==="line"&&m.length>1?ln(ztt,{data:m,suffix:p}):g==="donut"?ln(Wtt,{data:m,suffix:p}):ln(Mtt,{data:m,suffix:p});return l?h?ln("div",{className:"w-full",children:h}):null:ln(z,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:Nd("div",{..._e(he("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:[Nd("div",{children:[(e??"").trim()&&ln("span",{className:`inline-block bg-accent px-3.5 py-1.5 font-mono ${vm.labelLarge} font-semibold uppercase tracking-[0.16em] text-bg`,children:N(e??"")}),(t??"").trim()&&ln("h2",{className:`mt-5 font-heading2 ${vm.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${vm.headingMediumUpTo800}`,children:re(t??"",!1)}),(o??"").trim()&&ln("p",{className:`mt-5 max-w-[46ch] ${vm.bodySmall} leading-relaxed text-fg/65`,children:o})]}),Nd("div",{children:[h,(i??"").trim()&&ln("p",{className:`mt-4 font-mono ${vm.labelSmall} uppercase tracking-[0.14em] text-fg/40`,children:i})]})]})})}var Gtt=()=>[{label:u("Before"),value:"9"},{label:u("After"),value:"3"},{label:u("With us"),value:"1"}],zve={...Vte,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=m=>c?void 0:m;return Utt(Mve,{eyebrow:p(C(t,$b.eyebrow,d)),title:p(C(o,$b.title,d)),body:p(an(n)),items:Me(r,Gtt(),d),chartStyle:i,valueSuffix:an(s),caption:p(an(a)),editing:d?.isEditing,omitHead:c,pad:et("Chart",e)})}};import{jsx as R7,Fragment as pot}from"react/jsx-runtime";import{jsx as Gt,jsxs as Ss,Fragment as Kve}from"react/jsx-runtime";import{useEffect as tot,useState as oot}from"react";import{useRootIsDark as not}from"efficient-shell/theme";import{jsx as Wve,jsxs as Uve}from"react/jsx-runtime";var E7={headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function ZN({groupKey:e,name:t,count:o}){return Uve("div",{className:"mb-5 flex items-end justify-between gap-4 border-b border-line pb-4",children:[Wve("span",{className:`font-mono ${E7.labelLarge} uppercase tracking-[0.3em] text-accent`,children:e}),t?Wve("span",{className:`font-heading3 ${E7.headingSmall} font-medium uppercase tracking-[-0.01em]`,children:t}):null,Uve("span",{className:`font-mono ${E7.labelSmall} uppercase tracking-[0.22em] text-fg-dim`,children:[o," location",o===1?"":"s"]})]})}import{jsx as eS,jsxs as P7}from"react/jsx-runtime";import{useMemo as Jtt}from"react";import{jsx as $tt,jsxs as Ktt}from"react/jsx-runtime";import{useEffect as Gve,useRef as Vtt,useState as $ve}from"react";import{EntityMap as Ytt}from"efficient-shell/map";import{watchRootTheme as jtt}from"efficient-shell/format";var qtt={"--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 Xtt(e){let[t,o]=$ve(()=>_P(e));return Gve(()=>(o(_P(e)),jtt(()=>o(_P(e)))),[e]),t?"light":"dark"}function Ztt(e){let[t,o]=$ve(!1);return Gve(()=>{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 Xx({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=Vtt(null),m=Ztt(p),f=Xtt(t);return Ktt("div",{ref:p,"data-site-map":"",className:n,style:qtt,children:[m&&$tt(Ytt,{pins:e,selectedKey:r,focus:a,onSelect:i??(()=>{}),ariaLabel:o,fitTo:s,card:l,groupCrowded:d,look:"site",theme:f,cooperativeGestures:"coarse"}),c]})}var Qtt="relative overflow-hidden max-view-desktop:aspect-square";function eot(e,t,o){return nu(t,o)?[{key:"place",label:e,lat:t,lng:o,glyph:"",tone:""}]:[]}function _7(e,t,o,n){return e||(t?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent([t,o,n].filter(Boolean).join(" "))}`:"")}function C7({href:e}){return eS("a",{href:e,...O_,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 JN({name:e,state:t,country:o,lat:n,lng:r,mapsUrl:a,mapTheme:i="auto",pick:s,editing:l,boxClass:d=Qtt,takesViewHide:c=!1}){let p=nu(n,r),m=t,f=e||"Location",g=Jtt(()=>eot(f,n,r),[f,n,r]),h=_7(a,e,t,o),b=P7("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:[P7("span",{className:"font-display text-[length:var(--size-body,14px)] font-medium tracking-[-0.01em]",children:[f,m?`, ${m}`:""]}),h&&eS(C7,{href:h})]});return p?eS(z,{takes:c,"data-loc-pick":s,className:d,children:eS(Xx,{pins:g,mapTheme:i,ariaLabel:f,className:"absolute inset-0",children:b})}):P7(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&&eS("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 rot=Fee({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:e=>[`${e} > div:first-child`]}),Vve=e=>Er(e?.photo)?.trim()||void 0;function Yve({value:e}){if(typeof e=="string"){let t=e.split(`