efficient-storefront-blocks 0.138.0 → 0.138.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 Wp,$a as $ee,$b as xu,$c as moe,$d as cne,$e as vC,$f as sR,$g as Jie,A as lu,Aa as Lee,Ab as xte,Ac as oC,Ad as fB,Ae as $h,Af as Ft,Ag as xie,Ah as use,B as sQ,Ba as Hb,Bb as kte,Bc as sl,Bd as Ioe,Be as yB,Bf as ere,Bg as hw,Bh as fse,C as BQ,Ca as I_,Cb as Ste,Cc as aB,Cd as Foe,Ce as Ene,Cf as tre,Cg as ZB,Ch as hse,D as be,Da as q6,Db as G_,Dc as Yb,Dd as Su,De as vB,Df as CB,Dg as yie,Dh as gse,E as HQ,Ea as Db,Eb as Tte,Ec as Xte,Ed as bc,Ee as ud,Ef as PC,Eg as vie,Eh as bse,F as I2,Fa as Fee,Fb as Uh,Fc as Zte,Fd as Boe,Fe as Pne,Ff as _C,Fg as JB,Fh as wse,G as GQ,Ga as F_,Gb as ko,Gc as Jte,Gd as Hoe,Ge as _ne,Gf as ore,Gg as c1,Gh as xse,H as $Q,Ha as Bee,Hb as $_,Hc as Qte,Hd as mC,He as kB,Hf as CC,Hg as kie,Hh as vw,I as KQ,Ia as B2,Ib as Pte,Ic as eoe,Id as Doe,Ie as Cne,If as nre,Ig as mR,Ih as yse,J as VQ,Ja as H2,Jb as K_,Jc as toe,Jd as Moe,Je as Rne,Jf as RB,Jg as uR,Jh as vse,K as T_,Ka as B_,Kb as V_,Kc as iB,Kd as zoe,Ke as One,Kf as RC,Kg as Sie,Kh as kse,L as YQ,La as Hee,Lb as Rte,Lc as ooe,Ld as Woe,Le as Nne,Lf as rre,Lg as Tie,Lh as gd,M as jQ,Ma as Dee,Mb as xt,Mc as noe,Md as Uoe,Me as SB,Mf as OB,Mg as fR,Mh as Sse,N as qQ,Na as Mee,Nb as Ote,Nc as vu,Nd as Goe,Ne as Lne,Nf as are,Ng as Eie,Nh as Nu,O as XQ,Oa as zee,Ob as N,Oc as roe,Od as $oe,Oe as Ane,Of as ire,Og as Pie,Oh as Tse,P as ZQ,Pa as Wee,Pb as Jo,Pc as uc,Pd as Koe,Pe as Ine,Pf as sre,Pg as _ie,Ph as nH,Q as JQ,Qa as Uee,Qb as nB,Qc as aoe,Qd as Voe,Qe as EB,Qf as lre,Qg as Cie,Qh as Ese,R as QQ,Ra as D2,Rb as re,Rc as ku,Rd as tne,Re as xC,Rf as Yae,Rg as $ie,Rh as Pse,S as et,Sa as M2,Sb as Dt,Sc as ioe,Sd as one,Se as yC,Sf as jae,Sg as Kie,Sh as xR,T as Y6,Ta as z2,Tb as rl,Tc as nC,Td as fC,Te as Hne,Tf as qae,Tg as Vie,Th as _se,U as Re,Ua as H_,Ub as Nte,Uc as soe,Ud as nne,Ue as Dne,Uf as Xae,Ug as Yie,Uh as Cse,V as fee,Va as Gee,Vb as Lte,Vc as loe,Vd as rne,Ve as Mne,Vf as Zae,Vg as jie,Vh as p1,W as Zo,Wa as fu,Wb as al,Wc as doe,Wd as ane,We as Tu,Wf as VB,Wg as ww,Wh as Rse,X as xee,Xa as D_,Xb as Y_,Xc as coe,Xd as ine,Xe as Fo,Xf as Jae,Xg as qie,Xh as Ose,Y as F2,Ya as zh,Yb as Ate,Yc as Hn,Yd as sne,Ye as Xb,Yf as Qae,Yg as bR,Z as lc,Za as Wh,Zb as wu,Zc as poe,Zd as lne,Ze as zne,Zf as iR,Zg as Xie,_ as R_,_a as Mb,_b as il,_c as $p,_d as dne,_e as Wne,_f as Ru,_g as Zie,a as E6,aa as dc,ab as Kee,ac as Fte,ad as uoe,ae as pne,af as kC,ag as pw,ah as Qie,b as qs,ba as cc,bb as Vee,bc as X_,bd as U2,be as mne,bf as Une,bg as mw,bh as tH,c as Xs,ca as uu,cb as Yee,cc as Z_,cd as hc,ce as une,cf as Gne,cg as uw,ch as ese,d as Fn,da as Mh,db as jee,dc as rB,dd as to,de as wc,df as PB,dg as fw,dh as ut,e as C2,ea as yee,eb as mr,ec as mc,ed as rC,ee as fne,ef as Zb,eg as YB,eh as zt,f as ru,fa as O_,fb as zb,fc as Me,fd as boe,fe as hne,ff as Kh,fg as jB,fh as Ma,g as R2,ga as vee,gb as qee,gc as C,gd as Kp,ge as gne,gf as $ne,gg as lR,gh as ro,h as dJ,ha as N_,hb as Xee,hc as cn,hd as woe,he as bne,hf as Kne,hg as eie,hh as tse,i as $P,ia as kee,ib as Zee,ic as wn,id as Mt,ie as bB,if as SC,ig as qB,ih as ose,j as kb,ja as L_,jb as M_,jc as li,jd as Ba,je as wB,jf as Vne,jg as tie,jh as oH,k as Ih,ka as Ib,kb as Jee,kc as J_,kd as lB,ke as xB,kf as Ha,kg as oie,kh as nse,l as KP,la as Fb,lb as X6,lc as Bte,ld as iC,le as hC,lf as ll,lg as nie,lh as rse,m as VP,ma as See,mb as Qee,mc as Hte,md as xoe,me as gC,mf as Ke,mg as aie,mh as ase,n as YP,na as Tee,nb as W2,nc as Dte,nd as yoe,ne as bC,nf as Eu,ng as iie,nh as ise,o as jP,oa as Bb,ob as ete,oc as Mte,od as sC,oe as wC,of as Yne,og as sie,oh as hl,p as qP,pa as Eee,pb as tte,pc as zte,pd as lC,pe as wne,pf as jne,pg as lie,ph as sse,q as XP,qa as Pee,qb as ote,qc as Wte,qd as voe,qe as xne,qf as qne,qg as die,qh as xw,r as cJ,ra as _ee,rb as Q6,rc as Ute,rd as koe,re as yne,rf as Xne,rg as cie,rh as lse,s as mJ,sa as ol,sb as W_,sc as Gte,sd as Soe,se as vne,sf as J2,sg as pie,sh as dse,t as uJ,ta as A_,tb as U_,tc as Gp,td as Toe,te as j2,tf as TC,tg as mie,th as wR,u as e_,ua as Up,ub as bte,uc as Q_,ud as $2,ue as q2,uf as Zne,ug as uie,uh as yw,v as t_,va as ms,vb as wte,vc as $te,vd as K2,ve as X2,vf as Q2,vg as fie,vh as cse,w as YJ,wa as Cee,wb as Kb,wc as Kte,wd as mB,we as Z2,wf as Vh,wg as XB,wh as pse,x as jJ,xa as Ree,xb as eB,xc as Yte,xd as uB,xe as kne,xf as _B,xg as bie,xh as mse,y as c_,ya as Oee,yb as tB,yc as jte,yd as qb,ye as Sne,yf as Jne,yg as pR,yh as Xp,z as W6,za as Nee,zb as oB,zc as qte,zd as pC,ze as Tne,zf as Qne,zg as wie,zh as Qh}from"./chunks/chunk-6VZXQPDK.js";import{$ as Jp,$a as Hu,A as Ele,B as Ple,Ba as Yle,C as _le,Ca as BR,D as Cle,Da as HR,E as ER,Ea as jle,F as _w,Fa as DR,G as PR,Ga as Bu,H as Rle,Ha as Iw,I as _R,Ia as Sc,J as CR,Ja as MR,K as Ole,Ka as Fw,L as Cw,La as zR,M as Rw,Ma as WR,N as RR,Na as Qp,O as Nle,Oa as mH,P as Lle,Pa as qle,Q as OR,Qa as Xle,R as Au,Ra as Zle,S as Ale,Sa as Jle,T as NR,Ta as Qle,U as Ow,Ua as ede,V as Ile,Va as tde,W as tg,Wa as ode,X as Fle,Xa as nde,Y as Iu,Ya as rde,Z as Nw,Za as ade,_ as LR,_a as UR,a as ga,aa as Ble,ab as Tc,b as ule,ba as Hle,bb as ide,ca as Dle,cb as og,da as AR,db as sde,ea as Mle,eb as uH,f as Zp,fa as zle,fb as lde,g as SR,ga as f1,gb as dde,h as fle,ha as IR,hb as GR,i as hle,ia as Wle,ib as cde,j as dH,ja as Lw,jb as bs,k as gle,ka as Ule,kb as $R,l as ble,lb as Bw,m as wle,mb as pde,n as xle,na as Gle,nb as mde,o as TR,ob as em,p as cH,pa as $le,pb as fH,q as yle,qa as Kle,r as ba,ra as Fu,rb as hH,s as vle,sa as At,sb as Ec,t as kle,ta as Vle,tb as Pc,u as Lu,ub as KR,v as Sle,va as pH,vb as ng,w as kc,wa as Aw,wb as $r,x as u1,xa as Mn,y as Tle,ya as FR,z as Pw,za as h1}from"./chunks/chunk-TATVHMH7.js";import{A as Use,B as Gse,C as $se,D as Kse,E as Vse,F as Yse,G as jse,H as qse,I as Xse,J as iH,K as Zse,L as sH,M as xn,N as Jse,O as Ai,P as Qse,Q as ele,R as kR,S as ur,T as tle,U as ole,V as nle,W as rle,X as Sw,Y as ale,b as yR,ca as Tw,da as Bo,e as m1,ea as eg,f as kw,fa as ile,ga as Ew,h as Dn,ha as Ne,i as vc,ia as sle,j as Nse,ja as lH,k as Lse,ka as lle,l as Ase,la as dle,m as Ise,ma as cle,n as Fse,na as ple,o as rH,oa as mle,p as gl,q as Bse,r as Hse,s as lt,t as Li,u as Dse,v as Mse,w as aH,x as zse,y as vR,z as Wse}from"./chunks/chunk-LAUTWUIM.js";import{$ as NQ,A as SQ,B as N2,C as TQ,F as Ob,G as du,H as _Q,I as Mp,L as CQ,M as Bn,N as b_,O as Jt,P as z,Q as $6,S as pu,T as Nb,U as RQ,V as K6,W as OQ,X as Lb,aa as Z6,b as qJ,ba as gu,c as XJ,ca as ste,da as Gb,ea as lte,fa as nl,g as ZJ,ga as Ete,ha as He,i as lQ,ia as Jh,j as h_,k as g_,ka as hie,l as dQ,la as dR,m as cQ,ma as gie,n as pQ,na as cR,o as mQ,p as uQ,q as fQ,r as hQ,s as gQ,u as bQ,v as wQ,w as xQ,x as yQ,y as vQ,z as kQ}from"./chunks/chunk-MCIZHB3Z.js";import{a as Ni,b as foe,c as fc,e as fs,h as EC,j as ha,k as Gie}from"./chunks/chunk-4BGF2KJJ.js";import{a as LQ,b as IQ,e as FQ}from"./chunks/chunk-OAHMFUHH.js";import{$b as Ri,$d as Iee,$e as Gh,$f as OC,$g as kre,$h as KC,$i as kae,$k as oo,A as iu,Ae as fte,Af as uC,Ah as rw,Ai as jC,Aj as nR,Ak as $ae,Bf as joe,Bh as fa,Bi as lae,Bk as Kae,Cb as vo,Ce as hte,Cf as qoe,Ch as IB,Ci as qC,Cj as GB,Ck as Vae,D as ge,Db as Hh,Df as hs,Dh as Hre,Di as dae,Dj as xc,E as Ci,Eb as m_,Ee as gte,Ef as Xoe,Eh as Dre,Ei as cae,F as wJ,Fb as Wr,Fd as __,Ff as Zoe,Fh as FB,Fi as a1,Fj as Eae,Gf as V2,Gh as BB,Gi as i1,Gj as Pae,H as xJ,Hc as j6,He as yte,Hf as Joe,Hh as HB,Hi as XC,Hj as _ae,Ib as Dp,Ic as tee,If as Qoe,Ih as t1,Ii as pae,Ij as Cae,Jb as O2,Jc as oee,Je as vte,Jf as ene,Jh as DB,Ji as mae,Jj as Rae,Ka as KJ,Kb as Dh,Ke as pc,Kh as o1,Ki as uae,L as yJ,Lb as u_,Lc as E_,Lh as Pu,Li as UB,Lj as Oae,Lk as Rie,Ma as VJ,Mb as f_,Mc as P_,Me as U,Mh as Mre,Mi as fae,Mj as Nae,N as vJ,Nc as mu,Ne as j_,Ng as cl,Nh as zre,Ni as hae,Nj as yc,Nk as Oie,O as kJ,Oc as nee,Oe as Rn,Og as wre,Oh as _u,Oi as gae,Oj as Lae,Pa as Ia,Pc as ree,Pe as Vb,Pg as xre,Ph as UC,Pi as s1,Pj as Aae,Qa as Fa,Qe as Ite,Qg as IC,Qh as Wre,Qi as bae,Qj as Iae,Qk as Nie,Ra as JJ,Rd as hee,Re as q_,Rg as Qb,Rh as Ure,Ri as wae,Rj as l1,S as o_,Sa as QJ,Sd as tl,Se as bu,Sf as hB,Sg as yre,Sh as Cu,Si as Pr,T as n_,Ta as eQ,Td as gee,Te as Yt,Tf as gB,Tg as jp,Th as Gre,Ti as ZC,Tj as Fae,U as SJ,Ua as tQ,Ud as Ab,Uf as Y2,Ug as ew,Uh as n1,Ui as xae,V as TJ,Ve as yu,Vf as gs,Vg as FC,Vh as MB,Vi as JC,W as Eb,Wa as oQ,Wd as C_,We as eC,Wf as TB,Wg as LB,Wh as zB,Wi as yae,Wj as d1,X as EJ,Xb as L2,Xd as bee,Xe as tC,Xf as Fne,Xg as pl,Xh as GC,Ya as U6,Yb as w_,Yd as wee,Yf as Bne,Yg as er,Yh as $re,Yi as vae,Zb as x_,Ze as Vte,Zg as vre,Zh as $C,Zi as di,_ as PJ,_b as pd,_c as aee,_d as Aee,_e as hoe,_f as Jb,_i as QC,_k as Lie,a as Ys,ac as DQ,af as Eoe,ag as le,ah as Sre,ai as Kre,aj as iw,al as gw,b as $Z,ba as r_,bc as A2,be as nte,bg as ne,bh as BC,bi as Vre,bj as _r,bk as Bae,bl as bw,c as pJ,cc as ps,cd as iee,cf as Poe,cg as Vp,ch as HC,ci as Yre,ck as oe,cl as fl,d as ZP,dd as see,de as hu,df as dC,dg as Oe,dh as _re,di as jh,dj as nn,dk as Da,dl as no,ec as el,ed as lee,ee as rte,eg as dre,eh as Cre,ei as VC,ek as Hae,el as Aie,fc as MQ,fd as dee,fe as Wb,ff as _oe,fg as NC,fh as Rre,fi as qh,fj as sw,fk as Dae,fl as Iie,g as m,gc as zp,ge as Ub,gf as Coe,gg as dl,gi as jre,gj as Sae,gk as qp,gl as Fie,h as pr,ha as N6,hc as y_,he as ate,hf as Roe,hg as LC,hh as zC,hi as qre,hj as eR,hl as Bie,ic as zQ,ie as ite,if as Ooe,ig as AC,ih as Ore,ij as tR,ik as $B,il as Hie,j as au,jc as v_,je as z_,jg as Yh,jh as AB,ji as Xre,jj as lw,jk as dw,jl as hR,k as sc,ka as HJ,kc as ua,ke as dte,kg as fd,kh as tw,ki as Zre,kj as W,kk as Vo,kl as Die,la as DJ,lb as nQ,lc as k_,ld as Oi,lf as Noe,lg as cre,lh as ow,li as Jre,lj as j,lk as rR,ll as Mie,m as gJ,ma as _b,mc as WQ,md as cee,mg as Yp,mh as WC,mi as Qre,mj as Q,mk as Mae,ml as zie,na as MJ,nb as rQ,nc as UQ,ng as hd,nh as Nre,ni as eae,nj as Se,nk as rt,oa as Cb,ob as aQ,oc as S_,oe as J6,of as dB,og as pre,oh as Lre,oi as WB,oj as qe,ok as aR,ol as Wie,pa as D6,pf as cB,pg as NB,ph as Are,pi as tae,pj as Je,pk as KB,pl as Uie,qa as zJ,qd as pee,qf as Loe,qg as mre,qi as oae,qk as Gr,ql as QB,r as O6,ra as M6,rf as Er,rg as ure,ri as nae,rj as ml,rl as eH,sa as WJ,sb as iQ,se as cte,sf as cC,sg as fre,sh as nw,si as YC,sj as Tae,sl as gR,ta as UJ,tb as G6,te as pte,tf as Aoe,tg as lo,ti as aw,tk as zae,ua as z6,ue as mte,uh as Ire,ui as rae,uk as Wae,va as GJ,vb as Rb,vd as mee,ve as Ur,vf as pB,vg as hre,vi as aae,w as bJ,wa as $J,wb as Bh,we as us,wg as gre,wi as r1,wk as Uae,x as cd,xa as l_,xb as Qs,xe as $b,xg as bre,xh as Fre,xi as Xh,xk as Zh,y as Tb,ya as d_,ye as ute,yi as iae,yj as oR,yk as cw,zb as p_,zc as eee,zd as uee,zf as Yoe,zh as Bre,zi as sae,zj as ul,zk as Gae}from"./chunks/chunk-DXVVHVFA.js";import{d as V6,h as AQ}from"./chunks/chunk-55HCCLM4.js";import{$b as YX,$c as Ue,$d as SZ,$e as dn,A as Mr,Ae as BP,Ah as Fh,Ai as DC,B as Na,Ba as CX,Bb as FX,Bd as yZ,Bf as jZ,Bh as s_,Bi as MC,C as _n,Ca as Cn,Cf as _2,Cg as nJ,Ch as Js,Ci as tr,Db as SP,Dd as vZ,Df as zP,Dg as rJ,Dh as B6,Di as Tre,E as Zn,Ea as vP,Ee as nu,Ef as _6,Eg as aJ,Eh as su,Ei as Ere,Fa as RX,Fc as CP,Fd as Jn,Fe as LZ,Ff as WP,Fg as iJ,Fh as H6,Fi as Pre,Ga as Ph,Gb as BX,Gc as RP,Gd as ii,Ge as AZ,Gf as ic,H as u6,Ha as _h,Hb as Rh,Hc as w6,Hd as Ie,He as IZ,Hf as Hp,Hh as FJ,Hi as Ou,I as f6,Ib as ac,Ic as aZ,Id as _i,Ie as FZ,Ih as Pb,Ii as rie,Jb as mb,Jc as hb,Jd as tt,Je as yb,Jh as BJ,K as wX,Kb as ad,Kc as gb,Kg as sJ,Lb as Oh,Lc as iZ,Mb as Qm,Mc as sZ,Md as mt,N as xX,Na as OX,Nb as HX,Nc as x6,Oa as NX,Ob as zr,Oc as lZ,Of as qZ,Og as lJ,Pa as LX,Pb as cr,Pc as bb,Pd as Ge,Pe as BZ,Qb as DX,Qc as dZ,Qf as UP,R as h6,Rb as MX,Rc as k2,Rd as Aa,Sb as zX,Sd as kZ,Ta as AX,Tb as WX,Tc as cZ,Td as ct,Te as E2,U as yX,Ub as TP,Uc as pZ,Ud as wb,Ue as HP,Uf as XZ,Vb as EP,Vc as mZ,Ve as HZ,Vf as GP,Vg as Zs,W as Le,Wb as UX,Wc as uZ,Wd as NP,We as DP,Wg as fJ,Wh as EQ,X as fe,Xb as GX,Xc as fZ,Xd as LP,Xe as DZ,Xg as JP,Yb as $X,Yc as $e,Yd as ld,Ye as MZ,Z as vX,Zb as KX,Zc as Rt,Ze as Qn,_b as VX,_c as Vs,_e as zZ,aa as kX,ac as v2,ad as ht,b as Tr,bc as jX,bd as y6,bg as C6,bh as Sb,bi as cu,c as w2,cc as eu,cd as hZ,cf as WZ,ch as hJ,ci as PQ,da as pb,dc as qX,dd as go,de as AP,dh as QP,di as si,e as bP,ea as SX,ec as XX,ee as ou,eh as a_,f as rc,fa as TX,fc as ZX,fd as sd,ff as UZ,fh as _J,g as x2,ga as yP,gb as ai,gd as tu,ge as IP,gf as GZ,gh as L6,hc as id,hd as La,he as S2,hh as A6,ic as ub,id as _o,if as Bp,ih as I6,ja as EX,jc as fb,jd as gZ,je as k6,jf as T6,jh as CJ,ji as md,kc as JX,ke as S6,kf as MP,kh as RJ,ki as gc,l as p6,lc as QX,le as TZ,lf as dd,lg as ZZ,lh as OJ,li as G2,m as cb,mb as Jm,mc as eZ,me as EZ,mf as Lh,mh as NJ,mi as aC,nc as b6,nd as bZ,ne as PZ,nh as LJ,ni as sB,ob as IX,oc as tZ,od as Be,of as P2,og as JZ,oh as F6,oi as goe,p as m6,pb as Ch,pe as FP,pf as js,ph as AJ,qa as PX,qb as y2,qc as PP,qd as Nh,qe as _Z,qf as vb,qi as jb,r as wP,re as xb,rf as P6,rg as QZ,s as Fp,sa as g6,sg as eJ,sh as IJ,t as xP,tc as oZ,u as ft,ub as Ks,ue as CZ,ug as tJ,v as bX,vc as cs,ve as RZ,vf as KZ,w as Vt,wa as _X,wd as OP,we as OZ,x as Gs,xc as nZ,xd as v6,xf as VZ,xh as i_,y as Xo,yb as kP,yc as _P,yd as wZ,ye as T2,yf as Ah,yg as oJ,z as Lt,za as Po,zc as rZ,zd as xZ,ze as NZ,zf as YZ,zg as R6,zh as ma,zi as e1}from"./chunks/chunk-U54HRBBL.js";import{a as $s}from"./chunks/chunk-EWEX5KJD.js";import{a as _te,c as Cte}from"./chunks/chunk-T3YKEXOD.js";import{a as Pn,b as b8e}from"./chunks/chunk-Y6SLVHK3.js";var xh=Pn(Q0=>{"use strict";var Rj,rCt=[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];Q0.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};Q0.getSymbolTotalCodewords=function(t){return rCt[t]};Q0.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Q0.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Rj=t};Q0.isKanjiModeEnabled=function(){return typeof Rj<"u"};Q0.toSJIS=function(t){return Rj(t)}});var x4=Pn(Ql=>{"use strict";Ql.L={bit:1};Ql.M={bit:0};Ql.Q={bit:3};Ql.H={bit:2};function aCt(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 aCt(t)}catch{return o}}});var NBe=Pn((MOn,OBe)=>{"use strict";function RBe(){this.buffer=[],this.length=0}RBe.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++}};OBe.exports=RBe});var ABe=Pn((zOn,LBe)=>{"use strict";function KE(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}KE.prototype.set=function(e,t,o,n){let r=e*this.size+t;this.data[r]=o,n&&(this.reservedBit[r]=!0)};KE.prototype.get=function(e,t){return this.data[e*this.size+t]};KE.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};KE.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};LBe.exports=KE});var IBe=Pn(y4=>{"use strict";var iCt=xh().getSymbolSize;y4.getRowColCoords=function(t){if(t===1)return[];let o=Math.floor(t/7)+2,n=iCt(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()};y4.getPositions=function(t){let o=[],n=y4.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 HBe=Pn(BBe=>{"use strict";var sCt=xh().getSymbolSize,FBe=7;BBe.getPositions=function(t){let o=sCt(t);return[[0,0],[o-FBe,0],[0,o-FBe]]}});var DBe=Pn(rn=>{"use strict";rn.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var eb={N1:3,N2:3,N3:40,N4:10};rn.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};rn.from=function(t){return rn.isValid(t)?parseInt(t,10):void 0};rn.getPenaltyN1=function(t){let o=t.size,n=0,r=0,a=0,i=null,s=null;for(let l=0;l<o;l++){r=a=0,i=s=null;for(let d=0;d<o;d++){let c=t.get(l,d);c===i?r++:(r>=5&&(n+=eb.N1+(r-5)),i=c,r=1),c=t.get(d,l),c===s?a++:(a>=5&&(n+=eb.N1+(a-5)),s=c,a=1)}r>=5&&(n+=eb.N1+(r-5)),a>=5&&(n+=eb.N1+(a-5))}return n};rn.getPenaltyN2=function(t){let o=t.size,n=0;for(let r=0;r<o-1;r++)for(let a=0;a<o-1;a++){let i=t.get(r,a)+t.get(r,a+1)+t.get(r+1,a)+t.get(r+1,a+1);(i===4||i===0)&&n++}return n*eb.N2};rn.getPenaltyN3=function(t){let o=t.size,n=0,r=0,a=0;for(let i=0;i<o;i++){r=a=0;for(let s=0;s<o;s++)r=r<<1&2047|t.get(i,s),s>=10&&(r===1488||r===93)&&n++,a=a<<1&2047|t.get(s,i),s>=10&&(a===1488||a===93)&&n++}return n*eb.N3};rn.getPenaltyN4=function(t){let o=0,n=t.data.length;for(let a=0;a<n;a++)o+=t.data[a];return Math.abs(Math.ceil(o*100/n/5)-10)*eb.N4};function lCt(e,t,o){switch(e){case rn.Patterns.PATTERN000:return(t+o)%2===0;case rn.Patterns.PATTERN001:return t%2===0;case rn.Patterns.PATTERN010:return o%3===0;case rn.Patterns.PATTERN011:return(t+o)%3===0;case rn.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2===0;case rn.Patterns.PATTERN101:return t*o%2+t*o%3===0;case rn.Patterns.PATTERN110:return(t*o%2+t*o%3)%2===0;case rn.Patterns.PATTERN111:return(t*o%3+(t+o)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}rn.applyMask=function(t,o){let n=o.size;for(let r=0;r<n;r++)for(let a=0;a<n;a++)o.isReserved(a,r)||o.xor(a,r,lCt(t,a,r))};rn.getBestMask=function(t,o){let n=Object.keys(rn.Patterns).length,r=0,a=1/0;for(let i=0;i<n;i++){o(i),rn.applyMask(i,t);let s=rn.getPenaltyN1(t)+rn.getPenaltyN2(t)+rn.getPenaltyN3(t)+rn.getPenaltyN4(t);rn.applyMask(i,t),s<a&&(a=s,r=i)}return r}});var Nj=Pn(Oj=>{"use strict";var yh=x4(),v4=[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],k4=[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];Oj.getBlocksCount=function(t,o){switch(o){case yh.L:return v4[(t-1)*4+0];case yh.M:return v4[(t-1)*4+1];case yh.Q:return v4[(t-1)*4+2];case yh.H:return v4[(t-1)*4+3];default:return}};Oj.getTotalCodewordsCount=function(t,o){switch(o){case yh.L:return k4[(t-1)*4+0];case yh.M:return k4[(t-1)*4+1];case yh.Q:return k4[(t-1)*4+2];case yh.H:return k4[(t-1)*4+3];default:return}}});var MBe=Pn(T4=>{"use strict";var VE=new Uint8Array(512),S4=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)VE[o]=t,S4[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)VE[o]=VE[o-255]})();T4.log=function(t){if(t<1)throw new Error("log("+t+")");return S4[t]};T4.exp=function(t){return VE[t]};T4.mul=function(t,o){return t===0||o===0?0:VE[S4[t]+S4[o]]}});var zBe=Pn(YE=>{"use strict";var Lj=MBe();YE.mul=function(t,o){let n=new Uint8Array(t.length+o.length-1);for(let r=0;r<t.length;r++)for(let a=0;a<o.length;a++)n[r+a]^=Lj.mul(t[r],o[a]);return n};YE.mod=function(t,o){let n=new Uint8Array(t);for(;n.length-o.length>=0;){let r=n[0];for(let i=0;i<o.length;i++)n[i]^=Lj.mul(o[i],r);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};YE.generateECPolynomial=function(t){let o=new Uint8Array([1]);for(let n=0;n<t;n++)o=YE.mul(o,new Uint8Array([1,Lj.exp(n)]));return o}});var GBe=Pn((YOn,UBe)=>{"use strict";var WBe=zBe();function Aj(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Aj.prototype.initialize=function(t){this.degree=t,this.genPoly=WBe.generateECPolynomial(this.degree)};Aj.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=WBe.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};UBe.exports=Aj});var Ij=Pn($Be=>{"use strict";$Be.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Fj=Pn(qm=>{"use strict";var KBe="[0-9]+",dCt="[A-Z $%*+\\-./:]+",jE="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";jE=jE.replace(/u/g,"\\u");var cCt="(?:(?![A-Z0-9 $%*+\\-./:]|"+jE+`)(?:.|[\r
1
+ import{$ as Wp,$a as $ee,$b as xu,$c as moe,$d as cne,$e as vC,$f as sR,$g as Jie,A as lu,Aa as Lee,Ab as xte,Ac as oC,Ad as fB,Ae as $h,Af as Ft,Ag as xie,Ah as use,B as sQ,Ba as Hb,Bb as kte,Bc as sl,Bd as Ioe,Be as yB,Bf as ere,Bg as hw,Bh as fse,C as BQ,Ca as I_,Cb as Ste,Cc as aB,Cd as Foe,Ce as Ene,Cf as tre,Cg as ZB,Ch as hse,D as be,Da as q6,Db as G_,Dc as Yb,Dd as Su,De as vB,Df as CB,Dg as yie,Dh as gse,E as HQ,Ea as Db,Eb as Tte,Ec as Xte,Ed as bc,Ee as ud,Ef as PC,Eg as vie,Eh as bse,F as I2,Fa as Fee,Fb as Uh,Fc as Zte,Fd as Boe,Fe as Pne,Ff as _C,Fg as JB,Fh as wse,G as GQ,Ga as F_,Gb as ko,Gc as Jte,Gd as Hoe,Ge as _ne,Gf as ore,Gg as c1,Gh as xse,H as $Q,Ha as Bee,Hb as $_,Hc as Qte,Hd as mC,He as kB,Hf as CC,Hg as kie,Hh as vw,I as KQ,Ia as B2,Ib as Pte,Ic as eoe,Id as Doe,Ie as Cne,If as nre,Ig as mR,Ih as yse,J as VQ,Ja as H2,Jb as K_,Jc as toe,Jd as Moe,Je as Rne,Jf as RB,Jg as uR,Jh as vse,K as T_,Ka as B_,Kb as V_,Kc as iB,Kd as zoe,Ke as One,Kf as RC,Kg as Sie,Kh as kse,L as YQ,La as Hee,Lb as Rte,Lc as ooe,Ld as Woe,Le as Nne,Lf as rre,Lg as Tie,Lh as gd,M as jQ,Ma as Dee,Mb as xt,Mc as noe,Md as Uoe,Me as SB,Mf as OB,Mg as fR,Mh as Sse,N as qQ,Na as Mee,Nb as Ote,Nc as vu,Nd as Goe,Ne as Lne,Nf as are,Ng as Eie,Nh as Nu,O as XQ,Oa as zee,Ob as N,Oc as roe,Od as $oe,Oe as Ane,Of as ire,Og as Pie,Oh as Tse,P as ZQ,Pa as Wee,Pb as Jo,Pc as uc,Pd as Koe,Pe as Ine,Pf as sre,Pg as _ie,Ph as nH,Q as JQ,Qa as Uee,Qb as nB,Qc as aoe,Qd as Voe,Qe as EB,Qf as lre,Qg as Cie,Qh as Ese,R as QQ,Ra as D2,Rb as re,Rc as ku,Rd as tne,Re as xC,Rf as Yae,Rg as $ie,Rh as Pse,S as et,Sa as M2,Sb as Dt,Sc as ioe,Sd as one,Se as yC,Sf as jae,Sg as Kie,Sh as xR,T as Y6,Ta as z2,Tb as rl,Tc as nC,Td as fC,Te as Hne,Tf as qae,Tg as Vie,Th as _se,U as Re,Ua as H_,Ub as Nte,Uc as soe,Ud as nne,Ue as Dne,Uf as Xae,Ug as Yie,Uh as Cse,V as fee,Va as Gee,Vb as Lte,Vc as loe,Vd as rne,Ve as Mne,Vf as Zae,Vg as jie,Vh as p1,W as Zo,Wa as fu,Wb as al,Wc as doe,Wd as ane,We as Tu,Wf as VB,Wg as ww,Wh as Rse,X as xee,Xa as D_,Xb as Y_,Xc as coe,Xd as ine,Xe as Fo,Xf as Jae,Xg as qie,Xh as Ose,Y as F2,Ya as zh,Yb as Ate,Yc as Hn,Yd as sne,Ye as Xb,Yf as Qae,Yg as bR,Z as lc,Za as Wh,Zb as wu,Zc as poe,Zd as lne,Ze as zne,Zf as iR,Zg as Xie,_ as R_,_a as Mb,_b as il,_c as $p,_d as dne,_e as Wne,_f as Ru,_g as Zie,a as E6,aa as dc,ab as Kee,ac as Fte,ad as uoe,ae as pne,af as kC,ag as pw,ah as Qie,b as qs,ba as cc,bb as Vee,bc as X_,bd as U2,be as mne,bf as Une,bg as mw,bh as tH,c as Xs,ca as uu,cb as Yee,cc as Z_,cd as hc,ce as une,cf as Gne,cg as uw,ch as ese,d as Fn,da as Mh,db as jee,dc as rB,dd as to,de as wc,df as PB,dg as fw,dh as ut,e as C2,ea as yee,eb as mr,ec as mc,ed as rC,ee as fne,ef as Zb,eg as YB,eh as zt,f as ru,fa as O_,fb as zb,fc as Me,fd as boe,fe as hne,ff as Kh,fg as jB,fh as Ma,g as R2,ga as vee,gb as qee,gc as C,gd as Kp,ge as gne,gf as $ne,gg as lR,gh as ro,h as dJ,ha as N_,hb as Xee,hc as cn,hd as woe,he as bne,hf as Kne,hg as eie,hh as tse,i as $P,ia as kee,ib as Zee,ic as wn,id as Mt,ie as bB,if as SC,ig as qB,ih as ose,j as kb,ja as L_,jb as M_,jc as li,jd as Ba,je as wB,jf as Vne,jg as tie,jh as oH,k as Ih,ka as Ib,kb as Jee,kc as J_,kd as lB,ke as xB,kf as Ha,kg as oie,kh as nse,l as KP,la as Fb,lb as X6,lc as Bte,ld as iC,le as hC,lf as ll,lg as nie,lh as rse,m as VP,ma as See,mb as Qee,mc as Hte,md as xoe,me as gC,mf as Ke,mg as aie,mh as ase,n as YP,na as Tee,nb as W2,nc as Dte,nd as yoe,ne as bC,nf as Eu,ng as iie,nh as ise,o as jP,oa as Bb,ob as ete,oc as Mte,od as sC,oe as wC,of as Yne,og as sie,oh as hl,p as qP,pa as Eee,pb as tte,pc as zte,pd as lC,pe as wne,pf as jne,pg as lie,ph as sse,q as XP,qa as Pee,qb as ote,qc as Wte,qd as voe,qe as xne,qf as qne,qg as die,qh as xw,r as cJ,ra as _ee,rb as Q6,rc as Ute,rd as koe,re as yne,rf as Xne,rg as cie,rh as lse,s as mJ,sa as ol,sb as W_,sc as Gte,sd as Soe,se as vne,sf as J2,sg as pie,sh as dse,t as uJ,ta as A_,tb as U_,tc as Gp,td as Toe,te as j2,tf as TC,tg as mie,th as wR,u as e_,ua as Up,ub as bte,uc as Q_,ud as $2,ue as q2,uf as Zne,ug as uie,uh as yw,v as t_,va as ms,vb as wte,vc as $te,vd as K2,ve as X2,vf as Q2,vg as fie,vh as cse,w as YJ,wa as Cee,wb as Kb,wc as Kte,wd as mB,we as Z2,wf as Vh,wg as XB,wh as pse,x as jJ,xa as Ree,xb as eB,xc as Yte,xd as uB,xe as kne,xf as _B,xg as bie,xh as mse,y as c_,ya as Oee,yb as tB,yc as jte,yd as qb,ye as Sne,yf as Jne,yg as pR,yh as Xp,z as W6,za as Nee,zb as oB,zc as qte,zd as pC,ze as Tne,zf as Qne,zg as wie,zh as Qh}from"./chunks/chunk-6VZXQPDK.js";import{$ as Jp,$a as UR,A as Ele,Aa as h1,B as Ple,C as _le,Ca as Yle,D as Cle,Da as BR,E as ER,Ea as HR,F as _w,Fa as jle,G as PR,Ga as DR,H as Rle,Ha as Bu,I as _R,Ia as Iw,J as CR,Ja as Sc,K as Ole,Ka as MR,L as Cw,La as Fw,M as Rw,Ma as zR,N as RR,Na as WR,O as Nle,Oa as Qp,P as Lle,Pa as mH,Q as OR,Qa as qle,R as Au,Ra as Xle,S as Ale,Sa as Zle,T as NR,Ta as Jle,U as Ow,Ua as Qle,V as Ile,Va as ede,W as tg,Wa as tde,X as Fle,Xa as ode,Y as Iu,Ya as nde,Z as Nw,Za as rde,_ as LR,_a as ade,a as ga,aa as Ble,ab as Hu,b as ule,ba as Hle,bb as Tc,ca as Dle,cb as ide,da as AR,db as og,ea as Mle,eb as sde,f as Zp,fa as zle,fb as uH,g as SR,ga as f1,gb as lde,h as fle,ha as IR,hb as dde,i as hle,ia as Wle,ib as GR,j as dH,ja as Lw,jb as cde,k as gle,ka as Ule,kb as bs,l as ble,lb as $R,m as wle,mb as Bw,n as xle,na as Gle,nb as pde,o as TR,ob as mde,p as cH,pb as em,q as yle,qa as $le,qb as fH,r as ba,ra as Kle,s as vle,sa as Fu,sb as hH,t as kle,ta as At,tb as Ec,u as Lu,ua as Vle,ub as Pc,v as Sle,vb as KR,w as kc,wa as pH,wb as ng,x as u1,xa as Aw,xb as $r,y as Tle,ya as Mn,z as Pw,za as FR}from"./chunks/chunk-JZT76GOY.js";import{A as Use,B as Gse,C as $se,D as Kse,E as Vse,F as Yse,G as jse,H as qse,I as Xse,J as iH,K as Zse,L as sH,M as xn,N as Jse,O as Ai,P as Qse,Q as ele,R as kR,S as ur,T as tle,U as ole,V as nle,W as rle,X as Sw,Y as ale,b as yR,ca as Tw,da as Bo,e as m1,ea as eg,f as kw,fa as ile,ga as Ew,h as Dn,ha as Ne,i as vc,ia as sle,j as Nse,ja as lH,k as Lse,ka as lle,l as Ase,la as dle,m as Ise,ma as cle,n as Fse,na as ple,o as rH,oa as mle,p as gl,q as Bse,r as Hse,s as lt,t as Li,u as Dse,v as Mse,w as aH,x as zse,y as vR,z as Wse}from"./chunks/chunk-LAUTWUIM.js";import{$ as NQ,A as SQ,B as N2,C as TQ,F as Ob,G as du,H as _Q,I as Mp,L as CQ,M as Bn,N as b_,O as Jt,P as z,Q as $6,S as pu,T as Nb,U as RQ,V as K6,W as OQ,X as Lb,aa as Z6,b as qJ,ba as gu,c as XJ,ca as ste,da as Gb,ea as lte,fa as nl,g as ZJ,ga as Ete,ha as He,i as lQ,ia as Jh,j as h_,k as g_,ka as hie,l as dQ,la as dR,m as cQ,ma as gie,n as pQ,na as cR,o as mQ,p as uQ,q as fQ,r as hQ,s as gQ,u as bQ,v as wQ,w as xQ,x as yQ,y as vQ,z as kQ}from"./chunks/chunk-MCIZHB3Z.js";import{a as Ni,b as foe,c as fc,e as fs,h as EC,j as ha,k as Gie}from"./chunks/chunk-4BGF2KJJ.js";import{a as LQ,b as IQ,e as FQ}from"./chunks/chunk-OAHMFUHH.js";import{$b as Ri,$d as Iee,$e as Gh,$f as OC,$g as kre,$h as KC,$i as kae,$k as oo,A as iu,Ae as fte,Af as uC,Ah as rw,Ai as jC,Aj as nR,Ak as $ae,Bf as joe,Bh as fa,Bi as lae,Bk as Kae,Cb as vo,Ce as hte,Cf as qoe,Ch as IB,Ci as qC,Cj as GB,Ck as Vae,D as ge,Db as Hh,Df as hs,Dh as Hre,Di as dae,Dj as xc,E as Ci,Eb as m_,Ee as gte,Ef as Xoe,Eh as Dre,Ei as cae,F as wJ,Fb as Wr,Fd as __,Ff as Zoe,Fh as FB,Fi as a1,Fj as Eae,Gf as V2,Gh as BB,Gi as i1,Gj as Pae,H as xJ,Hc as j6,He as yte,Hf as Joe,Hh as HB,Hi as XC,Hj as _ae,Ib as Dp,Ic as tee,If as Qoe,Ih as t1,Ii as pae,Ij as Cae,Jb as O2,Jc as oee,Je as vte,Jf as ene,Jh as DB,Ji as mae,Jj as Rae,Ka as KJ,Kb as Dh,Ke as pc,Kh as o1,Ki as uae,L as yJ,Lb as u_,Lc as E_,Lh as Pu,Li as UB,Lj as Oae,Lk as Rie,Ma as VJ,Mb as f_,Mc as P_,Me as U,Mh as Mre,Mi as fae,Mj as Nae,N as vJ,Nc as mu,Ne as j_,Ng as cl,Nh as zre,Ni as hae,Nj as yc,Nk as Oie,O as kJ,Oc as nee,Oe as Rn,Og as wre,Oh as _u,Oi as gae,Oj as Lae,Pa as Ia,Pc as ree,Pe as Vb,Pg as xre,Ph as UC,Pi as s1,Pj as Aae,Qa as Fa,Qe as Ite,Qg as IC,Qh as Wre,Qi as bae,Qj as Iae,Qk as Nie,Ra as JJ,Rd as hee,Re as q_,Rg as Qb,Rh as Ure,Ri as wae,Rj as l1,S as o_,Sa as QJ,Sd as tl,Se as bu,Sf as hB,Sg as yre,Sh as Cu,Si as Pr,T as n_,Ta as eQ,Td as gee,Te as Yt,Tf as gB,Tg as jp,Th as Gre,Ti as ZC,Tj as Fae,U as SJ,Ua as tQ,Ud as Ab,Uf as Y2,Ug as ew,Uh as n1,Ui as xae,V as TJ,Ve as yu,Vf as gs,Vg as FC,Vh as MB,Vi as JC,W as Eb,Wa as oQ,Wd as C_,We as eC,Wf as TB,Wg as LB,Wh as zB,Wi as yae,Wj as d1,X as EJ,Xb as L2,Xd as bee,Xe as tC,Xf as Fne,Xg as pl,Xh as GC,Ya as U6,Yb as w_,Yd as wee,Yf as Bne,Yg as er,Yh as $re,Yi as vae,Zb as x_,Ze as Vte,Zg as vre,Zh as $C,Zi as di,_ as PJ,_b as pd,_c as aee,_d as Aee,_e as hoe,_f as Jb,_i as QC,_k as Lie,a as Ys,ac as DQ,af as Eoe,ag as le,ah as Sre,ai as Kre,aj as iw,al as gw,b as $Z,ba as r_,bc as A2,be as nte,bg as ne,bh as BC,bi as Vre,bj as _r,bk as Bae,bl as bw,c as pJ,cc as ps,cd as iee,cf as Poe,cg as Vp,ch as HC,ci as Yre,ck as oe,cl as fl,d as ZP,dd as see,de as hu,df as dC,dg as Oe,dh as _re,di as jh,dj as nn,dk as Da,dl as no,ec as el,ed as lee,ee as rte,eg as dre,eh as Cre,ei as VC,ek as Hae,el as Aie,fc as MQ,fd as dee,fe as Wb,ff as _oe,fg as NC,fh as Rre,fi as qh,fj as sw,fk as Dae,fl as Iie,g as m,gc as zp,ge as Ub,gf as Coe,gg as dl,gi as jre,gj as Sae,gk as qp,gl as Fie,h as pr,ha as N6,hc as y_,he as ate,hf as Roe,hg as LC,hh as zC,hi as qre,hj as eR,hl as Bie,ic as zQ,ie as ite,if as Ooe,ig as AC,ih as Ore,ij as tR,ik as $B,il as Hie,j as au,jc as v_,je as z_,jg as Yh,jh as AB,ji as Xre,jj as lw,jk as dw,jl as hR,k as sc,ka as HJ,kc as ua,ke as dte,kg as fd,kh as tw,ki as Zre,kj as W,kk as Vo,kl as Die,la as DJ,lb as nQ,lc as k_,ld as Oi,lf as Noe,lg as cre,lh as ow,li as Jre,lj as j,lk as rR,ll as Mie,m as gJ,ma as _b,mc as WQ,md as cee,mg as Yp,mh as WC,mi as Qre,mj as Q,mk as Mae,ml as zie,na as MJ,nb as rQ,nc as UQ,ng as hd,nh as Nre,ni as eae,nj as Se,nk as rt,oa as Cb,ob as aQ,oc as S_,oe as J6,of as dB,og as pre,oh as Lre,oi as WB,oj as qe,ok as aR,ol as Wie,pa as D6,pf as cB,pg as NB,ph as Are,pi as tae,pj as Je,pk as KB,pl as Uie,qa as zJ,qd as pee,qf as Loe,qg as mre,qi as oae,qk as Gr,ql as QB,r as O6,ra as M6,rf as Er,rg as ure,ri as nae,rj as ml,rl as eH,sa as WJ,sb as iQ,se as cte,sf as cC,sg as fre,sh as nw,si as YC,sj as Tae,sl as gR,ta as UJ,tb as G6,te as pte,tf as Aoe,tg as lo,ti as aw,tk as zae,ua as z6,ue as mte,uh as Ire,ui as rae,uk as Wae,va as GJ,vb as Rb,vd as mee,ve as Ur,vf as pB,vg as hre,vi as aae,w as bJ,wa as $J,wb as Bh,we as us,wg as gre,wi as r1,wk as Uae,x as cd,xa as l_,xb as Qs,xe as $b,xg as bre,xh as Fre,xi as Xh,xk as Zh,y as Tb,ya as d_,ye as ute,yi as iae,yj as oR,yk as cw,zb as p_,zc as eee,zd as uee,zf as Yoe,zh as Bre,zi as sae,zj as ul,zk as Gae}from"./chunks/chunk-DXVVHVFA.js";import{d as V6,h as AQ}from"./chunks/chunk-55HCCLM4.js";import{$b as YX,$c as Ue,$d as SZ,$e as dn,A as Mr,Ae as BP,Ah as Fh,Ai as DC,B as Na,Ba as CX,Bb as FX,Bd as yZ,Bf as jZ,Bh as s_,Bi as MC,C as _n,Ca as Cn,Cf as _2,Cg as nJ,Ch as Js,Ci as tr,Db as SP,Dd as vZ,Df as zP,Dg as rJ,Dh as B6,Di as Tre,E as Zn,Ea as vP,Ee as nu,Ef as _6,Eg as aJ,Eh as su,Ei as Ere,Fa as RX,Fc as CP,Fd as Jn,Fe as LZ,Ff as WP,Fg as iJ,Fh as H6,Fi as Pre,Ga as Ph,Gb as BX,Gc as RP,Gd as ii,Ge as AZ,Gf as ic,H as u6,Ha as _h,Hb as Rh,Hc as w6,Hd as Ie,He as IZ,Hf as Hp,Hh as FJ,Hi as Ou,I as f6,Ib as ac,Ic as aZ,Id as _i,Ie as FZ,Ih as Pb,Ii as rie,Jb as mb,Jc as hb,Jd as tt,Je as yb,Jh as BJ,K as wX,Kb as ad,Kc as gb,Kg as sJ,Lb as Oh,Lc as iZ,Mb as Qm,Mc as sZ,Md as mt,N as xX,Na as OX,Nb as HX,Nc as x6,Oa as NX,Ob as zr,Oc as lZ,Of as qZ,Og as lJ,Pa as LX,Pb as cr,Pc as bb,Pd as Ge,Pe as BZ,Qb as DX,Qc as dZ,Qf as UP,R as h6,Rb as MX,Rc as k2,Rd as Aa,Sb as zX,Sd as kZ,Ta as AX,Tb as WX,Tc as cZ,Td as ct,Te as E2,U as yX,Ub as TP,Uc as pZ,Ud as wb,Ue as HP,Uf as XZ,Vb as EP,Vc as mZ,Ve as HZ,Vf as GP,Vg as Zs,W as Le,Wb as UX,Wc as uZ,Wd as NP,We as DP,Wg as fJ,Wh as EQ,X as fe,Xb as GX,Xc as fZ,Xd as LP,Xe as DZ,Xg as JP,Yb as $X,Yc as $e,Yd as ld,Ye as MZ,Z as vX,Zb as KX,Zc as Rt,Ze as Qn,_b as VX,_c as Vs,_e as zZ,aa as kX,ac as v2,ad as ht,b as Tr,bc as jX,bd as y6,bg as C6,bh as Sb,bi as cu,c as w2,cc as eu,cd as hZ,cf as WZ,ch as hJ,ci as PQ,da as pb,dc as qX,dd as go,de as AP,dh as QP,di as si,e as bP,ea as SX,ec as XX,ee as ou,eh as a_,f as rc,fa as TX,fc as ZX,fd as sd,ff as UZ,fh as _J,g as x2,ga as yP,gb as ai,gd as tu,ge as IP,gf as GZ,gh as L6,hc as id,hd as La,he as S2,hh as A6,ic as ub,id as _o,if as Bp,ih as I6,ja as EX,jc as fb,jd as gZ,je as k6,jf as T6,jh as CJ,ji as md,kc as JX,ke as S6,kf as MP,kh as RJ,ki as gc,l as p6,lc as QX,le as TZ,lf as dd,lg as ZZ,lh as OJ,li as G2,m as cb,mb as Jm,mc as eZ,me as EZ,mf as Lh,mh as NJ,mi as aC,nc as b6,nd as bZ,ne as PZ,nh as LJ,ni as sB,ob as IX,oc as tZ,od as Be,of as P2,og as JZ,oh as F6,oi as goe,p as m6,pb as Ch,pe as FP,pf as js,ph as AJ,qa as PX,qb as y2,qc as PP,qd as Nh,qe as _Z,qf as vb,qi as jb,r as wP,re as xb,rf as P6,rg as QZ,s as Fp,sa as g6,sg as eJ,sh as IJ,t as xP,tc as oZ,u as ft,ub as Ks,ue as CZ,ug as tJ,v as bX,vc as cs,ve as RZ,vf as KZ,w as Vt,wa as _X,wd as OP,we as OZ,x as Gs,xc as nZ,xd as v6,xf as VZ,xh as i_,y as Xo,yb as kP,yc as _P,yd as wZ,ye as T2,yf as Ah,yg as oJ,z as Lt,za as Po,zc as rZ,zd as xZ,ze as NZ,zf as YZ,zg as R6,zh as ma,zi as e1}from"./chunks/chunk-U54HRBBL.js";import{a as $s}from"./chunks/chunk-EWEX5KJD.js";import{a as _te,c as Cte}from"./chunks/chunk-T3YKEXOD.js";import{a as Pn,b as b8e}from"./chunks/chunk-Y6SLVHK3.js";var xh=Pn(Q0=>{"use strict";var Rj,rCt=[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];Q0.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};Q0.getSymbolTotalCodewords=function(t){return rCt[t]};Q0.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Q0.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Rj=t};Q0.isKanjiModeEnabled=function(){return typeof Rj<"u"};Q0.toSJIS=function(t){return Rj(t)}});var x4=Pn(Ql=>{"use strict";Ql.L={bit:1};Ql.M={bit:0};Ql.Q={bit:3};Ql.H={bit:2};function aCt(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 aCt(t)}catch{return o}}});var NBe=Pn((MOn,OBe)=>{"use strict";function RBe(){this.buffer=[],this.length=0}RBe.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++}};OBe.exports=RBe});var ABe=Pn((zOn,LBe)=>{"use strict";function KE(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}KE.prototype.set=function(e,t,o,n){let r=e*this.size+t;this.data[r]=o,n&&(this.reservedBit[r]=!0)};KE.prototype.get=function(e,t){return this.data[e*this.size+t]};KE.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};KE.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};LBe.exports=KE});var IBe=Pn(y4=>{"use strict";var iCt=xh().getSymbolSize;y4.getRowColCoords=function(t){if(t===1)return[];let o=Math.floor(t/7)+2,n=iCt(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()};y4.getPositions=function(t){let o=[],n=y4.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 HBe=Pn(BBe=>{"use strict";var sCt=xh().getSymbolSize,FBe=7;BBe.getPositions=function(t){let o=sCt(t);return[[0,0],[o-FBe,0],[0,o-FBe]]}});var DBe=Pn(rn=>{"use strict";rn.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var eb={N1:3,N2:3,N3:40,N4:10};rn.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};rn.from=function(t){return rn.isValid(t)?parseInt(t,10):void 0};rn.getPenaltyN1=function(t){let o=t.size,n=0,r=0,a=0,i=null,s=null;for(let l=0;l<o;l++){r=a=0,i=s=null;for(let d=0;d<o;d++){let c=t.get(l,d);c===i?r++:(r>=5&&(n+=eb.N1+(r-5)),i=c,r=1),c=t.get(d,l),c===s?a++:(a>=5&&(n+=eb.N1+(a-5)),s=c,a=1)}r>=5&&(n+=eb.N1+(r-5)),a>=5&&(n+=eb.N1+(a-5))}return n};rn.getPenaltyN2=function(t){let o=t.size,n=0;for(let r=0;r<o-1;r++)for(let a=0;a<o-1;a++){let i=t.get(r,a)+t.get(r,a+1)+t.get(r+1,a)+t.get(r+1,a+1);(i===4||i===0)&&n++}return n*eb.N2};rn.getPenaltyN3=function(t){let o=t.size,n=0,r=0,a=0;for(let i=0;i<o;i++){r=a=0;for(let s=0;s<o;s++)r=r<<1&2047|t.get(i,s),s>=10&&(r===1488||r===93)&&n++,a=a<<1&2047|t.get(s,i),s>=10&&(a===1488||a===93)&&n++}return n*eb.N3};rn.getPenaltyN4=function(t){let o=0,n=t.data.length;for(let a=0;a<n;a++)o+=t.data[a];return Math.abs(Math.ceil(o*100/n/5)-10)*eb.N4};function lCt(e,t,o){switch(e){case rn.Patterns.PATTERN000:return(t+o)%2===0;case rn.Patterns.PATTERN001:return t%2===0;case rn.Patterns.PATTERN010:return o%3===0;case rn.Patterns.PATTERN011:return(t+o)%3===0;case rn.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2===0;case rn.Patterns.PATTERN101:return t*o%2+t*o%3===0;case rn.Patterns.PATTERN110:return(t*o%2+t*o%3)%2===0;case rn.Patterns.PATTERN111:return(t*o%3+(t+o)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}rn.applyMask=function(t,o){let n=o.size;for(let r=0;r<n;r++)for(let a=0;a<n;a++)o.isReserved(a,r)||o.xor(a,r,lCt(t,a,r))};rn.getBestMask=function(t,o){let n=Object.keys(rn.Patterns).length,r=0,a=1/0;for(let i=0;i<n;i++){o(i),rn.applyMask(i,t);let s=rn.getPenaltyN1(t)+rn.getPenaltyN2(t)+rn.getPenaltyN3(t)+rn.getPenaltyN4(t);rn.applyMask(i,t),s<a&&(a=s,r=i)}return r}});var Nj=Pn(Oj=>{"use strict";var yh=x4(),v4=[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],k4=[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];Oj.getBlocksCount=function(t,o){switch(o){case yh.L:return v4[(t-1)*4+0];case yh.M:return v4[(t-1)*4+1];case yh.Q:return v4[(t-1)*4+2];case yh.H:return v4[(t-1)*4+3];default:return}};Oj.getTotalCodewordsCount=function(t,o){switch(o){case yh.L:return k4[(t-1)*4+0];case yh.M:return k4[(t-1)*4+1];case yh.Q:return k4[(t-1)*4+2];case yh.H:return k4[(t-1)*4+3];default:return}}});var MBe=Pn(T4=>{"use strict";var VE=new Uint8Array(512),S4=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)VE[o]=t,S4[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)VE[o]=VE[o-255]})();T4.log=function(t){if(t<1)throw new Error("log("+t+")");return S4[t]};T4.exp=function(t){return VE[t]};T4.mul=function(t,o){return t===0||o===0?0:VE[S4[t]+S4[o]]}});var zBe=Pn(YE=>{"use strict";var Lj=MBe();YE.mul=function(t,o){let n=new Uint8Array(t.length+o.length-1);for(let r=0;r<t.length;r++)for(let a=0;a<o.length;a++)n[r+a]^=Lj.mul(t[r],o[a]);return n};YE.mod=function(t,o){let n=new Uint8Array(t);for(;n.length-o.length>=0;){let r=n[0];for(let i=0;i<o.length;i++)n[i]^=Lj.mul(o[i],r);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};YE.generateECPolynomial=function(t){let o=new Uint8Array([1]);for(let n=0;n<t;n++)o=YE.mul(o,new Uint8Array([1,Lj.exp(n)]));return o}});var GBe=Pn((YOn,UBe)=>{"use strict";var WBe=zBe();function Aj(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Aj.prototype.initialize=function(t){this.degree=t,this.genPoly=WBe.generateECPolynomial(this.degree)};Aj.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=WBe.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};UBe.exports=Aj});var Ij=Pn($Be=>{"use strict";$Be.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Fj=Pn(qm=>{"use strict";var KBe="[0-9]+",dCt="[A-Z $%*+\\-./:]+",jE="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";jE=jE.replace(/u/g,"\\u");var cCt="(?:(?![A-Z0-9 $%*+\\-./:]|"+jE+`)(?:.|[\r
2
2
  ]))+`;qm.KANJI=new RegExp(jE,"g");qm.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");qm.BYTE=new RegExp(cCt,"g");qm.NUMERIC=new RegExp(KBe,"g");qm.ALPHANUMERIC=new RegExp(dCt,"g");var pCt=new RegExp("^"+jE+"$"),mCt=new RegExp("^"+KBe+"$"),uCt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");qm.testKanji=function(t){return pCt.test(t)};qm.testNumeric=function(t){return mCt.test(t)};qm.testAlphanumeric=function(t){return uCt.test(t)}});var vh=Pn(kr=>{"use strict";var fCt=Ij(),Bj=Fj();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(!fCt.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 Bj.testNumeric(t)?kr.NUMERIC:Bj.testAlphanumeric(t)?kr.ALPHANUMERIC:Bj.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 hCt(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 hCt(t)}catch{return o}}});var XBe=Pn(tb=>{"use strict";var E4=xh(),gCt=Nj(),VBe=x4(),kh=vh(),Hj=Ij(),jBe=7973,YBe=E4.getBCHDigit(jBe);function bCt(e,t,o){for(let n=1;n<=40;n++)if(t<=tb.getCapacity(n,o,e))return n}function qBe(e,t){return kh.getCharCountIndicator(e,t)+4}function wCt(e,t){let o=0;return e.forEach(function(n){let r=qBe(n.mode,t);o+=r+n.getBitsLength()}),o}function xCt(e,t){for(let o=1;o<=40;o++)if(wCt(e,o)<=tb.getCapacity(o,t,kh.MIXED))return o}tb.from=function(t,o){return Hj.isValid(t)?parseInt(t,10):o};tb.getCapacity=function(t,o,n){if(!Hj.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=kh.BYTE);let r=E4.getSymbolTotalCodewords(t),a=gCt.getTotalCodewordsCount(t,o),i=(r-a)*8;if(n===kh.MIXED)return i;let s=i-qBe(n,t);switch(n){case kh.NUMERIC:return Math.floor(s/10*3);case kh.ALPHANUMERIC:return Math.floor(s/11*2);case kh.KANJI:return Math.floor(s/13);case kh.BYTE:default:return Math.floor(s/8)}};tb.getBestVersionForData=function(t,o){let n,r=VBe.from(o,VBe.M);if(Array.isArray(t)){if(t.length>1)return xCt(t,r);if(t.length===0)return 1;n=t[0]}else n=t;return bCt(n.mode,n.getLength(),r)};tb.getEncodedBits=function(t){if(!Hj.isValid(t)||t<7)throw new Error("Invalid QR Code version");let o=t<<12;for(;E4.getBCHDigit(o)-YBe>=0;)o^=jBe<<E4.getBCHDigit(o)-YBe;return t<<12|o}});var eHe=Pn(QBe=>{"use strict";var Dj=xh(),JBe=1335,yCt=21522,ZBe=Dj.getBCHDigit(JBe);QBe.getEncodedBits=function(t,o){let n=t.bit<<3|o,r=n<<10;for(;Dj.getBCHDigit(r)-ZBe>=0;)r^=JBe<<Dj.getBCHDigit(r)-ZBe;return(n<<10|r)^yCt}});var oHe=Pn((QOn,tHe)=>{"use strict";var vCt=vh();function qv(e){this.mode=vCt.NUMERIC,this.data=e.toString()}qv.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};qv.prototype.getLength=function(){return this.data.length};qv.prototype.getBitsLength=function(){return qv.getBitsLength(this.data.length)};qv.prototype.write=function(t){let o,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))};tHe.exports=qv});var rHe=Pn((eNn,nHe)=>{"use strict";var kCt=vh(),Mj=["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 Xv(e){this.mode=kCt.ALPHANUMERIC,this.data=e}Xv.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Xv.prototype.getLength=function(){return this.data.length};Xv.prototype.getBitsLength=function(){return Xv.getBitsLength(this.data.length)};Xv.prototype.write=function(t){let o;for(o=0;o+2<=this.data.length;o+=2){let n=Mj.indexOf(this.data[o])*45;n+=Mj.indexOf(this.data[o+1]),t.put(n,11)}this.data.length%2&&t.put(Mj.indexOf(this.data[o]),6)};nHe.exports=Xv});var iHe=Pn((tNn,aHe)=>{"use strict";var SCt=vh();function Zv(e){this.mode=SCt.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}Zv.getBitsLength=function(t){return t*8};Zv.prototype.getLength=function(){return this.data.length};Zv.prototype.getBitsLength=function(){return Zv.getBitsLength(this.data.length)};Zv.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)};aHe.exports=Zv});var lHe=Pn((oNn,sHe)=>{"use strict";var TCt=vh(),ECt=xh();function Jv(e){this.mode=TCt.KANJI,this.data=e}Jv.getBitsLength=function(t){return t*13};Jv.prototype.getLength=function(){return this.data.length};Jv.prototype.getBitsLength=function(){return Jv.getBitsLength(this.data.length)};Jv.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let o=ECt.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)}};sHe.exports=Jv});var dHe=Pn((nNn,zj)=>{"use strict";var qE={single_source_shortest_paths:function(e,t,o){var n={},r={};r[t]=0;var a=qE.PriorityQueue.make();a.push(t,0);for(var i,s,l,d,c,p,f,u,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],f=d+p,u=r[l],g=typeof r[l]>"u",(g||u>f)&&(r[l]=f,a.push(l,f),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=qE.single_source_shortest_paths(e,t,o);return qE.extract_shortest_path_from_predecessor_list(n,o)},PriorityQueue:{make:function(e){var t=qE.PriorityQueue,o={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);return o.queue=[],o.sorter=e.sorter||t.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var o={value:e,cost:t};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof zj<"u"&&(zj.exports=qE)});var bHe=Pn(Qv=>{"use strict";var Ao=vh(),mHe=oHe(),uHe=rHe(),fHe=iHe(),hHe=lHe(),XE=Fj(),P4=xh(),PCt=dHe();function cHe(e){return unescape(encodeURIComponent(e)).length}function ZE(e,t,o){let n=[],r;for(;(r=e.exec(o))!==null;)n.push({data:r[0],index:r.index,mode:t,length:r[0].length});return n}function gHe(e){let t=ZE(XE.NUMERIC,Ao.NUMERIC,e),o=ZE(XE.ALPHANUMERIC,Ao.ALPHANUMERIC,e),n,r;return P4.isKanjiModeEnabled()?(n=ZE(XE.BYTE,Ao.BYTE,e),r=ZE(XE.KANJI,Ao.KANJI,e)):(n=ZE(XE.BYTE_KANJI,Ao.BYTE,e),r=[]),t.concat(o,n,r).sort(function(i,s){return i.index-s.index}).map(function(i){return{data:i.data,mode:i.mode,length:i.length}})}function Wj(e,t){switch(t){case Ao.NUMERIC:return mHe.getBitsLength(e);case Ao.ALPHANUMERIC:return uHe.getBitsLength(e);case Ao.KANJI:return hHe.getBitsLength(e);case Ao.BYTE:return fHe.getBitsLength(e)}}function _Ct(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 CCt(e){let t=[];for(let o=0;o<e.length;o++){let n=e[o];switch(n.mode){case Ao.NUMERIC:t.push([n,{data:n.data,mode:Ao.ALPHANUMERIC,length:n.length},{data:n.data,mode:Ao.BYTE,length:n.length}]);break;case Ao.ALPHANUMERIC:t.push([n,{data:n.data,mode:Ao.BYTE,length:n.length}]);break;case Ao.KANJI:t.push([n,{data:n.data,mode:Ao.BYTE,length:cHe(n.data)}]);break;case Ao.BYTE:t.push([{data:n.data,mode:Ao.BYTE,length:cHe(n.data)}])}}return t}function RCt(e,t){let o={},n={start:{}},r=["start"];for(let a=0;a<e.length;a++){let i=e[a],s=[];for(let l=0;l<i.length;l++){let d=i[l],c=""+a+l;s.push(c),o[c]={node:d,lastCount:0},n[c]={};for(let p=0;p<r.length;p++){let f=r[p];o[f]&&o[f].node.mode===d.mode?(n[f][c]=Wj(o[f].lastCount+d.length,d.mode)-Wj(o[f].lastCount,d.mode),o[f].lastCount+=d.length):(o[f]&&(o[f].lastCount=d.length),n[f][c]=Wj(d.length,d.mode)+4+Ao.getCharCountIndicator(d.mode,t))}}r=s}for(let a=0;a<r.length;a++)n[r[a]].end=0;return{map:n,table:o}}function pHe(e,t){let o,n=Ao.getBestModeForData(e);if(o=Ao.from(t,n),o!==Ao.BYTE&&o.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+Ao.toString(o)+`.
4
4
  Suggested mode is: `+Ao.toString(n));switch(o===Ao.KANJI&&!P4.isKanjiModeEnabled()&&(o=Ao.BYTE),o){case Ao.NUMERIC:return new mHe(e);case Ao.ALPHANUMERIC:return new uHe(e);case Ao.KANJI:return new hHe(e);case Ao.BYTE:return new fHe(e)}}Qv.fromArray=function(t){return t.reduce(function(o,n){return typeof n=="string"?o.push(pHe(n,null)):n.data&&o.push(pHe(n.data,n.mode)),o},[])};Qv.fromString=function(t,o){let n=gHe(t,P4.isKanjiModeEnabled()),r=CCt(n),a=RCt(r,o),i=PCt.find_path(a.map,"start","end"),s=[];for(let l=1;l<i.length-1;l++)s.push(a.table[i[l]].node);return Qv.fromArray(_Ct(s))};Qv.rawSplit=function(t){return Qv.fromArray(gHe(t,P4.isKanjiModeEnabled()))}});var xHe=Pn(wHe=>{"use strict";var C4=xh(),Uj=x4(),OCt=NBe(),NCt=ABe(),LCt=IBe(),ACt=HBe(),Kj=DBe(),Vj=Nj(),ICt=GBe(),_4=XBe(),FCt=eHe(),BCt=vh(),Gj=bHe();function HCt(e,t){let o=e.size,n=ACt.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 DCt(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 MCt(e,t){let o=LCt.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 zCt(e,t){let o=e.size,n=_4.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 $j(e,t,o){let n=e.size,r=FCt.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 WCt(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 UCt(e,t,o){let n=new OCt;o.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),BCt.getCharCountIndicator(l.mode,e)),l.write(n)});let r=C4.getSymbolTotalCodewords(e),a=Vj.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 GCt(n,e,t)}function GCt(e,t,o){let n=C4.getSymbolTotalCodewords(t),r=Vj.getTotalCodewordsCount(t,o),a=n-r,i=Vj.getBlocksCount(t,o),s=n%i,l=i-s,d=Math.floor(n/i),c=Math.floor(a/i),p=c+1,f=d-c,u=new ICt(f),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]=u.encode(h[E]),g+=T,w=Math.max(w,T)}let v=new Uint8Array(n),S=0,k,y;for(k=0;k<w;k++)for(y=0;y<i;y++)k<h[y].length&&(v[S++]=h[y][k]);for(k=0;k<f;k++)for(y=0;y<i;y++)v[S++]=b[y][k];return v}function $Ct(e,t,o,n){let r;if(Array.isArray(e))r=Gj.fromArray(e);else if(typeof e=="string"){let d=t;if(!d){let c=Gj.rawSplit(e);d=_4.getBestVersionForData(c,o)}r=Gj.fromString(e,d||40)}else throw new Error("Invalid data");let a=_4.getBestVersionForData(r,o);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=a;else if(t<a)throw new Error(`
@@ -10,7 +10,7 @@ Minimum version required to store current data is: `+a+`.
10
10
  @keyframes storefront-cart-fade { from { opacity: 0 } to { opacity: 1 } }
11
11
  @keyframes storefront-cart-slide { from { transform: translateX(40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
12
12
  ${v?` @keyframes storefront-cart-slide-left { from { transform: translateX(-40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
13
- `:""}`}),d]})]})}let g=v=>{!f||!Ihe(e,!1)||v.target===v.currentTarget&&p()},h=e.height==="full",b=e.fullWidth||h,w=TKe(e),x=uM("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% - ${fM}px)`:"100%",borderRadius:b?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[w.place!=="none"?Lg("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:-SKe,right:0}:{top:12,right:12},children:"\xD7"}):null,w.until?Lg("style",{children:`@container popup-frame (min-width: ${w.until+1}px){[data-popup-close-until="${w.until}"]{display:none}}`}):null,Lg("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return Lg("div",{role:a||r?"dialog":"region","aria-modal":f?!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:{...kKe[e.placement],background:Ahe(e.tintColor,e.tintOpacity),padding:b?0:w.place==="outside"&&e.placement.startsWith("top")?`${24+fM}px 24px 24px`:24,...w.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:x})}var PKe=25.4,gk=400,IO=152,_Ke=58,Fhe=IO*Math.cos(_Ke*Math.PI/180),CKe=14,RKe=gk/2,OKe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function Hhe(e){let t=kc(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:OKe}function Dhe(e){let t=e.rimDiameter*PKe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=IO*(e.sectionWidth/o),r=t/o;return{cy:RKe,rx:Fhe,ry:IO,cxf:gk/2-n/2-CKe,dx:n,rimRx:Fhe*r,rimRy:IO*r}}var ao=e=>e.toFixed(1);function FO(e,t,o,n=!1){let r=e.cxf+t*e.dx,[a,i]=n?[e.cy+e.ry,e.cy-e.ry]:[e.cy-e.ry,e.cy+e.ry];return`M${ao(r)} ${ao(a)} A${ao(e.rx)} ${ao(e.ry)} 0 0 ${o} ${ao(r)} ${ao(i)}`}function bM(e,t,o){let n=e.cxf+t*e.dx,r=e.cxf+o*e.dx,a=e.cy-e.ry,i=e.cy+e.ry;return`M${ao(n)} ${ao(a)} L${ao(r)} ${ao(a)} A${ao(e.rx)} ${ao(e.ry)} 0 0 1 ${ao(r)} ${ao(i)} L${ao(n)} ${ao(i)} A${ao(e.rx)} ${ao(e.ry)} 0 0 0 ${ao(n)} ${ao(a)} Z`}function AO(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 Mhe(e,t,o,n,r){let[a,i]=AO(e,t,n),[s,l]=AO(e,t,r),[d,c]=AO(e,o,r),[p,f]=AO(e,o,n);return`M${ao(a)} ${ao(i)} A${ao(e.rx)} ${ao(e.ry)} 0 0 1 ${ao(s)} ${ao(l)} L${ao(d)} ${ao(c)} A${ao(e.rx)} ${ao(e.ry)} 0 0 0 ${ao(p)} ${ao(f)} L${ao(a)} ${ao(i)} Z`}var Bhe=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],NKe={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}}]},LKe=[["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 zhe(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return Bhe;for(let[o,n]of LKe)if(t.includes(` ${o} `))return NKe[n];return Bhe}var BO="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as AKe}from"react";function Ka(e,t=/:/g){let o=AKe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as bk,jsx as jt,jsxs as Uc}from"react/jsx-runtime";var Ss={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},IKe=[.8,.52,.24],Whe=.4,Uhe=.88,Ghe=.3,$he=5,Khe=.3,Vhe=.84,FKe=7,bo=e=>Math.round(e*10)/10;function wM({size:e,type:t,className:o}){let n=Ka("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=Dhe(Hhe(e)),i=bM(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Uc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${gk} ${gk}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[jt("title",{children:s}),Uc("defs",{children:[jt(HKe,{id:r}),jt("clipPath",{id:r.crown,children:jt("path",{d:i})})]}),jt("ellipse",{cx:bo(a.cxf+a.dx/2),cy:bo(a.cy+a.ry-4),rx:bo(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),jt(DKe,{g:a,id:r}),jt(MKe,{g:a,id:r}),jt("path",{d:i,fill:`url(#${r.tread})`}),jt("g",{clipPath:`url(#${r.crown})`,children:zhe(t).map(l=>jt(BKe,{g:a,column:l},l.f[0]))}),jt("path",{d:FO(a,0,0,!0),stroke:"currentColor",strokeOpacity:Ss.shoulder,strokeWidth:1.2}),jt("path",{d:FO(a,1,1),stroke:"currentColor",strokeOpacity:Ss.silhouette,strokeWidth:1.4})]})}function BKe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Uc(bk,{children:[jt("path",{d:bM(e,o,n),fill:"currentColor",fillOpacity:Ss.rib}),jt("path",{d:FO(e,o,1),stroke:"currentColor",strokeOpacity:Ss.grooveWall,strokeWidth:1})]});let{count:r,gap:a,phase:i=0}=t.blocks,s=1/r,l=[];for(let d=-1;d<=r;d+=1){let c=Math.max((d+i+a/2)*s,0),p=Math.min((d+i+1-a/2)*s,1);p-c>s*.15&&l.push([c,p])}return jt(bk,{children:l.map(([d,c])=>jt("path",{d:Mhe(e,o,n,d,c),fill:"currentColor",fillOpacity:Ss.rib,stroke:"currentColor",strokeOpacity:Ss.grooveWall,strokeWidth:1},d))})}function HKe({id:e}){return Uc(bk,{children:[Uc("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),jt("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),jt("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),Uc("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),Uc("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),jt("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),Uc("radialGradient",{id:e.shadow,children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function DKe({g:e,id:t}){let o=e.rimRy/e.ry,n=a=>o+(1-o)*a,r=Math.max(6,(e.ry-e.rimRy)*.3);return Uc(bk,{children:[jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx),ry:bo(e.ry),fill:`url(#${t.wall})`}),IKe.map((a,i)=>{let s=n(a);return jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*s),ry:bo(e.ry*s),stroke:"currentColor",strokeOpacity:Ss.relief[i],strokeWidth:1},a)}),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*n(Whe)),ry:bo(e.ry*n(Whe)),stroke:"currentColor",strokeOpacity:Ss.lettering,strokeWidth:bo(r)})]})}function MKe({g:e,id:t}){let o=Array.from({length:$he},(n,r)=>{let a=(r*(360/$he)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*Khe*Math.cos(a),y1:e.cy+e.rimRy*Khe*Math.sin(a),x2:e.cxf+e.rimRx*Vhe*Math.cos(a),y2:e.cy+e.rimRy*Vhe*Math.sin(a)}});return Uc(bk,{children:[jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx),ry:bo(e.rimRy),fill:`url(#${t.rim})`}),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Uhe),ry:bo(e.rimRy*Uhe),fill:"currentColor",fillOpacity:Ss.dishFill,stroke:"currentColor",strokeOpacity:Ss.dishEdge,strokeWidth:1}),o.map((n,r)=>jt("line",{x1:bo(n.x1),y1:bo(n.y1),x2:bo(n.x2),y2:bo(n.y2),stroke:"currentColor",strokeOpacity:Ss.spoke,strokeWidth:FKe,strokeLinecap:"round"},r)),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Ghe),ry:bo(e.rimRy*Ghe),fill:"currentColor",fillOpacity:Ss.hubFill,stroke:"currentColor",strokeOpacity:Ss.hubEdge,strokeWidth:1})]})}import{jsx as xM}from"react/jsx-runtime";function fm({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return xM("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:xM(ro,{label:t||"Tyre",src:fs(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:xM(wM,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as wk}from"react/jsx-runtime";function zKe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function yM({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??sde;return wk("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:CR(e)?wk(fm,{image:o?.coverImage,size:e.size,type:zKe(o),sizes:"96px",className:"h-full w-full"}):a?.src?wk(nl,{src:a.src,alt:`${n?.name??e.slug} \u2014 ${a.name}`,width:120,height:120,sizes:"96px",className:"relative z-[2] block w-[88%] object-contain",style:{filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"}}):n||t.length===0?wk("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:wk(og,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as vM,jsxs as UKe}from"react/jsx-runtime";var Yhe={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function jhe(e,t){return Math.min(cH,Math.max(1,e+t))}var qhe="disabled:cursor-not-allowed disabled:opacity-40",WKe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${Yhe.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${qhe}`,value:`w-11 text-center font-mono ${Yhe.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 ${qhe}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function xk({value:e,onChange:t,size:o}){let n=WKe[o];return UKe("div",{className:n.frame,children:[vM("button",{type:"button",onClick:()=>t(jhe(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),vM("span",{className:n.value,children:e}),vM("button",{type:"button",onClick:()=>t(jhe(e,1)),disabled:e>=cH,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as Gc,jsx as Ye,jsxs as io}from"react/jsx-runtime";function Xhe({content:e,closeRef:t}){let{close:o,items:n}=Mn(),r=t;return io("header",{className:"flex flex-shrink-0 flex-col gap-4 border-b border-line px-8 pb-6 pt-8 max-[640px]:px-6 max-[640px]:pt-6 max-[640px]:pb-5",children:[io("div",{className:"flex items-center justify-between",children:[io("span",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?Ye("span",{className:"border px-2 py-1 text-[10px]",style:{background:"color-mix(in oklab, var(--accent) 12%, transparent)",borderColor:"color-mix(in oklab, var(--accent) 50%, transparent)"},children:e.kickerBadge}):null,(e.kickerBadge?"\xB7 ":"")+e.kickerText]}),Ye("button",{ref:r,type:"button",onClick:o,"aria-label":"Close cart",className:"flex h-8 w-8 items-center justify-center border border-line text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u2715"})]}),io("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",Ye("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),Ye("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:Wre(e,n.length)})]})}function Zhe({content:e}){let{totals:t}=Mn(),{activeCountry:o}=At(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ye(Gc,{children:io("div",{className:`grid flex-shrink-0 ${GKe[r-1]} gap-px border-b border-line bg-line`,children:[Ye(kM,{label:"Items",value:io(Gc,{children:[Ye("em",{className:"font-serif font-normal italic text-accent",children:t.sets})," set",t.sets===1?"":"s"," \xB7 ",t.units," item",t.units===1?"":"s"]})}),e.leadTimeValue?Ye(kM,{label:"Lead time",value:e.leadTimeValue}):null,n?Ye(kM,{label:"Ships to",value:n}):null]})})}function Jhe({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=Mn();return Ye(Gc,{children:o.length===0?Ye(jKe,{content:e}):o.map(a=>Ye($Ke,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function Qhe(){let{items:e,totals:t,bundles:o}=Mn(),{formatMoney:n}=At(),r=new Set(e.flatMap(s=>(s.components??[]).map(l=>l.partNumber))),a=new Set(t.appliedBundles.map(s=>s.slug)),i=o.filter(s=>!a.has(s.slug)).filter(s=>s.components.some(l=>r.has(l.partNumber))).slice(0,2);return Ye(Gc,{children:i.length>0&&io("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",style:{background:"color-mix(in oklab, var(--site-surface) 60%, transparent)"},children:[io("div",{className:"mb-4 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[Ye("span",{children:"You may also need"}),Ye("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),Ye("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:i.map(s=>Ye(KKe,{href:`/bundles/${s.slug}`,title:s.name,sub:VKe(s,t.currency,n)},s.slug))})]})})}function ege(){return Ye(Gc,{children:Ye("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ye(cde,{})})})}function tge({content:e}){return Ye(Gc,{children:e.promises.length>0&&Ye("div",{className:"flex flex-wrap justify-center gap-5 border-b border-line px-8 pt-6 pb-8 font-mono text-[9px] uppercase tracking-[0.24em] text-fg-dim max-[640px]:px-6",children:e.promises.map(t=>Ye(YKe,{children:t},t))})})}function oge(){let{totals:e,coupon:t}=Mn(),{formatMoney:o}=At();return Ye(Gc,{children:io("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ye(lf,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ye(lf,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:io("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),(e.discount>0||e.deliverySaving>0)&&t?.valid&&Ye(lf,{label:`Coupon \xB7 ${t.code}`,value:Ye("span",{style:{color:"var(--green)"},children:$le(e,n=>o(n,e.currency))})}),t?.deferred&&Ye(lf,{label:`Coupon \xB7 ${t.code}`,value:ule}),t?.valid&&t.effects?.gift&&Ye(lf,{label:`Free gift \xB7 ${t.effects.gift.partNumber}${t.effects.gift.quantity>1?` \xD7${t.effects.gift.quantity}`:""}`,value:Ye("span",{style:{color:"var(--green)"},children:tg})}),Ye(lf,{label:"Shipping",value:e.shippingStatus==="free"?Ye("span",{style:{color:"var(--green)"},children:tg}):Kle(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ye(lf,{label:e.tax.inclusive?`${e.tax.name} included \xB7 ${e.tax.rate}%`:e.tax.name,value:o(e.tax.amount,e.currency)}):e.tax.name?Ye(lf,{label:e.tax.name,value:Gle}):null),io("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[io("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",Ye("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),Ye("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:e.repricing?Fle:o(e.grand,e.currency)})]})]})})}function nge(){let{items:e,close:t}=Mn();return Ye(Gc,{children:io("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[io(He,{href:"/checkout",onClick:t,"aria-disabled":e.length===0,className:["group flex items-center justify-between border px-5 py-5 font-mono text-[12px] uppercase tracking-[0.3em] transition-colors",e.length===0?"pointer-events-none cursor-not-allowed border-line bg-surface text-fg-dim":"border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg"].join(" "),children:["Begin checkout",Ye("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),Ye("div",{className:"flex items-center justify-between px-1 py-2 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:Ye(He,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var GKe=["grid-cols-1","grid-cols-2","grid-cols-3"];function kM({label:e,value:t}){return io("div",{className:"flex flex-col gap-1 bg-bg px-4 py-4",children:[Ye("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),Ye("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function $Ke({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=Mn(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=At();return io(Gc,{children:[io("article",{className:"grid grid-cols-[96px_1fr] gap-5 border-b border-line px-8 py-6 transition-colors hover:bg-[color-mix(in_oklab,var(--site-surface)_60%,transparent)] max-[640px]:grid-cols-[78px_1fr] max-[640px]:px-6 max-[640px]:py-5",children:[Ye(yM,{line:e,catalog:r,tyre:t}),io("div",{className:"flex min-w-0 flex-col gap-2",children:[io("div",{className:"flex items-start justify-between gap-3",children:[io("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:[io("span",{"data-cart-line-no":"",children:["N\xB0 ",e.positionNo," \xB7 "]}),e.process==="FusionForge\xAE"?io(Gc,{children:["FusionForge",Ye($_,{})]}):e.process]}),Ye("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:pH(e,s)===null?Au:l(pH(e,s),s)})]}),io("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,Ye("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&io("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.config.map(d=>Ye("span",{className:["border px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em]",d.gold?"border-[color-mix(in_oklab,var(--accent)_45%,var(--site-line))] text-accent":"border-line text-fg-dim"].join(" "),children:d.label},d.label)),i>0&&io("span",{className:"border border-accent bg-accent px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em] text-bg",children:[i,"\xD7 free"]})]}),io("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ye(xk,{value:e.qty,onChange:n,size:"small"}),io("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[Ye(He,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),Ye("button",{type:"button",onClick:o,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&io("div",{className:"mx-8 -mt-px flex items-start gap-3 border-t-0 px-4 py-4 font-display text-[13px] leading-[1.45] text-fg max-[640px]:mx-6",style:{background:"color-mix(in oklab, var(--accent) 8%, transparent)",border:"1px solid color-mix(in oklab, var(--accent) 35%, var(--site-line))",borderTop:"0"},children:[Ye("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),io("span",{children:["Verified for your ",Ye("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function KKe({title:e,sub:t,href:o}){return io(He,{href:o,className:"flex items-center justify-between border border-line bg-bg px-4 py-3 text-left transition-colors hover:border-accent",children:[io("span",{className:"flex min-w-0 flex-col gap-1",children:[Ye("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),Ye("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),Ye("span",{className:"ml-2 flex h-6 w-6 flex-shrink-0 items-center justify-center font-mono text-[13px] text-accent",style:{borderColor:"color-mix(in oklab, var(--accent) 45%, var(--site-line))",borderWidth:1,borderStyle:"solid"},children:"+"})]})}function VKe(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 YKe({children:e}){return Ye("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function lf({label:e,value:t}){return io("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[Ye("span",{children:e}),Ye("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function jKe({content:e}){return io("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[Ye("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),Ye("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),io(He,{href:"/wheels",className:"mt-3 inline-flex items-center gap-3 border border-line px-5 py-3 font-mono text-[11px] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:["Browse the catalog ",Ye("span",{className:"text-accent",children:"\u2192"})]})]})}import{jsx as df,jsxs as rge}from"react/jsx-runtime";var ZKe=Cu(void 0),JKe="Your cart";function yk({content:e=UC,look:t=ZKe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=Mn(),s=XKe(null),l=Lhe(a.filter(CR).map(d=>d.slug));return qKe(()=>{i(t.autoOpen)},[t.autoOpen,i]),rge($i,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:JKe,children:[df(Xhe,{content:e,closeRef:s}),df(Zhe,{content:e}),rge("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[df(Jhe,{content:e,tyres:l}),df(Qhe,{}),df(ege,{}),df(tge,{content:e})]}),df(oge,{}),df(nge,{})]})}import QKe from"efficient-easel/screen/components/UiIcon";import{Fragment as tVe,jsx as Ag,jsxs as HO}from"react/jsx-runtime";var eVe=qw(()=>import("./chunks/EditorPreviewCheckout-VZN2WR4X.js"),{ssr:!1});function SM(){let{chromePlaceholder:e,themeFromDocument:t}=tr(),{surface:o}=xie();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?HO(tVe,{children:[Ag(eVe,{}),Ag(age,{surface:o})]}):Ag(Fu,{children:HO(Aw,{preview:!0,children:[Ag(yk,{}),Ag(age,{surface:o})]})})}function age({surface:e}){let{label:t,href:o}=Wfe(e);return HO("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:[Ag("span",{style:{whiteSpace:"nowrap"},children:m("{name} \xB7 preview only",{name:m(t)})}),HO("a",{className:"rounded-(--radius-control) px-3 py-1",href:o,target:"_blank",rel:"noopener noreferrer",style:{pointerEvents:"auto",flex:"none",display:"inline-flex",alignItems:"center",gap:5,color:"#fff",background:"#2563eb",textDecoration:"none"},children:[m("Open live"),Ag(QKe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as oVe,CursorClickIcon as nVe,EyeIcon as rVe,FullWidthIcon as aVe,HeightIcon as iVe,OpacityIcon as lge,PlacementIcon as sVe,WidthIcon as lVe}from"efficient-easel/icons";import{group as Tx}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as dVe}from"efficient-easel/screen/lib/document/device-fields";import{jsx as hm}from"react/jsx-runtime";var cVe={label:"Inside",value:"inside"},pVe={label:"None",value:"none"};function TM(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,dVe("desktop",o)]))}function ige(e,t){return{_gDesign:Tx("Color"),tintColor:Da("Tint color",e),tintOpacity:le("Tint opacity",hm(lge,{}),o1.min,o1.max,5,t,"%")}}function sge(e,t){return{_gBehavior:Tx("Behavior"),outsideClick:oe("Outside click",e,hm(nVe,{})),...t}}var mVe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function EM(e){return le("Width",hm(lVe,{}),DB.min,DB.max,4,e,"px")}function dge(e){if(e===_u){let o=Cu(void 0);return TM({_gSize:Tx("Width"),width:EM(o.width),_gPosition:Tx("Placement"),placement:ne("Placement",hm(sVe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...ige(o.tintColor,o.tintOpacity),...sge(o.outsideClick,{autoOpen:oe("Auto open",o.autoOpen,hm(rVe,{}))})})}let t=Pu;return Ie(TM({_gSize:Tx("Width"),width:EM(t.width),height:ne("Height",hm(iVe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:Tx("Placement"),placement:fd("Placement",{fallback:t.placement}),fullWidth:oe("Full width",t.fullWidth,hm(aVe,{})),...ige(t.tintColor,t.tintOpacity),...sge(t.outsideClick,{closeButton:ne("Close button",hm(oVe,{}),[cVe,{label:"Outside",value:"outside"},pVe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],mVe])}function cge(e,t){return TM({menuPanelWidth:EM(e),menuPanelTintColor:Da("Tint color",Pu.tintColor),menuPanelTintOpacity:le("Tint opacity",hm(lge,{}),o1.min,o1.max,5,t,"%")})}import{PictureTiles as uVe}from"efficient-shell/ui";import{SettingsField as fVe}from"efficient-easel/panel";import{GridIcon as hVe}from"efficient-easel/icons";import{jsx as Ig}from"react/jsx-runtime";function gVe({layout:e}){return Ig("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?Ig("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):Ig("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var pge={type:"custom",render:({value:e,onChange:t})=>{let o=GC({layout:e}).layout,n=MB.find(r=>r.value===o);return Ig(fVe,{label:m(zB),icon:Ig(hVe,{}),value:n?m(n.label):void 0,children:Ig(uVe,{className:"sf-gallery-layouts",label:m(zB),value:o,onChange:t,options:MB.map(r=>({value:r.value,label:m(r.label),picture:Ig(gVe,{layout:r.value})}))})})}};import{CategoryIcon as d5t,CheckIcon as c5t,ClockIcon as uq,ColumnsIcon as p5t,DirectionIcon as m5t,EyeIcon as u5t,ListIcon as f5t,PageIcon as h5t,PlacementIcon as g5t,ScrollPointIcon as b5t,TabsIcon as w5t,TriggerIcon as x5t,CaseIcon as y5t}from"efficient-easel/icons";import{deviceField as yDe}from"efficient-easel/screen/lib/document/device-fields";import{group as td,phoneTwinFields as v5t}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as bVe}from"efficient-easel/screen/lib/document/box-fields";function Ex(e){let t=bVe(e);return{...t,render:o=>t.render({...o,value:Qm(o.value)??o.value})}}import{useContext as xVe,useEffect as uge,useRef as MO,useState as zO}from"react";import{Button as WO}from"efficient-shell/ui";import{ScreenDocumentContext as yVe}from"efficient-easel/screen/components/ScreenDocumentContext";var vk=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},DO=null,PM=null,_M=null;function wVe(){DO=null,PM=null,_M=null}function mge(e=!1){let t=fa(),o=Dn();return(e||!DO||PM===null&&t!==null||_M!==o)&&(PM=t,_M=o,DO=(t?Ne.listForms(t,{siteId:o}):Promise.reject(new vk)).catch(n=>{throw wVe(),n instanceof vk?n:new vk(n)})),DO}import{useEaselHost as vVe}from"efficient-easel/screen/lib/host";import{InertHint as CM}from"efficient-easel/panel";import{jsx as gr,jsxs as $c}from"react/jsx-runtime";var fge="__create-a-new-form__";function kVe({value:e,forms:t,loadFailed:o,emptyLabel:n}){let r=t??[],a=e?r.some(p=>p.slug===e):!0,i=t===null&&!o,s={value:"",label:i?m("Loading\u2026"):o?m("Forms couldn\u2019t be loaded"):n===void 0?m("No form yet"):m(n)},l=e&&!a?[{value:e,label:i||o?e:m("{slug} \u2014 no form with this name",{slug:e})}]:[],d=r.map(p=>({value:p.slug,label:p.is_active?p.title:m("{title} (switched off)",{title:p.title})})),c=i?[]:[{value:fge,label:m("Create a new form")}];return[s,...l,...d,...c]}function SVe(e){return e===fge?{action:"create"}:{action:"store",slug:e}}function TVe({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 EVe(e){let t=[m("Goes to {place}",{place:m("Storefront \u2192 Forms")})],o=(e.notify_email??"").trim();return o&&t.push(m("Emails a copy to {email}",{email:o})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?m("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):m("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?m("Creates a wholesale account"):m("Creates a retail account")),t}function RM({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=vVe(),a=xVe(yVe),i=a?a.capabilities.hasForms:!0,[s,l]=zO(null),[d,c]=zO(!1),[p,f]=zO(!1),[u,g]=zO(!1),h=MO(!0),b=MO(e);b.current=e;let w=MO(t);w.current=t;let x=MO(null),v=(P=!1)=>mge(P).then(I=>{if(h.current){l(I),c(!1);let F=TVe({value:b.current,pickedId:x.current,forms:I});F&&w.current(F)}return I},()=>(h.current&&c(!0),[]));uge(()=>(h.current=!0,i&&v(),()=>{h.current=!1}),[i]),uge(()=>i?qR(()=>{v(!0)}):void 0,[i]);let k=e?(s??[]).find(P=>P.slug===e)??null:null;k?x.current=k.id:e||(x.current=null);let y=!!e&&!k&&s!==null&&!d,E=kVe({value:e,forms:s,loadFailed:d,emptyLabel:n}),T=async()=>{f(!0),g(!1);try{let P=await Rde(r,{mode:"create"}),I=await v(!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)||v(!0)}finally{h.current&&f(!1)}},_=P=>{let I=SVe(P);I.action==="create"?T():(g(!1),t(I.slug))};return i?$c("div",{className:"sf-formpicker",children:[gr(rw,{label:o,options:E,fallback:"",value:e??"",onChange:_,placeholder:m("Search forms\u2026")}),u&&gr("p",{className:"sf-formsummary-warn",children:m("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),k?$c("div",{className:"sf-blogsource sf-formsummary",children:[$c("div",{children:[gr("div",{className:"sf-formsummary-caption",children:pr("{n} field","{n} fields",k.fields.length)}),k.fields.length?gr("ol",{className:"sf-formsummary-fields",children:k.fields.map((P,I)=>gr("li",{children:P.label},P.key||`${P.label}-${I}`))}):gr(CM,{children:m("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),$c("div",{children:[gr("div",{className:"sf-formsummary-caption",children:m("Where the answers go")}),gr("ul",{className:"sf-formsummary-fields",children:EVe(k).map(P=>gr("li",{children:P},P))})]}),!k.is_active&&gr("p",{className:"sf-formsummary-warn",children:m("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:m("Storefront \u2192 Forms")})}),$c("div",{className:"sf-formsummary-actions",children:[gr(WO,{variant:"secondary",size:"md",onClick:()=>Cde(r,k.id),children:m("Edit form \u270E")}),gr(WO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:m("New form +")})]}),gr("p",{className:"es-field-hint",children:m("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:m("Storefront \u2192 Forms")})})]}):$c("div",{className:"sf-blogsource sf-formsummary",children:[d?$c(CM,{children:[m("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${m("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):y&&gr("p",{className:"sf-formsummary-warn",children:m("This section points at \u201C{slug}\u201D, and this website has no form with that name. Pick one from the list above, or leave it \u2014 nothing has been changed.",{slug:e??""})}),$c("div",{className:"sf-formsummary-actions",children:[d&&gr(WO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{v(!0)},children:m("Try again")}),gr(WO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:m("New form +")})]}),!d&&gr("p",{className:"es-field-hint",children:m("Pick a form to show here, or build a new one. Forms are made once in {place} and can be shown on any number of pages.",{place:m("Storefront \u2192 Forms")})})]})]}):gr("div",{className:"sf-formpicker",children:gr("div",{className:"sf-blogsource sf-formsummary",children:$c("div",{children:[gr("div",{className:"sf-formsummary-caption",children:m(o)}),$c(CM,{children:[m("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${m("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as PVe}from"react/jsx-runtime";function Kc(e,t){return{type:"custom",render:({value:o,onChange:n})=>PVe(RM,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{createContext as _Ve,useContext as CVe}from"react";import{jsx as Vc,jsxs as OM}from"react/jsx-runtime";function NM(e){return fc(e)??void 0}var LM=_Ve({}),hge=3;function AM({tag:e,name:t,desc:o,href:n,imageSrc:r,imageLabel:a,price:i}){let s=be(),{showPrice:l,cardStyle:d,partStyles:c,editing:p,ownerId:f,Template:u}=CVe(LM),g=d==="bordered"?" border border-line":d==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",h=NM(r),b=Bn();if(u){let v={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:h??"",tag:e??"",href:n||"#"};return b.scope(Vc("div",{className:Jt(`block w-full min-w-0 ${Tb}${s?` ${iu}`:""}`,b.className),...b.attrs,children:Vc(Ke,{ownerId:f??"Collections",ownerType:"Collections",Template:u,rows:[v],fallback:null,children:S=>S})}))}let w=v=>p?{[wb]:v}:{},x=v=>NP(c?.[ld(v)]?.role,Qh[v],yP);return b.scope(OM(He,{href:n||"#",className:Jt(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${g}`,b.className),...b.attrs,children:[Vc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${fme}`,children:Vc(ro,{label:a||"collection.jpg",src:h})}),Vc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${bme} max-view-wide:hidden`,style:{transition:"none"}}),OM("div",{className:"absolute inset-x-8 bottom-8 z-[2] flex flex-col gap-3 text-overlay-fg max-view-wide:relative max-view-wide:inset-auto max-view-wide:p-6 max-view-wide:gap-3 max-view-wide:text-fg",children:[e&&Vc("span",{...w("tag"),style:x("tag"),className:`font-mono ${Xp.tag} uppercase tracking-[0.25em] opacity-70`,children:N(e)}),t&&Vc("h3",{...w("name"),style:x("name"),className:`font-heading2 ${Xp.name} font-medium leading-none tracking-[-0.03em] ${Xp.namePhone}`,children:typeof t=="string"?re(t,!1):t}),o&&Dt(o).map((v,S)=>Vc("p",{...w("body"),style:x("body"),className:`max-w-[420px] ${Xp.body} leading-[1.5] opacity-80`,children:N(v)},S)),l&&i&&Vc("span",{...w("price"),style:x("price"),className:`font-mono ${Xp.price} tracking-[0.05em] text-accent`,children:N(i)}),OM("span",{...w("link"),style:x("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${Xp.link} uppercase tracking-[0.2em]`,children:["Explore",Vc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as Pge,useCallback as qVe,useContext as Ege,useEffect as _ge,useRef as XVe,useState as MM}from"react";import{slugify as ZVe}from"efficient-shell/format";import{useState as LVe}from"react";import{jsx as IM,Fragment as RVe}from"react/jsx-runtime";function Tl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=Ste(e),a=Tte(e),i=t?a:r,s=kte(i);return o&&!i?IM("span",{[mu]:e,children:n}):i?IM("span",{ref:s,[see]:i.stamp,...i.textStyle?{[lee]:i.textStyle}:{},children:n}):IM(RVe,{children:n})}var gge="mosaic",OVe=260,NVe=150;function bge(e){let t=`.${e}.sf-gallery-zone`;return`${t}{grid-auto-rows:${OVe}px}@media (max-width:${_b}px){${t}{grid-auto-rows:${NVe}px}}`}function wge(e){return e>1?`${e} photos`:""}import{jsx as nr,jsxs as cf}from"react/jsx-runtime";var AVe="(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",FM=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function BM({build:e,hiddenMobile:t,alwaysShowOverlay:o,forceHover:n,index:r,total:a,ratio:i,captionPlace:s,display:l,displayPhone:d,styleOwner:c,editing:p=!1,setCount:f,sizes:u}){let g=k=>Sre(l,d,k),h=k=>p&&c?{[nee]:c,[ree]:`@${k}`}:{},b=(k,y)=>!p&&c?nr(Tl,{kind:`@${k}`,shared:!0,children:y}):y,[w,x]=LVe(!1);if(f!=null)return nr(IVe,{build:e,count:f,ratio:i,sizes:u,shown:g,keptAttrs:h,kept:b});let v=BJ(s),S=cf("div",{className:["sf-card group relative overflow-hidden bg-surface-2",Fh(i),t?"max-view-wide:hidden":""].join(" "),children:[cf("div",{className:["absolute inset-0 z-[1] flex items-center justify-center transition-[transform,filter,opacity] duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",n?"scale-[1.06] opacity-0 [filter:brightness(0.5)]":"group-hover:scale-[1.06] group-hover:opacity-0 group-hover:[filter:brightness(0.5)]"].join(" "),children:[nr(ro,{label:e.imageLabel,src:e.imageSrc,...u?{sizes:u}:{}}),!o&&nr("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),nr("div",{className:["absolute inset-0 z-[1] flex items-center justify-center transition-[transform,filter,opacity] duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",n?"opacity-100 scale-[1.06] [filter:brightness(0.5)]":"opacity-0 group-hover:scale-[1.06] group-hover:opacity-100 group-hover:[filter:brightness(0.5)]"].join(" "),style:{background:"var(--site-surface)"},children:e.detailSrc&&nr(nl,{src:e.detailSrc,alt:"",fill:!0,sizes:u??AVe,loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:w?"none":"block"},onError:()=>x(!0)})}),(e.process||r!=null&&a!=null)&&cf("div",{className:"pointer-events-none absolute top-3 left-3 right-3 z-[3] flex items-baseline gap-2 max-view-wide:top-2.5 max-view-wide:left-2.5 max-view-wide:right-2.5",children:[e.process&&nr("span",{...h("tag"),className:["min-w-0 truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent",g("tag"),"transition-opacity duration-300 ease-out",o||n?"opacity-100":"opacity-0 group-hover:opacity-100 max-view-wide:opacity-100"].join(" "),children:b("tag",ko(e.process))}),r!=null&&a!=null&&nr("span",{...h("number"),className:`ml-auto shrink-0 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] ${g("number")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:b("number",FM(r,a))})]}),nr("div",{className:["absolute inset-0 z-[2]","transition-[opacity,transform] duration-300 ease-out",o||n?"opacity-100 translate-y-0":"opacity-0 translate-y-2 group-hover:opacity-100 group-hover:translate-y-0 max-view-wide:opacity-100 max-view-wide:translate-y-0"].join(" "),style:{color:"var(--overlay-fg)",background:o?"linear-gradient(180deg, rgba(10,10,10,.55) 0%, transparent 35%, transparent 55%, rgba(10,10,10,.92) 100%)":"linear-gradient(180deg, transparent 40%, rgba(10,10,10,.85) 100%)"},children:cf("div",{className:"absolute inset-x-0 bottom-0 top-9 flex flex-col justify-end gap-1 overflow-hidden p-6 max-view-wide:top-8 max-view-wide:p-3.5",children:[e.car&&nr("div",{...h("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] ${g("eyebrow")}`.trim(),children:b("eyebrow",e.car)}),e.wheel&&nr("div",{...h("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 ":""}${g("title")}`.trim(),children:b("title",e.wheel)}),e.finish&&nr("div",{...h("meta"),className:`mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em] ${g("meta")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:nr("span",{children:b("meta",ko(e.finish))})})]})})]});return v?cf("div",{className:t?"max-view-wide:hidden":"",children:[S,cf("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&nr("div",{...h("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${g("title")}`.trim(),children:b("title",e.wheel)}),(e.finish||e.car)&&nr("div",{...h(e.finish?"meta":"eyebrow"),className:`mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim ${g(e.finish?"meta":"eyebrow")}`.trim(),children:b(e.finish?"meta":"eyebrow",ko(e.finish||e.car))})]})]}):S}function IVe({build:e,count:t,ratio:o,sizes:n,shown:r,keptAttrs:a,kept:i}){let s=wge(t);return cf("div",{className:`sf-card relative overflow-hidden bg-surface-2 ${Fh(o)}`,style:{color:"var(--overlay-fg)"},children:[nr("div",{className:"absolute inset-0 flex items-center justify-center",children:nr(ro,{label:e.imageLabel,src:e.imageSrc,...n?{sizes:n}:{}})}),nr("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, color-mix(in srgb, var(--overlay-scrim) 0%, transparent) 45%, color-mix(in srgb, var(--overlay-scrim) 70%, transparent))"}}),s&&nr("span",{"data-gallery-set-chip":"",className:"absolute right-3 top-3 z-1 bg-overlay-scrim/45 px-2 py-1 text-[length:var(--size-label,11px)] tracking-[0.12em]",children:s}),cf("div",{className:"absolute bottom-[18px] left-5 right-5 z-1 max-view-wide:bottom-2.5 max-view-wide:left-3",children:[e.wheel&&nr("div",{...a("title"),className:`text-[length:var(--size-label,11px)] uppercase tracking-[0.16em] opacity-85 ${r("title")}`.trim(),children:i("title",ko(e.wheel))}),e.car&&nr("div",{...a("eyebrow"),className:`mt-1 text-lg leading-normal max-view-wide:text-sm ${r("eyebrow")}`.trim(),children:i("eyebrow",e.car)})]})]})}import{createContext as FVe,useCallback as BVe,useContext as HVe,useEffect as DVe,useLayoutEffect as MVe,useRef as HM,useState as zVe}from"react";import{createPortal as WVe}from"react-dom";import{Fragment as KVe,jsx as kk,jsxs as VVe}from"react/jsx-runtime";var yge="sf-themed-content",UVe=`.${yge}`,xge="sf-section-accent";function GVe(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(xge)&&(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 ${xge}`:"contents",style:o}}function $Ve(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 vge=FVe(()=>{});function Yc({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=HM(null),l=HM(null),[d,c]=zVe(null);MVe(()=>{if(!e){c(null);return}let g=s.current;if(!g)return;let h=g.closest(UVe),b=h?.parentElement??g.ownerDocument.body,w=GVe(g,b);c({host:b,theme:h?{...w,className:`${w.className} ${yge}`}:w})},[e]);let p=HM({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let f=e&&d!==null,u=BVe(()=>p.current.onClose(),[]);return Wc({active:f,onDismiss:u,scopeRef:l}),DVe(()=>{if(!f)return;let g=l.current,h=g?.ownerDocument??document,b=h.activeElement;g?.focus();let w=v=>{if(v.key==="ArrowLeft")p.current.onPrev?.();else if(v.key==="ArrowRight")p.current.onNext?.();else if(v.key==="Tab"&&g){let S=$Ve(g);if(S.length===0){v.preventDefault(),g.focus();return}let k=S[0],y=S[S.length-1],E=h.activeElement,T=!!E&&g.contains(E)&&E!==g;if(v.shiftKey&&(!T||E===k))v.preventDefault(),y.focus();else if(!v.shiftKey&&(!T||E===y))v.preventDefault(),k.focus();else{v.preventDefault();let _=S.indexOf(E);S[v.shiftKey?_-1:_+1]?.focus()}}},x=h.defaultView??window;return x.addEventListener("keydown",w),()=>{x.removeEventListener("keydown",w),b&&b.isConnected&&b.focus()}},[f]),e?VVe(KVe,{children:[kk("span",{ref:s,hidden:!0}),d&&WVe(kk("div",{className:d.theme.className,style:d.theme.style,children:kk("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 ${gM[8]} ${a}`,style:{background:hM},children:kk(vge.Provider,{value:t,children:i})})}),d.host)]}):null}var UO="color-mix(in oklab, var(--bg) 70%, transparent)";function gm({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=HVe(vge);return kk("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as YVe,useContext as Fg}from"react";var Sk=YVe(null);function kge(){let e=Fg(e1),t=Fg(Sk),o=pR();return e?e.socialLinks??hie:t?t.socialLinks:o.links}function pf(){return Fg(Sk)?.commerceEnabled??!0}function jVe(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Px(){return jVe(Fg(Sk))}function Sge(){let e=Fg(Sk),t=tr();return e?e.showThemeSwitch??Hp:t.themeSwitchShown??Hp}function Tge(){let e=Fg(e1),t=Fg(Sk),o=tr();return e?FR({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?FR({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):FR({siteName:o.websiteName?.trim()||Ou})}import{useBrowserLayoutEffect as JVe}from"efficient-shell/hooks";import{Fragment as _x,jsx as Bt,jsxs as Gn}from"react/jsx-runtime";var QVe="(max-width: 1100px) 100vw, min(59vw, 1050px)",Tk=Pge({}),Cge=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],WM=Pge(null),mf="data-gallery-grid",zM="data-gallery-tile";function eYe(e,t){let[o,n]=MM(null);return _ge(()=>{let r=e.current,a=r?.closest(`[${mf}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${zM}]`)),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 Od={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},tYe=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),Rge=Array.from({length:6},tYe);function oYe(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=ZVe(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 Bg({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let i=be(),{galleryHref:s="/gallery",submitHref:l="/contact",previewHover:d,display:c,displayPhone:p,styleOwner:f,photosOnly:u=!1,wordsAtRest:g=!1,Template:h,ownerId:b,sets:w=!1}=Ege(Tk),x=oYe(a),S=pf()&&!u,k=!S&&!nYe(x),y=x.photos??(x.imageSrc?[x.imageSrc]:[]),E=XVe(null),T=qVe(he=>{E.current=he},[]),_=eYe(E,e),P=Ege(WM),I=P?.report,F=r?.id,H=r?.tag??"",B=r?.name??"";JVe(()=>{if(!I||!F)return;let he={id:F,tag:H,name:B};return I(he),()=>I(he,!0)},[I,F,H,B]);let L=(F?P?.positionOf(F):null)??_,A=F?P?.sizesOf?.(F):void 0,$=e&&(!!t||!!d),[Y,V]=MM(!1),[Z,G]=MM(0),q=!!F&&!!P&&P.walkCount>1,te=he=>{let Fe=Z+he;if(q&&(Fe<0||Fe>=y.length)){V(!1),P.walk(F,he);return}G((Fe+y.length)%y.length)},R=()=>te(-1),O=()=>te(1),K=y.length>1||q,X=P?.opening;_ge(()=>{!X||X.id!==F||(G(X.at==="last"?Math.max(0,y.length-1):0),V(!0))},[X,F]);let M=y[Z]??x.imageSrc??"",ee=y.slice(1),de=h?Bt("div",{className:`block w-full min-w-0 ${Tb}${i?` ${iu}`:""}`,children:Bt(Ke,{ownerId:b??"GalleryB",ownerType:"GalleryB",Template:h,rows:[{key:F??x.imageSrc??"tile",image:x.imageSrc??"",tag:x.process,number:L?FM(L.index,L.total):"",eyebrow:x.car,name:x.wheel,meta:x.finish,href:x.href??""}],items:[{hoverMedia:ee.length?{photos:[{finish:"",items:ee.map(he=>({url:he,kind:"image"}))}]}:null}],previewHover:$,fallback:null,children:he=>he})}):Bt(BM,{build:x,forceHover:$,alwaysShowOverlay:g,index:L?.index,total:L?.total,ratio:o,captionPlace:n,display:c,displayPhone:p,styleOwner:f,editing:e,...w?{setCount:y.length}:{},...A?{sizes:A}:{}});return Gn(_x,{children:[e?Bt(z,{as:"div",ref:T,[zM]:"",className:"block w-full text-left",children:de}):Bt(z,{as:"button",ref:T,[zM]:"",type:"button","aria-label":S?`Open ${x.car||"build"} on ${x.wheel||"wheel"}`:DM(x),onClick:()=>{G(0),V(!0)},className:"block w-full cursor-pointer text-left focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2",children:de}),w?Bt(Yc,{open:Y,onClose:()=>V(!1),label:x.car&&x.wheel?`${x.car} on ${x.wheel}`:DM(x),onPrev:K?R:void 0,onNext:K?O:void 0,className:"bg-bg",children:Bt(sYe,{build:x,set:y,index:Z,onPick:G,onPrev:K?R:void 0,onNext:K?O:void 0,onLeave:()=>V(!1)})}):Bt(Yc,{open:Y,onClose:()=>V(!1),label:S?`${x.car} on ${x.wheel}`:DM(x),onPrev:K?R:void 0,onNext:K?O:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:Gn("div",{onClick:he=>he.stopPropagation(),className:`relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] ${k?"grid-cols-1":"grid-cols-[1.4fr_1fr]"} overflow-hidden border border-line bg-bg max-view-desktop:grid-cols-1 max-view-desktop:overflow-auto`,style:{boxShadow:"0 60px 120px -20px color-mix(in srgb, var(--sf-shadow-color, #141416) 70%, transparent)"},children:[Bt(gm,{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:UO},children:"\u2715"}),Gn("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[M&&Bt("img",{...to(M,{fallbackWidth:1280}),sizes:QVe,alt:`${(S?x.car:x.wheel||x.car)||"Photo"} \u2014 ${Z+1} of ${y.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},M),K&&Gn(_x,{children:[Bt("button",{type:"button","aria-label":"Previous photo",onClick:R,className:"absolute left-4 top-1/2 flex h-16 w-16 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,24px)] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25C1"}),Bt("button",{type:"button","aria-label":"Next photo",onClick:O,className:"absolute right-4 top-1/2 flex h-16 w-16 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,24px)] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25B7"}),y.length>1&&Gn("span",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 border border-fg-dim/30 bg-overlay-scrim/50 px-4 py-1.5 font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em] text-fg-dim backdrop-blur-[4px]",children:[Z+1," / ",y.length]})]})]}),S?Gn("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[x.process&&Bt("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:N(x.process)}),x.wheel&&Bt("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(42px,4.5vw,60px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.025em]",children:re(x.wheel,!1)}),x.car&&Gn("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",Bt("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:N(x.car,!0)})]}),Gn("dl",{className:"mt-3 grid grid-cols-[auto_1fr] gap-x-7 gap-y-[18px] border-y border-line py-[30px] font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em]",children:[x.wheel&&Gn(_x,{children:[Bt("dt",{className:"text-fg-dim",children:"Wheel"}),Bt("dd",{className:"text-fg",children:N(x.wheel)})]}),x.process&&Gn(_x,{children:[Bt("dt",{className:"text-fg-dim",children:"Process"}),Bt("dd",{className:"text-fg",children:N(x.process)})]}),x.finish&&Gn(_x,{children:[Bt("dt",{className:"text-fg-dim",children:"Finish"}),Bt("dd",{className:"text-fg",children:N(x.finish)})]}),x.car&&Gn(_x,{children:[Bt("dt",{className:"text-fg-dim",children:"Vehicle"}),Bt("dd",{className:"text-fg",children:N(x.car)})]})]}),Gn("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[Gn(He,{href:x.href||"/wheels",onClick:()=>V(!1),className:"group flex items-center justify-between gap-6 border border-btn bg-btn px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-btn-ink transition-colors hover:border-fg hover:bg-fg",children:[Bt("span",{children:"View product"}),Bt("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),Gn(He,{href:s,onClick:()=>V(!1),className:"flex items-center justify-between gap-6 border border-line px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[Bt("span",{children:"See more builds"}),Bt("span",{children:"\u2192"})]}),Gn(He,{href:l,onClick:()=>V(!1),className:"flex items-center justify-between gap-6 border border-line px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[Bt("span",{children:"Submit your build"}),Bt("span",{children:"\u2192"})]})]})]}):!k&&Bt(rYe,{build:x})]})})]})}function Oge(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function nYe(e){return!!e.wheel||Oge(e).length>0}function DM(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function rYe({build:e}){let t=e.wheel,o=Oge(e);return Gn("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&Bt("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(42px,4.5vw,60px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.025em]",children:re(t,!1)}),o.map(n=>Bt("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:N(n)},n))]})}var aYe=360,iYe="120px";function sYe({build:e,set:t,index:o,onPick:n,onPrev:r,onNext:a,onLeave:i}){let s=t[o]??e.imageSrc??"",l="absolute top-1/2 flex h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg bg-bg text-lg text-fg max-view-wide:hidden";return Gn("div",{onClick:d=>d.stopPropagation(),className:"grid h-full w-full grid-cols-[1fr_360px] bg-bg text-fg max-view-wide:grid-cols-1 max-view-wide:grid-rows-[auto_1fr] max-view-wide:overflow-auto",children:[Gn("div",{className:"relative grid min-h-0 place-items-center bg-surface-2 py-12 max-view-wide:p-0",children:[s&&Bt("img",{...to(s,{fallbackWidth:1280}),sizes:`(max-width: ${_b}px) 100vw, calc(100vw - ${aYe}px)`,alt:`${e.car||e.wheel||"Photo"} \u2014 ${o+1} of ${t.length}`,className:"block max-h-[calc(100vh-96px)] max-w-[calc(100%-192px)] max-view-wide:max-h-[60vh] max-view-wide:max-w-full"},s),r&&Bt("button",{type:"button","aria-label":"Previous photo",onClick:r,className:`${l} left-6`,children:"\u2039"}),a&&Bt("button",{type:"button","aria-label":"Next photo",onClick:a,className:`${l} right-6`,children:"\u203A"})]}),Gn("div",{"data-gallery-set-side":"",className:"flex min-h-0 flex-col overflow-auto p-8 max-view-wide:px-4 max-view-wide:py-5",children:[Bt(gm,{label:"Close popup",className:"flex h-10 w-10 shrink-0 cursor-pointer items-center justify-center self-end border border-fg bg-bg text-lg text-fg max-view-wide:fixed max-view-wide:right-3 max-view-wide:top-3 max-view-wide:z-5",children:"\u2715"}),e.wheel&&Bt("div",{className:"mt-10 text-[length:var(--size-label,11px)] uppercase tracking-[0.16em] text-fg-dim max-view-wide:mt-0",children:e.wheel}),e.car&&Bt("div",{className:"mt-2 mb-2 text-2xl leading-normal",children:e.car}),Gn("div",{className:"text-xs leading-normal text-fg-dim",children:[o+1," / ",t.length]}),t.length>1&&Bt("div",{className:"mt-8 grid grid-cols-3 gap-2 max-view-wide:grid-cols-5",children:t.map((d,c)=>Bt("button",{type:"button","data-gallery-set-thumb":"","aria-label":`Show photo ${c+1}`,"aria-current":c===o?"true":void 0,onClick:()=>n(c),className:`block cursor-pointer p-0 ${c===o?"opacity-100 outline outline-1 outline-offset-2 outline-fg":"opacity-50"}`,children:Bt("img",{...to(d,{fallbackWidth:320,maxWidth:640}),sizes:iYe,alt:"",loading:"lazy",className:"block aspect-[4/3] w-full object-cover"})},`${d}-${c}`))}),e.wheel&&e.href&&Gn(xt,{href:e.href,onClick:i,className:"mt-auto inline-block self-start border border-fg px-8 py-3 text-xs text-fg max-view-wide:mt-6",children:["See ",e.wheel]})]})]})}import{createContext as uYe,useContext as fYe,useEffect as Ek,useId as hYe,useState as Nr,useSyncExternalStore as gYe}from"react";var lYe=14,dYe=3;function cYe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function pYe(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),cYe(o)}async function Nge(e,t,o={}){let n=o.days??lYe,r=o.read??eg.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=pYe(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>=dYe)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as Lge,formatDateTime as UM,formatTime as Fge}from"efficient-shell/format";var mYe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},Age={weekday:"long",day:"numeric",month:"long",year:"numeric"},Bge={hour:"numeric",minute:"2-digit"},Ige={...Bge,timeZoneName:"short"};function GM(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function $M(e,...t){let o=gl(...t);return!o||!GM(e)?"":Fge(e,{locale:rH(),timeZone:o})}function KM(e,...t){let o=typeof e=="string"?{start:e}:e,n=gl(...t),r=GM(o.start);if(!n||!r)return"";let a=rH(),i=o.end?GM(o.end):null;if(!i||i.getTime()<=r.getTime())return UM(o.start,{locale:a,timeZone:n,style:mYe,zoneName:"short"});let s=UM(o.start,{locale:a,timeZone:n,style:Age,clock:Bge}),d=Lge(o.start,n)===Lge(o.end,n)?Fge(o.end,{locale:a,timeZone:n,clock:Ige}):UM(o.end,{locale:a,timeZone:n,style:Age,clock:Ige});return`${s} \u2013 ${d}`}function GO(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as bYe,userToday as wYe,userZone as xYe}from"efficient-shell/format";import{jsx as PYe}from"react/jsx-runtime";var Dge=uYe(null);function uf(){let e=fYe(Dge);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var VM=[{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:""}],yYe=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function Hge(e,t){return{timezone:"",slots:t?yYe.flatMap(({hour:n,minute:r})=>bYe(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var YM={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function vYe(e){let t=String(e?.slots[0]?.start??"");return t?{...YM,startAt:t}:YM}function Mge(e){return e.bookingNumber===YM.bookingNumber}function kYe(e,t){return e&&t?.length===0}function SYe(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!GO(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function TYe(){return()=>{}}function EYe(){return null}function zge({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=hYe(),r=gYe(TYe,wYe,EYe)??"",[a,i]=Nr(),[s,l]=Nr(""),[d,c]=Nr(""),[p,f]=Nr(r),[u,g]=Nr(r),[h,b]=Nr(!1),[w,x]=Nr(null),[v,S]=Nr(),[k,y]=Nr(""),[E,T]=Nr(""),[_,P]=Nr(""),[I,F]=Nr(""),[H,B]=Nr(""),[L,A]=Nr(()=>hH()),[$,Y]=Nr(null),[V,Z]=Nr(!1),[G,q]=Nr(!1),[te,R]=Nr(null),[O,K]=Nr("");Ek(()=>{K(xYe()??"")},[]),Ek(()=>{let xe=!1;return eg.listServices().then(ie=>{if(xe)return;let ce=yR(ie);i(ce),l(ie.currency),c(J=>J||ce[0]?.id||"")}).catch(()=>{xe||i([])}),()=>{xe=!0}},[]),Ek(()=>{r&&(f(xe=>xe||r),g(xe=>xe||r))},[r]),Ek(()=>{if(h||!d||!r)return;let xe={aborted:!1};return y(""),S(void 0),R(null),x(null),Z(!0),Nge(d,r,{signal:xe}).then(ie=>{if(!xe.aborted){if(ie.outcome==="found"){f(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]),Ek(()=>{if(!h||!d||!p)return;let xe=!1;return y(""),S(void 0),R(null),x(null),Z(!0),eg.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,ee=SYe({editing:e,submitting:G,hasService:!!X,hasDay:!!p,selectedStart:k,name:E,email:_,requiresPayment:M},Date.now());async function de(xe){if(xe.preventDefault(),!(!ee||!X)){q(!0),R(null);try{let ie=await eg.create({serviceId:X.id,start:k,customer:{name:E.trim(),email:_.trim(),phone:I.trim()},notes:H.trim(),idempotencyKey:L,customerTimezone:O});Y(ie),A(hH())}catch(ie){R(ie instanceof ur&&ie.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),ie instanceof ur&&ie.status===409&&(y(""),eg.getAvailability(X.id,p).then(S).catch(()=>{}))}finally{q(!1)}}}let he=kYe(e,a),Fe=he?Hge(p,O):void 0,_t=t&&!$?vYe(Fe??Hge(p,O)):null;return PYe(Dge.Provider,{value:{fieldPrefix:n,editing:e,services:he?VM:a,currency:he?"AUD":s,serviceId:he?VM[0].id:d,setServiceId:c,service:he?VM[0]:X,requiresPayment:he?!1:M,date:p,earliestDate:u,setDate:f,setDateTouched:b,availability:Fe??v,loadingSlots:he?!1:V,noSlotsMessage:w,selectedStart:Fe?Fe.slots[0]?.start??"":k,setSelectedStart:y,customerTimezone:O,name:E,setName:T,email:_,setEmail:P,phone:I,setPhone:F,notes:H,setNotes:B,confirmation:$??_t,submitting:G,error:te,canSubmit:he?!1:ee,handleSubmit:de,sample:!!he},children:o})}import{jsx as $O,Fragment as Wge,jsxs as Uge}from"react/jsx-runtime";var Gge=`sf-button group inline-flex items-center justify-center gap-2.5 border ${Qre} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,$ge={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:f,...u}=e,g=`${r?Gge.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):Gge} ${$ge[t]??$ge.primary} ${a??""}`,h=n?Uge(Wge,{children:[o!==null&&$O("span",{"aria-hidden":!0,className:"inline-flex",...l,children:o??"\u2192"}),d]}):Uge(Wge,{children:[d,o!==null&&$O("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",...l,children:o??"\u2192"})]});return c?$O(xt,{href:c,className:g,style:i,newTab:p?!0:"auto",...f?{hrefRewrite:f}:{},...s,children:h}):$O("button",{type:"button",className:g,style:i,...u,children:h})}import{jsx as _Ye}from"react/jsx-runtime";var Pk=e=>_Ye("div",{className:"grid bg-bg",children:e});import{jsx as po,jsxs as Nd}from"react/jsx-runtime";var _k="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 CYe(e,t){let o=Number(e);if(o===0)return tg;try{return vle(o,t)}catch{return`${t} ${e}`}}var Kge={selected:!0};function Vge(e,t){return({index:o})=>t?{[E_]:P_(e,o)}:{}}var Ck="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function jM({number:e,children:t}){return Nd("div",{className:"mb-4 flex items-center gap-3",children:[po("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full border border-line font-[family-name:var(--bk-step-font,var(--font-mono))] text-[length:var(--bk-step-size,11px)] font-semibold text-fg-dim",children:e}),po("h3",{className:"font-[family-name:var(--bk-step-font,var(--font-mono))] text-[length:var(--bk-step-size,12px)] font-semibold uppercase tracking-[0.2em] text-fg",children:t})]})}function KO({eyebrow:e,heading:t,intro:o}){return Nd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&po("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&po("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.98] tracking-[-0.025em] text-fg max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:t}),(o??"").trim()&&po("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function VO({style:e,owner:t}){let{fieldPrefix:o,services:n,currency:r,serviceId:a,setServiceId:i,requiresPayment:s,date:l,earliestDate:d,setDate:c,setDateTouched:p,availability:f,loadingSlots:u,noSlotsMessage:g,selectedStart:h,setSelectedStart:b,customerTimezone:w,editing:x}=uf();if(!n)return null;let v=Date.now(),S=gl(w,f?.timezone??""),k=gl(f?.timezone??""),y=k&&k!==S?k:"",E=(f?.slots??[]).map(T=>({start:T.start,time:$M(T.start,S),businessTime:y?`${$M(T.start,y)} business`:"",passed:!x&&GO(T.start,v)}));return Nd(z,{className:"flex flex-col gap-10",style:e,children:[Nd("div",{children:[po(jM,{number:"01",children:"Choose a service"}),po("div",{className:"grid gap-3 sm:grid-cols-2",children:po(Ke,{ownerId:t.id,ownerType:t.type,slot:Eg,Template:t.serviceTemplate,rows:n.map(T=>({name:T.name,meta:`${T.durationMinutes} min \xB7 ${CYe(T.price,r)}`,description:T.description??""})),states:n.map(T=>T.id===a?Kge:void 0),actions:x?void 0:n.map(T=>({press:()=>i(T.id),label:T.name})),copyAttrs:Vge(Eg,x),fallback:null,wrapCopy:Pk,children:T=>po(Fo,{children:T})})}),s&&po("p",{className:"mt-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.14em] text-alert",role:"alert",children:"This service requires an upfront payment and cannot be booked through this form yet."})]}),Nd("div",{children:[po(jM,{number:"02",children:"Choose a date and time"}),po($r,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:Ck,children:po("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:T=>{p(!0),c(T.target.value)},className:_k,required:!0})}),po("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 min-[1200px]:grid-cols-4",role:"group","aria-label":"Available appointment times",children:u?po("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",children:"Loading times\u2026"}):f?.slots.length?po(Ke,{ownerId:t.id,ownerType:t.type,slot:Pg,Template:t.timeTemplate,rows:E.map(T=>({time:T.time,businessTime:T.businessTime})),states:E.map(T=>T.start===h&&!T.passed?Kge:void 0),actions:x?void 0:E.map(T=>({press:()=>b(T.start),label:T.time,disabled:T.passed})),copyAttrs:Vge(Pg,x),fallback:null,wrapCopy:Pk,children:T=>po(Fo,{children:T})}):g?po("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",role:"status",children:g}):null}),S&&!u&&!!f?.slots.length&&Nd("p",{className:"mt-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,10px)] uppercase tracking-[0.16em] text-fg-dim",children:["Times shown in ",S,y?` \xB7 business timezone ${y}`:""]})]})]})}function YO({buttonLabel:e,style:t}){let{fieldPrefix:o,editing:n,name:r,setName:a,email:i,setEmail:s,phone:l,setPhone:d,notes:c,setNotes:p,submitting:f,error:u,canSubmit:g}=uf();return Nd(z,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[po(jM,{number:"03",children:"Your details"}),Nd("div",{className:"flex flex-col gap-4",children:[po($r,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:Ck,children:po("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:h=>a(h.target.value),className:_k,required:!0})}),po($r,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:Ck,children:po("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:h=>s(h.target.value),className:_k,required:!0})}),po($r,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:Ck,children:po("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:h=>d(h.target.value),className:_k})}),po($r,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:Ck,children:po("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:h=>p(h.target.value),className:`${_k} resize-y`})})]}),u&&po("p",{className:"mt-4 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.16em] text-alert",role:"alert",children:u}),po(ya,{type:n?"button":"submit",disabled:!g,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:f?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function jO({successMessage:e}){let{confirmation:t,customerTimezone:o}=uf();if(!t)return null;let n=gl(t.customerTimezone,o,t.timezone),r=gl(t.timezone),a=r&&r!==n?r:"";return Nd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[Nd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),po("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),po("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:KM(t.startAt,n)}),a&&Nd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",KM(t.startAt,a)]}),(e??"").trim()&&po("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),po(ya,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!Mge(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Cx}from"react/jsx-runtime";var Yge=["head","booking","details","confirm"],jge={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function qM({region:e,nodeId:t="BookingBox",serviceTemplate:o,timeTemplate:n,eyebrow:r,heading:a,intro:i,buttonLabel:s,successMessage:l,...d}){let{confirmation:c,services:p}=uf(),f=Mue(d);return e==="head"?Cx(z,{className:"min-[960px]:col-span-2",style:f,children:Cx(KO,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Cx(z,{className:"min-[960px]:col-span-2",style:f,children:Cx(jO,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Cx(VO,{style:f,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Cx(YO,{buttonLabel:s,style:f}):null}import{useEffect as qge,useState as ff}from"react";import{jsx as Rx,jsxs as OYe}from"react/jsx-runtime";function jc(e,t){let[o,n]=ff(void 0),[r,a]=ff(0);return qge(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return Bo.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),qge(()=>{if(t===void 0)return qR(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var RYe="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Ox(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function hf({form:e,formSlug:t,editing:o=!1}){let[n,r]=ff({}),[a,i]=ff(""),[s,l]=ff(!1),[d,c]=ff(!1),[p,f]=ff(null),[u,g]=ff(null);async function h(b){if(b.preventDefault(),!(o||s||!e||!t)){l(!0),g(null);try{let w=e.fields.map(v=>({fieldKey:v.key,value:n[v.key]??""})),x=await Bo.submitForm(t,{answers:w,...a?{company:a}:{}});f(x?.account??null),c(!0)}catch{g(RYe)}finally{l(!1)}}}return{valueOf:b=>n[b]??"",set:(b,w)=>r(x=>({...x,[b]:w})),honeypot:a,setHoneypot:i,submitting:s,done:d,account:p,error:u,handleSubmit:h}}function Nx({value:e,onChange:t}){return Rx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function gf({field:e,value:t,onChange:o,className:n,rows:r=5,placeholder:a,ariaLabel:i}){let s=a??e.placeholder,l=i?.trim()?{"aria-label":i.trim()}:{};return e.type==="textarea"?Rx("textarea",{required:e.required,rows:r,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l}):e.type==="select"?OYe("select",{required:e.required,value:t,onChange:d=>o(d.target.value),className:n,...l,children:[Rx("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>Rx("option",{value:d,children:d},d))]}):e.type==="checkbox"?Rx("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):Rx("input",{type:e.type==="email"?"email":e.type==="tel"?"tel":"text",required:e.required,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l})}var Ut={eyebrow:"Section number",title:"Show *us yours.*",body:"Tell people what they get for submitting, and what you do with what they send.",buttonText:"Submit \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties."};import{jsx as El,jsxs as Rk}from"react/jsx-runtime";function NYe(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function Xge({eyebrow:e,title:t}){return Rk("div",{className:"flex flex-col gap-4",children:[e&&El(ut,{text:e,scaled:!1}),t&&El("h2",{className:"font-display text-[min(clamp(40px,5vw,72px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:re(t,!0)})]})}function qO({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return Rk("div",{className:"flex flex-col gap-8",children:[e&&Dt(e).map((l,d)=>El("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:N(l)},d)),a&&(n?r.done?El("p",{role:"status",className:"max-w-[480px] font-[family-name:var(--sb-thanks-font,var(--font-serif))] text-[length:var(--sb-thanks-size,17px)] italic leading-[1.6] text-fg-dim",children:Ox(n)}):Rk("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",NYe(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?Rk("label",{className:"col-span-2 flex items-start gap-3 font-[family-name:var(--sb-tick-font,var(--font-mono))] text-[length:var(--sb-tick-size,12px)] uppercase tracking-[0.18em] text-fg-dim",children:[El(gf,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),Rk("span",{children:[l.label,l.required?El("span",{className:"text-accent",children:" *"}):null]})]},l.key):El(gf,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),rows:4,placeholder:l.placeholder||l.label,ariaLabel:l.label,className:l.type==="textarea"?`${d} resize-y`:d},l.key)}),El(Nx,{value:r.honeypot,onChange:r.setHoneypot}),r.error&&El("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:r.error}),El("button",{type:s?"button":"submit",disabled:r.submitting,className:"col-span-2 cursor-pointer bg-btn px-6 py-4 font-mono text-[14px] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg hover:text-bg disabled:cursor-wait disabled:opacity-60",children:r.submitting?"Sending\u2026":N(t||Ut.buttonText)})]}):El("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:i?m("Loading form\u2026"):m("Choose a form in the inspector, under Form \u2014 until then this form is hidden on the live page and nothing can be submitted.")})),a&&o&&El("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:N(o)})]})}var XO=["field","tick","thanks"],Zge={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},ZO={field:"styleField",tick:"styleTick",thanks:"styleThanks"},LYe={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 AYe(e){return typeof e=="string"&&pb.includes(e)?e:null}function Jge(e){let t={};for(let o of XO){let n=AYe(e[ZO[o]]);n&&Object.assign(t,Fc(n,LYe[o]))}return t}import{jsx as JO}from"react/jsx-runtime";var Qge=["head","form"],e0e={head:"Head",form:"Form"};function XM({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=jc(i,s),p=hf({form:c,formSlug:i,editing:l}),f=Jge(d);return e==="head"?JO(z,{as:"div",style:f,children:JO(zt,{look:"statement",num:t,title:o})}):JO(z,{as:"div",style:f,children:JO(qO,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var IYe={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>Yge.map(e=>({region:e,name:jge[e]})),addBlocked:()=>m("A Booking Form is these three boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},SubmitBuild:{slot:"boxes",childType:"SubmitBox",addLabel:"Add box",fixed:!0,seeds:()=>Qge.map(e=>({region:e,name:e0e[e]})),addBlocked:()=>m("A Submit-a-build section is these two boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},Collections:{slot:"cards",childType:"CollectionCard",addLabel:"Add card",seeds:()=>Array.from({length:hge},()=>({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:()=>Rge.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};Rne(IYe);import{jsx as t0e}from"react/jsx-runtime";var FYe={body:"text-[length:var(--size-body,17px)]"},bm=5;function Lx({rating:e}){let t=Math.min(bm,Math.max(0,Math.round(e)));return t0e(z,{role:"img","aria-label":`${t} out of ${bm} stars`,className:`flex gap-1 ${FYe.body} leading-none`,children:Array.from({length:bm}).map((o,n)=>t0e("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var ZM="mx-auto max-w-[var(--sf-site-width,1600px)]",BYe=[/^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 o0e(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function JM(e){return e.split(/\s+/).filter(t=>t&&!BYe.some(o=>o.test(o0e(t)))).join(" ")}var HYe=new Set(["max-view-desktop","max-view-wide"]);function DYe(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 Ax(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=o0e(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?DYe(l[1]):void 0;d!==void 0&&(i?HYe.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as MYe,jsx as zYe}from"react/jsx-runtime";function QM({inBox:e,atTop:t,anyBox:o=!1}){let n=Tu(),r=Xb();return zYe(MYe,{children:n||o&&r?e:t})}import{createContext as n0e,useContext as t9}from"react";import{Fragment as UYe,jsx as e9}from"react/jsx-runtime";var WYe={atTop:null,inBox:null},o9=n0e(WYe);function QO({pad:e,children:t}){return e9(o9.Provider,{value:e,children:t})}var br=()=>t9(o9).atTop,r0e=()=>t9(o9),a0e=n0e(void 0);function i0e({pads:e,children:t}){return e?e9(a0e.Provider,{value:e,children:t}):e9(UYe,{children:t})}var s0e=()=>t9(a0e);import{jsx as Ok}from"react/jsx-runtime";function kt({className:e,capped:t=!1,column:o=Ci,style:n,defaults:r,id:a,attrs:i,rootRef:s,inAnyBox:l=!1,padOnColumn:d=!1,children:c}){let p=be(),f=r0e(),u=JM(e),g=o===null?"":JM(o),{className:h,style:b,...w}=Re(u,f.inBox,n),x=Ok(z,{as:"section",ref:s,...i,...w,className:h||void 0,style:b,id:a,children:g?Ok("div",{className:g,children:c}):c}),v=r?{...r,...n}:n,S=d?null:f.atTop,k=d?f.atTop:null,{className:y,style:E,...T}=Re(t?`${ZM} ${e}`:e,S,v),_=Ok(z,{as:"section",ref:s,...i,...T,className:y,style:E,id:a,children:o===null?c:Ok("div",{...Re(ge(o,p),k),children:c})});return Ok(QM,{inBox:x,atTop:_,anyBox:l})}import{Fragment as $Ye,jsx as wm,jsxs as eN}from"react/jsx-runtime";var Ix={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)]"},GYe="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))]",n9="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 r9({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:eN(kt,{className:"relative z-[2] border-t border-line bg-surface",column:l?n9:GYe,padOnColumn:!0,children:[l?null:eN($Ye,{children:[(t??"").trim()&&wm(ut,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&wm("h2",{className:`mb-12 font-heading2 ${Ix.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${Ix.headingMediumUpTo800}`,children:re(o??"",!1)})]}),wm("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=>eN("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&&wm(Lx,{rating:c.rating}),(c.title??"").trim()&&wm("h3",{className:`font-display ${Ix.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),wm("div",{className:`flex-1 font-serif ${Ix.bodySmall} leading-[1.65] text-fg-dim`,children:Dt(c.quote).map((p,f)=>wm("p",{className:f?"mt-3":"",children:p},f))}),eN("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[wm("span",{className:`font-mono ${Ix.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),wm("span",{className:`font-mono ${Ix.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var l0e=Ax(n9),a9={top:84,bottom:l0e.bottom,topPhone:84,bottomPhone:l0e.bottomPhone},d0e=a9,[KYe,VYe]=C2("Testimonials"),YYe={type:qs,props:{...Ue,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[Xs]:[{type:"Text",props:{...$e,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Be("quote",Rt,{size:16,lineHeight:1.6}),{type:qs,props:{...Ue,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Xs]:[Be("name",$e,{...sd,weight:500,letterSpacing:.04}),Be("role",Rt,{textStyle:"body-5"})]}}]}},jYe={name:"Testimonials",boxProps:e=>({...lc,direction:"column",gap:44,sectionBorder:{top:1},...uu(e,d0e)}),box:[...Wp,...Mh(d0e)],parts:[{kind:"group",name:"Heading",props:{...Ue,gap:16},parts:[{...KYe,props:$e},{...VYe,props:$e,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[YYe]}}],site:yee("title"),drop:{...dc,...cc,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Testimonials' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the Reviews block, which is always own-box here"}};Fn({Testimonials:jYe});var Vr={inline:"border-b border-line py-[120px] max-view-desktop:py-20",ownBox:"border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20"};import{phoneKey as oN,tabletKey as i9}from"efficient-easel/draw";var qYe={textStyle:"body-5",...go("label",14),letterSpacing:.05,lineHeight:1.5},XYe={type:qs,props:{...Ue,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[oN("share")]:"content",[oN("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Xs]:[Be("label",Rt,{...La(14),letterSpacing:.05,lineHeight:1.5}),Be("value",{...$e,align:"right"},{...qYe,align:"right"})]}},c0e={[Wh]:D_},ZYe=["dynamic","source","finish","size","wheel"],Nk=il("SpecTable",{slots:{template:[XYe]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...Ue,direction:"row",share:"content",gap:48,[i9("gap")]:80,[oN("gap")]:80,...c0e}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),JYe=Nk.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(ZYe.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),tN=Ax(Vr.ownBox),QYe={...Nk,parts:JYe,boxProps:(e,t)=>{let o=typeof Nk.boxProps=="function"?Nk.boxProps(e,t):Nk.boxProps;return{...o,sectionPaddingBottom:tN.bottom,sectionPaddingBottomPhone:tN.bottomPhone,...c0e,[i9("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[i9("sectionPaddingBottom")]:tN.bottomPhone,[oN("gap")]:36,...tN.line?{sectionBorder:L_({bottom:1})}:{}}}};Fn({SpecTable:QYe});Fn({ProductGrid:il("ProductGrid",{slots:{[Lt]:[yfe()]},pressHeading:!0})});Fn({Events:il("Events",{slots:{[Lt]:P8()},coreProps:{sectionAccent:JP},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});Fn({Collections:il("Collections",{slots:{[Lt]:[_8()]},roomBelow:wme,pressHeading:!0})});Fn({GalleryB:il("GalleryB",{slots:{[Lt]:[C8()]},roomBelow:{bottom:pi.bottom,bottomPhone:O5},pressHeading:!0})});Fn({[hr]:{name:"Product hero",box:[...KJ],boxProps:{direction:"column",gap:0,gapPhone:0,...ht(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[ix]:sx},slots:e=>({[Lt]:JD(e)})}]}});var s9=Ax(Vr.ownBox);Fn({FitmentTable:il("FitmentTable",{slots:{[dO]:[afe()],[tf]:[ife()]},roomBelow:{bottom:s9.bottom,bottomPhone:s9.bottomPhone},boxProps:s9.line?{sectionBorder:L_({bottom:1})}:{},pressHeading:!0})});var eje=e=>({type:qs,props:{...Ue,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[Xs]:[{type:qs,props:{...Ue,name:"Words",direction:"column",gap:16},slots:{[Xs]:[Be("eyebrow",$e,{...La(13),color:"accent"}),Be("title",$e,{textStyle:"heading-2",...go("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Be("copy",Rt,{textStyle:"body-1",...go("body",15),lineHeight:1.6})]}},{type:qs,props:{...Ue,name:"Picture",direction:"column",gap:12},slots:{[Xs]:[{type:"ImageBlock",props:{[Gs]:"image",aspect:"1/1",fit:"contain"}},Be("tag",{...Rt,align:"right"},{...La(11),align:"right"})]}}]}}),tje={name:"Feature Rows",boxProps:{...lc,...kee,direction:"column",gap:0},box:Wp,parts:[{kind:"core",keep:"rest",slots:e=>({template:[eje(e.startLeft===!0)]})}]};Fn({DetailRows:tje});import{phoneKey as d9}from"efficient-easel/draw";var rN=e=>[...Wp.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>N_(t,n)],...Mh(e)],c9=(e,t,o)=>(n,r)=>({...lc,sectionAccent:N_(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...uu(n,e)}),p9=(e,t,o)=>({kind:"text",key:e,role:"heading",props:$e,style:{textStyle:"heading-2",...go("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),m9=(e,t,o={})=>({kind:"group",name:"Heading",props:{...Ue,gap:e,gapPhone:e,...o},parts:t}),u9=(e={})=>({kind:"core",keep:"rest",props:R_,...e}),nN=a9,[oje]=C2("ReviewForm"),nje=()=>({name:"Review Form",boxProps:c9(nN,48,32),box:rN(nN),parts:[m9(16,[{...oje,props:$e},p9("title",1,-.02)]),u9()],pressKeepsEmpty:["eyebrow","title"],drop:{...dc,...cc,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[rje]=C2("Reviews"),l9=e=>({...La(12),letterSpacing:e}),aje={type:qs,props:{...Ue,name:"Card",gap:16,...ht(40,40,32,32),sectionAccent:0},slots:{[Xs]:[{type:"RatingBlock",props:{[Gs]:"rating"}},Be("title",$e,{textStyle:"heading-1",...go("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Be("quote",Rt,{textStyle:"body-1",...go("body",15),lineHeight:1.65}),{type:qs,props:{...Ue,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[d9("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Xs]:[Be("name",$e,l9(.22)),Be("dateLabel",{...Rt,align:"right"},{...l9(.18),align:"right"}),Be("role",{...Rt,align:"right"},{...l9(.18),align:"right"})]}}]}},ije=()=>({name:"Reviews",boxProps:c9(nN,48,32),box:rN(nN),parts:[m9(16,[{...rje,props:$e},p9("title",1,-.02)]),u9({slots:{template:[aje]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...dc,...cc,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Reviews' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the reviews, which are always own-box here"}}),p0e={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},sje=()=>({name:"Booking Form",boxProps:c9(p0e,40,40),box:rN(p0e),parts:[m9(16,[O_("eyebrow",{...go("label",12),weight:600,letterSpacing:.24,color:"accent"}),p9("heading",.98,-.025),{kind:"text",key:"intro",props:{...Rt,maxWidth:660},style:{textStyle:"heading-1",...go("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),u9()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...dc,...cc}}),m0e={top:88,bottom:88,topPhone:64,bottomPhone:64},lje=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...lc,direction:"column",align:"center",gap:20,gapPhone:20,...uu(e,m0e)}),box:[...Wp,...Mh(m0e)],parts:[{...O_("eyebrow"),props:{...$e,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...$e,align:"center",maxWidth:720},style:{textStyle:"heading-1",...go("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...$e,align:"center",maxWidth:560},style:{textStyle:"body-1",...go("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...Ue,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[d9("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...xee,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...F2,align:"center",icon:"none"},style:{...tu(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...dc,...cc}}),u0e={top:60,bottom:0,topPhone:60,bottomPhone:0},dje=()=>({name:"Contact Form",boxProps:(e,t)=>({...lc,sectionAccent:N_(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...uu(e,u0e)}),box:rN(u0e),parts:[{kind:"group",name:"Header",props:{...Ue,direction:"row",align:"center",share:"content",phoneRow:2,[d9("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[O_("routingNumber"),{kind:"text",key:"routingTagline",props:Rt,style:{textStyle:"heading-1",...go("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:vee(e.sectionAccent??0,t)})}}],drop:{...dc,...cc}});Fn({ContactRouting:dje(),ReviewForm:nje(),AppointmentBooking:sje(),Reviews:ije(),CheckoutCTA:lje()});var f0e={top:40,bottom:40,topPhone:40,bottomPhone:40},h0e={textStyle:"heading-1",...jee("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},f9=["heading","intro"],g0e=[Lt,Ua,Ga,$a];function cje(e,t){let o=(t?yb:FZ)(Co,e);return Object.fromEntries(g0e.map(n=>[n,o[n]]))}var pje=()=>({name:"List",boxProps:e=>({...lc,direction:"column",gap:24,gapPhone:24,...uu(e,f0e)}),box:[...Wp,...Mh(f0e)],parts:[{kind:"group",name:"Heading",props:{...Ue,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...$e,tag:"h1"},style:h0e,when:e=>!rB(e)},{kind:"text",key:"heading",role:"heading",props:{...$e,tag:"h2"},style:h0e,when:rB},{kind:"text",key:"intro",role:"body",props:Rt,style:{textStyle:"body-1",...go("body",15)}}]},{kind:"core",keep:"rest",props:R_,derive:{reads:[...g0e],props:(e,t)=>cje(e,t.press===!0)}}],pressKeepsEmpty:f9,drop:{...dc,...cc,[X_]:"read by the heading part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}});Fn({AlloyWheelsListing:pje()});var b0e={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as mje,useContext as uje}from"react";function yt(e){return Mt}import{Fragment as hje,jsx as Fx}from"react/jsx-runtime";var fje=yt("ProductCard")("buy"),Ro={headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},Bx=mje("catalog");function Ts(){return uje(Bx)==="catalog"}function bf({children:e}){let t=Ts();return Fx(hje,{children:e??(t?Fx(z,{"aria-hidden":!0}):null)})}function Hx({children:e}){return Fx(bf,{children:e?Fx(z,{children:e}):null})}function aN({children:e}){return Fx(bf,{children:e?Fx(z,{className:"[.sf-card-rows>*>&]:self-end",...fje,children:e}):null})}var w0e={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:LP(Ro.label),writable:!0,sized:!0}},x0e={sku:{label:"SKU",follows:"Label",builtIn:LP(Ro.label),writable:!0,sized:!0}},y0e={name:{label:"Name",follows:"Heading 3",builtIn:LP(Ro.headingSmall2),writable:!0,sized:!0}};fse({ProductPrice:b0e,ProductEyebrow:w0e,ProductName:y0e,ProductSku:x0e});function Dx(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as gje}from"react/jsx-runtime";import{OpacityIcon as bje}from"efficient-easel/icons";import{group as iN}from"efficient-easel/screen/lib/document/box-fields";var v0e={fields:{_gContent:iN("Content"),eyebrow:W("Eyebrow",ku.eyebrow),title:j("Heading",ku.title),body:j("Body",ku.body),_gBackground:iN("Background image"),imageSrc:rt("Image","image/*"),overlay:le("Overlay",gje(bje,{}),0,100,5,60,"%"),_gButton:iN("Button"),...Sl,_gLayout:iN("Layout")}};import{jsx as Lk}from"react/jsx-runtime";import{GroundIcon as S0e,ListIcon as wje}from"efficient-easel/icons";function T0e(e){let t=e?.data?.root,o=Aoe(t?.props)??"";return o&&PB(o,"text").length?o:""}var h9="outsideCardTemplate",xje={not:{context:h9,is:!0}},Va={[h9]:(e,t)=>{let o=Bp(t.appState,e.props?.id);if(o!==void 0)return o===null&&!T0e(t.appState)},[DX]:(e,t)=>{let o=dd(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[zX]:(e,t)=>dd(t.appState,e.props?.id)?.inCopy};function Yr(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?Lk(er,{noun:"link"}):t==="colour"?Lk(S0e,{}):Lk(wje,{}),a={...ne(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return tt(a,xje)}function qc(){return Yr("Link from","link")}var yje={any:[{field:Xo,set:!1},{context:h9,is:!0,default:!0}]};function wf(e){return tt(e,yje)}function Ak(e){return e.kind==="link"?_r(Q(e.label)):e.kind==="colour"?vje(e.label):e.multiline?Je(e.label):Se(e.label)}function vje(e){return{type:"custom",render:({value:t,onChange:o})=>Lk(Hae,{label:e,icon:Lk(S0e,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function kje(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var k0e=new WeakMap;function Ya(e,t,o){let n=Object.keys(e).filter(k=>kje(e[k]));if(!n.length)return e;let r=t.props??{},a=Bp(o.appState,r.id),i=typeof a?.type=="string"?a.type:"",s=a?T6(o.appState,r.id)??"":"",l=n.map(k=>typeof r[k]=="string"?r[k].trim():""),d=ft(a?.props),c=i===Mr?Bp(o.appState,a?.props?.id):null,p=c?T6(o.appState,a?.props?.id)??void 0:void 0,f=c?HP(a?.props,c.type,p):"",u=c?ft(c.props):"",g=c?`${String(c.type??"")}\0${u}\0${p??""}`:"",h=i===Mr&&!c?JSON.stringify(a?.props?.[LZ]??null):"",b=a?"":T0e(o.appState),w=[i,s,d,f,g,h,xP(),b,Poe(),...l].join("\0"),x=k0e.get(e);x||k0e.set(e,x=new Map);let v=x.get(w);if(v)return v;let S={...e};return n.forEach((k,y)=>{let E=e[k],T=i===Mr?Lh(o.appState,a,E.cardRowKind):i?HZ(a,E.cardRowKind,s||void 0):PB(b,E.cardRowKind),_=E.cardRowKind==="link"&&!!i&&!T.length;if(!l[y]&&(_||(E.cardRowContent?!i||!T.length:!T.length&&!i&&b))){delete S[k];return}let P=l[y]&&!T.some(H=>H.key===l[y])?l[y]:"",I=E.cardRowKind==="list",F=(H,B)=>I&&B===0&&H.key!==l[y]?"":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 P0e}from"efficient-easel/screen/lib/document/box-fields";var sN={meta:"Trailing note"},E0e={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var _0e={fields:{_gContent:P0e("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:Q("Label"),href:_r(Q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:W("Trailing note",sN.meta),_gText:P0e("Text"),rowField:Yr("Shows","text")},resolveFields:(e,t)=>Ya(t.fields,e,t),showWhenFacts:Va};import{jsx as fi,jsxs as Oje}from"react/jsx-runtime";import{ButtonIcon as Nje,ButtonIconIcon as Lje,IconAfterTextIcon as Aje,IconBeforeTextIcon as Ije}from"efficient-easel/icons";import{SettingsField as Fje}from"efficient-easel/panel";import{useSelectedFields as I0e}from"efficient-easel/easel";import{buttonFieldSet as Bje}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as Hje}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as Dje,Segmented as Mje}from"efficient-shell/ui";function lN(e){return typeof e=="boolean"?e:!0}import{parseOption as Sje}from"efficient-shell/format";var g9=["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"],Tje=["before","after","end"];function b9(e){return typeof e=="string"&&g9.includes(e)?e:void 0}function C0e(e,t){return b9(e)??(lN(t)?"arrow-right":"none")}function Ik(e){return Sje(Tje,"after",e)}function R0e(e,t){return Ik(e)==="end"&&Hg(t)==="fill"}function Hg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function O0e(e,t,o,{atSectionLine:n=!1}={}){let r=Hg(e);if(Tr(o)){let i=Hg(o),s=Tr(t)?Hg(t):i;return n?[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-tablet:max-view-desktop:w-full":"view-tablet:max-view-desktop:w-auto",s==="fill"?"max-view-tablet:w-full":"max-view-tablet:w-auto"].join(" "):[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-wide:max-view-desktop:w-full":"view-wide:max-view-desktop:w-auto",s==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto"].join(" ")}let a=r==="fill"?["w-full"]:[];if(Tr(t)){let i=Hg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as pN}from"efficient-easel/screen/lib/document/style-fields";import{group as N0e}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as zje}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as w9}from"react/jsx-runtime";import{LockIcon as Eje}from"efficient-easel/icons";import{FieldText as Pje}from"efficient-easel/fields";import{SettingsField as _je}from"efficient-easel/panel";import{keptByRow as Cje}from"efficient-easel/screen/lib/document/style-fields";function Rje(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??$re}-words`;return w9(_je,{label:m("Words"),icon:w9(Eje,{}),htmlFor:o,children:w9(Pje,{id:o,value:m("Set by country"),onChange:()=>{},readOnly:!0})})}}}function dN(e){return Cje(e)}function cN(e,t,o,n=[]){return $C(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?Rje():a]))}var x9=e=>IC(e==="none"?"no-symbol":e),Wje=g9.map(e=>({value:e,icon:e==="none"?ure(x9(e),fi(NB,{value:e})):x9(e)})),F0e=Q("Button");function Uje({value:e,onChange:t}){let o=I0e(),n=o.values.href,r=typeof e=="string"?e:e&&typeof e=="object"&&"text"in e?String(e.text??""):"";return o.fields&&"href"in o.fields?fi(Jre,{label:"Button",icon:fi(Nje,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):F0e.render({value:r,field:{label:"Button"},onChange:a=>t(yae(a))})}function Gje({value:e,onChange:t}){let o=I0e(),n=C0e(e,o.values.arrow),r=Ik(o.values.iconPosition),a=Hg(o.values.widthFit)==="fill",i=x9("icon-at-end");return fi(Fje,{label:m("Icon"),icon:fi(Lje,{size:18}),value:n==="none"?void 0:fi(NB,{value:n}),children:Oje("div",{className:"flex items-center gap-2",children:[fi(Dje,{label:m("Icon"),value:n,options:Wje,onChange:t}),n!=="none"&&fi(Mje,{size:"sm",block:!0,label:m("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:fi(Ije,{size:16}),label:fi("span",{className:"sr-only",children:m("Icon before text")}),title:m("Icon before text")},{value:"after",icon:fi(Aje,{size:16}),label:fi("span",{className:"sr-only",children:m("Icon after text")}),title:m("Icon after text")},...a?[{value:"end",icon:i,label:fi("span",{className:"sr-only",children:m("Icon at the far end")}),title:m("Icon at the far end")}]:[]]})]})})}var L0e=()=>C6(tr().theme),A0e=Bje({lengthUnits:OC,follows:{useFill:()=>L0e().fill,useText:()=>L0e().ink,useBorder:()=>{let[e]=xc("variant"),[t]=xc("buttonColor"),{theme:o}=tr(),n=WB({variant:e,buttonColor:t}).border.width,r=Tr(t)??(e==="ghost"?qZ(o).text:C6(o).fill);return{width:n,color:r}},useCorners:()=>tJ(tr().cornerRadiusPx),useFillOpacity:()=>WB({variant:xc("variant")[0]}).fillOpacity},usePresets:_re,resetTo:e=>vae(e,m("Styles")),padding:{fallback:eae,tablet:!0},phone:Hje,say:Jb});function $je(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var B0e={fields:{label:Sae(F0e,e=>fi(Uje,{value:e.value,onChange:e.onChange})),labelText:Rae("label"),href:wf({...qe("Button link"),...pN("label")}),consentWords:dN("label"),_gButton:N0e("Button"),rowField:Yr("Shows","text"),[Xo]:qc(),...$je(A0e,zje.Design),_gStyle:N0e("Style"),variant:pN("buttonColor"),icon:{type:"custom",render:e=>fi(Gje,{value:e.value,onChange:e.onChange})},iconPosition:pN("icon"),arrow:pN("icon"),...A0e},resolveFields:(e,t)=>cN(Ya(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Va};import{jsx as Fk}from"react/jsx-runtime";import{AccentIcon as Kje,ColumnsIcon as z0e,StylesIcon as W0e}from"efficient-easel/icons";import{group as y9}from"efficient-easel/screen/lib/document/box-fields";import{newId as D0e}from"efficient-easel/data";function mN(e,{rows:t="items",label:o="title"}={}){let n=ft(e);return n?Fp(n).map(r=>({label:r.label,value:r.key})):(Array.isArray(e[t])?e[t]:[]).map((r,a)=>({label:typeof r?.[o]=="string"&&r[o].trim()||m("Card {n}",{n:a+1}),value:zZ(dn(r),a)}))}var H0e=new WeakMap;function uN(e,t){let o=H0e.get(e);o||H0e.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 M0e(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>D0e(t),enumerable:!0})}function fN(e,t="items"){if(!Array.isArray(e[t])||ft(e))return e;let o=e[t],n=typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",r=c=>c&&typeof c=="object"&&typeof c.key=="string"?c.key:"",a=!!n&&!o.some(c=>r(c)===n),i=new Set,s=e.highlightedCard,l=!1,d=o.map((c,p)=>{if(!c||typeof c!="object")return c;let f=r(c);if(f&&!i.has(f))return i.add(f),c;let u=!f&&a&&n===String(p+1);if(f||u){let g=D0e("card");return i.add(g),l=!0,u&&(s=g),{...c,key:g}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as Vje}from"efficient-easel/data";var Yje=e=>Vje(e.template)&&e.template.length>0;function jje(e,t){let o=Yje(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,uN(r,mN(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,Zje(r)]]:[[n,r]]))}var qje=Object.fromEntries(E2("Cards").filter(e=>!e.everySource).map(e=>[e.key,Ak(e)])),Xje=Object.fromEntries(E2("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,Ak(e)])),U0e=new WeakMap;function Zje(e){let t=U0e.get(e);return t||U0e.set(e,t={...e,arrayFields:qje}),t}var G0e={fields:{_gSource:y9("Source"),dataSource:oo("Card content","Manual"),[gw]:bw(),_gContent:y9("Content"),eyebrow:W("Eyebrow",Fb.eyebrow),eyebrowLook:ne("Eyebrow style",Fk(W0e,{}),[...ol],Up("Cards")),title:j("Heading",Fb.title),items:{type:"array",label:"Cards",arrayFields:Xje,defaultItemProps:M0e({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...See,highlightedCard:ne("Highlighted card",Fk(Kje,{}),[{label:"None",value:""}],""),highlightBadge:W("Highlight badge","Most popular"),_gStyle:y9("Style"),cardStyle:lo("Card style",Fk(W0e,{}),[{label:"Cards",value:"cards",picture:UB.cards},{label:"Label only",value:"label-only",picture:UB["label-only"]}],"cards",{columns:2,cell:Pr}),columns:le("Columns",Fk(z0e,{}),2,4,1,3),fillLastRow:oe("Last card fills its row",!1,Fk(z0e,{}),"When the last row is short, its last card widens to fill it.")},resolveData:(e,t)=>{let o=t?.lastData?.props,n=pse(e.props,o),r=OP(n),a=r===e.props?e:{...e,props:r},i=a.props,s=fN(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=ct(no("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,mt.Cards.headRows),n=e.props,r=jje(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:Se("Feature label"),href:_r(Q("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:Up("KeyFeatures")}}:{}}}};import{jsx as Jje}from"react/jsx-runtime";import{StickyIcon as Qje}from"efficient-easel/icons";import{group as $0e}from"efficient-easel/screen/lib/document/box-fields";var K0e={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Label"),count:Q("Count")},getItemSummary:e=>e?.label?`${e.label}${e.count?` \xB7 ${e.count}`:""}`:"Tab"},activeTab:nn(_r(Q("Active tab","All"))),_gLinks:$0e("Links"),links:{type:"array",label:"Right links",arrayFields:{label:Q("Label"),href:_r(Q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:$0e("Style"),sticky:oe("Stick to top",!0,Jje(Qje,{}))}};import{jsx as eqe}from"react/jsx-runtime";import{StylesIcon as tqe}from"efficient-easel/icons";import{group as V0e}from"efficient-easel/screen/lib/document/box-fields";var oqe=[...Xte],Y0e={fields:_i({_gContent:V0e("Content"),eyebrow:W("Chip label",Yb.eyebrow),title:j("Heading",Yb.title),body:j("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:Se("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:W("Caption","Illustrative example"),_gStyle:V0e("Style"),chartStyle:lo("Chart style",eqe(tqe,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:XC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:XC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:XC.donut}],"bars",{columns:3,cell:Pr}),valueSuffix:nn(W("Value suffix","%"))},oqe,Aa)};import{jsx as xqe}from"react/jsx-runtime";import{group as yqe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as at,Fragment as k9,jsxs as Ld}from"react/jsx-runtime";import{useId as nqe,useState as rqe}from"react";import{InspectorUpLevel as Bk}from"efficient-easel/chrome";import{useEasel as aqe}from"efficient-easel/easel";import{ListField as Z0e}from"efficient-easel/fields";import{SettingsField as J0e}from"efficient-easel/panel";import{ClockIcon as j0e,ContrastIcon as iqe,GlobeIcon as sqe,LinkIcon as lqe,LocationIcon as dqe,PhoneIcon as cqe,SquareIcon as pqe,TypeIcon as S9}from"efficient-easel/icons";import{useSectionOps as mqe}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as uqe}from"efficient-easel/draw";var T9=(e,t)=>t||e?Tse(e,t):m("Ungrouped");function fqe(e){let t=[];return e.forEach((o,n)=>{let r=Nu(o),a=t.find(i=>i.key===r);a||(a={key:r,name:String(o?.groupName??""),indices:[]},t.push(a)),a.indices.push(n)}),t}function v9({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 Q0e={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"},hqe={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},ebe={...hqe,color:"var(--status-danger-soft-ink)"};function xm({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=nqe();return at(J0e,{label:e,icon:r??at(S9,{}),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 gqe=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],bqe=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function q0e({label:e,icon:t,options:o,value:n,onChange:r}){return at(J0e,{label:e,icon:t,children:at("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:o.map(a=>{let i=n===a.value;return at("button",{type:"button","aria-pressed":i,onClick:()=>r(a.value),style:{flex:1,padding:"6px 8px",fontSize:12,borderRadius:6,cursor:"pointer",border:`1px solid ${i?"var(--sf-accent)":"var(--line-strong)"}`,background:i?"var(--sf-accent)":"transparent",color:i?"var(--sf-on-accent)":"inherit",fontWeight:i?500:400},children:m(a.label)},a.value)})})})}function X0e({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||Rn.mapTheme,a=Rn;return Ld(k9,{children:[!o&&at(v9,{children:m("Section")}),at(xm,{label:m("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),at(xm,{label:m("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),at(xm,{label:m("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:Ld(k9,{children:[at(v9,{children:m("City strip")}),at(xm,{label:m("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),at(xm,{label:m("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),at(q0e,{label:m("Shape"),icon:at(pqe,{}),options:bqe,value:j_(e.imageShape),onChange:i=>t({imageShape:i})}),at(v9,{children:m("Map & Theme")}),at(q0e,{label:m("Map theme"),icon:at(iqe,{}),options:gqe,value:r,onChange:i=>t({mapTheme:i})})]})]})}function wqe({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((u,g)=>Nu(u)===t?g:-1).filter(u=>u>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(Nu).filter(u=>u!==t)),[d,c]=rqe(t),p=u=>o(e.map(g=>Nu(g)===t?{...g,...u}:g)),f=()=>{let u=d;if(u!==t){if(l.has(u)){c(t);return}o(e.map(g=>Nu(g)===t?{...g,group:u}:g)),a(u)}};return Ld("div",{className:"sf-locations-view",children:[at(Bk,{inline:!0,name:m("Section"),onSelect:n,title:T9(t,s)}),at(xm,{label:m("Group heading"),value:d,placeholder:m("e.g. Americas"),onChange:c,onBlur:f,onKeyDown:u=>{u.key==="Enter"&&u.currentTarget.blur()}}),l.has(d)&&d!==t&&at("p",{className:"sf-note sf-note--error",role:"alert",children:m("Another group already uses this heading \u2014 pick a different one.")}),at(xm,{label:m("Group name"),value:s,placeholder:m("Shown beside the heading"),onChange:u=>p({groupName:u})}),at(Z0e,{label:m("Cities in this group"),noun:m("city"),items:i.map(u=>e[u]),onChange:u=>o(Ese(e,t,u)),newItem:()=>({...nH,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(u,g)=>Ld("button",{type:"button",style:Q0e,onClick:()=>r(i[g]),children:[at("span",{children:u?.name||m("City")}),at("span",{"aria-hidden":"true",children:"\u203A"})]})}),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:ebe,onClick:()=>{o(e.filter(u=>Nu(u)!==t)),n()},children:pr("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function tbe({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=Sse(),r=Tie(),a=fqe(o),{appState:i,selectedItem:s}=aqe(h=>h),l=mqe(),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(uqe,b,{type:s.type,props:{...s.props,...h}})},p=(h,b)=>t(o.map((w,x)=>x===h?{...w,...b}:w)),f=()=>{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 Ld("div",{className:"sf-locations-view",children:[at(Bk,{inline:!0,name:m("Locations"),onSelect:()=>gd({level:"groups"}),title:m("Texts")}),at(X0e,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let h=o[n.index];return h?Ld("div",{className:"sf-locations-view",children:[at(Bk,{inline:!0,name:String(h.name??"")||m("City"),onSelect:()=>gd({level:"city",index:n.index}),title:m("Image")}),at(Lre,{value:h.photo||"",onChange:b=>p(n.index,{photo:b}),label:"Image",accept:"image/*"})]}):u()}if(n.level==="map"){let h=o[n.index];return h?Ld("div",{className:"sf-locations-view",children:[at(Bk,{inline:!0,name:String(h.name??"")||m("City"),onSelect:()=>gd({level:"city",index:n.index}),title:m("Map")}),at(aR,{value:h.geocode,onChange:b=>p(n.index,{geocode:b}),label:"Coordinates"}),at(xm,{label:m("Directions link"),icon:at(lqe,{}),value:String(h.mapsUrl??""),onChange:b=>p(n.index,{mapsUrl:b})})]}):u()}if(n.level==="city"){let h=n.index,b=o[h];if(!b)return u();let w=Nu(b),x=(S,k)=>p(h,{[S]:k}),v=(S,k,y,E=!1)=>at(xm,{label:k,icon:y,textarea:E,value:String(b[S]??""),onChange:T=>x(S,T)});return Ld("div",{className:"sf-locations-view",children:[at(Bk,{inline:!0,name:T9(w,String(b.groupName??"")),onSelect:()=>gd({level:"group",key:w}),title:b.name||m("City")}),v("name",m("Location name"),at(S9,{})),v("state",m("State / Province"),at(S9,{})),v("country",m("Country"),at(sqe,{})),v("address",m("Address"),at(dqe,{}),!0),v("phone",m("Phone"),at(cqe,{})),v("hours",m("Opening hours"),at(j0e,{})),v("timezone",m("Timezone chip"),at(j0e,{})),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:ebe,onClick:()=>{t(o.filter((S,k)=>k!==h)),gd({level:"group",key:w})},children:m("Delete city")})})]})}if(n.level==="group")return a.some(h=>h.key===n.key)?at(wqe,{cards:o,groupKey:n.key,onChange:t,onBack:()=>gd({level:"groups"}),onOpenCity:h=>gd({level:"city",index:h}),onNavigate:h=>gd({level:"group",key:h})},n.key):u();function u(){return Ld("div",{className:"sf-locations-view",children:[at(X0e,{props:d,setSection:c}),!r&&at(k9,{children:g()})]})}function g(){return at(Z0e,{label:m("Locations"),noun:m("group"),items:a,onChange:h=>{let b=h.find(w=>!a.some(x=>x.key===w.key));t(Pse(o,h.map(w=>w.key),w=>[{...nH,group:w,groupName:""}])),b&&gd({level:"group",key:b.key})},newItem:()=>({key:f(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:a.length===0?at("div",{style:{fontSize:12,color:"var(--ink-faint)",padding:"4px 0"},children:m("No locations yet.")}):void 0,renderRow:h=>Ld("button",{type:"button",style:Q0e,onClick:()=>gd({level:"group",key:h.key}),children:[at("span",{style:{fontWeight:500},children:T9(h.key,h.name)}),Ld("span",{style:{color:"var(--ink-faint)"},children:[pr("{n} city","{n} cities",h.indices.length)," \u203A"]})]})})}return u()}var obe={fields:{_gOffices:yqe("Offices"),dataSource:oo("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>xqe(tbe,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!BC(o))return e;let n=await HC(o,i=>{let s=q_(i.region);return[String(i.address??"").replace(/\s*\n+\s*/g,", "),i.name,String(i.state??"").trim()||s.state,String(i.country??"").trim()||s.country].map(l=>String(l??"").trim()).filter(Boolean).join(", ")}),{[bP]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>no("ContactLocations",t,e.props)};import{jsx as nbe}from"react/jsx-runtime";import{ClockIcon as vqe,TagIcon as kqe}from"efficient-easel/icons";var Sqe=[...ooe],rbe={fields:_i({title:W("Heading",iB.title),zeroText:nn(W("At zero",iB.zeroText)),endsAt:Bae("Ends",nbe(vqe,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:oe("Unit labels",!0,nbe(kqe,{}))},Sqe,Aa)};import{jsx as Hk,jsxs as Tqe}from"react/jsx-runtime";import{Suspense as Eqe,lazy as Pqe,useState as _qe}from"react";import{Button as Cqe}from"efficient-shell/ui";import{CodeIcon as Rqe}from"efficient-shell/icons/efficient";import{SettingsField as Oqe}from"efficient-easel/panel";import{iconOf as Nqe}from"efficient-easel/screen/lib/document/box-fields";var Lqe=Pqe(()=>import("./chunks/CustomHtmlCodeWindow-4OS3BLNS.js"));function Aqe({value:e,onChange:t}){let[o,n]=_qe(!1);return Tqe(Oqe,{label:m("HTML"),icon:Nqe(Hk(Rqe,{})),children:[Hk(Cqe,{variant:"secondary",onClick:()=>n(!0),children:m("Edit code")}),o?Hk(Eqe,{fallback:null,children:Hk(Lqe,{open:!0,onClose:()=>n(!1),value:typeof e=="string"?e:"",onChange:t})}):null]})}var abe={fields:{html:{type:"custom",label:"HTML",render:({value:e,onChange:t})=>Hk(Aqe,{value:e,onChange:t})}}};import{jsx as E9}from"react/jsx-runtime";import{StylesIcon as Iqe,WeightIcon as Fqe,WidthIcon as Bqe}from"efficient-easel/icons";import{keptByRow as Hqe}from"efficient-easel/screen/lib/document/style-fields";var Dqe={any:[{field:"style",set:!1},{field:"style",is:Xh}]},Mqe={not:{field:"style",is:"none"}},ibe={fields:Ie({style:lo("Style",E9(Iqe,{}),iae.map(e=>({...e,picture:pae(e.value)})),Xh,{columns:3,cell:Pr}),spacing:Hqe("sectionPaddingTop"),thickness:le("Thickness",E9(Fqe,{}),1,8,1,1,a1),...hd(a1,"thickness"),lengthPct:le("Length",E9(Bqe,{}),10,100,1,100,i1),...hd(i1,"lengthPct")},[[["thickness"],Dqe],[["lengthPct"],Mqe]]),resolveFields:(e,{fields:t})=>{let o=jC[qC(e.props.spacing)],n=Yp({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return d1(t,n)}};import{jsx as _9}from"react/jsx-runtime";import{HashIcon as zqe,StickyIcon as Wqe,TargetIcon as Uqe}from"efficient-easel/icons";import{group as lbe,select as Gqe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Mx}from"efficient-easel/screen/lib/document/device-fields";var P9={title:"On this page"},sbe={label:"Contents",defaultProps:{title:P9.title,sticky:!0}};var dbe={fields:{title:Mx("desktop",W("Heading",P9.title)),_gList:Mx("desktop",lbe("List")),[fR]:Mx("desktop",Gqe("Number",_9(zqe,{}),Bte,Hte)),markCurrent:Mx("desktop",oe("Mark the current section",!1,_9(Uqe,{}),"The row of the section a reader is in stands out as they scroll.")),_gStick:Mx("desktop",lbe(U6)),sticky:Mx("desktop",oe(U6,!0,_9(Wqe,{})))}};import{group as $qe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as C9}from"efficient-easel/screen/lib/document/device-fields";var Dk={hint:"Search questions",noMatchText:"No question matches your search."},cbe={label:"List search",defaultProps:{hint:Dk.hint,noMatchText:Dk.noMatchText}};var pbe={fields:{_gContent:C9("desktop",$qe("Content")),hint:C9("desktop",nn(W("Hint",Dk.hint))),noMatchText:C9("desktop",nn(W("No match",Dk.noMatchText)))}};import{group as ube}from"efficient-easel/screen/lib/document/box-fields";var hN={toc:"On this page"},mbe={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var fbe={fields:{_gContent:ube("Contents"),tocTitle:W("Contents heading",hN.toc),_gSections:ube("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:Se("Contents label"),heading:Se("Title"),body:Je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as hbe}from"efficient-easel/screen/lib/document/box-fields";var gbe={fields:{_gContent:hbe("Content"),eyebrow:W("Eyebrow",xu.eyebrow),title:j("Heading",xu.title),deck:j("Deck / standfirst",xu.deck),_gMeta:hbe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:Se("Label"),value:Se("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var gN=[{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."}],bbe={label:"Document Detail Cards",defaultProps:{cards:[]}};var wbe={fields:{cards:iw({type:"array",label:"Cards",arrayFields:{label:Se("Label"),value:Se("Value"),desc:Je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},gN)}};import{jsx as Kqe}from"react/jsx-runtime";import{PageIcon as Vqe}from"efficient-easel/icons";import{group as Yqe}from"efficient-easel/screen/lib/document/box-fields";var zx={metaLabel:U.label,metaValue:U.value},xbe={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var ybe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Tab label"),href:qe("Links to"),current:oe("Current page",!1,Kqe(Vqe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:Yqe("Trailing note"),metaLabel:W("Note label",zx.metaLabel),metaValue:W("Note value",zx.metaValue)}};import{jsx as jqe}from"react/jsx-runtime";import{StylesIcon as qqe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as Xqe}from"efficient-easel/screen/lib/document/box-fields";var vbe={fields:{eyebrow:W("Eyebrow",U.eyebrow),...dl("align",{access:Xqe}),eyebrowLook:ne("Look",jqe(qqe,{}),ol,A_)}};import{jsx as Sbe}from"react/jsx-runtime";import{ChevronIcon as Zqe,LinkIcon as Jqe}from"efficient-easel/icons";import{group as O9}from"efficient-easel/screen/lib/document/box-fields";var xf={num:U.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},R9=Zn.FAQ,kbe={label:"Q&A",inline:!0,fields:R9,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var Tbe="faqOnTemplate",Qqe={not:{context:Tbe,is:!0}},eXe={[Tbe]:e=>fee("FAQ",e.props??{})},tXe=new Set([qJ,...XJ]);function oXe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||tXe.has(t))}var Ebe={fields:{_gContent:O9("Content"),num:W("Number",xf.num),title:j("Heading",xf.title),linkText:W("Button",xf.link),linkHref:qe("Link"),_gQuestions:O9("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:Se("Question"),answer:Je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:O9("Layout"),defaultOpen:oe("Open first answer",!0,Sbe(Zqe,{})),openFromLink:oe("Open from a link",!1,Sbe(Jqe,{}),"A link to a question opens its answer. Each question gets an anchor made from its words, after the section's Anchor."),...R9},resolveFields:(e,{fields:t})=>{let o=ct(t,e.props.headPlacement,mt.FAQ.headRows);return _i(o,oXe(o),Qqe)},showWhenFacts:eXe};import{jsx as Ki,Fragment as bN,jsxs as rXe}from"react/jsx-runtime";import{useContext as aXe}from"react";import{SettingsField as Rbe}from"efficient-easel/panel";import{FieldSelect as Obe}from"efficient-easel/fields";import{BlogPostIcon as Nbe}from"efficient-easel/icons";import{ScreenDocumentContext as iXe}from"efficient-easel/screen/components/ScreenDocumentContext";var Pbe=wx({fetch:async(e,t)=>await Ys().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:Dn});import{useEffect as _be,useRef as nXe,useState as N9}from"react";function Dg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Wx({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=N9(null),[s,l]=N9(!1),[d,c]=N9(!1),p=nXe(!0);return _be(()=>(p.current=!0,e().then(f=>{p.current&&i(f)}),()=>{p.current=!1}),[]),_be(()=>{if(!n?.slug||a===null)return;let f=t(a,n);if(!f)return;let u=o(f);Dg(u,n)&&r(u)},[a]),{rows:a,loading:a===null,refreshing:s,errored:d,refresh:()=>{n?.slug&&(l(!0),c(!1),e(!0).then(f=>{if(!p.current)return;i(f);let u=t(f,n);u&&r(o(u))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function Cbe(e,t){return{label:t?m("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function Ux({value:e,onChange:t}){let o=aXe(iXe);return o&&!o.capabilities.hasBlog?e?.slug?Ki(sXe,{value:e,onChange:t}):Ki(bN,{}):Ki(lXe,{value:e,onChange:t})}function sXe({value:e,onChange:t}){return Ki("div",{children:Ki(Rbe,{label:m("Blog post source"),icon:Ki(Nbe,{}),hint:Ki(bN,{children:m("Linked to a blog post. This editor has no blog to pick another from; choose \u201CNone (manual)\u201D to author the section yourself.")}),children:Ki(Obe,{value:e.slug,ariaLabel:m("Blog post source"),onChange:o=>o?void 0:t(null),options:[{label:m("None (manual)"),value:""},{label:e.title||e.slug,value:e.slug}]})})})}function lXe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Wx({load:Pbe,resolve:(f,u)=>f.find(g=>g.slug===u.slug),snapshot:O1,value:e,onChange:t}),s=f=>{if(!f){t(null);return}let u=(o??[]).find(g=>g.slug===f);u&&t(O1(u))},l=e?.slug&&!(o??[]).some(f=>f.slug===e.slug),d=a?"error":r?"loading":"idle",c=m("Storefront \u2192 Blog"),p=a?m("Couldn\u2019t reach {place}.",{place:c}):r?m("Syncing from {place}\u2026",{place:c}):m("Linked to \u201C{name}\u201D",{name:e?.title||e?.slug||""});return rXe("div",{children:[Ki(Rbe,{label:m("Blog post source"),icon:Ki(Nbe,{}),hint:e?.slug?void 0:Ki(bN,{children:m("Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.",{place:c})}),children:Ki(Obe,{value:e?.slug??"",ariaLabel:m("Blog post source"),onChange:s,readOnly:n,options:[{label:m("None (manual)"),value:""},...l?[Cbe({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(f=>({label:f.title,value:f.slug}))]})}),e?.slug?Ki(pl,{status:d,statusText:p,onRefresh:i,busy:r,hint:Ki(bN,{children:m("Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.")})}):null]})}import{group as dXe}from"efficient-easel/screen/lib/document/box-fields";var jr={badge:"Featured",imageDate:U.date,category:U.category,readLabel:"0 min read",date:U.date,title:"Add a *headline* for this story.",dek:"A short summary of the featured article \u2014 one or two sentences that draw the reader in.",ctaText:"Read the story",ctaHref:pc.href},Lbe={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var cXe=["image","imageDate","date","title","dek","ctaHref"],Abe={fields:_i({source:Vo(Ux),_nBound:tt(ml(eR),tR),image:rt("Cover image","image/*"),badge:W("Badge",jr.badge),imageDate:W("Image date",jr.imageDate),_gContent:dXe("Content"),category:W("Category",jr.category),readLabel:W("Read time",jr.readLabel),date:W("Date",jr.date),title:j("Heading",jr.title),dek:j("Dek",jr.dek),ctaText:W("Button",jr.ctaText),ctaHref:qe("Link")},cXe,lw)};import{jsx as wr}from"react/jsx-runtime";import{phoneKey as Lr,tabletKey as va}from"efficient-easel/draw";import{keptByRow as uZe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as Ibe}from"react/jsx-runtime";import{OpacityIcon as pXe,StylesIcon as mXe}from"efficient-easel/icons";function Gx(){return{darken:le("Darken",Ibe(pXe,{}),pd.min,pd.max,pd.step,pd.fallback,pd.unit),darkenStyle:ne("Darken style",Ibe(mXe,{}),L2,L2[0].value)}}var uXe={"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]"},fXe=`calc(${yJ} - ${O6}*2)`,Fbe=`var(${vJ},${O6})`,Dqt=`pointer-events-none absolute inset-y-0 left-[${Fbe}] right-[${Fbe}] z-[6] mx-auto max-w-[var(${kJ},${fXe.replace(/ /g,"_")})]`;function wN(e,t){return`pointer-events-auto absolute ${uXe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function Bbe(e){return a_.includes(e)?e:null}import{parseOption as L9}from"efficient-shell/format";var hXe=a_,A9="top-right",gXe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],I9=["cards","dots","numbers","bar","squares"],xN="cards",yN={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},vN=["tabs","largeTabs"],Hbe=!0;function kN(e){return L9(gXe,xN,e)}function Dbe(e){return L9(I9,xN,e)}function bXe(e){return L9(hXe,A9,e)}var Mbe={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 zbe(e,t){return wN(bXe(t),Mbe[kN(e)])}function Wbe(e){return`flex ${Mbe[kN(e)]}`}function Ube(e){return e.shown!==!1&&(e.count??0)>1}function wXe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function xXe(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 Gbe(e,t){let o=Array.from(t,wXe);return xXe(e,o)?e:o}import{deviceField as Ad}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as fZe,ClockIcon as hZe,CropIcon as Pwe,GapIcon as gZe,MediaLayoutStackedIcon as Bwe,LineBetweenIcon as bZe,LineSolidIcon as wZe,ListIcon as xZe,NumberedListIcon as _we,ShadowIcon as yZe,StylesIcon as Cwe,TableIcon as Rwe,TargetIcon as vZe,WrapIcon as Hwe}from"efficient-easel/icons";var zg=s_.map(e=>e.shape),B9=e=>e!==Js&&zg.includes(String(e??""))?e:null;function Mg(e){return B9(e)??(su(e)?Js:"auto")}function SN(e){let t=Mg(e);return t==="auto"?"":Fh(t)}function $be(e,t,o){return FJ({desktop:e,phone:F9(t)!==null?t:o,tablet:o})}var yXe={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)]"},vXe={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 kXe(e,t){let o=Mg(t);return o==="auto"&&B9(t)===null?null:o===Js?t===e?null:o:o===Mg(e)?null:o}var SXe={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 F9(e){let t=Mg(e);return t==="auto"&&B9(e)===null?null:t}function Kbe(e,t,o){let n=F9(o),r=kXe(e,F9(t)!==null?t:o);if(r===null&&n===null)return SN(e);let a=Mg(e);return[r===null?SN(e):a==="auto"?"":yXe[a],r===null?"":vXe[r],n===null?"":SXe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as Dwe,VIEW_KEY_ACCESS as Xc,group as Ug,phoneTwinFields as Zc}from"efficient-easel/screen/lib/document/box-fields";var TXe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},EXe=v2.map(e=>({value:e.value,picture:IC(TXe[e.value])}));function TN(e,t){return lo("Separator",e,EXe,t,{resolve:jX})}import{jsx as PXe}from"react/jsx-runtime";import{cloneElement as _Xe}from"react";import{PaddingXIcon as CXe}from"efficient-easel/icons";import{deviceField as RXe}from"efficient-easel/screen/lib/document/device-fields";function Vbe(){let e=ne(Rie,PXe(CXe,{}),$Q,KQ);return RXe("desktop",{...e,render:t=>{let o=e.render({...t,value:T_(t.value),onChange:n=>t.onChange(YQ(n))});return _Xe(o,{hint:m(VQ)})}})}import{newNodeId as H9}from"efficient-easel/draw";var Ybe=["First row","Second row","Third row"],OXe="Write the words for this row.",jbe=e=>({type:"Text",props:{...$e,id:H9("Text"),tag:"p",text:e}}),NXe=(e,t)=>({type:fe,props:{...Ue,id:H9(fe),...t?{startsOpen:!0}:{},rowTitle:[jbe(e)],content:[{type:"Text",props:{...Rt,id:H9("Text"),tag:"p",text:OXe}}]}}),LXe=e=>!Array.isArray(e)||e.length===0;function qbe(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:Ybe.map((r,a)=>NXe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==fe||!LXe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(Ybe[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[jbe(i)]}}});return o?{...e,content:n}:e}import{parseOption as AXe}from"efficient-shell/format";var Mk="rowStyle",IXe=["plain","numbered","chevron"],Xbe=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function Zbe(e){return AXe(IXe,"plain",e)}var EN="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",PN="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",_N="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",Jbe="border-t border-line",Qbe="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",ewe="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as FXe}from"efficient-easel/screen/lib/content/view-tiers";var CN=Zn.Flex,twe={label:"Box",fields:CN,phoneOrder:{prop:FXe("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 owe}from"react/jsx-runtime";import{isNode as BXe}from"efficient-easel/data";import{useEasel as HXe}from"efficient-easel/easel";import{PhoneOrderField as DXe}from"efficient-easel/fields";import{slotChildRowName as MXe}from"efficient-easel/draw";import{deviceField as zXe}from"efficient-easel/screen/lib/document/device-fields";function WXe(){try{let e=HXe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!BXe(a)||typeof t[a.type]?.render!="function"?!1:Tr(a.props?.id)!==void 0):[],r=n.map(a=>a.props.id);return{blocks:n,ids:r,labelOf:a=>t[a]?.label??a}}catch{return null}}function UXe({value:e,onChange:t,readOnly:o}){let n=WXe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return owe(DXe,{stored:"ids",value:e,ids:a,onChange:t,readOnly:o,noun:"block",hint:m("The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."),itemLabel:s=>MXe(r[s],i,Po,void 0,Zae)})}function nwe(){return zXe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>owe(UXe,{value:e,onChange:t,readOnly:o})})}import{jsx as Gk}from"react/jsx-runtime";import{SettingsDefaultReset as QXe,SettingsField as eZe}from"efficient-easel/panel";import{Segmented as tZe}from"efficient-shell/ui";import{SwapIcon as oZe}from"efficient-easel/icons";import{describedAs as nZe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as rZe}from"efficient-easel/screen/lib/document/device-fields";var zk="Mirror cards",Wk="off",D9=[{value:Wk,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],rwe={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function yf(e){return e==="even"||e==="odd"?e:null}function awe(e){return yf(e)??void 0}function Uk(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function Wg(e,t,o){return!t||e.direction!=="row"||o||eu("row",e.separator)||e.loop==="scroll"||e.line===!0||ps(e)||w6(e.columns)!==""||aZ(e.columnsTablet)!==""?!1:!(cs(e.share)===""&&fb(e.wrap)!=="")}function iwe(e,t){let o=yf(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var swe="view-wide:flex-row-reverse",GXe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},$Xe={left:"view-wide:text-right!",right:"view-wide:text-left!"},KXe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},VXe={start:"view-wide:items-end!",end:"view-wide:items-start!"},YXe={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!"},RN=(e,t)=>(typeof t=="string"?$s(e,t):void 0)??"";function M9(e,t,o){return e?[RN(GXe,t),RN($Xe,o)].filter(Boolean).join(" "):""}function lwe(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=JX(o,r,void 0).tablet;return[RN(KXe,o),a?YXe[a]:""].filter(Boolean).join(" ")}return t==="column"?RN(VXe,n):""}function z9(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||ps(e)?!1:w6(e.columns)===""}function ON(e,t){let o=yf(e.mirrorCards);return o&&z9(e,t)?{mirror:o}:null}import{isNodeList as hwe}from"efficient-easel/data";import{parseOption as dwe}from"efficient-shell/format";var jXe=["columns","rows-left","rows-right"],qXe=["half","third"],cwe=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],pwe=[{value:"half",label:"Half"},{value:"third",label:"One third"}],mwe=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function XXe(e){return dwe(jXe,"columns",e)}var ZXe={"rows-left":"even","rows-right":"odd"},JXe={half:"equal",third:"bigRight"};function NN(e){let t=XXe(e?.arrangement);if(t==="columns")return null;let o=dwe(qXe,"half",e?.imageWidth);return{mirror:ZXe[t],row:{share:JXe[o],phoneReverse:e?.phoneOrder==="words"}}}var uwe={ProcessSteps:{slot:"boxes",hand:NN}},fwe=(e,t,o)=>hwe(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function $x(e,t){let o=xC(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===fe&&fwe(o,Le,t)){let s=dd(e,o.props?.id)?.inCopy===!0;return ON(el(o.props??{},s),s)}let i=$s(uwe,a);if(i&&fwe(o,i.slot,t))return i.hand(o.props??{})}let n=MP(e,t),r=n&&typeof n.type=="string"?$s(uwe,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function gwe(e){let t=e?.[Le];return hwe(t)&&t.some(o=>o?.type===fe)}var bwe="mirrorCardsIdle",W9="mirrorCardsMirrors",wwe={[W9]:(e,t)=>{let o=dd(t.appState,e.props?.id);if(o===void 0)return;let n=el(e.props??{},o.inCopy),r=$x(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&Wg(a,!0,am(a).desktop)}return Wg(n,Uk(o),am(n).desktop)&&yf(n.mirrorCards)!==null},[bwe]:(e,t)=>{let o=dd(t.appState,e.props?.id);if(o===void 0)return;let n=el(e.props??{},o.inCopy);return $x(t.appState,e.props?.id)?!0:Wg(n,Uk(o),am(n).desktop)?!1:!(z9(n,o.inCopy)&&gwe(n))}};function aZe(e=!1){return D9.map(t=>({value:t.value,label:m(t.label),title:t.value===Wk?void 0:m(rwe[t.value]),disabled:e}))}function iZe({value:e,onChange:t,readOnly:o}){let n=yf(e)??Wk;return Gk(eZe,{label:m(zk),icon:Gk(oZe,{}),action:Gk(QXe,{words:ZP()?.panel,label:m(zk),changed:n!==Wk,detail:m("Off"),onReset:()=>t(void 0)}),children:Gk(tZe,{size:"sm",block:!0,label:m(zk),value:n,onChange:r=>t(awe(r)),options:aZe(o===!0)})})}function xwe(){return tt(rZe("desktop",{type:"custom",...nZe({},{type:"radio",label:zk,options:D9.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>Gk(iZe,{value:e,onChange:t,readOnly:o})}),{not:{context:bwe,is:!0}})}import{jsx as sZe}from"react/jsx-runtime";import{FilterIcon as lZe}from"efficient-easel/icons";import{deviceField as dZe}from"efficient-easel/screen/lib/document/device-fields";var kwe="showForUnoffered",Swe={[kwe]:e=>TC().length===0&&Q2(e.props?.[J2])===void 0},cZe="Show for",pZe="All";function mZe(e,t){if(!e)return;let o=TC().find(r=>r.slug===e);if(o)return{slug:o.slug,name:o.name};let n=Q2(t);return n?.slug===e?n:void 0}function Twe(){let e=ne(cZe,sZe(lZe,{}),[{label:pZe,value:""}],"");return tt(dZe("desktop",{...e,render:t=>e.render({...t,value:Q2(t.value)?.slug??"",onChange:o=>t.onChange(mZe(o,t.value))})}),{not:{context:kwe,is:!0}})}var ywe=new WeakMap;function Ewe(e,t){let o=e[J2];if(!o)return e;let n=TC(),r=Q2(t?.[J2]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=ywe.get(o);i||ywe.set(o,i=new Map);let s=`${Zne()}\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=vwe.get(e);d||vwe.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[J2]:l}),c}var vwe=new WeakMap;var Owe=MX,Nwe={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},kZe={field:"direction",is:"tabs"},SZe={field:"line",in:[!0,!1]},TZe={field:"anchor",set:!0},U9=["fixed","screen","fill"],EZe={not:{any:[{field:"sectionHeightMode",in:U9},{field:"sectionHeightModeTablet",in:U9},{field:"sectionHeightModePhone",in:U9}]}},PZe={context:"parent.line",is:!0},Gg={not:{field:"direction",is:"accordion"}},Lwe={field:"direction",is:"accordion"},Awe={any:[Gg,{not:{field:Mk,in:["numbered","chevron"]}},{field:"columns",in:[...iZ]},{field:"phoneRow",in:[...sZ]}]},Mwe="notAccordionRow",_Ze={not:{context:Mwe,is:!0}},CZe={[Mwe]:(e,t)=>t.parent?.props?.direction!=="accordion"},$9={field:"direction",is:"row",default:"row"},$g={not:dJ},Yg={all:[$9,$g,{not:{field:"separator",in:v2.map(e=>e.value)}},{not:{field:"line",is:!0}}]},RZe={field:"direction",is:"column"},zwe={all:[Yg,...["columns",va("columns")].map(e=>({not:{field:e,in:Array.from({length:RP},(t,o)=>o+CP)}}))]},OZe={all:[$g,{not:{all:[$9,{field:"separator",in:v2.map(e=>e.value)}]}}]},G9={not:{all:[Yg,{field:"columns",in:Array.from({length:RP},(e,t)=>t+CP)}]}},NZe="sharedColumnsFits",Wwe="sharedColumnsMisfit",Uwe="sharedColumnsDraws",Gwe="sharedColumnsPhoneDraws";function Vg(e,t){return el(e.props??{},dd(t.appState,e.props?.id)?.inCopy!==!1)}var LZe={[NZe]:(e,t)=>B5(Vg(e,t)),[Wwe]:(e,t)=>!B5(Vg(e,t)),[Uwe]:(e,t)=>am(Vg(e,t)).desktop,[Gwe]:(e,t)=>am(Vg(e,t)).phone};function Iwe(e){return{all:[{not:{context:Wwe,is:!0}},{any:[VB,{field:e,set:!0}]}]}}var Kg={not:{context:Uwe,is:!0}},Kx={not:{context:Gwe,is:!0}},$we="sharedRowsDraws",AZe={[$we]:(e,t)=>H5(Vg(e,t))&&$x(t.appState,e.props?.id)?.row===void 0},$k={not:{context:$we,is:!0}},IZe={any:[Kg,Kx]},K9=WX,FZe={not:{context:W9,is:!0}},Kwe="rowHanded",BZe={not:{context:Kwe,is:!0}},HZe={[Kwe]:(e,t)=>{let o=$x(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},Fwe={all:[Gg,K9,Kg,Kx,FZe]},DZe={field:"direction",is:"row"},MZe={field:"align",in:["start","center","end"]},zZe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function WZe(){let{darken:e,darkenStyle:t}=Gx();return{...Zc("darken",e,Xc),...Zc("darkenStyle",t,Xc)}}var Vwe={not:{all:[Yg,{field:va("columns"),in:Array.from({length:RP},(e,t)=>t+CP)}]}};function UZe(){let e=oe(Dwe,!1,wr(Hwe,{})),t=o=>{let n=b6(o);return n===void 0?void 0:n==="wrap"};return{...Yh(),render:o=>e.render({...o,value:t(o.value),follows:t(o.follows)??!1,onChange:n=>o.onChange(n===void 0?void 0:n?"wrap":"nowrap")})}}function GZe(){let e=oe(Dwe,!0,wr(Hwe,{})),t=o=>{let n=b6(o);return n===void 0?void 0:n==="wrap"};return{...Yh(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!lZ(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var Ywe={hint:fu},jwe={all:[K9,{any:[RZe,{all:[Yg,Vwe,{not:{all:[zwe,{field:va("share"),set:!0}]}}]}]}]},$Ze=tt(Ad("desktop",le("Narrows below",wr(Bwe,{}),zh.min,zh.max,zh.step,fu,{kind:"breakpoint"},{clear:Ywe,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),jwe);function KZe(e,t){let o=e;return!(Wh in o)||t.direction!=="column"?e:{...o,[Wh]:$Ze}}var qwe={fields:Ie({_gContent:Ug("Content"),rowTitle:CN.rowTitle,content:CN.content,_gCardDisplay:Ug("Display"),cardDisplay:iR("desktop"),cardDisplayTablet:iR("tablet"),cardDisplayPhone:iR("mobile"),showFor:Twe(),_gLayout:Ug("Layout"),direction:QC("Flex"),tabShape:lo("Tab shape",wr(Cwe,{}),vN.map(e=>({label:yN[e],value:e,picture:mae[e]})),"tabs",{columns:2,cell:Pr}),mirrorCards:xwe(),[Wh]:Ad("desktop",le("Stacks below",wr(Bwe,{}),zh.min,zh.max,zh.step,fu,{kind:"breakpoint"},{clear:Ywe,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[I2]:Vbe(),startsOpen:Ad("desktop",oe("Starts open",!1,wr(fZe,{}))),[Mk]:Ad("desktop",lo("Row style",wr(_we,{}),Xbe.map(e=>({...e,picture:e.value==="numbered"?wr(_we,{}):wr(xZe,{})})),"plain",{columns:2})),label:nn(Q("Tab name")),...di("Flex"),...Zc("justify",LC(),Xc),...Zc("align",AC(),Xc),...(()=>{let e=Zc("wrap",Yh(),Xc,{phoneRow:GZe()}),t=Zc("wrap",Yh(),Xc,{phoneRow:UZe()});return{wrap:t.wrap,[va("wrap")]:t[va("wrap")],[Lr("wrap")]:e[Lr("wrap")]}})(),[Lr("order")]:nwe(),...Zc("boxShape",yx("Box shape",wr(Pwe,{}),Pb(zg),"shape","auto"),Xc,{phoneRow:yx("Box shape",wr(Pwe,{}),Pb(zg),"shape","auto",{phoneRest:e=>Mg(e)})}),[vP]:Ad("desktop",pre(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:TN(wr(bZe,{size:18}),"none"),[zb]:Ad("desktop",lo("Card style",wr(Cwe,{}),qee.map(e=>({...e,picture:fae[e.value]})),"table",{columns:2,cell:Pr})),share:Ad("desktop",Oae()),[va("share")]:Aae(),[Lr("share")]:Lae(),[rm]:Ad("desktop",ne(ND,wr(Rwe,{}),[...Rme],U1)),[Lr(rm)]:Ad("mobile",ne(ND,wr(Rwe,{}),[...Ome],U1)),...Iae(),...Zc("blockSpacing",Nae(),Xc),line:oe("Line",!1,wr(wZe,{}),"A line across the blocks, with a dot on each."),upcoming:oe("Upcoming",!1,wr(hZe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:ne("Join",wr(gZe,{}),U_,W_),_gShadow:Ug("Shadow"),...Zc("shadow",oe("Shadow",!1,wr(yZe,{})),Xc),...Zc("fillColor",Dae(),Xc),[ua]:Yr("Fill content","colour"),[y_]:uZe("fillColor"),_gBackground:Ug("Background image"),bgImage:Ad("desktop",rt("Image","image/*")),bgImagePhone:Ad("mobile",rt("Image","image/*")),[cr]:Yr("Image content","image",{content:!0}),...WZe(),placement:fd("Content position"),_gLink:Ug("Link"),link:wf(qe("Link to")),[Xo]:qc(),_gJump:Ug("Anchor"),jumpHighlight:oe("Highlight when a link jumps here",!1,wr(vZe,{}),"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"],Owe],[[Lr("share")],{all:[Nwe,Kx]}],[[rm],Iwe(rm)],[[Lr(rm)],Iwe(Lr(rm))],[[Lr("wrap")],{all:[Nwe,$g,Kx,$k]}],[[Lr("order")],{all:[Yg,Kx,Kg]}],[["phoneRow"],Kx],[[Mk],{all:[Lwe,{not:{field:Mk,is:"chevron"}}]}],[["tabShape"],kZe],[["rowTitle","startsOpen"],_Ze],[["align","blockSpacing",va("blockSpacing"),Lr("blockSpacing")],Gg],[[va("justify"),Lr("justify")],{all:[$g,Fwe,$k]}],[[va("align"),Lr("align")],{all:[DZe,MZe,Fwe]}],[[va("wrap")],{all:[$g,G9,Vwe,Kg,Gg,$k]}],[[va("shadow"),Lr("shadow")],K9],[[va("darken"),Lr("darken"),va("darkenStyle"),Lr("darkenStyle")],{all:[Owe,zZe]}],[["separator"],$9],[[zb],{field:zb,set:!0}],[["columns"],{any:[Yg,Lwe]}],[[va("columns")],Yg],[[Wh],jwe],[[va("gap")],{all:[OZe,Awe]}],[["gap",Lr("gap")],Awe],[["justify"],{all:[$g,IZe,Gg,$k]}],[["wrap"],{all:[$g,G9,Kg,Gg,$k]}],[["share"],{all:[G9,Kg,Gg]}],[[va("share")],{all:[zwe,Kg]}],[["line"],SZe],[["upcoming"],PZe],[["jumpHighlight"],TZe],[["boxShape",va("boxShape"),Lr("boxShape")],EZe],[["direction","share",Lr("order")],BZe],[["join"],EB],[[I2],EB]]),resolveData:(e,t)=>{let o=e.props,n=o[zb];return t.changed?.[zb]===!0&&Xee(n)?{...e,props:Zee(o,n,fe,Le)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:qbe(o)}:e},resolveFields:(e,t)=>{let o=dd(t.appState,e.props?.id)?.inCopy===!0,n=o&&MP(t.appState,e.props?.id)===null;return KZe(jZe(qZe(Ewe(XZe(e,{...t,fields:Ya(t.fields,e,t)}),e.props),Vg(e,t),o),n),e.props)},showWhenFacts:{...Va,...Qae,...wwe,...HZe,...LZe,...AZe,...Swe,...CZe}},VZe=tt(qae,VB),YZe=["darken","darkenStyle",_h,Ch];function jZe(e,t){if(!t)return e;let o={...e};for(let n of YZe){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function qZe(e,t,o=!1){let n=e;return Ph in n&&ps(t)&&o?{...n,[Ph]:tt(Xae,Jae)}:!(Ph in n)||ps(t)?e:{...n,[Ph]:VZe}}function XZe(...[e,t]){let{fields:o}=t;{if(ps(Vg(e,t))){let n=Yp({fallback:{top:Ri.desktop,bottom:Ri.desktop,left:Ri.side,right:Ri.side},tablet:!0,siteSide:!0});return d1(o,n)}return e.props.padV2!==!0?d1(o,Yp({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as jg}from"react/jsx-runtime";import{ColumnsIcon as oxe,GridIcon as JZe,LayoutIcon as QZe,SlidePickerCardsIcon as eJe,WidthIcon as nxe}from"efficient-easel/icons";import{deviceField as BN}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as ZZe}from"efficient-shell/format";var V9=["grid","carousel"],Y9="grid",Xwe={grid:"Grid",carousel:"Carousel"};function Zwe(e){return ZZe(V9,Y9,e)}var LN=50,AN=80,IN=30,FN=90;function j9(e,t){let o=Cn(e);return o===void 0?t:Math.min(FN,Math.max(IN,o))}function Jwe(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 Qwe(e,t,o){return o<=0?0:((e+t)%o+o)%o}function exe(e,t){return!t||t.height<=0?null:Math.round(t.top-e.top+t.height/2)}var q9=Zn.Grid,txe={label:"Grid",fields:q9,defaultProps:{columns:"3",content:[]}};var tJe={grid:jg(JZe,{}),carousel:jg(eJe,{})},rxe={field:"layout",is:"carousel"},axe={fields:{layout:lo("Layout",jg(QZe,{}),V9.map(e=>({label:Xwe[e],value:e,picture:tJe[e]})),Y9),carouselTile:tt(BN("desktop",le("Tile width",jg(nxe,{}),IN,FN,1,LN,{kind:"size",base:"%"})),rxe),carouselTilePhone:tt(BN("mobile",le("Tile width",jg(nxe,{}),IN,FN,1,AN,{kind:"size",base:"%"})),rxe),columns:BN("desktop",le("Columns",jg(oxe,{}),1,UJ,1,$J)),mobileColumns:BN("mobile",le("Columns",jg(oxe,{}),z6,GJ,1,z6)),...di("Grid"),content:q9.content}};import{jsx as oJe}from"react/jsx-runtime";var ixe={fields:{text:j("Heading",U.heading),level:ne("Level",oJe(er,{noun:"heading"}),[{label:"H1",value:"1"},{label:"H2",value:"2"},{label:"H3",value:"3"},{label:"H4",value:"4"},{label:"H5",value:"5"},{label:"H6",value:"6"}],"2")}};import{jsx as vn}from"react/jsx-runtime";import{parseOption as nJe}from"efficient-shell/format";var X9="bottom-right",Z9=["outline","solid","square","bare"],J9="outline",sxe={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},lxe=!1,dxe=["prev","next"],cxe={prev:"Previous slide",next:"Next slide"};function rJe(e){return nJe(Z9,J9,e)}function aJe(e){return Bbe(e)??X9}var iJe="flex-row items-center gap-2";function pxe(e){return wN(aJe(e),iJe)}var sJe={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 mxe(e){return sJe[rJe(e)]}function uxe(e){return e.shown===!0&&(e.count??0)>1}function HN(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 Txe,EyeIcon as n7,HandIcon as cJe,ScrollMoveDownIcon as Exe,OpacityIcon as pJe,PhoneIcon as kxe,PlayIcon as mJe,SlideArrowsBareIcon as uJe,SlideArrowsRoundIcon as fJe,SlideArrowsSquareIcon as hJe,SlidePickerBarIcon as gJe,SlidePickerCardsIcon as bJe,SlidePickerDotsIcon as wJe,SlidePickerNumbersIcon as xJe,SlidePickerSquaresIcon as yJe,SquareIcon as Sxe,StylesIcon as vJe}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as kJe}from"efficient-shell/icons/efficient-looks";import{group as vf}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as r7,deviceNote as PJe}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as fxe}from"efficient-shell/format";var Q9=["manual","timer","scroll"],hxe={manual:"Hand",timer:"Timer",scroll:"Scroll"};function MN(e){return fxe(Q9,e.autoplay===!0?"timer":"manual",e.slideChange)}var e7=25,t7=10,o7=100;function gxe(e){let t=Cn(e);return t===void 0?e7:Math.min(o7,Math.max(t7,t))}var DN=.4;function bxe(e,t,o){if(o<=0||t<=0)return{from:0,to:0,t:0,shown:0};let n=Math.max(0,e/t),r=Math.min(o-1,Math.floor(n)),a=Math.min(o-1,r+1),i=a===r?0:Math.min(1,Math.max(0,(n-r-DN)/(1-DN))),s=Math.round(i*1e4)/1e4;return{from:r,to:a,t:s,shown:s>=.5?a:r}}function wxe(e,t){let o=t/100,n=i=>String(Math.round(i*o*1e4)/1e4),r=DN/2,a=[];for(let i=0;i+1<e;i++)a.push(n(i+r),n(i+DN),n(i+1),n(i+1+r));return a.join(" ")}var lJe=["wipe"],dJe="wipe";function xxe(e){return fxe(lJe,dJe,e)}var yxe=350,zN=8;var WN=Zn.Hero,vxe={label:"Hero",drawsPictures:!0,fields:WN,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var SJe=kJe,TJe={cards:vn(bJe,{}),dots:vn(wJe,{}),numbers:vn(xJe,{}),bar:vn(gJe,{}),squares:vn(yJe,{})},EJe={outline:vn(fJe,{}),solid:vn(SJe,{}),square:vn(hJe,{}),bare:vn(uJe,{})},_Je={manual:vn(cJe,{}),timer:vn(Txe,{}),scroll:vn(Exe,{})},CJe={any:[{field:"slideChange",is:"timer"},{all:[{field:"slideChange",set:!1},{field:"autoplay",is:!0}]}]},RJe={field:"slideChange",is:"scroll"},Pxe={fields:{_dDevice:PJe(),_gContent:vf("Content"),slides:WN.slides,strip:WN.strip,_gStyle:vf("Style"),alignment:dre(),_gTexture:vf("Texture"),showTexture:oe("Show texture",kne,vn(n7,{})),textureColor:lhe,textureOpacity:le("Texture opacity",vn(pJe,{}),0,100,1,40,"%"),textureShape:ne("Texture style",vn(vJe,{}),Tne,Sne),_gLayout:vf("Layout"),...vO(),...phe,_gAutoplay:vf("Auto-slide"),slideChange:fre("Change slides",vn(mJe,{}),Q9.map(e=>({label:hxe[e],value:e,picture:_Je[e]})),"manual"),autoplayInterval:tt(le("Still time per slide",vn(Txe,{}),2,15,1,6,"s"),CJe),scrollPerSlide:tt(le("Scroll per slide",vn(Exe,{}),t7,o7,1,e7,{kind:"height",base:"%"}),RJe),_gPicker:vf("Slide picker"),showPicker:oe("Show slide picker",Hbe,vn(n7,{})),pickerShape:lo("Slide picker shape",vn(Sxe,{}),I9.map(e=>({label:yN[e],value:e,picture:TJe[e]})),xN),pickerPlacement:fd("Slide picker placement",{fallback:A9}),_gArrows:vf("Arrows"),showArrows:oe("Show arrows",lxe,vn(n7,{})),arrowsShape:lo("Arrows shape",vn(Sxe,{}),Z9.map(e=>({label:sxe[e],value:e,picture:EJe[e]})),J9),arrowsPlacement:fd("Arrows placement",{fallback:X9}),_gPhone:r7("mobile",vf("On a phone")),phoneUpDown:r7("mobile",Oe(gne,vn(kxe,{}),yne(),fne)),phoneSideways:r7("mobile",Oe(bne,vn(kxe,{}),vne(),hne)),phoneWordsTop:nf.phoneWordsTop,phoneWordsBottom:nf.phoneWordsBottom,phoneBoxGap:nf.phoneBoxGap},resolveFields:(e,{fields:t})=>{let o=e.props??{},n=MN(o),r=t.slideChange;return!r||r.currentValue===n?t:{...t,slideChange:{...r,currentValue:n}}}};import{jsx as Cxe}from"react/jsx-runtime";import{WidthIcon as Rxe}from"efficient-easel/icons";import{BOX_NUDGE_ROW as Oxe,BOX_WIDTH_ROW as i7,group as s7}from"efficient-easel/screen/lib/document/box-fields";var a7={...Zn.HeroGroup,content:{...Zn.HeroGroup.content,allow:vX}},_xe={label:yX,inline:!0,fields:a7,defaultProps:{placement:_J,nudgeX:0,nudgeY:0,content:[]}};var Nxe={fields:Ie({_gContent:s7("Content"),name:nn(sw(_r(Q("Box name",U.boxName)))),content:a7.content,_gLayout:s7("Layout"),placement:fd("Placement",{pointsFor:kae}),width:le("Width",Cxe(Rxe,{}),A6,I6,5,CJ,i7),...hd(i7,"width"),direction:QC("HeroGroup"),...di("HeroGroup"),justify:LC(),align:AC(),wrap:Yh(),_gNudge:s7("Nudge"),...cre({keys:{x:"nudgeX",y:"nudgeY"},min:-L6,max:L6,label:null,length:Oxe}),...hd(Oxe,"nudgeX"),...Yp({tablet:!0,siteSide:!0})},[[["placement"],{context:"heroGroupDepth",is:0,default:0}]]),resolveFields:(e,{fields:t,appState:o})=>{let n=typeof e.props.id=="string"?e.props.id:"";if(i_(o?.data,n)===0)return t;let r={...t};return r.width=le("Width",Cxe(Rxe,{}),A6,I6,5,RJ,i7),r}};import{jsx as Axe}from"react/jsx-runtime";import{MediaIcon as NJe,OpacityIcon as LJe}from"efficient-easel/icons";import{group as Kk}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as AJe,deviceNote as IJe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as OJe}from"efficient-shell/format";var l7=Zn.HeroSingle,Lxe={label:"Hero Single",drawsPictures:!0,fields:l7,defaultProps:{mediaType:Fa.HeroSingle,[Ia.image]:OJe,tintColor:gs,tintOpacity:0,overlay:100,overlayColor:gs,overlayPosition:$h}};var d7=qb("video",Fa.HeroSingle),FJe=qb("image",Fa.HeroSingle),Ixe=[...TO,"tintColor","tintOpacity"],Fxe={fields:pC({_dDevice:IJe(),boxNotice:CO("HeroSingle"),boxes:l7.boxes,_gStyle:Kk("Style"),overlay:le("Overlay",Axe(LJe,{}),0,100,5,100,"%"),overlayColor:X8.overlayColor,overlayPosition:X8.overlayPosition,_gLayout:Kk("Layout"),...vO({tabletNumber:!1}),_gPhone:AJe("mobile",Kk("On a phone")),phoneWordsTop:nf.phoneWordsTop,phoneWordsBottom:nf.phoneWordsBottom,phoneBoxGap:nf.phoneBoxGap,_gMedia:Kk("Media"),mediaType:Oe("Type",Axe(NJe,{}),rR,Fa.HeroSingle),mediaLayout:Rg.mediaLayout,mediaLayoutPhone:Rg.mediaLayoutPhone,...kO,videoSource:Dc.videoSource,mediaVideo:rt($2,"video/*",K2),youtubeUrl:Dc.youtubeUrl,videoPlayback:Dc.videoPlayback,videoProgress:Dc.videoProgress,poster:rt("Video poster","image/*","Upload a poster still"),_gTint:Kk("Image tint"),tintColor:pk(),tintOpacity:ck(),...mk},{parts:{media:["mediaType",...SO,"videoSource","mediaVideo","youtubeUrl","videoPlayback","videoProgress","poster"],image:Ixe,image2:vx},onlyFor:{image:[...Ixe,"_gTint",...vx],video:["videoSource","videoPlayback","videoProgress","poster"]},rules:{mediaVideo:{all:[d7,{field:"videoSource",is:"upload",default:hs}]},youtubeUrl:{all:[d7,{field:"videoSource",is:"youtube",default:hs}]},videoProgress:PO(d7),...EO(FJe)},fallback:Fa.HeroSingle})};import{jsx as Vk}from"react/jsx-runtime";import{BlockVideoIcon as HJe,ClockIcon as DJe,ImageIcon as MJe,MediaIcon as zJe,PlayIcon as WJe}from"efficient-easel/icons";import{group as UN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Vx}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as BJe}from"efficient-shell/format";var c7=Zn.HeroSlide,Bxe={label:"Hero Slide",fields:c7,defaultProps:{mediaType:Fa.HeroSlide,videoSpeed:100,[Ia.image]:BJe,tintColor:gs,overlay:0}};var ym=qb("video",Fa.HeroSlide),UJe=qb("image",Fa.HeroSlide),Hxe=[...TO,"tintColor","overlay"],Dxe={fields:pC({_gContent:UN("Content"),name:nn(sw(Q("Slide name",U.slideName))),process:nn(W("Reel label","Label")),groupNotice:CO("HeroSlide"),groups:c7.groups,_gMedia:UN("Media"),mediaType:Oe("Type",Vk(zJe,{}),rR,Fa.HeroSlide),mediaLayout:Rg.mediaLayout,mediaLayoutPhone:Rg.mediaLayoutPhone,videoSource:Dc.videoSource,mediaVideo:Vx("desktop",rt($2,"video/*",K2,{frame:"videoFrame"})),mediaVideoPhone:Vx("mobile",rt($2,"video/*",K2,{frame:"videoFramePhone"})),videoFramePhone:qp(),mediaVideoAv1:Vx("desktop",rt(mB,"video/mp4",uB)),mediaVideoAv1Phone:Vx("mobile",rt(mB,"video/mp4",uB)),youtubeUrl:Dc.youtubeUrl,videoPlayback:Dc.videoPlayback,videoProgress:Dc.videoProgress,videoSpeed:le("Playback speed",Vk(WJe,{}),25,100,5,100,"%"),loadingShows:Mae("Show while loading",Vk(DJe,{}),{frame:Vk(HJe,{}),image:Vk(MJe,{})}),videoFrame:qp(),...kO,poster:Vx("desktop",rt("Image","image/*","Choose an image")),posterPhone:Vx("mobile",rt("Image","image/*","Choose an image")),_gTint:UN("Image tint"),tintColor:pk(),overlay:ck(),...mk,_gOverlay:UN("Overlay"),overlayColor:Z8.overlayColor,overlayPosition:Z8.overlayPosition},{parts:{media:["mediaType",...SO,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoProgress","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:Hxe,image2:vx},onlyFor:{image:[...Hxe,"_gTint",...vx],video:["videoSource","videoPlayback","videoProgress","loadingShows","videoFrame"]},fallback:Fa.HeroSlide,rules:{mediaVideo:{all:[ym,{field:"videoSource",is:"upload",default:hs}]},mediaVideoPhone:{all:[ym,{field:"videoSource",is:"upload",default:hs}]},mediaVideoAv1:{all:[ym,{field:"videoSource",is:"upload",default:hs}]},mediaVideoAv1Phone:{all:[ym,{field:"videoSource",is:"upload",default:hs}]},youtubeUrl:{all:[ym,{field:"videoSource",is:"youtube",default:hs}]},videoProgress:PO(ym),videoSpeed:{all:[ym,{field:"videoSource",is:"upload",default:hs},{field:"videoPlayback",is:"background",default:V2}]},...EO(UJe),poster:{all:[ym,hB]},posterPhone:{all:[ym,hB]}}})};import{jsx as p7}from"react/jsx-runtime";import{phoneKey as GJe}from"efficient-easel/draw";import{CropIcon as Mxe,ImageIcon as $Je}from"efficient-easel/icons";import{group as m7,phoneTwinFields as KJe}from"efficient-easel/screen/lib/document/box-fields";var zxe={fields:{_gImage:m7("Image"),src:rt("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>N2(t,e.fit,e.aspect,e[GJe("aspect")])}),alt:nn(Q("Alt text")),rowField:Yr("Shows","image"),[Xo]:qc(),...KJe("aspect",yx("Aspect ratio",p7(Mxe,{}),Pb(zg),"image","16/9",{more:[Zfe(mQ)]}),void 0,{phoneRow:yx("Aspect ratio",p7(Mxe,{}),Pb(zg),"image","16/9",{phoneRest:yQ})}),fit:ne(h_,p7($Je,{}),dQ(),"cover"),focal:qp(),focalTablet:qp(),focalPhone:qp(),href:wf(qe("Link")),_gStyle:m7("Style"),grayscale:kx(),...Gx(),_gShape:m7("Shape"),corners:$ae(),...Pae(wre,"corners"),cornerSides:_ae()},resolveFields:(e,t)=>jae(Ya(t.fields,e,t),e,t),showWhenFacts:Va};import{jsx as VJe}from"react/jsx-runtime";import{group as Wxe}from"efficient-easel/screen/lib/document/box-fields";var Uxe={fields:{_gContent:Wxe("Content"),eyebrow:W("Chip label","Integrations"),title:j("Heading",`Plays well with
13
+ `:""}`}),d]})]})}let g=v=>{!f||!Ihe(e,!1)||v.target===v.currentTarget&&p()},h=e.height==="full",b=e.fullWidth||h,w=TKe(e),x=uM("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% - ${fM}px)`:"100%",borderRadius:b?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[w.place!=="none"?Lg("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:-SKe,right:0}:{top:12,right:12},children:"\xD7"}):null,w.until?Lg("style",{children:`@container popup-frame (min-width: ${w.until+1}px){[data-popup-close-until="${w.until}"]{display:none}}`}):null,Lg("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return Lg("div",{role:a||r?"dialog":"region","aria-modal":f?!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:{...kKe[e.placement],background:Ahe(e.tintColor,e.tintOpacity),padding:b?0:w.place==="outside"&&e.placement.startsWith("top")?`${24+fM}px 24px 24px`:24,...w.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:x})}var PKe=25.4,gk=400,IO=152,_Ke=58,Fhe=IO*Math.cos(_Ke*Math.PI/180),CKe=14,RKe=gk/2,OKe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function Hhe(e){let t=kc(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:OKe}function Dhe(e){let t=e.rimDiameter*PKe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=IO*(e.sectionWidth/o),r=t/o;return{cy:RKe,rx:Fhe,ry:IO,cxf:gk/2-n/2-CKe,dx:n,rimRx:Fhe*r,rimRy:IO*r}}var ao=e=>e.toFixed(1);function FO(e,t,o,n=!1){let r=e.cxf+t*e.dx,[a,i]=n?[e.cy+e.ry,e.cy-e.ry]:[e.cy-e.ry,e.cy+e.ry];return`M${ao(r)} ${ao(a)} A${ao(e.rx)} ${ao(e.ry)} 0 0 ${o} ${ao(r)} ${ao(i)}`}function bM(e,t,o){let n=e.cxf+t*e.dx,r=e.cxf+o*e.dx,a=e.cy-e.ry,i=e.cy+e.ry;return`M${ao(n)} ${ao(a)} L${ao(r)} ${ao(a)} A${ao(e.rx)} ${ao(e.ry)} 0 0 1 ${ao(r)} ${ao(i)} L${ao(n)} ${ao(i)} A${ao(e.rx)} ${ao(e.ry)} 0 0 0 ${ao(n)} ${ao(a)} Z`}function AO(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 Mhe(e,t,o,n,r){let[a,i]=AO(e,t,n),[s,l]=AO(e,t,r),[d,c]=AO(e,o,r),[p,f]=AO(e,o,n);return`M${ao(a)} ${ao(i)} A${ao(e.rx)} ${ao(e.ry)} 0 0 1 ${ao(s)} ${ao(l)} L${ao(d)} ${ao(c)} A${ao(e.rx)} ${ao(e.ry)} 0 0 0 ${ao(p)} ${ao(f)} L${ao(a)} ${ao(i)} Z`}var Bhe=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],NKe={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}}]},LKe=[["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 zhe(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return Bhe;for(let[o,n]of LKe)if(t.includes(` ${o} `))return NKe[n];return Bhe}var BO="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as AKe}from"react";function Ka(e,t=/:/g){let o=AKe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as bk,jsx as jt,jsxs as Uc}from"react/jsx-runtime";var Ss={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},IKe=[.8,.52,.24],Whe=.4,Uhe=.88,Ghe=.3,$he=5,Khe=.3,Vhe=.84,FKe=7,bo=e=>Math.round(e*10)/10;function wM({size:e,type:t,className:o}){let n=Ka("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=Dhe(Hhe(e)),i=bM(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Uc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${gk} ${gk}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[jt("title",{children:s}),Uc("defs",{children:[jt(HKe,{id:r}),jt("clipPath",{id:r.crown,children:jt("path",{d:i})})]}),jt("ellipse",{cx:bo(a.cxf+a.dx/2),cy:bo(a.cy+a.ry-4),rx:bo(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),jt(DKe,{g:a,id:r}),jt(MKe,{g:a,id:r}),jt("path",{d:i,fill:`url(#${r.tread})`}),jt("g",{clipPath:`url(#${r.crown})`,children:zhe(t).map(l=>jt(BKe,{g:a,column:l},l.f[0]))}),jt("path",{d:FO(a,0,0,!0),stroke:"currentColor",strokeOpacity:Ss.shoulder,strokeWidth:1.2}),jt("path",{d:FO(a,1,1),stroke:"currentColor",strokeOpacity:Ss.silhouette,strokeWidth:1.4})]})}function BKe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Uc(bk,{children:[jt("path",{d:bM(e,o,n),fill:"currentColor",fillOpacity:Ss.rib}),jt("path",{d:FO(e,o,1),stroke:"currentColor",strokeOpacity:Ss.grooveWall,strokeWidth:1})]});let{count:r,gap:a,phase:i=0}=t.blocks,s=1/r,l=[];for(let d=-1;d<=r;d+=1){let c=Math.max((d+i+a/2)*s,0),p=Math.min((d+i+1-a/2)*s,1);p-c>s*.15&&l.push([c,p])}return jt(bk,{children:l.map(([d,c])=>jt("path",{d:Mhe(e,o,n,d,c),fill:"currentColor",fillOpacity:Ss.rib,stroke:"currentColor",strokeOpacity:Ss.grooveWall,strokeWidth:1},d))})}function HKe({id:e}){return Uc(bk,{children:[Uc("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),jt("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),jt("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),Uc("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),Uc("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),jt("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),Uc("radialGradient",{id:e.shadow,children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function DKe({g:e,id:t}){let o=e.rimRy/e.ry,n=a=>o+(1-o)*a,r=Math.max(6,(e.ry-e.rimRy)*.3);return Uc(bk,{children:[jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx),ry:bo(e.ry),fill:`url(#${t.wall})`}),IKe.map((a,i)=>{let s=n(a);return jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*s),ry:bo(e.ry*s),stroke:"currentColor",strokeOpacity:Ss.relief[i],strokeWidth:1},a)}),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*n(Whe)),ry:bo(e.ry*n(Whe)),stroke:"currentColor",strokeOpacity:Ss.lettering,strokeWidth:bo(r)})]})}function MKe({g:e,id:t}){let o=Array.from({length:$he},(n,r)=>{let a=(r*(360/$he)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*Khe*Math.cos(a),y1:e.cy+e.rimRy*Khe*Math.sin(a),x2:e.cxf+e.rimRx*Vhe*Math.cos(a),y2:e.cy+e.rimRy*Vhe*Math.sin(a)}});return Uc(bk,{children:[jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx),ry:bo(e.rimRy),fill:`url(#${t.rim})`}),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Uhe),ry:bo(e.rimRy*Uhe),fill:"currentColor",fillOpacity:Ss.dishFill,stroke:"currentColor",strokeOpacity:Ss.dishEdge,strokeWidth:1}),o.map((n,r)=>jt("line",{x1:bo(n.x1),y1:bo(n.y1),x2:bo(n.x2),y2:bo(n.y2),stroke:"currentColor",strokeOpacity:Ss.spoke,strokeWidth:FKe,strokeLinecap:"round"},r)),jt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Ghe),ry:bo(e.rimRy*Ghe),fill:"currentColor",fillOpacity:Ss.hubFill,stroke:"currentColor",strokeOpacity:Ss.hubEdge,strokeWidth:1})]})}import{jsx as xM}from"react/jsx-runtime";function fm({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return xM("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:xM(ro,{label:t||"Tyre",src:fs(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:xM(wM,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as wk}from"react/jsx-runtime";function zKe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function yM({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??sde;return wk("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:CR(e)?wk(fm,{image:o?.coverImage,size:e.size,type:zKe(o),sizes:"96px",className:"h-full w-full"}):a?.src?wk(nl,{src:a.src,alt:`${n?.name??e.slug} \u2014 ${a.name}`,width:120,height:120,sizes:"96px",className:"relative z-[2] block w-[88%] object-contain",style:{filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"}}):n||t.length===0?wk("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:wk(og,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as vM,jsxs as UKe}from"react/jsx-runtime";var Yhe={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function jhe(e,t){return Math.min(cH,Math.max(1,e+t))}var qhe="disabled:cursor-not-allowed disabled:opacity-40",WKe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${Yhe.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${qhe}`,value:`w-11 text-center font-mono ${Yhe.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 ${qhe}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function xk({value:e,onChange:t,size:o}){let n=WKe[o];return UKe("div",{className:n.frame,children:[vM("button",{type:"button",onClick:()=>t(jhe(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),vM("span",{className:n.value,children:e}),vM("button",{type:"button",onClick:()=>t(jhe(e,1)),disabled:e>=cH,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as Gc,jsx as Ye,jsxs as io}from"react/jsx-runtime";function Xhe({content:e,closeRef:t}){let{close:o,items:n}=Mn(),r=t;return io("header",{className:"flex flex-shrink-0 flex-col gap-4 border-b border-line px-8 pb-6 pt-8 max-[640px]:px-6 max-[640px]:pt-6 max-[640px]:pb-5",children:[io("div",{className:"flex items-center justify-between",children:[io("span",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?Ye("span",{className:"border px-2 py-1 text-[10px]",style:{background:"color-mix(in oklab, var(--accent) 12%, transparent)",borderColor:"color-mix(in oklab, var(--accent) 50%, transparent)"},children:e.kickerBadge}):null,(e.kickerBadge?"\xB7 ":"")+e.kickerText]}),Ye("button",{ref:r,type:"button",onClick:o,"aria-label":"Close cart",className:"flex h-8 w-8 items-center justify-center border border-line text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u2715"})]}),io("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",Ye("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),Ye("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:Wre(e,n.length)})]})}function Zhe({content:e}){let{totals:t}=Mn(),{activeCountry:o}=At(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ye(Gc,{children:io("div",{className:`grid flex-shrink-0 ${GKe[r-1]} gap-px border-b border-line bg-line`,children:[Ye(kM,{label:"Items",value:io(Gc,{children:[Ye("em",{className:"font-serif font-normal italic text-accent",children:t.sets})," set",t.sets===1?"":"s"," \xB7 ",t.units," item",t.units===1?"":"s"]})}),e.leadTimeValue?Ye(kM,{label:"Lead time",value:e.leadTimeValue}):null,n?Ye(kM,{label:"Ships to",value:n}):null]})})}function Jhe({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=Mn();return Ye(Gc,{children:o.length===0?Ye(jKe,{content:e}):o.map(a=>Ye($Ke,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function Qhe(){let{items:e,totals:t,bundles:o}=Mn(),{formatMoney:n}=At(),r=new Set(e.flatMap(s=>(s.components??[]).map(l=>l.partNumber))),a=new Set(t.appliedBundles.map(s=>s.slug)),i=o.filter(s=>!a.has(s.slug)).filter(s=>s.components.some(l=>r.has(l.partNumber))).slice(0,2);return Ye(Gc,{children:i.length>0&&io("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",style:{background:"color-mix(in oklab, var(--site-surface) 60%, transparent)"},children:[io("div",{className:"mb-4 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[Ye("span",{children:"You may also need"}),Ye("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),Ye("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:i.map(s=>Ye(KKe,{href:`/bundles/${s.slug}`,title:s.name,sub:VKe(s,t.currency,n)},s.slug))})]})})}function ege(){return Ye(Gc,{children:Ye("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ye(cde,{})})})}function tge({content:e}){return Ye(Gc,{children:e.promises.length>0&&Ye("div",{className:"flex flex-wrap justify-center gap-5 border-b border-line px-8 pt-6 pb-8 font-mono text-[9px] uppercase tracking-[0.24em] text-fg-dim max-[640px]:px-6",children:e.promises.map(t=>Ye(YKe,{children:t},t))})})}function oge(){let{totals:e,coupon:t}=Mn(),{formatMoney:o}=At();return Ye(Gc,{children:io("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ye(lf,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ye(lf,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:io("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),(e.discount>0||e.deliverySaving>0)&&t?.valid&&Ye(lf,{label:`Coupon \xB7 ${t.code}`,value:Ye("span",{style:{color:"var(--green)"},children:$le(e,n=>o(n,e.currency))})}),t?.deferred&&Ye(lf,{label:`Coupon \xB7 ${t.code}`,value:ule}),t?.valid&&t.effects?.gift&&Ye(lf,{label:`Free gift \xB7 ${t.effects.gift.partNumber}${t.effects.gift.quantity>1?` \xD7${t.effects.gift.quantity}`:""}`,value:Ye("span",{style:{color:"var(--green)"},children:tg})}),Ye(lf,{label:"Shipping",value:e.shippingStatus==="free"?Ye("span",{style:{color:"var(--green)"},children:tg}):Kle(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ye(lf,{label:e.tax.inclusive?`${e.tax.name} included \xB7 ${e.tax.rate}%`:e.tax.name,value:o(e.tax.amount,e.currency)}):e.tax.name?Ye(lf,{label:e.tax.name,value:Gle}):null),io("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[io("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",Ye("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),Ye("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:e.repricing?Fle:o(e.grand,e.currency)})]})]})})}function nge(){let{items:e,close:t}=Mn();return Ye(Gc,{children:io("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[io(He,{href:"/checkout",onClick:t,"aria-disabled":e.length===0,className:["group flex items-center justify-between border px-5 py-5 font-mono text-[12px] uppercase tracking-[0.3em] transition-colors",e.length===0?"pointer-events-none cursor-not-allowed border-line bg-surface text-fg-dim":"border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg"].join(" "),children:["Begin checkout",Ye("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),Ye("div",{className:"flex items-center justify-between px-1 py-2 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:Ye(He,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var GKe=["grid-cols-1","grid-cols-2","grid-cols-3"];function kM({label:e,value:t}){return io("div",{className:"flex flex-col gap-1 bg-bg px-4 py-4",children:[Ye("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),Ye("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function $Ke({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=Mn(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=At();return io(Gc,{children:[io("article",{className:"grid grid-cols-[96px_1fr] gap-5 border-b border-line px-8 py-6 transition-colors hover:bg-[color-mix(in_oklab,var(--site-surface)_60%,transparent)] max-[640px]:grid-cols-[78px_1fr] max-[640px]:px-6 max-[640px]:py-5",children:[Ye(yM,{line:e,catalog:r,tyre:t}),io("div",{className:"flex min-w-0 flex-col gap-2",children:[io("div",{className:"flex items-start justify-between gap-3",children:[io("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:[io("span",{"data-cart-line-no":"",children:["N\xB0 ",e.positionNo," \xB7 "]}),e.process==="FusionForge\xAE"?io(Gc,{children:["FusionForge",Ye($_,{})]}):e.process]}),Ye("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:pH(e,s)===null?Au:l(pH(e,s),s)})]}),io("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,Ye("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&io("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.config.map(d=>Ye("span",{className:["border px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em]",d.gold?"border-[color-mix(in_oklab,var(--accent)_45%,var(--site-line))] text-accent":"border-line text-fg-dim"].join(" "),children:d.label},d.label)),i>0&&io("span",{className:"border border-accent bg-accent px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em] text-bg",children:[i,"\xD7 free"]})]}),io("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ye(xk,{value:e.qty,onChange:n,size:"small"}),io("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[Ye(He,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),Ye("button",{type:"button",onClick:o,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&io("div",{className:"mx-8 -mt-px flex items-start gap-3 border-t-0 px-4 py-4 font-display text-[13px] leading-[1.45] text-fg max-[640px]:mx-6",style:{background:"color-mix(in oklab, var(--accent) 8%, transparent)",border:"1px solid color-mix(in oklab, var(--accent) 35%, var(--site-line))",borderTop:"0"},children:[Ye("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),io("span",{children:["Verified for your ",Ye("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function KKe({title:e,sub:t,href:o}){return io(He,{href:o,className:"flex items-center justify-between border border-line bg-bg px-4 py-3 text-left transition-colors hover:border-accent",children:[io("span",{className:"flex min-w-0 flex-col gap-1",children:[Ye("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),Ye("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),Ye("span",{className:"ml-2 flex h-6 w-6 flex-shrink-0 items-center justify-center font-mono text-[13px] text-accent",style:{borderColor:"color-mix(in oklab, var(--accent) 45%, var(--site-line))",borderWidth:1,borderStyle:"solid"},children:"+"})]})}function VKe(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 YKe({children:e}){return Ye("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function lf({label:e,value:t}){return io("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[Ye("span",{children:e}),Ye("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function jKe({content:e}){return io("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[Ye("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),Ye("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),io(He,{href:"/wheels",className:"mt-3 inline-flex items-center gap-3 border border-line px-5 py-3 font-mono text-[11px] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:["Browse the catalog ",Ye("span",{className:"text-accent",children:"\u2192"})]})]})}import{jsx as df,jsxs as rge}from"react/jsx-runtime";var ZKe=Cu(void 0),JKe="Your cart";function yk({content:e=UC,look:t=ZKe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=Mn(),s=XKe(null),l=Lhe(a.filter(CR).map(d=>d.slug));return qKe(()=>{i(t.autoOpen)},[t.autoOpen,i]),rge($i,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:JKe,children:[df(Xhe,{content:e,closeRef:s}),df(Zhe,{content:e}),rge("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[df(Jhe,{content:e,tyres:l}),df(Qhe,{}),df(ege,{}),df(tge,{content:e})]}),df(oge,{}),df(nge,{})]})}import QKe from"efficient-easel/screen/components/UiIcon";import{Fragment as tVe,jsx as Ag,jsxs as HO}from"react/jsx-runtime";var eVe=qw(()=>import("./chunks/EditorPreviewCheckout-RF2M6FBA.js"),{ssr:!1});function SM(){let{chromePlaceholder:e,themeFromDocument:t}=tr(),{surface:o}=xie();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?HO(tVe,{children:[Ag(eVe,{}),Ag(age,{surface:o})]}):Ag(Fu,{children:HO(Aw,{preview:!0,children:[Ag(yk,{}),Ag(age,{surface:o})]})})}function age({surface:e}){let{label:t,href:o}=Wfe(e);return HO("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:[Ag("span",{style:{whiteSpace:"nowrap"},children:m("{name} \xB7 preview only",{name:m(t)})}),HO("a",{className:"rounded-(--radius-control) px-3 py-1",href:o,target:"_blank",rel:"noopener noreferrer",style:{pointerEvents:"auto",flex:"none",display:"inline-flex",alignItems:"center",gap:5,color:"#fff",background:"#2563eb",textDecoration:"none"},children:[m("Open live"),Ag(QKe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as oVe,CursorClickIcon as nVe,EyeIcon as rVe,FullWidthIcon as aVe,HeightIcon as iVe,OpacityIcon as lge,PlacementIcon as sVe,WidthIcon as lVe}from"efficient-easel/icons";import{group as Tx}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as dVe}from"efficient-easel/screen/lib/document/device-fields";import{jsx as hm}from"react/jsx-runtime";var cVe={label:"Inside",value:"inside"},pVe={label:"None",value:"none"};function TM(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,dVe("desktop",o)]))}function ige(e,t){return{_gDesign:Tx("Color"),tintColor:Da("Tint color",e),tintOpacity:le("Tint opacity",hm(lge,{}),o1.min,o1.max,5,t,"%")}}function sge(e,t){return{_gBehavior:Tx("Behavior"),outsideClick:oe("Outside click",e,hm(nVe,{})),...t}}var mVe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function EM(e){return le("Width",hm(lVe,{}),DB.min,DB.max,4,e,"px")}function dge(e){if(e===_u){let o=Cu(void 0);return TM({_gSize:Tx("Width"),width:EM(o.width),_gPosition:Tx("Placement"),placement:ne("Placement",hm(sVe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...ige(o.tintColor,o.tintOpacity),...sge(o.outsideClick,{autoOpen:oe("Auto open",o.autoOpen,hm(rVe,{}))})})}let t=Pu;return Ie(TM({_gSize:Tx("Width"),width:EM(t.width),height:ne("Height",hm(iVe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:Tx("Placement"),placement:fd("Placement",{fallback:t.placement}),fullWidth:oe("Full width",t.fullWidth,hm(aVe,{})),...ige(t.tintColor,t.tintOpacity),...sge(t.outsideClick,{closeButton:ne("Close button",hm(oVe,{}),[cVe,{label:"Outside",value:"outside"},pVe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],mVe])}function cge(e,t){return TM({menuPanelWidth:EM(e),menuPanelTintColor:Da("Tint color",Pu.tintColor),menuPanelTintOpacity:le("Tint opacity",hm(lge,{}),o1.min,o1.max,5,t,"%")})}import{PictureTiles as uVe}from"efficient-shell/ui";import{SettingsField as fVe}from"efficient-easel/panel";import{GridIcon as hVe}from"efficient-easel/icons";import{jsx as Ig}from"react/jsx-runtime";function gVe({layout:e}){return Ig("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?Ig("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):Ig("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var pge={type:"custom",render:({value:e,onChange:t})=>{let o=GC({layout:e}).layout,n=MB.find(r=>r.value===o);return Ig(fVe,{label:m(zB),icon:Ig(hVe,{}),value:n?m(n.label):void 0,children:Ig(uVe,{className:"sf-gallery-layouts",label:m(zB),value:o,onChange:t,options:MB.map(r=>({value:r.value,label:m(r.label),picture:Ig(gVe,{layout:r.value})}))})})}};import{CategoryIcon as d5t,CheckIcon as c5t,ClockIcon as uq,ColumnsIcon as p5t,DirectionIcon as m5t,EyeIcon as u5t,ListIcon as f5t,PageIcon as h5t,PlacementIcon as g5t,ScrollPointIcon as b5t,TabsIcon as w5t,TriggerIcon as x5t,CaseIcon as y5t}from"efficient-easel/icons";import{deviceField as yDe}from"efficient-easel/screen/lib/document/device-fields";import{group as td,phoneTwinFields as v5t}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as bVe}from"efficient-easel/screen/lib/document/box-fields";function Ex(e){let t=bVe(e);return{...t,render:o=>t.render({...o,value:Qm(o.value)??o.value})}}import{useContext as xVe,useEffect as uge,useRef as MO,useState as zO}from"react";import{Button as WO}from"efficient-shell/ui";import{ScreenDocumentContext as yVe}from"efficient-easel/screen/components/ScreenDocumentContext";var vk=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},DO=null,PM=null,_M=null;function wVe(){DO=null,PM=null,_M=null}function mge(e=!1){let t=fa(),o=Dn();return(e||!DO||PM===null&&t!==null||_M!==o)&&(PM=t,_M=o,DO=(t?Ne.listForms(t,{siteId:o}):Promise.reject(new vk)).catch(n=>{throw wVe(),n instanceof vk?n:new vk(n)})),DO}import{useEaselHost as vVe}from"efficient-easel/screen/lib/host";import{InertHint as CM}from"efficient-easel/panel";import{jsx as gr,jsxs as $c}from"react/jsx-runtime";var fge="__create-a-new-form__";function kVe({value:e,forms:t,loadFailed:o,emptyLabel:n}){let r=t??[],a=e?r.some(p=>p.slug===e):!0,i=t===null&&!o,s={value:"",label:i?m("Loading\u2026"):o?m("Forms couldn\u2019t be loaded"):n===void 0?m("No form yet"):m(n)},l=e&&!a?[{value:e,label:i||o?e:m("{slug} \u2014 no form with this name",{slug:e})}]:[],d=r.map(p=>({value:p.slug,label:p.is_active?p.title:m("{title} (switched off)",{title:p.title})})),c=i?[]:[{value:fge,label:m("Create a new form")}];return[s,...l,...d,...c]}function SVe(e){return e===fge?{action:"create"}:{action:"store",slug:e}}function TVe({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 EVe(e){let t=[m("Goes to {place}",{place:m("Storefront \u2192 Forms")})],o=(e.notify_email??"").trim();return o&&t.push(m("Emails a copy to {email}",{email:o})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?m("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):m("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?m("Creates a wholesale account"):m("Creates a retail account")),t}function RM({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=vVe(),a=xVe(yVe),i=a?a.capabilities.hasForms:!0,[s,l]=zO(null),[d,c]=zO(!1),[p,f]=zO(!1),[u,g]=zO(!1),h=MO(!0),b=MO(e);b.current=e;let w=MO(t);w.current=t;let x=MO(null),v=(P=!1)=>mge(P).then(I=>{if(h.current){l(I),c(!1);let F=TVe({value:b.current,pickedId:x.current,forms:I});F&&w.current(F)}return I},()=>(h.current&&c(!0),[]));uge(()=>(h.current=!0,i&&v(),()=>{h.current=!1}),[i]),uge(()=>i?qR(()=>{v(!0)}):void 0,[i]);let k=e?(s??[]).find(P=>P.slug===e)??null:null;k?x.current=k.id:e||(x.current=null);let y=!!e&&!k&&s!==null&&!d,E=kVe({value:e,forms:s,loadFailed:d,emptyLabel:n}),T=async()=>{f(!0),g(!1);try{let P=await Rde(r,{mode:"create"}),I=await v(!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)||v(!0)}finally{h.current&&f(!1)}},_=P=>{let I=SVe(P);I.action==="create"?T():(g(!1),t(I.slug))};return i?$c("div",{className:"sf-formpicker",children:[gr(rw,{label:o,options:E,fallback:"",value:e??"",onChange:_,placeholder:m("Search forms\u2026")}),u&&gr("p",{className:"sf-formsummary-warn",children:m("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),k?$c("div",{className:"sf-blogsource sf-formsummary",children:[$c("div",{children:[gr("div",{className:"sf-formsummary-caption",children:pr("{n} field","{n} fields",k.fields.length)}),k.fields.length?gr("ol",{className:"sf-formsummary-fields",children:k.fields.map((P,I)=>gr("li",{children:P.label},P.key||`${P.label}-${I}`))}):gr(CM,{children:m("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),$c("div",{children:[gr("div",{className:"sf-formsummary-caption",children:m("Where the answers go")}),gr("ul",{className:"sf-formsummary-fields",children:EVe(k).map(P=>gr("li",{children:P},P))})]}),!k.is_active&&gr("p",{className:"sf-formsummary-warn",children:m("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:m("Storefront \u2192 Forms")})}),$c("div",{className:"sf-formsummary-actions",children:[gr(WO,{variant:"secondary",size:"md",onClick:()=>Cde(r,k.id),children:m("Edit form \u270E")}),gr(WO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:m("New form +")})]}),gr("p",{className:"es-field-hint",children:m("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:m("Storefront \u2192 Forms")})})]}):$c("div",{className:"sf-blogsource sf-formsummary",children:[d?$c(CM,{children:[m("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${m("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):y&&gr("p",{className:"sf-formsummary-warn",children:m("This section points at \u201C{slug}\u201D, and this website has no form with that name. Pick one from the list above, or leave it \u2014 nothing has been changed.",{slug:e??""})}),$c("div",{className:"sf-formsummary-actions",children:[d&&gr(WO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{v(!0)},children:m("Try again")}),gr(WO,{variant:"secondary",size:"md",disabled:p,onClick:()=>{T()},children:m("New form +")})]}),!d&&gr("p",{className:"es-field-hint",children:m("Pick a form to show here, or build a new one. Forms are made once in {place} and can be shown on any number of pages.",{place:m("Storefront \u2192 Forms")})})]})]}):gr("div",{className:"sf-formpicker",children:gr("div",{className:"sf-blogsource sf-formsummary",children:$c("div",{children:[gr("div",{className:"sf-formsummary-caption",children:m(o)}),$c(CM,{children:[m("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${m("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as PVe}from"react/jsx-runtime";function Kc(e,t){return{type:"custom",render:({value:o,onChange:n})=>PVe(RM,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{createContext as _Ve,useContext as CVe}from"react";import{jsx as Vc,jsxs as OM}from"react/jsx-runtime";function NM(e){return fc(e)??void 0}var LM=_Ve({}),hge=3;function AM({tag:e,name:t,desc:o,href:n,imageSrc:r,imageLabel:a,price:i}){let s=be(),{showPrice:l,cardStyle:d,partStyles:c,editing:p,ownerId:f,Template:u}=CVe(LM),g=d==="bordered"?" border border-line":d==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",h=NM(r),b=Bn();if(u){let v={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:h??"",tag:e??"",href:n||"#"};return b.scope(Vc("div",{className:Jt(`block w-full min-w-0 ${Tb}${s?` ${iu}`:""}`,b.className),...b.attrs,children:Vc(Ke,{ownerId:f??"Collections",ownerType:"Collections",Template:u,rows:[v],fallback:null,children:S=>S})}))}let w=v=>p?{[wb]:v}:{},x=v=>NP(c?.[ld(v)]?.role,Qh[v],yP);return b.scope(OM(He,{href:n||"#",className:Jt(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${g}`,b.className),...b.attrs,children:[Vc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${fme}`,children:Vc(ro,{label:a||"collection.jpg",src:h})}),Vc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${bme} max-view-wide:hidden`,style:{transition:"none"}}),OM("div",{className:"absolute inset-x-8 bottom-8 z-[2] flex flex-col gap-3 text-overlay-fg max-view-wide:relative max-view-wide:inset-auto max-view-wide:p-6 max-view-wide:gap-3 max-view-wide:text-fg",children:[e&&Vc("span",{...w("tag"),style:x("tag"),className:`font-mono ${Xp.tag} uppercase tracking-[0.25em] opacity-70`,children:N(e)}),t&&Vc("h3",{...w("name"),style:x("name"),className:`font-heading2 ${Xp.name} font-medium leading-none tracking-[-0.03em] ${Xp.namePhone}`,children:typeof t=="string"?re(t,!1):t}),o&&Dt(o).map((v,S)=>Vc("p",{...w("body"),style:x("body"),className:`max-w-[420px] ${Xp.body} leading-[1.5] opacity-80`,children:N(v)},S)),l&&i&&Vc("span",{...w("price"),style:x("price"),className:`font-mono ${Xp.price} tracking-[0.05em] text-accent`,children:N(i)}),OM("span",{...w("link"),style:x("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${Xp.link} uppercase tracking-[0.2em]`,children:["Explore",Vc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as Pge,useCallback as qVe,useContext as Ege,useEffect as _ge,useRef as XVe,useState as MM}from"react";import{slugify as ZVe}from"efficient-shell/format";import{useState as LVe}from"react";import{jsx as IM,Fragment as RVe}from"react/jsx-runtime";function Tl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=Ste(e),a=Tte(e),i=t?a:r,s=kte(i);return o&&!i?IM("span",{[mu]:e,children:n}):i?IM("span",{ref:s,[see]:i.stamp,...i.textStyle?{[lee]:i.textStyle}:{},children:n}):IM(RVe,{children:n})}var gge="mosaic",OVe=260,NVe=150;function bge(e){let t=`.${e}.sf-gallery-zone`;return`${t}{grid-auto-rows:${OVe}px}@media (max-width:${_b}px){${t}{grid-auto-rows:${NVe}px}}`}function wge(e){return e>1?`${e} photos`:""}import{jsx as nr,jsxs as cf}from"react/jsx-runtime";var AVe="(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",FM=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function BM({build:e,hiddenMobile:t,alwaysShowOverlay:o,forceHover:n,index:r,total:a,ratio:i,captionPlace:s,display:l,displayPhone:d,styleOwner:c,editing:p=!1,setCount:f,sizes:u}){let g=k=>Sre(l,d,k),h=k=>p&&c?{[nee]:c,[ree]:`@${k}`}:{},b=(k,y)=>!p&&c?nr(Tl,{kind:`@${k}`,shared:!0,children:y}):y,[w,x]=LVe(!1);if(f!=null)return nr(IVe,{build:e,count:f,ratio:i,sizes:u,shown:g,keptAttrs:h,kept:b});let v=BJ(s),S=cf("div",{className:["sf-card group relative overflow-hidden bg-surface-2",Fh(i),t?"max-view-wide:hidden":""].join(" "),children:[cf("div",{className:["absolute inset-0 z-[1] flex items-center justify-center transition-[transform,filter,opacity] duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",n?"scale-[1.06] opacity-0 [filter:brightness(0.5)]":"group-hover:scale-[1.06] group-hover:opacity-0 group-hover:[filter:brightness(0.5)]"].join(" "),children:[nr(ro,{label:e.imageLabel,src:e.imageSrc,...u?{sizes:u}:{}}),!o&&nr("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),nr("div",{className:["absolute inset-0 z-[1] flex items-center justify-center transition-[transform,filter,opacity] duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",n?"opacity-100 scale-[1.06] [filter:brightness(0.5)]":"opacity-0 group-hover:scale-[1.06] group-hover:opacity-100 group-hover:[filter:brightness(0.5)]"].join(" "),style:{background:"var(--site-surface)"},children:e.detailSrc&&nr(nl,{src:e.detailSrc,alt:"",fill:!0,sizes:u??AVe,loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:w?"none":"block"},onError:()=>x(!0)})}),(e.process||r!=null&&a!=null)&&cf("div",{className:"pointer-events-none absolute top-3 left-3 right-3 z-[3] flex items-baseline gap-2 max-view-wide:top-2.5 max-view-wide:left-2.5 max-view-wide:right-2.5",children:[e.process&&nr("span",{...h("tag"),className:["min-w-0 truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent",g("tag"),"transition-opacity duration-300 ease-out",o||n?"opacity-100":"opacity-0 group-hover:opacity-100 max-view-wide:opacity-100"].join(" "),children:b("tag",ko(e.process))}),r!=null&&a!=null&&nr("span",{...h("number"),className:`ml-auto shrink-0 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] ${g("number")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:b("number",FM(r,a))})]}),nr("div",{className:["absolute inset-0 z-[2]","transition-[opacity,transform] duration-300 ease-out",o||n?"opacity-100 translate-y-0":"opacity-0 translate-y-2 group-hover:opacity-100 group-hover:translate-y-0 max-view-wide:opacity-100 max-view-wide:translate-y-0"].join(" "),style:{color:"var(--overlay-fg)",background:o?"linear-gradient(180deg, rgba(10,10,10,.55) 0%, transparent 35%, transparent 55%, rgba(10,10,10,.92) 100%)":"linear-gradient(180deg, transparent 40%, rgba(10,10,10,.85) 100%)"},children:cf("div",{className:"absolute inset-x-0 bottom-0 top-9 flex flex-col justify-end gap-1 overflow-hidden p-6 max-view-wide:top-8 max-view-wide:p-3.5",children:[e.car&&nr("div",{...h("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] ${g("eyebrow")}`.trim(),children:b("eyebrow",e.car)}),e.wheel&&nr("div",{...h("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 ":""}${g("title")}`.trim(),children:b("title",e.wheel)}),e.finish&&nr("div",{...h("meta"),className:`mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em] ${g("meta")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:nr("span",{children:b("meta",ko(e.finish))})})]})})]});return v?cf("div",{className:t?"max-view-wide:hidden":"",children:[S,cf("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&nr("div",{...h("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${g("title")}`.trim(),children:b("title",e.wheel)}),(e.finish||e.car)&&nr("div",{...h(e.finish?"meta":"eyebrow"),className:`mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim ${g(e.finish?"meta":"eyebrow")}`.trim(),children:b(e.finish?"meta":"eyebrow",ko(e.finish||e.car))})]})]}):S}function IVe({build:e,count:t,ratio:o,sizes:n,shown:r,keptAttrs:a,kept:i}){let s=wge(t);return cf("div",{className:`sf-card relative overflow-hidden bg-surface-2 ${Fh(o)}`,style:{color:"var(--overlay-fg)"},children:[nr("div",{className:"absolute inset-0 flex items-center justify-center",children:nr(ro,{label:e.imageLabel,src:e.imageSrc,...n?{sizes:n}:{}})}),nr("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, color-mix(in srgb, var(--overlay-scrim) 0%, transparent) 45%, color-mix(in srgb, var(--overlay-scrim) 70%, transparent))"}}),s&&nr("span",{"data-gallery-set-chip":"",className:"absolute right-3 top-3 z-1 bg-overlay-scrim/45 px-2 py-1 text-[length:var(--size-label,11px)] tracking-[0.12em]",children:s}),cf("div",{className:"absolute bottom-[18px] left-5 right-5 z-1 max-view-wide:bottom-2.5 max-view-wide:left-3",children:[e.wheel&&nr("div",{...a("title"),className:`text-[length:var(--size-label,11px)] uppercase tracking-[0.16em] opacity-85 ${r("title")}`.trim(),children:i("title",ko(e.wheel))}),e.car&&nr("div",{...a("eyebrow"),className:`mt-1 text-lg leading-normal max-view-wide:text-sm ${r("eyebrow")}`.trim(),children:i("eyebrow",e.car)})]})]})}import{createContext as FVe,useCallback as BVe,useContext as HVe,useEffect as DVe,useLayoutEffect as MVe,useRef as HM,useState as zVe}from"react";import{createPortal as WVe}from"react-dom";import{Fragment as KVe,jsx as kk,jsxs as VVe}from"react/jsx-runtime";var yge="sf-themed-content",UVe=`.${yge}`,xge="sf-section-accent";function GVe(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(xge)&&(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 ${xge}`:"contents",style:o}}function $Ve(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 vge=FVe(()=>{});function Yc({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=HM(null),l=HM(null),[d,c]=zVe(null);MVe(()=>{if(!e){c(null);return}let g=s.current;if(!g)return;let h=g.closest(UVe),b=h?.parentElement??g.ownerDocument.body,w=GVe(g,b);c({host:b,theme:h?{...w,className:`${w.className} ${yge}`}:w})},[e]);let p=HM({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let f=e&&d!==null,u=BVe(()=>p.current.onClose(),[]);return Wc({active:f,onDismiss:u,scopeRef:l}),DVe(()=>{if(!f)return;let g=l.current,h=g?.ownerDocument??document,b=h.activeElement;g?.focus();let w=v=>{if(v.key==="ArrowLeft")p.current.onPrev?.();else if(v.key==="ArrowRight")p.current.onNext?.();else if(v.key==="Tab"&&g){let S=$Ve(g);if(S.length===0){v.preventDefault(),g.focus();return}let k=S[0],y=S[S.length-1],E=h.activeElement,T=!!E&&g.contains(E)&&E!==g;if(v.shiftKey&&(!T||E===k))v.preventDefault(),y.focus();else if(!v.shiftKey&&(!T||E===y))v.preventDefault(),k.focus();else{v.preventDefault();let _=S.indexOf(E);S[v.shiftKey?_-1:_+1]?.focus()}}},x=h.defaultView??window;return x.addEventListener("keydown",w),()=>{x.removeEventListener("keydown",w),b&&b.isConnected&&b.focus()}},[f]),e?VVe(KVe,{children:[kk("span",{ref:s,hidden:!0}),d&&WVe(kk("div",{className:d.theme.className,style:d.theme.style,children:kk("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 ${gM[8]} ${a}`,style:{background:hM},children:kk(vge.Provider,{value:t,children:i})})}),d.host)]}):null}var UO="color-mix(in oklab, var(--bg) 70%, transparent)";function gm({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=HVe(vge);return kk("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as YVe,useContext as Fg}from"react";var Sk=YVe(null);function kge(){let e=Fg(e1),t=Fg(Sk),o=pR();return e?e.socialLinks??hie:t?t.socialLinks:o.links}function pf(){return Fg(Sk)?.commerceEnabled??!0}function jVe(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Px(){return jVe(Fg(Sk))}function Sge(){let e=Fg(Sk),t=tr();return e?e.showThemeSwitch??Hp:t.themeSwitchShown??Hp}function Tge(){let e=Fg(e1),t=Fg(Sk),o=tr();return e?FR({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?FR({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):FR({siteName:o.websiteName?.trim()||Ou})}import{useBrowserLayoutEffect as JVe}from"efficient-shell/hooks";import{Fragment as _x,jsx as Bt,jsxs as Gn}from"react/jsx-runtime";var QVe="(max-width: 1100px) 100vw, min(59vw, 1050px)",Tk=Pge({}),Cge=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],WM=Pge(null),mf="data-gallery-grid",zM="data-gallery-tile";function eYe(e,t){let[o,n]=MM(null);return _ge(()=>{let r=e.current,a=r?.closest(`[${mf}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${zM}]`)),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 Od={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},tYe=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),Rge=Array.from({length:6},tYe);function oYe(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=ZVe(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 Bg({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let i=be(),{galleryHref:s="/gallery",submitHref:l="/contact",previewHover:d,display:c,displayPhone:p,styleOwner:f,photosOnly:u=!1,wordsAtRest:g=!1,Template:h,ownerId:b,sets:w=!1}=Ege(Tk),x=oYe(a),S=pf()&&!u,k=!S&&!nYe(x),y=x.photos??(x.imageSrc?[x.imageSrc]:[]),E=XVe(null),T=qVe(he=>{E.current=he},[]),_=eYe(E,e),P=Ege(WM),I=P?.report,F=r?.id,H=r?.tag??"",B=r?.name??"";JVe(()=>{if(!I||!F)return;let he={id:F,tag:H,name:B};return I(he),()=>I(he,!0)},[I,F,H,B]);let L=(F?P?.positionOf(F):null)??_,A=F?P?.sizesOf?.(F):void 0,$=e&&(!!t||!!d),[Y,V]=MM(!1),[Z,G]=MM(0),q=!!F&&!!P&&P.walkCount>1,te=he=>{let Fe=Z+he;if(q&&(Fe<0||Fe>=y.length)){V(!1),P.walk(F,he);return}G((Fe+y.length)%y.length)},R=()=>te(-1),O=()=>te(1),K=y.length>1||q,X=P?.opening;_ge(()=>{!X||X.id!==F||(G(X.at==="last"?Math.max(0,y.length-1):0),V(!0))},[X,F]);let M=y[Z]??x.imageSrc??"",ee=y.slice(1),de=h?Bt("div",{className:`block w-full min-w-0 ${Tb}${i?` ${iu}`:""}`,children:Bt(Ke,{ownerId:b??"GalleryB",ownerType:"GalleryB",Template:h,rows:[{key:F??x.imageSrc??"tile",image:x.imageSrc??"",tag:x.process,number:L?FM(L.index,L.total):"",eyebrow:x.car,name:x.wheel,meta:x.finish,href:x.href??""}],items:[{hoverMedia:ee.length?{photos:[{finish:"",items:ee.map(he=>({url:he,kind:"image"}))}]}:null}],previewHover:$,fallback:null,children:he=>he})}):Bt(BM,{build:x,forceHover:$,alwaysShowOverlay:g,index:L?.index,total:L?.total,ratio:o,captionPlace:n,display:c,displayPhone:p,styleOwner:f,editing:e,...w?{setCount:y.length}:{},...A?{sizes:A}:{}});return Gn(_x,{children:[e?Bt(z,{as:"div",ref:T,[zM]:"",className:"block w-full text-left",children:de}):Bt(z,{as:"button",ref:T,[zM]:"",type:"button","aria-label":S?`Open ${x.car||"build"} on ${x.wheel||"wheel"}`:DM(x),onClick:()=>{G(0),V(!0)},className:"block w-full cursor-pointer text-left focus:outline-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-accent focus-visible:outline-offset-2",children:de}),w?Bt(Yc,{open:Y,onClose:()=>V(!1),label:x.car&&x.wheel?`${x.car} on ${x.wheel}`:DM(x),onPrev:K?R:void 0,onNext:K?O:void 0,className:"bg-bg",children:Bt(sYe,{build:x,set:y,index:Z,onPick:G,onPrev:K?R:void 0,onNext:K?O:void 0,onLeave:()=>V(!1)})}):Bt(Yc,{open:Y,onClose:()=>V(!1),label:S?`${x.car} on ${x.wheel}`:DM(x),onPrev:K?R:void 0,onNext:K?O:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:Gn("div",{onClick:he=>he.stopPropagation(),className:`relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] ${k?"grid-cols-1":"grid-cols-[1.4fr_1fr]"} overflow-hidden border border-line bg-bg max-view-desktop:grid-cols-1 max-view-desktop:overflow-auto`,style:{boxShadow:"0 60px 120px -20px color-mix(in srgb, var(--sf-shadow-color, #141416) 70%, transparent)"},children:[Bt(gm,{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:UO},children:"\u2715"}),Gn("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[M&&Bt("img",{...to(M,{fallbackWidth:1280}),sizes:QVe,alt:`${(S?x.car:x.wheel||x.car)||"Photo"} \u2014 ${Z+1} of ${y.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},M),K&&Gn(_x,{children:[Bt("button",{type:"button","aria-label":"Previous photo",onClick:R,className:"absolute left-4 top-1/2 flex h-16 w-16 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,24px)] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25C1"}),Bt("button",{type:"button","aria-label":"Next photo",onClick:O,className:"absolute right-4 top-1/2 flex h-16 w-16 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg-dim/40 bg-overlay-scrim/40 font-mono text-[length:var(--size-label,24px)] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u25B7"}),y.length>1&&Gn("span",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 border border-fg-dim/30 bg-overlay-scrim/50 px-4 py-1.5 font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em] text-fg-dim backdrop-blur-[4px]",children:[Z+1," / ",y.length]})]})]}),S?Gn("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[x.process&&Bt("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:N(x.process)}),x.wheel&&Bt("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(42px,4.5vw,60px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.025em]",children:re(x.wheel,!1)}),x.car&&Gn("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",Bt("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:N(x.car,!0)})]}),Gn("dl",{className:"mt-3 grid grid-cols-[auto_1fr] gap-x-7 gap-y-[18px] border-y border-line py-[30px] font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em]",children:[x.wheel&&Gn(_x,{children:[Bt("dt",{className:"text-fg-dim",children:"Wheel"}),Bt("dd",{className:"text-fg",children:N(x.wheel)})]}),x.process&&Gn(_x,{children:[Bt("dt",{className:"text-fg-dim",children:"Process"}),Bt("dd",{className:"text-fg",children:N(x.process)})]}),x.finish&&Gn(_x,{children:[Bt("dt",{className:"text-fg-dim",children:"Finish"}),Bt("dd",{className:"text-fg",children:N(x.finish)})]}),x.car&&Gn(_x,{children:[Bt("dt",{className:"text-fg-dim",children:"Vehicle"}),Bt("dd",{className:"text-fg",children:N(x.car)})]})]}),Gn("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[Gn(He,{href:x.href||"/wheels",onClick:()=>V(!1),className:"group flex items-center justify-between gap-6 border border-btn bg-btn px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-btn-ink transition-colors hover:border-fg hover:bg-fg",children:[Bt("span",{children:"View product"}),Bt("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),Gn(He,{href:s,onClick:()=>V(!1),className:"flex items-center justify-between gap-6 border border-line px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[Bt("span",{children:"See more builds"}),Bt("span",{children:"\u2192"})]}),Gn(He,{href:l,onClick:()=>V(!1),className:"flex items-center justify-between gap-6 border border-line px-9 py-6 font-mono text-[length:var(--size-label,16px)] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:[Bt("span",{children:"Submit your build"}),Bt("span",{children:"\u2192"})]})]})]}):!k&&Bt(rYe,{build:x})]})})]})}function Oge(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function nYe(e){return!!e.wheel||Oge(e).length>0}function DM(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function rYe({build:e}){let t=e.wheel,o=Oge(e);return Gn("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&Bt("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(42px,4.5vw,60px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.95] tracking-[-0.025em]",children:re(t,!1)}),o.map(n=>Bt("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:N(n)},n))]})}var aYe=360,iYe="120px";function sYe({build:e,set:t,index:o,onPick:n,onPrev:r,onNext:a,onLeave:i}){let s=t[o]??e.imageSrc??"",l="absolute top-1/2 flex h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center border border-fg bg-bg text-lg text-fg max-view-wide:hidden";return Gn("div",{onClick:d=>d.stopPropagation(),className:"grid h-full w-full grid-cols-[1fr_360px] bg-bg text-fg max-view-wide:grid-cols-1 max-view-wide:grid-rows-[auto_1fr] max-view-wide:overflow-auto",children:[Gn("div",{className:"relative grid min-h-0 place-items-center bg-surface-2 py-12 max-view-wide:p-0",children:[s&&Bt("img",{...to(s,{fallbackWidth:1280}),sizes:`(max-width: ${_b}px) 100vw, calc(100vw - ${aYe}px)`,alt:`${e.car||e.wheel||"Photo"} \u2014 ${o+1} of ${t.length}`,className:"block max-h-[calc(100vh-96px)] max-w-[calc(100%-192px)] max-view-wide:max-h-[60vh] max-view-wide:max-w-full"},s),r&&Bt("button",{type:"button","aria-label":"Previous photo",onClick:r,className:`${l} left-6`,children:"\u2039"}),a&&Bt("button",{type:"button","aria-label":"Next photo",onClick:a,className:`${l} right-6`,children:"\u203A"})]}),Gn("div",{"data-gallery-set-side":"",className:"flex min-h-0 flex-col overflow-auto p-8 max-view-wide:px-4 max-view-wide:py-5",children:[Bt(gm,{label:"Close popup",className:"flex h-10 w-10 shrink-0 cursor-pointer items-center justify-center self-end border border-fg bg-bg text-lg text-fg max-view-wide:fixed max-view-wide:right-3 max-view-wide:top-3 max-view-wide:z-5",children:"\u2715"}),e.wheel&&Bt("div",{className:"mt-10 text-[length:var(--size-label,11px)] uppercase tracking-[0.16em] text-fg-dim max-view-wide:mt-0",children:e.wheel}),e.car&&Bt("div",{className:"mt-2 mb-2 text-2xl leading-normal",children:e.car}),Gn("div",{className:"text-xs leading-normal text-fg-dim",children:[o+1," / ",t.length]}),t.length>1&&Bt("div",{className:"mt-8 grid grid-cols-3 gap-2 max-view-wide:grid-cols-5",children:t.map((d,c)=>Bt("button",{type:"button","data-gallery-set-thumb":"","aria-label":`Show photo ${c+1}`,"aria-current":c===o?"true":void 0,onClick:()=>n(c),className:`block cursor-pointer p-0 ${c===o?"opacity-100 outline outline-1 outline-offset-2 outline-fg":"opacity-50"}`,children:Bt("img",{...to(d,{fallbackWidth:320,maxWidth:640}),sizes:iYe,alt:"",loading:"lazy",className:"block aspect-[4/3] w-full object-cover"})},`${d}-${c}`))}),e.wheel&&e.href&&Gn(xt,{href:e.href,onClick:i,className:"mt-auto inline-block self-start border border-fg px-8 py-3 text-xs text-fg max-view-wide:mt-6",children:["See ",e.wheel]})]})]})}import{createContext as uYe,useContext as fYe,useEffect as Ek,useId as hYe,useState as Nr,useSyncExternalStore as gYe}from"react";var lYe=14,dYe=3;function cYe(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function pYe(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),cYe(o)}async function Nge(e,t,o={}){let n=o.days??lYe,r=o.read??eg.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=pYe(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>=dYe)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as Lge,formatDateTime as UM,formatTime as Fge}from"efficient-shell/format";var mYe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},Age={weekday:"long",day:"numeric",month:"long",year:"numeric"},Bge={hour:"numeric",minute:"2-digit"},Ige={...Bge,timeZoneName:"short"};function GM(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function $M(e,...t){let o=gl(...t);return!o||!GM(e)?"":Fge(e,{locale:rH(),timeZone:o})}function KM(e,...t){let o=typeof e=="string"?{start:e}:e,n=gl(...t),r=GM(o.start);if(!n||!r)return"";let a=rH(),i=o.end?GM(o.end):null;if(!i||i.getTime()<=r.getTime())return UM(o.start,{locale:a,timeZone:n,style:mYe,zoneName:"short"});let s=UM(o.start,{locale:a,timeZone:n,style:Age,clock:Bge}),d=Lge(o.start,n)===Lge(o.end,n)?Fge(o.end,{locale:a,timeZone:n,clock:Ige}):UM(o.end,{locale:a,timeZone:n,style:Age,clock:Ige});return`${s} \u2013 ${d}`}function GO(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as bYe,userToday as wYe,userZone as xYe}from"efficient-shell/format";import{jsx as PYe}from"react/jsx-runtime";var Dge=uYe(null);function uf(){let e=fYe(Dge);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var VM=[{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:""}],yYe=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function Hge(e,t){return{timezone:"",slots:t?yYe.flatMap(({hour:n,minute:r})=>bYe(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var YM={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function vYe(e){let t=String(e?.slots[0]?.start??"");return t?{...YM,startAt:t}:YM}function Mge(e){return e.bookingNumber===YM.bookingNumber}function kYe(e,t){return e&&t?.length===0}function SYe(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!GO(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function TYe(){return()=>{}}function EYe(){return null}function zge({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=hYe(),r=gYe(TYe,wYe,EYe)??"",[a,i]=Nr(),[s,l]=Nr(""),[d,c]=Nr(""),[p,f]=Nr(r),[u,g]=Nr(r),[h,b]=Nr(!1),[w,x]=Nr(null),[v,S]=Nr(),[k,y]=Nr(""),[E,T]=Nr(""),[_,P]=Nr(""),[I,F]=Nr(""),[H,B]=Nr(""),[L,A]=Nr(()=>hH()),[$,Y]=Nr(null),[V,Z]=Nr(!1),[G,q]=Nr(!1),[te,R]=Nr(null),[O,K]=Nr("");Ek(()=>{K(xYe()??"")},[]),Ek(()=>{let xe=!1;return eg.listServices().then(ie=>{if(xe)return;let ce=yR(ie);i(ce),l(ie.currency),c(J=>J||ce[0]?.id||"")}).catch(()=>{xe||i([])}),()=>{xe=!0}},[]),Ek(()=>{r&&(f(xe=>xe||r),g(xe=>xe||r))},[r]),Ek(()=>{if(h||!d||!r)return;let xe={aborted:!1};return y(""),S(void 0),R(null),x(null),Z(!0),Nge(d,r,{signal:xe}).then(ie=>{if(!xe.aborted){if(ie.outcome==="found"){f(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]),Ek(()=>{if(!h||!d||!p)return;let xe=!1;return y(""),S(void 0),R(null),x(null),Z(!0),eg.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,ee=SYe({editing:e,submitting:G,hasService:!!X,hasDay:!!p,selectedStart:k,name:E,email:_,requiresPayment:M},Date.now());async function de(xe){if(xe.preventDefault(),!(!ee||!X)){q(!0),R(null);try{let ie=await eg.create({serviceId:X.id,start:k,customer:{name:E.trim(),email:_.trim(),phone:I.trim()},notes:H.trim(),idempotencyKey:L,customerTimezone:O});Y(ie),A(hH())}catch(ie){R(ie instanceof ur&&ie.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),ie instanceof ur&&ie.status===409&&(y(""),eg.getAvailability(X.id,p).then(S).catch(()=>{}))}finally{q(!1)}}}let he=kYe(e,a),Fe=he?Hge(p,O):void 0,_t=t&&!$?vYe(Fe??Hge(p,O)):null;return PYe(Dge.Provider,{value:{fieldPrefix:n,editing:e,services:he?VM:a,currency:he?"AUD":s,serviceId:he?VM[0].id:d,setServiceId:c,service:he?VM[0]:X,requiresPayment:he?!1:M,date:p,earliestDate:u,setDate:f,setDateTouched:b,availability:Fe??v,loadingSlots:he?!1:V,noSlotsMessage:w,selectedStart:Fe?Fe.slots[0]?.start??"":k,setSelectedStart:y,customerTimezone:O,name:E,setName:T,email:_,setEmail:P,phone:I,setPhone:F,notes:H,setNotes:B,confirmation:$??_t,submitting:G,error:te,canSubmit:he?!1:ee,handleSubmit:de,sample:!!he},children:o})}import{jsx as $O,Fragment as Wge,jsxs as Uge}from"react/jsx-runtime";var Gge=`sf-button group inline-flex items-center justify-center gap-2.5 border ${Qre} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,$ge={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:f,...u}=e,g=`${r?Gge.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):Gge} ${$ge[t]??$ge.primary} ${a??""}`,h=n?Uge(Wge,{children:[o!==null&&$O("span",{"aria-hidden":!0,className:"inline-flex",...l,children:o??"\u2192"}),d]}):Uge(Wge,{children:[d,o!==null&&$O("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",...l,children:o??"\u2192"})]});return c?$O(xt,{href:c,className:g,style:i,newTab:p?!0:"auto",...f?{hrefRewrite:f}:{},...s,children:h}):$O("button",{type:"button",className:g,style:i,...u,children:h})}import{jsx as _Ye}from"react/jsx-runtime";var Pk=e=>_Ye("div",{className:"grid bg-bg",children:e});import{jsx as po,jsxs as Nd}from"react/jsx-runtime";var _k="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 CYe(e,t){let o=Number(e);if(o===0)return tg;try{return vle(o,t)}catch{return`${t} ${e}`}}var Kge={selected:!0};function Vge(e,t){return({index:o})=>t?{[E_]:P_(e,o)}:{}}var Ck="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function jM({number:e,children:t}){return Nd("div",{className:"mb-4 flex items-center gap-3",children:[po("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full border border-line font-[family-name:var(--bk-step-font,var(--font-mono))] text-[length:var(--bk-step-size,11px)] font-semibold text-fg-dim",children:e}),po("h3",{className:"font-[family-name:var(--bk-step-font,var(--font-mono))] text-[length:var(--bk-step-size,12px)] font-semibold uppercase tracking-[0.2em] text-fg",children:t})]})}function KO({eyebrow:e,heading:t,intro:o}){return Nd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&po("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&po("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.98] tracking-[-0.025em] text-fg max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",children:t}),(o??"").trim()&&po("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function VO({style:e,owner:t}){let{fieldPrefix:o,services:n,currency:r,serviceId:a,setServiceId:i,requiresPayment:s,date:l,earliestDate:d,setDate:c,setDateTouched:p,availability:f,loadingSlots:u,noSlotsMessage:g,selectedStart:h,setSelectedStart:b,customerTimezone:w,editing:x}=uf();if(!n)return null;let v=Date.now(),S=gl(w,f?.timezone??""),k=gl(f?.timezone??""),y=k&&k!==S?k:"",E=(f?.slots??[]).map(T=>({start:T.start,time:$M(T.start,S),businessTime:y?`${$M(T.start,y)} business`:"",passed:!x&&GO(T.start,v)}));return Nd(z,{className:"flex flex-col gap-10",style:e,children:[Nd("div",{children:[po(jM,{number:"01",children:"Choose a service"}),po("div",{className:"grid gap-3 sm:grid-cols-2",children:po(Ke,{ownerId:t.id,ownerType:t.type,slot:Eg,Template:t.serviceTemplate,rows:n.map(T=>({name:T.name,meta:`${T.durationMinutes} min \xB7 ${CYe(T.price,r)}`,description:T.description??""})),states:n.map(T=>T.id===a?Kge:void 0),actions:x?void 0:n.map(T=>({press:()=>i(T.id),label:T.name})),copyAttrs:Vge(Eg,x),fallback:null,wrapCopy:Pk,children:T=>po(Fo,{children:T})})}),s&&po("p",{className:"mt-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.14em] text-alert",role:"alert",children:"This service requires an upfront payment and cannot be booked through this form yet."})]}),Nd("div",{children:[po(jM,{number:"02",children:"Choose a date and time"}),po($r,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:Ck,children:po("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:T=>{p(!0),c(T.target.value)},className:_k,required:!0})}),po("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 min-[1200px]:grid-cols-4",role:"group","aria-label":"Available appointment times",children:u?po("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",children:"Loading times\u2026"}):f?.slots.length?po(Ke,{ownerId:t.id,ownerType:t.type,slot:Pg,Template:t.timeTemplate,rows:E.map(T=>({time:T.time,businessTime:T.businessTime})),states:E.map(T=>T.start===h&&!T.passed?Kge:void 0),actions:x?void 0:E.map(T=>({press:()=>b(T.start),label:T.time,disabled:T.passed})),copyAttrs:Vge(Pg,x),fallback:null,wrapCopy:Pk,children:T=>po(Fo,{children:T})}):g?po("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",role:"status",children:g}):null}),S&&!u&&!!f?.slots.length&&Nd("p",{className:"mt-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,10px)] uppercase tracking-[0.16em] text-fg-dim",children:["Times shown in ",S,y?` \xB7 business timezone ${y}`:""]})]})]})}function YO({buttonLabel:e,style:t}){let{fieldPrefix:o,editing:n,name:r,setName:a,email:i,setEmail:s,phone:l,setPhone:d,notes:c,setNotes:p,submitting:f,error:u,canSubmit:g}=uf();return Nd(z,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[po(jM,{number:"03",children:"Your details"}),Nd("div",{className:"flex flex-col gap-4",children:[po($r,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:Ck,children:po("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:h=>a(h.target.value),className:_k,required:!0})}),po($r,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:Ck,children:po("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:h=>s(h.target.value),className:_k,required:!0})}),po($r,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:Ck,children:po("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:h=>d(h.target.value),className:_k})}),po($r,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:Ck,children:po("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:h=>p(h.target.value),className:`${_k} resize-y`})})]}),u&&po("p",{className:"mt-4 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.16em] text-alert",role:"alert",children:u}),po(ya,{type:n?"button":"submit",disabled:!g,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:f?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function jO({successMessage:e}){let{confirmation:t,customerTimezone:o}=uf();if(!t)return null;let n=gl(t.customerTimezone,o,t.timezone),r=gl(t.timezone),a=r&&r!==n?r:"";return Nd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[Nd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),po("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),po("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:KM(t.startAt,n)}),a&&Nd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",KM(t.startAt,a)]}),(e??"").trim()&&po("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),po(ya,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!Mge(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Cx}from"react/jsx-runtime";var Yge=["head","booking","details","confirm"],jge={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function qM({region:e,nodeId:t="BookingBox",serviceTemplate:o,timeTemplate:n,eyebrow:r,heading:a,intro:i,buttonLabel:s,successMessage:l,...d}){let{confirmation:c,services:p}=uf(),f=Mue(d);return e==="head"?Cx(z,{className:"min-[960px]:col-span-2",style:f,children:Cx(KO,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Cx(z,{className:"min-[960px]:col-span-2",style:f,children:Cx(jO,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Cx(VO,{style:f,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Cx(YO,{buttonLabel:s,style:f}):null}import{useEffect as qge,useState as ff}from"react";import{jsx as Rx,jsxs as OYe}from"react/jsx-runtime";function jc(e,t){let[o,n]=ff(void 0),[r,a]=ff(0);return qge(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return Bo.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),qge(()=>{if(t===void 0)return qR(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var RYe="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Ox(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function hf({form:e,formSlug:t,editing:o=!1}){let[n,r]=ff({}),[a,i]=ff(""),[s,l]=ff(!1),[d,c]=ff(!1),[p,f]=ff(null),[u,g]=ff(null);async function h(b){if(b.preventDefault(),!(o||s||!e||!t)){l(!0),g(null);try{let w=e.fields.map(v=>({fieldKey:v.key,value:n[v.key]??""})),x=await Bo.submitForm(t,{answers:w,...a?{company:a}:{}});f(x?.account??null),c(!0)}catch{g(RYe)}finally{l(!1)}}}return{valueOf:b=>n[b]??"",set:(b,w)=>r(x=>({...x,[b]:w})),honeypot:a,setHoneypot:i,submitting:s,done:d,account:p,error:u,handleSubmit:h}}function Nx({value:e,onChange:t}){return Rx("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function gf({field:e,value:t,onChange:o,className:n,rows:r=5,placeholder:a,ariaLabel:i}){let s=a??e.placeholder,l=i?.trim()?{"aria-label":i.trim()}:{};return e.type==="textarea"?Rx("textarea",{required:e.required,rows:r,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l}):e.type==="select"?OYe("select",{required:e.required,value:t,onChange:d=>o(d.target.value),className:n,...l,children:[Rx("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>Rx("option",{value:d,children:d},d))]}):e.type==="checkbox"?Rx("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):Rx("input",{type:e.type==="email"?"email":e.type==="tel"?"tel":"text",required:e.required,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l})}var Ut={eyebrow:"Section number",title:"Show *us yours.*",body:"Tell people what they get for submitting, and what you do with what they send.",buttonText:"Submit \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties."};import{jsx as El,jsxs as Rk}from"react/jsx-runtime";function NYe(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function Xge({eyebrow:e,title:t}){return Rk("div",{className:"flex flex-col gap-4",children:[e&&El(ut,{text:e,scaled:!1}),t&&El("h2",{className:"font-display text-[min(clamp(40px,5vw,72px),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:re(t,!0)})]})}function qO({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return Rk("div",{className:"flex flex-col gap-8",children:[e&&Dt(e).map((l,d)=>El("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:N(l)},d)),a&&(n?r.done?El("p",{role:"status",className:"max-w-[480px] font-[family-name:var(--sb-thanks-font,var(--font-serif))] text-[length:var(--sb-thanks-size,17px)] italic leading-[1.6] text-fg-dim",children:Ox(n)}):Rk("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",NYe(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?Rk("label",{className:"col-span-2 flex items-start gap-3 font-[family-name:var(--sb-tick-font,var(--font-mono))] text-[length:var(--sb-tick-size,12px)] uppercase tracking-[0.18em] text-fg-dim",children:[El(gf,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),Rk("span",{children:[l.label,l.required?El("span",{className:"text-accent",children:" *"}):null]})]},l.key):El(gf,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),rows:4,placeholder:l.placeholder||l.label,ariaLabel:l.label,className:l.type==="textarea"?`${d} resize-y`:d},l.key)}),El(Nx,{value:r.honeypot,onChange:r.setHoneypot}),r.error&&El("p",{role:"alert",className:"col-span-2 font-mono text-[12px] uppercase tracking-[0.18em] text-alert",children:r.error}),El("button",{type:s?"button":"submit",disabled:r.submitting,className:"col-span-2 cursor-pointer bg-btn px-6 py-4 font-mono text-[14px] uppercase tracking-[0.32em] text-btn-ink transition-colors hover:bg-fg hover:text-bg disabled:cursor-wait disabled:opacity-60",children:r.submitting?"Sending\u2026":N(t||Ut.buttonText)})]}):El("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:i?m("Loading form\u2026"):m("Choose a form in the inspector, under Form \u2014 until then this form is hidden on the live page and nothing can be submitted.")})),a&&o&&El("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:N(o)})]})}var XO=["field","tick","thanks"],Zge={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},ZO={field:"styleField",tick:"styleTick",thanks:"styleThanks"},LYe={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 AYe(e){return typeof e=="string"&&pb.includes(e)?e:null}function Jge(e){let t={};for(let o of XO){let n=AYe(e[ZO[o]]);n&&Object.assign(t,Fc(n,LYe[o]))}return t}import{jsx as JO}from"react/jsx-runtime";var Qge=["head","form"],e0e={head:"Head",form:"Form"};function XM({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=jc(i,s),p=hf({form:c,formSlug:i,editing:l}),f=Jge(d);return e==="head"?JO(z,{as:"div",style:f,children:JO(zt,{look:"statement",num:t,title:o})}):JO(z,{as:"div",style:f,children:JO(qO,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var IYe={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>Yge.map(e=>({region:e,name:jge[e]})),addBlocked:()=>m("A Booking Form is these three boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},SubmitBuild:{slot:"boxes",childType:"SubmitBox",addLabel:"Add box",fixed:!0,seeds:()=>Qge.map(e=>({region:e,name:e0e[e]})),addBlocked:()=>m("A Submit-a-build section is these two boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},Collections:{slot:"cards",childType:"CollectionCard",addLabel:"Add card",seeds:()=>Array.from({length:hge},()=>({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:()=>Rge.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};Rne(IYe);import{jsx as t0e}from"react/jsx-runtime";var FYe={body:"text-[length:var(--size-body,17px)]"},bm=5;function Lx({rating:e}){let t=Math.min(bm,Math.max(0,Math.round(e)));return t0e(z,{role:"img","aria-label":`${t} out of ${bm} stars`,className:`flex gap-1 ${FYe.body} leading-none`,children:Array.from({length:bm}).map((o,n)=>t0e("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var ZM="mx-auto max-w-[var(--sf-site-width,1600px)]",BYe=[/^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 o0e(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function JM(e){return e.split(/\s+/).filter(t=>t&&!BYe.some(o=>o.test(o0e(t)))).join(" ")}var HYe=new Set(["max-view-desktop","max-view-wide"]);function DYe(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 Ax(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=o0e(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?DYe(l[1]):void 0;d!==void 0&&(i?HYe.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as MYe,jsx as zYe}from"react/jsx-runtime";function QM({inBox:e,atTop:t,anyBox:o=!1}){let n=Tu(),r=Xb();return zYe(MYe,{children:n||o&&r?e:t})}import{createContext as n0e,useContext as t9}from"react";import{Fragment as UYe,jsx as e9}from"react/jsx-runtime";var WYe={atTop:null,inBox:null},o9=n0e(WYe);function QO({pad:e,children:t}){return e9(o9.Provider,{value:e,children:t})}var br=()=>t9(o9).atTop,r0e=()=>t9(o9),a0e=n0e(void 0);function i0e({pads:e,children:t}){return e?e9(a0e.Provider,{value:e,children:t}):e9(UYe,{children:t})}var s0e=()=>t9(a0e);import{jsx as Ok}from"react/jsx-runtime";function kt({className:e,capped:t=!1,column:o=Ci,style:n,defaults:r,id:a,attrs:i,rootRef:s,inAnyBox:l=!1,padOnColumn:d=!1,children:c}){let p=be(),f=r0e(),u=JM(e),g=o===null?"":JM(o),{className:h,style:b,...w}=Re(u,f.inBox,n),x=Ok(z,{as:"section",ref:s,...i,...w,className:h||void 0,style:b,id:a,children:g?Ok("div",{className:g,children:c}):c}),v=r?{...r,...n}:n,S=d?null:f.atTop,k=d?f.atTop:null,{className:y,style:E,...T}=Re(t?`${ZM} ${e}`:e,S,v),_=Ok(z,{as:"section",ref:s,...i,...T,className:y,style:E,id:a,children:o===null?c:Ok("div",{...Re(ge(o,p),k),children:c})});return Ok(QM,{inBox:x,atTop:_,anyBox:l})}import{Fragment as $Ye,jsx as wm,jsxs as eN}from"react/jsx-runtime";var Ix={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)]"},GYe="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))]",n9="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 r9({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:eN(kt,{className:"relative z-[2] border-t border-line bg-surface",column:l?n9:GYe,padOnColumn:!0,children:[l?null:eN($Ye,{children:[(t??"").trim()&&wm(ut,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&wm("h2",{className:`mb-12 font-heading2 ${Ix.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${Ix.headingMediumUpTo800}`,children:re(o??"",!1)})]}),wm("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=>eN("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&&wm(Lx,{rating:c.rating}),(c.title??"").trim()&&wm("h3",{className:`font-display ${Ix.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),wm("div",{className:`flex-1 font-serif ${Ix.bodySmall} leading-[1.65] text-fg-dim`,children:Dt(c.quote).map((p,f)=>wm("p",{className:f?"mt-3":"",children:p},f))}),eN("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[wm("span",{className:`font-mono ${Ix.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),wm("span",{className:`font-mono ${Ix.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var l0e=Ax(n9),a9={top:84,bottom:l0e.bottom,topPhone:84,bottomPhone:l0e.bottomPhone},d0e=a9,[KYe,VYe]=C2("Testimonials"),YYe={type:qs,props:{...Ue,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[Xs]:[{type:"Text",props:{...$e,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Be("quote",Rt,{size:16,lineHeight:1.6}),{type:qs,props:{...Ue,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Xs]:[Be("name",$e,{...sd,weight:500,letterSpacing:.04}),Be("role",Rt,{textStyle:"body-5"})]}}]}},jYe={name:"Testimonials",boxProps:e=>({...lc,direction:"column",gap:44,sectionBorder:{top:1},...uu(e,d0e)}),box:[...Wp,...Mh(d0e)],parts:[{kind:"group",name:"Heading",props:{...Ue,gap:16},parts:[{...KYe,props:$e},{...VYe,props:$e,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[YYe]}}],site:yee("title"),drop:{...dc,...cc,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Testimonials' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the Reviews block, which is always own-box here"}};Fn({Testimonials:jYe});var Vr={inline:"border-b border-line py-[120px] max-view-desktop:py-20",ownBox:"border-b border-line pt-0 pb-[120px] max-view-desktop:pt-0 max-view-desktop:pb-20"};import{phoneKey as oN,tabletKey as i9}from"efficient-easel/draw";var qYe={textStyle:"body-5",...go("label",14),letterSpacing:.05,lineHeight:1.5},XYe={type:qs,props:{...Ue,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[oN("share")]:"content",[oN("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Xs]:[Be("label",Rt,{...La(14),letterSpacing:.05,lineHeight:1.5}),Be("value",{...$e,align:"right"},{...qYe,align:"right"})]}},c0e={[Wh]:D_},ZYe=["dynamic","source","finish","size","wheel"],Nk=il("SpecTable",{slots:{template:[XYe]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...Ue,direction:"row",share:"content",gap:48,[i9("gap")]:80,[oN("gap")]:80,...c0e}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),JYe=Nk.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(ZYe.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),tN=Ax(Vr.ownBox),QYe={...Nk,parts:JYe,boxProps:(e,t)=>{let o=typeof Nk.boxProps=="function"?Nk.boxProps(e,t):Nk.boxProps;return{...o,sectionPaddingBottom:tN.bottom,sectionPaddingBottomPhone:tN.bottomPhone,...c0e,[i9("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[i9("sectionPaddingBottom")]:tN.bottomPhone,[oN("gap")]:36,...tN.line?{sectionBorder:L_({bottom:1})}:{}}}};Fn({SpecTable:QYe});Fn({ProductGrid:il("ProductGrid",{slots:{[Lt]:[yfe()]},pressHeading:!0})});Fn({Events:il("Events",{slots:{[Lt]:P8()},coreProps:{sectionAccent:JP},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});Fn({Collections:il("Collections",{slots:{[Lt]:[_8()]},roomBelow:wme,pressHeading:!0})});Fn({GalleryB:il("GalleryB",{slots:{[Lt]:[C8()]},roomBelow:{bottom:pi.bottom,bottomPhone:O5},pressHeading:!0})});Fn({[hr]:{name:"Product hero",box:[...KJ],boxProps:{direction:"column",gap:0,gapPhone:0,...ht(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[ix]:sx},slots:e=>({[Lt]:JD(e)})}]}});var s9=Ax(Vr.ownBox);Fn({FitmentTable:il("FitmentTable",{slots:{[dO]:[afe()],[tf]:[ife()]},roomBelow:{bottom:s9.bottom,bottomPhone:s9.bottomPhone},boxProps:s9.line?{sectionBorder:L_({bottom:1})}:{},pressHeading:!0})});var eje=e=>({type:qs,props:{...Ue,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[Xs]:[{type:qs,props:{...Ue,name:"Words",direction:"column",gap:16},slots:{[Xs]:[Be("eyebrow",$e,{...La(13),color:"accent"}),Be("title",$e,{textStyle:"heading-2",...go("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Be("copy",Rt,{textStyle:"body-1",...go("body",15),lineHeight:1.6})]}},{type:qs,props:{...Ue,name:"Picture",direction:"column",gap:12},slots:{[Xs]:[{type:"ImageBlock",props:{[Gs]:"image",aspect:"1/1",fit:"contain"}},Be("tag",{...Rt,align:"right"},{...La(11),align:"right"})]}}]}}),tje={name:"Feature Rows",boxProps:{...lc,...kee,direction:"column",gap:0},box:Wp,parts:[{kind:"core",keep:"rest",slots:e=>({template:[eje(e.startLeft===!0)]})}]};Fn({DetailRows:tje});import{phoneKey as d9}from"efficient-easel/draw";var rN=e=>[...Wp.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>N_(t,n)],...Mh(e)],c9=(e,t,o)=>(n,r)=>({...lc,sectionAccent:N_(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...uu(n,e)}),p9=(e,t,o)=>({kind:"text",key:e,role:"heading",props:$e,style:{textStyle:"heading-2",...go("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),m9=(e,t,o={})=>({kind:"group",name:"Heading",props:{...Ue,gap:e,gapPhone:e,...o},parts:t}),u9=(e={})=>({kind:"core",keep:"rest",props:R_,...e}),nN=a9,[oje]=C2("ReviewForm"),nje=()=>({name:"Review Form",boxProps:c9(nN,48,32),box:rN(nN),parts:[m9(16,[{...oje,props:$e},p9("title",1,-.02)]),u9()],pressKeepsEmpty:["eyebrow","title"],drop:{...dc,...cc,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[rje]=C2("Reviews"),l9=e=>({...La(12),letterSpacing:e}),aje={type:qs,props:{...Ue,name:"Card",gap:16,...ht(40,40,32,32),sectionAccent:0},slots:{[Xs]:[{type:"RatingBlock",props:{[Gs]:"rating"}},Be("title",$e,{textStyle:"heading-1",...go("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Be("quote",Rt,{textStyle:"body-1",...go("body",15),lineHeight:1.65}),{type:qs,props:{...Ue,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[d9("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Xs]:[Be("name",$e,l9(.22)),Be("dateLabel",{...Rt,align:"right"},{...l9(.18),align:"right"}),Be("role",{...Rt,align:"right"},{...l9(.18),align:"right"})]}}]}},ije=()=>({name:"Reviews",boxProps:c9(nN,48,32),box:rN(nN),parts:[m9(16,[{...rje,props:$e},p9("title",1,-.02)]),u9({slots:{template:[aje]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...dc,...cc,eyebrowLook:"the eyebrow Text wears the plain eyebrow's start look (Reviews' default); a stored `filled` look needs a filled Text look",headPlacement:"the head is the Text blocks above the reviews, which are always own-box here"}}),p0e={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},sje=()=>({name:"Booking Form",boxProps:c9(p0e,40,40),box:rN(p0e),parts:[m9(16,[O_("eyebrow",{...go("label",12),weight:600,letterSpacing:.24,color:"accent"}),p9("heading",.98,-.025),{kind:"text",key:"intro",props:{...Rt,maxWidth:660},style:{textStyle:"heading-1",...go("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),u9()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...dc,...cc}}),m0e={top:88,bottom:88,topPhone:64,bottomPhone:64},lje=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...lc,direction:"column",align:"center",gap:20,gapPhone:20,...uu(e,m0e)}),box:[...Wp,...Mh(m0e)],parts:[{...O_("eyebrow"),props:{...$e,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...$e,align:"center",maxWidth:720},style:{textStyle:"heading-1",...go("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...$e,align:"center",maxWidth:560},style:{textStyle:"body-1",...go("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...Ue,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[d9("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...xee,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...F2,align:"center",icon:"none"},style:{...tu(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...dc,...cc}}),u0e={top:60,bottom:0,topPhone:60,bottomPhone:0},dje=()=>({name:"Contact Form",boxProps:(e,t)=>({...lc,sectionAccent:N_(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...uu(e,u0e)}),box:rN(u0e),parts:[{kind:"group",name:"Header",props:{...Ue,direction:"row",align:"center",share:"content",phoneRow:2,[d9("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[O_("routingNumber"),{kind:"text",key:"routingTagline",props:Rt,style:{textStyle:"heading-1",...go("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:vee(e.sectionAccent??0,t)})}}],drop:{...dc,...cc}});Fn({ContactRouting:dje(),ReviewForm:nje(),AppointmentBooking:sje(),Reviews:ije(),CheckoutCTA:lje()});var f0e={top:40,bottom:40,topPhone:40,bottomPhone:40},h0e={textStyle:"heading-1",...jee("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},f9=["heading","intro"],g0e=[Lt,Ua,Ga,$a];function cje(e,t){let o=(t?yb:FZ)(Co,e);return Object.fromEntries(g0e.map(n=>[n,o[n]]))}var pje=()=>({name:"List",boxProps:e=>({...lc,direction:"column",gap:24,gapPhone:24,...uu(e,f0e)}),box:[...Wp,...Mh(f0e)],parts:[{kind:"group",name:"Heading",props:{...Ue,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...$e,tag:"h1"},style:h0e,when:e=>!rB(e)},{kind:"text",key:"heading",role:"heading",props:{...$e,tag:"h2"},style:h0e,when:rB},{kind:"text",key:"intro",role:"body",props:Rt,style:{textStyle:"body-1",...go("body",15)}}]},{kind:"core",keep:"rest",props:R_,derive:{reads:[...g0e],props:(e,t)=>cje(e,t.press===!0)}}],pressKeepsEmpty:f9,drop:{...dc,...cc,[X_]:"read by the heading part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}});Fn({AlloyWheelsListing:pje()});var b0e={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as mje,useContext as uje}from"react";function yt(e){return Mt}import{Fragment as hje,jsx as Fx}from"react/jsx-runtime";var fje=yt("ProductCard")("buy"),Ro={headingSmall1:"text-[length:var(--size-headingSmall,22px)]",headingSmall2:"text-[length:var(--size-headingSmall,30px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},Bx=mje("catalog");function Ts(){return uje(Bx)==="catalog"}function bf({children:e}){let t=Ts();return Fx(hje,{children:e??(t?Fx(z,{"aria-hidden":!0}):null)})}function Hx({children:e}){return Fx(bf,{children:e?Fx(z,{children:e}):null})}function aN({children:e}){return Fx(bf,{children:e?Fx(z,{className:"[.sf-card-rows>*>&]:self-end",...fje,children:e}):null})}var w0e={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:LP(Ro.label),writable:!0,sized:!0}},x0e={sku:{label:"SKU",follows:"Label",builtIn:LP(Ro.label),writable:!0,sized:!0}},y0e={name:{label:"Name",follows:"Heading 3",builtIn:LP(Ro.headingSmall2),writable:!0,sized:!0}};fse({ProductPrice:b0e,ProductEyebrow:w0e,ProductName:y0e,ProductSku:x0e});function Dx(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as gje}from"react/jsx-runtime";import{OpacityIcon as bje}from"efficient-easel/icons";import{group as iN}from"efficient-easel/screen/lib/document/box-fields";var v0e={fields:{_gContent:iN("Content"),eyebrow:W("Eyebrow",ku.eyebrow),title:j("Heading",ku.title),body:j("Body",ku.body),_gBackground:iN("Background image"),imageSrc:rt("Image","image/*"),overlay:le("Overlay",gje(bje,{}),0,100,5,60,"%"),_gButton:iN("Button"),...Sl,_gLayout:iN("Layout")}};import{jsx as Lk}from"react/jsx-runtime";import{GroundIcon as S0e,ListIcon as wje}from"efficient-easel/icons";function T0e(e){let t=e?.data?.root,o=Aoe(t?.props)??"";return o&&PB(o,"text").length?o:""}var h9="outsideCardTemplate",xje={not:{context:h9,is:!0}},Va={[h9]:(e,t)=>{let o=Bp(t.appState,e.props?.id);if(o!==void 0)return o===null&&!T0e(t.appState)},[DX]:(e,t)=>{let o=dd(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[zX]:(e,t)=>dd(t.appState,e.props?.id)?.inCopy};function Yr(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?Lk(er,{noun:"link"}):t==="colour"?Lk(S0e,{}):Lk(wje,{}),a={...ne(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return tt(a,xje)}function qc(){return Yr("Link from","link")}var yje={any:[{field:Xo,set:!1},{context:h9,is:!0,default:!0}]};function wf(e){return tt(e,yje)}function Ak(e){return e.kind==="link"?_r(Q(e.label)):e.kind==="colour"?vje(e.label):e.multiline?Je(e.label):Se(e.label)}function vje(e){return{type:"custom",render:({value:t,onChange:o})=>Lk(Hae,{label:e,icon:Lk(S0e,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function kje(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var k0e=new WeakMap;function Ya(e,t,o){let n=Object.keys(e).filter(k=>kje(e[k]));if(!n.length)return e;let r=t.props??{},a=Bp(o.appState,r.id),i=typeof a?.type=="string"?a.type:"",s=a?T6(o.appState,r.id)??"":"",l=n.map(k=>typeof r[k]=="string"?r[k].trim():""),d=ft(a?.props),c=i===Mr?Bp(o.appState,a?.props?.id):null,p=c?T6(o.appState,a?.props?.id)??void 0:void 0,f=c?HP(a?.props,c.type,p):"",u=c?ft(c.props):"",g=c?`${String(c.type??"")}\0${u}\0${p??""}`:"",h=i===Mr&&!c?JSON.stringify(a?.props?.[LZ]??null):"",b=a?"":T0e(o.appState),w=[i,s,d,f,g,h,xP(),b,Poe(),...l].join("\0"),x=k0e.get(e);x||k0e.set(e,x=new Map);let v=x.get(w);if(v)return v;let S={...e};return n.forEach((k,y)=>{let E=e[k],T=i===Mr?Lh(o.appState,a,E.cardRowKind):i?HZ(a,E.cardRowKind,s||void 0):PB(b,E.cardRowKind),_=E.cardRowKind==="link"&&!!i&&!T.length;if(!l[y]&&(_||(E.cardRowContent?!i||!T.length:!T.length&&!i&&b))){delete S[k];return}let P=l[y]&&!T.some(H=>H.key===l[y])?l[y]:"",I=E.cardRowKind==="list",F=(H,B)=>I&&B===0&&H.key!==l[y]?"":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 P0e}from"efficient-easel/screen/lib/document/box-fields";var sN={meta:"Trailing note"},E0e={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var _0e={fields:{_gContent:P0e("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:Q("Label"),href:_r(Q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:W("Trailing note",sN.meta),_gText:P0e("Text"),rowField:Yr("Shows","text")},resolveFields:(e,t)=>Ya(t.fields,e,t),showWhenFacts:Va};import{jsx as fi,jsxs as Oje}from"react/jsx-runtime";import{ButtonIcon as Nje,ButtonIconIcon as Lje,IconAfterTextIcon as Aje,IconBeforeTextIcon as Ije}from"efficient-easel/icons";import{SettingsField as Fje}from"efficient-easel/panel";import{useSelectedFields as I0e}from"efficient-easel/easel";import{buttonFieldSet as Bje}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as Hje}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as Dje,Segmented as Mje}from"efficient-shell/ui";function lN(e){return typeof e=="boolean"?e:!0}import{parseOption as Sje}from"efficient-shell/format";var g9=["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"],Tje=["before","after","end"];function b9(e){return typeof e=="string"&&g9.includes(e)?e:void 0}function C0e(e,t){return b9(e)??(lN(t)?"arrow-right":"none")}function Ik(e){return Sje(Tje,"after",e)}function R0e(e,t){return Ik(e)==="end"&&Hg(t)==="fill"}function Hg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function O0e(e,t,o,{atSectionLine:n=!1}={}){let r=Hg(e);if(Tr(o)){let i=Hg(o),s=Tr(t)?Hg(t):i;return n?[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-tablet:max-view-desktop:w-full":"view-tablet:max-view-desktop:w-auto",s==="fill"?"max-view-tablet:w-full":"max-view-tablet:w-auto"].join(" "):[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-wide:max-view-desktop:w-full":"view-wide:max-view-desktop:w-auto",s==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto"].join(" ")}let a=r==="fill"?["w-full"]:[];if(Tr(t)){let i=Hg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as pN}from"efficient-easel/screen/lib/document/style-fields";import{group as N0e}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as zje}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as w9}from"react/jsx-runtime";import{LockIcon as Eje}from"efficient-easel/icons";import{FieldText as Pje}from"efficient-easel/fields";import{SettingsField as _je}from"efficient-easel/panel";import{keptByRow as Cje}from"efficient-easel/screen/lib/document/style-fields";function Rje(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??$re}-words`;return w9(_je,{label:m("Words"),icon:w9(Eje,{}),htmlFor:o,children:w9(Pje,{id:o,value:m("Set by country"),onChange:()=>{},readOnly:!0})})}}}function dN(e){return Cje(e)}function cN(e,t,o,n=[]){return $C(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?Rje():a]))}var x9=e=>IC(e==="none"?"no-symbol":e),Wje=g9.map(e=>({value:e,icon:e==="none"?ure(x9(e),fi(NB,{value:e})):x9(e)})),F0e=Q("Button");function Uje({value:e,onChange:t}){let o=I0e(),n=o.values.href,r=typeof e=="string"?e:e&&typeof e=="object"&&"text"in e?String(e.text??""):"";return o.fields&&"href"in o.fields?fi(Jre,{label:"Button",icon:fi(Nje,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):F0e.render({value:r,field:{label:"Button"},onChange:a=>t(yae(a))})}function Gje({value:e,onChange:t}){let o=I0e(),n=C0e(e,o.values.arrow),r=Ik(o.values.iconPosition),a=Hg(o.values.widthFit)==="fill",i=x9("icon-at-end");return fi(Fje,{label:m("Icon"),icon:fi(Lje,{size:18}),value:n==="none"?void 0:fi(NB,{value:n}),children:Oje("div",{className:"flex items-center gap-2",children:[fi(Dje,{label:m("Icon"),value:n,options:Wje,onChange:t}),n!=="none"&&fi(Mje,{size:"sm",block:!0,label:m("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:fi(Ije,{size:16}),label:fi("span",{className:"sr-only",children:m("Icon before text")}),title:m("Icon before text")},{value:"after",icon:fi(Aje,{size:16}),label:fi("span",{className:"sr-only",children:m("Icon after text")}),title:m("Icon after text")},...a?[{value:"end",icon:i,label:fi("span",{className:"sr-only",children:m("Icon at the far end")}),title:m("Icon at the far end")}]:[]]})]})})}var L0e=()=>C6(tr().theme),A0e=Bje({lengthUnits:OC,follows:{useFill:()=>L0e().fill,useText:()=>L0e().ink,useBorder:()=>{let[e]=xc("variant"),[t]=xc("buttonColor"),{theme:o}=tr(),n=WB({variant:e,buttonColor:t}).border.width,r=Tr(t)??(e==="ghost"?qZ(o).text:C6(o).fill);return{width:n,color:r}},useCorners:()=>tJ(tr().cornerRadiusPx),useFillOpacity:()=>WB({variant:xc("variant")[0]}).fillOpacity},usePresets:_re,resetTo:e=>vae(e,m("Styles")),padding:{fallback:eae,tablet:!0},phone:Hje,say:Jb});function $je(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var B0e={fields:{label:Sae(F0e,e=>fi(Uje,{value:e.value,onChange:e.onChange})),labelText:Rae("label"),href:wf({...qe("Button link"),...pN("label")}),consentWords:dN("label"),_gButton:N0e("Button"),rowField:Yr("Shows","text"),[Xo]:qc(),...$je(A0e,zje.Design),_gStyle:N0e("Style"),variant:pN("buttonColor"),icon:{type:"custom",render:e=>fi(Gje,{value:e.value,onChange:e.onChange})},iconPosition:pN("icon"),arrow:pN("icon"),...A0e},resolveFields:(e,t)=>cN(Ya(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Va};import{jsx as Fk}from"react/jsx-runtime";import{AccentIcon as Kje,ColumnsIcon as z0e,StylesIcon as W0e}from"efficient-easel/icons";import{group as y9}from"efficient-easel/screen/lib/document/box-fields";import{newId as D0e}from"efficient-easel/data";function mN(e,{rows:t="items",label:o="title"}={}){let n=ft(e);return n?Fp(n).map(r=>({label:r.label,value:r.key})):(Array.isArray(e[t])?e[t]:[]).map((r,a)=>({label:typeof r?.[o]=="string"&&r[o].trim()||m("Card {n}",{n:a+1}),value:zZ(dn(r),a)}))}var H0e=new WeakMap;function uN(e,t){let o=H0e.get(e);o||H0e.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 M0e(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>D0e(t),enumerable:!0})}function fN(e,t="items"){if(!Array.isArray(e[t])||ft(e))return e;let o=e[t],n=typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",r=c=>c&&typeof c=="object"&&typeof c.key=="string"?c.key:"",a=!!n&&!o.some(c=>r(c)===n),i=new Set,s=e.highlightedCard,l=!1,d=o.map((c,p)=>{if(!c||typeof c!="object")return c;let f=r(c);if(f&&!i.has(f))return i.add(f),c;let u=!f&&a&&n===String(p+1);if(f||u){let g=D0e("card");return i.add(g),l=!0,u&&(s=g),{...c,key:g}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as Vje}from"efficient-easel/data";var Yje=e=>Vje(e.template)&&e.template.length>0;function jje(e,t){let o=Yje(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,uN(r,mN(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,Zje(r)]]:[[n,r]]))}var qje=Object.fromEntries(E2("Cards").filter(e=>!e.everySource).map(e=>[e.key,Ak(e)])),Xje=Object.fromEntries(E2("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,Ak(e)])),U0e=new WeakMap;function Zje(e){let t=U0e.get(e);return t||U0e.set(e,t={...e,arrayFields:qje}),t}var G0e={fields:{_gSource:y9("Source"),dataSource:oo("Card content","Manual"),[gw]:bw(),_gContent:y9("Content"),eyebrow:W("Eyebrow",Fb.eyebrow),eyebrowLook:ne("Eyebrow style",Fk(W0e,{}),[...ol],Up("Cards")),title:j("Heading",Fb.title),items:{type:"array",label:"Cards",arrayFields:Xje,defaultItemProps:M0e({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...See,highlightedCard:ne("Highlighted card",Fk(Kje,{}),[{label:"None",value:""}],""),highlightBadge:W("Highlight badge","Most popular"),_gStyle:y9("Style"),cardStyle:lo("Card style",Fk(W0e,{}),[{label:"Cards",value:"cards",picture:UB.cards},{label:"Label only",value:"label-only",picture:UB["label-only"]}],"cards",{columns:2,cell:Pr}),columns:le("Columns",Fk(z0e,{}),2,4,1,3),fillLastRow:oe("Last card fills its row",!1,Fk(z0e,{}),"When the last row is short, its last card widens to fill it.")},resolveData:(e,t)=>{let o=t?.lastData?.props,n=pse(e.props,o),r=OP(n),a=r===e.props?e:{...e,props:r},i=a.props,s=fN(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=ct(no("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,mt.Cards.headRows),n=e.props,r=jje(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:Se("Feature label"),href:_r(Q("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:Up("KeyFeatures")}}:{}}}};import{jsx as Jje}from"react/jsx-runtime";import{StickyIcon as Qje}from"efficient-easel/icons";import{group as $0e}from"efficient-easel/screen/lib/document/box-fields";var K0e={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Label"),count:Q("Count")},getItemSummary:e=>e?.label?`${e.label}${e.count?` \xB7 ${e.count}`:""}`:"Tab"},activeTab:nn(_r(Q("Active tab","All"))),_gLinks:$0e("Links"),links:{type:"array",label:"Right links",arrayFields:{label:Q("Label"),href:_r(Q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:$0e("Style"),sticky:oe("Stick to top",!0,Jje(Qje,{}))}};import{jsx as eqe}from"react/jsx-runtime";import{StylesIcon as tqe}from"efficient-easel/icons";import{group as V0e}from"efficient-easel/screen/lib/document/box-fields";var oqe=[...Xte],Y0e={fields:_i({_gContent:V0e("Content"),eyebrow:W("Chip label",Yb.eyebrow),title:j("Heading",Yb.title),body:j("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:Se("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:W("Caption","Illustrative example"),_gStyle:V0e("Style"),chartStyle:lo("Chart style",eqe(tqe,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:XC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:XC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:XC.donut}],"bars",{columns:3,cell:Pr}),valueSuffix:nn(W("Value suffix","%"))},oqe,Aa)};import{jsx as xqe}from"react/jsx-runtime";import{group as yqe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as at,Fragment as k9,jsxs as Ld}from"react/jsx-runtime";import{useId as nqe,useState as rqe}from"react";import{InspectorUpLevel as Bk}from"efficient-easel/chrome";import{useEasel as aqe}from"efficient-easel/easel";import{ListField as Z0e}from"efficient-easel/fields";import{SettingsField as J0e}from"efficient-easel/panel";import{ClockIcon as j0e,ContrastIcon as iqe,GlobeIcon as sqe,LinkIcon as lqe,LocationIcon as dqe,PhoneIcon as cqe,SquareIcon as pqe,TypeIcon as S9}from"efficient-easel/icons";import{useSectionOps as mqe}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as uqe}from"efficient-easel/draw";var T9=(e,t)=>t||e?Tse(e,t):m("Ungrouped");function fqe(e){let t=[];return e.forEach((o,n)=>{let r=Nu(o),a=t.find(i=>i.key===r);a||(a={key:r,name:String(o?.groupName??""),indices:[]},t.push(a)),a.indices.push(n)}),t}function v9({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 Q0e={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"},hqe={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},ebe={...hqe,color:"var(--status-danger-soft-ink)"};function xm({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=nqe();return at(J0e,{label:e,icon:r??at(S9,{}),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 gqe=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],bqe=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function q0e({label:e,icon:t,options:o,value:n,onChange:r}){return at(J0e,{label:e,icon:t,children:at("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:o.map(a=>{let i=n===a.value;return at("button",{type:"button","aria-pressed":i,onClick:()=>r(a.value),style:{flex:1,padding:"6px 8px",fontSize:12,borderRadius:6,cursor:"pointer",border:`1px solid ${i?"var(--sf-accent)":"var(--line-strong)"}`,background:i?"var(--sf-accent)":"transparent",color:i?"var(--sf-on-accent)":"inherit",fontWeight:i?500:400},children:m(a.label)},a.value)})})})}function X0e({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||Rn.mapTheme,a=Rn;return Ld(k9,{children:[!o&&at(v9,{children:m("Section")}),at(xm,{label:m("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),at(xm,{label:m("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),at(xm,{label:m("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:Ld(k9,{children:[at(v9,{children:m("City strip")}),at(xm,{label:m("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),at(xm,{label:m("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),at(q0e,{label:m("Shape"),icon:at(pqe,{}),options:bqe,value:j_(e.imageShape),onChange:i=>t({imageShape:i})}),at(v9,{children:m("Map & Theme")}),at(q0e,{label:m("Map theme"),icon:at(iqe,{}),options:gqe,value:r,onChange:i=>t({mapTheme:i})})]})]})}function wqe({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((u,g)=>Nu(u)===t?g:-1).filter(u=>u>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(Nu).filter(u=>u!==t)),[d,c]=rqe(t),p=u=>o(e.map(g=>Nu(g)===t?{...g,...u}:g)),f=()=>{let u=d;if(u!==t){if(l.has(u)){c(t);return}o(e.map(g=>Nu(g)===t?{...g,group:u}:g)),a(u)}};return Ld("div",{className:"sf-locations-view",children:[at(Bk,{inline:!0,name:m("Section"),onSelect:n,title:T9(t,s)}),at(xm,{label:m("Group heading"),value:d,placeholder:m("e.g. Americas"),onChange:c,onBlur:f,onKeyDown:u=>{u.key==="Enter"&&u.currentTarget.blur()}}),l.has(d)&&d!==t&&at("p",{className:"sf-note sf-note--error",role:"alert",children:m("Another group already uses this heading \u2014 pick a different one.")}),at(xm,{label:m("Group name"),value:s,placeholder:m("Shown beside the heading"),onChange:u=>p({groupName:u})}),at(Z0e,{label:m("Cities in this group"),noun:m("city"),items:i.map(u=>e[u]),onChange:u=>o(Ese(e,t,u)),newItem:()=>({...nH,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(u,g)=>Ld("button",{type:"button",style:Q0e,onClick:()=>r(i[g]),children:[at("span",{children:u?.name||m("City")}),at("span",{"aria-hidden":"true",children:"\u203A"})]})}),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:ebe,onClick:()=>{o(e.filter(u=>Nu(u)!==t)),n()},children:pr("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function tbe({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=Sse(),r=Tie(),a=fqe(o),{appState:i,selectedItem:s}=aqe(h=>h),l=mqe(),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(uqe,b,{type:s.type,props:{...s.props,...h}})},p=(h,b)=>t(o.map((w,x)=>x===h?{...w,...b}:w)),f=()=>{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 Ld("div",{className:"sf-locations-view",children:[at(Bk,{inline:!0,name:m("Locations"),onSelect:()=>gd({level:"groups"}),title:m("Texts")}),at(X0e,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let h=o[n.index];return h?Ld("div",{className:"sf-locations-view",children:[at(Bk,{inline:!0,name:String(h.name??"")||m("City"),onSelect:()=>gd({level:"city",index:n.index}),title:m("Image")}),at(Lre,{value:h.photo||"",onChange:b=>p(n.index,{photo:b}),label:"Image",accept:"image/*"})]}):u()}if(n.level==="map"){let h=o[n.index];return h?Ld("div",{className:"sf-locations-view",children:[at(Bk,{inline:!0,name:String(h.name??"")||m("City"),onSelect:()=>gd({level:"city",index:n.index}),title:m("Map")}),at(aR,{value:h.geocode,onChange:b=>p(n.index,{geocode:b}),label:"Coordinates"}),at(xm,{label:m("Directions link"),icon:at(lqe,{}),value:String(h.mapsUrl??""),onChange:b=>p(n.index,{mapsUrl:b})})]}):u()}if(n.level==="city"){let h=n.index,b=o[h];if(!b)return u();let w=Nu(b),x=(S,k)=>p(h,{[S]:k}),v=(S,k,y,E=!1)=>at(xm,{label:k,icon:y,textarea:E,value:String(b[S]??""),onChange:T=>x(S,T)});return Ld("div",{className:"sf-locations-view",children:[at(Bk,{inline:!0,name:T9(w,String(b.groupName??"")),onSelect:()=>gd({level:"group",key:w}),title:b.name||m("City")}),v("name",m("Location name"),at(S9,{})),v("state",m("State / Province"),at(S9,{})),v("country",m("Country"),at(sqe,{})),v("address",m("Address"),at(dqe,{}),!0),v("phone",m("Phone"),at(cqe,{})),v("hours",m("Opening hours"),at(j0e,{})),v("timezone",m("Timezone chip"),at(j0e,{})),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:ebe,onClick:()=>{t(o.filter((S,k)=>k!==h)),gd({level:"group",key:w})},children:m("Delete city")})})]})}if(n.level==="group")return a.some(h=>h.key===n.key)?at(wqe,{cards:o,groupKey:n.key,onChange:t,onBack:()=>gd({level:"groups"}),onOpenCity:h=>gd({level:"city",index:h}),onNavigate:h=>gd({level:"group",key:h})},n.key):u();function u(){return Ld("div",{className:"sf-locations-view",children:[at(X0e,{props:d,setSection:c}),!r&&at(k9,{children:g()})]})}function g(){return at(Z0e,{label:m("Locations"),noun:m("group"),items:a,onChange:h=>{let b=h.find(w=>!a.some(x=>x.key===w.key));t(Pse(o,h.map(w=>w.key),w=>[{...nH,group:w,groupName:""}])),b&&gd({level:"group",key:b.key})},newItem:()=>({key:f(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:a.length===0?at("div",{style:{fontSize:12,color:"var(--ink-faint)",padding:"4px 0"},children:m("No locations yet.")}):void 0,renderRow:h=>Ld("button",{type:"button",style:Q0e,onClick:()=>gd({level:"group",key:h.key}),children:[at("span",{style:{fontWeight:500},children:T9(h.key,h.name)}),Ld("span",{style:{color:"var(--ink-faint)"},children:[pr("{n} city","{n} cities",h.indices.length)," \u203A"]})]})})}return u()}var obe={fields:{_gOffices:yqe("Offices"),dataSource:oo("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>xqe(tbe,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!BC(o))return e;let n=await HC(o,i=>{let s=q_(i.region);return[String(i.address??"").replace(/\s*\n+\s*/g,", "),i.name,String(i.state??"").trim()||s.state,String(i.country??"").trim()||s.country].map(l=>String(l??"").trim()).filter(Boolean).join(", ")}),{[bP]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>no("ContactLocations",t,e.props)};import{jsx as nbe}from"react/jsx-runtime";import{ClockIcon as vqe,TagIcon as kqe}from"efficient-easel/icons";var Sqe=[...ooe],rbe={fields:_i({title:W("Heading",iB.title),zeroText:nn(W("At zero",iB.zeroText)),endsAt:Bae("Ends",nbe(vqe,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:oe("Unit labels",!0,nbe(kqe,{}))},Sqe,Aa)};import{jsx as Hk,jsxs as Tqe}from"react/jsx-runtime";import{Suspense as Eqe,lazy as Pqe,useState as _qe}from"react";import{Button as Cqe}from"efficient-shell/ui";import{CodeIcon as Rqe}from"efficient-shell/icons/efficient";import{SettingsField as Oqe}from"efficient-easel/panel";import{iconOf as Nqe}from"efficient-easel/screen/lib/document/box-fields";var Lqe=Pqe(()=>import("./chunks/CustomHtmlCodeWindow-4OS3BLNS.js"));function Aqe({value:e,onChange:t}){let[o,n]=_qe(!1);return Tqe(Oqe,{label:m("HTML"),icon:Nqe(Hk(Rqe,{})),children:[Hk(Cqe,{variant:"secondary",onClick:()=>n(!0),children:m("Edit code")}),o?Hk(Eqe,{fallback:null,children:Hk(Lqe,{open:!0,onClose:()=>n(!1),value:typeof e=="string"?e:"",onChange:t})}):null]})}var abe={fields:{html:{type:"custom",label:"HTML",render:({value:e,onChange:t})=>Hk(Aqe,{value:e,onChange:t})}}};import{jsx as E9}from"react/jsx-runtime";import{StylesIcon as Iqe,WeightIcon as Fqe,WidthIcon as Bqe}from"efficient-easel/icons";import{keptByRow as Hqe}from"efficient-easel/screen/lib/document/style-fields";var Dqe={any:[{field:"style",set:!1},{field:"style",is:Xh}]},Mqe={not:{field:"style",is:"none"}},ibe={fields:Ie({style:lo("Style",E9(Iqe,{}),iae.map(e=>({...e,picture:pae(e.value)})),Xh,{columns:3,cell:Pr}),spacing:Hqe("sectionPaddingTop"),thickness:le("Thickness",E9(Fqe,{}),1,8,1,1,a1),...hd(a1,"thickness"),lengthPct:le("Length",E9(Bqe,{}),10,100,1,100,i1),...hd(i1,"lengthPct")},[[["thickness"],Dqe],[["lengthPct"],Mqe]]),resolveFields:(e,{fields:t})=>{let o=jC[qC(e.props.spacing)],n=Yp({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return d1(t,n)}};import{jsx as _9}from"react/jsx-runtime";import{HashIcon as zqe,StickyIcon as Wqe,TargetIcon as Uqe}from"efficient-easel/icons";import{group as lbe,select as Gqe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Mx}from"efficient-easel/screen/lib/document/device-fields";var P9={title:"On this page"},sbe={label:"Contents",defaultProps:{title:P9.title,sticky:!0}};var dbe={fields:{title:Mx("desktop",W("Heading",P9.title)),_gList:Mx("desktop",lbe("List")),[fR]:Mx("desktop",Gqe("Number",_9(zqe,{}),Bte,Hte)),markCurrent:Mx("desktop",oe("Mark the current section",!1,_9(Uqe,{}),"The row of the section a reader is in stands out as they scroll.")),_gStick:Mx("desktop",lbe(U6)),sticky:Mx("desktop",oe(U6,!0,_9(Wqe,{})))}};import{group as $qe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as C9}from"efficient-easel/screen/lib/document/device-fields";var Dk={hint:"Search questions",noMatchText:"No question matches your search."},cbe={label:"List search",defaultProps:{hint:Dk.hint,noMatchText:Dk.noMatchText}};var pbe={fields:{_gContent:C9("desktop",$qe("Content")),hint:C9("desktop",nn(W("Hint",Dk.hint))),noMatchText:C9("desktop",nn(W("No match",Dk.noMatchText)))}};import{group as ube}from"efficient-easel/screen/lib/document/box-fields";var hN={toc:"On this page"},mbe={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var fbe={fields:{_gContent:ube("Contents"),tocTitle:W("Contents heading",hN.toc),_gSections:ube("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:Se("Contents label"),heading:Se("Title"),body:Je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as hbe}from"efficient-easel/screen/lib/document/box-fields";var gbe={fields:{_gContent:hbe("Content"),eyebrow:W("Eyebrow",xu.eyebrow),title:j("Heading",xu.title),deck:j("Deck / standfirst",xu.deck),_gMeta:hbe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:Se("Label"),value:Se("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var gN=[{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."}],bbe={label:"Document Detail Cards",defaultProps:{cards:[]}};var wbe={fields:{cards:iw({type:"array",label:"Cards",arrayFields:{label:Se("Label"),value:Se("Value"),desc:Je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},gN)}};import{jsx as Kqe}from"react/jsx-runtime";import{PageIcon as Vqe}from"efficient-easel/icons";import{group as Yqe}from"efficient-easel/screen/lib/document/box-fields";var zx={metaLabel:U.label,metaValue:U.value},xbe={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var ybe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Tab label"),href:qe("Links to"),current:oe("Current page",!1,Kqe(Vqe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:Yqe("Trailing note"),metaLabel:W("Note label",zx.metaLabel),metaValue:W("Note value",zx.metaValue)}};import{jsx as jqe}from"react/jsx-runtime";import{StylesIcon as qqe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as Xqe}from"efficient-easel/screen/lib/document/box-fields";var vbe={fields:{eyebrow:W("Eyebrow",U.eyebrow),...dl("align",{access:Xqe}),eyebrowLook:ne("Look",jqe(qqe,{}),ol,A_)}};import{jsx as Sbe}from"react/jsx-runtime";import{ChevronIcon as Zqe,LinkIcon as Jqe}from"efficient-easel/icons";import{group as O9}from"efficient-easel/screen/lib/document/box-fields";var xf={num:U.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},R9=Zn.FAQ,kbe={label:"Q&A",inline:!0,fields:R9,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var Tbe="faqOnTemplate",Qqe={not:{context:Tbe,is:!0}},eXe={[Tbe]:e=>fee("FAQ",e.props??{})},tXe=new Set([qJ,...XJ]);function oXe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||tXe.has(t))}var Ebe={fields:{_gContent:O9("Content"),num:W("Number",xf.num),title:j("Heading",xf.title),linkText:W("Button",xf.link),linkHref:qe("Link"),_gQuestions:O9("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:Se("Question"),answer:Je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:O9("Layout"),defaultOpen:oe("Open first answer",!0,Sbe(Zqe,{})),openFromLink:oe("Open from a link",!1,Sbe(Jqe,{}),"A link to a question opens its answer. Each question gets an anchor made from its words, after the section's Anchor."),...R9},resolveFields:(e,{fields:t})=>{let o=ct(t,e.props.headPlacement,mt.FAQ.headRows);return _i(o,oXe(o),Qqe)},showWhenFacts:eXe};import{jsx as Ki,Fragment as bN,jsxs as rXe}from"react/jsx-runtime";import{useContext as aXe}from"react";import{SettingsField as Rbe}from"efficient-easel/panel";import{FieldSelect as Obe}from"efficient-easel/fields";import{BlogPostIcon as Nbe}from"efficient-easel/icons";import{ScreenDocumentContext as iXe}from"efficient-easel/screen/components/ScreenDocumentContext";var Pbe=wx({fetch:async(e,t)=>await Ys().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:Dn});import{useEffect as _be,useRef as nXe,useState as N9}from"react";function Dg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Wx({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=N9(null),[s,l]=N9(!1),[d,c]=N9(!1),p=nXe(!0);return _be(()=>(p.current=!0,e().then(f=>{p.current&&i(f)}),()=>{p.current=!1}),[]),_be(()=>{if(!n?.slug||a===null)return;let f=t(a,n);if(!f)return;let u=o(f);Dg(u,n)&&r(u)},[a]),{rows:a,loading:a===null,refreshing:s,errored:d,refresh:()=>{n?.slug&&(l(!0),c(!1),e(!0).then(f=>{if(!p.current)return;i(f);let u=t(f,n);u&&r(o(u))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function Cbe(e,t){return{label:t?m("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function Ux({value:e,onChange:t}){let o=aXe(iXe);return o&&!o.capabilities.hasBlog?e?.slug?Ki(sXe,{value:e,onChange:t}):Ki(bN,{}):Ki(lXe,{value:e,onChange:t})}function sXe({value:e,onChange:t}){return Ki("div",{children:Ki(Rbe,{label:m("Blog post source"),icon:Ki(Nbe,{}),hint:Ki(bN,{children:m("Linked to a blog post. This editor has no blog to pick another from; choose \u201CNone (manual)\u201D to author the section yourself.")}),children:Ki(Obe,{value:e.slug,ariaLabel:m("Blog post source"),onChange:o=>o?void 0:t(null),options:[{label:m("None (manual)"),value:""},{label:e.title||e.slug,value:e.slug}]})})})}function lXe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Wx({load:Pbe,resolve:(f,u)=>f.find(g=>g.slug===u.slug),snapshot:O1,value:e,onChange:t}),s=f=>{if(!f){t(null);return}let u=(o??[]).find(g=>g.slug===f);u&&t(O1(u))},l=e?.slug&&!(o??[]).some(f=>f.slug===e.slug),d=a?"error":r?"loading":"idle",c=m("Storefront \u2192 Blog"),p=a?m("Couldn\u2019t reach {place}.",{place:c}):r?m("Syncing from {place}\u2026",{place:c}):m("Linked to \u201C{name}\u201D",{name:e?.title||e?.slug||""});return rXe("div",{children:[Ki(Rbe,{label:m("Blog post source"),icon:Ki(Nbe,{}),hint:e?.slug?void 0:Ki(bN,{children:m("Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.",{place:c})}),children:Ki(Obe,{value:e?.slug??"",ariaLabel:m("Blog post source"),onChange:s,readOnly:n,options:[{label:m("None (manual)"),value:""},...l?[Cbe({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(f=>({label:f.title,value:f.slug}))]})}),e?.slug?Ki(pl,{status:d,statusText:p,onRefresh:i,busy:r,hint:Ki(bN,{children:m("Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.")})}):null]})}import{group as dXe}from"efficient-easel/screen/lib/document/box-fields";var jr={badge:"Featured",imageDate:U.date,category:U.category,readLabel:"0 min read",date:U.date,title:"Add a *headline* for this story.",dek:"A short summary of the featured article \u2014 one or two sentences that draw the reader in.",ctaText:"Read the story",ctaHref:pc.href},Lbe={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var cXe=["image","imageDate","date","title","dek","ctaHref"],Abe={fields:_i({source:Vo(Ux),_nBound:tt(ml(eR),tR),image:rt("Cover image","image/*"),badge:W("Badge",jr.badge),imageDate:W("Image date",jr.imageDate),_gContent:dXe("Content"),category:W("Category",jr.category),readLabel:W("Read time",jr.readLabel),date:W("Date",jr.date),title:j("Heading",jr.title),dek:j("Dek",jr.dek),ctaText:W("Button",jr.ctaText),ctaHref:qe("Link")},cXe,lw)};import{jsx as wr}from"react/jsx-runtime";import{phoneKey as Lr,tabletKey as va}from"efficient-easel/draw";import{keptByRow as uZe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as Ibe}from"react/jsx-runtime";import{OpacityIcon as pXe,StylesIcon as mXe}from"efficient-easel/icons";function Gx(){return{darken:le("Darken",Ibe(pXe,{}),pd.min,pd.max,pd.step,pd.fallback,pd.unit),darkenStyle:ne("Darken style",Ibe(mXe,{}),L2,L2[0].value)}}var uXe={"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]"},fXe=`calc(${yJ} - ${O6}*2)`,Fbe=`var(${vJ},${O6})`,Dqt=`pointer-events-none absolute inset-y-0 left-[${Fbe}] right-[${Fbe}] z-[6] mx-auto max-w-[var(${kJ},${fXe.replace(/ /g,"_")})]`;function wN(e,t){return`pointer-events-auto absolute ${uXe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function Bbe(e){return a_.includes(e)?e:null}import{parseOption as L9}from"efficient-shell/format";var hXe=a_,A9="top-right",gXe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],I9=["cards","dots","numbers","bar","squares"],xN="cards",yN={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},vN=["tabs","largeTabs"],Hbe=!0;function kN(e){return L9(gXe,xN,e)}function Dbe(e){return L9(I9,xN,e)}function bXe(e){return L9(hXe,A9,e)}var Mbe={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 zbe(e,t){return wN(bXe(t),Mbe[kN(e)])}function Wbe(e){return`flex ${Mbe[kN(e)]}`}function Ube(e){return e.shown!==!1&&(e.count??0)>1}function wXe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function xXe(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 Gbe(e,t){let o=Array.from(t,wXe);return xXe(e,o)?e:o}import{deviceField as Ad}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as fZe,ClockIcon as hZe,CropIcon as Pwe,GapIcon as gZe,MediaLayoutStackedIcon as Bwe,LineBetweenIcon as bZe,LineSolidIcon as wZe,ListIcon as xZe,NumberedListIcon as _we,ShadowIcon as yZe,StylesIcon as Cwe,TableIcon as Rwe,TargetIcon as vZe,WrapIcon as Hwe}from"efficient-easel/icons";var zg=s_.map(e=>e.shape),B9=e=>e!==Js&&zg.includes(String(e??""))?e:null;function Mg(e){return B9(e)??(su(e)?Js:"auto")}function SN(e){let t=Mg(e);return t==="auto"?"":Fh(t)}function $be(e,t,o){return FJ({desktop:e,phone:F9(t)!==null?t:o,tablet:o})}var yXe={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)]"},vXe={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 kXe(e,t){let o=Mg(t);return o==="auto"&&B9(t)===null?null:o===Js?t===e?null:o:o===Mg(e)?null:o}var SXe={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 F9(e){let t=Mg(e);return t==="auto"&&B9(e)===null?null:t}function Kbe(e,t,o){let n=F9(o),r=kXe(e,F9(t)!==null?t:o);if(r===null&&n===null)return SN(e);let a=Mg(e);return[r===null?SN(e):a==="auto"?"":yXe[a],r===null?"":vXe[r],n===null?"":SXe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as Dwe,VIEW_KEY_ACCESS as Xc,group as Ug,phoneTwinFields as Zc}from"efficient-easel/screen/lib/document/box-fields";var TXe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},EXe=v2.map(e=>({value:e.value,picture:IC(TXe[e.value])}));function TN(e,t){return lo("Separator",e,EXe,t,{resolve:jX})}import{jsx as PXe}from"react/jsx-runtime";import{cloneElement as _Xe}from"react";import{PaddingXIcon as CXe}from"efficient-easel/icons";import{deviceField as RXe}from"efficient-easel/screen/lib/document/device-fields";function Vbe(){let e=ne(Rie,PXe(CXe,{}),$Q,KQ);return RXe("desktop",{...e,render:t=>{let o=e.render({...t,value:T_(t.value),onChange:n=>t.onChange(YQ(n))});return _Xe(o,{hint:m(VQ)})}})}import{newNodeId as H9}from"efficient-easel/draw";var Ybe=["First row","Second row","Third row"],OXe="Write the words for this row.",jbe=e=>({type:"Text",props:{...$e,id:H9("Text"),tag:"p",text:e}}),NXe=(e,t)=>({type:fe,props:{...Ue,id:H9(fe),...t?{startsOpen:!0}:{},rowTitle:[jbe(e)],content:[{type:"Text",props:{...Rt,id:H9("Text"),tag:"p",text:OXe}}]}}),LXe=e=>!Array.isArray(e)||e.length===0;function qbe(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:Ybe.map((r,a)=>NXe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==fe||!LXe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(Ybe[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[jbe(i)]}}});return o?{...e,content:n}:e}import{parseOption as AXe}from"efficient-shell/format";var Mk="rowStyle",IXe=["plain","numbered","chevron"],Xbe=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function Zbe(e){return AXe(IXe,"plain",e)}var EN="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",PN="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",_N="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",Jbe="border-t border-line",Qbe="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",ewe="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as FXe}from"efficient-easel/screen/lib/content/view-tiers";var CN=Zn.Flex,twe={label:"Box",fields:CN,phoneOrder:{prop:FXe("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 owe}from"react/jsx-runtime";import{isNode as BXe}from"efficient-easel/data";import{useEasel as HXe}from"efficient-easel/easel";import{PhoneOrderField as DXe}from"efficient-easel/fields";import{slotChildRowName as MXe}from"efficient-easel/draw";import{deviceField as zXe}from"efficient-easel/screen/lib/document/device-fields";function WXe(){try{let e=HXe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!BXe(a)||typeof t[a.type]?.render!="function"?!1:Tr(a.props?.id)!==void 0):[],r=n.map(a=>a.props.id);return{blocks:n,ids:r,labelOf:a=>t[a]?.label??a}}catch{return null}}function UXe({value:e,onChange:t,readOnly:o}){let n=WXe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return owe(DXe,{stored:"ids",value:e,ids:a,onChange:t,readOnly:o,noun:"block",hint:m("The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."),itemLabel:s=>MXe(r[s],i,Po,void 0,Zae)})}function nwe(){return zXe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>owe(UXe,{value:e,onChange:t,readOnly:o})})}import{jsx as Gk}from"react/jsx-runtime";import{SettingsDefaultReset as QXe,SettingsField as eZe}from"efficient-easel/panel";import{Segmented as tZe}from"efficient-shell/ui";import{SwapIcon as oZe}from"efficient-easel/icons";import{describedAs as nZe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as rZe}from"efficient-easel/screen/lib/document/device-fields";var zk="Mirror cards",Wk="off",D9=[{value:Wk,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],rwe={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function yf(e){return e==="even"||e==="odd"?e:null}function awe(e){return yf(e)??void 0}function Uk(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function Wg(e,t,o){return!t||e.direction!=="row"||o||eu("row",e.separator)||e.loop==="scroll"||e.line===!0||ps(e)||w6(e.columns)!==""||aZ(e.columnsTablet)!==""?!1:!(cs(e.share)===""&&fb(e.wrap)!=="")}function iwe(e,t){let o=yf(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var swe="view-wide:flex-row-reverse",GXe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},$Xe={left:"view-wide:text-right!",right:"view-wide:text-left!"},KXe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},VXe={start:"view-wide:items-end!",end:"view-wide:items-start!"},YXe={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!"},RN=(e,t)=>(typeof t=="string"?$s(e,t):void 0)??"";function M9(e,t,o){return e?[RN(GXe,t),RN($Xe,o)].filter(Boolean).join(" "):""}function lwe(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=JX(o,r,void 0).tablet;return[RN(KXe,o),a?YXe[a]:""].filter(Boolean).join(" ")}return t==="column"?RN(VXe,n):""}function z9(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||ps(e)?!1:w6(e.columns)===""}function ON(e,t){let o=yf(e.mirrorCards);return o&&z9(e,t)?{mirror:o}:null}import{isNodeList as hwe}from"efficient-easel/data";import{parseOption as dwe}from"efficient-shell/format";var jXe=["columns","rows-left","rows-right"],qXe=["half","third"],cwe=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],pwe=[{value:"half",label:"Half"},{value:"third",label:"One third"}],mwe=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function XXe(e){return dwe(jXe,"columns",e)}var ZXe={"rows-left":"even","rows-right":"odd"},JXe={half:"equal",third:"bigRight"};function NN(e){let t=XXe(e?.arrangement);if(t==="columns")return null;let o=dwe(qXe,"half",e?.imageWidth);return{mirror:ZXe[t],row:{share:JXe[o],phoneReverse:e?.phoneOrder==="words"}}}var uwe={ProcessSteps:{slot:"boxes",hand:NN}},fwe=(e,t,o)=>hwe(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function $x(e,t){let o=xC(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===fe&&fwe(o,Le,t)){let s=dd(e,o.props?.id)?.inCopy===!0;return ON(el(o.props??{},s),s)}let i=$s(uwe,a);if(i&&fwe(o,i.slot,t))return i.hand(o.props??{})}let n=MP(e,t),r=n&&typeof n.type=="string"?$s(uwe,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function gwe(e){let t=e?.[Le];return hwe(t)&&t.some(o=>o?.type===fe)}var bwe="mirrorCardsIdle",W9="mirrorCardsMirrors",wwe={[W9]:(e,t)=>{let o=dd(t.appState,e.props?.id);if(o===void 0)return;let n=el(e.props??{},o.inCopy),r=$x(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&Wg(a,!0,am(a).desktop)}return Wg(n,Uk(o),am(n).desktop)&&yf(n.mirrorCards)!==null},[bwe]:(e,t)=>{let o=dd(t.appState,e.props?.id);if(o===void 0)return;let n=el(e.props??{},o.inCopy);return $x(t.appState,e.props?.id)?!0:Wg(n,Uk(o),am(n).desktop)?!1:!(z9(n,o.inCopy)&&gwe(n))}};function aZe(e=!1){return D9.map(t=>({value:t.value,label:m(t.label),title:t.value===Wk?void 0:m(rwe[t.value]),disabled:e}))}function iZe({value:e,onChange:t,readOnly:o}){let n=yf(e)??Wk;return Gk(eZe,{label:m(zk),icon:Gk(oZe,{}),action:Gk(QXe,{words:ZP()?.panel,label:m(zk),changed:n!==Wk,detail:m("Off"),onReset:()=>t(void 0)}),children:Gk(tZe,{size:"sm",block:!0,label:m(zk),value:n,onChange:r=>t(awe(r)),options:aZe(o===!0)})})}function xwe(){return tt(rZe("desktop",{type:"custom",...nZe({},{type:"radio",label:zk,options:D9.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>Gk(iZe,{value:e,onChange:t,readOnly:o})}),{not:{context:bwe,is:!0}})}import{jsx as sZe}from"react/jsx-runtime";import{FilterIcon as lZe}from"efficient-easel/icons";import{deviceField as dZe}from"efficient-easel/screen/lib/document/device-fields";var kwe="showForUnoffered",Swe={[kwe]:e=>TC().length===0&&Q2(e.props?.[J2])===void 0},cZe="Show for",pZe="All";function mZe(e,t){if(!e)return;let o=TC().find(r=>r.slug===e);if(o)return{slug:o.slug,name:o.name};let n=Q2(t);return n?.slug===e?n:void 0}function Twe(){let e=ne(cZe,sZe(lZe,{}),[{label:pZe,value:""}],"");return tt(dZe("desktop",{...e,render:t=>e.render({...t,value:Q2(t.value)?.slug??"",onChange:o=>t.onChange(mZe(o,t.value))})}),{not:{context:kwe,is:!0}})}var ywe=new WeakMap;function Ewe(e,t){let o=e[J2];if(!o)return e;let n=TC(),r=Q2(t?.[J2]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=ywe.get(o);i||ywe.set(o,i=new Map);let s=`${Zne()}\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=vwe.get(e);d||vwe.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[J2]:l}),c}var vwe=new WeakMap;var Owe=MX,Nwe={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},kZe={field:"direction",is:"tabs"},SZe={field:"line",in:[!0,!1]},TZe={field:"anchor",set:!0},U9=["fixed","screen","fill"],EZe={not:{any:[{field:"sectionHeightMode",in:U9},{field:"sectionHeightModeTablet",in:U9},{field:"sectionHeightModePhone",in:U9}]}},PZe={context:"parent.line",is:!0},Gg={not:{field:"direction",is:"accordion"}},Lwe={field:"direction",is:"accordion"},Awe={any:[Gg,{not:{field:Mk,in:["numbered","chevron"]}},{field:"columns",in:[...iZ]},{field:"phoneRow",in:[...sZ]}]},Mwe="notAccordionRow",_Ze={not:{context:Mwe,is:!0}},CZe={[Mwe]:(e,t)=>t.parent?.props?.direction!=="accordion"},$9={field:"direction",is:"row",default:"row"},$g={not:dJ},Yg={all:[$9,$g,{not:{field:"separator",in:v2.map(e=>e.value)}},{not:{field:"line",is:!0}}]},RZe={field:"direction",is:"column"},zwe={all:[Yg,...["columns",va("columns")].map(e=>({not:{field:e,in:Array.from({length:RP},(t,o)=>o+CP)}}))]},OZe={all:[$g,{not:{all:[$9,{field:"separator",in:v2.map(e=>e.value)}]}}]},G9={not:{all:[Yg,{field:"columns",in:Array.from({length:RP},(e,t)=>t+CP)}]}},NZe="sharedColumnsFits",Wwe="sharedColumnsMisfit",Uwe="sharedColumnsDraws",Gwe="sharedColumnsPhoneDraws";function Vg(e,t){return el(e.props??{},dd(t.appState,e.props?.id)?.inCopy!==!1)}var LZe={[NZe]:(e,t)=>B5(Vg(e,t)),[Wwe]:(e,t)=>!B5(Vg(e,t)),[Uwe]:(e,t)=>am(Vg(e,t)).desktop,[Gwe]:(e,t)=>am(Vg(e,t)).phone};function Iwe(e){return{all:[{not:{context:Wwe,is:!0}},{any:[VB,{field:e,set:!0}]}]}}var Kg={not:{context:Uwe,is:!0}},Kx={not:{context:Gwe,is:!0}},$we="sharedRowsDraws",AZe={[$we]:(e,t)=>H5(Vg(e,t))&&$x(t.appState,e.props?.id)?.row===void 0},$k={not:{context:$we,is:!0}},IZe={any:[Kg,Kx]},K9=WX,FZe={not:{context:W9,is:!0}},Kwe="rowHanded",BZe={not:{context:Kwe,is:!0}},HZe={[Kwe]:(e,t)=>{let o=$x(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},Fwe={all:[Gg,K9,Kg,Kx,FZe]},DZe={field:"direction",is:"row"},MZe={field:"align",in:["start","center","end"]},zZe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function WZe(){let{darken:e,darkenStyle:t}=Gx();return{...Zc("darken",e,Xc),...Zc("darkenStyle",t,Xc)}}var Vwe={not:{all:[Yg,{field:va("columns"),in:Array.from({length:RP},(e,t)=>t+CP)}]}};function UZe(){let e=oe(Dwe,!1,wr(Hwe,{})),t=o=>{let n=b6(o);return n===void 0?void 0:n==="wrap"};return{...Yh(),render:o=>e.render({...o,value:t(o.value),follows:t(o.follows)??!1,onChange:n=>o.onChange(n===void 0?void 0:n?"wrap":"nowrap")})}}function GZe(){let e=oe(Dwe,!0,wr(Hwe,{})),t=o=>{let n=b6(o);return n===void 0?void 0:n==="wrap"};return{...Yh(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!lZ(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var Ywe={hint:fu},jwe={all:[K9,{any:[RZe,{all:[Yg,Vwe,{not:{all:[zwe,{field:va("share"),set:!0}]}}]}]}]},$Ze=tt(Ad("desktop",le("Narrows below",wr(Bwe,{}),zh.min,zh.max,zh.step,fu,{kind:"breakpoint"},{clear:Ywe,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),jwe);function KZe(e,t){let o=e;return!(Wh in o)||t.direction!=="column"?e:{...o,[Wh]:$Ze}}var qwe={fields:Ie({_gContent:Ug("Content"),rowTitle:CN.rowTitle,content:CN.content,_gCardDisplay:Ug("Display"),cardDisplay:iR("desktop"),cardDisplayTablet:iR("tablet"),cardDisplayPhone:iR("mobile"),showFor:Twe(),_gLayout:Ug("Layout"),direction:QC("Flex"),tabShape:lo("Tab shape",wr(Cwe,{}),vN.map(e=>({label:yN[e],value:e,picture:mae[e]})),"tabs",{columns:2,cell:Pr}),mirrorCards:xwe(),[Wh]:Ad("desktop",le("Stacks below",wr(Bwe,{}),zh.min,zh.max,zh.step,fu,{kind:"breakpoint"},{clear:Ywe,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[I2]:Vbe(),startsOpen:Ad("desktop",oe("Starts open",!1,wr(fZe,{}))),[Mk]:Ad("desktop",lo("Row style",wr(_we,{}),Xbe.map(e=>({...e,picture:e.value==="numbered"?wr(_we,{}):wr(xZe,{})})),"plain",{columns:2})),label:nn(Q("Tab name")),...di("Flex"),...Zc("justify",LC(),Xc),...Zc("align",AC(),Xc),...(()=>{let e=Zc("wrap",Yh(),Xc,{phoneRow:GZe()}),t=Zc("wrap",Yh(),Xc,{phoneRow:UZe()});return{wrap:t.wrap,[va("wrap")]:t[va("wrap")],[Lr("wrap")]:e[Lr("wrap")]}})(),[Lr("order")]:nwe(),...Zc("boxShape",yx("Box shape",wr(Pwe,{}),Pb(zg),"shape","auto"),Xc,{phoneRow:yx("Box shape",wr(Pwe,{}),Pb(zg),"shape","auto",{phoneRest:e=>Mg(e)})}),[vP]:Ad("desktop",pre(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:TN(wr(bZe,{size:18}),"none"),[zb]:Ad("desktop",lo("Card style",wr(Cwe,{}),qee.map(e=>({...e,picture:fae[e.value]})),"table",{columns:2,cell:Pr})),share:Ad("desktop",Oae()),[va("share")]:Aae(),[Lr("share")]:Lae(),[rm]:Ad("desktop",ne(ND,wr(Rwe,{}),[...Rme],U1)),[Lr(rm)]:Ad("mobile",ne(ND,wr(Rwe,{}),[...Ome],U1)),...Iae(),...Zc("blockSpacing",Nae(),Xc),line:oe("Line",!1,wr(wZe,{}),"A line across the blocks, with a dot on each."),upcoming:oe("Upcoming",!1,wr(hZe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:ne("Join",wr(gZe,{}),U_,W_),_gShadow:Ug("Shadow"),...Zc("shadow",oe("Shadow",!1,wr(yZe,{})),Xc),...Zc("fillColor",Dae(),Xc),[ua]:Yr("Fill content","colour"),[y_]:uZe("fillColor"),_gBackground:Ug("Background image"),bgImage:Ad("desktop",rt("Image","image/*")),bgImagePhone:Ad("mobile",rt("Image","image/*")),[cr]:Yr("Image content","image",{content:!0}),...WZe(),placement:fd("Content position"),_gLink:Ug("Link"),link:wf(qe("Link to")),[Xo]:qc(),_gJump:Ug("Anchor"),jumpHighlight:oe("Highlight when a link jumps here",!1,wr(vZe,{}),"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"],Owe],[[Lr("share")],{all:[Nwe,Kx]}],[[rm],Iwe(rm)],[[Lr(rm)],Iwe(Lr(rm))],[[Lr("wrap")],{all:[Nwe,$g,Kx,$k]}],[[Lr("order")],{all:[Yg,Kx,Kg]}],[["phoneRow"],Kx],[[Mk],{all:[Lwe,{not:{field:Mk,is:"chevron"}}]}],[["tabShape"],kZe],[["rowTitle","startsOpen"],_Ze],[["align","blockSpacing",va("blockSpacing"),Lr("blockSpacing")],Gg],[[va("justify"),Lr("justify")],{all:[$g,Fwe,$k]}],[[va("align"),Lr("align")],{all:[DZe,MZe,Fwe]}],[[va("wrap")],{all:[$g,G9,Vwe,Kg,Gg,$k]}],[[va("shadow"),Lr("shadow")],K9],[[va("darken"),Lr("darken"),va("darkenStyle"),Lr("darkenStyle")],{all:[Owe,zZe]}],[["separator"],$9],[[zb],{field:zb,set:!0}],[["columns"],{any:[Yg,Lwe]}],[[va("columns")],Yg],[[Wh],jwe],[[va("gap")],{all:[OZe,Awe]}],[["gap",Lr("gap")],Awe],[["justify"],{all:[$g,IZe,Gg,$k]}],[["wrap"],{all:[$g,G9,Kg,Gg,$k]}],[["share"],{all:[G9,Kg,Gg]}],[[va("share")],{all:[zwe,Kg]}],[["line"],SZe],[["upcoming"],PZe],[["jumpHighlight"],TZe],[["boxShape",va("boxShape"),Lr("boxShape")],EZe],[["direction","share",Lr("order")],BZe],[["join"],EB],[[I2],EB]]),resolveData:(e,t)=>{let o=e.props,n=o[zb];return t.changed?.[zb]===!0&&Xee(n)?{...e,props:Zee(o,n,fe,Le)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:qbe(o)}:e},resolveFields:(e,t)=>{let o=dd(t.appState,e.props?.id)?.inCopy===!0,n=o&&MP(t.appState,e.props?.id)===null;return KZe(jZe(qZe(Ewe(XZe(e,{...t,fields:Ya(t.fields,e,t)}),e.props),Vg(e,t),o),n),e.props)},showWhenFacts:{...Va,...Qae,...wwe,...HZe,...LZe,...AZe,...Swe,...CZe}},VZe=tt(qae,VB),YZe=["darken","darkenStyle",_h,Ch];function jZe(e,t){if(!t)return e;let o={...e};for(let n of YZe){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function qZe(e,t,o=!1){let n=e;return Ph in n&&ps(t)&&o?{...n,[Ph]:tt(Xae,Jae)}:!(Ph in n)||ps(t)?e:{...n,[Ph]:VZe}}function XZe(...[e,t]){let{fields:o}=t;{if(ps(Vg(e,t))){let n=Yp({fallback:{top:Ri.desktop,bottom:Ri.desktop,left:Ri.side,right:Ri.side},tablet:!0,siteSide:!0});return d1(o,n)}return e.props.padV2!==!0?d1(o,Yp({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as jg}from"react/jsx-runtime";import{ColumnsIcon as oxe,GridIcon as JZe,LayoutIcon as QZe,SlidePickerCardsIcon as eJe,WidthIcon as nxe}from"efficient-easel/icons";import{deviceField as BN}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as ZZe}from"efficient-shell/format";var V9=["grid","carousel"],Y9="grid",Xwe={grid:"Grid",carousel:"Carousel"};function Zwe(e){return ZZe(V9,Y9,e)}var LN=50,AN=80,IN=30,FN=90;function j9(e,t){let o=Cn(e);return o===void 0?t:Math.min(FN,Math.max(IN,o))}function Jwe(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 Qwe(e,t,o){return o<=0?0:((e+t)%o+o)%o}function exe(e,t){return!t||t.height<=0?null:Math.round(t.top-e.top+t.height/2)}var q9=Zn.Grid,txe={label:"Grid",fields:q9,defaultProps:{columns:"3",content:[]}};var tJe={grid:jg(JZe,{}),carousel:jg(eJe,{})},rxe={field:"layout",is:"carousel"},axe={fields:{layout:lo("Layout",jg(QZe,{}),V9.map(e=>({label:Xwe[e],value:e,picture:tJe[e]})),Y9),carouselTile:tt(BN("desktop",le("Tile width",jg(nxe,{}),IN,FN,1,LN,{kind:"size",base:"%"})),rxe),carouselTilePhone:tt(BN("mobile",le("Tile width",jg(nxe,{}),IN,FN,1,AN,{kind:"size",base:"%"})),rxe),columns:BN("desktop",le("Columns",jg(oxe,{}),1,UJ,1,$J)),mobileColumns:BN("mobile",le("Columns",jg(oxe,{}),z6,GJ,1,z6)),...di("Grid"),content:q9.content}};import{jsx as oJe}from"react/jsx-runtime";var ixe={fields:{text:j("Heading",U.heading),level:ne("Level",oJe(er,{noun:"heading"}),[{label:"H1",value:"1"},{label:"H2",value:"2"},{label:"H3",value:"3"},{label:"H4",value:"4"},{label:"H5",value:"5"},{label:"H6",value:"6"}],"2")}};import{jsx as vn}from"react/jsx-runtime";import{parseOption as nJe}from"efficient-shell/format";var X9="bottom-right",Z9=["outline","solid","square","bare"],J9="outline",sxe={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},lxe=!1,dxe=["prev","next"],cxe={prev:"Previous slide",next:"Next slide"};function rJe(e){return nJe(Z9,J9,e)}function aJe(e){return Bbe(e)??X9}var iJe="flex-row items-center gap-2";function pxe(e){return wN(aJe(e),iJe)}var sJe={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 mxe(e){return sJe[rJe(e)]}function uxe(e){return e.shown===!0&&(e.count??0)>1}function HN(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 Txe,EyeIcon as n7,HandIcon as cJe,ScrollMoveDownIcon as Exe,OpacityIcon as pJe,PhoneIcon as kxe,PlayIcon as mJe,SlideArrowsBareIcon as uJe,SlideArrowsRoundIcon as fJe,SlideArrowsSquareIcon as hJe,SlidePickerBarIcon as gJe,SlidePickerCardsIcon as bJe,SlidePickerDotsIcon as wJe,SlidePickerNumbersIcon as xJe,SlidePickerSquaresIcon as yJe,SquareIcon as Sxe,StylesIcon as vJe}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as kJe}from"efficient-shell/icons/efficient-looks";import{group as vf}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as r7,deviceNote as PJe}from"efficient-easel/screen/lib/document/device-fields";import{parseOption as fxe}from"efficient-shell/format";var Q9=["manual","timer","scroll"],hxe={manual:"Hand",timer:"Timer",scroll:"Scroll"};function MN(e){return fxe(Q9,e.autoplay===!0?"timer":"manual",e.slideChange)}var e7=25,t7=10,o7=100;function gxe(e){let t=Cn(e);return t===void 0?e7:Math.min(o7,Math.max(t7,t))}var DN=.4;function bxe(e,t,o){if(o<=0||t<=0)return{from:0,to:0,t:0,shown:0};let n=Math.max(0,e/t),r=Math.min(o-1,Math.floor(n)),a=Math.min(o-1,r+1),i=a===r?0:Math.min(1,Math.max(0,(n-r-DN)/(1-DN))),s=Math.round(i*1e4)/1e4;return{from:r,to:a,t:s,shown:s>=.5?a:r}}function wxe(e,t){let o=t/100,n=i=>String(Math.round(i*o*1e4)/1e4),r=DN/2,a=[];for(let i=0;i+1<e;i++)a.push(n(i+r),n(i+DN),n(i+1),n(i+1+r));return a.join(" ")}var lJe=["wipe"],dJe="wipe";function xxe(e){return fxe(lJe,dJe,e)}var yxe=350,zN=8;var WN=Zn.Hero,vxe={label:"Hero",drawsPictures:!0,fields:WN,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var SJe=kJe,TJe={cards:vn(bJe,{}),dots:vn(wJe,{}),numbers:vn(xJe,{}),bar:vn(gJe,{}),squares:vn(yJe,{})},EJe={outline:vn(fJe,{}),solid:vn(SJe,{}),square:vn(hJe,{}),bare:vn(uJe,{})},_Je={manual:vn(cJe,{}),timer:vn(Txe,{}),scroll:vn(Exe,{})},CJe={any:[{field:"slideChange",is:"timer"},{all:[{field:"slideChange",set:!1},{field:"autoplay",is:!0}]}]},RJe={field:"slideChange",is:"scroll"},Pxe={fields:{_dDevice:PJe(),_gContent:vf("Content"),slides:WN.slides,strip:WN.strip,_gStyle:vf("Style"),alignment:dre(),_gTexture:vf("Texture"),showTexture:oe("Show texture",kne,vn(n7,{})),textureColor:lhe,textureOpacity:le("Texture opacity",vn(pJe,{}),0,100,1,40,"%"),textureShape:ne("Texture style",vn(vJe,{}),Tne,Sne),_gLayout:vf("Layout"),...vO(),...phe,_gAutoplay:vf("Auto-slide"),slideChange:fre("Change slides",vn(mJe,{}),Q9.map(e=>({label:hxe[e],value:e,picture:_Je[e]})),"manual"),autoplayInterval:tt(le("Still time per slide",vn(Txe,{}),2,15,1,6,"s"),CJe),scrollPerSlide:tt(le("Scroll per slide",vn(Exe,{}),t7,o7,1,e7,{kind:"height",base:"%"}),RJe),_gPicker:vf("Slide picker"),showPicker:oe("Show slide picker",Hbe,vn(n7,{})),pickerShape:lo("Slide picker shape",vn(Sxe,{}),I9.map(e=>({label:yN[e],value:e,picture:TJe[e]})),xN),pickerPlacement:fd("Slide picker placement",{fallback:A9}),_gArrows:vf("Arrows"),showArrows:oe("Show arrows",lxe,vn(n7,{})),arrowsShape:lo("Arrows shape",vn(Sxe,{}),Z9.map(e=>({label:sxe[e],value:e,picture:EJe[e]})),J9),arrowsPlacement:fd("Arrows placement",{fallback:X9}),_gPhone:r7("mobile",vf("On a phone")),phoneUpDown:r7("mobile",Oe(gne,vn(kxe,{}),yne(),fne)),phoneSideways:r7("mobile",Oe(bne,vn(kxe,{}),vne(),hne)),phoneWordsTop:nf.phoneWordsTop,phoneWordsBottom:nf.phoneWordsBottom,phoneBoxGap:nf.phoneBoxGap},resolveFields:(e,{fields:t})=>{let o=e.props??{},n=MN(o),r=t.slideChange;return!r||r.currentValue===n?t:{...t,slideChange:{...r,currentValue:n}}}};import{jsx as Cxe}from"react/jsx-runtime";import{WidthIcon as Rxe}from"efficient-easel/icons";import{BOX_NUDGE_ROW as Oxe,BOX_WIDTH_ROW as i7,group as s7}from"efficient-easel/screen/lib/document/box-fields";var a7={...Zn.HeroGroup,content:{...Zn.HeroGroup.content,allow:vX}},_xe={label:yX,inline:!0,fields:a7,defaultProps:{placement:_J,nudgeX:0,nudgeY:0,content:[]}};var Nxe={fields:Ie({_gContent:s7("Content"),name:nn(sw(_r(Q("Box name",U.boxName)))),content:a7.content,_gLayout:s7("Layout"),placement:fd("Placement",{pointsFor:kae}),width:le("Width",Cxe(Rxe,{}),A6,I6,5,CJ,i7),...hd(i7,"width"),direction:QC("HeroGroup"),...di("HeroGroup"),justify:LC(),align:AC(),wrap:Yh(),_gNudge:s7("Nudge"),...cre({keys:{x:"nudgeX",y:"nudgeY"},min:-L6,max:L6,label:null,length:Oxe}),...hd(Oxe,"nudgeX"),...Yp({tablet:!0,siteSide:!0})},[[["placement"],{context:"heroGroupDepth",is:0,default:0}]]),resolveFields:(e,{fields:t,appState:o})=>{let n=typeof e.props.id=="string"?e.props.id:"";if(i_(o?.data,n)===0)return t;let r={...t};return r.width=le("Width",Cxe(Rxe,{}),A6,I6,5,RJ,i7),r}};import{jsx as Axe}from"react/jsx-runtime";import{MediaIcon as NJe,OpacityIcon as LJe}from"efficient-easel/icons";import{group as Kk}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as AJe,deviceNote as IJe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as OJe}from"efficient-shell/format";var l7=Zn.HeroSingle,Lxe={label:"Hero Single",drawsPictures:!0,fields:l7,defaultProps:{mediaType:Fa.HeroSingle,[Ia.image]:OJe,tintColor:gs,tintOpacity:0,overlay:100,overlayColor:gs,overlayPosition:$h}};var d7=qb("video",Fa.HeroSingle),FJe=qb("image",Fa.HeroSingle),Ixe=[...TO,"tintColor","tintOpacity"],Fxe={fields:pC({_dDevice:IJe(),boxNotice:CO("HeroSingle"),boxes:l7.boxes,_gStyle:Kk("Style"),overlay:le("Overlay",Axe(LJe,{}),0,100,5,100,"%"),overlayColor:X8.overlayColor,overlayPosition:X8.overlayPosition,_gLayout:Kk("Layout"),...vO({tabletNumber:!1}),_gPhone:AJe("mobile",Kk("On a phone")),phoneWordsTop:nf.phoneWordsTop,phoneWordsBottom:nf.phoneWordsBottom,phoneBoxGap:nf.phoneBoxGap,_gMedia:Kk("Media"),mediaType:Oe("Type",Axe(NJe,{}),rR,Fa.HeroSingle),mediaLayout:Rg.mediaLayout,mediaLayoutPhone:Rg.mediaLayoutPhone,...kO,videoSource:Dc.videoSource,mediaVideo:rt($2,"video/*",K2),youtubeUrl:Dc.youtubeUrl,videoPlayback:Dc.videoPlayback,videoProgress:Dc.videoProgress,poster:rt("Video poster","image/*","Upload a poster still"),_gTint:Kk("Image tint"),tintColor:pk(),tintOpacity:ck(),...mk},{parts:{media:["mediaType",...SO,"videoSource","mediaVideo","youtubeUrl","videoPlayback","videoProgress","poster"],image:Ixe,image2:vx},onlyFor:{image:[...Ixe,"_gTint",...vx],video:["videoSource","videoPlayback","videoProgress","poster"]},rules:{mediaVideo:{all:[d7,{field:"videoSource",is:"upload",default:hs}]},youtubeUrl:{all:[d7,{field:"videoSource",is:"youtube",default:hs}]},videoProgress:PO(d7),...EO(FJe)},fallback:Fa.HeroSingle})};import{jsx as Vk}from"react/jsx-runtime";import{BlockVideoIcon as HJe,ClockIcon as DJe,ImageIcon as MJe,MediaIcon as zJe,PlayIcon as WJe}from"efficient-easel/icons";import{group as UN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Vx}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as BJe}from"efficient-shell/format";var c7=Zn.HeroSlide,Bxe={label:"Hero Slide",fields:c7,defaultProps:{mediaType:Fa.HeroSlide,videoSpeed:100,[Ia.image]:BJe,tintColor:gs,overlay:0}};var ym=qb("video",Fa.HeroSlide),UJe=qb("image",Fa.HeroSlide),Hxe=[...TO,"tintColor","overlay"],Dxe={fields:pC({_gContent:UN("Content"),name:nn(sw(Q("Slide name",U.slideName))),process:nn(W("Reel label","Label")),groupNotice:CO("HeroSlide"),groups:c7.groups,_gMedia:UN("Media"),mediaType:Oe("Type",Vk(zJe,{}),rR,Fa.HeroSlide),mediaLayout:Rg.mediaLayout,mediaLayoutPhone:Rg.mediaLayoutPhone,videoSource:Dc.videoSource,mediaVideo:Vx("desktop",rt($2,"video/*",K2,{frame:"videoFrame"})),mediaVideoPhone:Vx("mobile",rt($2,"video/*",K2,{frame:"videoFramePhone"})),videoFramePhone:qp(),mediaVideoAv1:Vx("desktop",rt(mB,"video/mp4",uB)),mediaVideoAv1Phone:Vx("mobile",rt(mB,"video/mp4",uB)),youtubeUrl:Dc.youtubeUrl,videoPlayback:Dc.videoPlayback,videoProgress:Dc.videoProgress,videoSpeed:le("Playback speed",Vk(WJe,{}),25,100,5,100,"%"),loadingShows:Mae("Show while loading",Vk(DJe,{}),{frame:Vk(HJe,{}),image:Vk(MJe,{})}),videoFrame:qp(),...kO,poster:Vx("desktop",rt("Image","image/*","Choose an image")),posterPhone:Vx("mobile",rt("Image","image/*","Choose an image")),_gTint:UN("Image tint"),tintColor:pk(),overlay:ck(),...mk,_gOverlay:UN("Overlay"),overlayColor:Z8.overlayColor,overlayPosition:Z8.overlayPosition},{parts:{media:["mediaType",...SO,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoProgress","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:Hxe,image2:vx},onlyFor:{image:[...Hxe,"_gTint",...vx],video:["videoSource","videoPlayback","videoProgress","loadingShows","videoFrame"]},fallback:Fa.HeroSlide,rules:{mediaVideo:{all:[ym,{field:"videoSource",is:"upload",default:hs}]},mediaVideoPhone:{all:[ym,{field:"videoSource",is:"upload",default:hs}]},mediaVideoAv1:{all:[ym,{field:"videoSource",is:"upload",default:hs}]},mediaVideoAv1Phone:{all:[ym,{field:"videoSource",is:"upload",default:hs}]},youtubeUrl:{all:[ym,{field:"videoSource",is:"youtube",default:hs}]},videoProgress:PO(ym),videoSpeed:{all:[ym,{field:"videoSource",is:"upload",default:hs},{field:"videoPlayback",is:"background",default:V2}]},...EO(UJe),poster:{all:[ym,hB]},posterPhone:{all:[ym,hB]}}})};import{jsx as p7}from"react/jsx-runtime";import{phoneKey as GJe}from"efficient-easel/draw";import{CropIcon as Mxe,ImageIcon as $Je}from"efficient-easel/icons";import{group as m7,phoneTwinFields as KJe}from"efficient-easel/screen/lib/document/box-fields";var zxe={fields:{_gImage:m7("Image"),src:rt("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>N2(t,e.fit,e.aspect,e[GJe("aspect")])}),alt:nn(Q("Alt text")),rowField:Yr("Shows","image"),[Xo]:qc(),...KJe("aspect",yx("Aspect ratio",p7(Mxe,{}),Pb(zg),"image","16/9",{more:[Zfe(mQ)]}),void 0,{phoneRow:yx("Aspect ratio",p7(Mxe,{}),Pb(zg),"image","16/9",{phoneRest:yQ})}),fit:ne(h_,p7($Je,{}),dQ(),"cover"),focal:qp(),focalTablet:qp(),focalPhone:qp(),href:wf(qe("Link")),_gStyle:m7("Style"),grayscale:kx(),...Gx(),_gShape:m7("Shape"),corners:$ae(),...Pae(wre,"corners"),cornerSides:_ae()},resolveFields:(e,t)=>jae(Ya(t.fields,e,t),e,t),showWhenFacts:Va};import{jsx as VJe}from"react/jsx-runtime";import{group as Wxe}from"efficient-easel/screen/lib/document/box-fields";var Uxe={fields:{_gContent:Wxe("Content"),eyebrow:W("Chip label","Integrations"),title:j("Heading",`Plays well with
14
14
  *your favourite apps.*`),body:j("Body",""),apps:Gr("App chips",VJe(er,{noun:"tag"}),"App name","verbatim"),_gStat:Wxe("Stat & note"),statValue:W("Big stat","100s"),statLabel:W("Stat label",""),note:W("Footnote","")}};import{jsx as Yk}from"react/jsx-runtime";import{keptByRow as YJe}from"efficient-easel/screen/lib/document/style-fields";import{CaseIcon as jJe,OpacityIcon as qJe,PlacementIcon as XJe,TextLinesIcon as Gxe}from"efficient-easel/icons";import{group as Yx}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Jc,deviceNote as ZJe}from"efficient-easel/screen/lib/document/device-fields";var $xe={fields:{_dDevice:ZJe(),_gContent:Yx("Content"),eyebrow:W("Eyebrow",$p.eyebrow),title:j("Heading",$p.title),body:j("Subtitle",$p.body),uppercase:oe("Uppercase heading",!1,Yk(jJe,{})),_gBackground:Yx("Background images"),imageSrc:Jc("desktop",rt("Background image","image/*")),imageSrcMobile:Jc("mobile",rt("Background image","image/*")),_gLayout:Yx("Layout"),layout:lo("Text position",Yk(XJe,{}),qte.map(e=>({...e,picture:gae[e.value]})),jte,{columns:2,cell:ZC}),heightDesktop:J8("desktop"),heightMobile:J8("mobile"),copyShareDesktop:Jc("desktop",le("Text height",Yk(Gxe,{}),sl.min,sl.max,sl.step,sl.desktop,"%")),copyShareMobile:Jc("mobile",le("Text height",Yk(Gxe,{}),sl.min,sl.max,sl.step,sl.mobile,"%")),sticky:YJe("stickTop"),overlay:le("Overlay",Yk(qJe,{}),0,100,5,60,"%"),_gTextDesktop:Jc("desktop",Yx("Text style")),titleSizeDesktop:Jc("desktop",l1("Heading font size",32,120,1,96,"heading",{row:eC,view:"desktop"})),bodySizeDesktop:Jc("desktop",l1("Subtitle font size",12,28,1,17,"body",{row:tC,view:"desktop"})),_gTextMobile:Jc("mobile",Yx("Text style")),titleSizeMobile:Jc("mobile",l1("Heading font size",24,72,1,44,"heading",{row:eC,view:"phone"})),bodySizeMobile:Jc("mobile",l1("Subtitle font size",12,22,1,16,"body",{row:tC,view:"phone"})),...hd(eC,"titleSizeDesktop",{phone:!0}),...hd(tC,"bodySizeDesktop",{phone:!0}),_gButton:Yx("Button"),...Sl,buttonColor:Da("Button color","#C9A461"),buttonTextColor:Da("Button text color","#000000")}};import{jsx as Kxe}from"react/jsx-runtime";import{ColumnsIcon as JJe,StylesIcon as QJe}from"efficient-easel/icons";import{group as Vxe}from"efficient-easel/screen/lib/document/box-fields";var Yxe={fields:{_gContent:Vxe("Content"),eyebrow:W("Eyebrow",Bb.eyebrow),eyebrowLook:ne("Eyebrow style",Kxe(QJe,{}),[...ol],Up("KeyFeatures")),title:j("Heading",Bb.title),items:{type:"array",label:"Features",arrayFields:{label:Se("Feature label"),href:_r(Q("Link"))},defaultItemProps:{label:"",href:""},getItemSummary:e=>e?.label||"Feature"},_gStyle:Vxe("Style"),columns:le("Columns",Kxe(JJe,{}),2,4,1,3)}};import{jsx as eQe}from"react/jsx-runtime";import{readHidable as tQe}from"efficient-easel/draw";import{ThemeIcon as oQe}from"efficient-easel/icons";import{group as jxe}from"efficient-easel/screen/lib/document/box-fields";var GN=e=>tQe(e).text;function nQe(e){return[GN(e.address).replace(/\s*\n+\s*/g,", "),GN(e.name),GN(e.state),GN(e.country)].map(t=>t.trim()).filter(Boolean).join(", ")}var qxe={fields:{_gMap:jxe("Map"),name:Q("Location name"),state:Q("State / Province"),country:Q("Country"),address:j("Address"),geocode:Vo(aR,{label:"Coordinates"}),mapsUrl:Q("Directions link"),_gStyle:jxe("Style"),mapTheme:Oe("Map theme",eQe(oQe,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],"auto")},resolveData:async e=>{let t=e.props,o={...t,lat:Number(t.lat)||0,lng:Number(t.lng)||0};if(!BC([o]))return e;let[n]=await HC([o],nQe);return{...e,props:{...e.props,lat:n.lat,lng:n.lng,geocode:n.geocode}}}};import{jsx as aQe}from"react/jsx-runtime";import{HeightIcon as iQe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as sQe,group as lQe}from"efficient-easel/screen/lib/document/box-fields";var Xxe="auto";var $N="custom",u7="#000000";function KN(e,t){return e===$N?{reverse:!1,color:(typeof t=="string"?t.trim():"")||u7}:{reverse:e!=="off",color:null}}var VN={reverse:{type:"select",label:"Logo color",options:[{label:"Auto contrast",value:Xxe},{label:"As uploaded",value:"off"},{label:"Custom color",value:$N}]},customColor:tt(Da("Color",u7),{field:"reverse",is:$N})};var Zxe={fields:Ie({src:rt("Logo image","image/*"),alt:nn(Q("Alt text","Brand name","Read out in place of the picture, and shown if it can\u2019t load.")),href:wf(qe("Link")),heightPx:le("Height",aQe(iQe,{}),ste,lte,1,gu,"px"),...dl("align",{access:sQe}),...VN,_gText:lQe("Text"),rowField:Yr("Shows","text"),[Xo]:qc()},[[["alt"],{field:"src",set:!0}]]),resolveFields:(e,t)=>Ya(t.fields,e,t),showWhenFacts:Va};import{jsx as qk}from"react/jsx-runtime";import{BlackAndWhiteIcon as cQe,ColumnsIcon as pQe,HeightIcon as mQe,PaddingYIcon as uQe,StylesIcon as fQe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as hQe,group as Qxe}from"efficient-easel/screen/lib/document/box-fields";import{parseOption as dQe}from"efficient-shell/format";var jk="plain",f7=[{label:"Plain",value:"plain"},{label:"Cards",value:"cards"},{label:"Marks",value:"marks"},{label:"Chips",value:"chips"}],Jxe=e=>dQe(f7,jk,e);var gQe=["items","heading","bandPadding"],bQe=["look"],wQe={field:"bandPadding",set:!0},xQe={field:w2,set:!0},eye={not:{field:"look",is:"chips"}},yQe=Ie({_gContent:Qxe("Content"),dataSource:oo("Logo content","Manual"),heading:j("Heading",M_.heading),items:{type:"array",label:"Logos",arrayFields:{src:rt("Image","image/*"),alt:nn(Q("Name / alt"))},getItemSummary:e=>e.alt||e.src||"logo"},logos:tt(X6.logos,fl),template:tt(X6.template,xQe),_gStyle:Qxe("Style"),columns:le("Columns",qk(pQe,{}),3,6,1,5),logoHeight:tt(le("Logo height",qk(mQe,{}),16,72,2,28,"px"),eye),bandPadding:tt(le("Space above and below",qk(uQe,{}),16,120,4,40,"px"),wQe),grayscale:tt(oe("Black and white logos",!0,qk(cQe,{})),eye),look:lo("Logo style",qk(fQe,{}),f7.map(e=>({...e,picture:hae[e.value]})),jk,{columns:2,cell:Pr}),...dl("align",{access:hQe})},[[gQe,Aa],[bQe,kZ]]),tye={fields:yQe,resolveFields:(e,{fields:t})=>no("Logos",t,e.props,{hides:["logos"]}),resolveData:(e,t)=>{if(!t?.changed?.[w2])return e;let o=vZ(e.props);return o===e.props?e:{...e,props:o}}};import{group as Xk}from"efficient-easel/screen/lib/document/box-fields";var Oo={headNum:U.sectionNumber,headTitle:U.headingAccent,headDesc:U.body,category:U.category,metaMiddle:"Section",readLabel:"0 min read",title:"Article *headline* goes here.",dek:"A short summary of the article goes here.",quote:"A short pull quote.",quoteAttribution:"\u2014 "+U.date,ctaText:"Begin reading",ctaHref:pc.href,imageLabel:"Featured *image*",metaPublished:U.date,metaReads:"0 min"},oye={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 vQe=["image","title","dek","ctaHref","metaPublished"],nye={fields:_i({source:Vo(Ux),_nBound:tt(ml(eR),tR),_gHead:Xk("Section header"),headNum:W("Number",Oo.headNum),headTitle:j("Heading",Oo.headTitle),headDesc:j("Body",Oo.headDesc),_gMeta:Xk("Article"),category:W("Category",Oo.category),metaMiddle:W("Middle meta",Oo.metaMiddle),readLabel:W("Read time",Oo.readLabel),title:j("Article title",Oo.title),dek:j("Dek",Oo.dek),_gQuote:Xk("Pull quote"),quote:j("Quote",Oo.quote),quoteAttribution:W("Attribution",Oo.quoteAttribution),_gLink:Xk("Link"),ctaText:W("Button",Oo.ctaText),ctaHref:qe("Link"),image:rt("Image","image/*"),imageLabel:W("Image label",Oo.imageLabel),_gOverlay:Xk("Image caption"),metaPublished:W("Published",Oo.metaPublished),metaReads:W("Reads in",Oo.metaReads)},vQe,lw),resolveFields:(e,{fields:t})=>ct(t,e.props.headPlacement,mt.LongRead.headRows)};import{group as h7}from"efficient-easel/screen/lib/document/box-fields";var rye={fields:{_gContent:h7("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:h7("Media"),imageSrc:rt("Image","image/*"),_gStyle:h7("Style"),grayscale:kx()}};import{jsx as kQe}from"react/jsx-runtime";import{TextLinesIcon as SQe}from"efficient-easel/icons";import{group as g7}from"efficient-easel/screen/lib/document/box-fields";var Qc={eyebrow:U.eyebrow,lead:"A short lead paragraph introducing this section \u2014 a sentence or two about its theme.",issueHeading:"In this issue",issueTotal:"\u2014 Articles in total"},aye={label:"Issue Header",defaultProps:{eyebrow:"",issueMeta:[],lead:"",issueHeading:"",issueList:[],issueTotal:""}};var iye={fields:{_gTop:g7("Top row"),eyebrow:W("Eyebrow",Qc.eyebrow),issueMeta:{type:"array",label:"Issue meta lines",arrayFields:{lead:Se("Bold word"),rest:Se("Rest")},getItemSummary:e=>[e?.lead,e?.rest].filter(Boolean).join(" ")||"Line"},_gLead:g7("Lead"),lead:j("Lead",Qc.lead),_gIssue:g7("In this issue"),issueHeading:j("Panel heading",Qc.issueHeading),issueList:Gr("Issue lines",kQe(SQe,{}),"Line","markup"),issueTotal:W("Total line",Qc.issueTotal)}};import{jsx as kf}from"react/jsx-runtime";import{BlockColumnIcon as YN,PlacementIcon as PQe,StateIcon as _Qe,TemplateIcon as CQe,TextLinesIcon as RQe}from"efficient-easel/icons";import{group as qg}from"efficient-easel/screen/lib/document/box-fields";import{parseOption as Uto}from"efficient-shell/format";var b7=[{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"}],TQe=b7.map(e=>e.value),w7="spec-card",EQe={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 sye(e){return Ie(e,Object.entries(EQe).map(([t,o])=>[[t],Jn("variant",TQe,w7,o)]))}var OQe=[...Jte,"align"],lye={fields:_i(sye({_gContent:qg("Content"),eyebrow:W("Chip label","In the product"),title:j("Heading",`Seen from
16
16
  *the counter.*`),body:j("Body",""),_gCard:qg("Mockup card"),variant:lo("Card type",kf(CQe,{}),b7.map(e=>({...e,picture:wae[e.value]})),w7,{columns:3,cell:Pr}),cardHeader:W("Card header strip","Product record"),badge:W("Header badge","LIVE"),cardTitle:W("Card title",""),cardSubtitle:W("Card subtitle",""),pills:{type:"array",label:"Selector pills",arrayFields:{label:Q("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" ")||"Pill"},tiles:{type:"array",label:"Spec tiles",arrayFields:{label:Q("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" ")||"Tile"},rows:{type:"array",label:"Result / order rows",arrayFields:{lead:Q("Lead"),detail:Q("Detail"),state:ne("State",kf(_Qe,{}),[{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:qg("Kanban columns"),col1Title:W("Column 1 title",""),col1Cards:Gr("Column 1 cards",kf(YN,{}),"Job card label","verbatim"),col2Title:W("Column 2 title",""),col2Cards:Gr("Column 2 cards",kf(YN,{}),"Job card label","verbatim"),col3Title:W("Column 3 title",""),col3Cards:Gr("Column 3 cards",kf(YN,{}),"Job card label","verbatim"),col4Title:W("Column 4 title",""),col4Cards:Gr("Column 4 cards",kf(YN,{}),"Job card label","verbatim"),_gClaims:qg("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:qg("Terminal"),termLines:Gr("Terminal lines",kf(RQe,{}),"$ efficient \u2026","verbatim"),_gBrowser:qg("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:qg("Style"),align:ne("Mockup position",kf(PQe,{}),[{label:"Right of the copy",value:"right"},{label:"Left of the copy",value:"left"}],"right")}),OQe,Aa)};import{group as jN}from"efficient-easel/screen/lib/document/box-fields";var Xg={title:"Order summary",note:"A short reassurance note under the total."},x7=Zn.OrderSummary,dye={label:"Order Table",fields:x7,defaultProps:{eyebrow:"",title:"",rows:[],subRows:[],totalLabel:"",totalAmount:"",note:"",contained:!0}};var cye={fields:{_gContent:jN("Content"),eyebrow:W("Eyebrow",U.eyebrow),title:j("Heading",Xg.title),_gItems:jN("Items"),dataSource:oo("Order content","Manual"),rows:{type:"array",label:"Items",arrayFields:{label:Se("Item"),meta:Se("Meta line"),amount:Se("Amount")},getItemSummary:e=>e.label||"Item"},...x7,subRows:{type:"array",label:"Sub-total lines",arrayFields:{label:Se("Label"),amount:Se("Amount")},getItemSummary:e=>e.label||"Line"},_gTotal:jN("Total"),totalLabel:W("Total label","Total"),totalAmount:W("Total amount","$0,000"),note:j("Note",Xg.note),_gLayout:jN("Layout")},resolveFields:(e,{fields:t})=>no("OrderSummary",t,e.props,{hides:["rows"]})};import{jsx as Tye}from"react/jsx-runtime";import{AccentIcon as VQe,ListIcon as YQe}from"efficient-easel/icons";import{isNodeList as jQe,newId as qQe}from"efficient-easel/data";import{group as yye}from"efficient-easel/screen/lib/document/box-fields";import{jsx as hi}from"react/jsx-runtime";import{useId as mye}from"react";import{useEasel as NQe,useSelectedHost as LQe}from"efficient-easel/easel";import{CloseIcon as AQe,LinkIcon as uye,LockIcon as IQe}from"efficient-easel/icons";import{SettingsField as fye}from"efficient-easel/panel";import{deviceField as FQe,deviceNote as BQe}from"efficient-easel/screen/lib/document/device-fields";import{Input as y7}from"efficient-shell/ui";var v7=(e,t)=>t==="number"?`${ZB(e.value)} \xB7 ${m(e.label)}`:`${m(e.label)} \xB7 ${ZB(e.value)}`;function HQe(e,t){return[{type:"label",key:"heading",label:m("Live numbers")},...e.map(o=>({key:o.key,label:v7(o,"name"),onSelect:()=>t(o.key)}))]}var hye=(e,t)=>e.length?{label:m("Connect to a live number"),icon:hi(uye,{size:16}),menu:HQe(e,t)}:void 0,gye=(e,t,o)=>hi(y7,{id:e,readOnly:!0,value:t,leftIcon:hi(IQe,{size:16}),endAction:{label:m("Unlink"),icon:hi(AQe,{size:16}),onClick:()=>o("")}});function DQe({id:e,text:t,countKey:o,choices:n,onText:r,onLink:a}){let i=o?n.find(s=>s.key===o):void 0;return hi("div",{className:"sf-copybox",children:o?gye(e,i?v7(i,"number"):t,a):hi(y7,{id:e,value:t,onChange:s=>r(s.target.value),endAction:hye(n,a)})})}function MQe({id:e,countKey:t,onLink:o}){let n=Fp(x2),r=hw({[rc]:t}),a=r?n.find(i=>i.key===r):void 0;return hi("div",{className:"sf-copybox",children:r?gye(e,a?v7(a,"number"):r,o):hi(y7,{id:e,readOnly:!0,value:m("Typed by hand"),endAction:hye(n,o)})})}var bye={type:"custom",icon:hi(uye,{}),render:({value:e,onChange:t})=>hi(zQe,{value:e,onChange:t})};function zQe({value:e,onChange:t}){let o=mye();return hi(fye,{label:m("Live number"),htmlFor:o,children:hi(MQe,{id:o,countKey:typeof e=="string"?e:"",onLink:t})})}function WQe(){let e=LQe();try{return NQe(t=>vie(t.appState.data.content,e?.id))}catch{return!0}}function UQe({value:e,onChange:t}){let o=mye(),[n,r]=xc(rc),a=WQe();return hi(fye,{label:m("Body"),htmlFor:o,children:hi(DQe,{id:o,text:JC(e).text,countKey:hw({[rc]:n}),choices:a?Fp(x2):$Qe,onText:i=>t(eee("textarea",e,i)),onLink:r})})}var GQe=BQe(),$Qe=[],pye=new WeakMap;function KQe(e){let t=pye.get(e);if(!t){let o={...e,render:({value:n,onChange:r})=>hi(UQe,{value:n,onChange:r})};t=FQe("desktop",o),pye.set(e,t)}return t}function wye(e,t){if(typeof t?.[rc]!="string"||$C(t)!==null||Qn(t))return e;let o=e.text;return!o||typeof o!="object"?e:{_dDevice:GQe,...e,text:KQe(o)}}var k7=Zn.CardList,xye={label:"Card list",inline:!0,fields:k7,defaultProps:{rowField:""}};function Eye(e){return jQe(e)?e.some(t=>{let o=t.props??{};return t.type==="Text"&&typeof o[rc]=="string"&&Qn(o)?!0:Object.values(o).some(Eye)}):!1}var XQe=e=>Object.defineProperty(Object.fromEntries(e.map(t=>[t.key,""])),"key",{get:()=>qQe("row"),enumerable:!0}),vye=new WeakMap;function ZQe(e,t,o){let n=t.filter(s=>!s.everySource),r=vye.get(e);r||vye.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,Ak(d)]));o&&(s[rc]=bye);let l=n[0]?.key;i={...e,arrayFields:s,defaultItemProps:XQe(n),getItemSummary:d=>l&&typeof d?.[l]=="string"&&d[l]||m("Row")},r.set(a,i)}return i}var Pye="cardListInCardTemplate",qN={not:{context:Pye,is:!0}},JQe={...Va,[Pye]:(e,t)=>{let o=Bp(t.appState,e.props?.id);return o===void 0?void 0:o!==null}},QQe=tt({type:"array",label:"Rows",icon:Tye(YQe,{}),arrayFields:{}},{all:[qN,fl]}),eet=e=>AZ(e,"text").find(t=>!t.everySource)?.key??"title",kye=new WeakMap;function tet(e,t){let o=kye.get(e);o||kye.set(e,o=new WeakMap);let n=o.get(t);return n||o.set(t,n={...e,highlightedCard:t}),n}var oet=e=>{let t=new Set(Lh(null,{type:Mr,props:e}).map(o=>o.key));return o=>t.has(o)},Sye=new WeakMap;function net(e,t){let o=Sye.get(e);o||Sye.set(e,o=new WeakMap);let n=o.get(t);return n||o.set(t,n={...e,[nu]:t}),n}var _ye={fields:{_gSource:yye("Source"),dataSource:tt(oo("Card content","Manual"),qN),[gw]:bw(),_gCardList:yye("Card list"),rowField:Yr("Shows","list"),[nu]:QQe,highlightedCard:tt(ne("Highlighted card",Tye(VQe,{}),[{label:"None",value:""}],""),qN),highlightBadge:tt(W("Highlight badge","Most popular"),qN),...k7},resolveData:(e,t)=>{let o=e.props,n=t?.lastData?.props,r=fN(cse(o,n),nu),a=OP(r,oet(r));return a===o?e:{...e,props:a}},resolveFields:(e,t)=>{let o=e.props??{},n=no(Mr,Ya(t.fields,e,t),o),r=!!Bp(t.appState,o.id),a=n[nu];if(r||!a)return n;let i=Lh(t.appState,{type:Mr,props:o}),s=net(n,ZQe(a,i,Eye(o.template))),l=n.highlightedCard;return l?tet(s,uN(l,mN(o,{rows:nu,label:eet(i)}))):s},showWhenFacts:JQe};function ret(e){let t=typeof e?.label=="string"?e.label.trim():"",o=typeof e?.name=="string"?e.name.trim():"";return t||o}var Cye={fields:{},resolveFields:e=>({_nHostPart:ml("The section draws {what} here, in every card.",{what:ret(e.props)})})};import{group as Rye}from"efficient-easel/screen/lib/document/box-fields";var Oye={fields:{_gContent:Rye("Content"),eyebrow:W("Eyebrow",uc.eyebrow),lead:j("Lead",U.body),stats:{type:"array",label:"Stats",arrayFields:{value:Se("Number"),label:Se("Unit")},getItemSummary:e=>e.label||e.value||"Stat"},_gFounders:Rye("Founders"),foundersHeading:j("Founders heading",uc.foundersHeading),foundersBody:j("Founders statement",uc.foundersBody),attribution:W("Attribution",uc.attribution)}};import{group as Nye}from"efficient-easel/screen/lib/document/box-fields";var Lye={fields:{_gContent:Nye("Content"),heading:W("Heading",W2.heading),dataSource:oo("Payment content","Manual"),badges:{type:"array",label:"Payment methods",arrayFields:{label:Se("Name"),src:rt("Logo","image/*")},getItemSummary:e=>e.label||e.src||"Method"},assurances:{type:"array",label:"Reassurance lines",arrayFields:{text:Se("Line")},getItemSummary:e=>e.text||"Line"},_gLayout:Nye("Layout")},resolveFields:(e,{fields:t})=>no("PaymentBadges",t,e.props,{hides:["badges"]})};import{jsx as S7}from"react/jsx-runtime";import{HeightIcon as aet,ImageIcon as iet,LayoutIcon as set}from"efficient-easel/icons";import{group as det}from"efficient-easel/screen/lib/document/box-fields";var Pl={title:"Add a *headline* for this post.",excerpt:"A short summary of the post \u2014 one or two sentences.",category:U.category,date:U.date,readLabel:"0 min read"},Aye={label:"Post Card",drawsPictures:!0,defaultProps:{source:null,image:"",title:"",excerpt:"",href:"",category:"",date:"",readLabel:"",layout:P5,showCover:!0,placement:"bottom-left",darken:55,darkenStyle:L2[0].value,minHeight:wl.fallback}};var Iye={field:"layout",is:"cover"},cet={not:Iye},pet=["placement","darken","darkenStyle","minHeight","_gTint"],met=["showCover"],uet=["image","title","excerpt","href"],Fye={fields:Ie({source:Vo(Ux),image:rt("Cover image","image/*"),title:j("Heading",Pl.title),excerpt:j("Excerpt",Pl.excerpt),href:qe("Link"),category:W("Category",Pl.category),date:W("Date",Pl.date),readLabel:W("Read time",Pl.readLabel),layout:lo("Card layout",S7(set,{}),cme.map(e=>({...e,picture:uae[e.value]})),P5,{columns:2,cell:ZC}),showCover:oe("Show cover image",!0,S7(iet,{})),placement:fd("Text position"),minHeight:le("Card height",S7(aet,{}),wl.min,wl.max,wl.step,wl.fallback,wl.length),_gTint:det("Image tint"),...Gx()},[[pet,Iye],[met,cet],[uet,lw]])};import{jsx as Zk}from"react/jsx-runtime";import{ColumnWidthsIcon as fet,ColumnsIcon as het,LayoutIcon as get,MediaLayoutStackedIcon as bet,PlacementIcon as wet}from"efficient-easel/icons";import{deviceField as xet}from"efficient-easel/screen/lib/document/device-fields";import{group as Hye,section as Dye}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as yet}from"efficient-easel/screen/lib/document/field-buckets";import{isNodeList as Wye}from"efficient-easel/data";var jx={num:U.sectionNumber,title:U.headingAccent,description:U.body,cta:U.viewAll},XN=Zn.ProcessSteps,Bye={label:"Image & Text Columns",drawsPictures:!0,fields:XN,defaultProps:{num:"",title:"",description:"",columns:3,padTop:120,padBottom:120}};var Mye={field:"arrangement",in:["rows-left","rows-right"]},Uye="drawsLegacySteps",zye={not:{context:Uye,is:!0}},vet={[Uye]:e=>{let t=e.props??{};return!ft(t)&&!Wye(t.boxes)}},ket=e=>e?.data?.root?.props??null,Gye={fields:Ie({_gSource:Hye("Source"),dataSource:oo("Item content","Manual"),[gw]:bw(),_sHeader:Dye("Header"),_gContent:Hye("Content"),num:W("Number",jx.num),title:W("Heading",jx.title),description:j("Body",U.body),boxes:XN.boxes,[Lt]:XN[Lt],[yet.Design]:Dye("Design"),arrangement:lo("Arrangement",Zk(get,{}),cwe.map(e=>({label:e.label,hint:e.hint,value:e.value,picture:xae[e.value]})),"columns",{columns:3,cell:Pr}),imageWidth:Oe("Image width",Zk(fet,{}),pwe.map(e=>({label:e.label,value:e.value})),"half"),phoneOrder:xet("mobile",Oe("Order",Zk(bet,{}),mwe.map(e=>({label:e.label,value:e.value})),"picture")),columns:le("Columns",Zk(het,{}),2,4,1,3),...Gae(),cardText:Oe("Text position",Zk(wet,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below")},[[["cardText"],{not:{field:"boxes",set:!0}}],[["arrangement"],zye],[["imageWidth","phoneOrder"],{all:[Mye,zye]}],[["columns"],{not:Mye}]]),showWhenFacts:vet,resolveFields:(e,t)=>no(v6,ct(t.fields,e.props.headPlacement,mt.ProcessSteps.headRows),e.props,{root:ket(t.appState)}),resolveData:(e,t)=>{let o=e.props;return t?.changed?.dataSource!==!0||!ft(o)||Wye(o[Lt])?e:{...e,props:{...o,[Lt]:wZ(gZ(o,v6))}}}};import{jsx as Tet}from"react/jsx-runtime";import{SquareIcon as Eet}from"efficient-easel/icons";import{group as Pet,section as _et}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as Cet}from"efficient-easel/screen/lib/document/field-buckets";var $ye={fields:{_gContent:Pet("Content"),eyebrow:W("Eyebrow",vu.eyebrow),title:j("Heading",vu.title),body:j("Body",vu.body),[Cet.Design]:_et("Design"),topBorder:oe("Top border",!0,Tet(Eet,{}))},resolveFields:(e,{fields:t})=>ct(t,e.props.headPlacement,mt.Prose.headRows)};import{jsx as T7}from"react/jsx-runtime";import{HashIcon as Ret,StylesIcon as Kye}from"efficient-easel/icons";import{group as Vye}from"efficient-easel/screen/lib/document/box-fields";var Yye={fields:QQ({_gContent:Vye("Content"),headStyle:lo("Style",T7(Kye,{}),qQ.map(e=>({...e,picture:bae[e.value]})),jQ,{columns:3,cell:Pr}),num:W("Number",Hn.num),eyebrowLook:ne("Eyebrow style",T7(Kye,{}),[...ol],_ee),numStyle:Oe("Number style",T7(Ret,{}),[...coe],doe),title:j("Heading",Hn.title),description:j("Body",Hn.description),linkText:W("Button",Hn.linkText),linkHref:qe("Link"),_gLogo:Vye("Logo"),logoSrc:rt("Logo image","image/*"),logoAlt:nn(Q("Logo alt text","Logo description"))})};import{group as ZN}from"efficient-easel/screen/lib/document/box-fields";var ep={headNum:U.sectionNumber,headTitle:U.headingAccent,headDesc:U.body,viewLabel:"View series \u2192"},jye={label:"Recurring Columns",defaultProps:{headNum:"",headTitle:"",headDesc:"",cards:[],viewLabel:"",background:"transparent"}};var qye={fields:{_gHead:ZN("Section header"),headNum:W("Number",ep.headNum),headTitle:j("Heading",ep.headTitle),headDesc:j("Body",ep.headDesc),_gCards:ZN("Cards"),cards:{type:"array",label:"Cards",arrayFields:{num:Se("Number"),since:Se("Right Top Text"),title:Je("Title"),desc:Je("Body"),entries:Se("Entries count"),entriesLabel:Se("Button Right Text")},getItemSummary:e=>e?.title||(e?.num?`Column ${e.num}`:"Column")},_gViewLabel:ZN("Card link"),viewLabel:W("Card button",ep.viewLabel),_gStyle:ZN("Style"),background:ul("Background color",mr.Series,!0)},resolveFields:(e,{fields:t})=>ct(t,e.props.headPlacement,mt.Series.headRows)};var Xye={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 Zye}from"react/jsx-runtime";import{BackgroundIcon as Oet,ContrastIcon as Net}from"efficient-easel/icons";import{group as Jye}from"efficient-easel/screen/lib/document/box-fields";var Qye={fields:{_gContent:Jye("Content"),cells:{type:"array",label:"Strip items",arrayFields:{text:Q("Label","Label"),tone:Oe("Tone",Zye(Net,{}),[{label:"Normal",value:"normal"},{label:"Muted",value:"muted"}],"normal")},defaultItemProps:{text:"",tone:"normal"},getItemSummary:e=>e?.text||"Item",min:2,max:8},_gStyle:Jye("Style"),fill:Oe("Strip fill",Zye(Oet,{}),[{label:"Dark band",value:"dark"},{label:"None",value:"none"}],"dark")}};import{jsx as JN}from"react/jsx-runtime";import{CaseIcon as Let,OpacityIcon as eve,PlacementIcon as Aet}from"efficient-easel/icons";import{group as qx,section as tve}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as Iet}from"efficient-easel/screen/lib/document/box-fields";var ove={fields:{_sText:tve("Text column"),_gContent:qx("Content"),eyebrow:W("Eyebrow",Gp.eyebrow),title:j("Heading",Gp.title),body:j("Body",Gp.body),uppercase:oe("Uppercase heading",!1,JN(Let,{})),...NC("textAlign",{access:Iet}),_gButton:qx("Button"),...Sl,_gTextBg:qx("Background image"),textBgSrc:rt("Background image","image/*"),overlay:le("Overlay",JN(eve,{}),0,100,5,60,"%"),_sImage:tve("Image column"),_gImage:qx("Image"),imageSrc:rt("Image","image/*"),reverse:Oe("Image side",JN(Aet,{}),[{label:"Image left",value:!1},{label:"Image right",value:!0}],!1),_gImageBtn:qx("Overlay button"),imageBtnText:W("Overlay button",Q_.text),imageBtnHref:qe("Overlay button link"),_gStyle:qx("Style"),grayscale:kx(),imageOverlay:le("Image overlay",JN(eve,{}),0,100,5,40,"%")}};import{jsx as Fet}from"react/jsx-runtime";import{ColumnsIcon as Bet}from"efficient-easel/icons";import{group as nve}from"efficient-easel/screen/lib/document/box-fields";var rve={fields:{_gContent:nve("Content"),heading:W("Heading","By the *numbers*"),items:{type:"array",label:"Stats",arrayFields:{value:Se("Value"),label:Se("Label")},getItemSummary:e=>e.label||e.value||"stat"},columns:le("Columns",Fet(Bet,{}),2,4,1,4),_gStyle:nve("Style"),background:ul("Background color",mr.Stats)}};import{jsx as Het}from"react/jsx-runtime";import{AccentIcon as Det}from"efficient-easel/icons";import{group as ive}from"efficient-easel/screen/lib/document/box-fields";var Sf={eyebrow:U.eyebrow,title:U.headingAccent,desc:U.body},ave={label:"Stats with Text",defaultProps:{eyebrow:"",title:"",desc:"",stats:[],background:hee,padTop:120,padBottom:120}};var sve={fields:{_gContent:ive("Content"),eyebrow:W("Eyebrow",Sf.eyebrow),title:j("Heading",Sf.title),desc:j("Body",Sf.desc),stats:{type:"array",label:"Stats",arrayFields:{value:Q("Number"),prefix:Q("Prefix"),suffix:Q("Unit"),supSuffix:Q("Superscript"),emphasizeAll:oe("Whole number Theme Color",!1,Het(Det,{})),label:Q("Label"),sub:Je("Body")},defaultItemProps:{value:"",prefix:"",suffix:"",supSuffix:"",emphasizeAll:!1,label:"",sub:""},getItemSummary:e=>e.label||e.value||"Stat"},_gStyle:ive("Style"),background:ul("Background color",mr.StatsParagraph,!0)},resolveFields:(e,{fields:t})=>ct(t,e.props.headPlacement,mt.StatsParagraph.headRows)};import{jsx as dve}from"react/jsx-runtime";import{ColumnsIcon as Met,StylesIcon as zet}from"efficient-easel/icons";import{group as cve}from"efficient-easel/screen/lib/document/box-fields";var Xx={eyebrow:"Feedback",title:"What people *say.*"},lve={label:"Testimonials",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var pve={fields:{_gContent:cve("Content"),eyebrow:W("Eyebrow",Xx.eyebrow),eyebrowLook:ne("Eyebrow style",dve(zet,{}),[...ol],Up("Testimonials")),title:j("Heading",Xx.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:cve("Style"),columns:le("Columns",dve(Met,{}),1,3,1,3)},resolveFields:(e,{fields:t})=>ct(t,e.props.headPlacement,mt.Testimonials.headRows)};import{jsx as QN}from"react/jsx-runtime";import{BlockBadgeIcon as Wet,BorderTopIcon as Uet,MediaLayoutInsetIcon as Get}from"efficient-easel/icons";import{group as $et}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as Ket}from"efficient-easel/screen/lib/document/style-fields";import{VIEW_KEY_ACCESS as Vet}from"efficient-easel/screen/lib/document/box-fields";function Yet(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 eL={fields:{text:j("Body",U.body),consentWords:dN("text"),[rc]:Ket("text"),...dl("align",{access:Vet}),tone:_O(),_gText:$et("Text"),rowField:Yr("Shows",["text","date"]),[Xo]:qc(),[Ree]:tt(Oe("Place",QN(Wet,{}),[{label:"In the card",value:"",picture:QN(Get,{})},{label:"On the top line",value:"top-line",picture:QN(Uet,{})}],""),{not:{context:q6,is:!0}}),tag:ne("HTML tag",QN(er,{noun:"heading"}),[{label:"Paragraph",value:"p"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"}],"p")},resolveFields:(e,t)=>Yet(wye(cN(Ya(t.fields,e,t),e.props,"text"),e.props),e.props),showWhenFacts:{...Va,[q6]:(e,t)=>{let o=Bp(t.appState,e.props?.id);return o===void 0?void 0:!Hb(o?.type)}}};import{jsx as Jk}from"react/jsx-runtime";import{GapIcon as jet,LineBetweenIcon as qet,SquareIcon as Xet,StylesIcon as Zet,TextSizeIcon as Jet}from"efficient-easel/icons";import{group as mve}from"efficient-easel/screen/lib/document/box-fields";var uve={fields:{_gContent:mve("Content"),items:iw(Gr(KB.label,KB.icon,"item","markup"),XP),_gStyle:mve("Style"),tone:Oe("Style",Jk(Zet,{}),[{label:"Solid",value:"scrim"},{label:"Plain",value:"plain"}],"scrim"),borders:oe("Hairline borders",!0,Jk(Xet,{})),size:Oe("Text size",Jk(Jet,{}),[...UX],TP),separator:TN(Jk(qet,{}),EP),join:ne("Join",Jk(jet,{}),U_,W_)}};import{jsx as fve}from"react/jsx-runtime";import{ClockIcon as Qet,EyeIcon as ett}from"efficient-easel/icons";import{group as hve,section as tL}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as gve}from"efficient-easel/screen/lib/document/field-buckets";var bve={field:"layout",is:"track"},ttt={not:bve},wve={fields:Ie({[gve.Layout]:tL("Layout"),layout:lo("Display",fve(ett,{}),[{label:"Split",hint:"Split (editorial aside)",value:"split",picture:s1.split},{label:"Spine",hint:"Spine (single rail)",value:"spine",picture:s1.spine},{label:"Alternating",hint:"Alternating (zig-zag)",value:"alternating",picture:s1.alternating},{label:"Track",hint:"Track (year rail)",value:"track",picture:s1.track}],"split",{columns:2,cell:Pr}),[gve.Design]:tL("Design"),background:ul("Background color",mr.TimelineTrack),_sHeader:tL("Header"),_gContent:hve("Content"),eyebrow:W("Eyebrow",rl.eyebrow),title:j("Heading",rl.title),intro:j("Intro",rl.intro),imageSrc:rt("Image","image/*"),imageCaption:W("Image caption",rl.imageCaption),imageMeta:W("Image meta",rl.imageMeta),_gButton:hve("Button"),...Sl,_sEntries:tL("Timeline entries"),entries:{type:"array",label:"Entries",arrayFields:{date:Se("Sub-title"),title:Je("Title"),body:Je("Body")},defaultItemProps:{date:"",title:"",body:""},getItemSummary:e=>e?.date||e?.title||"Entry"}},[[["imageSrc","imageCaption","imageMeta"],ttt],[["background"],bve]]),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,fve(Qet,{}))}}}}};import{jsx as ott}from"react/jsx-runtime";import{ClockIcon as ntt}from"efficient-easel/icons";import{section as Qk}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as xve}from"efficient-easel/screen/lib/document/field-buckets";var yve={fields:{_sHeader:Qk("Header"),eyebrow:W("Eyebrow",al.eyebrow),title:j("Heading",al.title),intro:j("Body",al.intro),_sEntries:Qk("Milestones"),entries:{type:"array",label:"Milestones",arrayFields:{date:Q("Year"),title:Je("Title"),blurb:Je("Body"),future:oe("Upcoming",!1,ott(ntt,{}))},defaultItemProps:{date:"",title:"",blurb:"",future:!1},getItemSummary:e=>e?.date||e?.title||"Milestone"},_sButton:Qk("Button"),...Sl,[xve.Design]:Qk("Design"),background:ul("Background color",mr.TimelineTrack),[xve.Layout]:Qk("Layout")},resolveFields:(e,{fields:t})=>ct(t,e.props.headPlacement,mt.TimelineTrack.headRows)};import{jsx as rtt}from"react/jsx-runtime";import{StylesIcon as att}from"efficient-easel/icons";import{group as vve}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as itt}from"efficient-easel/screen/lib/document/box-fields";var kve={fields:{_gContent:vve("Content"),title:j("Heading",nC.title),buttons:{type:"array",label:"Buttons",arrayFields:{label:Q("Button"),href:_r(Q("Button link")),variant:ne("Style",rtt(att,{}),[{label:"Filled",value:"primary"},{label:"Outline",value:"outline"}],"outline")},defaultItemProps:{label:"",href:"#",variant:"outline"},getItemSummary:e=>e?.label||"Button"},_gStyle:vve("Style"),...dl("buttonsAlign",{fallback:"right",access:itt})},resolveFields:(e,{fields:t})=>{let o=JC(e.props.title);if(!(!o.hidden&&o.text.trim()))return t;let{buttonsAlign:n,buttonsAlignPhone:r,...a}=t;return a}};import{jsx as ltt}from"react/jsx-runtime";import{jsx as tp,jsxs as E7}from"react/jsx-runtime";var P7={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 Sve({eyebrow:e,title:t,body:o,ctaText:n,ctaHref:r,imageSrc:a,contained:i,overlay:s=60,pad:l}){let d=Math.min(Math.max(s,0),100)/100;return tp(Ft,{contained:i,...Re("py-6",l),children:E7("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&&E7("div",{className:"absolute inset-0","aria-hidden":!0,children:[tp(Ob,{children:tp(stt,{src:Ni(a)})}),tp("div",{className:"absolute inset-0",style:{background:ma(d)}})]}),E7("div",{className:"relative z-[1] flex max-w-[680px] flex-col gap-5",style:a?Zs:void 0,children:[e&&tp(ut,{text:e}),t&&tp("h2",{className:`font-heading2 ${P7.headingMedium} font-medium leading-[1.05] tracking-[-0.03em] ${P7.headingMediumUpTo800}`,children:re(t,!1)}),o&&Dt(o).map((c,p)=>tp("p",{className:`${P7.body} leading-[1.6] opacity-85`,children:N(c)},p)),n&&tp("div",{className:"mt-2 self-start",children:tp(ya,{href:r||"#",variant:"primary",children:N(n)})})]})]})})}function stt({src:e}){let t=to(e);return tp(Kp,{src:t.src,...t.srcSet?{srcSet:t.srcSet,sizes:U2}:{},alt:"",className:"h-full w-full object-cover"})}var Tve={...ioe,render:e=>{let{eyebrow:t,title:o,body:n,imageSrc:r,ctaText:a,ctaHref:i,contained:s,overlay:l,editor:d}=e,c=li(a,i,d);return ltt(Sve,{eyebrow:C(t,ku.eyebrow,d),title:C(o,ku.title,d),body:C(n,ku.body,d),imageSrc:r,overlay:typeof l=="number"?l:60,ctaText:c.text,ctaHref:c.href,contained:s,pad:et("Banner",e)})}};import{jsx as _ve}from"react/jsx-runtime";import{jsx as Zx,jsxs as _7,Fragment as dtt}from"react/jsx-runtime";import{Fragment as ctt}from"react";var ptt={16:"max-view-tablet:py-4"},Eve=e=>f_({values:Wr(e,Hh,!0),frame:u_(e_),drawsFrame:!0},!0).root;function Pve({items:e,current:t,meta:o,editing:n=!1,pad:r}){let a=be(),i=(e??[]).filter(d=>d?.label?.trim()),s=t?.trim()?[...i,{label:t}]:i,l=s.length>0?s:n?[{label:m("Breadcrumb")}]:[];return l.length===0&&!o?null:Zx("nav",{className:ge(["border-b border-line px-[var(--sf-site-gutter,40px)]",r?null:O2.all[e_.top],"font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.2em] text-fg-dim max-view-tablet:px-[min(20px,var(--sf-site-gutter,40px))]",r?r.className:ptt[e_.topPhone]].filter(Boolean).join(" "),a),style:r&&Object.keys(r.style).length?r.style:void 0,...r?.attrs,children:_7("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 _7(ctt,{children:[c>0&&Zx("span",{className:"opacity-40",children:"/"}),d.href&&!p?Zx(xt,{newTab:"auto",href:d.href,className:"hover:text-fg",children:Jo(d.label)}):Zx("span",{className:p?"text-fg":void 0,children:Jo(d.label)})]},c)}),o&&_7(dtt,{children:[Zx("span",{className:"opacity-40",children:"\xB7"}),Zx("span",{children:N(o)})]})]})})}var mtt=()=>[{label:m("Home"),href:"/"},{label:m("Section"),href:""}],Cve={...E0e,render:e=>{let{items:t,meta:o,editor:n}=e,r=a=>_ve(Pve,{items:Me(t,mtt(),n),current:typeof a=="string"?a:void 0,meta:C(o,sN.meta,n),editing:n?.isEditing,pad:Eve(e)});return Qn(e)?_ve(ll,{type:"Breadcrumb",props:e,children:a=>r(a.currentCrumb)}):r()}};import{jsx as C7,Fragment as Dtt}from"react/jsx-runtime";import{jsx as oL}from"react/jsx-runtime";import{ArrowLongRightIcon as utt,ArrowRightIcon as ftt,ArrowUpRightIcon as htt,BagIcon as gtt,CarIcon as btt,CartIcon as wtt,ChatIcon as xtt,ChevronLeftIcon as ytt,ChevronRightIcon as vtt,DownloadIcon as ktt,EmailIcon as Stt,ExternalIcon as Ttt,LocationIcon as Ett,PackageIcon as Ptt,PhoneIcon as _tt,PlayIcon as Ctt,ReceiptRefundIcon as Rtt,SearchIcon as Ott,ShieldCheckIcon as Ntt,TagIcon as Ltt,TruckIcon as Att,WheelIcon as Itt}from"efficient-shell/icons/efficient";var Ftt="sf-button-block",Btt={"arrow-right":ftt,"arrow-long-right":utt,"arrow-up-right":htt,"chevron-right":vtt,external:Ttt,cart:wtt,bag:gtt,tag:Ltt,email:Stt,location:Ett,play:Ctt,download:ktt,search:Ott,car:btt,phone:_tt,wheel:Itt,chat:xtt,"chevron-left":ytt,package:Ptt,truck:Att,"shield-check":Ntt,"receipt-refund":Rtt},Htt=e=>e?` ${e}`:"";function Rve(e){let{label:t,href:o,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,widthFitPhone:f,widthFitTablet:u,buttonColor:g,buttonTextColor:h,hrefRewrite:b,blockPad:w}=e,x=pu(),v=b9(d),S=v&&v!=="none"?Btt[v]:void 0,k=v===void 0?lN(l)?{}:{arrow:null}:S?{arrow:oL(S,{size:16}),...Ik(c)==="before"?{glyphBefore:!0}:{}}:{arrow:null},y=nae(e),E=[O0e(p,f,u,{atSectionLine:!x}),y?.className??""].filter(Boolean).join(" "),T=E?{className:E}:{},_=R0e(c,p)?{spread:!0}:{},P=tae(e),I=P?P.background==="transparent"?"ghost":"primary":n,F={...P??(g?n==="ghost"?{borderColor:g}:{background:g,borderColor:g}:{}),...h?{color:h}:{},...y?.style??{},...oae(e)??{}},H=Object.keys(F).length?{style:F}:{},B=Dh(w,Dp.text);return oL(Ft,{contained:s,...B,className:`${Ftt} ${B.className}`,part:Mt("button-block"),children:oL("div",{className:`flex${r?` ${ac[r]}`:""}${Htt(zr("justify",r,a,i,{atSectionLine:!x}))}`,children:oL(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 Mtt}from"efficient-easel/draw";var Ove={...sQ,render:e=>{let{label:t,href:o,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,buttonColor:f,buttonTextColor:u,editor:g}=e,h=Object.fromEntries(Object.entries(e).filter(([k])=>k==="buttonFillOpacity"||k==="buttonBorder"||k==="buttonCorners"||k==="buttonCornerSides"||k.startsWith("buttonPadding"))),b=Pte(e),w=b?{hrefRewrite:b}:{},x=(k,y)=>C7(Rve,{label:mc(k,pc.text,g)??"",href:y,variant:n,align:r,alignTablet:a,alignPhone:i,contained:s,arrow:l,icon:d,iconPosition:c,widthFit:p,widthFitPhone:e[Mtt("widthFit")],buttonColor:f,buttonTextColor:u,...h,...w,blockPad:Wr(e)}),v=Qn(e),S=Qn(e,Xo);return!v&&!S?x(t,o):C7(ll,{type:"ButtonBlock",props:e,children:(k,y,E)=>E&&!g?.isEditing&&!(typeof k.label=="string"&&k.label.trim())?C7(Dtt,{}):x(k.label,k.href)})}};import{jsx as tS,Fragment as Bve}from"react/jsx-runtime";import{jsx as eS,Fragment as ztt,jsxs as Nve}from"react/jsx-runtime";var Lve={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))]"},Wtt="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))]",Utt="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))]",Gtt="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))]",vm={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 Ave(e,t,o,n=!1){let r=Ib(o),a=t-1,i=Math.floor(a/r)*r,s=[];return e===0&&s.push(vm.phone.tl,vm.phone.tr,vm.wide.tl),e===a&&s.push(vm.phone.bl,vm.phone.br),e===r-1&&t>=r&&s.push(vm.wide.tr),e===i&&s.push(vm.wide.bl),e===a&&(t%r===0||nL(e,t,o,n)>1)&&s.push(vm.wide.br),e===a&&t<r&&nL(e,t,o,n)>1&&s.push(vm.wide.tr),s.join(" ")}function nL(e,t,o,n){if(!n||t<1||e!==t-1)return 1;let r=Ib(o),a=t%r;return a===0?1:r-a+1}var Ive="view-wide:[grid-column:span_var(--cd-span)/span_var(--cd-span)]";function Fve({look:e,eyebrow:t,title:o,columns:n,omitHead:r=!1,editing:a=!1,cards:i,pad:s}={}){let l=be(),d=Ib(n),c=!!(t??"").trim()||!!(o??"").trim();return!a&&!c&&!i?null:eS(z,{as:"section",className:"relative z-[2] bg-surface",children:Nve("div",{...Re(ge(r?Utt:Wtt,l),s),children:[r?null:Nve(ztt,{children:[(t??"").trim()&&eS(ut,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&eS("h2",{className:`mb-9 font-heading2 ${Lve.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-7 ${Lve.headingMediumUpTo800}`,children:re(o??"",!1)})]}),i?eS("div",{className:Gtt,style:{"--cd-cols":String(d),overflowY:"visible"},children:eS(Fo,{children:i})}):null]})})}var Hve=()=>[{title:m("Card title one"),body:m("A short line about this card.")},{title:m("Card title two"),body:m("A short line about this card.")},{title:m("Card title three"),body:m("A short line about this card.")}],Dve=()=>Hve().map(e=>({[Nh.title]:e.title??"",[Nh.body]:e.body??""}));function $tt(e){return ft(e)?Vt(e,e.editor?.isEditing===!0,Dve()).rows.filter(t=>t[Nh.title]||t[Nh.body]).map(t=>({title:t[Nh.title]??"",body:t[Nh.body]??""})):null}function Ktt(e){let t=e.editor?.isEditing===!0,o=ft(e),n=H_(e);if(o){let a=Vt(e,t,Dve());return z2(D2(a.rows,a.sample?Fp(o):[]).filter(M2),n)}let r=Me(e.items,Hve(),e.editor).map(dn);return z2(D2(r).filter(a=>t||M2(a)),n)}function Vtt(e,t,o=1){let n=[`relative grid ${EQ} bg-bg`,t,o>1?Ive:""].filter(Boolean).join(" "),r=o>1?{"--cd-span":String(o)}:void 0;return tS("div",{className:n,style:r,children:e})}var Mve={...Tee,render:e=>{let t=Ge(e.headPlacement)==="own-box",o=l=>t?void 0:l,n=(e.template?.blockCount??0)>0,r=$tt(e);if(!n&&r&&!r.length)return tS(Bve,{});let a=l=>tS(Fve,{look:ms(e.eyebrowLook,e.cardStyle==="label-only"?"KeyFeatures":"Cards"),eyebrow:o(C(e.eyebrow,Fb.eyebrow,e.editor)),title:o(C(e.title,Fb.title,e.editor)),columns:e.columns,omitHead:t,editing:e.editor?.isEditing,cards:l,pad:et("Cards",e)}),{rows:i,states:s}=n?Ktt(e):{rows:[],states:[]};return n&&r&&!i.length?tS(Bve,{}):tS(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 Vtt(l,Ave(d.index,i.length,c,p),nL(d.index,i.length,c,p))},children:l=>i.length?a(l):a()})}};import{jsx as jtt}from"react/jsx-runtime";import{jsx as oS,jsxs as R7}from"react/jsx-runtime";var O7={body:"text-[length:var(--size-body,12px)]",label:"text-[length:var(--size-label,13px)]"};function zve({tabs:e,activeTab:t,links:o,sticky:n=!0,editing:r=!1}){let a=Bn(),i=(e??[]).filter(p=>p?.label?.trim()),s=i.length>0?i:r?[{label:m("Tab")}]:[],l=(o??[]).filter(p=>p?.label?.trim());if(s.length===0&&l.length===0)return null;let d=t?s.findIndex(p=>p.label.toLowerCase()===t.toLowerCase()):-1,c=d===-1?0:d;return a.scope(oS("nav",{className:Jt(`${n?`${jb} 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:R7("div",{className:"mx-auto flex max-w-[calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2)] items-stretch gap-0 overflow-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[s.map((p,f)=>{let u=f===c,g=p.count?.trim()?p.count:"";return R7("span",{className:[`relative whitespace-nowrap border-r border-line px-[22px] py-[18px] font-mono ${O7.label} uppercase tracking-[0.22em] transition-colors`,f===0?"border-l border-line":"",u?"text-fg":"text-fg-dim hover:text-fg"].join(" "),children:[Jo(p.label),g&&oS("span",{className:`ml-2 ${O7.body} text-accent opacity-70`,children:Jo(g)}),u&&oS("span",{className:"absolute inset-x-0 -bottom-px h-[2px] bg-accent"})]},f)}),l.length>0&&oS("div",{className:"ml-auto flex border-l border-line",children:l.map((p,f)=>R7(xt,{newTab:"auto",href:p.href||"#",className:`flex items-center gap-2.5 px-[22px] py-[18px] font-mono ${O7.label} uppercase tracking-[0.22em] text-fg-dim hover:text-fg`,children:[Jo(p.label)," ",oS("span",{className:"text-accent",children:"\u2197"})]},f))})]})}))}import{hidableText as qtt}from"efficient-easel/draw";var Ytt=[{label:"Archive",href:"#sub-recent-issues"},{label:"RSS",href:"/contact"}],Wve={label:"Category bar",defaultProps:{tabs:[],activeTab:"All",links:Ytt,sticky:!0}};var Xtt=()=>[{label:m("All")},{label:U.category},{label:U.category}],Uve={...Wve,render:({tabs:e,activeTab:t,links:o,sticky:n,editor:r})=>jtt(zve,{tabs:Me(e,Xtt(),r),activeTab:qtt(t),links:o,sticky:n,editing:r?.isEditing})};import{jsx as eot}from"react/jsx-runtime";import{jsx as mn,jsxs as Id}from"react/jsx-runtime";var km={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 N7(e){return Number.isInteger(e)?String(e):String(Math.round(e*10)/10)}var Gve=[100,70,46,30,19,12];function $ve(e){return`color-mix(in srgb, var(--accent) ${Gve[e%Gve.length]}%, var(--bg))`}function Ztt({data:e,suffix:t}){let o=Math.max(...e.map(n=>n.value),0)||1;return mn("div",{className:"flex w-full flex-col gap-6",children:e.map((n,r)=>Id("div",{children:[Id("div",{className:"mb-2 flex items-baseline justify-between gap-4",children:[mn("span",{className:`font-mono ${km.label} uppercase tracking-[0.14em] text-fg/60`,children:N(n.label)}),Id("span",{className:`font-display ${km.bodyLarge} font-medium text-fg`,children:[N7(n.value),t]})]}),mn("div",{className:"h-[10px] border border-line bg-bg",children:mn("div",{className:"h-full bg-accent",style:{width:`${Math.max(n.value/o*100,n.value===0?0:2)}%`}})})]},r))})}function Jtt({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 Id("svg",{viewBox:"0 0 640 300",className:"w-full",role:"img","aria-hidden":!0,children:[[.25,.5,.75,1].map(c=>mn("line",{x1:o.l,x2:640-o.r,y1:o.t+r*(1-c),y2:o.t+r*(1-c),stroke:"var(--site-line)",strokeWidth:"1"},c)),mn("line",{x1:o.l,x2:640-o.r,y1:o.t+r,y2:o.t+r,stroke:"var(--site-line)",strokeWidth:"1.5"}),mn("path",{d,fill:"var(--accent)",opacity:"0.13"}),mn("path",{d:l,fill:"none",stroke:"var(--accent)",strokeWidth:"2.5"}),s.map((c,p)=>Id("g",{children:[mn("circle",{cx:c.x,cy:c.y,r:"4",fill:"var(--accent)"}),Id("text",{x:c.x,y:c.y-12,textAnchor:"middle",className:"font-display",fontSize:"14",fill:"var(--fg)",children:[N7(e[p].value),t]}),mn("text",{x:c.x,y:288,textAnchor:"middle",className:"font-mono",fontSize:"10",letterSpacing:"0.1em",fill:"var(--fg)",opacity:"0.55",children:e[p].label.toUpperCase()})]},p))]})}function Qtt({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:$ve(l)};return a+=d*r,c});return Id("div",{className:"flex w-full flex-wrap items-center justify-center gap-10",children:[mn("svg",{viewBox:"0 0 200 200",className:"w-[220px] max-w-full -rotate-90",role:"img","aria-hidden":!0,children:i.map((s,l)=>mn("circle",{cx:"100",cy:"100",r:n,fill:"none",stroke:s.ink,strokeWidth:"34",strokeDasharray:`${s.dash} ${r-s.dash}`,strokeDashoffset:-s.off},l))}),mn("ul",{className:"flex min-w-[200px] flex-1 flex-col gap-3",children:e.map((s,l)=>Id("li",{className:"flex items-baseline gap-3",children:[mn("span",{"aria-hidden":!0,className:"h-[10px] w-[10px] flex-shrink-0 rotate-45",style:{background:$ve(l)}}),mn("span",{className:`flex-1 font-mono ${km.label} uppercase tracking-[0.12em] text-fg/60`,children:N(s.label)}),mn("span",{className:`font-display ${km.bodySmall} font-medium text-fg`,children:t?`${N7(s.value)}${t}`:`${Math.round(s.value/o*100)}%`})]},l))})]})}function Kve({eyebrow:e,title:t,body:o,chartStyle:n,items:r,valueSuffix:a,caption:i,editing:s=!1,omitHead:l=!1,pad:d}={}){let c=be(),p=(a??"").trim()===""?"":a??"",f=(r??[]).map(b=>({label:(b.label??"").trim(),value:parseFloat(b.value??"")})).filter(b=>s?!0:b.label&&Number.isFinite(b.value)).map(b=>({label:b.label||"\u2014",value:Number.isFinite(b.value)?b.value:0})),u=!l&&(!!(e??"").trim()||!!(t??"").trim());if(!s&&!u&&f.length===0)return null;let g=n??"bars",h=f.length===0?null:g==="line"&&f.length>1?mn(Jtt,{data:f,suffix:p}):g==="donut"?mn(Qtt,{data:f,suffix:p}):mn(Ztt,{data:f,suffix:p});return l?h?mn("div",{className:"w-full",children:h}):null:mn(z,{as:"section",className:"relative z-[2] border-y border-line bg-surface",children:Id("div",{...Re(ge("mx-auto grid max-w-[var(--sf-site-width,1600px)] items-center gap-14 px-[var(--sf-site-gutter,40px)] py-[76px] min-[960px]:[grid-template-columns:minmax(0,5fr)_minmax(0,7fr)] max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",c),d),children:[Id("div",{children:[(e??"").trim()&&mn("span",{className:`inline-block bg-accent px-3.5 py-1.5 font-mono ${km.labelLarge} font-semibold uppercase tracking-[0.16em] text-bg`,children:N(e??"")}),(t??"").trim()&&mn("h2",{className:`mt-5 font-heading2 ${km.headingMedium} font-medium uppercase leading-[1.04] tracking-[-0.02em] text-fg ${km.headingMediumUpTo800}`,children:re(t??"",!1)}),(o??"").trim()&&mn("p",{className:`mt-5 max-w-[46ch] ${km.bodySmall} leading-relaxed text-fg/65`,children:o})]}),Id("div",{children:[h,(i??"").trim()&&mn("p",{className:`mt-4 font-mono ${km.labelSmall} uppercase tracking-[0.14em] text-fg/40`,children:i})]})]})})}var tot=()=>[{label:m("Before"),value:"9"},{label:m("After"),value:"3"},{label:m("With us"),value:"1"}],Vve={...Zte,render:e=>{let{eyebrow:t,title:o,body:n,items:r,caption:a,chartStyle:i,valueSuffix:s,headPlacement:l,editor:d}=e,c=Ge(l)==="own-box",p=f=>c?void 0:f;return eot(Kve,{eyebrow:p(C(t,Yb.eyebrow,d)),title:p(C(o,Yb.title,d)),body:p(cn(n)),items:Me(r,tot(),d),chartStyle:i,valueSuffix:cn(s),caption:p(cn(a)),editing:d?.isEditing,omitHead:c,pad:et("Chart",e)})}};import{jsx as B7,Fragment as Sot}from"react/jsx-runtime";import{jsx as Gt,jsxs as Es,Fragment as Zve}from"react/jsx-runtime";import{useEffect as uot,useState as fot}from"react";import{useRootIsDark as hot}from"efficient-shell/theme";import{jsx as Yve,jsxs as jve}from"react/jsx-runtime";var L7={headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function rL({groupKey:e,name:t,count:o}){return jve("div",{className:"mb-5 flex items-end justify-between gap-4 border-b border-line pb-4",children:[Yve("span",{className:`font-mono ${L7.labelLarge} uppercase tracking-[0.3em] text-accent`,children:e}),t?Yve("span",{className:`font-heading3 ${L7.headingSmall} font-medium uppercase tracking-[-0.01em]`,children:t}):null,jve("span",{className:`font-mono ${L7.labelSmall} uppercase tracking-[0.22em] text-fg-dim`,children:[o," location",o===1?"":"s"]})]})}import{jsx as nS,jsxs as A7}from"react/jsx-runtime";import{useMemo as cot}from"react";import{jsx as oot,jsxs as not}from"react/jsx-runtime";import{useEffect as qve,useRef as rot,useState as Xve}from"react";import{EntityMap as aot}from"efficient-shell/map";import{watchRootTheme as iot}from"efficient-shell/format";var sot={"--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 lot(e){let[t,o]=Xve(()=>AP(e));return qve(()=>(o(AP(e)),iot(()=>o(AP(e)))),[e]),t?"light":"dark"}function dot(e){let[t,o]=Xve(!1);return qve(()=>{let n=e.current;if(!n||t)return;if(typeof IntersectionObserver>"u"){o(!0);return}let r=new IntersectionObserver(a=>{a.some(i=>i.isIntersecting)&&(r.disconnect(),o(!0))},{rootMargin:"200px"});return r.observe(n),()=>r.disconnect()},[e,t]),t}function Jx({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=rot(null),f=dot(p),u=lot(t);return not("div",{ref:p,"data-site-map":"",className:n,style:sot,children:[f&&oot(aot,{pins:e,selectedKey:r,focus:a,onSelect:i??(()=>{}),ariaLabel:o,fitTo:s,card:l,groupCrowded:d,look:"site",theme:u,cooperativeGestures:"coarse"}),c]})}var pot="relative overflow-hidden max-view-desktop:aspect-square";function mot(e,t,o){return ou(t,o)?[{key:"place",label:e,lat:t,lng:o,glyph:"",tone:""}]:[]}function I7(e,t,o,n){return e||(t?`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent([t,o,n].filter(Boolean).join(" "))}`:"")}function F7({href:e}){return nS("a",{href:e,...F_,className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.24em] text-accent transition-colors hover:text-fg",children:"Get directions\xA0\u2197"})}function aL({name:e,state:t,country:o,lat:n,lng:r,mapsUrl:a,mapTheme:i="auto",pick:s,editing:l,boxClass:d=pot,takesViewHide:c=!1}){let p=ou(n,r),f=t,u=e||"Location",g=cot(()=>mot(u,n,r),[u,n,r]),h=I7(a,e,t,o),b=A7("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:[A7("span",{className:"font-display text-[length:var(--size-body,14px)] font-medium tracking-[-0.01em]",children:[u,f?`, ${f}`:""]}),h&&nS(F7,{href:h})]});return p?nS(z,{takes:c,"data-loc-pick":s,className:d,children:nS(Jx,{pins:g,mapTheme:i,ariaLabel:u,className:"absolute inset-0",children:b})}):A7(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&&nS("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 got=zee({box:".contact-loc",lit:['.contact-loc[data-active="true"]'],first:e=>[`${e} > div:first-child`]}),Jve=e=>Tr(e?.photo)?.trim()||void 0;function Qve({value:e}){if(typeof e=="string"){let t=e.split(`