efficient-storefront-blocks 0.121.0 → 0.121.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 tj,$a as XE,$b as kq,$c as Qq,$d as RX,$e as XX,$f as RZ,$g as ib,$h as MJ,$i as Lp,$j as OQ,$k as Xo,$l as Oee,$m as mte,$n as su,A as RY,Aa as W0,Ab as dq,Ac as Fq,Ad as tb,Ae as EP,Af as V2,Ag as GZ,Ah as CJ,Ai as QJ,Aj as gb,Ak as hC,Al as xee,Am as Yee,An as Ate,B as NY,Ba as gh,Bb as tP,Bc as Bq,Bd as Q3,Be as LX,Bf as K2,Bg as $Z,Bh as v4,Bi as lb,Bj as ia,Bk as qQ,Bl as lv,Bm as jee,Bn as hl,C as Dm,Ca as el,Cb as cq,Cc as Hq,Cd as e4,Ce as IX,Cf as Co,Cg as HP,Ch as zP,Ci as JP,Cj as N4,Ck as XQ,Cl as dv,Cm as qee,Cn as Lte,D as Jd,Da as zE,Db as oP,Dc as dP,Dd as t4,De as FX,Df as OP,Dg as VZ,Dh as WP,Di as le,Dj as SQ,Dk as av,Dl as yee,Dm as K4,Dn as Nb,E as LY,Ea as xo,Eb as D2,Ec as Dq,Ed as wX,Ee as BX,Ef as bZ,Eg as KZ,Eh as _J,Ei as fe,Ej as TQ,Ek as iv,El as ae,Em as Jee,En as Ite,F as I3,Fa as $3,Fb as V0,Fc as j3,Fd as xX,Fe as HX,Ff as di,Fg as cl,Fh as RJ,Fi as Op,Fj as O4,Fk as gC,Fl as sd,Fm as AC,Fn as Fte,G as td,Ga as WE,Gb as pq,Gc as Mq,Gd as yX,Ge as DX,Gf as lc,Gg as YZ,Gh as NJ,Gi as Ee,Gj as A4,Gk as ZQ,Gl as vee,Gm as Qee,Gn as HC,H as B0,Ha as tl,Hb as mq,Hc as $2,Hd as hP,He as MX,Hf as Y2,Hg as jZ,Hh as tu,Hi as eQ,Hj as L4,Hk as JQ,Hl as kee,Hm as ete,Hn as Ob,I as Ni,Ia as vj,Ib as K0,Ic as zq,Id as vX,Ie as _p,If as AP,Ig as DP,Ih as Fo,Ii as QP,Ij as tv,Ik as QQ,Il as Ip,Im as _b,In as Bte,J as IY,Ja as L2,Jb as uq,Jc as Wq,Jd as yh,Je as PP,Jf as s4,Jg as qZ,Jh as UP,Ji as ml,Jj as I4,Jk as D4,Jl as z4,Jm as Y4,Jn as Hte,K as FY,Ka as VE,Kb as fq,Kc as Uq,Kd as Po,Ke as zX,Kf as wZ,Kg as f4,Kh as OJ,Ki as eC,Kj as ov,Kk as eee,Kl as vb,Km as tte,Kn as Dte,L as BY,La as KE,Lb as hq,Lc as Gq,Ld as gP,Le as WX,Lf as rb,Lg as h4,Lh as AJ,Li as tC,Lj as ou,Lk as tee,Ll as Uo,Lm as ote,Ln as iu,M as HY,Ma as od,Mb as nl,Mc as Vm,Md as SX,Me as Zm,Mf as xZ,Mg as X2,Mh as GP,Mi as Th,Mj as EQ,Mk as oee,Ml as TC,Mm as j4,Mn as Fp,N as DY,Na as Oi,Nb as nP,Nc as $q,Nd as bP,Ne as CP,Nf as Np,Ng as XZ,Nh as $P,Ni as ad,Nj as PQ,Nk as sv,Nl as See,Nm as cv,Nn as Rh,O as OE,Oa as Yj,Ob as Cp,Oc as Z0,Od as wP,Oe as _P,Of as yZ,Og as ZZ,Oh as LJ,Oi as tQ,Oj as nu,Ok as nee,Ol as ot,Om as nte,On as Mte,P as AE,Pa as I2,Pb as ms,Pc as J0,Pd as PX,Pe as UX,Pf as vZ,Pg as MP,Ph as IJ,Pi as Ap,Pj as lC,Pk as ree,Pl as kb,Pm as LC,Pn as zte,Q as MY,Qa as ps,Qb as gq,Qc as Vq,Qd as _t,Qe as GX,Qf as vh,Qg as JZ,Qh as k4,Qi as id,Qj as CQ,Qk as br,Ql as W4,Qm as IC,Qn as Wte,R as zY,Ra as ol,Rb as bq,Rc as Kq,Rd as CX,Re as $X,Rf as kZ,Rg as QZ,Rh as sb,Ri as oQ,Rj as _Q,Rk as bC,Rl as Hr,Rm as rte,Rn as Ute,S as H0,Sa as jj,Sb as wq,Sc as cP,Sd as L,Se as VX,Sf as SZ,Sg as eJ,Sh as Z2,Si as C4,Sj as ru,Sk as aee,Sl as Tee,Sm as ate,Sn as Gte,T as WY,Ta as Ep,Tb as xq,Tc as qq,Td as qo,Te as RP,Tf as LP,Tg as tJ,Th as FJ,Ti as nQ,Tj as RQ,Tk as wC,Tl as Eee,Tm as FC,Tn as $te,U as UY,Ua as YE,Ub as yq,Uc as X3,Ud as o4,Ue as dl,Uf as TZ,Ug as oJ,Uh as BJ,Ui as rQ,Uj as nv,Uk as iee,Ul as Pee,Um as ite,Un as Vte,V as LE,Va as qj,Vb as Y0,Vc as Xq,Vd as ne,Ve as a4,Vf as EZ,Vg as nJ,Vh as VP,Vi as yo,Vj as F4,Vk as see,Vl as EC,Vm as ste,Vn as Ab,W as F3,Wa as jE,Wb as rP,Wc as Zq,Wd as It,We as nb,Wf as PZ,Wg as rJ,Wh as HJ,Wi as ul,Wj as B4,Wk as ci,Wl as Sb,Wm as lte,Wn as Kte,X as JY,Xa as Ia,Xb as Y3,Xc as Jq,Xd as nc,Xe as KX,Xf as CZ,Xg as aJ,Xh as Fa,Xi as aQ,Xj as dC,Xk as xC,Xl as Cee,Xm as dte,Xn as Yte,Y as z0,Ya as qE,Yb as j0,Yc as Br,Yd as W,Ye as YX,Yf as _Z,Yg as iJ,Yh as pl,Yi as iQ,Yj as NQ,Yk as lee,Yl as _ee,Ym as cte,Yn as jte,Z as QY,Za as Xj,Zb as vq,Zc as us,Zd as il,Ze as jX,Zf as l4,Zg as sJ,Zh as Ve,Zi as oC,Zj as cC,Zk as wb,Zl as Ree,Zm as q4,Zn as ld,_ as ej,_a as Zj,_b as aP,_c as eb,_d as _X,_e as qX,_f as d4,_g as lJ,_h as DJ,_i as db,_j as pC,_k as wr,_l as Nee,_m as pte,_n as qte,a as R3,aa as oj,ab as F2,ac as M2,ad as eX,ae as sl,af as ZX,ag as gr,ah as dJ,ai as zJ,aj as cb,ak as AQ,al as xb,am as Aee,an as ute,ao as Xte,b as Xd,ba as nj,bb as Jj,bc as z2,bd as tX,be as xP,bf as i4,bg as IP,bh as cJ,bi as WJ,bj as nC,bk as LQ,bl as dee,bm as Lee,bn as fte,bo as J4,c as iY,ca as z3,cb as Qj,cc as iP,cd as oX,ce as NX,cf as JX,cg as FP,ch as pJ,ci as J2,cj as _4,ck as Eh,cl as yC,cm as Iee,cn as gte,co as Zte,d as wE,da as rj,db as eq,dc as Sq,dd as Z3,de as yP,df as QX,dg as c4,dh as mJ,di as KP,dj as Li,dk as mC,dl as vC,dm as U4,dn as bte,do as Jte,e as uh,ea as aj,eb as tq,ec as Tq,ed as pP,ee as rc,ef as Jm,eg as j2,eh as uJ,ei as UJ,ej as aa,ek as Ph,el as yb,em as Fee,en as wte,eo as DC,f as Zs,fa as HE,fb as ZE,fc as Eq,fd as mP,fe as n4,ff as eZ,fg as q2,fh as fJ,fi as Q2,fj as sQ,fk as IQ,fl as U,fm as Bee,fn as xte,fo as Qte,g as Js,ga as DE,gb as oq,gc as Pq,gd as nX,ge as vP,gf as ic,gg as p4,gh as fs,gi as Sh,gj as lQ,gk as FQ,gl as Z,gm as PC,gn as yte,go as eoe,h as Rn,ha as ij,hb as nq,hc as Cq,hd as rX,he as Sn,hf as tZ,hg as m4,hh as hJ,hi as S4,hj as dQ,hk as BQ,hl as Q,hm as CC,hn as Rb,ho as pv,i as N2,ia as sj,ib as jo,ic as _q,id as aX,ie as ob,if as Qm,ig as ab,ih as kh,ii as GJ,ij as pb,ik as HQ,il as ve,im as _C,in as vte,io as toe,j as EY,ja as lj,jb as rq,jc as W2,jd as J3,je as OX,jf as oZ,jg as BP,jh as g4,ji as $J,jj as mb,jk as DQ,jl as qe,jm as Tb,jn as BC,jo as ooe,k as O2,ka as ME,kb as Qd,kc as U2,kd as iX,ke as kP,kf as NP,kg as u4,kh as gJ,ki as At,kj as uQ,kk as MQ,kl as Je,km as Eb,kn as kte,l as PY,la as Aa,lb as B2,lc as G2,ld as sX,le as jm,lf as nZ,lg as NZ,lh as b4,li as VJ,lj as fQ,lk as zQ,ll as fl,lm as Pb,ln as Ste,m as vE,ma as La,mb as JE,mc as sP,md as uP,me as jt,mf as rZ,mg as OZ,mh as rd,mi as KJ,mj as hQ,mk as H4,ml as cee,mm as Cb,mn as Tte,n as I0,na as mj,nb as aq,nc as Rq,nd as fP,ne as qm,nf as aZ,ng as eu,nh as bJ,ni as T4,nj as iC,nk as WQ,nl as kC,nm as G4,nn as Ete,o as hh,oa as uj,ob as iq,oc as $m,od as Ym,oe as ll,of as iZ,og as dc,oh as wJ,oi as jP,oj as gQ,ok as UQ,ol as cc,om as $4,on as X4,p as kE,pa as fj,pb as sq,pc as lP,pd as lX,pe as Xm,pf as sZ,pg as AZ,ph as w4,pi as qP,pj as R4,pk as GQ,pl as SC,pm as RC,pn as Pte,q as SE,qa as hj,qb as H2,qc as wh,qd as dX,qe as AX,qf as lZ,qg as LZ,qh as xJ,qi as YJ,qj as ub,qk as uC,ql as M4,qm as Hee,qn as dt,r as TE,ra as gj,rb as ec,rc as xh,rd as cX,re as SP,rf as dZ,rg as IZ,rh as yJ,ri as XP,rj as fb,rk as bb,rl as pc,rm as V4,rn as Kt,s as EE,sa as W3,sb as QE,sc as q0,sd as pX,se as TP,sf as cZ,sg as FZ,sh as vJ,si as jJ,sj as sC,sk as $Q,sl as pee,sm as Dee,sn as Ba,t as PE,ta as Mm,tb as Pp,tc as Nq,td as mX,te as r4,tf as pZ,tg as BZ,th as kJ,ti as E4,tj as bQ,tk as VQ,tl as mee,tm as Mee,tn as io,u as CE,ua as U3,ub as tc,uc as Oq,ud as uX,ue as ac,uf as mZ,ug as HZ,uh as x4,ui as ZP,uj as wQ,uk as rv,ul as uee,um as zee,un as Cte,v as CY,va as bj,vb as oc,vc as Aq,vd as fX,ve as He,vf as Nn,vg as DZ,vh as SJ,vi as qJ,vj as xQ,vk as Ch,vl as fee,vm as Uee,vn as _te,w as _Y,wa as wj,wb as Gm,wc as Lq,wd as rl,we as N,wf as uZ,wg as MZ,wh as TJ,wi as P4,wj as hb,wk as KQ,wl as hee,wm as Gee,wn as Z4,x as _E,xa as xj,xb as bh,xc as Iq,xd as hX,xe as sn,xf as Rp,xg as zZ,xh as EJ,xi as XJ,xj as yQ,xk as YQ,xl as gee,xm as $ee,xn as Rte,y as u,ya as yj,yb as lq,yc as Qn,yd as gX,ye as bn,yf as fZ,yg as WZ,yh as y4,yi as ZJ,yj as vQ,yk as fC,yl as bee,ym as Vee,yn as Nte,z as Zn,za as G3,zb as eP,zc as X0,zd as bX,ze as li,zf as hZ,zg as UZ,zh as PJ,zi as JJ,zj as kQ,zk as jQ,zl as wee,zm as Kee,zn as Ote}from"./chunks/chunk-4M5X72OG.js";import{A as cu,B as Bb,C as YC,D as Hp,E as sF,F as qoe,G as Xoe,H as jC,I as qC,J as XC,K as Zoe,L as Joe,M as Hb,N as Qoe,Q as ene,R as tne,S as pu,T as Rt,U as one,W as lF,X as Db,Y as er,Z as ZC,_ as uv,a as hs,aa as mu,b as Moe,ba as uc,ca as nne,da as Ah,ea as rne,f as Bp,fa as dF,g as UC,ga as ane,h as zoe,ha as ine,i as Woe,ia as JC,j as rF,ja as sne,k as Uoe,ka as gs,l as Goe,la as QC,m as GC,ma as Mb,n as $C,na as lne,o as aF,oa as dne,p as $oe,pa as Dp,q as la,qa as cF,r as Voe,s as Koe,sa as pF,t as du,ta as zb,u as VC,ua as Wb,v as iF,va as e_,w as KC,wa as Lh,x as Yoe,xa as Dr,y as Oh,z as joe}from"./chunks/chunk-R7AXTQVA.js";import{A as foe,B as hoe,C as goe,D as boe,E as woe,F as xoe,G as yoe,H as voe,I as koe,J as tF,K as Soe,L as oF,M as wn,N as Toe,O as Fi,P as Eoe,Q as Poe,R as WC,S as An,T as Coe,U as _oe,V as Roe,W as Noe,X as lu,Y as Ooe,b as MC,ca as Ib,da as vo,e as mv,ea as Nh,f as Lb,fa as Aoe,ga as Fb,h as On,ha as Ae,i as mc,ia as Loe,j as noe,ja as nF,k as roe,ka as Ioe,l as aoe,la as Foe,m as ioe,ma as Boe,n as soe,na as Hoe,o as Q4,oa as Doe,p as gl,q as loe,r as doe,s as at,t as Ii,u as coe,v as poe,w as eF,x as moe,y as zC,z as uoe}from"./chunks/chunk-RDOOARQX.js";import{$b as Fm,$c as ho,$d as fE,$e as cY,$f as xY,$g as M0,$h as si,A as _a,Aa as QV,Ab as aE,Ae as an,Ag as F0,Ah as Rj,Ai as Km,B as vn,Ba as hr,Bc as cE,Bd as Oa,Bg as AY,Bh as Nj,Bi as Yq,Cb as iK,Cc as pE,Cd as ii,Cg as NE,Ch as Oj,Ci as Q0,D as kn,Da as tE,Db as ch,Dc as S3,Dd as Be,De as rY,Dg as IE,Dh as Aj,Di as jq,Ea as eK,Eb as qd,Ec as RK,Ed as _i,Eg as GY,Eh as Lj,Ei as al,Fa as lh,Fb as T0,Fc as C0,Fd as lt,Fg as B3,Fh as Ij,Fi as kX,G as b3,Ga as oE,Gb as Zl,Gc as _0,Ge as C2,Gg as H3,Gh as Fj,Gi as Ie,H as w3,Hb as S2,Hc as NK,He as aY,Hg as D3,Hh as Bj,Hi as ev,I as $V,Ib as Im,Ic as OK,Id as st,Ig as $Y,Ih as Hj,Ii as rC,Jb as sK,Jc as T3,Je as kp,Jf as uY,Jg as VY,Jh as A2,Ji as aC,K as Ys,Kb as Fr,Kc as AK,Ke as _3,Kg as KY,Kh as Dj,Ki as $n,Lb as Xn,Lc as R0,Ld as We,Le as bE,Lg as YY,Li as cQ,Ma as tK,Mb as lK,Mc as LK,Me as ed,Mf as fY,Mg as jY,Mi as pQ,Na as oK,Nb as dK,Nc as E2,Nd as Ri,Ne as mh,Ng as M3,Nh as U0,Ni as mQ,O as VV,Oa as nK,Ob as cK,Od as KK,Og as qY,Oh as zm,Pb as pK,Pc as IK,Pd as nt,Pe as _2,Pi as au,Qb as Ra,Qc as FK,Qd as N0,Qe as Xs,Qf as hY,Qh as Mj,Qi as Wee,Rb as iE,Rc as BK,Re as L0,Rf as gY,Rg as XY,Ri as _h,S as x3,Sa as rK,Sb as sE,Sc as HK,Sd as uE,Se as N3,Sh as zj,Tb as mK,Tc as DK,Td as C3,Tf as bY,Ti as Xee,Ub as uK,Uc as Ge,Ud as O0,Ui as NC,V as KV,Vb as fK,Vc as Tt,Vi as Zee,Wb as hK,Wc as qs,We as sY,Wg as FE,Wi as OC,X as Re,Xb as gK,Xc as ze,Xd as YK,Xf as wY,Y as we,Yb as bK,Yc as gt,Ye as lY,Yf as L3,Yg as ra,Zb as T2,Zc as E3,Ze as fh,Zg as D0,Zh as Wm,_ as YV,_b as wK,_c as MK,_e as dY,_g as BE,_h as Wj,ac as xK,af as R2,ag as yY,ah as ZY,b as fr,bc as yK,bd as Ql,bf as xE,bg as vY,c as ds,ca as S0,cc as vK,cd as Bm,ce as jK,cf as O3,cg as kY,da as jV,dd as Na,de as Hm,df as Zd,e as QT,ea as qV,ec as Jl,ed as Io,ee as qK,ef as Sp,ei as V3,f as jd,fa as eE,fb as ai,fc as E0,fd as zK,fe as XK,g as y2,gc as P0,ge as ZK,gi as Um,hc as kK,he as JK,hg as SY,hi as G0,ia as XV,ic as SK,ie as A0,ii as Uj,jc as TK,jd as WK,ji as K3,kc as k3,kd as Oe,kh as dj,ki as Gj,l as sh,lb as v3,lc as EK,lf as pY,lg as TY,lh as cj,li as $0,m as WV,md as ph,nb as dh,nc as lE,o as v2,ob as k2,oe as QK,p as UV,pa as ZV,ph as pj,pi as $j,q as k0,qc as PK,qf as mY,qi as Vj,r as vp,ra as y3,rf as yE,rh as kj,ri as Tp,s as Lm,sb as js,sc as cs,sd as mE,se as P2,sg as Qs,sh as UE,t as pt,tc as CK,td as P3,te as hE,tg as OY,th as GE,u as GV,uc as dE,ud as UK,ue as eY,ug as RE,uh as Sj,ui as Kj,v as Vt,va as JV,vc as _K,vd as GK,ve as gE,vh as Tj,vi as Jn,w as Ks,wb as nE,we as tY,wh as Ej,wi as $E,x as Yo,xb as rE,xd as $K,xe as oY,xh as Pj,xi as go,y as Ct,ya as Wo,yb as aK,ye as Gn,yh as Cj,yi as M,z as Ir,zd as VK,ze as nY,zf as A3,zh as _j,zi as q3}from"./chunks/chunk-DRLNY2UU.js";import{a as TX,c as EX,f as Ai,g as gZ,h as sc,j as nd,m as YP,o as sa,p as hte}from"./chunks/chunk-JGBM6X5G.js";import{a as gn,b as zV}from"./chunks/chunk-Y6SLVHK3.js";var t0e=gn((lZt,e0e)=>{"use strict";function NYe(e,t){this.v=e,this.k=t}function Fge(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function OYe(e){if(Array.isArray(e))return e}function AYe(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var n,r,a,i,s=[],l=!0,d=!1;try{if(a=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=a.call(o)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){d=!0,r=c}finally{try{if(!l&&o.return!=null&&(i=o.return(),Object(i)!==i))return}finally{if(d)throw r}}return s}}function LYe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{$ as tj,$a as XE,$b as kq,$c as Qq,$d as RX,$e as XX,$f as RZ,$g as ib,$h as MJ,$i as Lp,$j as OQ,$k as Xo,$l as Oee,$m as mte,$n as su,A as RY,Aa as W0,Ab as dq,Ac as Fq,Ad as tb,Ae as EP,Af as V2,Ag as GZ,Ah as CJ,Ai as QJ,Aj as gb,Ak as hC,Al as xee,Am as Yee,An as Ate,B as NY,Ba as gh,Bb as tP,Bc as Bq,Bd as Q3,Be as LX,Bf as K2,Bg as $Z,Bh as v4,Bi as lb,Bj as ia,Bk as qQ,Bl as lv,Bm as jee,Bn as hl,C as Dm,Ca as el,Cb as cq,Cc as Hq,Cd as e4,Ce as IX,Cf as Co,Cg as HP,Ch as zP,Ci as JP,Cj as N4,Ck as XQ,Cl as dv,Cm as qee,Cn as Lte,D as Jd,Da as zE,Db as oP,Dc as dP,Dd as t4,De as FX,Df as OP,Dg as VZ,Dh as WP,Di as le,Dj as SQ,Dk as av,Dl as yee,Dm as K4,Dn as Nb,E as LY,Ea as xo,Eb as D2,Ec as Dq,Ed as wX,Ee as BX,Ef as bZ,Eg as KZ,Eh as _J,Ei as fe,Ej as TQ,Ek as iv,El as ae,Em as Jee,En as Ite,F as I3,Fa as $3,Fb as V0,Fc as j3,Fd as xX,Fe as HX,Ff as di,Fg as cl,Fh as RJ,Fi as Op,Fj as O4,Fk as gC,Fl as sd,Fm as AC,Fn as Fte,G as td,Ga as WE,Gb as pq,Gc as Mq,Gd as yX,Ge as DX,Gf as lc,Gg as YZ,Gh as NJ,Gi as Ee,Gj as A4,Gk as ZQ,Gl as vee,Gm as Qee,Gn as HC,H as B0,Ha as tl,Hb as mq,Hc as $2,Hd as hP,He as MX,Hf as Y2,Hg as jZ,Hh as tu,Hi as eQ,Hj as L4,Hk as JQ,Hl as kee,Hm as ete,Hn as Ob,I as Ni,Ia as vj,Ib as K0,Ic as zq,Id as vX,Ie as _p,If as AP,Ig as DP,Ih as Fo,Ii as QP,Ij as tv,Ik as QQ,Il as Ip,Im as _b,In as Bte,J as IY,Ja as L2,Jb as uq,Jc as Wq,Jd as yh,Je as PP,Jf as s4,Jg as qZ,Jh as UP,Ji as ml,Jj as I4,Jk as D4,Jl as z4,Jm as Y4,Jn as Hte,K as FY,Ka as VE,Kb as fq,Kc as Uq,Kd as Po,Ke as zX,Kf as wZ,Kg as f4,Kh as OJ,Ki as eC,Kj as ov,Kk as eee,Kl as vb,Km as tte,Kn as Dte,L as BY,La as KE,Lb as hq,Lc as Gq,Ld as gP,Le as WX,Lf as rb,Lg as h4,Lh as AJ,Li as tC,Lj as ou,Lk as tee,Ll as Uo,Lm as ote,Ln as iu,M as HY,Ma as od,Mb as nl,Mc as Vm,Md as SX,Me as Zm,Mf as xZ,Mg as X2,Mh as GP,Mi as Th,Mj as EQ,Mk as oee,Ml as TC,Mm as j4,Mn as Fp,N as DY,Na as Oi,Nb as nP,Nc as $q,Nd as bP,Ne as CP,Nf as Np,Ng as XZ,Nh as $P,Ni as ad,Nj as PQ,Nk as sv,Nl as See,Nm as cv,Nn as Rh,O as OE,Oa as Yj,Ob as Cp,Oc as Z0,Od as wP,Oe as _P,Of as yZ,Og as ZZ,Oh as LJ,Oi as tQ,Oj as nu,Ok as nee,Ol as ot,Om as nte,On as Mte,P as AE,Pa as I2,Pb as ms,Pc as J0,Pd as PX,Pe as UX,Pf as vZ,Pg as MP,Ph as IJ,Pi as Ap,Pj as lC,Pk as ree,Pl as kb,Pm as LC,Pn as zte,Q as MY,Qa as ps,Qb as gq,Qc as Vq,Qd as _t,Qe as GX,Qf as vh,Qg as JZ,Qh as k4,Qi as id,Qj as CQ,Qk as br,Ql as W4,Qm as IC,Qn as Wte,R as zY,Ra as ol,Rb as bq,Rc as Kq,Rd as CX,Re as $X,Rf as kZ,Rg as QZ,Rh as sb,Ri as oQ,Rj as _Q,Rk as bC,Rl as Hr,Rm as rte,Rn as Ute,S as H0,Sa as jj,Sb as wq,Sc as cP,Sd as L,Se as VX,Sf as SZ,Sg as eJ,Sh as Z2,Si as C4,Sj as ru,Sk as aee,Sl as Tee,Sm as ate,Sn as Gte,T as WY,Ta as Ep,Tb as xq,Tc as qq,Td as qo,Te as RP,Tf as LP,Tg as tJ,Th as FJ,Ti as nQ,Tj as RQ,Tk as wC,Tl as Eee,Tm as FC,Tn as $te,U as UY,Ua as YE,Ub as yq,Uc as X3,Ud as o4,Ue as dl,Uf as TZ,Ug as oJ,Uh as BJ,Ui as rQ,Uj as nv,Uk as iee,Ul as Pee,Um as ite,Un as Vte,V as LE,Va as qj,Vb as Y0,Vc as Xq,Vd as ne,Ve as a4,Vf as EZ,Vg as nJ,Vh as VP,Vi as yo,Vj as F4,Vk as see,Vl as EC,Vm as ste,Vn as Ab,W as F3,Wa as jE,Wb as rP,Wc as Zq,Wd as It,We as nb,Wf as PZ,Wg as rJ,Wh as HJ,Wi as ul,Wj as B4,Wk as ci,Wl as Sb,Wm as lte,Wn as Kte,X as JY,Xa as Ia,Xb as Y3,Xc as Jq,Xd as nc,Xe as KX,Xf as CZ,Xg as aJ,Xh as Fa,Xi as aQ,Xj as dC,Xk as xC,Xl as Cee,Xm as dte,Xn as Yte,Y as z0,Ya as qE,Yb as j0,Yc as Br,Yd as W,Ye as YX,Yf as _Z,Yg as iJ,Yh as pl,Yi as iQ,Yj as NQ,Yk as lee,Yl as _ee,Ym as cte,Yn as jte,Z as QY,Za as Xj,Zb as vq,Zc as us,Zd as il,Ze as jX,Zf as l4,Zg as sJ,Zh as Ve,Zi as oC,Zj as cC,Zk as wb,Zl as Ree,Zm as q4,Zn as ld,_ as ej,_a as Zj,_b as aP,_c as eb,_d as _X,_e as qX,_f as d4,_g as lJ,_h as DJ,_i as db,_j as pC,_k as wr,_l as Nee,_m as pte,_n as qte,a as R3,aa as oj,ab as F2,ac as M2,ad as eX,ae as sl,af as ZX,ag as gr,ah as dJ,ai as zJ,aj as cb,ak as AQ,al as xb,am as Aee,an as ute,ao as Xte,b as Xd,ba as nj,bb as Jj,bc as z2,bd as tX,be as xP,bf as i4,bg as IP,bh as cJ,bi as WJ,bj as nC,bk as LQ,bl as dee,bm as Lee,bn as fte,bo as J4,c as iY,ca as z3,cb as Qj,cc as iP,cd as oX,ce as NX,cf as JX,cg as FP,ch as pJ,ci as J2,cj as _4,ck as Eh,cl as yC,cm as Iee,cn as gte,co as Zte,d as wE,da as rj,db as eq,dc as Sq,dd as Z3,de as yP,df as QX,dg as c4,dh as mJ,di as KP,dj as Li,dk as mC,dl as vC,dm as U4,dn as bte,do as Jte,e as uh,ea as aj,eb as tq,ec as Tq,ed as pP,ee as rc,ef as Jm,eg as j2,eh as uJ,ei as UJ,ej as aa,ek as Ph,el as yb,em as Fee,en as wte,eo as DC,f as Zs,fa as HE,fb as ZE,fc as Eq,fd as mP,fe as n4,ff as eZ,fg as q2,fh as fJ,fi as Q2,fj as sQ,fk as IQ,fl as U,fm as Bee,fn as xte,fo as Qte,g as Js,ga as DE,gb as oq,gc as Pq,gd as nX,ge as vP,gf as ic,gg as p4,gh as fs,gi as Sh,gj as lQ,gk as FQ,gl as Z,gm as PC,gn as yte,go as eoe,h as Rn,ha as ij,hb as nq,hc as Cq,hd as rX,he as Sn,hf as tZ,hg as m4,hh as hJ,hi as S4,hj as dQ,hk as BQ,hl as Q,hm as CC,hn as Rb,ho as pv,i as N2,ia as sj,ib as jo,ic as _q,id as aX,ie as ob,if as Qm,ig as ab,ih as kh,ii as GJ,ij as pb,ik as HQ,il as ve,im as _C,in as vte,io as toe,j as EY,ja as lj,jb as rq,jc as W2,jd as J3,je as OX,jf as oZ,jg as BP,jh as g4,ji as $J,jj as mb,jk as DQ,jl as qe,jm as Tb,jn as BC,jo as ooe,k as O2,ka as ME,kb as Qd,kc as U2,kd as iX,ke as kP,kf as NP,kg as u4,kh as gJ,ki as At,kj as uQ,kk as MQ,kl as Je,km as Eb,kn as kte,l as PY,la as Aa,lb as B2,lc as G2,ld as sX,le as jm,lf as nZ,lg as NZ,lh as b4,li as VJ,lj as fQ,lk as zQ,ll as fl,lm as Pb,ln as Ste,m as vE,ma as La,mb as JE,mc as sP,md as uP,me as jt,mf as rZ,mg as OZ,mh as rd,mi as KJ,mj as hQ,mk as H4,ml as cee,mm as Cb,mn as Tte,n as I0,na as mj,nb as aq,nc as Rq,nd as fP,ne as qm,nf as aZ,ng as eu,nh as bJ,ni as T4,nj as iC,nk as WQ,nl as kC,nm as G4,nn as Ete,o as hh,oa as uj,ob as iq,oc as $m,od as Ym,oe as ll,of as iZ,og as dc,oh as wJ,oi as jP,oj as gQ,ok as UQ,ol as cc,om as $4,on as X4,p as kE,pa as fj,pb as sq,pc as lP,pd as lX,pe as Xm,pf as sZ,pg as AZ,ph as w4,pi as qP,pj as R4,pk as GQ,pl as SC,pm as RC,pn as Pte,q as SE,qa as hj,qb as H2,qc as wh,qd as dX,qe as AX,qf as lZ,qg as LZ,qh as xJ,qi as YJ,qj as ub,qk as uC,ql as M4,qm as Hee,qn as dt,r as TE,ra as gj,rb as ec,rc as xh,rd as cX,re as SP,rf as dZ,rg as IZ,rh as yJ,ri as XP,rj as fb,rk as bb,rl as pc,rm as V4,rn as Kt,s as EE,sa as W3,sb as QE,sc as q0,sd as pX,se as TP,sf as cZ,sg as FZ,sh as vJ,si as jJ,sj as sC,sk as $Q,sl as pee,sm as Dee,sn as Ba,t as PE,ta as Mm,tb as Pp,tc as Nq,td as mX,te as r4,tf as pZ,tg as BZ,th as kJ,ti as E4,tj as bQ,tk as VQ,tl as mee,tm as Mee,tn as io,u as CE,ua as U3,ub as tc,uc as Oq,ud as uX,ue as ac,uf as mZ,ug as HZ,uh as x4,ui as ZP,uj as wQ,uk as rv,ul as uee,um as zee,un as Cte,v as CY,va as bj,vb as oc,vc as Aq,vd as fX,ve as He,vf as Nn,vg as DZ,vh as SJ,vi as qJ,vj as xQ,vk as Ch,vl as fee,vm as Uee,vn as _te,w as _Y,wa as wj,wb as Gm,wc as Lq,wd as rl,we as N,wf as uZ,wg as MZ,wh as TJ,wi as P4,wj as hb,wk as KQ,wl as hee,wm as Gee,wn as Z4,x as _E,xa as xj,xb as bh,xc as Iq,xd as hX,xe as sn,xf as Rp,xg as zZ,xh as EJ,xi as XJ,xj as yQ,xk as YQ,xl as gee,xm as $ee,xn as Rte,y as u,ya as yj,yb as lq,yc as Qn,yd as gX,ye as bn,yf as fZ,yg as WZ,yh as y4,yi as ZJ,yj as vQ,yk as fC,yl as bee,ym as Vee,yn as Nte,z as Zn,za as G3,zb as eP,zc as X0,zd as bX,ze as li,zf as hZ,zg as UZ,zh as PJ,zi as JJ,zj as kQ,zk as jQ,zl as wee,zm as Kee,zn as Ote}from"./chunks/chunk-4M5X72OG.js";import{A as cu,B as Bb,C as YC,D as Hp,E as sF,F as qoe,G as Xoe,H as jC,I as qC,J as XC,K as Zoe,L as Joe,M as Hb,N as Qoe,Q as ene,R as tne,S as pu,T as Rt,U as one,W as lF,X as Db,Y as er,Z as ZC,_ as uv,a as hs,aa as mu,b as Moe,ba as uc,ca as nne,da as Ah,ea as rne,f as Bp,fa as dF,g as UC,ga as ane,h as zoe,ha as ine,i as Woe,ia as JC,j as rF,ja as sne,k as Uoe,ka as gs,l as Goe,la as QC,m as GC,ma as Mb,n as $C,na as lne,o as aF,oa as dne,p as $oe,pa as Dp,q as la,qa as cF,r as Voe,s as Koe,sa as pF,t as du,ta as zb,u as VC,ua as Wb,v as iF,va as e_,w as KC,wa as Lh,x as Yoe,xa as Dr,y as Oh,z as joe}from"./chunks/chunk-ULJSH3R7.js";import{A as foe,B as hoe,C as goe,D as boe,E as woe,F as xoe,G as yoe,H as voe,I as koe,J as tF,K as Soe,L as oF,M as wn,N as Toe,O as Fi,P as Eoe,Q as Poe,R as WC,S as An,T as Coe,U as _oe,V as Roe,W as Noe,X as lu,Y as Ooe,b as MC,ca as Ib,da as vo,e as mv,ea as Nh,f as Lb,fa as Aoe,ga as Fb,h as On,ha as Ae,i as mc,ia as Loe,j as noe,ja as nF,k as roe,ka as Ioe,l as aoe,la as Foe,m as ioe,ma as Boe,n as soe,na as Hoe,o as Q4,oa as Doe,p as gl,q as loe,r as doe,s as at,t as Ii,u as coe,v as poe,w as eF,x as moe,y as zC,z as uoe}from"./chunks/chunk-HPCPOXEL.js";import{$b as Fm,$c as ho,$d as fE,$e as cY,$f as xY,$g as M0,$h as si,A as _a,Aa as QV,Ab as aE,Ae as an,Ag as F0,Ah as Rj,Ai as Km,B as vn,Ba as hr,Bc as cE,Bd as Oa,Bg as AY,Bh as Nj,Bi as Yq,Cb as iK,Cc as pE,Cd as ii,Cg as NE,Ch as Oj,Ci as Q0,D as kn,Da as tE,Db as ch,Dc as S3,Dd as Be,De as rY,Dg as IE,Dh as Aj,Di as jq,Ea as eK,Eb as qd,Ec as RK,Ed as _i,Eg as GY,Eh as Lj,Ei as al,Fa as lh,Fb as T0,Fc as C0,Fd as lt,Fg as B3,Fh as Ij,Fi as kX,G as b3,Ga as oE,Gb as Zl,Gc as _0,Ge as C2,Gg as H3,Gh as Fj,Gi as Ie,H as w3,Hb as S2,Hc as NK,He as aY,Hg as D3,Hh as Bj,Hi as ev,I as $V,Ib as Im,Ic as OK,Id as st,Ig as $Y,Ih as Hj,Ii as rC,Jb as sK,Jc as T3,Je as kp,Jf as uY,Jg as VY,Jh as A2,Ji as aC,K as Ys,Kb as Fr,Kc as AK,Ke as _3,Kg as KY,Kh as Dj,Ki as $n,Lb as Xn,Lc as R0,Ld as We,Le as bE,Lg as YY,Li as cQ,Ma as tK,Mb as lK,Mc as LK,Me as ed,Mf as fY,Mg as jY,Mi as pQ,Na as oK,Nb as dK,Nc as E2,Nd as Ri,Ne as mh,Ng as M3,Nh as U0,Ni as mQ,O as VV,Oa as nK,Ob as cK,Od as KK,Og as qY,Oh as zm,Pb as pK,Pc as IK,Pd as nt,Pe as _2,Pi as au,Qb as Ra,Qc as FK,Qd as N0,Qe as Xs,Qf as hY,Qh as Mj,Qi as Wee,Rb as iE,Rc as BK,Re as L0,Rf as gY,Rg as XY,Ri as _h,S as x3,Sa as rK,Sb as sE,Sc as HK,Sd as uE,Se as N3,Sh as zj,Tb as mK,Tc as DK,Td as C3,Tf as bY,Ti as Xee,Ub as uK,Uc as Ge,Ud as O0,Ui as NC,V as KV,Vb as fK,Vc as Tt,Vi as Zee,Wb as hK,Wc as qs,We as sY,Wg as FE,Wi as OC,X as Re,Xb as gK,Xc as ze,Xd as YK,Xf as wY,Y as we,Yb as bK,Yc as gt,Ye as lY,Yf as L3,Yg as ra,Zb as T2,Zc as E3,Ze as fh,Zg as D0,Zh as Wm,_ as YV,_b as wK,_c as MK,_e as dY,_g as BE,_h as Wj,ac as xK,af as R2,ag as yY,ah as ZY,b as fr,bc as yK,bd as Ql,bf as xE,bg as vY,c as ds,ca as S0,cc as vK,cd as Bm,ce as jK,cf as O3,cg as kY,da as jV,dd as Na,de as Hm,df as Zd,e as QT,ea as qV,ec as Jl,ed as Io,ee as qK,ef as Sp,ei as V3,f as jd,fa as eE,fb as ai,fc as E0,fd as zK,fe as XK,g as y2,gc as P0,ge as ZK,gi as Um,hc as kK,he as JK,hg as SY,hi as G0,ia as XV,ic as SK,ie as A0,ii as Uj,jc as TK,jd as WK,ji as K3,kc as k3,kd as Oe,kh as dj,ki as Gj,l as sh,lb as v3,lc as EK,lf as pY,lg as TY,lh as cj,li as $0,m as WV,md as ph,nb as dh,nc as lE,o as v2,ob as k2,oe as QK,p as UV,pa as ZV,ph as pj,pi as $j,q as k0,qc as PK,qf as mY,qi as Vj,r as vp,ra as y3,rf as yE,rh as kj,ri as Tp,s as Lm,sb as js,sc as cs,sd as mE,se as P2,sg as Qs,sh as UE,t as pt,tc as CK,td as P3,te as hE,tg as OY,th as GE,u as GV,uc as dE,ud as UK,ue as eY,ug as RE,uh as Sj,ui as Kj,v as Vt,va as JV,vc as _K,vd as GK,ve as gE,vh as Tj,vi as Jn,w as Ks,wb as nE,we as tY,wh as Ej,wi as $E,x as Yo,xb as rE,xd as $K,xe as oY,xh as Pj,xi as go,y as Ct,ya as Wo,yb as aK,ye as Gn,yh as Cj,yi as M,z as Ir,zd as VK,ze as nY,zf as A3,zh as _j,zi as q3}from"./chunks/chunk-DRLNY2UU.js";import{a as TX,c as EX,f as Ai,g as gZ,h as sc,j as nd,m as YP,o as sa,p as hte}from"./chunks/chunk-JGBM6X5G.js";import{a as gn,b as zV}from"./chunks/chunk-Y6SLVHK3.js";var t0e=gn((lZt,e0e)=>{"use strict";function NYe(e,t){this.v=e,this.k=t}function Fge(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function OYe(e){if(Array.isArray(e))return e}function AYe(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var n,r,a,i,s=[],l=!0,d=!1;try{if(a=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=a.call(o)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){d=!0,r=c}finally{try{if(!l&&o.return!=null&&(i=o.return(),Object(i)!==i))return}finally{if(d)throw r}}return s}}function LYe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IYe(e,t){return OYe(e)||AYe(e,t)||FYe(e,t)||LYe()}function FYe(e,t){if(e){if(typeof e=="string")return Fge(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Fge(e,t):void 0}}function lN(e){var t,o;function n(a,i){try{var s=e[a](i),l=s.value,d=l instanceof NYe;Promise.resolve(d?l.v:l).then(function(c){if(d){var p=a==="return"&&l.k?a:"next";if(!l.k||c.done)return n(p,c);c=e[p](c).value}r(!!s.done,c)},function(c){n("throw",c)})}catch(c){r(2,c)}}function r(a,i){a===2?t.reject(i):t.resolve({value:i,done:a}),(t=t.next)?n(t.key,t.arg):o=null}this._invoke=function(a,i){return new Promise(function(s,l){var d={key:a,arg:i,resolve:s,reject:l,next:null};o?o=o.next=d:(t=o=d,n(a,i))})},typeof e.return!="function"&&(this.return=void 0)}lN.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},lN.prototype.next=function(e){return this._invoke("next",e)},lN.prototype.throw=function(e){return this._invoke("throw",e)},lN.prototype.return=function(e){return this._invoke("return",e)};var Xge=Object.entries,Bge=Object.setPrototypeOf,BYe=Object.isFrozen,HYe=Object.getPrototypeOf,DYe=Object.getOwnPropertyDescriptor,Sr=Object.freeze,Vr=Object.seal,ax=Object.create,Zge=typeof Reflect<"u"&&Reflect,lD=Zge.apply,dD=Zge.construct;Sr||(Sr=function(t){return t});Vr||(Vr=function(t){return t});lD||(lD=function(t,o){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return t.apply(o,r)});dD||(dD=function(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return new t(...n)});var xg=rr(Array.prototype.forEach);Array.prototype.indexOf;var MYe=rr(Array.prototype.lastIndexOf),Hge=rr(Array.prototype.pop),ok=rr(Array.prototype.push);Array.prototype.slice;var zYe=rr(Array.prototype.splice),ix=Array.isArray,ak=rr(String.prototype.toLowerCase),oD=rr(String.prototype.toString),Dge=rr(String.prototype.match),nk=rr(String.prototype.replace),Mge=rr(String.prototype.indexOf),WYe=rr(String.prototype.trim),UYe=rr(Number.prototype.toString),GYe=rr(Boolean.prototype.toString),zge=typeof BigInt>"u"?null:rr(BigInt.prototype.toString),Wge=typeof Symbol>"u"?null:rr(Symbol.prototype.toString),qi=rr(Object.prototype.hasOwnProperty),rk=rr(Object.prototype.toString),Ga=rr(RegExp.prototype.test),af=$Ye(TypeError);function rr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return lD(e,t,n)}}function $Ye(e){return function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return dD(e,o)}}function co(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ak;if(Bge&&Bge(e,null),!ix(t))return e;let n=t.length;for(;n--;){let r=t[n];if(typeof r=="string"){let a=o(r);a!==r&&(BYe(t)||(t[n]=a),r=a)}e[r]=!0}return e}function VYe(e){for(let t=0;t<e.length;t++)qi(e,t)||(e[t]=null);return e}function _s(e){let t=ax(null);for(let n of Xge(e)){var o=IYe(n,2);let r=o[0],a=o[1];qi(e,r)&&(ix(a)?t[r]=VYe(a):a&&typeof a=="object"&&a.constructor===Object?t[r]=_s(a):t[r]=a)}return t}function KYe(e){switch(typeof e){case"string":return e;case"number":return UYe(e);case"boolean":return GYe(e);case"bigint":return zge?zge(e):"0";case"symbol":return Wge?Wge(e):"Symbol()";case"undefined":return rk(e);case"function":case"object":{if(e===null)return rk(e);let t=e,o=Cl(t,"toString");if(typeof o=="function"){let n=o(t);return typeof n=="string"?n:rk(n)}return rk(e)}default:return rk(e)}}function Cl(e,t){for(;e!==null;){let n=DYe(e,t);if(n){if(n.get)return rr(n.get);if(typeof n.value=="function")return rr(n.value)}e=HYe(e)}function o(){return null}return o}function YYe(e){try{return Ga(e,""),!0}catch{return!1}}var Uge=Sr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),nD=Sr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),rD=Sr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),jYe=Sr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),aD=Sr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),qYe=Sr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Gge=Sr(["#text"]),$ge=Sr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),iD=Sr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vge=Sr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),dN=Sr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),XYe=Vr(/{{[\w\W]*|^[\w\W]*}}/g),ZYe=Vr(/<%[\w\W]*|^[\w\W]*%>/g),JYe=Vr(/\${[\w\W]*/g),QYe=Vr(/^data-[\-\w.\u00B7-\uFFFF]+$/),eje=Vr(/^aria-[\-\w]+$/),Kge=Vr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tje=Vr(/^(?:\w+script|data):/i),oje=Vr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nje=Vr(/^html$/i),rje=Vr(/^[a-z][.\w]*(-[.\w]+)+$/i),Yge=Vr(/<[/\w!]/g),jge=Vr(/<[/\w]/g),aje=Vr(/<\/no(script|embed|frames)/i),ije=Vr(/\/>/i),Cs={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Jge=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],sje=Sr(co({},Jge)),lje=(function(){let e={};return xg(Jge,t=>{e[t]=Vr(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Sr(e)})(),dje=function(){return typeof window>"u"?null:window},cje=function(t,o){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null,r="data-tt-policy-suffix";o&&o.hasAttribute(r)&&(n=o.getAttribute(r));let a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},qge=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},sf=function(t,o,n,r){return qi(t,o)&&ix(t[o])?co(r.base?_s(r.base):{},t[o],r.transform):n},sD=function(t,o,n){let r=qi(t,o)?t[o]:void 0;return r&&typeof r=="object"?_s(r):n()};function Qge(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dje(),t=he=>Qge(he);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==Cs.document||!e.Element)return t.isSupported=!1,t;let o=e.document,n=o,r=n.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,i=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let d=e.DOMParser,c=e.trustedTypes,p=s.prototype,m=Cl(p,"cloneNode"),f=Cl(p,"remove"),h=Cl(p,"removeAttributeNode"),g=Cl(p,"nextSibling"),b=Cl(p,"childNodes"),w=Cl(p,"parentNode"),x=Cl(p,"shadowRoot"),v=Cl(p,"attributes"),k=i&&i.prototype?Cl(i.prototype,"nodeType"):null,S=i&&i.prototype?Cl(i.prototype,"nodeName"):null,T=i&&i.prototype?Cl(i.prototype,"ownerDocument"):null,E=function(R){return k?k(R):R.nodeType},y=function(R){return S?S(R):R.nodeName};if(typeof a=="function"){let he=o.createElement("template");he.content&&he.content.ownerDocument&&(o=he.content.ownerDocument)}let O,P="",B,H=!1,A=0,_=function(){if(A>0)throw af('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},C=function(R){_(),A++;try{return O.createHTML(R)}finally{A--}},F=function(R){_(),A++;try{return O.createScriptURL(R)}finally{A--}},$=function(){return H||(B=cje(c,r),H=!0),B},q=o,G=q.implementation,K=q.createNodeIterator,Y=q.createDocumentFragment,oe=q.getElementsByTagName,j=n.importNode,I=qge();t.isSupported=typeof Xge=="function"&&typeof w=="function"&&G&&G.createHTMLDocument!==void 0;let z=XYe,V=ZYe,te=JYe,X=QYe,ee=eje,ke=tje,ce=oje,Ye=rje,Ne=Kge,me=null,it=co({},[...Uge,...nD,...rD,...aD,...Gge]),ue=null,kt=co({},[...$ge,...iD,...Vge,...dN]),Ze=Object.seal(ax(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pe=null,Me=null,$e=Object.seal(ax(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),mo=!0,Ht=!0,St=!1,Qt=!0,Pt=!1,Dt=!0,ye=!1,Fe=!1,nn=null,rn=null,ti=!1,je=!1,ft=!1,wt=!1,Nt=!0,uo=!1,Sa="user-content-",fn=!0,Mt=!1,Un={},Ta=null,Ea=co({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),oi=null,ct=co({},["audio","video","img","source","image","track"]),zo=null,ni=co({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),So="http://www.w3.org/1998/Math/MathML",oa="http://www.w3.org/2000/svg",Ko="http://www.w3.org/1999/xhtml",To=Ko,yn=!1,Nr=null,Le=co({},[So,oa,Ko],oD),ht=Sr(["mi","mo","mn","ms","mtext"]),Cn=co({},ht),mr=Sr(["annotation-xml"]),_e=co({},mr),Gt=co({},["title","style","font","a","script"]),ao=null,qn=["application/xhtml+xml","text/html"],na="text/html",fo=null,Ci=null,Nm=o.createElement("form"),Pe=function(R){return R instanceof RegExp||R instanceof Function},Ue=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ci&&Ci===R)return;(!R||typeof R!="object")&&(R={}),R=_s(R),ao=qn.indexOf(R.PARSER_MEDIA_TYPE)===-1?na:R.PARSER_MEDIA_TYPE,fo=ao==="application/xhtml+xml"?oD:ak,me=sf(R,"ALLOWED_TAGS",it,{transform:fo}),ue=sf(R,"ALLOWED_ATTR",kt,{transform:fo}),Nr=sf(R,"ALLOWED_NAMESPACES",Le,{transform:oD}),zo=sf(R,"ADD_URI_SAFE_ATTR",ni,{transform:fo,base:ni}),oi=sf(R,"ADD_DATA_URI_TAGS",ct,{transform:fo,base:ct}),Ta=sf(R,"FORBID_CONTENTS",Ea,{transform:fo}),pe=sf(R,"FORBID_TAGS",_s({}),{transform:fo}),Me=sf(R,"FORBID_ATTR",_s({}),{transform:fo}),Un=qi(R,"USE_PROFILES")?R.USE_PROFILES&&typeof R.USE_PROFILES=="object"?_s(R.USE_PROFILES):R.USE_PROFILES:!1,mo=R.ALLOW_ARIA_ATTR!==!1,Ht=R.ALLOW_DATA_ATTR!==!1,St=R.ALLOW_UNKNOWN_PROTOCOLS||!1,Qt=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pt=R.SAFE_FOR_TEMPLATES||!1,Dt=R.SAFE_FOR_XML!==!1,ye=R.WHOLE_DOCUMENT||!1,je=R.RETURN_DOM||!1,ft=R.RETURN_DOM_FRAGMENT||!1,wt=R.RETURN_TRUSTED_TYPE||!1,ti=R.FORCE_BODY||!1,Nt=R.SANITIZE_DOM!==!1,uo=R.SANITIZE_NAMED_PROPS||!1,fn=R.KEEP_CONTENT!==!1,Mt=R.IN_PLACE||!1,Ne=YYe(R.ALLOWED_URI_REGEXP)?R.ALLOWED_URI_REGEXP:Kge,To=typeof R.NAMESPACE=="string"?R.NAMESPACE:Ko,Cn=sD(R,"MATHML_TEXT_INTEGRATION_POINTS",()=>co({},ht)),_e=sD(R,"HTML_INTEGRATION_POINTS",()=>co({},mr));let J=sD(R,"CUSTOM_ELEMENT_HANDLING",()=>ax(null));if(Ze=ax(null),qi(J,"tagNameCheck")&&Pe(J.tagNameCheck)&&(Ze.tagNameCheck=J.tagNameCheck),qi(J,"attributeNameCheck")&&Pe(J.attributeNameCheck)&&(Ze.attributeNameCheck=J.attributeNameCheck),qi(J,"allowCustomizedBuiltInElements")&&typeof J.allowCustomizedBuiltInElements=="boolean"&&(Ze.allowCustomizedBuiltInElements=J.allowCustomizedBuiltInElements),Vr(Ze),Pt&&(Ht=!1),ft&&(je=!0),Un&&(me=co({},Gge),ue=ax(null),Un.html===!0&&(co(me,Uge),co(ue,$ge)),Un.svg===!0&&(co(me,nD),co(ue,iD),co(ue,dN)),Un.svgFilters===!0&&(co(me,rD),co(ue,iD),co(ue,dN)),Un.mathMl===!0&&(co(me,aD),co(ue,Vge),co(ue,dN))),$e.tagCheck=null,$e.attributeCheck=null,qi(R,"ADD_TAGS")&&(typeof R.ADD_TAGS=="function"?$e.tagCheck=R.ADD_TAGS:ix(R.ADD_TAGS)&&(me===it&&(me=_s(me)),co(me,R.ADD_TAGS,fo))),qi(R,"ADD_ATTR")&&(typeof R.ADD_ATTR=="function"?$e.attributeCheck=R.ADD_ATTR:ix(R.ADD_ATTR)&&(ue===kt&&(ue=_s(ue)),co(ue,R.ADD_ATTR,fo))),qi(R,"ADD_FORBID_CONTENTS")&&ix(R.ADD_FORBID_CONTENTS)&&(Ta===Ea&&(Ta=_s(Ta)),co(Ta,R.ADD_FORBID_CONTENTS,fo)),fn&&(me["#text"]=!0),ye&&co(me,["html","head","body"]),me.table&&(co(me,["tbody"]),delete pe.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw af('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw af('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let de=O;O=R.TRUSTED_TYPES_POLICY;try{P=C("")}catch(be){throw O=de,be}}else R.TRUSTED_TYPES_POLICY===null?(O=void 0,P=""):(O===void 0&&(O=$()),O&&typeof P=="string"&&(P=C("")));Sr&&Sr(R),Ci=R},en=co({},[...nD,...rD,...jYe]),Yt=co({},[...aD,...qYe]),$s=function(R,J,de){return J.namespaceURI===Ko?R==="svg":J.namespaceURI===So?R==="svg"&&(de==="annotation-xml"||Cn[de]):!!en[R]},Pa=function(R,J,de){return J.namespaceURI===Ko?R==="math":J.namespaceURI===oa?R==="math"&&_e[de]:!!Yt[R]},Gd=function(R,J,de){return J.namespaceURI===oa&&!_e[de]||J.namespaceURI===So&&!Cn[de]?!1:!Yt[R]&&(Gt[R]||!en[R])},ZI=function(R){let J=w(R);(!J||!J.tagName)&&(J={namespaceURI:To,tagName:"template"});let de=ak(R.tagName),be=ak(J.tagName);return Nr[R.namespaceURI]?R.namespaceURI===oa?$s(de,J,be):R.namespaceURI===So?Pa(de,J,be):R.namespaceURI===Ko?Gd(de,J,be):!!(ao==="application/xhtml+xml"&&Nr[R.namespaceURI]):!1},Ca=function(R){ok(t.removed,{element:R});try{w(R).removeChild(R)}catch{if(f(R),!w(R))throw af("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},b0=function(R,J,de){try{h(R,J)}catch{try{R.removeAttribute(de)}catch{}}},$d=function(R){ah(R);let J=b(R);if(J){let be=[];xg(J,et=>{ok(be,et)}),xg(be,et=>{try{f(et)}catch{}})}let de=v(R);if(de)for(let be=de.length-1;be>=0;--be){let et=de[be],zt=et&&et.name;typeof zt=="string"&&b0(R,et,zt)}},ri=function(R,J,de){if(!de)try{de=J.getAttributeNode(R)}catch{de=null}ok(t.removed,{attribute:de||null,from:J});try{de?h(J,de):J.removeAttribute(R)}catch{try{J.removeAttribute(R)}catch{}}if(R==="is")if(je||ft)try{Ca(J)}catch{}else try{J.setAttribute(R,"")}catch{}},JI=function(R){let J=v(R);if(J)for(let de=J.length-1;de>=0;--de){let be=J[de],et=be&&be.name;typeof et!="string"||ue[fo(et)]||b0(R,be,et)}},ah=function(R){let J=[R];for(;J.length>0;){let de=J.pop();E(de)===Cs.element&&JI(de);let be=b(de);if(be)for(let et=be.length-1;et>=0;--et)J.push(be[et])}},YT=function(R,J){return Dt?R==="patchsrc"?!0:R==="for"&&J!=="label"&&J!=="output":!1},QI=function(R){if(!Dt)return;let J=[R];for(;J.length>0;){let de=J.pop(),be=E(de);if(be===Cs.processingInstruction||be===Cs.comment&&Ga(jge,de.data)){try{f(de)}catch{}continue}if(be===Cs.element){let zt=de,Ot=fo(y(de));try{zt.hasAttribute&&zt.hasAttribute("patchsrc")&&zt.removeAttribute("patchsrc"),zt.hasAttribute&&zt.hasAttribute("for")&&YT("for",Ot)&&zt.removeAttribute("for")}catch{}}let et=b(de);if(et)for(let zt=et.length-1;zt>=0;--zt)J.push(et[zt])}},i2=function(R){let J=null,de=null;if(ti)R="<remove></remove>"+R;else{let zt=Dge(R,/^[\r\n\t ]+/);de=zt&&zt[0]}ao==="application/xhtml+xml"&&To===Ko&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");let be=O?C(R):R;if(To===Ko)try{J=new d().parseFromString(be,ao)}catch{}if(!J||!J.documentElement){J=G.createDocument(To,"template",null);try{J.documentElement.innerHTML=yn?P:be}catch{}}let et=J.body||J.documentElement;return R&&de&&et.insertBefore(o.createTextNode(de),et.childNodes[0]||null),To===Ko?oe.call(J,ye?"html":"body")[0]:ye?J.documentElement:et},s2=function(R){let J=T?T(R):R.ownerDocument;return K.call(J||R,R,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Vd=function(R){return R=nk(R,z," "),R=nk(R,V," "),R=nk(R,te," "),R},hn=function(R){var J;R.normalize();let de=T?T(R):R.ownerDocument,be=K.call(de||R,R,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),et=be.nextNode();for(;et;)et.data=Vd(et.data),et=be.nextNode();let zt=(J=R.querySelectorAll)===null||J===void 0?void 0:J.call(R,"template");zt&&xg(zt,Ot=>{bp(Ot.content)&&hn(Ot.content)})},ih=function(R){let J=S?S(R):null;return typeof J!="string"||fo(J)!=="form"?!1:typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||R.attributes!==v(R)||typeof R.removeAttribute!="function"||typeof R.removeAttributeNode!="function"||typeof R.getAttributeNode!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function"||R.nodeType!==k(R)||R.childNodes!==b(R)},bp=function(R){if(!k||typeof R!="object"||R===null)return!1;try{return k(R)===Cs.documentFragment}catch{return!1}},Kd=function(R){if(!k||typeof R!="object"||R===null)return!1;try{return typeof k(R)=="number"}catch{return!1}};function Vs(he,R,J){he.length!==0&&xg(he,de=>{de.call(t,R,J,Ci)})}let w0=function(R,J){return!!(Dt&&R.hasChildNodes()&&!Kd(R.firstElementChild)&&Ga(Yge,R.textContent)&&Ga(Yge,R.innerHTML)||Dt&&R.namespaceURI===Ko&&sje[J]&&(Kd(R.firstElementChild)||typeof R.textContent=="string"&&Ga(lje[J],R.textContent))||R.nodeType===Cs.processingInstruction||Dt&&R.nodeType===Cs.comment&&Ga(jge,R.data))},x0=function(R,J){if(R instanceof RegExp)return Ga(R,J);if(R instanceof Function){for(var de=arguments.length,be=new Array(de>2?de-2:0),et=2;et<de;et++)be[et-2]=arguments[et];return!!R(J,...be)}return!1},e3=function(R,J,de){if(!pe[J]&&Om(J)&&x0(Ze.tagNameCheck,J))return!1;if(fn&&!Ta[J]){let be=w(R),et=b(R);if(et&&be){let zt=et.length;for(let Ot=zt-1;Ot>=0;--Ot){let Eo=R===de?m(et[Ot],!0):et[Ot];be.insertBefore(Eo,g(R))}}}return Ca(R),!0},l2=function(R,J,de,be){return R.length===0?J:J===de||J===be?_s(J):J},wp=function(R,J){return R===J||w(R)!==null?!1:(Mt&&ah(R),!0)},jT=function(R,J){if(Vs(I.beforeSanitizeElements,R,null),wp(R,J))return!0;if(ih(R))return Ca(R),!0;let de=fo(y(R));if(me=l2(I.uponSanitizeElement,me,it,nn),Vs(I.uponSanitizeElement,R,{tagName:de,allowedTags:me}),wp(R,J))return!0;if(w0(R,de))return Ca(R),!0;if(pe[de]||!($e.tagCheck instanceof Function&&$e.tagCheck(de))&&!me[de]){let be=e3(R,de,J);return be===!1&&(Vs(I.afterSanitizeElements,R,null),wp(R,J))?!0:be}if(E(R)===Cs.element&&!ZI(R)||(de==="noscript"||de==="noembed"||de==="noframes")&&Ga(aje,R.innerHTML))return Ca(R),!0;if(Pt&&R.nodeType===Cs.text){let be=Vd(R.textContent);R.textContent!==be&&(ok(t.removed,{element:R.cloneNode()}),R.textContent=be)}return Vs(I.afterSanitizeElements,R,null),wp(R,J)},Or=function(R,J,de){if(Me[J]||YT(J,R)||Nt&&(J==="id"||J==="name")&&(de in o||de in Nm))return!1;let be=ue[J]||$e.attributeCheck instanceof Function&&$e.attributeCheck(J,R);return Ht&&Ga(X,J)||mo&&Ga(ee,J)?!0:be?zo[J]||Ga(Ne,nk(de,ce,""))||(J==="src"||J==="xlink:href"||J==="href")&&R!=="script"&&Mge(de,"data:")===0&&oi[R]||St&&!Ga(ke,nk(de,ce,""))?!0:!de:Om(R)&&x0(Ze.tagNameCheck,R)&&x0(Ze.attributeNameCheck,J,R)||J==="is"&&Ze.allowCustomizedBuiltInElements&&x0(Ze.tagNameCheck,de)},d2=co({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Om=function(R){return!d2[ak(R)]&&Ga(Ye,R)},c2=function(R,J,de,be){if(O&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!de)switch(c.getAttributeType(R,J)){case"TrustedHTML":return C(be);case"TrustedScriptURL":return F(be)}return be},p2=function(R,J,de,be){try{return de?R.setAttributeNS(de,J,be):R.setAttribute(J,be),ih(R)?(Ca(R),!1):!0}catch{return ri(J,R),!1}},m2=function(R,J){if(Vs(I.beforeSanitizeAttributes,R,null),wp(R,J))return;let de=R.attributes;if(!de||ih(R))return;ue=l2(I.uponSanitizeAttribute,ue,kt,rn);let be={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ue,forceKeepAttr:void 0},et=de.length,zt=fo(R.nodeName);for(;et--;){let Ot=de[et],Eo=Ot.name,Lr=Ot.namespaceURI,ur=Ot.value,Yd=fo(Eo),y0=ur,_n=Eo==="value"?y0:WYe(y0),xp=!1;if(be.attrName=Yd,be.attrValue=_n,be.keepAttr=!0,be.forceKeepAttr=void 0,Vs(I.uponSanitizeAttribute,R,be),_n=be.attrValue,uo&&(Yd==="id"||Yd==="name")&&Mge(_n,Sa)!==0&&(ri(Eo,R,Ot),_n=Sa+_n,xp=!0),Dt&&Ga(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,_n)){ri(Eo,R,Ot);continue}if(Yd==="attributename"&&Dge(_n,"href")){ri(Eo,R,Ot);continue}if(!be.forceKeepAttr){if(!be.keepAttr){ri(Eo,R,Ot);continue}if(!Qt&&Ga(ije,_n)){ri(Eo,R,Ot);continue}if(Pt&&(_n=Vd(_n)),!Or(zt,Yd,_n)){ri(Eo,R,Ot);continue}_n=c2(zt,Yd,Lr,_n),_n!==y0&&p2(R,Eo,Lr,_n)&&xp&&Hge(t.removed)}}Vs(I.afterSanitizeAttributes,R,null),wp(R,J)},Xl=function(R){let J=null,de=s2(R);for(Vs(I.beforeSanitizeShadowDOM,R,null);J=de.nextNode();)if(Vs(I.uponSanitizeShadowNode,J,null),jT(J,R),m2(J,R),bp(J.content)&&Xl(J.content),E(J)===Cs.element){let be=x(J);bp(be)&&(Ar(be),Xl(be))}Vs(I.afterSanitizeShadowDOM,R,null)},Ar=function(R){let J=[{node:R,shadow:null}];for(;J.length>0;){let de=J.pop();if(de.shadow){Xl(de.shadow);continue}let be=de.node,et=E(be)===Cs.element,zt=b(be);if(zt)for(let Ot=zt.length-1;Ot>=0;--Ot)J.push({node:zt[Ot],shadow:null});if(et){let Ot=S?S(be):null;if(typeof Ot=="string"&&fo(Ot)==="template"){let Eo=be.content;bp(Eo)&&J.push({node:Eo,shadow:null})}}if(et){let Ot=x(be);bp(Ot)&&J.push({node:null,shadow:Ot},{node:Ot,shadow:null})}}};return t.sanitize=function(he){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=null,de=null,be=null,et=null;if(yn=!he,yn&&(he="<!-->"),typeof he!="string"&&!Kd(he)&&(he=KYe(he),typeof he!="string"))throw af("dirty is not a string, aborting");if(!t.isSupported)return he;Fe?(me=nn,ue=rn):Ue(R),(I.uponSanitizeElement.length>0||I.uponSanitizeAttribute.length>0)&&(me=_s(me)),I.uponSanitizeAttribute.length>0&&(ue=_s(ue)),t.removed=[];let zt=Mt&&typeof he!="string"&&Kd(he);if(zt){QI(he);let Lr=y(he);if(typeof Lr=="string"){let ur=fo(Lr);if(!me[ur]||pe[ur])throw $d(he),af("root node is forbidden and cannot be sanitized in-place")}if(ih(he))throw $d(he),af("root node is clobbered and cannot be sanitized in-place");try{Ar(he)}catch(ur){throw $d(he),ur}}else if(Kd(he))J=i2("<!---->"),de=J.ownerDocument.importNode(he,!0),de.nodeType===Cs.element&&de.nodeName==="BODY"||de.nodeName==="HTML"?J=de:J.appendChild(de),Ar(J);else{if(!je&&!Pt&&!ye&&he.indexOf("<")===-1)return O&&wt?C(he):he;if(J=i2(he),!J)return je?null:wt?P:""}J&&ti&&Ca(J.firstChild);let Ot=zt?he:J;try{let Lr=s2(Ot);for(;be=Lr.nextNode();)jT(be,Ot),m2(be,Ot),bp(be.content)&&Xl(be.content)}catch(Lr){throw zt&&($d(he),xg(t.removed,ur=>{ur.element&&ah(ur.element)})),Lr}if(zt){let Lr=!1;if(xg(t.removed,ur=>{ur.element&&(ur.element===he&&(Lr=!0),ah(ur.element))}),Lr)throw af("a node selected for removal could not be safely returned; refusing to sanitize in place");return Pt&&hn(he),he}if(je){if(Pt&&hn(J),ft)for(et=Y.call(J.ownerDocument);J.firstChild;)et.appendChild(J.firstChild);else et=J;return(ue.shadowroot||ue.shadowrootmode)&&(et=j.call(n,et,!0)),et}let Eo=ye?J.outerHTML:J.innerHTML;return ye&&me["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&Ga(nje,J.ownerDocument.doctype.name)&&(Eo="<!DOCTYPE "+J.ownerDocument.doctype.name+`>
3
3
  `+Eo),Pt&&(Eo=Vd(Eo)),O&&wt?C(Eo):Eo},t.setConfig=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ue(he),Fe=!0,nn=me,rn=ue},t.clearConfig=function(){Ci=null,Fe=!1,nn=null,rn=null,O=B,P=""},t.isValidAttribute=function(he,R,J){Ci||Ue({});let de=fo(he),be=fo(R);return Or(de,be,J)},t.addHook=function(he,R){typeof R=="function"&&qi(I,he)&&ok(I[he],R)},t.removeHook=function(he,R){if(qi(I,he)){if(R!==void 0){let J=MYe(I[he],R);return J===-1?void 0:zYe(I[he],J,1)[0]}return Hge(I[he])}},t.removeHooks=function(he){qi(I,he)&&(I[he]=[])},t.removeAllHooks=function(){I=qge()},t}var pje=Qge();e0e.exports=pje});var eh=gn(m0=>{"use strict";var m$,Jwt=[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];m0.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};m0.getSymbolTotalCodewords=function(t){return Jwt[t]};m0.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};m0.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');m$=t};m0.isKanjiModeEnabled=function(){return typeof m$<"u"};m0.toSJIS=function(t){return m$(t)}});var _I=gn(Yl=>{"use strict";Yl.L={bit:1};Yl.M={bit:0};Yl.Q={bit:3};Yl.H={bit:2};function Qwt(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Yl.L;case"m":case"medium":return Yl.M;case"q":case"quartile":return Yl.Q;case"h":case"high":return Yl.H;default:throw new Error("Unknown EC Level: "+e)}}Yl.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};Yl.from=function(t,o){if(Yl.isValid(t))return t;try{return Qwt(t)}catch{return o}}});var $Oe=gn((ifn,GOe)=>{"use strict";function UOe(){this.buffer=[],this.length=0}UOe.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++}};GOe.exports=UOe});var KOe=gn((sfn,VOe)=>{"use strict";function OT(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)}OT.prototype.set=function(e,t,o,n){let r=e*this.size+t;this.data[r]=o,n&&(this.reservedBit[r]=!0)};OT.prototype.get=function(e,t){return this.data[e*this.size+t]};OT.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};OT.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};VOe.exports=OT});var YOe=gn(RI=>{"use strict";var ext=eh().getSymbolSize;RI.getRowColCoords=function(t){if(t===1)return[];let o=Math.floor(t/7)+2,n=ext(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()};RI.getPositions=function(t){let o=[],n=RI.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 XOe=gn(qOe=>{"use strict";var txt=eh().getSymbolSize,jOe=7;qOe.getPositions=function(t){let o=txt(t);return[[0,0],[o-jOe,0],[0,o-jOe]]}});var ZOe=gn(on=>{"use strict";on.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var u0={N1:3,N2:3,N3:40,N4:10};on.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};on.from=function(t){return on.isValid(t)?parseInt(t,10):void 0};on.getPenaltyN1=function(t){let o=t.size,n=0,r=0,a=0,i=null,s=null;for(let l=0;l<o;l++){r=a=0,i=s=null;for(let d=0;d<o;d++){let c=t.get(l,d);c===i?r++:(r>=5&&(n+=u0.N1+(r-5)),i=c,r=1),c=t.get(d,l),c===s?a++:(a>=5&&(n+=u0.N1+(a-5)),s=c,a=1)}r>=5&&(n+=u0.N1+(r-5)),a>=5&&(n+=u0.N1+(a-5))}return n};on.getPenaltyN2=function(t){let o=t.size,n=0;for(let r=0;r<o-1;r++)for(let a=0;a<o-1;a++){let i=t.get(r,a)+t.get(r,a+1)+t.get(r+1,a)+t.get(r+1,a+1);(i===4||i===0)&&n++}return n*u0.N2};on.getPenaltyN3=function(t){let o=t.size,n=0,r=0,a=0;for(let i=0;i<o;i++){r=a=0;for(let s=0;s<o;s++)r=r<<1&2047|t.get(i,s),s>=10&&(r===1488||r===93)&&n++,a=a<<1&2047|t.get(s,i),s>=10&&(a===1488||a===93)&&n++}return n*u0.N3};on.getPenaltyN4=function(t){let o=0,n=t.data.length;for(let a=0;a<n;a++)o+=t.data[a];return Math.abs(Math.ceil(o*100/n/5)-10)*u0.N4};function oxt(e,t,o){switch(e){case on.Patterns.PATTERN000:return(t+o)%2===0;case on.Patterns.PATTERN001:return t%2===0;case on.Patterns.PATTERN010:return o%3===0;case on.Patterns.PATTERN011:return(t+o)%3===0;case on.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2===0;case on.Patterns.PATTERN101:return t*o%2+t*o%3===0;case on.Patterns.PATTERN110:return(t*o%2+t*o%3)%2===0;case on.Patterns.PATTERN111:return(t*o%3+(t+o)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}on.applyMask=function(t,o){let n=o.size;for(let r=0;r<n;r++)for(let a=0;a<n;a++)o.isReserved(a,r)||o.xor(a,r,oxt(t,a,r))};on.getBestMask=function(t,o){let n=Object.keys(on.Patterns).length,r=0,a=1/0;for(let i=0;i<n;i++){o(i),on.applyMask(i,t);let s=on.getPenaltyN1(t)+on.getPenaltyN2(t)+on.getPenaltyN3(t)+on.getPenaltyN4(t);on.applyMask(i,t),s<a&&(a=s,r=i)}return r}});var f$=gn(u$=>{"use strict";var th=_I(),NI=[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],OI=[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];u$.getBlocksCount=function(t,o){switch(o){case th.L:return NI[(t-1)*4+0];case th.M:return NI[(t-1)*4+1];case th.Q:return NI[(t-1)*4+2];case th.H:return NI[(t-1)*4+3];default:return}};u$.getTotalCodewordsCount=function(t,o){switch(o){case th.L:return OI[(t-1)*4+0];case th.M:return OI[(t-1)*4+1];case th.Q:return OI[(t-1)*4+2];case th.H:return OI[(t-1)*4+3];default:return}}});var JOe=gn(LI=>{"use strict";var AT=new Uint8Array(512),AI=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)AT[o]=t,AI[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)AT[o]=AT[o-255]})();LI.log=function(t){if(t<1)throw new Error("log("+t+")");return AI[t]};LI.exp=function(t){return AT[t]};LI.mul=function(t,o){return t===0||o===0?0:AT[AI[t]+AI[o]]}});var QOe=gn(LT=>{"use strict";var h$=JOe();LT.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]^=h$.mul(t[r],o[a]);return n};LT.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]^=h$.mul(o[i],r);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};LT.generateECPolynomial=function(t){let o=new Uint8Array([1]);for(let n=0;n<t;n++)o=LT.mul(o,new Uint8Array([1,h$.exp(n)]));return o}});var oAe=gn((ffn,tAe)=>{"use strict";var eAe=QOe();function g$(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}g$.prototype.initialize=function(t){this.degree=t,this.genPoly=eAe.generateECPolynomial(this.degree)};g$.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=eAe.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};tAe.exports=g$});var b$=gn(nAe=>{"use strict";nAe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var w$=gn(Rm=>{"use strict";var rAe="[0-9]+",nxt="[A-Z $%*+\\-./:]+",IT="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";IT=IT.replace(/u/g,"\\u");var rxt="(?:(?![A-Z0-9 $%*+\\-./:]|"+IT+`)(?:.|[\r
4
4
  ]))+`;Rm.KANJI=new RegExp(IT,"g");Rm.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Rm.BYTE=new RegExp(rxt,"g");Rm.NUMERIC=new RegExp(rAe,"g");Rm.ALPHANUMERIC=new RegExp(nxt,"g");var axt=new RegExp("^"+IT+"$"),ixt=new RegExp("^"+rAe+"$"),sxt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Rm.testKanji=function(t){return axt.test(t)};Rm.testNumeric=function(t){return ixt.test(t)};Rm.testAlphanumeric=function(t){return sxt.test(t)}});var oh=gn(cr=>{"use strict";var lxt=b$(),x$=w$();cr.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};cr.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};cr.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};cr.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};cr.MIXED={bit:-1};cr.getCharCountIndicator=function(t,o){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!lxt.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?t.ccBits[0]:o<27?t.ccBits[1]:t.ccBits[2]};cr.getBestModeForData=function(t){return x$.testNumeric(t)?cr.NUMERIC:x$.testAlphanumeric(t)?cr.ALPHANUMERIC:x$.testKanji(t)?cr.KANJI:cr.BYTE};cr.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};cr.isValid=function(t){return t&&t.bit&&t.ccBits};function dxt(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return cr.NUMERIC;case"alphanumeric":return cr.ALPHANUMERIC;case"kanji":return cr.KANJI;case"byte":return cr.BYTE;default:throw new Error("Unknown mode: "+e)}}cr.from=function(t,o){if(cr.isValid(t))return t;try{return dxt(t)}catch{return o}}});var dAe=gn(f0=>{"use strict";var II=eh(),cxt=f$(),aAe=_I(),nh=oh(),y$=b$(),sAe=7973,iAe=II.getBCHDigit(sAe);function pxt(e,t,o){for(let n=1;n<=40;n++)if(t<=f0.getCapacity(n,o,e))return n}function lAe(e,t){return nh.getCharCountIndicator(e,t)+4}function mxt(e,t){let o=0;return e.forEach(function(n){let r=lAe(n.mode,t);o+=r+n.getBitsLength()}),o}function uxt(e,t){for(let o=1;o<=40;o++)if(mxt(e,o)<=f0.getCapacity(o,t,nh.MIXED))return o}f0.from=function(t,o){return y$.isValid(t)?parseInt(t,10):o};f0.getCapacity=function(t,o,n){if(!y$.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=nh.BYTE);let r=II.getSymbolTotalCodewords(t),a=cxt.getTotalCodewordsCount(t,o),i=(r-a)*8;if(n===nh.MIXED)return i;let s=i-lAe(n,t);switch(n){case nh.NUMERIC:return Math.floor(s/10*3);case nh.ALPHANUMERIC:return Math.floor(s/11*2);case nh.KANJI:return Math.floor(s/13);case nh.BYTE:default:return Math.floor(s/8)}};f0.getBestVersionForData=function(t,o){let n,r=aAe.from(o,aAe.M);if(Array.isArray(t)){if(t.length>1)return uxt(t,r);if(t.length===0)return 1;n=t[0]}else n=t;return pxt(n.mode,n.getLength(),r)};f0.getEncodedBits=function(t){if(!y$.isValid(t)||t<7)throw new Error("Invalid QR Code version");let o=t<<12;for(;II.getBCHDigit(o)-iAe>=0;)o^=sAe<<II.getBCHDigit(o)-iAe;return t<<12|o}});var uAe=gn(mAe=>{"use strict";var v$=eh(),pAe=1335,fxt=21522,cAe=v$.getBCHDigit(pAe);mAe.getEncodedBits=function(t,o){let n=t.bit<<3|o,r=n<<10;for(;v$.getBCHDigit(r)-cAe>=0;)r^=pAe<<v$.getBCHDigit(r)-cAe;return(n<<10|r)^fxt}});var hAe=gn((yfn,fAe)=>{"use strict";var hxt=oh();function qy(e){this.mode=hxt.NUMERIC,this.data=e.toString()}qy.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};qy.prototype.getLength=function(){return this.data.length};qy.prototype.getBitsLength=function(){return qy.getBitsLength(this.data.length)};qy.prototype.write=function(t){let o,n,r;for(o=0;o+3<=this.data.length;o+=3)n=this.data.substr(o,3),r=parseInt(n,10),t.put(r,10);let a=this.data.length-o;a>0&&(n=this.data.substr(o),r=parseInt(n,10),t.put(r,a*3+1))};fAe.exports=qy});var bAe=gn((vfn,gAe)=>{"use strict";var gxt=oh(),k$=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Xy(e){this.mode=gxt.ALPHANUMERIC,this.data=e}Xy.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Xy.prototype.getLength=function(){return this.data.length};Xy.prototype.getBitsLength=function(){return Xy.getBitsLength(this.data.length)};Xy.prototype.write=function(t){let o;for(o=0;o+2<=this.data.length;o+=2){let n=k$.indexOf(this.data[o])*45;n+=k$.indexOf(this.data[o+1]),t.put(n,11)}this.data.length%2&&t.put(k$.indexOf(this.data[o]),6)};gAe.exports=Xy});var xAe=gn((kfn,wAe)=>{"use strict";var bxt=oh();function Zy(e){this.mode=bxt.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}Zy.getBitsLength=function(t){return t*8};Zy.prototype.getLength=function(){return this.data.length};Zy.prototype.getBitsLength=function(){return Zy.getBitsLength(this.data.length)};Zy.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)};wAe.exports=Zy});var vAe=gn((Sfn,yAe)=>{"use strict";var wxt=oh(),xxt=eh();function Jy(e){this.mode=wxt.KANJI,this.data=e}Jy.getBitsLength=function(t){return t*13};Jy.prototype.getLength=function(){return this.data.length};Jy.prototype.getBitsLength=function(){return Jy.getBitsLength(this.data.length)};Jy.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let o=xxt.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]+`
@@ -12,7 +12,7 @@ Minimum version required to store current data is: `+a+`.
12
12
  @keyframes storefront-cart-fade { from { opacity: 0 } to { opacity: 1 } }
13
13
  @keyframes storefront-cart-slide { from { transform: translateX(40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
14
14
  ${v?` @keyframes storefront-cart-slide-left { from { transform: translateX(-40px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
15
- `:""}`}),d]})]})}let h=v=>{!m||!bde(e,!1)||v.target===v.currentTarget&&p()},g=e.height==="full",b=e.fullWidth||g,w=iMe(e),x=GB("div",{ref:c,tabIndex:-1,"data-popup-panel":"",className:"relative flex flex-col bg-bg text-fg outline-none",style:{width:e.fullWidth?"100%":`min(${e.width}px, 100%)`,height:g?"100%":void 0,maxHeight:e.fullWidth&&!g||w.place==="outside"?`calc(100% - ${$B}px)`:"100%",borderRadius:b?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[w.place!=="none"?og("button",{type:"button","aria-label":"Close",onClick:r?void 0:p,"data-popup-close":w.place,"data-popup-close-until":w.until,className:"absolute z-[5] flex h-[38px] w-[38px] items-center justify-center border border-line bg-bg font-mono text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:w.place==="outside"?{top:-aMe,right:0}:{top:12,right:12},children:"\xD7"}):null,w.until?og("style",{children:`@container popup-frame (min-width: ${w.until+1}px){[data-popup-close-until="${w.until}"]{display:none}}`}):null,og("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return og("div",{role:a||r?"dialog":"region","aria-modal":m?!0:void 0,"aria-label":s,"data-popup-frame":r?"inline":"live",onClick:h,className:r?"relative flex min-h-[100vh] w-full":"fixed inset-0 z-[90] flex",style:{...rMe[e.placement],background:gde(e.tintColor,e.tintOpacity),padding:b?0:w.place==="outside"&&e.placement.startsWith("top")?`${24+$B}px 24px 24px`:24,...w.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:x})}var lMe=25.4,u1=400,G5=152,dMe=58,wde=G5*Math.cos(dMe*Math.PI/180),cMe=14,pMe=u1/2,mMe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function yde(e){let t=bs(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:mMe}function vde(e){let t=e.rimDiameter*lMe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=G5*(e.sectionWidth/o),r=t/o;return{cy:pMe,rx:wde,ry:G5,cxf:u1/2-n/2-cMe,dx:n,rimRx:wde*r,rimRy:G5*r}}var to=e=>e.toFixed(1);function $5(e,t,o,n=!1){let r=e.cxf+t*e.dx,[a,i]=n?[e.cy+e.ry,e.cy-e.ry]:[e.cy-e.ry,e.cy+e.ry];return`M${to(r)} ${to(a)} A${to(e.rx)} ${to(e.ry)} 0 0 ${o} ${to(r)} ${to(i)}`}function YB(e,t,o){let n=e.cxf+t*e.dx,r=e.cxf+o*e.dx,a=e.cy-e.ry,i=e.cy+e.ry;return`M${to(n)} ${to(a)} L${to(r)} ${to(a)} A${to(e.rx)} ${to(e.ry)} 0 0 1 ${to(r)} ${to(i)} L${to(n)} ${to(i)} A${to(e.rx)} ${to(e.ry)} 0 0 0 ${to(n)} ${to(a)} Z`}function U5(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 kde(e,t,o,n,r){let[a,i]=U5(e,t,n),[s,l]=U5(e,t,r),[d,c]=U5(e,o,r),[p,m]=U5(e,o,n);return`M${to(a)} ${to(i)} A${to(e.rx)} ${to(e.ry)} 0 0 1 ${to(s)} ${to(l)} L${to(d)} ${to(c)} A${to(e.rx)} ${to(e.ry)} 0 0 0 ${to(p)} ${to(m)} L${to(a)} ${to(i)} Z`}var xde=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],uMe={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}}]},fMe=[["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 Sde(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return xde;for(let[o,n]of fMe)if(t.includes(` ${o} `))return uMe[n];return xde}var V5="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as hMe}from"react";function za(e,t=/:/g){let o=hMe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as f1,jsx as qt,jsxs as Cc}from"react/jsx-runtime";var Ts={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},gMe=[.8,.52,.24],Tde=.4,Ede=.88,Pde=.3,Cde=5,_de=.3,Rde=.84,bMe=7,bo=e=>Math.round(e*10)/10;function jB({size:e,type:t,className:o}){let n=za("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=vde(yde(e)),i=YB(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Cc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${u1} ${u1}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[qt("title",{children:s}),Cc("defs",{children:[qt(xMe,{id:r}),qt("clipPath",{id:r.crown,children:qt("path",{d:i})})]}),qt("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})`}),qt(yMe,{g:a,id:r}),qt(vMe,{g:a,id:r}),qt("path",{d:i,fill:`url(#${r.tread})`}),qt("g",{clipPath:`url(#${r.crown})`,children:Sde(t).map(l=>qt(wMe,{g:a,column:l},l.f[0]))}),qt("path",{d:$5(a,0,0,!0),stroke:"currentColor",strokeOpacity:Ts.shoulder,strokeWidth:1.2}),qt("path",{d:$5(a,1,1),stroke:"currentColor",strokeOpacity:Ts.silhouette,strokeWidth:1.4})]})}function wMe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Cc(f1,{children:[qt("path",{d:YB(e,o,n),fill:"currentColor",fillOpacity:Ts.rib}),qt("path",{d:$5(e,o,1),stroke:"currentColor",strokeOpacity:Ts.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 qt(f1,{children:l.map(([d,c])=>qt("path",{d:kde(e,o,n,d,c),fill:"currentColor",fillOpacity:Ts.rib,stroke:"currentColor",strokeOpacity:Ts.grooveWall,strokeWidth:1},d))})}function xMe({id:e}){return Cc(f1,{children:[Cc("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[qt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),qt("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),qt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),qt("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),qt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),Cc("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[qt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),qt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),qt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),Cc("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[qt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),qt("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),qt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),Cc("radialGradient",{id:e.shadow,children:[qt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),qt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function yMe({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 Cc(f1,{children:[qt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx),ry:bo(e.ry),fill:`url(#${t.wall})`}),gMe.map((a,i)=>{let s=n(a);return qt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*s),ry:bo(e.ry*s),stroke:"currentColor",strokeOpacity:Ts.relief[i],strokeWidth:1},a)}),qt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*n(Tde)),ry:bo(e.ry*n(Tde)),stroke:"currentColor",strokeOpacity:Ts.lettering,strokeWidth:bo(r)})]})}function vMe({g:e,id:t}){let o=Array.from({length:Cde},(n,r)=>{let a=(r*(360/Cde)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*_de*Math.cos(a),y1:e.cy+e.rimRy*_de*Math.sin(a),x2:e.cxf+e.rimRx*Rde*Math.cos(a),y2:e.cy+e.rimRy*Rde*Math.sin(a)}});return Cc(f1,{children:[qt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx),ry:bo(e.rimRy),fill:`url(#${t.rim})`}),qt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Ede),ry:bo(e.rimRy*Ede),fill:"currentColor",fillOpacity:Ts.dishFill,stroke:"currentColor",strokeOpacity:Ts.dishEdge,strokeWidth:1}),o.map((n,r)=>qt("line",{x1:bo(n.x1),y1:bo(n.y1),x2:bo(n.x2),y2:bo(n.y2),stroke:"currentColor",strokeOpacity:Ts.spoke,strokeWidth:bMe,strokeLinecap:"round"},r)),qt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Pde),ry:bo(e.rimRy*Pde),fill:"currentColor",fillOpacity:Ts.hubFill,stroke:"currentColor",strokeOpacity:Ts.hubEdge,strokeWidth:1})]})}import{jsx as qB}from"react/jsx-runtime";function Qp({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return qB("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:qB(io,{label:t||"Tyre",src:nd(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:qB(jB,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as h1}from"react/jsx-runtime";function kMe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function XB({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??rne;return h1("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:W5(e)?h1(Qp,{image:o?.coverImage,size:e.size,type:kMe(o),sizes:"96px",className:"h-full w-full"}):a?.src?h1(al,{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?h1("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:h1(Ah,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as ZB,jsxs as TMe}from"react/jsx-runtime";var Nde={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function Ode(e,t){return Math.min(aF,Math.max(1,e+t))}var Ade="disabled:cursor-not-allowed disabled:opacity-40",SMe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${Nde.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${Ade}`,value:`w-11 text-center font-mono ${Nde.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 ${Ade}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function g1({value:e,onChange:t,size:o}){let n=SMe[o];return TMe("div",{className:n.frame,children:[ZB("button",{type:"button",onClick:()=>t(Ode(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),ZB("span",{className:n.value,children:e}),ZB("button",{type:"button",onClick:()=>t(Ode(e,1)),disabled:e>=aF,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as _c,jsx as Ke,jsxs as oo}from"react/jsx-runtime";function Lde({content:e,closeRef:t}){let{close:o,items:n}=er(),r=t;return oo("header",{className:"flex flex-shrink-0 flex-col gap-4 border-b border-line px-8 pb-6 pt-8 max-[640px]:px-6 max-[640px]:pt-6 max-[640px]:pb-5",children:[oo("div",{className:"flex items-center justify-between",children:[oo("span",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?Ke("span",{className:"border px-2 py-1 text-[10px]",style:{background:"color-mix(in oklab, var(--accent) 12%, transparent)",borderColor:"color-mix(in oklab, var(--accent) 50%, transparent)"},children:e.kickerBadge}):null,(e.kickerBadge?"\xB7 ":"")+e.kickerText]}),Ke("button",{ref:r,type:"button",onClick:o,"aria-label":"Close cart",className:"flex h-8 w-8 items-center justify-center border border-line text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u2715"})]}),oo("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",Ke("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),Ke("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:CQ(e,n.length)})]})}function Ide({content:e}){let{totals:t}=er(),{activeCountry:o}=Rt(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ke(_c,{children:oo("div",{className:`grid flex-shrink-0 ${EMe[r-1]} gap-px border-b border-line bg-line`,children:[Ke(JB,{label:"Items",value:oo(_c,{children:[Ke("em",{className:"font-serif font-normal italic text-accent",children:t.sets})," set",t.sets===1?"":"s"," \xB7 ",t.units," item",t.units===1?"":"s"]})}),e.leadTimeValue?Ke(JB,{label:"Lead time",value:e.leadTimeValue}):null,n?Ke(JB,{label:"Ships to",value:n}):null]})})}function Fde({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=er();return Ke(_c,{children:o.length===0?Ke(NMe,{content:e}):o.map(a=>Ke(PMe,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function Bde(){let{items:e,totals:t,bundles:o}=er(),{formatMoney:n}=Rt(),r=new Set(e.flatMap(s=>(s.components??[]).map(l=>l.partNumber))),a=new Set(t.appliedBundles.map(s=>s.slug)),i=o.filter(s=>!a.has(s.slug)).filter(s=>s.components.some(l=>r.has(l.partNumber))).slice(0,2);return Ke(_c,{children:i.length>0&&oo("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",style:{background:"color-mix(in oklab, var(--site-surface) 60%, transparent)"},children:[oo("div",{className:"mb-4 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[Ke("span",{children:"You may also need"}),Ke("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),Ke("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:i.map(s=>Ke(CMe,{href:`/bundles/${s.slug}`,title:s.name,sub:_Me(s,t.currency,n)},s.slug))})]})})}function Hde(){return Ke(_c,{children:Ke("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ke(sne,{})})})}function Dde({content:e}){return Ke(_c,{children:e.promises.length>0&&Ke("div",{className:"flex flex-wrap justify-center gap-5 border-b border-line px-8 pt-6 pb-8 font-mono text-[9px] uppercase tracking-[0.24em] text-fg-dim max-[640px]:px-6",children:e.promises.map(t=>Ke(RMe,{children:t},t))})})}function Mde(){let{totals:e,coupon:t}=er(),{formatMoney:o}=Rt();return Ke(_c,{children:oo("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ke(zu,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ke(zu,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:oo("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),e.discount>0&&t?.valid&&Ke(zu,{label:`Coupon \xB7 ${t.code}`,value:oo("span",{style:{color:"var(--green)"},children:["\u2212 ",o(e.discount,e.currency)]})}),t?.deferred&&Ke(zu,{label:`Coupon \xB7 ${t.code}`,value:Moe}),t?.valid&&t.effects?.gift&&Ke(zu,{label:`Free gift \xB7 ${t.effects.gift.partNumber}${t.effects.gift.quantity>1?` \xD7${t.effects.gift.quantity}`:""}`,value:Ke("span",{style:{color:"var(--green)"},children:Oh})}),Ke(zu,{label:"Shipping",value:e.shippingStatus==="free"?Ke("span",{style:{color:"var(--green)"},children:Oh}):tne(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ke(zu,{label:e.tax.inclusive?`${e.tax.name} included \xB7 ${e.tax.rate}%`:e.tax.name,value:o(e.tax.amount,e.currency)}):e.tax.name?Ke(zu,{label:e.tax.name,value:ene}):null),oo("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[oo("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",Ke("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),Ke("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:e.repricing?joe:o(e.grand,e.currency)})]})]})})}function zde(){let{items:e,close:t}=er();return Ke(_c,{children:oo("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[oo(Ie,{href:"/checkout",onClick:t,"aria-disabled":e.length===0,className:["group flex items-center justify-between border px-5 py-5 font-mono text-[12px] uppercase tracking-[0.3em] transition-colors",e.length===0?"pointer-events-none cursor-not-allowed border-line bg-surface text-fg-dim":"border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg"].join(" "),children:["Begin checkout",Ke("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),Ke("div",{className:"flex items-center justify-between px-1 py-2 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:Ke(Ie,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var EMe=["grid-cols-1","grid-cols-2","grid-cols-3"];function JB({label:e,value:t}){return oo("div",{className:"flex flex-col gap-1 bg-bg px-4 py-4",children:[Ke("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),Ke("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function PMe({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=er(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=Rt();return oo(_c,{children:[oo("article",{className:"grid grid-cols-[96px_1fr] gap-5 border-b border-line px-8 py-6 transition-colors hover:bg-[color-mix(in_oklab,var(--site-surface)_60%,transparent)] max-[640px]:grid-cols-[78px_1fr] max-[640px]:px-6 max-[640px]:py-5",children:[Ke(XB,{line:e,catalog:r,tyre:t}),oo("div",{className:"flex min-w-0 flex-col gap-2",children:[oo("div",{className:"flex items-start justify-between gap-3",children:[oo("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?oo(_c,{children:["FusionForge",Ke(gP,{})]}):e.process]}),Ke("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:lF(e,s)===null?du:l(lF(e,s),s)})]}),oo("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,Ke("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&oo("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.config.map(d=>Ke("span",{className:["border px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em]",d.gold?"border-[color-mix(in_oklab,var(--accent)_45%,var(--site-line))] text-accent":"border-line text-fg-dim"].join(" "),children:d.label},d.label)),i>0&&oo("span",{className:"border border-accent bg-accent px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em] text-bg",children:[i,"\xD7 free"]})]}),oo("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ke(g1,{value:e.qty,onChange:n,size:"small"}),oo("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[Ke(Ie,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),Ke("button",{type:"button",onClick:o,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&oo("div",{className:"mx-8 -mt-px flex items-start gap-3 border-t-0 px-4 py-4 font-display text-[13px] leading-[1.45] text-fg max-[640px]:mx-6",style:{background:"color-mix(in oklab, var(--accent) 8%, transparent)",border:"1px solid color-mix(in oklab, var(--accent) 35%, var(--site-line))",borderTop:"0"},children:[Ke("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),oo("span",{children:["Verified for your ",Ke("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function CMe({title:e,sub:t,href:o}){return oo(Ie,{href:o,className:"flex items-center justify-between border border-line bg-bg px-4 py-3 text-left transition-colors hover:border-accent",children:[oo("span",{className:"flex min-w-0 flex-col gap-1",children:[Ke("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),Ke("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),Ke("span",{className:"ml-2 flex h-6 w-6 flex-shrink-0 items-center justify-center font-mono text-[13px] text-accent",style:{borderColor:"color-mix(in oklab, var(--accent) 45%, var(--site-line))",borderWidth:1,borderStyle:"solid"},children:"+"})]})}function _Me(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 RMe({children:e}){return Ke("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function zu({label:e,value:t}){return oo("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[Ke("span",{children:e}),Ke("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function NMe({content:e}){return oo("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[Ke("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),Ke("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),oo(Ie,{href:"/wheels",className:"mt-3 inline-flex items-center gap-3 border border-line px-5 py-3 font-mono text-[11px] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:["Browse the catalog ",Ke("span",{className:"text-accent",children:"\u2192"})]})]})}import{jsx as Wu,jsxs as Wde}from"react/jsx-runtime";var LMe=ru(void 0);function b1({content:e=lC,look:t=LMe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=er(),s=AMe(null),l=hde(a.filter(W5).map(d=>d.slug));return OMe(()=>{i(t.autoOpen)},[t.autoOpen,i]),Wde(Ki,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:"Your cart",children:[Wu(Lde,{content:e,closeRef:s}),Wu(Ide,{content:e}),Wde("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[Wu(Fde,{content:e,tyres:l}),Wu(Bde,{}),Wu(Hde,{}),Wu(Dde,{content:e})]}),Wu(Mde,{}),Wu(zde,{})]})}import IMe from"efficient-easel/screen/components/UiIcon";import{Fragment as BMe,jsx as ng,jsxs as K5}from"react/jsx-runtime";var FMe=ew(()=>import("./chunks/EditorPreviewCheckout-EZWWWREG.js"),{ssr:!1});function QB(){let{chromePlaceholder:e,themeFromDocument:t}=$n(),{surface:o}=ete();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?K5(BMe,{children:[ng(FMe,{}),ng(Ude,{surface:o})]}):ng(pu,{children:K5(Db,{preview:!0,children:[ng(b1,{}),ng(Ude,{surface:o})]})})}function Ude({surface:e}){let{label:t,href:o}=Ele(e);return K5("div",{className:"rounded-full py-1 pr-2 pl-3",style:{position:"fixed",bottom:14,left:"50%",transform:"translateX(-50%)",zIndex:2147483e3,display:"flex",alignItems:"center",gap:8,maxWidth:"calc(100% - 24px)",fontSize:12,fontWeight:600,fontFamily:"system-ui, sans-serif",color:"#334155",background:"rgba(255,255,255,0.94)",border:"1px solid rgba(15,23,42,0.12)",boxShadow:"0 6px 24px rgba(15,23,42,0.18)",pointerEvents:"none"},children:[ng("span",{style:{whiteSpace:"nowrap"},children:u("{name} \xB7 preview only",{name:u(t)})}),K5("a",{className:"rounded-(--radius-control) px-3 py-1",href:o,target:"_blank",rel:"noopener noreferrer",style:{pointerEvents:"auto",flex:"none",display:"inline-flex",alignItems:"center",gap:5,color:"#fff",background:"#2563eb",textDecoration:"none"},children:[u("Open live"),ng(IMe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as HMe,CursorClickIcon as DMe,EyeIcon as MMe,FullWidthIcon as zMe,HeightIcon as WMe,OpacityIcon as Vde,PlacementIcon as UMe,WidthIcon as GMe}from"efficient-easel/icons";import{group as Cw}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as $Me}from"efficient-easel/screen/lib/document/device-fields";import{jsx as em}from"react/jsx-runtime";var VMe={label:"Inside",value:"inside"},KMe={label:"None",value:"none"};function e8(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,$Me("desktop",o)]))}function Gde(e,t){return{_gDesign:Cw("Color"),tintColor:sd("Tint color",e),tintOpacity:le("Tint opacity",em(Vde,{}),ov.min,ov.max,5,t,"%")}}function $de(e,t){return{_gBehavior:Cw("Behavior"),outsideClick:ae("Outside click",e,em(DMe,{})),...t}}var YMe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function t8(e){return le("Width",em(GMe,{}),I4.min,I4.max,4,e,"px")}function Kde(e){if(e===nu){let o=ru(void 0);return e8({_gSize:Cw("Width"),width:t8(o.width),_gPosition:Cw("Placement"),placement:fe("Placement",em(UMe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...Gde(o.tintColor,o.tintOpacity),...$de(o.outsideClick,{autoOpen:ae("Auto open",o.autoOpen,em(MMe,{}))})})}let t=ou;return Be(e8({_gSize:Cw("Width"),width:t8(t.width),height:fe("Height",em(WMe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:Cw("Placement"),placement:ad("Placement",{fallback:t.placement}),fullWidth:ae("Full width",t.fullWidth,em(zMe,{})),...Gde(t.tintColor,t.tintOpacity),...$de(t.outsideClick,{closeButton:fe("Close button",em(HMe,{}),[VMe,{label:"Outside",value:"outside"},KMe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],YMe])}function Yde(e,t){return e8({menuPanelWidth:t8(e),menuPanelTintColor:sd("Tint color",ou.tintColor),menuPanelTintOpacity:le("Tint opacity",em(Vde,{}),ov.min,ov.max,5,t,"%")})}import{PictureTiles as jMe}from"efficient-shell/ui";import{SettingsField as qMe}from"efficient-easel/panel";import{GridIcon as XMe}from"efficient-easel/icons";import{jsx as rg}from"react/jsx-runtime";function ZMe({layout:e}){return rg("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?rg("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):rg("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var jde={type:"custom",render:({value:e,onChange:t})=>{let o=dC({layout:e}).layout,n=F4.find(r=>r.value===o);return rg(qMe,{label:u(B4),icon:rg(XMe,{}),value:n?u(n.label):void 0,children:rg(jMe,{className:"sf-gallery-layouts",label:u(B4),value:o,onChange:t,options:F4.map(r=>({value:r.value,label:u(r.label),picture:rg(ZMe,{layout:r.value})}))})})}};import{CategoryIcon as Vyt,CheckIcon as Kyt,ClockIcon as j$,ColumnsIcon as Yyt,DirectionIcon as jyt,EyeIcon as qyt,ListIcon as Xyt,PageIcon as Zyt,PlacementIcon as Jyt,ScrollPointIcon as Qyt,TabsIcon as e2t,TriggerIcon as t2t}from"efficient-easel/icons";import{deviceField as ELe}from"efficient-easel/screen/lib/document/device-fields";import{group as ql,phoneTwinFields as o2t}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as JMe}from"efficient-easel/screen/lib/document/box-fields";function _w(e){let t=JMe(e);return{...t,render:o=>t.render({...o,value:Im(o.value)??o.value})}}import{useContext as e9e,useEffect as Xde,useRef as j5,useState as q5}from"react";import{Button as X5}from"efficient-shell/ui";import{ScreenDocumentContext as t9e}from"efficient-easel/screen/components/ScreenDocumentContext";var w1=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},Y5=null,o8=null,n8=null;function QMe(){Y5=null,o8=null,n8=null}function qde(e=!1){let t=ia(),o=On();return(e||!Y5||o8===null&&t!==null||n8!==o)&&(o8=t,n8=o,Y5=(t?Ae.listForms(t,{siteId:o}):Promise.reject(new w1)).catch(n=>{throw QMe(),n instanceof w1?n:new w1(n)})),Y5}import{useEaselHost as o9e}from"efficient-easel/screen/lib/host";import{InertHint as r8}from"efficient-easel/panel";import{jsx as or,jsxs as Rc}from"react/jsx-runtime";var Zde="__create-a-new-form__";function n9e({value:e,forms:t,loadFailed:o,emptyLabel:n}){let r=t??[],a=e?r.some(p=>p.slug===e):!0,i=t===null&&!o,s={value:"",label:i?u("Loading\u2026"):o?u("Forms couldn\u2019t be loaded"):n===void 0?u("No form yet"):u(n)},l=e&&!a?[{value:e,label:i||o?e:u("{slug} \u2014 no form with this name",{slug:e})}]:[],d=r.map(p=>({value:p.slug,label:p.is_active?p.title:u("{title} (switched off)",{title:p.title})})),c=i?[]:[{value:Zde,label:u("Create a new form")}];return[s,...l,...d,...c]}function r9e(e){return e===Zde?{action:"create"}:{action:"store",slug:e}}function a9e({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 i9e(e){let t=[u("Goes to {place}",{place:u("Storefront \u2192 Forms")})],o=(e.notify_email??"").trim();return o&&t.push(u("Emails a copy to {email}",{email:o})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?u("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):u("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?u("Creates a wholesale account"):u("Creates a retail account")),t}function a8({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=o9e(),a=e9e(t9e),i=a?a.capabilities.hasForms:!0,[s,l]=q5(null),[d,c]=q5(!1),[p,m]=q5(!1),[f,h]=q5(!1),g=j5(!0),b=j5(e);b.current=e;let w=j5(t);w.current=t;let x=j5(null),v=(P=!1)=>qde(P).then(B=>{if(g.current){l(B),c(!1);let H=a9e({value:b.current,pickedId:x.current,forms:B});H&&w.current(H)}return B},()=>(g.current&&c(!0),[]));Xde(()=>(g.current=!0,i&&v(),()=>{g.current=!1}),[i]),Xde(()=>i?r_(()=>{v(!0)}):void 0,[i]);let S=e?(s??[]).find(P=>P.slug===e)??null:null;S?x.current=S.id:e||(x.current=null);let T=!!e&&!S&&s!==null&&!d,E=n9e({value:e,forms:s,loadFailed:d,emptyLabel:n}),y=async()=>{m(!0),h(!1);try{let P=await Cne(r,{mode:"create"}),B=await v(!0);if(!g.current)return;if(P.status==="timeout"){h(!0);return}if(P.status!=="saved")return;let{form:H}=P;H.slug!==b.current&&w.current(H.slug),B.some(A=>A.id===H.id)||v(!0)}finally{g.current&&m(!1)}},O=P=>{let B=r9e(P);B.action==="create"?y():(h(!1),t(B.slug))};return i?Rc("div",{className:"sf-formpicker",children:[or(gb,{label:o,options:E,fallback:"",value:e??"",onChange:O,placeholder:u("Search forms\u2026")}),f&&or("p",{className:"sf-formsummary-warn",children:u("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),S?Rc("div",{className:"sf-blogsource sf-formsummary",children:[Rc("div",{children:[or("div",{className:"sf-formsummary-caption",children:Zn("{n} field","{n} fields",S.fields.length)}),S.fields.length?or("ol",{className:"sf-formsummary-fields",children:S.fields.map((P,B)=>or("li",{children:P.label},P.key||`${P.label}-${B}`))}):or(r8,{children:u("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),Rc("div",{children:[or("div",{className:"sf-formsummary-caption",children:u("Where the answers go")}),or("ul",{className:"sf-formsummary-fields",children:i9e(S).map(P=>or("li",{children:P},P))})]}),!S.is_active&&or("p",{className:"sf-formsummary-warn",children:u("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:u("Storefront \u2192 Forms")})}),Rc("div",{className:"sf-formsummary-actions",children:[or(X5,{variant:"secondary",size:"md",onClick:()=>Pne(r,S.id),children:u("Edit form \u270E")}),or(X5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{y()},children:u("New form +")})]}),or("p",{className:"es-field-hint",children:u("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:u("Storefront \u2192 Forms")})})]}):Rc("div",{className:"sf-blogsource sf-formsummary",children:[d?Rc(r8,{children:[u("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):T&&or("p",{className:"sf-formsummary-warn",children:u("This section points at \u201C{slug}\u201D, and this website has no form with that name. Pick one from the list above, or leave it \u2014 nothing has been changed.",{slug:e??""})}),Rc("div",{className:"sf-formsummary-actions",children:[d&&or(X5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{v(!0)},children:u("Try again")}),or(X5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{y()},children:u("New form +")})]}),!d&&or("p",{className:"es-field-hint",children:u("Pick a form to show here, or build a new one. Forms are made once in {place} and can be shown on any number of pages.",{place:u("Storefront \u2192 Forms")})})]})]}):or("div",{className:"sf-formpicker",children:or("div",{className:"sf-blogsource sf-formsummary",children:Rc("div",{children:[or("div",{className:"sf-formsummary-caption",children:u(o)}),Rc(r8,{children:[u("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as s9e}from"react/jsx-runtime";function Nc(e,t){return{type:"custom",render:({value:o,onChange:n})=>s9e(a8,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{jsx as s8}from"react/jsx-runtime";import{ListIcon as l9e}from"efficient-easel/icons";import{NoControlMark as d9e,noControlField as c9e}from"efficient-easel/screen/lib/document/panel-no-control-mark";function Xt(e,t){return fe(e,s8(l9e,{}),[{label:t,value:""}],"")}var ag="_sourceEdit";function Rw(){return c9e({type:"custom",render:()=>s8(d9e,{})},"always")}var Jde=new Map,Qde=new WeakMap,ece=(e,t)=>({type:"custom",render:()=>s8(Li,{compact:!0,status:"ok",hint:u("Where this content is edited."),edit:{label:e,onClick:t}})});function p9e(e){if(WV(e)){let n=Qde.get(e.open);n||Qde.set(e.open,n=new Map);let r=n.get(e.label);return r||n.set(e.label,r=ece(e.label,e.open)),r}let t=`${e.label}\0${e.href}`,o=Jde.get(t);return o||(o=ece(e.label,()=>window.open(e.href,"_blank","noopener")),Jde.set(t,o)),o}var tce=new WeakMap,oce=-1,i8={},nce=new WeakMap;function ace(e,t,o){return UV(e).filter(n=>!n.records||n.key===t||o!==null&&n.records.includes(o))}function m9e(e,t,o,n){oce!==Lm()&&(oce=Lm(),i8={});let r=tce.get(t);(!r||nce.get(r)!==i8)&&(r=new Map,nce.set(r,i8),tce.set(t,r));let a=ace(e,o,n),i=o&&!a.some(d=>d.key===o)?o:"",s=`${e}\0${i}\0${n??""}\0${a.map(d=>d.key).join(",")}`,l=r.get(s);return l||(l={...t,options:[...t.options,...a.map(d=>({label:d.label,value:d.key})),...i?[{label:i,value:i}]:[]]},r.set(s,l)),l}var rce=new WeakMap,Sl={not:{field:ds,set:!0}};function Zt(e,t,o,n={}){let r=t[ds];if(!r)return t;let a=pt(o),i=FP(n.root),s=ace(e,a,i).length>0||a!=="",l=s?m9e(e,r,a,i):null,d=rce.get(t);d||rce.set(t,d=new Map);let c=`${Lm()}\0${s?"1":"0"}\0${a}\0${(n.hides??[]).join(",")}\0${i??""}`,p=d.get(c);if(p)return p;let m=new Set(n.hides??[]),f=a?k0(a)?.edit:void 0,h={};for(let[g,b]of Object.entries(t))g===ds?l&&(h[g]=l):g===ag?f&&(h[g]=p9e(f)):h[g]=m.has(g)&&b&&typeof b=="object"?lt(b,Sl):b;return d.set(c,h),h}import{createContext as u9e,useContext as f9e}from"react";import{jsx as Oc,jsxs as l8}from"react/jsx-runtime";function d8(e){return sc(e)??void 0}var c8=u9e({}),ice=3;function p8({tag:e,name:t,desc:o,href:n,imageSrc:r,imageLabel:a,price:i}){let{showPrice:s,cardStyle:l,partStyles:d,editing:c,ownerId:p,Template:m}=f9e(c8),f=l==="bordered"?" border border-line":l==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",h=d8(r),g=Jn();if(m){let x={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:h??"",tag:e??"",href:n||"#"};return g.scope(Oc("div",{className:go(`block w-full min-w-0 ${B0}`,g.className),...g.attrs,children:Oc(Ve,{ownerId:p??"Collections",ownerType:"Collections",Template:m,rows:[x],fallback:null,children:v=>v})}))}let b=x=>c?{[N0]:x}:{},w=x=>uE(d?.[O0(x)]?.role,Rh[x],eE);return g.scope(l8(Ie,{href:n||"#",className:go(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${f}`,g.className),...g.attrs,children:[Oc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${mie}`,children:Oc(io,{label:a||"collection.jpg",src:h})}),Oc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${hie} max-view-wide:hidden`,style:{transition:"none"}}),l8("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&&Oc("span",{...b("tag"),style:w("tag"),className:`font-mono ${Fp.tag} uppercase tracking-[0.25em] opacity-70`,children:L(e)}),t&&Oc("h3",{...b("name"),style:w("name"),className:`font-heading2 ${Fp.name} font-medium leading-none tracking-[-0.03em] ${Fp.namePhone}`,children:typeof t=="string"?ne(t,!1):t}),o&&It(o).map((x,v)=>Oc("p",{...b("body"),style:w("body"),className:`max-w-[420px] ${Fp.body} leading-[1.5] opacity-80`,children:L(x)},v)),s&&i&&Oc("span",{...b("price"),style:w("price"),className:`font-mono ${Fp.price} tracking-[0.05em] text-accent`,children:L(i)}),l8("span",{...b("link"),style:w("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${Fp.link} uppercase tracking-[0.2em]`,children:["Explore",Oc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as fce,useCallback as O9e,useContext as mce,useEffect as A9e,useRef as L9e,useState as g8}from"react";import{slugify as I9e}from"efficient-shell/format";import{useState as g9e}from"react";import{jsx as m8,Fragment as h9e}from"react/jsx-runtime";function Tl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=yX(e),a=vX(e),i=t?a:r,s=xX(i);return o&&!i?m8("span",{[Ym]:e,children:n}):i?m8("span",{ref:s,[mX]:i.stamp,...i.textStyle?{[uX]:i.textStyle}:{},children:n}):m8(h9e,{children:n})}import{jsx as Yi,jsxs as Nw}from"react/jsx-runtime";var u8=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function f8({build:e,hiddenMobile:t,alwaysShowOverlay:o,forceHover:n,index:r,total:a,ratio:i,captionPlace:s,display:l,displayPhone:d,styleOwner:c,editing:p=!1}){let m=v=>dQ(l,d,v),f=v=>p&&c?{[lX]:c,[dX]:`@${v}`}:{},h=(v,k)=>!p&&c?Yi(Tl,{kind:`@${v}`,shared:!0,children:k}):k,[g,b]=g9e(!1),w=ZY(s),x=Nw("div",{className:["sf-card group relative overflow-hidden bg-surface-2",D0(i),t?"max-view-wide:hidden":""].join(" "),children:[Nw("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:[Yi(io,{label:e.imageLabel,src:e.imageSrc}),!o&&Yi("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),Yi("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&&Yi(al,{src:e.detailSrc,alt:"",fill:!0,sizes:"(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:g?"none":"block"},onError:()=>b(!0)})}),(e.process||r!=null&&a!=null)&&Nw("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&&Yi("span",{...f("tag"),className:["min-w-0 truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent",m("tag"),"transition-opacity duration-300 ease-out",o||n?"opacity-100":"opacity-0 group-hover:opacity-100 max-view-wide:opacity-100"].join(" "),children:h("tag",Po(e.process))}),r!=null&&a!=null&&Yi("span",{...f("number"),className:`ml-auto shrink-0 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] ${m("number")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:h("number",u8(r,a))})]}),Yi("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:Nw("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&&Yi("div",{...f("eyebrow"),className:`truncate font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-accent max-view-wide:text-[length:var(--size-label,11px)] max-view-wide:tracking-[0.15em] ${m("eyebrow")}`.trim(),children:h("eyebrow",e.car)}),e.wheel&&Yi("div",{...f("title"),className:`font-heading3 text-[length:var(--size-headingSmall,22px)] font-medium leading-[1.05] tracking-[-0.02em] max-view-wide:text-[length:var(--size-body,16px)] ${o?"uppercase ":""}${m("title")}`.trim(),children:h("title",e.wheel)}),e.finish&&Yi("div",{...f("meta"),className:`mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em] ${m("meta")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:Yi("span",{children:h("meta",Po(e.finish))})})]})})]});return w?Nw("div",{className:t?"max-view-wide:hidden":"",children:[x,Nw("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&Yi("div",{...f("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${m("title")}`.trim(),children:h("title",e.wheel)}),(e.finish||e.car)&&Yi("div",{...f(e.finish?"meta":"eyebrow"),className:`mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim ${m(e.finish?"meta":"eyebrow")}`.trim(),children:h(e.finish?"meta":"eyebrow",Po(e.finish||e.car))})]})]}):x}import{createContext as b9e,useCallback as w9e,useContext as x9e,useEffect as y9e,useLayoutEffect as v9e,useRef as h8,useState as k9e}from"react";import{createPortal as S9e}from"react-dom";import{Fragment as C9e,jsx as x1,jsxs as _9e}from"react/jsx-runtime";var T9e=".sf-themed-content",sce="sf-section-accent";function E9e(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(sce)&&(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 ${sce}`:"contents",style:o}}function P9e(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 lce=b9e(()=>{});function tm({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=h8(null),l=h8(null),[d,c]=k9e(null);v9e(()=>{if(!e){c(null);return}let h=s.current;if(!h)return;let g=h.closest(T9e)??h.ownerDocument.body;c({host:g,theme:E9e(h,g)})},[e]);let p=h8({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let m=e&&d!==null,f=w9e(()=>p.current.onClose(),[]);return Pc({active:m,onDismiss:f,scopeRef:l}),y9e(()=>{if(!m)return;let h=l.current,g=h?.ownerDocument??document,b=g.activeElement;h?.focus();let w=v=>{if(v.key==="ArrowLeft")p.current.onPrev?.();else if(v.key==="ArrowRight")p.current.onNext?.();else if(v.key==="Tab"&&h){let k=P9e(h);if(k.length===0){v.preventDefault(),h.focus();return}let S=k[0],T=k[k.length-1],E=g.activeElement,y=!!E&&h.contains(E)&&E!==h;if(v.shiftKey&&(!y||E===S))v.preventDefault(),T.focus();else if(!v.shiftKey&&(!y||E===T))v.preventDefault(),S.focus();else{v.preventDefault();let O=k.indexOf(E);k[v.shiftKey?O-1:O+1]?.focus()}}},x=g.defaultView??window;return x.addEventListener("keydown",w),()=>{x.removeEventListener("keydown",w),b&&b.isConnected&&b.focus()}},[m]),e?_9e(C9e,{children:[x1("span",{ref:s,hidden:!0}),d&&S9e(x1("div",{className:d.theme.className,style:d.theme.style,children:x1("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 ${KB[8]} ${a}`,style:{background:VB},children:x1(lce.Provider,{value:t,children:i})})}),d.host)]}):null}var Z5="color-mix(in oklab, var(--bg) 70%, transparent)";function Uu({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=x9e(lce);return x1("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as R9e,useContext as ig}from"react";var y1=R9e(null);function dce(){let e=ig(ev),t=ig(y1),o=AC();return e?e.socialLinks??Xee:t?t.socialLinks:o.links}function Gu(){return ig(y1)?.commerceEnabled??!0}function N9e(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Ow(){return N9e(ig(y1))}function cce(){let e=ig(y1),t=$n();return e?e.showThemeSwitch??Sp:t.themeSwitchShown??Sp}function pce(){let e=ig(ev),t=ig(y1),o=$n();return e?ZC({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?ZC({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):ZC({siteName:o.websiteName?.trim()||au})}import{useBrowserLayoutEffect as F9e}from"efficient-shell/hooks";import{Fragment as Aw,jsx as _o,jsxs as pa}from"react/jsx-runtime";var B9e="(max-width: 1100px) 100vw, min(59vw, 1050px)",v1=fce({}),hce=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],w8=fce(null),$u="data-gallery-grid",b8="data-gallery-tile";function H9e(e,t){let[o,n]=g8(null);return A9e(()=>{let r=e.current,a=r?.closest(`[${$u}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${b8}]`)),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 wd={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},D9e=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),gce=Array.from({length:6},D9e);function M9e(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=I9e(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 sg({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let{galleryHref:i="/gallery",submitHref:s="/contact",previewHover:l,display:d,displayPhone:c,styleOwner:p,photosOnly:m=!1,wordsAtRest:f=!1,Template:h,ownerId:g}=mce(v1),b=M9e(a),x=Gu()&&!m,v=!x&&!z9e(b),k=b.photos??(b.imageSrc?[b.imageSrc]:[]),S=L9e(null),T=O9e(I=>{S.current=I},[]),E=H9e(S,e),y=mce(w8),O=y?.report,P=r?.id,B=r?.tag??"",H=r?.name??"";F9e(()=>{if(!O||!P)return;let I={id:P,tag:B,name:H};return O(I),()=>O(I,!0)},[O,P,B,H]);let A=(P?y?.positionOf(P):null)??E,_=e&&(!!t||!!l),[C,F]=g8(!1),[$,q]=g8(0),G=()=>q(I=>(I-1+k.length)%k.length),K=()=>q(I=>(I+1)%k.length),Y=k[$]??b.imageSrc??"",oe=k.slice(1),j=h?_o("div",{className:`block w-full min-w-0 ${B0}`,children:_o(Ve,{ownerId:g??"GalleryB",ownerType:"GalleryB",Template:h,rows:[{key:P??b.imageSrc??"tile",image:b.imageSrc??"",tag:b.process,number:A?u8(A.index,A.total):"",eyebrow:b.car,name:b.wheel,meta:b.finish,href:b.href??""}],items:[{hoverMedia:oe.length?{photos:[{finish:"",items:oe.map(I=>({url:I,kind:"image"}))}]}:null}],previewHover:_,fallback:null,children:I=>I})}):_o(f8,{build:b,forceHover:_,alwaysShowOverlay:f,index:A?.index,total:A?.total,ratio:o,captionPlace:n,display:d,displayPhone:c,styleOwner:p,editing:e});return pa(Aw,{children:[e?_o(M,{as:"div",ref:T,[b8]:"",className:"block w-full text-left",children:j}):_o(M,{as:"button",ref:T,[b8]:"",type:"button","aria-label":x?`Open ${b.car||"build"} on ${b.wheel||"wheel"}`:uce(b),onClick:()=>{q(0),F(!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:j}),_o(tm,{open:C,onClose:()=>F(!1),label:x?`${b.car} on ${b.wheel}`:uce(b),onPrev:k.length>1?G:void 0,onNext:k.length>1?K:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:pa("div",{onClick:I=>I.stopPropagation(),className:`relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] ${v?"grid-cols-1":"grid-cols-[1.4fr_1fr]"} overflow-hidden border border-line bg-bg max-view-desktop:grid-cols-1 max-view-desktop:overflow-auto`,style:{boxShadow:"0 60px 120px -20px color-mix(in srgb, var(--sf-shadow-color, #141416) 70%, transparent)"},children:[_o(Uu,{label:"Close popup",className:"absolute right-[24px] top-[24px] z-[5] flex h-[56px] w-[56px] items-center justify-center border border-line font-mono text-[length:var(--size-label,21px)] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:{background:Z5},children:"\u2715"}),pa("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[Y&&_o("img",{...Co(Y,{fallbackWidth:1280}),sizes:B9e,alt:`${(x?b.car:b.wheel||b.car)||"Photo"} \u2014 ${$+1} of ${k.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},Y),k.length>1&&pa(Aw,{children:[_o("button",{type:"button","aria-label":"Previous photo",onClick:G,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"}),_o("button",{type:"button","aria-label":"Next photo",onClick:K,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"}),pa("span",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 border border-fg-dim/30 bg-overlay-scrim/50 px-4 py-1.5 font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em] text-fg-dim backdrop-blur-[4px]",children:[$+1," / ",k.length]})]})]}),x?pa("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[b.process&&_o("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:L(b.process)}),b.wheel&&_o("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:ne(b.wheel,!1)}),b.car&&pa("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",_o("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:L(b.car,!0)})]}),pa("dl",{className:"mt-3 grid grid-cols-[auto_1fr] gap-x-7 gap-y-[18px] border-y border-line py-[30px] font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em]",children:[b.wheel&&pa(Aw,{children:[_o("dt",{className:"text-fg-dim",children:"Wheel"}),_o("dd",{className:"text-fg",children:L(b.wheel)})]}),b.process&&pa(Aw,{children:[_o("dt",{className:"text-fg-dim",children:"Process"}),_o("dd",{className:"text-fg",children:L(b.process)})]}),b.finish&&pa(Aw,{children:[_o("dt",{className:"text-fg-dim",children:"Finish"}),_o("dd",{className:"text-fg",children:L(b.finish)})]}),b.car&&pa(Aw,{children:[_o("dt",{className:"text-fg-dim",children:"Vehicle"}),_o("dd",{className:"text-fg",children:L(b.car)})]})]}),pa("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[pa(Ie,{href:b.href||"/wheels",onClick:()=>F(!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:[_o("span",{children:"View product"}),_o("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),pa(Ie,{href:i,onClick:()=>F(!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:[_o("span",{children:"See more builds"}),_o("span",{children:"\u2192"})]}),pa(Ie,{href:s,onClick:()=>F(!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:[_o("span",{children:"Submit your build"}),_o("span",{children:"\u2192"})]})]})]}):!v&&_o(W9e,{build:b})]})})]})}function bce(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function z9e(e){return!!e.wheel||bce(e).length>0}function uce(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function W9e({build:e}){let t=e.wheel,o=bce(e);return pa("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&_o("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:ne(t,!1)}),o.map(n=>_o("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:L(n)},n))]})}import{createContext as Y9e,useContext as j9e,useEffect as k1,useId as q9e,useState as yr,useSyncExternalStore as X9e}from"react";var U9e=14,G9e=3;function $9e(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function V9e(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),$9e(o)}async function wce(e,t,o={}){let n=o.days??U9e,r=o.read??Nh.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=V9e(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>=G9e)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as xce,formatDateTime as x8,formatTime as kce}from"efficient-shell/format";var K9e={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},yce={weekday:"long",day:"numeric",month:"long",year:"numeric"},Sce={hour:"numeric",minute:"2-digit"},vce={...Sce,timeZoneName:"short"};function y8(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function v8(e,...t){let o=gl(...t);return!o||!y8(e)?"":kce(e,{locale:Q4(),timeZone:o})}function k8(e,...t){let o=typeof e=="string"?{start:e}:e,n=gl(...t),r=y8(o.start);if(!n||!r)return"";let a=Q4(),i=o.end?y8(o.end):null;if(!i||i.getTime()<=r.getTime())return x8(o.start,{locale:a,timeZone:n,style:K9e,zoneName:"short"});let s=x8(o.start,{locale:a,timeZone:n,style:yce,clock:Sce}),d=xce(o.start,n)===xce(o.end,n)?kce(o.end,{locale:a,timeZone:n,clock:vce}):x8(o.end,{locale:a,timeZone:n,style:yce,clock:vce});return`${s} \u2013 ${d}`}function J5(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as Z9e,userToday as J9e,userZone as Q9e}from"efficient-shell/format";import{jsx as i7e}from"react/jsx-runtime";var Ece=Y9e(null);function Vu(){let e=j9e(Ece);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var S8=[{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:""}],e7e=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function Tce(e,t){return{timezone:"",slots:t?e7e.flatMap(({hour:n,minute:r})=>Z9e(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var T8={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function t7e(e){let t=String(e?.slots[0]?.start??"");return t?{...T8,startAt:t}:T8}function Pce(e){return e.bookingNumber===T8.bookingNumber}function o7e(e,t){return e&&t?.length===0}function n7e(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!J5(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function r7e(){return()=>{}}function a7e(){return null}function Cce({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=q9e(),r=X9e(r7e,J9e,a7e)??"",[a,i]=yr(),[s,l]=yr(""),[d,c]=yr(""),[p,m]=yr(r),[f,h]=yr(r),[g,b]=yr(!1),[w,x]=yr(null),[v,k]=yr(),[S,T]=yr(""),[E,y]=yr(""),[O,P]=yr(""),[B,H]=yr(""),[A,_]=yr(""),[C,F]=yr(()=>pF()),[$,q]=yr(null),[G,K]=yr(!1),[Y,oe]=yr(!1),[j,I]=yr(null),[z,V]=yr("");k1(()=>{V(Q9e()??"")},[]),k1(()=>{let me=!1;return Nh.listServices().then(it=>{if(me)return;let ue=MC(it);i(ue),l(it.currency),c(kt=>kt||ue[0]?.id||"")}).catch(()=>{me||i([])}),()=>{me=!0}},[]),k1(()=>{r&&(m(me=>me||r),h(me=>me||r))},[r]),k1(()=>{if(g||!d||!r)return;let me={aborted:!1};return T(""),k(void 0),I(null),x(null),K(!0),wce(d,r,{signal:me}).then(it=>{if(!me.aborted){if(it.outcome==="found"){m(it.date),h(it.date),k(it.availability);return}x(it.outcome==="noneInWindow"?`No times are available in the next ${it.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{me.aborted||K(!1)}),()=>{me.aborted=!0}},[g,d,r]),k1(()=>{if(!g||!d||!p)return;let me=!1;return T(""),k(void 0),I(null),x(null),K(!0),Nh.getAvailability(d,p).then(it=>{me||(k(it),it.slots.length===0&&x("No times are available on this date."))}).catch(()=>{me||x("We couldn't load available times. Please try again.")}).finally(()=>{me||K(!1)}),()=>{me=!0}},[p,g,d]);let te=a?.find(me=>me.id===d),X=te?.depositAmountDue!=null,ee=n7e({editing:e,submitting:Y,hasService:!!te,hasDay:!!p,selectedStart:S,name:E,email:O,requiresPayment:X},Date.now());async function ke(me){if(me.preventDefault(),!(!ee||!te)){oe(!0),I(null);try{let it=await Nh.create({serviceId:te.id,start:S,customer:{name:E.trim(),email:O.trim(),phone:B.trim()},notes:A.trim(),idempotencyKey:C,customerTimezone:z});q(it),F(pF())}catch(it){I(it instanceof An&&it.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),it instanceof An&&it.status===409&&(T(""),Nh.getAvailability(te.id,p).then(k).catch(()=>{}))}finally{oe(!1)}}}let ce=o7e(e,a),Ye=ce?Tce(p,z):void 0,Ne=t&&!$?t7e(Ye??Tce(p,z)):null;return i7e(Ece.Provider,{value:{fieldPrefix:n,editing:e,services:ce?S8:a,currency:ce?"AUD":s,serviceId:ce?S8[0].id:d,setServiceId:c,service:ce?S8[0]:te,requiresPayment:ce?!1:X,date:p,earliestDate:f,setDate:m,setDateTouched:b,availability:Ye??v,loadingSlots:ce?!1:G,noSlotsMessage:w,selectedStart:Ye?Ye.slots[0]?.start??"":S,setSelectedStart:T,customerTimezone:z,name:E,setName:y,email:O,setEmail:P,phone:B,setPhone:H,notes:A,setNotes:_,confirmation:$??Ne,submitting:Y,error:j,canSubmit:ce?!1:ee,handleSubmit:ke,sample:!!ce},children:o})}import{jsx as Q5,Fragment as _ce,jsxs as Rce}from"react/jsx-runtime";var Nce=`sf-button group inline-flex items-center justify-center gap-2.5 border ${MQ} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,Oce={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 ma(e){let{variant:t="primary",arrow:o,glyphBefore:n,spread:r,className:a,style:i,children:s,href:l,newTab:d,hrefRewrite:c,...p}=e,m=`${r?Nce.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):Nce} ${Oce[t]??Oce.primary} ${a??""}`,f=n?Rce(_ce,{children:[o!==null&&Q5("span",{"aria-hidden":!0,className:"inline-flex",children:o??"\u2192"}),s]}):Rce(_ce,{children:[s,o!==null&&Q5("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",children:o??"\u2192"})]});return l?Q5(_t,{href:l,className:m,style:i,newTab:d?!0:"auto",...c?{hrefRewrite:c}:{},children:f}):Q5("button",{type:"button",className:m,style:i,...p,children:f})}import{jsx as s7e}from"react/jsx-runtime";var S1=e=>s7e("div",{className:"grid bg-bg",children:e});import{jsx as lo,jsxs as xd}from"react/jsx-runtime";var T1="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 l7e(e,t){let o=Number(e);if(o===0)return Oh;try{return Voe(o,t)}catch{return`${t} ${e}`}}var Ace={selected:!0};function Lce(e,t){return({index:o})=>t?{[uP]:fP(e,o)}:{}}var E1="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function E8({number:e,children:t}){return xd("div",{className:"mb-4 flex items-center gap-3",children:[lo("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}),lo("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 eR({eyebrow:e,heading:t,intro:o}){return xd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&lo("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&lo("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()&&lo("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function tR({style:e,owner:t}){let{fieldPrefix:o,services:n,currency:r,serviceId:a,setServiceId:i,requiresPayment:s,date:l,earliestDate:d,setDate:c,setDateTouched:p,availability:m,loadingSlots:f,noSlotsMessage:h,selectedStart:g,setSelectedStart:b,customerTimezone:w,editing:x}=Vu();if(!n)return null;let v=Date.now(),k=gl(w,m?.timezone??""),S=gl(m?.timezone??""),T=S&&S!==k?S:"",E=(m?.slots??[]).map(y=>({start:y.start,time:v8(y.start,k),businessTime:T?`${v8(y.start,T)} business`:"",passed:!x&&J5(y.start,v)}));return xd(M,{className:"flex flex-col gap-10",style:e,children:[xd("div",{children:[lo(E8,{number:"01",children:"Choose a service"}),lo("div",{className:"grid gap-3 sm:grid-cols-2",children:lo(Ve,{ownerId:t.id,ownerType:t.type,slot:jh,Template:t.serviceTemplate,rows:n.map(y=>({name:y.name,meta:`${y.durationMinutes} min \xB7 ${l7e(y.price,r)}`,description:y.description??""})),states:n.map(y=>y.id===a?Ace:void 0),actions:x?void 0:n.map(y=>({press:()=>i(y.id),label:y.name})),copyAttrs:Lce(jh,x),fallback:null,wrapCopy:S1,children:y=>lo(Fo,{children:y})})}),s&&lo("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."})]}),xd("div",{children:[lo(E8,{number:"02",children:"Choose a date and time"}),lo(Dr,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:E1,children:lo("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:y=>{p(!0),c(y.target.value)},className:T1,required:!0})}),lo("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 min-[1200px]:grid-cols-4",role:"group","aria-label":"Available appointment times",children:f?lo("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",children:"Loading times\u2026"}):m?.slots.length?lo(Ve,{ownerId:t.id,ownerType:t.type,slot:qh,Template:t.timeTemplate,rows:E.map(y=>({time:y.time,businessTime:y.businessTime})),states:E.map(y=>y.start===g&&!y.passed?Ace:void 0),actions:x?void 0:E.map(y=>({press:()=>b(y.start),label:y.time,disabled:y.passed})),copyAttrs:Lce(qh,x),fallback:null,wrapCopy:S1,children:y=>lo(Fo,{children:y})}):h?lo("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",role:"status",children:h}):null}),k&&!f&&!!m?.slots.length&&xd("p",{className:"mt-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,10px)] uppercase tracking-[0.16em] text-fg-dim",children:["Times shown in ",k,T?` \xB7 business timezone ${T}`:""]})]})]})}function oR({buttonLabel:e,style:t}){let{fieldPrefix:o,editing:n,name:r,setName:a,email:i,setEmail:s,phone:l,setPhone:d,notes:c,setNotes:p,submitting:m,error:f,canSubmit:h}=Vu();return xd(M,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[lo(E8,{number:"03",children:"Your details"}),xd("div",{className:"flex flex-col gap-4",children:[lo(Dr,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:E1,children:lo("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:g=>a(g.target.value),className:T1,required:!0})}),lo(Dr,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:E1,children:lo("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:g=>s(g.target.value),className:T1,required:!0})}),lo(Dr,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:E1,children:lo("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:g=>d(g.target.value),className:T1})}),lo(Dr,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:E1,children:lo("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:g=>p(g.target.value),className:`${T1} resize-y`})})]}),f&&lo("p",{className:"mt-4 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.16em] text-alert",role:"alert",children:f}),lo(ma,{type:n?"button":"submit",disabled:!h,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:m?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function nR({successMessage:e}){let{confirmation:t,customerTimezone:o}=Vu();if(!t)return null;let n=gl(t.customerTimezone,o,t.timezone),r=gl(t.timezone),a=r&&r!==n?r:"";return xd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[xd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),lo("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),lo("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:k8(t.startAt,n)}),a&&xd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",k8(t.startAt,a)]}),(e??"").trim()&&lo("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),lo(ma,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!Pce(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Lw}from"react/jsx-runtime";var Ice=["head","booking","details","confirm"],Fce={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function P8({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}=Vu(),m=Pse(d);return e==="head"?Lw(M,{className:"min-[960px]:col-span-2",style:m,children:Lw(eR,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Lw(M,{className:"min-[960px]:col-span-2",style:m,children:Lw(nR,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Lw(tR,{style:m,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Lw(oR,{buttonLabel:s,style:m}):null}import{useEffect as Bce,useState as Ku}from"react";import{jsx as Iw,jsxs as c7e}from"react/jsx-runtime";function Ac(e,t){let[o,n]=Ku(void 0),[r,a]=Ku(0);return Bce(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return vo.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),Bce(()=>{if(t===void 0)return r_(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var d7e="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Fw(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function Yu({form:e,formSlug:t,editing:o=!1}){let[n,r]=Ku({}),[a,i]=Ku(""),[s,l]=Ku(!1),[d,c]=Ku(!1),[p,m]=Ku(null),[f,h]=Ku(null);async function g(b){if(b.preventDefault(),!(o||s||!e||!t)){l(!0),h(null);try{let w=e.fields.map(v=>({fieldKey:v.key,value:n[v.key]??""})),x=await vo.submitForm(t,{answers:w,...a?{company:a}:{}});m(x?.account??null),c(!0)}catch{h(d7e)}finally{l(!1)}}}return{valueOf:b=>n[b]??"",set:(b,w)=>r(x=>({...x,[b]:w})),honeypot:a,setHoneypot:i,submitting:s,done:d,account:p,error:f,handleSubmit:g}}function Bw({value:e,onChange:t}){return Iw("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function ju({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"?Iw("textarea",{required:e.required,rows:r,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l}):e.type==="select"?c7e("select",{required:e.required,value:t,onChange:d=>o(d.target.value),className:n,...l,children:[Iw("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>Iw("option",{value:d,children:d},d))]}):e.type==="checkbox"?Iw("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):Iw("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 Wt={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 P1}from"react/jsx-runtime";function p7e(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function Hce({eyebrow:e,title:t}){return P1("div",{className:"flex flex-col gap-4",children:[e&&El(dt,{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:ne(t,!0)})]})}function rR({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return P1("div",{className:"flex flex-col gap-8",children:[e&&It(e).map((l,d)=>El("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:L(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:Fw(n)}):P1("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",p7e(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?P1("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(ju,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),P1("span",{children:[l.label,l.required?El("span",{className:"text-accent",children:" *"}):null]})]},l.key):El(ju,{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(Bw,{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":L(t||Wt.buttonText)})]}):El("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:i?u("Loading form\u2026"):u("Choose a form in the inspector, under Form \u2014 until then this form is hidden on the live page and nothing can be submitted.")})),a&&o&&El("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:L(o)})]})}var aR=["field","tick","thanks"],Dce={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},iR={field:"styleField",tick:"styleTick",thanks:"styleThanks"},m7e={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 u7e(e){return typeof e=="string"&&S0.includes(e)?e:null}function Mce(e){let t={};for(let o of aR){let n=u7e(e[iR[o]]);n&&Object.assign(t,Nu(n,m7e[o]))}return t}import{jsx as sR}from"react/jsx-runtime";var zce=["head","form"],Wce={head:"Head",form:"Form"};function C8({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=Ac(i,s),p=Yu({form:c,formSlug:i,editing:l}),m=Mce(d);return e==="head"?sR(M,{as:"div",style:m,children:sR(Kt,{look:"statement",num:t,title:o})}):sR(M,{as:"div",style:m,children:sR(rR,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var f7e={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>Ice.map(e=>({region:e,name:Fce[e]})),addBlocked:()=>u("A Booking Form is these three boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},SubmitBuild:{slot:"boxes",childType:"SubmitBox",addLabel:"Add box",fixed:!0,seeds:()=>zce.map(e=>({region:e,name:Wce[e]})),addBlocked:()=>u("A Submit-a-build section is these two boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},Collections:{slot:"cards",childType:"CollectionCard",addLabel:"Add card",seeds:()=>Array.from({length:ice},()=>({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:()=>gce.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};yJ(f7e);import{jsx as Uce}from"react/jsx-runtime";var h7e={body:"text-[length:var(--size-body,17px)]"},om=5;function Hw({rating:e}){let t=Math.min(om,Math.max(0,Math.round(e)));return Uce(M,{role:"img","aria-label":`${t} out of ${om} stars`,className:`flex gap-1 ${h7e.body} leading-none`,children:Array.from({length:om}).map((o,n)=>Uce("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var _8="mx-auto max-w-[var(--sf-site-width,1600px)]",g7e=[/^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 Gce(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function R8(e){return e.split(/\s+/).filter(t=>t&&!g7e.some(o=>o.test(Gce(t)))).join(" ")}var b7e=new Set(["max-view-desktop","max-view-wide"]);function w7e(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 Dw(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=Gce(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?w7e(l[1]):void 0;d!==void 0&&(i?b7e.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as x7e,jsx as y7e}from"react/jsx-runtime";function N8({inBox:e,atTop:t,anyBox:o=!1}){let n=tu(),r=UP();return y7e(x7e,{children:n||o&&r?e:t})}import{jsx as C1}from"react/jsx-runtime";function xt({className:e,capped:t=!1,column:o=Ni,style:n,defaults:r,id:a,attrs:i,rootRef:s,inAnyBox:l=!1,children:d}){let c=R8(e),p=o===null?"":R8(o),m=C1(M,{as:"section",ref:s,...i,className:c||void 0,style:n,id:a,children:p?C1("div",{className:p,children:d}):d}),f=r?{...r,...n}:n,h=C1(M,{as:"section",ref:s,...i,className:t?`${_8} ${e}`:e,style:f,id:a,children:o===null?d:C1("div",{className:o,children:d})});return C1(N8,{inBox:m,atTop:h,anyBox:l})}import{Fragment as k7e,jsx as nm,jsxs as lR}from"react/jsx-runtime";var Mw={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)]"},v7e="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))]",O8="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 A8({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:lR(xt,{className:"relative z-[2] border-t border-line bg-surface",column:l?O8:v7e,children:[l?null:lR(k7e,{children:[(t??"").trim()&&nm(dt,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&nm("h2",{className:`mb-12 font-heading2 ${Mw.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${Mw.headingMediumUpTo800}`,children:ne(o??"",!1)})]}),nm("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=>lR("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&&nm(Hw,{rating:c.rating}),(c.title??"").trim()&&nm("h3",{className:`font-display ${Mw.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),nm("div",{className:`flex-1 font-serif ${Mw.bodySmall} leading-[1.65] text-fg-dim`,children:It(c.quote).map((p,m)=>nm("p",{className:m?"mt-3":"",children:p},m))}),lR("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[nm("span",{className:`font-mono ${Mw.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),nm("span",{className:`font-mono ${Mw.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var $ce=Dw(O8),L8={top:84,bottom:$ce.bottom,topPhone:84,bottomPhone:$ce.bottomPhone},Vce=L8,[S7e,T7e]=N2("Testimonials"),E7e={type:Zs,props:{...ze,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[Js]:[{type:"Text",props:{...Ge,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Oe("quote",Tt,{size:16,lineHeight:1.6}),{type:Zs,props:{...ze,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Js]:[Oe("name",Ge,{...Ql,weight:500,letterSpacing:.04}),Oe("role",Tt,{textStyle:"body-5"})]}}]}},P7e={name:"Testimonials",boxProps:e=>({...ec,direction:"column",gap:44,sectionBorder:{top:1},...Gm(e,Vce)}),box:[...Pp,...bh(Vce)],parts:[{kind:"group",name:"Heading",props:{...ze,gap:16},parts:[{...S7e,props:Ge},{...T7e,props:Ge,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[E7e]}}],site:lq("title"),drop:{...tc,...oc,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"}};Rn({Testimonials:P7e});var Lc={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 cR,tabletKey as I8}from"efficient-easel/draw";var C7e={textStyle:"body-5",...ho("label",14),letterSpacing:.05,lineHeight:1.5},_7e={type:Zs,props:{...ze,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[cR("share")]:"content",[cR("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Js]:[Oe("label",Tt,{...Na(14),letterSpacing:.05,lineHeight:1.5}),Oe("value",{...Ge,align:"right"},{...C7e,align:"right"})]}},Kce={[xh]:lP},R7e=["dynamic","source","finish","size","wheel"],_1=ll("SpecTable",{slots:{template:[_7e]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...ze,direction:"row",share:"content",gap:48,[I8("gap")]:80,[cR("gap")]:80,...Kce}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),N7e=_1.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(R7e.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),dR=Dw(Lc.ownBox),O7e={..._1,parts:N7e,boxProps:(e,t)=>{let o=typeof _1.boxProps=="function"?_1.boxProps(e,t):_1.boxProps;return{...o,sectionPaddingBottom:dR.bottom,sectionPaddingBottomPhone:dR.bottomPhone,...Kce,[I8("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[I8("sectionPaddingBottom")]:dR.bottomPhone,[cR("gap")]:36,...dR.line?{sectionBorder:oP({bottom:1})}:{}}}};Rn({SpecTable:O7e});Rn({ProductGrid:ll("ProductGrid",{slots:{[Ct]:[ile()]},pressHeading:!0})});Rn({Events:ll("Events",{slots:{[Ct]:aB()},coreProps:{sectionAccent:RE},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});Rn({Collections:ll("Collections",{slots:{[Ct]:[iB()]},roomBelow:gie,pressHeading:!0})});Rn({GalleryB:ll("GalleryB",{slots:{[Ct]:[sB()]},roomBelow:{bottom:fi.bottom,bottomPhone:G_},pressHeading:!0})});Rn({[ca]:{name:"Product hero",box:[...ij],boxProps:{direction:"column",gap:0,gapPhone:0,...gt(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[lw]:dw},slots:e=>({[Ct]:L6(e)})}]}});var F8=Dw(Lc.ownBox);Rn({FitmentTable:ll("FitmentTable",{slots:{[g5]:[Vse()],[Ou]:[Kse()]},roomBelow:{bottom:F8.bottom,bottomPhone:F8.bottomPhone},boxProps:F8.line?{sectionBorder:oP({bottom:1})}:{},pressHeading:!0})});var A7e=e=>({type:Zs,props:{...ze,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[Js]:[{type:Zs,props:{...ze,name:"Words",direction:"column",gap:16},slots:{[Js]:[Oe("eyebrow",Ge,{...Na(13),color:"accent"}),Oe("title",Ge,{textStyle:"heading-2",...ho("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Oe("copy",Tt,{textStyle:"body-1",...ho("body",15),lineHeight:1.6})]}},{type:Zs,props:{...ze,name:"Picture",direction:"column",gap:12},slots:{[Js]:[{type:"ImageBlock",props:{[Ks]:"image",aspect:"1/1",fit:"contain"}},Oe("tag",{...Tt,align:"right"},{...Na(11),align:"right"})]}}]}}),L7e={name:"Feature Rows",boxProps:{...ec,...cq,direction:"column",gap:0},box:Pp,parts:[{kind:"core",keep:"rest",slots:e=>({template:[A7e(e.startLeft===!0)]})}]};Rn({DetailRows:L7e});import{phoneKey as H8}from"efficient-easel/draw";var mR=e=>[...Pp.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>tP(t,n)],...bh(e)],D8=(e,t,o)=>(n,r)=>({...ec,sectionAccent:tP(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...Gm(n,e)}),M8=(e,t,o)=>({kind:"text",key:e,role:"heading",props:Ge,style:{textStyle:"heading-2",...ho("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),z8=(e,t,o={})=>({kind:"group",name:"Heading",props:{...ze,gap:e,gapPhone:e,...o},parts:t}),W8=(e={})=>({kind:"core",keep:"rest",props:QE,...e}),pR=L8,[I7e]=N2("ReviewForm"),F7e=()=>({name:"Review Form",boxProps:D8(pR,48,32),box:mR(pR),parts:[z8(16,[{...I7e,props:Ge},M8("title",1,-.02)]),W8()],pressKeepsEmpty:["eyebrow","title"],drop:{...tc,...oc,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[B7e]=N2("Reviews"),B8=e=>({...Na(12),letterSpacing:e}),H7e={type:Zs,props:{...ze,name:"Card",gap:16,...gt(40,40,32,32),sectionAccent:0},slots:{[Js]:[{type:"RatingBlock",props:{[Ks]:"rating"}},Oe("title",Ge,{textStyle:"heading-1",...ho("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Oe("quote",Tt,{textStyle:"body-1",...ho("body",15),lineHeight:1.65}),{type:Zs,props:{...ze,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[H8("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Js]:[Oe("name",Ge,B8(.22)),Oe("dateLabel",{...Tt,align:"right"},{...B8(.18),align:"right"}),Oe("role",{...Tt,align:"right"},{...B8(.18),align:"right"})]}}]}},D7e=()=>({name:"Reviews",boxProps:D8(pR,48,32),box:mR(pR),parts:[z8(16,[{...B7e,props:Ge},M8("title",1,-.02)]),W8({slots:{template:[H7e]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...tc,...oc,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"}}),Yce={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},M7e=()=>({name:"Booking Form",boxProps:D8(Yce,40,40),box:mR(Yce),parts:[z8(16,[eP("eyebrow",{...ho("label",12),weight:600,letterSpacing:.24,color:"accent"}),M8("heading",.98,-.025),{kind:"text",key:"intro",props:{...Tt,maxWidth:660},style:{textStyle:"heading-1",...ho("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),W8()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...tc,...oc}}),jce={top:88,bottom:88,topPhone:64,bottomPhone:64},z7e=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...ec,direction:"column",align:"center",gap:20,gapPhone:20,...Gm(e,jce)}),box:[...Pp,...bh(jce)],parts:[{...eP("eyebrow"),props:{...Ge,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...Ge,align:"center",maxWidth:720},style:{textStyle:"heading-1",...ho("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...Ge,align:"center",maxWidth:560},style:{textStyle:"body-1",...ho("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...ze,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[H8("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...sq,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...H2,align:"center",icon:"none"},style:{...Bm(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...tc,...oc}}),qce={top:60,bottom:0,topPhone:60,bottomPhone:0},W7e=()=>({name:"Contact Form",boxProps:(e,t)=>({...ec,sectionAccent:tP(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...Gm(e,qce)}),box:mR(qce),parts:[{kind:"group",name:"Header",props:{...ze,direction:"row",align:"center",share:"content",phoneRow:2,[H8("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[eP("routingNumber"),{kind:"text",key:"routingTagline",props:Tt,style:{textStyle:"heading-1",...ho("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:dq(e.sectionAccent??0,t)})}}],drop:{...tc,...oc}});Rn({ContactRouting:W7e(),ReviewForm:F7e(),AppointmentBooking:M7e(),Reviews:D7e(),CheckoutCTA:z7e()});var Xce={top:40,bottom:40,topPhone:40,bottomPhone:40},Zce={textStyle:"heading-1",...Iq("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},U8=["heading","intro"],Jce=[Ct,Ha,Da,Ma];function U7e(e,t){let o=(t?A0:JK)(Bo,e);return Object.fromEntries(Jce.map(n=>[n,o[n]]))}var G7e=()=>({name:"List",boxProps:e=>({...ec,direction:"column",gap:24,gapPhone:24,...Gm(e,Xce)}),box:[...Pp,...bh(Xce)],parts:[{kind:"group",name:"Heading",props:{...ze,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...Ge,tag:"h1"},style:Zce,when:e=>!r4(e)},{kind:"text",key:"heading",role:"heading",props:{...Ge,tag:"h2"},style:Zce,when:r4},{kind:"text",key:"intro",role:"body",props:Tt,style:{textStyle:"body-1",...ho("body",15)}}]},{kind:"core",keep:"rest",props:QE,derive:{reads:[...Jce],props:(e,t)=>U7e(e,t.press===!0)}}],pressKeepsEmpty:U8,drop:{...tc,...oc,[SP]:"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"}});Rn({AlloyWheelsListing:G7e()});var Qce={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as $7e,useContext as V7e}from"react";import{Fragment as K7e,jsx as zw}from"react/jsx-runtime";var $o={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)]"},Ww=$7e("catalog");function Es(){return V7e(Ww)==="catalog"}function qu({children:e}){let t=Es();return zw(K7e,{children:e??(t?zw(M,{"aria-hidden":!0}):null)})}function Uw({children:e}){return zw(qu,{children:e?zw(M,{children:e}):null})}function uR({children:e}){return zw(qu,{children:e?zw(M,{className:"[.sf-card-rows>*>&]:self-end",children:e}):null})}var epe={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:C3($o.label),writable:!0,sized:!0}},tpe={name:{label:"Name",follows:"Heading 3",builtIn:C3($o.headingSmall2),writable:!0,sized:!0}};zte({ProductPrice:Qce,ProductEyebrow:epe,ProductName:tpe});function Gw(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as Y7e}from"react/jsx-runtime";import{OpacityIcon as j7e}from"efficient-easel/icons";import{group as fR}from"efficient-easel/screen/lib/document/box-fields";var ope={fields:{_gContent:fR("Content"),eyebrow:U("Eyebrow",Qm.eyebrow),title:Z("Heading",Qm.title),body:Z("Body",Qm.body),_gBackground:fR("Background image"),imageSrc:ot("Image","image/*"),overlay:le("Overlay",Y7e(j7e,{}),0,100,5,60,"%"),_gButton:fR("Button"),...kl,_gLayout:fR("Layout")}};import{jsx as R1}from"react/jsx-runtime";import{GroundIcon as rpe,ListIcon as q7e}from"efficient-easel/icons";function ape(e){let t=e?.data?.root,o=FP(t?.props)??"";return o&&k4(o,"text").length?o:""}var G8="outsideCardTemplate",X7e={not:{context:G8,is:!0}},Wa={[G8]:(e,t)=>{let o=kp(t.appState,e.props?.id);if(o!==void 0)return o===null&&!ape(t.appState)},[lK]:(e,t)=>{let o=ed(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[cK]:(e,t)=>ed(t.appState,e.props?.id)?.inCopy};function Gr(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?R1(aa,{noun:"link"}):t==="colour"?R1(rpe,{}):R1(q7e,{}),a={...fe(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return lt(a,X7e)}function Ic(){return Gr("Link from","link")}var Z7e={any:[{field:Yo,set:!1},{context:G8,is:!0,default:!0}]};function Xu(e){return lt(e,Z7e)}function N1(e){return e.kind==="link"?wr(Q(e.label)):e.kind==="colour"?J7e(e.label):e.multiline?Je(e.label):ve(e.label)}function J7e(e){return{type:"custom",render:({value:t,onChange:o})=>R1(vee,{label:e,icon:R1(rpe,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function Q7e(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var npe=new WeakMap;function Ua(e,t,o){let n=Object.keys(e).filter(S=>Q7e(e[S]));if(!n.length)return e;let r=t.props??{},a=kp(o.appState,r.id),i=typeof a?.type=="string"?a.type:"",s=a?_3(o.appState,r.id)??"":"",l=n.map(S=>typeof r[S]=="string"?r[S].trim():""),d=pt(a?.props),c=i===Ir?kp(o.appState,a?.props?.id):null,p=c?_3(o.appState,a?.props?.id)??void 0:void 0,m=c?hE(a?.props,c.type,p):"",f=c?pt(c.props):"",h=c?`${String(c.type??"")}\0${f}\0${p??""}`:"",g=i===Ir&&!c?JSON.stringify(a?.props?.[qK]??null):"",b=a?"":ape(o.appState),w=[i,s,d,m,h,g,Lm(),b,SZ(),...l].join("\0"),x=npe.get(e);x||npe.set(e,x=new Map);let v=x.get(w);if(v)return v;let k={...e};return n.forEach((S,T)=>{let E=e[S],y=i===Ir?mh(o.appState,a,E.cardRowKind):i?eY(a,E.cardRowKind,s||void 0):k4(b,E.cardRowKind),O=E.cardRowKind==="link"&&!!i&&!y.length;if(!l[T]&&(O||(E.cardRowContent?!i||!y.length:!y.length&&!i&&b))){delete k[S];return}let P=l[T]&&!y.some(A=>A.key===l[T])?l[T]:"",B=E.cardRowKind==="list",H=(A,_)=>B&&_===0&&A.key!==l[T]?"":A.key;k[S]={...E,options:[...B?[]:E.options,...y.map((A,_)=>({label:A.label,value:H(A,_)})),...P?[{label:P,value:P}]:[]]}}),x.set(w,k),k}import{group as spe}from"efficient-easel/screen/lib/document/box-fields";var hR={meta:"Trailing note"},ipe={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var lpe={fields:{_gContent:spe("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:Q("Label"),href:wr(Q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:U("Trailing note",hR.meta),_gText:spe("Text"),rowField:Gr("Shows","text")},resolveFields:(e,t)=>Ua(t.fields,e,t),showWhenFacts:Wa};import{jsx as bi,jsxs as aze}from"react/jsx-runtime";import{ButtonIcon as ize,ButtonIconIcon as sze,IconAfterTextIcon as lze,IconBeforeTextIcon as dze}from"efficient-easel/icons";import{SettingsField as cze}from"efficient-easel/panel";import{useSelectedFields as hpe}from"efficient-easel/easel";import{buttonFieldSet as pze}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as mze}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as uze,Segmented as fze}from"efficient-shell/ui";function gR(e){return typeof e=="boolean"?e:!0}var $8=["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"];function V8(e){return typeof e=="string"&&$8.includes(e)?e:void 0}function dpe(e,t){return V8(e)??(gR(t)?"arrow-right":"none")}function O1(e){return e==="before"?"before":e==="end"?"end":"after"}function cpe(e,t){return O1(e)==="end"&&lg(t)==="fill"}function lg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function ppe(e,t,o,{atSectionLine:n=!1}={}){let r=lg(e);if(fr(o)){let i=lg(o),s=fr(t)?lg(t):i;return n?[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-tablet:max-view-desktop:w-full":"view-tablet:max-view-desktop:w-auto",s==="fill"?"max-view-tablet:w-full":"max-view-tablet:w-auto"].join(" "):[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-wide:max-view-desktop:w-full":"view-wide:max-view-desktop:w-auto",s==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto"].join(" ")}let a=r==="fill"?["w-full"]:[];if(fr(t)){let i=lg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as xR}from"efficient-easel/screen/lib/document/style-fields";import{group as mpe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as hze}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as K8}from"react/jsx-runtime";import{LockIcon as eze}from"efficient-easel/icons";import{FieldText as tze}from"efficient-easel/fields";import{SettingsField as oze}from"efficient-easel/panel";import{keptByRow as nze}from"efficient-easel/screen/lib/document/style-fields";function rze(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??NQ}-words`;return K8(oze,{label:u("Words"),icon:K8(eze,{}),htmlFor:o,children:K8(tze,{id:o,value:u("Set by country"),onChange:()=>{},readOnly:!0})})}}}function bR(e){return nze(e)}function wR(e,t,o,n=[]){return cC(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?rze():a]))}var Y8=e=>oC(e==="none"?"no-symbol":e),gze=$8.map(e=>({value:e,icon:e==="none"?rQ(Y8(e),bi(C4,{value:e})):Y8(e)})),gpe=Q("Button");function bze({value:e,onChange:t}){let o=hpe(),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?bi(DQ,{label:"Button",icon:bi(ize,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):gpe.render({value:r,field:{label:"Button"},onChange:a=>t(iee(a))})}function wze({value:e,onChange:t}){let o=hpe(),n=dpe(e,o.values.arrow),r=O1(o.values.iconPosition),a=lg(o.values.widthFit)==="fill",i=Y8("icon-at-end");return bi(cze,{label:u("Icon"),icon:bi(sze,{size:18}),value:n==="none"?void 0:bi(C4,{value:n}),children:aze("div",{className:"flex items-center gap-2",children:[bi(uze,{label:u("Icon"),value:n,options:gze,onChange:t}),n!=="none"&&bi(fze,{size:"sm",block:!0,label:u("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:bi(dze,{size:16}),label:bi("span",{className:"sr-only",children:u("Icon before text")}),title:u("Icon before text")},{value:"after",icon:bi(lze,{size:16}),label:bi("span",{className:"sr-only",children:u("Icon after text")}),title:u("Icon after text")},...a?[{value:"end",icon:i,label:bi("span",{className:"sr-only",children:u("Icon at the far end")}),title:u("Icon at the far end")}]:[]]})]})})}var upe=()=>A3($n().theme),fpe=pze({lengthUnits:JP,follows:{useFill:()=>upe().fill,useText:()=>upe().ink,useBorder:()=>{let[e]=pc("variant"),[t]=pc("buttonColor"),{theme:o}=$n(),n=H4({variant:e,buttonColor:t}).border.width,r=fr(t)??(e==="ghost"?pY(o).text:A3(o).fill);return{width:n,color:r}},useCorners:()=>bY($n().cornerRadiusPx),useFillOpacity:()=>H4({variant:pc("variant")[0]}).fillOpacity},usePresets:uQ,resetTo:e=>see(e,u("Styles")),padding:{fallback:zQ,tablet:!0},phone:mze,say:lb});function xze(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var bpe={fields:{label:dee(gpe,e=>bi(bze,{value:e.value,onChange:e.onChange})),labelText:fee("label"),href:Xu({...qe("Button link"),...xR("label")}),consentWords:bR("label"),_gButton:mpe("Button"),rowField:Gr("Shows","text"),[Yo]:Ic(),...xze(fpe,hze.Design),_gStyle:mpe("Style"),variant:xR("buttonColor"),icon:{type:"custom",render:e=>bi(wze,{value:e.value,onChange:e.onChange})},iconPosition:xR("icon"),arrow:xR("icon"),...fpe},resolveFields:(e,t)=>wR(Ua(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Wa};import{jsx as SR}from"react/jsx-runtime";import{AccentIcon as yze,ColumnsIcon as vze,StylesIcon as vpe}from"efficient-easel/icons";import{group as j8}from"efficient-easel/screen/lib/document/box-fields";import{newId as xpe}from"efficient-easel/data";function yR(e,{rows:t="items",label:o="title"}={}){let n=pt(e);return n?vp(n).map(r=>({label:r.label,value:r.key})):(Array.isArray(e[t])?e[t]:[]).map((r,a)=>({label:typeof r?.[o]=="string"&&r[o].trim()||u("Card {n}",{n:a+1}),value:nY(an(r),a)}))}var wpe=new WeakMap;function vR(e,t){let o=wpe.get(e);o||wpe.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 ype(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>xpe(t),enumerable:!0})}function kR(e,t="items"){if(!Array.isArray(e[t])||pt(e))return e;let o=e[t],n=typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",r=c=>c&&typeof c=="object"&&typeof c.key=="string"?c.key:"",a=!!n&&!o.some(c=>r(c)===n),i=new Set,s=e.highlightedCard,l=!1,d=o.map((c,p)=>{if(!c||typeof c!="object")return c;let m=r(c);if(m&&!i.has(m))return i.add(m),c;let f=!m&&a&&n===String(p+1);if(m||f){let h=xpe("card");return i.add(h),l=!0,f&&(s=h),{...c,key:h}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as kze}from"efficient-easel/data";var Sze=e=>kze(e.template)&&e.template.length>0;function Tze(e,t){let o=Sze(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,vR(r,yR(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,Cze(r)]]:[[n,r]]))}var Eze=Object.fromEntries(P2("Cards").filter(e=>!e.everySource).map(e=>[e.key,N1(e)])),Pze=Object.fromEntries(P2("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,N1(e)])),kpe=new WeakMap;function Cze(e){let t=kpe.get(e);return t||kpe.set(e,t={...e,arrayFields:Eze}),t}var Spe={fields:{_gSource:j8("Source"),dataSource:Xt("Card content","Manual"),[ag]:Rw(),_gContent:j8("Content"),eyebrow:U("Eyebrow",V0.eyebrow),eyebrowLook:fe("Eyebrow style",SR(vpe,{}),[...nl],Cp("Cards")),title:Z("Heading",V0.title),items:{type:"array",label:"Cards",arrayFields:Pze,defaultItemProps:ype({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...pq,highlightedCard:fe("Highlighted card",SR(yze,{}),[{label:"None",value:""}],""),highlightBadge:U("Highlight badge","Most popular"),_gStyle:j8("Style"),cardStyle:yo("Card style",SR(vpe,{}),[{label:"Cards",value:"cards",picture:D4.cards},{label:"Label only",value:"label-only",picture:D4["label-only"]}],"cards",{columns:2,cell:br}),columns:le("Columns",SR(vze,{}),2,4,1,3)},resolveData:(e,t)=>{let o=t?.lastData?.props,n=Hte(e.props,o),r=mE(n),a=r===e.props?e:{...e,props:r},i=a.props,s=kR(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=nt(Zt("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,st.Cards.headRows),n=e.props,r=Tze(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:ve("Feature label"),href:wr(Q("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:Cp("KeyFeatures")}}:{}}}};import{jsx as _ze}from"react/jsx-runtime";import{StickyIcon as Rze}from"efficient-easel/icons";import{group as Tpe}from"efficient-easel/screen/lib/document/box-fields";var Epe={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:Xo(wr(Q("Active tab","All"))),_gLinks:Tpe("Links"),links:{type:"array",label:"Right links",arrayFields:{label:Q("Label"),href:wr(Q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:Tpe("Style"),sticky:ae("Stick to top",!0,_ze(Rze,{}))}};import{jsx as Nze}from"react/jsx-runtime";import{StylesIcon as Oze}from"efficient-easel/icons";import{group as Ppe}from"efficient-easel/screen/lib/document/box-fields";var Aze=[...KX],Cpe={fields:_i({_gContent:Ppe("Content"),eyebrow:U("Chip label",nb.eyebrow),title:Z("Heading",nb.title),body:Z("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:ve("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:U("Caption","Illustrative example"),_gStyle:Ppe("Style"),chartStyle:yo("Chart style",Nze(Oze,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:gC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:gC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:gC.donut}],"bars",{columns:3,cell:br}),valueSuffix:Xo(U("Value suffix","%"))},Aze,Ri)};import{jsx as qze}from"react/jsx-runtime";import{jsx as rt,Fragment as X8,jsxs as yd}from"react/jsx-runtime";import{useId as Lze,useState as Ize}from"react";import{InspectorUpLevel as A1}from"efficient-easel/chrome";import{useEasel as Fze}from"efficient-easel/easel";import{ListField as Ope}from"efficient-easel/fields";import{SettingsField as Ape}from"efficient-easel/panel";import{ClockIcon as _pe,ContrastIcon as Bze,GlobeIcon as Hze,LinkIcon as Dze,LocationIcon as Mze,PhoneIcon as zze,SquareIcon as Wze,TypeIcon as Z8}from"efficient-easel/icons";import{useSectionOps as Uze}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as Gze}from"efficient-easel/draw";var J8=(e,t)=>t||e?Xte(e,t):u("Ungrouped");function $ze(e){let t=[];return e.forEach((o,n)=>{let r=su(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 q8({children:e}){return rt("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--ink-faint)",margin:"14px 0 6px"},children:e})}var Lpe={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"},Vze={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},Ipe={...Vze,color:"var(--status-danger-soft-ink)"};function rm({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=Lze();return rt(Ape,{label:e,icon:r??rt(Z8,{}),htmlFor:l,children:n?rt("textarea",{id:l,value:t,placeholder:o,onChange:d=>a(d.target.value)}):rt("input",{id:l,type:"text",value:t,placeholder:o,onChange:d=>a(d.target.value),onBlur:i,onKeyDown:s})})}var Kze=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],Yze=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function Rpe({label:e,icon:t,options:o,value:n,onChange:r}){return rt(Ape,{label:e,icon:t,children:rt("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:o.map(a=>{let i=n===a.value;return rt("button",{type:"button","aria-pressed":i,onClick:()=>r(a.value),style:{flex:1,padding:"6px 8px",fontSize:12,borderRadius:6,cursor:"pointer",border:`1px solid ${i?"var(--sf-accent)":"var(--line-strong)"}`,background:i?"var(--sf-accent)":"transparent",color:i?"var(--sf-on-accent)":"inherit",fontWeight:i?500:400},children:u(a.label)},a.value)})})})}function Npe({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||Sn.mapTheme,a=Sn;return yd(X8,{children:[!o&&rt(q8,{children:u("Section")}),rt(rm,{label:u("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),rt(rm,{label:u("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),rt(rm,{label:u("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:yd(X8,{children:[rt(q8,{children:u("City strip")}),rt(rm,{label:u("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),rt(rm,{label:u("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),rt(Rpe,{label:u("Shape"),icon:rt(Wze,{}),options:Yze,value:vP(e.imageShape),onChange:i=>t({imageShape:i})}),rt(q8,{children:u("Map & Theme")}),rt(Rpe,{label:u("Map theme"),icon:rt(Bze,{}),options:Kze,value:r,onChange:i=>t({mapTheme:i})})]})]})}function jze({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((f,h)=>su(f)===t?h:-1).filter(f=>f>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(su).filter(f=>f!==t)),[d,c]=Ize(t),p=f=>o(e.map(h=>su(h)===t?{...h,...f}:h)),m=()=>{let f=d;if(f!==t){if(l.has(f)){c(t);return}o(e.map(h=>su(h)===t?{...h,group:f}:h)),a(f)}};return yd("div",{className:"sf-locations-view",children:[rt(A1,{inline:!0,name:u("Section"),onSelect:n,title:J8(t,s)}),rt(rm,{label:u("Group heading"),value:d,placeholder:u("e.g. Americas"),onChange:c,onBlur:m,onKeyDown:f=>{f.key==="Enter"&&f.currentTarget.blur()}}),l.has(d)&&d!==t&&rt("p",{className:"sf-note sf-note--error",role:"alert",children:u("Another group already uses this heading \u2014 pick a different one.")}),rt(rm,{label:u("Group name"),value:s,placeholder:u("Shown beside the heading"),onChange:f=>p({groupName:f})}),rt(Ope,{label:u("Cities in this group"),noun:u("city"),items:i.map(f=>e[f]),onChange:f=>o(Zte(e,t,f)),newItem:()=>({...J4,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(f,h)=>yd("button",{type:"button",style:Lpe,onClick:()=>r(i[h]),children:[rt("span",{children:f?.name||u("City")}),rt("span",{"aria-hidden":"true",children:"\u203A"})]})}),rt("div",{style:{marginTop:12},children:rt("button",{type:"button",style:Ipe,onClick:()=>{o(e.filter(f=>su(f)!==t)),n()},children:Zn("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function Fpe({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=qte(),r=ate(),a=$ze(o),{appState:i,selectedItem:s}=Fze(g=>g),l=Uze(),d=s?.props??{},c=g=>{if(!s)return;let b=(i.data.content??[]).findIndex(w=>w.props.id===s.props.id);b<0||l.replaceComponent(Gze,b,{type:s.type,props:{...s.props,...g}})},p=(g,b)=>t(o.map((w,x)=>x===g?{...w,...b}:w)),m=()=>{let g=new Set(a.map(x=>x.key)),b=a.length+1,w=`Group ${b}`;for(;g.has(w);)w=`Group ${++b}`;return w};if(n.level==="texts")return yd("div",{className:"sf-locations-view",children:[rt(A1,{inline:!0,name:u("Locations"),onSelect:()=>ld({level:"groups"}),title:u("Texts")}),rt(Npe,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let g=o[n.index];return g?yd("div",{className:"sf-locations-view",children:[rt(A1,{inline:!0,name:String(g.name??"")||u("City"),onSelect:()=>ld({level:"city",index:n.index}),title:u("Image")}),rt(wQ,{value:g.photo||"",onChange:b=>p(n.index,{photo:b}),label:"Image",accept:"image/*"})]}):f()}if(n.level==="map"){let g=o[n.index];return g?yd("div",{className:"sf-locations-view",children:[rt(A1,{inline:!0,name:String(g.name??"")||u("City"),onSelect:()=>ld({level:"city",index:n.index}),title:u("Map")}),rt(kb,{value:g.geocode,onChange:b=>p(n.index,{geocode:b}),label:"Coordinates"}),rt(rm,{label:u("Directions link"),icon:rt(Dze,{}),value:String(g.mapsUrl??""),onChange:b=>p(n.index,{mapsUrl:b})})]}):f()}if(n.level==="city"){let g=n.index,b=o[g];if(!b)return f();let w=su(b),x=(k,S)=>p(g,{[k]:S}),v=(k,S,T,E=!1)=>rt(rm,{label:S,icon:T,textarea:E,value:String(b[k]??""),onChange:y=>x(k,y)});return yd("div",{className:"sf-locations-view",children:[rt(A1,{inline:!0,name:J8(w,String(b.groupName??"")),onSelect:()=>ld({level:"group",key:w}),title:b.name||u("City")}),v("name",u("Location name"),rt(Z8,{})),v("state",u("State / Province"),rt(Z8,{})),v("country",u("Country"),rt(Hze,{})),v("address",u("Address"),rt(Mze,{}),!0),v("phone",u("Phone"),rt(zze,{})),v("hours",u("Opening hours"),rt(_pe,{})),v("timezone",u("Timezone chip"),rt(_pe,{})),rt("div",{style:{marginTop:12},children:rt("button",{type:"button",style:Ipe,onClick:()=>{t(o.filter((k,S)=>S!==g)),ld({level:"group",key:w})},children:u("Delete city")})})]})}if(n.level==="group")return a.some(g=>g.key===n.key)?rt(jze,{cards:o,groupKey:n.key,onChange:t,onBack:()=>ld({level:"groups"}),onOpenCity:g=>ld({level:"city",index:g}),onNavigate:g=>ld({level:"group",key:g})},n.key):f();function f(){return yd("div",{className:"sf-locations-view",children:[rt(Npe,{props:d,setSection:c}),!r&&rt(X8,{children:h()})]})}function h(){return rt(Ope,{label:u("Locations"),noun:u("group"),items:a,onChange:g=>{let b=g.find(w=>!a.some(x=>x.key===w.key));t(Jte(o,g.map(w=>w.key),w=>[{...J4,group:w,groupName:""}])),b&&ld({level:"group",key:b.key})},newItem:()=>({key:m(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:a.length===0?rt("div",{style:{fontSize:12,color:"var(--ink-faint)",padding:"4px 0"},children:u("No locations yet.")}):void 0,renderRow:g=>yd("button",{type:"button",style:Lpe,onClick:()=>ld({level:"group",key:g.key}),children:[rt("span",{style:{fontWeight:500},children:J8(g.key,g.name)}),yd("span",{style:{color:"var(--ink-faint)"},children:[Zn("{n} city","{n} cities",g.indices.length)," \u203A"]})]})})}return f()}var Bpe={fields:{dataSource:Xt("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>qze(Fpe,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!pb(o))return e;let n=await mb(o,i=>{let s=kP(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(", ")}),{[QT]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>Zt("ContactLocations",t,e.props)};import{jsx as Hpe}from"react/jsx-runtime";import{ClockIcon as Xze,TagIcon as Zze}from"efficient-easel/icons";var Jze=[...JX],Dpe={fields:_i({title:U("Heading",i4.title),zeroText:Xo(U("At zero",i4.zeroText)),endsAt:yee("Ends",Hpe(Xze,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:ae("Unit labels",!0,Hpe(Zze,{}))},Jze,Ri)};var Mpe={fields:{html:{type:"textarea",label:"HTML"}}};import{jsx as Q8}from"react/jsx-runtime";import{StylesIcon as Qze,WeightIcon as eWe,WidthIcon as tWe}from"efficient-easel/icons";import{keptByRow as oWe}from"efficient-easel/screen/lib/document/style-fields";var nWe={any:[{field:"style",set:!1},{field:"style",is:Ch}]},rWe={not:{field:"style",is:"none"}},zpe={fields:Be({style:yo("Style",Q8(Qze,{}),KQ.map(e=>({...e,picture:ZQ(e.value)})),Ch,{columns:3,cell:br}),spacing:oWe("sectionPaddingTop"),thickness:le("Thickness",Q8(eWe,{}),1,8,1,1,av),...id(av,"thickness"),lengthPct:le("Length",Q8(tWe,{}),10,100,1,100,iv),...id(iv,"lengthPct")},[[["thickness"],nWe],[["lengthPct"],rWe]]),resolveFields:(e,{fields:t})=>{let o=fC[hC(e.props.spacing)],n=Ap({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return dv(t,n)}};import{jsx as Upe}from"react/jsx-runtime";import{HashIcon as aWe,StickyIcon as iWe}from"efficient-easel/icons";import{group as Gpe,select as sWe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as L1}from"efficient-easel/screen/lib/document/device-fields";var eH={title:"On this page"},Wpe={label:"Contents",defaultProps:{title:eH.title,sticky:!0}};var $pe={fields:{title:L1("desktop",U("Heading",eH.title)),_gList:L1("desktop",Gpe("List")),[FC]:L1("desktop",sWe("Number",Upe(aWe,{}),LX,IX)),_gStick:L1("desktop",Gpe(U3)),sticky:L1("desktop",ae(U3,!0,Upe(iWe,{})))}};import{group as lWe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as tH}from"efficient-easel/screen/lib/document/device-fields";var I1={hint:"Search questions",noMatchText:"No question matches your search."},Vpe={label:"List search",defaultProps:{hint:I1.hint,noMatchText:I1.noMatchText}};var Kpe={fields:{_gContent:tH("desktop",lWe("Content")),hint:tH("desktop",Xo(U("Hint",I1.hint))),noMatchText:tH("desktop",Xo(U("No match",I1.noMatchText)))}};import{group as jpe}from"efficient-easel/screen/lib/document/box-fields";var TR={toc:"On this page"},Ype={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var qpe={fields:{_gContent:jpe("Contents"),tocTitle:U("Contents heading",TR.toc),_gSections:jpe("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:ve("Contents label"),heading:ve("Title"),body:Je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as Xpe}from"efficient-easel/screen/lib/document/box-fields";var Zpe={fields:{_gContent:Xpe("Content"),eyebrow:U("Eyebrow",Xm.eyebrow),title:Z("Heading",Xm.title),deck:Z("Deck / standfirst",Xm.deck),_gMeta:Xpe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:ve("Label"),value:ve("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var ER=[{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."}],Jpe={label:"Document Detail Cards",defaultProps:{cards:[]}};var Qpe={fields:{cards:wb({type:"array",label:"Cards",arrayFields:{label:ve("Label"),value:ve("Value"),desc:Je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},ER)}};import{jsx as dWe}from"react/jsx-runtime";import{PageIcon as cWe}from"efficient-easel/icons";import{group as pWe}from"efficient-easel/screen/lib/document/box-fields";var $w={metaLabel:W.label,metaValue:W.value},eme={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var tme={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Tab label"),href:qe("Links to"),current:ae("Current page",!1,dWe(cWe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:pWe("Trailing note"),metaLabel:U("Note label",$w.metaLabel),metaValue:U("Note value",$w.metaValue)}};import{jsx as mWe}from"react/jsx-runtime";import{StylesIcon as uWe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as fWe}from"efficient-easel/screen/lib/document/box-fields";var ome={fields:{eyebrow:U("Eyebrow",W.eyebrow),...ml("align",{access:fWe}),eyebrowLook:fe("Look",mWe(uWe,{}),nl,nP)}};import{jsx as hWe}from"react/jsx-runtime";import{ChevronIcon as gWe}from"efficient-easel/icons";import{group as nH}from"efficient-easel/screen/lib/document/box-fields";var Zu={num:W.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},oH=kn.FAQ,nme={label:"Q&A",inline:!0,fields:oH,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var rme="faqOnTemplate",bWe={not:{context:rme,is:!0}},wWe={[rme]:e=>nq("FAQ",e.props??{})},xWe=new Set([dj,...cj]);function yWe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||xWe.has(t))}var ame={fields:{_gContent:nH("Content"),num:U("Number",Zu.num),title:Z("Heading",Zu.title),linkText:U("Button",Zu.link),linkHref:qe("Link"),_gQuestions:nH("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:ve("Question"),answer:Je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:nH("Layout"),defaultOpen:ae("Open first answer",!0,hWe(gWe,{})),...oH},resolveFields:(e,{fields:t})=>{let o=nt(t,e.props.headPlacement,st.FAQ.headRows);return _i(o,yWe(o),bWe)},showWhenFacts:wWe};import{jsx as ji,Fragment as PR,jsxs as kWe}from"react/jsx-runtime";import{useContext as SWe}from"react";import{SettingsField as dme}from"efficient-easel/panel";import{FieldSelect as cme}from"efficient-easel/fields";import{BlogPostIcon as pme}from"efficient-easel/icons";import{ScreenDocumentContext as TWe}from"efficient-easel/screen/components/ScreenDocumentContext";var ime=xw({fetch:async(e,t)=>await Xd().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:On});import{useEffect as sme,useRef as vWe,useState as rH}from"react";function dg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Vw({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=rH(null),[s,l]=rH(!1),[d,c]=rH(!1),p=vWe(!0);return sme(()=>(p.current=!0,e().then(m=>{p.current&&i(m)}),()=>{p.current=!1}),[]),sme(()=>{if(!n?.slug||a===null)return;let m=t(a,n);if(!m)return;let f=o(m);dg(f,n)&&r(f)},[a]),{rows:a,loading:a===null,refreshing:s,errored:d,refresh:()=>{n?.slug&&(l(!0),c(!1),e(!0).then(m=>{if(!p.current)return;i(m);let f=t(m,n);f&&r(o(f))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function lme(e,t){return{label:t?u("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function Kw({value:e,onChange:t}){let o=SWe(TWe);return o&&!o.capabilities.hasBlog?e?.slug?ji(EWe,{value:e,onChange:t}):ji(PR,{}):ji(PWe,{value:e,onChange:t})}function EWe({value:e,onChange:t}){return ji("div",{children:ji(dme,{label:u("Blog post source"),icon:ji(pme,{}),hint:ji(PR,{children:u("Linked to a blog post. This editor has no blog to pick another from; choose \u201CNone (manual)\u201D to author the section yourself.")}),children:ji(cme,{value:e.slug,ariaLabel:u("Blog post source"),onChange:o=>o?void 0:t(null),options:[{label:u("None (manual)"),value:""},{label:e.title||e.slug,value:e.slug}]})})})}function PWe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Vw({load:ime,resolve:(m,f)=>m.find(h=>h.slug===f.slug),snapshot:Rv,value:e,onChange:t}),s=m=>{if(!m){t(null);return}let f=(o??[]).find(h=>h.slug===m);f&&t(Rv(f))},l=e?.slug&&!(o??[]).some(m=>m.slug===e.slug),d=a?"error":r?"loading":"idle",c=u("Storefront \u2192 Blog"),p=a?u("Couldn\u2019t reach {place}.",{place:c}):r?u("Syncing from {place}\u2026",{place:c}):u("Linked to \u201C{name}\u201D",{name:e?.title||e?.slug||""});return kWe("div",{children:[ji(dme,{label:u("Blog post source"),icon:ji(pme,{}),hint:e?.slug?void 0:ji(PR,{children:u("Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.",{place:c})}),children:ji(cme,{value:e?.slug??"",ariaLabel:u("Blog post source"),onChange:s,readOnly:n,options:[{label:u("None (manual)"),value:""},...l?[lme({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(m=>({label:m.title,value:m.slug}))]})}),e?.slug?ji(Li,{status:d,statusText:p,onRefresh:i,busy:r,hint:ji(PR,{children:u("Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.")})}):null]})}import{group as CWe}from"efficient-easel/screen/lib/document/box-fields";var $r={badge:"Featured",imageDate:W.date,category:W.category,readLabel:"0 min read",date:W.date,title:"Add a *headline* for this story.",dek:"A short summary of the featured article \u2014 one or two sentences that draw the reader in.",ctaText:"Read the story",ctaHref:nc.href},mme={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var _We=["image","imageDate","date","title","dek","ctaHref"],ume={fields:_i({source:Uo(Kw),_nBound:lt(fl(yC),vC),image:ot("Cover image","image/*"),badge:U("Badge",$r.badge),imageDate:U("Image date",$r.imageDate),_gContent:CWe("Content"),category:U("Category",$r.category),readLabel:U("Read time",$r.readLabel),date:U("Date",$r.date),title:Z("Heading",$r.title),dek:Z("Dek",$r.dek),ctaText:U("Button",$r.ctaText),ctaHref:qe("Link")},_We,yb)};import{jsx as nr}from"react/jsx-runtime";import{phoneKey as vr,tabletKey as ua}from"efficient-easel/draw";import{keptByRow as _Ue}from"efficient-easel/screen/lib/document/style-fields";import{jsx as fme}from"react/jsx-runtime";import{OpacityIcon as RWe,StylesIcon as NWe}from"efficient-easel/icons";function Yw(){return{darken:le("Darken",fme(RWe,{}),od.min,od.max,od.step,od.fallback,od.unit),darkenStyle:fe("Darken style",fme(NWe,{}),L2,L2[0].value)}}var OWe={"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]"},AWe=`calc(${BY} - ${I3}*2)`,hme=`var(${HY},${I3})`,FMt=`pointer-events-none absolute inset-y-0 left-[${hme}] right-[${hme}] z-[6] mx-auto max-w-[var(${DY},${AWe.replace(/ /g,"_")})]`;function CR(e,t){return`pointer-events-auto absolute ${OWe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function gme(e){return IE.includes(e)?e:null}var LWe=IE,aH="top-right",IWe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],iH=["cards","dots","numbers","bar","squares"],_R="cards",RR={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},NR=["tabs","largeTabs"],bme=!0;function OR(e){return IWe.includes(e)?e:_R}function wme(e){return iH.includes(e)?e:_R}function FWe(e){return LWe.includes(e)?e:aH}var xme={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 yme(e,t){return CR(FWe(t),xme[OR(e)])}function vme(e){return`flex ${xme[OR(e)]}`}function kme(e){return e.shown!==!1&&(e.count??0)>1}function BWe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function HWe(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 Sme(e,t){let o=Array.from(t,BWe);return HWe(e,o)?e:o}import{deviceField as vd}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as RUe,ClockIcon as NUe,CropIcon as rue,GapIcon as OUe,MediaLayoutStackedIcon as fue,LineBetweenIcon as AUe,LineSolidIcon as LUe,ListIcon as IUe,NumberedListIcon as aue,ShadowIcon as FUe,StylesIcon as iue,TableIcon as sue,TargetIcon as BUe,WrapIcon as hue}from"efficient-easel/icons";var Fc=BE.map(e=>e.shape);function F1(e){return Fc.includes(String(e??""))?e:"auto"}function AR(e){let t=F1(e);return t==="auto"?"":D0(t)}var DWe={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]"},MWe={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]"};function zWe(e,t){return Fc.includes(String(t??""))?t===F1(e)?null:t:null}var WWe={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]!"};function UWe(e){return Fc.includes(String(e??""))?e:null}function Tme(e,t,o){let n=UWe(o),r=zWe(e,Fc.includes(String(t??""))?t:n);if(r===null&&n===null)return AR(e);let a=F1(e);return[r===null?AR(e):a==="auto"?"":DWe[a],r===null?"":MWe[r],n===null?"":WWe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as gue,VIEW_KEY_ACCESS as Bc,group as pg,phoneTwinFields as Hc}from"efficient-easel/screen/lib/document/box-fields";var GWe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},$We=T2.map(e=>({value:e.value,picture:oC(GWe[e.value])}));function LR(e,t){return yo("Separator",e,$We,t,{resolve:wK})}import{jsx as VWe}from"react/jsx-runtime";import{cloneElement as KWe}from"react";import{PaddingXIcon as YWe}from"efficient-easel/icons";import{deviceField as jWe}from"efficient-easel/screen/lib/document/device-fields";function Eme(){let e=fe(cte,VWe(YWe,{}),Qj,eq);return jWe("desktop",{...e,render:t=>{let o=e.render({...t,value:ZE(t.value),onChange:n=>t.onChange(oq(n))});return KWe(o,{hint:u(tq)})}})}import{newNodeId as sH}from"efficient-easel/draw";var Pme=["First row","Second row","Third row"],qWe="Write the words for this row.",Cme=e=>({type:"Text",props:{...Ge,id:sH("Text"),tag:"p",text:e}}),XWe=(e,t)=>({type:we,props:{...ze,id:sH(we),...t?{startsOpen:!0}:{},rowTitle:[Cme(e)],content:[{type:"Text",props:{...Tt,id:sH("Text"),tag:"p",text:qWe}}]}}),ZWe=e=>!Array.isArray(e)||e.length===0;function _me(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:Pme.map((r,a)=>XWe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==we||!ZWe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(Pme[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[Cme(i)]}}});return o?{...e,content:n}:e}var B1="rowStyle",Rme=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function Nme(e){return e==="numbered"||e==="chevron"?e:"plain"}var IR="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",FR="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",BR="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",Ome="border-t border-line",Ame="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",Lme="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as JWe}from"efficient-easel/screen/lib/content/view-tiers";var HR=kn.Flex,Ime={label:"Box",fields:HR,phoneOrder:{prop:JWe("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 Fme}from"react/jsx-runtime";import{isNode as QWe}from"efficient-easel/data";import{useEasel as eUe}from"efficient-easel/easel";import{PhoneOrderField as tUe}from"efficient-easel/fields";import{slotChildRowName as oUe}from"efficient-easel/draw";import{deviceField as nUe}from"efficient-easel/screen/lib/document/device-fields";function rUe(){try{let e=eUe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!QWe(a)||typeof t[a.type]?.render!="function"?!1:fr(a.props?.id)!==void 0):[],r=n.map(a=>a.props.id);return{blocks:n,ids:r,labelOf:a=>t[a]?.label??a}}catch{return null}}function aUe({value:e,onChange:t,readOnly:o}){let n=rUe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return Fme(tUe,{stored:"ids",value:e,ids:a,onChange:t,readOnly:o,noun:"block",hint:u("The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."),itemLabel:s=>oUe(r[s],i,Wo,void 0,Iee)})}function Bme(){return nUe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>Fme(aUe,{value:e,onChange:t,readOnly:o})})}import{jsx as z1}from"react/jsx-runtime";import{SettingsDefaultReset as fUe,SettingsField as hUe}from"efficient-easel/panel";import{Segmented as gUe}from"efficient-shell/ui";import{SwapIcon as bUe}from"efficient-easel/icons";import{describedAs as wUe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as xUe}from"efficient-easel/screen/lib/document/device-fields";var H1="Mirror cards",D1="off",lH=[{value:D1,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],Hme={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function Ju(e){return e==="even"||e==="odd"?e:null}function Dme(e){return Ju(e)??void 0}function M1(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function cg(e,t,o){return!t||e.direction!=="row"||o||Fm("row",e.separator)||e.loop==="scroll"||e.line===!0||ps(e)||S3(e.columns)!==""||RK(e.columnsTablet)!==""?!1:!(cs(e.share)===""&&P0(e.wrap)!=="")}function Mme(e,t){let o=Ju(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var zme="view-wide:flex-row-reverse",iUe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},sUe={left:"view-wide:text-right!",right:"view-wide:text-left!"},lUe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},dUe={start:"view-wide:items-end!",end:"view-wide:items-start!"},cUe={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!"},DR=(e,t)=>(typeof t=="string"?Ys(e,t):void 0)??"";function dH(e,t,o){return e?[DR(iUe,t),DR(sUe,o)].filter(Boolean).join(" "):""}function Wme(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=kK(o,r,void 0).tablet;return[DR(lUe,o),a?cUe[a]:""].filter(Boolean).join(" ")}return t==="column"?DR(dUe,n):""}function cH(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||ps(e)?!1:S3(e.columns)===""}function MR(e,t){let o=Ju(e.mirrorCards);return o&&cH(e,t)?{mirror:o}:null}import{isNodeList as Yme}from"efficient-easel/data";var Ume=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],Gme=[{value:"half",label:"Half"},{value:"third",label:"One third"}],$me=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function pUe(e){return e==="rows-left"||e==="rows-right"?e:"columns"}var mUe={"rows-left":"even","rows-right":"odd"},uUe={half:"equal",third:"bigRight"};function zR(e){let t=pUe(e?.arrangement);if(t==="columns")return null;let o=e?.imageWidth==="third"?"third":"half";return{mirror:mUe[t],row:{share:uUe[o],phoneReverse:e?.phoneOrder==="words"}}}var Vme={ProcessSteps:{slot:"boxes",hand:zR}},Kme=(e,t,o)=>Yme(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function jw(e,t){let o=zP(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===we&&Kme(o,Re,t)){let s=ed(e,o.props?.id)?.inCopy===!0;return MR(ol(o.props??{},s),s)}let i=Ys(Vme,a);if(i&&Kme(o,i.slot,t))return i.hand(o.props??{})}let n=bE(e,t),r=n&&typeof n.type=="string"?Ys(Vme,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function jme(e){let t=e?.[Re];return Yme(t)&&t.some(o=>o?.type===we)}var qme="mirrorCardsIdle",pH="mirrorCardsMirrors",Xme={[pH]:(e,t)=>{let o=ed(t.appState,e.props?.id);if(o===void 0)return;let n=ol(e.props??{},o.inCopy),r=jw(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&cg(a,!0,Vp(a).desktop)}return cg(n,M1(o),Vp(n).desktop)&&Ju(n.mirrorCards)!==null},[qme]:(e,t)=>{let o=ed(t.appState,e.props?.id);if(o===void 0)return;let n=ol(e.props??{},o.inCopy);return jw(t.appState,e.props?.id)?!0:cg(n,M1(o),Vp(n).desktop)?!1:!(cH(n,o.inCopy)&&jme(n))}};function yUe(e=!1){return lH.map(t=>({value:t.value,label:u(t.label),title:t.value===D1?void 0:u(Hme[t.value]),disabled:e}))}function vUe({value:e,onChange:t,readOnly:o}){let n=Ju(e)??D1;return z1(hUe,{label:u(H1),icon:z1(bUe,{}),action:z1(fUe,{words:_E()?.panel,label:u(H1),changed:n!==D1,detail:u("Off"),onReset:()=>t(void 0)}),children:z1(gUe,{size:"sm",block:!0,label:u(H1),value:n,onChange:r=>t(Dme(r)),options:yUe(o===!0)})})}function Zme(){return lt(xUe("desktop",{type:"custom",...wUe({},{type:"radio",label:H1,options:lH.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>z1(vUe,{value:e,onChange:t,readOnly:o})}),{not:{context:qme,is:!0}})}import{jsx as kUe}from"react/jsx-runtime";import{FilterIcon as SUe}from"efficient-easel/icons";import{deviceField as TUe}from"efficient-easel/screen/lib/document/device-fields";var eue="showForUnoffered",tue={[eue]:e=>KP().length===0&&Q2(e.props?.[J2])===void 0},EUe="Show for",PUe="All";function CUe(e,t){if(!e)return;let o=KP().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 oue(){let e=fe(EUe,kUe(SUe,{}),[{label:PUe,value:""}],"");return lt(TUe("desktop",{...e,render:t=>e.render({...t,value:Q2(t.value)?.slug??"",onChange:o=>t.onChange(CUe(o,t.value))})}),{not:{context:eue,is:!0}})}var Jme=new WeakMap;function nue(e,t){let o=e[J2];if(!o)return e;let n=KP(),r=Q2(t?.[J2]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=Jme.get(o);i||Jme.set(o,i=new Map);let s=`${UJ()}\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=Qme.get(e);d||Qme.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[J2]:l}),c}var Qme=new WeakMap;var lue=dK,due={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},HUe={field:"direction",is:"tabs"},DUe={field:"line",in:[!0,!1]},MUe={field:"anchor",set:!0},mH=["fixed","screen","fill"],zUe={not:{any:[{field:"sectionHeightMode",in:mH},{field:"sectionHeightModeTablet",in:mH},{field:"sectionHeightModePhone",in:mH}]}},WUe={context:"parent.line",is:!0},mg={not:{field:"direction",is:"accordion"}},cue={field:"direction",is:"accordion"},pue={any:[mg,{not:{field:B1,in:["numbered","chevron"]}},{field:"columns",in:[...NK]},{field:"phoneRow",in:[...OK]}]},bue="notAccordionRow",UUe={not:{context:bue,is:!0}},GUe={[bue]:(e,t)=>t.parent?.props?.direction!=="accordion"},fH={field:"direction",is:"row",default:"row"},ug={not:PY},gg={all:[fH,ug,{not:{field:"separator",in:T2.map(e=>e.value)}},{not:{field:"line",is:!0}}]},$Ue={field:"direction",is:"column"},wue={all:[gg,...["columns",ua("columns")].map(e=>({not:{field:e,in:Array.from({length:pE},(t,o)=>o+cE)}}))]},VUe={all:[ug,{not:{all:[fH,{field:"separator",in:T2.map(e=>e.value)}]}}]},uH={not:{all:[gg,{field:"columns",in:Array.from({length:pE},(e,t)=>t+cE)}]}},KUe="sharedColumnsFits",xue="sharedColumnsMisfit",yue="sharedColumnsDraws",vue="sharedColumnsPhoneDraws";function hg(e,t){return ol(e.props??{},ed(t.appState,e.props?.id)?.inCopy!==!1)}var YUe={[KUe]:(e,t)=>Z_(hg(e,t)),[xue]:(e,t)=>!Z_(hg(e,t)),[yue]:(e,t)=>Vp(hg(e,t)).desktop,[vue]:(e,t)=>Vp(hg(e,t)).phone};function mue(e){return{all:[{not:{context:xue,is:!0}},{any:[U4,{field:e,set:!0}]}]}}var fg={not:{context:yue,is:!0}},qw={not:{context:vue,is:!0}},kue="sharedRowsDraws",jUe={[kue]:(e,t)=>J_(hg(e,t))&&jw(t.appState,e.props?.id)?.row===void 0},W1={not:{context:kue,is:!0}},qUe={any:[fg,qw]},hH=pK,XUe={not:{context:pH,is:!0}},Sue="rowHanded",ZUe={not:{context:Sue,is:!0}},JUe={[Sue]:(e,t)=>{let o=jw(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},uue={all:[mg,hH,fg,qw,XUe]},QUe={field:"direction",is:"row"},eGe={field:"align",in:["start","center","end"]},tGe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function oGe(){let{darken:e,darkenStyle:t}=Yw();return{...Hc("darken",e,Bc),...Hc("darkenStyle",t,Bc)}}var Tue={not:{all:[gg,{field:ua("columns"),in:Array.from({length:pE},(e,t)=>t+cE)}]}};function nGe(){let e=ae(gue,!1,nr(hue,{})),t=o=>{let n=k3(o);return n===void 0?void 0:n==="wrap"};return{...Th(),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 rGe(){let e=ae(gue,!0,nr(hue,{})),t=o=>{let n=k3(o);return n===void 0?void 0:n==="wrap"};return{...Th(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!AK(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var Eue={hint:$m},Pue={all:[hH,{any:[$Ue,{all:[gg,Tue,{not:{all:[wue,{field:ua("share"),set:!0}]}}]}]}]},aGe=lt(vd("desktop",le("Narrows below",nr(fue,{}),wh.min,wh.max,wh.step,$m,{kind:"breakpoint"},{clear:Eue,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),Pue);function iGe(e,t){let o=e;return!(xh in o)||t.direction!=="column"?e:{...o,[xh]:aGe}}var Cue={fields:Be({_gContent:pg("Content"),rowTitle:HR.rowTitle,content:HR.content,_gCardDisplay:pg("Display"),cardDisplay:PC("desktop"),cardDisplayTablet:PC("tablet"),cardDisplayPhone:PC("mobile"),showFor:oue(),_gLayout:pg("Layout"),direction:xC("Flex"),tabShape:yo("Tab shape",nr(iue,{}),NR.map(e=>({label:RR[e],value:e,picture:JQ[e]})),"tabs",{columns:2,cell:br}),mirrorCards:Zme(),[xh]:vd("desktop",le("Stacks below",nr(fue,{}),wh.min,wh.max,wh.step,$m,{kind:"breakpoint"},{clear:Eue,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[F2]:Eme(),startsOpen:vd("desktop",ae("Starts open",!1,nr(RUe,{}))),[B1]:vd("desktop",yo("Row style",nr(aue,{}),Rme.map(e=>({...e,picture:e.value==="numbered"?nr(aue,{}):nr(IUe,{})})),"plain",{columns:2})),label:Xo(Q("Tab name")),...ci("Flex"),...Hc("justify",eC(),Bc),...Hc("align",tC(),Bc),...(()=>{let e=Hc("wrap",Th(),Bc,{phoneRow:rGe()}),t=Hc("wrap",Th(),Bc,{phoneRow:nGe()});return{wrap:t.wrap,[ua("wrap")]:t[ua("wrap")],[vr("wrap")]:e[vr("wrap")]}})(),[vr("order")]:Bme(),...Hc("boxShape",vw("Box shape",nr(rue,{}),M0(Fc),"shape","auto"),Bc,{phoneRow:vw("Box shape",nr(rue,{}),M0(Fc),"shape","auto",{phoneRest:e=>F1(e)})}),[tE]:vd("desktop",oQ(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:LR(nr(AUe,{size:18}),"none"),[X0]:vd("desktop",yo("Card style",nr(iue,{}),Fq.map(e=>({...e,picture:eee[e.value]})),"table",{columns:2,cell:br})),share:vd("desktop",hee()),[ua("share")]:wee(),[vr("share")]:bee(),[$p]:vd("desktop",fe(S6,nr(sue,{}),[...Sie],zv)),[vr($p)]:vd("mobile",fe(S6,nr(sue,{}),[...Tie],zv)),...xee(),...Hc("blockSpacing",gee(),Bc),line:ae("Line",!1,nr(LUe,{}),"A line across the blocks, with a dot on each."),upcoming:ae("Upcoming",!1,nr(NUe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:fe("Join",nr(OUe,{}),mP,pP),_gShadow:pg("Shadow"),...Hc("shadow",ae("Shadow",!1,nr(FUe,{})),Bc),...Hc("fillColor",kee(),Bc),[Ia]:Gr("Fill content","colour"),[YE]:_Ue("fillColor"),_gBackground:pg("Background image"),bgImage:vd("desktop",ot("Image","image/*")),bgImagePhone:vd("mobile",ot("Image","image/*")),[Xn]:Gr("Image content","image",{content:!0}),...oGe(),placement:ad("Content position"),_gLink:pg("Link"),link:Xu(qe("Link to")),[Yo]:Ic(),_gJump:pg("Anchor"),jumpHighlight:ae("Highlight when a link jumps here",!1,nr(BUe,{}),"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"],lue],[[vr("share")],{all:[due,qw]}],[[$p],mue($p)],[[vr($p)],mue(vr($p))],[[vr("wrap")],{all:[due,ug,qw,W1]}],[[vr("order")],{all:[gg,qw,fg]}],[["phoneRow"],qw],[[B1],{all:[cue,{not:{field:B1,is:"chevron"}}]}],[["tabShape"],HUe],[["rowTitle","startsOpen"],UUe],[["align","blockSpacing",ua("blockSpacing"),vr("blockSpacing")],mg],[[ua("justify"),vr("justify")],{all:[ug,uue,W1]}],[[ua("align"),vr("align")],{all:[QUe,eGe,uue]}],[[ua("wrap")],{all:[ug,uH,Tue,fg,mg,W1]}],[[ua("shadow"),vr("shadow")],hH],[[ua("darken"),vr("darken"),ua("darkenStyle"),vr("darkenStyle")],{all:[lue,tGe]}],[["separator"],fH],[[X0],{field:X0,set:!0}],[["columns"],{any:[gg,cue]}],[[ua("columns")],gg],[[xh],Pue],[[ua("gap")],{all:[VUe,pue]}],[["gap",vr("gap")],pue],[["justify"],{all:[ug,qUe,mg,W1]}],[["wrap"],{all:[ug,uH,fg,mg,W1]}],[["share"],{all:[uH,fg,mg]}],[[ua("share")],{all:[wue,fg]}],[["line"],DUe],[["upcoming"],WUe],[["jumpHighlight"],MUe],[["boxShape",ua("boxShape"),vr("boxShape")],zUe],[["direction","share",vr("order")],ZUe],[["join"],v4],[[F2],v4]]),resolveData:(e,t)=>{let o=e.props,n=o[X0];return t.changed?.[X0]===!0&&Bq(n)?{...e,props:Hq(o,n,we,Re)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:_me(o)}:e},resolveFields:(e,t)=>{let o=ed(t.appState,e.props?.id)?.inCopy===!0,n=o&&bE(t.appState,e.props?.id)===null;return iGe(dGe(cGe(nue(pGe(e,{...t,fields:Ua(t.fields,e,t)}),e.props),hg(e,t),o),n),e.props)},showWhenFacts:{...Wa,...Bee,...Xme,...JUe,...YUe,...jUe,...tue,...GUe}},sGe=lt(Aee,U4),lGe=["darken","darkenStyle",oE,dh];function dGe(e,t){if(!t)return e;let o={...e};for(let n of lGe){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function cGe(e,t,o=!1){let n=e;return lh in n&&ps(t)&&o?{...n,[lh]:lt(Lee,Fee)}:!(lh in n)||ps(t)?e:{...n,[lh]:sGe}}function pGe(...[e,t]){let{fields:o}=t;{if(ps(hg(e,t))){let n=Ap({fallback:{top:Oi.desktop,bottom:Oi.desktop,left:Oi.side,right:Oi.side},tablet:!0,siteSide:!0});return dv(o,n)}return e.props.padV2!==!0?dv(o,Ap({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as U1}from"react/jsx-runtime";var mGe=/^https?:\/\//i;function _ue(e){let t=(e.href??"").trim(),o=(e.linkLabel??"").trim();return{role:e.role??"",city:e.city??"",country:e.country??"",address:e.address??"",hq:e.hq==="true",lat:n4(e.lat),lng:n4(e.lng),...t&&o&&mGe.test(t)?{href:t,linkLabel:o}:{}}}function gH(e){let t=o=>typeof o=="string"?o:"";return{badge:e.hq?"HQ":"",role:t(e.role),city:t(e.city),country:t(e.country),address:t(e.address),phone:t(e.phone),...e.href&&e.linkLabel?{href:e.href,linkLabel:e.linkLabel}:{}}}function Rue(e){return[e.city,e.country,e.address,e.role].map(t=>typeof t=="string"?t.replace(/[=*]/g,"").trim():"").filter(Boolean).join(" ")}var Xw={sectionNumber:"",heading:"",tagline:"",mapTheme:"auto"};function Nue(e){let t=[];return e.forEach((o,n)=>{rc(o.lat,o.lng)&&t.push({key:String(n),label:o.city||o.role||"Office",lat:o.lat,lng:o.lng,glyph:"",tone:"",...o.hq?{badge:"HQ"}:{}})}),t}import{HeadquartersIcon as gGe,LayoutIcon as bGe,LocationIcon as wGe,SearchIcon as xGe,ThemeIcon as yGe}from"efficient-easel/icons";import{group as xH}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as UR}from"efficient-easel/screen/lib/document/device-fields";import{createContext as uGe,useContext as fGe}from"react";var Oue=uGe(null),X7t=Oue.Provider,Aue=()=>fGe(Oue),WR=fE;function Lue(e){let t=[];for(let o of e)o.placement!=="located"&&o.placement!=="approximate"||o.lat===null||o.lng===null||t.push({key:o.id,label:o.name,lat:o.lat,lng:o.lng,glyph:"",tone:"",approximate:o.placement==="approximate"});return t}function hGe(e){return e===null||!Number.isFinite(e)?"":e<10?`${e.toFixed(1)} km`:`${Math.round(e)} km`}function Iue(e,t){let o=[e.city,[e.state,e.postcode].filter(Boolean).join(" ")].filter(Boolean).join(" ");return{name:e.name,address:e.address,place:o,distance:t?hGe(e.distanceKm):"",phone:e.phone,phoneHref:e.phone?`tel:${e.phone.replace(/[^\d+]/g,"")}`:"",website:e.website.replace(/^https?:\/\//,"").replace(/\/$/,""),websiteHref:e.website&&!/^[a-z][a-z\d+.-]*:/i.test(e.website)?`https://${e.website}`:e.website}}var bH=[{key:"name",label:"Dealer name",plain:!0},{key:"address",label:"Address"},{key:"place",label:"City \xB7 state \xB7 postcode",plain:!0},{key:"distance",label:"Distance",plain:!0},{key:"phone",label:"Phone"},{key:"phoneHref",label:"Phone link",kind:"link"},{key:"website",label:"Website",plain:!0},{key:"websiteHref",label:"Website link",kind:"link"}],Fue={key:sh,label:"Dealers",blocks:["Footprint"],fields:bH};function Bue(e){return[e.name,e.city].filter(Boolean).join(", ")}var Qu={sectionNumber:W.sectionNumber,heading:`${W.heading}
15
+ `:""}`}),d]})]})}let h=v=>{!m||!bde(e,!1)||v.target===v.currentTarget&&p()},g=e.height==="full",b=e.fullWidth||g,w=iMe(e),x=GB("div",{ref:c,tabIndex:-1,"data-popup-panel":"",className:"relative flex flex-col bg-bg text-fg outline-none",style:{width:e.fullWidth?"100%":`min(${e.width}px, 100%)`,height:g?"100%":void 0,maxHeight:e.fullWidth&&!g||w.place==="outside"?`calc(100% - ${$B}px)`:"100%",borderRadius:b?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[w.place!=="none"?og("button",{type:"button","aria-label":"Close",onClick:r?void 0:p,"data-popup-close":w.place,"data-popup-close-until":w.until,className:"absolute z-[5] flex h-[38px] w-[38px] items-center justify-center border border-line bg-bg font-mono text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:w.place==="outside"?{top:-aMe,right:0}:{top:12,right:12},children:"\xD7"}):null,w.until?og("style",{children:`@container popup-frame (min-width: ${w.until+1}px){[data-popup-close-until="${w.until}"]{display:none}}`}):null,og("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return og("div",{role:a||r?"dialog":"region","aria-modal":m?!0:void 0,"aria-label":s,"data-popup-frame":r?"inline":"live",onClick:h,className:r?"relative flex min-h-[100vh] w-full":"fixed inset-0 z-[90] flex",style:{...rMe[e.placement],background:gde(e.tintColor,e.tintOpacity),padding:b?0:w.place==="outside"&&e.placement.startsWith("top")?`${24+$B}px 24px 24px`:24,...w.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:x})}var lMe=25.4,u1=400,G5=152,dMe=58,wde=G5*Math.cos(dMe*Math.PI/180),cMe=14,pMe=u1/2,mMe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function yde(e){let t=bs(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:mMe}function vde(e){let t=e.rimDiameter*lMe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=G5*(e.sectionWidth/o),r=t/o;return{cy:pMe,rx:wde,ry:G5,cxf:u1/2-n/2-cMe,dx:n,rimRx:wde*r,rimRy:G5*r}}var to=e=>e.toFixed(1);function $5(e,t,o,n=!1){let r=e.cxf+t*e.dx,[a,i]=n?[e.cy+e.ry,e.cy-e.ry]:[e.cy-e.ry,e.cy+e.ry];return`M${to(r)} ${to(a)} A${to(e.rx)} ${to(e.ry)} 0 0 ${o} ${to(r)} ${to(i)}`}function YB(e,t,o){let n=e.cxf+t*e.dx,r=e.cxf+o*e.dx,a=e.cy-e.ry,i=e.cy+e.ry;return`M${to(n)} ${to(a)} L${to(r)} ${to(a)} A${to(e.rx)} ${to(e.ry)} 0 0 1 ${to(r)} ${to(i)} L${to(n)} ${to(i)} A${to(e.rx)} ${to(e.ry)} 0 0 0 ${to(n)} ${to(a)} Z`}function U5(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 kde(e,t,o,n,r){let[a,i]=U5(e,t,n),[s,l]=U5(e,t,r),[d,c]=U5(e,o,r),[p,m]=U5(e,o,n);return`M${to(a)} ${to(i)} A${to(e.rx)} ${to(e.ry)} 0 0 1 ${to(s)} ${to(l)} L${to(d)} ${to(c)} A${to(e.rx)} ${to(e.ry)} 0 0 0 ${to(p)} ${to(m)} L${to(a)} ${to(i)} Z`}var xde=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],uMe={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}}]},fMe=[["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 Sde(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return xde;for(let[o,n]of fMe)if(t.includes(` ${o} `))return uMe[n];return xde}var V5="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as hMe}from"react";function za(e,t=/:/g){let o=hMe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as f1,jsx as qt,jsxs as Cc}from"react/jsx-runtime";var Ts={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},gMe=[.8,.52,.24],Tde=.4,Ede=.88,Pde=.3,Cde=5,_de=.3,Rde=.84,bMe=7,bo=e=>Math.round(e*10)/10;function jB({size:e,type:t,className:o}){let n=za("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=vde(yde(e)),i=YB(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Cc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${u1} ${u1}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[qt("title",{children:s}),Cc("defs",{children:[qt(xMe,{id:r}),qt("clipPath",{id:r.crown,children:qt("path",{d:i})})]}),qt("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})`}),qt(yMe,{g:a,id:r}),qt(vMe,{g:a,id:r}),qt("path",{d:i,fill:`url(#${r.tread})`}),qt("g",{clipPath:`url(#${r.crown})`,children:Sde(t).map(l=>qt(wMe,{g:a,column:l},l.f[0]))}),qt("path",{d:$5(a,0,0,!0),stroke:"currentColor",strokeOpacity:Ts.shoulder,strokeWidth:1.2}),qt("path",{d:$5(a,1,1),stroke:"currentColor",strokeOpacity:Ts.silhouette,strokeWidth:1.4})]})}function wMe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Cc(f1,{children:[qt("path",{d:YB(e,o,n),fill:"currentColor",fillOpacity:Ts.rib}),qt("path",{d:$5(e,o,1),stroke:"currentColor",strokeOpacity:Ts.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 qt(f1,{children:l.map(([d,c])=>qt("path",{d:kde(e,o,n,d,c),fill:"currentColor",fillOpacity:Ts.rib,stroke:"currentColor",strokeOpacity:Ts.grooveWall,strokeWidth:1},d))})}function xMe({id:e}){return Cc(f1,{children:[Cc("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[qt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),qt("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),qt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),qt("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),qt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),Cc("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[qt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),qt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),qt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),Cc("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[qt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),qt("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),qt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),Cc("radialGradient",{id:e.shadow,children:[qt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),qt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function yMe({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 Cc(f1,{children:[qt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx),ry:bo(e.ry),fill:`url(#${t.wall})`}),gMe.map((a,i)=>{let s=n(a);return qt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*s),ry:bo(e.ry*s),stroke:"currentColor",strokeOpacity:Ts.relief[i],strokeWidth:1},a)}),qt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rx*n(Tde)),ry:bo(e.ry*n(Tde)),stroke:"currentColor",strokeOpacity:Ts.lettering,strokeWidth:bo(r)})]})}function vMe({g:e,id:t}){let o=Array.from({length:Cde},(n,r)=>{let a=(r*(360/Cde)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*_de*Math.cos(a),y1:e.cy+e.rimRy*_de*Math.sin(a),x2:e.cxf+e.rimRx*Rde*Math.cos(a),y2:e.cy+e.rimRy*Rde*Math.sin(a)}});return Cc(f1,{children:[qt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx),ry:bo(e.rimRy),fill:`url(#${t.rim})`}),qt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Ede),ry:bo(e.rimRy*Ede),fill:"currentColor",fillOpacity:Ts.dishFill,stroke:"currentColor",strokeOpacity:Ts.dishEdge,strokeWidth:1}),o.map((n,r)=>qt("line",{x1:bo(n.x1),y1:bo(n.y1),x2:bo(n.x2),y2:bo(n.y2),stroke:"currentColor",strokeOpacity:Ts.spoke,strokeWidth:bMe,strokeLinecap:"round"},r)),qt("ellipse",{cx:bo(e.cxf),cy:bo(e.cy),rx:bo(e.rimRx*Pde),ry:bo(e.rimRy*Pde),fill:"currentColor",fillOpacity:Ts.hubFill,stroke:"currentColor",strokeOpacity:Ts.hubEdge,strokeWidth:1})]})}import{jsx as qB}from"react/jsx-runtime";function Qp({image:e,size:t,type:o,sizes:n,priority:r=!1,className:a="aspect-square",showBackground:i=!0}){return qB("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:qB(io,{label:t||"Tyre",src:nd(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:qB(jB,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as h1}from"react/jsx-runtime";function kMe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function XB({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??rne;return h1("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:W5(e)?h1(Qp,{image:o?.coverImage,size:e.size,type:kMe(o),sizes:"96px",className:"h-full w-full"}):a?.src?h1(al,{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?h1("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:h1(Ah,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as ZB,jsxs as TMe}from"react/jsx-runtime";var Nde={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function Ode(e,t){return Math.min(aF,Math.max(1,e+t))}var Ade="disabled:cursor-not-allowed disabled:opacity-40",SMe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${Nde.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${Ade}`,value:`w-11 text-center font-mono ${Nde.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 ${Ade}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function g1({value:e,onChange:t,size:o}){let n=SMe[o];return TMe("div",{className:n.frame,children:[ZB("button",{type:"button",onClick:()=>t(Ode(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),ZB("span",{className:n.value,children:e}),ZB("button",{type:"button",onClick:()=>t(Ode(e,1)),disabled:e>=aF,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as _c,jsx as Ke,jsxs as oo}from"react/jsx-runtime";function Lde({content:e,closeRef:t}){let{close:o,items:n}=er(),r=t;return oo("header",{className:"flex flex-shrink-0 flex-col gap-4 border-b border-line px-8 pb-6 pt-8 max-[640px]:px-6 max-[640px]:pt-6 max-[640px]:pb-5",children:[oo("div",{className:"flex items-center justify-between",children:[oo("span",{className:"flex items-center gap-3 font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[e.kickerBadge?Ke("span",{className:"border px-2 py-1 text-[10px]",style:{background:"color-mix(in oklab, var(--accent) 12%, transparent)",borderColor:"color-mix(in oklab, var(--accent) 50%, transparent)"},children:e.kickerBadge}):null,(e.kickerBadge?"\xB7 ":"")+e.kickerText]}),Ke("button",{ref:r,type:"button",onClick:o,"aria-label":"Close cart",className:"flex h-8 w-8 items-center justify-center border border-line text-[14px] text-fg-dim transition-colors hover:border-accent hover:text-accent",children:"\u2715"})]}),oo("h1",{className:"font-display text-[38px] font-medium uppercase leading-[0.95] tracking-[-0.03em] max-[640px]:text-[30px]",children:[e.titleLead+" ",Ke("em",{className:"font-serif font-normal italic text-accent tracking-[-0.02em] normal-case",children:e.titleAccent})]}),Ke("p",{className:"font-serif text-[13px] italic leading-[1.5] text-fg-dim",children:CQ(e,n.length)})]})}function Ide({content:e}){let{totals:t}=er(),{activeCountry:o}=Rt(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ke(_c,{children:oo("div",{className:`grid flex-shrink-0 ${EMe[r-1]} gap-px border-b border-line bg-line`,children:[Ke(JB,{label:"Items",value:oo(_c,{children:[Ke("em",{className:"font-serif font-normal italic text-accent",children:t.sets})," set",t.sets===1?"":"s"," \xB7 ",t.units," item",t.units===1?"":"s"]})}),e.leadTimeValue?Ke(JB,{label:"Lead time",value:e.leadTimeValue}):null,n?Ke(JB,{label:"Ships to",value:n}):null]})})}function Fde({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=er();return Ke(_c,{children:o.length===0?Ke(NMe,{content:e}):o.map(a=>Ke(PMe,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function Bde(){let{items:e,totals:t,bundles:o}=er(),{formatMoney:n}=Rt(),r=new Set(e.flatMap(s=>(s.components??[]).map(l=>l.partNumber))),a=new Set(t.appliedBundles.map(s=>s.slug)),i=o.filter(s=>!a.has(s.slug)).filter(s=>s.components.some(l=>r.has(l.partNumber))).slice(0,2);return Ke(_c,{children:i.length>0&&oo("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",style:{background:"color-mix(in oklab, var(--site-surface) 60%, transparent)"},children:[oo("div",{className:"mb-4 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:[Ke("span",{children:"You may also need"}),Ke("span",{className:"font-display text-[11px] normal-case tracking-[0.08em] text-fg-dim",children:"Buy together, save"})]}),Ke("div",{className:"grid grid-cols-2 gap-2 max-[640px]:grid-cols-1",children:i.map(s=>Ke(CMe,{href:`/bundles/${s.slug}`,title:s.name,sub:_Me(s,t.currency,n)},s.slug))})]})})}function Hde(){return Ke(_c,{children:Ke("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ke(sne,{})})})}function Dde({content:e}){return Ke(_c,{children:e.promises.length>0&&Ke("div",{className:"flex flex-wrap justify-center gap-5 border-b border-line px-8 pt-6 pb-8 font-mono text-[9px] uppercase tracking-[0.24em] text-fg-dim max-[640px]:px-6",children:e.promises.map(t=>Ke(RMe,{children:t},t))})})}function Mde(){let{totals:e,coupon:t}=er(),{formatMoney:o}=Rt();return Ke(_c,{children:oo("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ke(zu,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ke(zu,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:oo("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),e.discount>0&&t?.valid&&Ke(zu,{label:`Coupon \xB7 ${t.code}`,value:oo("span",{style:{color:"var(--green)"},children:["\u2212 ",o(e.discount,e.currency)]})}),t?.deferred&&Ke(zu,{label:`Coupon \xB7 ${t.code}`,value:Moe}),t?.valid&&t.effects?.gift&&Ke(zu,{label:`Free gift \xB7 ${t.effects.gift.partNumber}${t.effects.gift.quantity>1?` \xD7${t.effects.gift.quantity}`:""}`,value:Ke("span",{style:{color:"var(--green)"},children:Oh})}),Ke(zu,{label:"Shipping",value:e.shippingStatus==="free"?Ke("span",{style:{color:"var(--green)"},children:Oh}):tne(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ke(zu,{label:e.tax.inclusive?`${e.tax.name} included \xB7 ${e.tax.rate}%`:e.tax.name,value:o(e.tax.amount,e.currency)}):e.tax.name?Ke(zu,{label:e.tax.name,value:ene}):null),oo("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[oo("span",{className:"font-display text-[22px] font-medium tracking-[-0.02em] normal-case",children:["Total ",Ke("em",{className:"font-serif font-normal italic text-accent",children:"due"})]}),Ke("span",{className:"text-right font-display text-[30px] font-medium tracking-[-0.025em] text-fg",children:e.repricing?joe:o(e.grand,e.currency)})]})]})})}function zde(){let{items:e,close:t}=er();return Ke(_c,{children:oo("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[oo(Ie,{href:"/checkout",onClick:t,"aria-disabled":e.length===0,className:["group flex items-center justify-between border px-5 py-5 font-mono text-[12px] uppercase tracking-[0.3em] transition-colors",e.length===0?"pointer-events-none cursor-not-allowed border-line bg-surface text-fg-dim":"border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg"].join(" "),children:["Begin checkout",Ke("span",{className:"transition-transform group-hover:translate-x-1",children:"\u2192"})]}),Ke("div",{className:"flex items-center justify-between px-1 py-2 font-mono text-[10px] uppercase tracking-[0.24em] text-fg-dim",children:Ke(Ie,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var EMe=["grid-cols-1","grid-cols-2","grid-cols-3"];function JB({label:e,value:t}){return oo("div",{className:"flex flex-col gap-1 bg-bg px-4 py-4",children:[Ke("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-fg-dim",children:e}),Ke("span",{className:"font-display text-[14px] font-medium tracking-[-0.005em] text-fg",children:t})]})}function PMe({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=er(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=Rt();return oo(_c,{children:[oo("article",{className:"grid grid-cols-[96px_1fr] gap-5 border-b border-line px-8 py-6 transition-colors hover:bg-[color-mix(in_oklab,var(--site-surface)_60%,transparent)] max-[640px]:grid-cols-[78px_1fr] max-[640px]:px-6 max-[640px]:py-5",children:[Ke(XB,{line:e,catalog:r,tyre:t}),oo("div",{className:"flex min-w-0 flex-col gap-2",children:[oo("div",{className:"flex items-start justify-between gap-3",children:[oo("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?oo(_c,{children:["FusionForge",Ke(gP,{})]}):e.process]}),Ke("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:lF(e,s)===null?du:l(lF(e,s),s)})]}),oo("h3",{className:"mt-0.5 font-display text-[22px] font-medium uppercase leading-none tracking-[-0.02em]",children:[e.name.lead,Ke("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em] normal-case",children:e.name.accent})]}),e.config.length>0&&oo("div",{className:"mt-1 flex flex-wrap gap-2",children:[e.config.map(d=>Ke("span",{className:["border px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em]",d.gold?"border-[color-mix(in_oklab,var(--accent)_45%,var(--site-line))] text-accent":"border-line text-fg-dim"].join(" "),children:d.label},d.label)),i>0&&oo("span",{className:"border border-accent bg-accent px-2 py-1 font-mono text-[9px] uppercase tracking-[0.18em] text-bg",children:[i,"\xD7 free"]})]}),oo("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ke(g1,{value:e.qty,onChange:n,size:"small"}),oo("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[Ke(Ie,{href:e.href??`/wheels/${e.slug}`,className:"text-fg-dim transition-colors hover:text-accent",children:e.href?"View product":"Edit finish"}),Ke("button",{type:"button",onClick:o,className:"text-fg-dim transition-colors hover:text-alert",children:"Remove"})]})]})]})]}),e.verifiedFor&&oo("div",{className:"mx-8 -mt-px flex items-start gap-3 border-t-0 px-4 py-4 font-display text-[13px] leading-[1.45] text-fg max-[640px]:mx-6",style:{background:"color-mix(in oklab, var(--accent) 8%, transparent)",border:"1px solid color-mix(in oklab, var(--accent) 35%, var(--site-line))",borderTop:"0"},children:[Ke("span",{className:"flex-shrink-0 pt-px font-mono text-[10px] uppercase tracking-[0.24em] text-accent",children:"Fits"}),oo("span",{children:["Verified for your ",Ke("strong",{className:"font-medium text-accent",children:e.verifiedFor}),". Final torque values shipped with the wheels."]})]})]})}function CMe({title:e,sub:t,href:o}){return oo(Ie,{href:o,className:"flex items-center justify-between border border-line bg-bg px-4 py-3 text-left transition-colors hover:border-accent",children:[oo("span",{className:"flex min-w-0 flex-col gap-1",children:[Ke("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-display text-[13px] font-medium tracking-[-0.005em] text-fg",children:e}),Ke("span",{className:"font-mono text-[9px] uppercase tracking-[0.22em] text-fg-dim",children:t})]}),Ke("span",{className:"ml-2 flex h-6 w-6 flex-shrink-0 items-center justify-center font-mono text-[13px] text-accent",style:{borderColor:"color-mix(in oklab, var(--accent) 45%, var(--site-line))",borderWidth:1,borderStyle:"solid"},children:"+"})]})}function _Me(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 RMe({children:e}){return Ke("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function zu({label:e,value:t}){return oo("div",{className:"flex items-center justify-between font-mono text-[11px] uppercase tracking-[0.18em] text-fg-dim",children:[Ke("span",{children:e}),Ke("strong",{className:"font-display text-[14px] font-normal tracking-[-0.005em] normal-case text-fg",children:t})]})}function NMe({content:e}){return oo("div",{className:"flex flex-col items-center justify-center gap-3 px-8 py-20 text-center",children:[Ke("span",{className:"font-mono text-[10px] uppercase tracking-[0.3em] text-accent",children:e.emptyKicker}),Ke("p",{className:"font-serif text-[16px] italic leading-[1.5] text-fg-dim",children:e.emptyBody}),oo(Ie,{href:"/wheels",className:"mt-3 inline-flex items-center gap-3 border border-line px-5 py-3 font-mono text-[11px] uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent",children:["Browse the catalog ",Ke("span",{className:"text-accent",children:"\u2192"})]})]})}import{jsx as Wu,jsxs as Wde}from"react/jsx-runtime";var LMe=ru(void 0);function b1({content:e=lC,look:t=LMe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=er(),s=AMe(null),l=hde(a.filter(W5).map(d=>d.slug));return OMe(()=>{i(t.autoOpen)},[t.autoOpen,i]),Wde(Ki,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:"Your cart",children:[Wu(Lde,{content:e,closeRef:s}),Wu(Ide,{content:e}),Wde("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[Wu(Fde,{content:e,tyres:l}),Wu(Bde,{}),Wu(Hde,{}),Wu(Dde,{content:e})]}),Wu(Mde,{}),Wu(zde,{})]})}import IMe from"efficient-easel/screen/components/UiIcon";import{Fragment as BMe,jsx as ng,jsxs as K5}from"react/jsx-runtime";var FMe=ew(()=>import("./chunks/EditorPreviewCheckout-XK73KDIQ.js"),{ssr:!1});function QB(){let{chromePlaceholder:e,themeFromDocument:t}=$n(),{surface:o}=ete();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?K5(BMe,{children:[ng(FMe,{}),ng(Ude,{surface:o})]}):ng(pu,{children:K5(Db,{preview:!0,children:[ng(b1,{}),ng(Ude,{surface:o})]})})}function Ude({surface:e}){let{label:t,href:o}=Ele(e);return K5("div",{className:"rounded-full py-1 pr-2 pl-3",style:{position:"fixed",bottom:14,left:"50%",transform:"translateX(-50%)",zIndex:2147483e3,display:"flex",alignItems:"center",gap:8,maxWidth:"calc(100% - 24px)",fontSize:12,fontWeight:600,fontFamily:"system-ui, sans-serif",color:"#334155",background:"rgba(255,255,255,0.94)",border:"1px solid rgba(15,23,42,0.12)",boxShadow:"0 6px 24px rgba(15,23,42,0.18)",pointerEvents:"none"},children:[ng("span",{style:{whiteSpace:"nowrap"},children:u("{name} \xB7 preview only",{name:u(t)})}),K5("a",{className:"rounded-(--radius-control) px-3 py-1",href:o,target:"_blank",rel:"noopener noreferrer",style:{pointerEvents:"auto",flex:"none",display:"inline-flex",alignItems:"center",gap:5,color:"#fff",background:"#2563eb",textDecoration:"none"},children:[u("Open live"),ng(IMe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as HMe,CursorClickIcon as DMe,EyeIcon as MMe,FullWidthIcon as zMe,HeightIcon as WMe,OpacityIcon as Vde,PlacementIcon as UMe,WidthIcon as GMe}from"efficient-easel/icons";import{group as Cw}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as $Me}from"efficient-easel/screen/lib/document/device-fields";import{jsx as em}from"react/jsx-runtime";var VMe={label:"Inside",value:"inside"},KMe={label:"None",value:"none"};function e8(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,$Me("desktop",o)]))}function Gde(e,t){return{_gDesign:Cw("Color"),tintColor:sd("Tint color",e),tintOpacity:le("Tint opacity",em(Vde,{}),ov.min,ov.max,5,t,"%")}}function $de(e,t){return{_gBehavior:Cw("Behavior"),outsideClick:ae("Outside click",e,em(DMe,{})),...t}}var YMe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function t8(e){return le("Width",em(GMe,{}),I4.min,I4.max,4,e,"px")}function Kde(e){if(e===nu){let o=ru(void 0);return e8({_gSize:Cw("Width"),width:t8(o.width),_gPosition:Cw("Placement"),placement:fe("Placement",em(UMe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...Gde(o.tintColor,o.tintOpacity),...$de(o.outsideClick,{autoOpen:ae("Auto open",o.autoOpen,em(MMe,{}))})})}let t=ou;return Be(e8({_gSize:Cw("Width"),width:t8(t.width),height:fe("Height",em(WMe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:Cw("Placement"),placement:ad("Placement",{fallback:t.placement}),fullWidth:ae("Full width",t.fullWidth,em(zMe,{})),...Gde(t.tintColor,t.tintOpacity),...$de(t.outsideClick,{closeButton:fe("Close button",em(HMe,{}),[VMe,{label:"Outside",value:"outside"},KMe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],YMe])}function Yde(e,t){return e8({menuPanelWidth:t8(e),menuPanelTintColor:sd("Tint color",ou.tintColor),menuPanelTintOpacity:le("Tint opacity",em(Vde,{}),ov.min,ov.max,5,t,"%")})}import{PictureTiles as jMe}from"efficient-shell/ui";import{SettingsField as qMe}from"efficient-easel/panel";import{GridIcon as XMe}from"efficient-easel/icons";import{jsx as rg}from"react/jsx-runtime";function ZMe({layout:e}){return rg("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?rg("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):rg("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var jde={type:"custom",render:({value:e,onChange:t})=>{let o=dC({layout:e}).layout,n=F4.find(r=>r.value===o);return rg(qMe,{label:u(B4),icon:rg(XMe,{}),value:n?u(n.label):void 0,children:rg(jMe,{className:"sf-gallery-layouts",label:u(B4),value:o,onChange:t,options:F4.map(r=>({value:r.value,label:u(r.label),picture:rg(ZMe,{layout:r.value})}))})})}};import{CategoryIcon as Vyt,CheckIcon as Kyt,ClockIcon as j$,ColumnsIcon as Yyt,DirectionIcon as jyt,EyeIcon as qyt,ListIcon as Xyt,PageIcon as Zyt,PlacementIcon as Jyt,ScrollPointIcon as Qyt,TabsIcon as e2t,TriggerIcon as t2t}from"efficient-easel/icons";import{deviceField as ELe}from"efficient-easel/screen/lib/document/device-fields";import{group as ql,phoneTwinFields as o2t}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as JMe}from"efficient-easel/screen/lib/document/box-fields";function _w(e){let t=JMe(e);return{...t,render:o=>t.render({...o,value:Im(o.value)??o.value})}}import{useContext as e9e,useEffect as Xde,useRef as j5,useState as q5}from"react";import{Button as X5}from"efficient-shell/ui";import{ScreenDocumentContext as t9e}from"efficient-easel/screen/components/ScreenDocumentContext";var w1=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},Y5=null,o8=null,n8=null;function QMe(){Y5=null,o8=null,n8=null}function qde(e=!1){let t=ia(),o=On();return(e||!Y5||o8===null&&t!==null||n8!==o)&&(o8=t,n8=o,Y5=(t?Ae.listForms(t,{siteId:o}):Promise.reject(new w1)).catch(n=>{throw QMe(),n instanceof w1?n:new w1(n)})),Y5}import{useEaselHost as o9e}from"efficient-easel/screen/lib/host";import{InertHint as r8}from"efficient-easel/panel";import{jsx as or,jsxs as Rc}from"react/jsx-runtime";var Zde="__create-a-new-form__";function n9e({value:e,forms:t,loadFailed:o,emptyLabel:n}){let r=t??[],a=e?r.some(p=>p.slug===e):!0,i=t===null&&!o,s={value:"",label:i?u("Loading\u2026"):o?u("Forms couldn\u2019t be loaded"):n===void 0?u("No form yet"):u(n)},l=e&&!a?[{value:e,label:i||o?e:u("{slug} \u2014 no form with this name",{slug:e})}]:[],d=r.map(p=>({value:p.slug,label:p.is_active?p.title:u("{title} (switched off)",{title:p.title})})),c=i?[]:[{value:Zde,label:u("Create a new form")}];return[s,...l,...d,...c]}function r9e(e){return e===Zde?{action:"create"}:{action:"store",slug:e}}function a9e({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 i9e(e){let t=[u("Goes to {place}",{place:u("Storefront \u2192 Forms")})],o=(e.notify_email??"").trim();return o&&t.push(u("Emails a copy to {email}",{email:o})),e.mailing_list_name&&t.push(e.subscribe_mode==="checkbox"?u("Joins the \u201C{audience}\u201D audience, but only when the consent box is ticked",{audience:e.mailing_list_name}):u("Joins the \u201C{audience}\u201D audience",{audience:e.mailing_list_name})),e.kind==="account_signup"&&t.push(e.signup_customer_type==="importer"?u("Creates a wholesale account"):u("Creates a retail account")),t}function a8({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=o9e(),a=e9e(t9e),i=a?a.capabilities.hasForms:!0,[s,l]=q5(null),[d,c]=q5(!1),[p,m]=q5(!1),[f,h]=q5(!1),g=j5(!0),b=j5(e);b.current=e;let w=j5(t);w.current=t;let x=j5(null),v=(P=!1)=>qde(P).then(B=>{if(g.current){l(B),c(!1);let H=a9e({value:b.current,pickedId:x.current,forms:B});H&&w.current(H)}return B},()=>(g.current&&c(!0),[]));Xde(()=>(g.current=!0,i&&v(),()=>{g.current=!1}),[i]),Xde(()=>i?r_(()=>{v(!0)}):void 0,[i]);let S=e?(s??[]).find(P=>P.slug===e)??null:null;S?x.current=S.id:e||(x.current=null);let T=!!e&&!S&&s!==null&&!d,E=n9e({value:e,forms:s,loadFailed:d,emptyLabel:n}),y=async()=>{m(!0),h(!1);try{let P=await Cne(r,{mode:"create"}),B=await v(!0);if(!g.current)return;if(P.status==="timeout"){h(!0);return}if(P.status!=="saved")return;let{form:H}=P;H.slug!==b.current&&w.current(H.slug),B.some(A=>A.id===H.id)||v(!0)}finally{g.current&&m(!1)}},O=P=>{let B=r9e(P);B.action==="create"?y():(h(!1),t(B.slug))};return i?Rc("div",{className:"sf-formpicker",children:[or(gb,{label:o,options:E,fallback:"",value:e??"",onChange:O,placeholder:u("Search forms\u2026")}),f&&or("p",{className:"sf-formsummary-warn",children:u("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),S?Rc("div",{className:"sf-blogsource sf-formsummary",children:[Rc("div",{children:[or("div",{className:"sf-formsummary-caption",children:Zn("{n} field","{n} fields",S.fields.length)}),S.fields.length?or("ol",{className:"sf-formsummary-fields",children:S.fields.map((P,B)=>or("li",{children:P.label},P.key||`${P.label}-${B}`))}):or(r8,{children:u("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),Rc("div",{children:[or("div",{className:"sf-formsummary-caption",children:u("Where the answers go")}),or("ul",{className:"sf-formsummary-fields",children:i9e(S).map(P=>or("li",{children:P},P))})]}),!S.is_active&&or("p",{className:"sf-formsummary-warn",children:u("This form is switched off, so it won\u2019t appear on the published page. Turn it back on in {place}.",{place:u("Storefront \u2192 Forms")})}),Rc("div",{className:"sf-formsummary-actions",children:[or(X5,{variant:"secondary",size:"md",onClick:()=>Pne(r,S.id),children:u("Edit form \u270E")}),or(X5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{y()},children:u("New form +")})]}),or("p",{className:"es-field-hint",children:u("The questions, the button text and the thank-you message all come from {place}. Edit them there \u2014 this section updates to match.",{place:u("Storefront \u2192 Forms")})})]}):Rc("div",{className:"sf-blogsource sf-formsummary",children:[d?Rc(r8,{children:[u("This website\u2019s forms couldn\u2019t be loaded, so there is nothing to choose from yet."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]}):T&&or("p",{className:"sf-formsummary-warn",children:u("This section points at \u201C{slug}\u201D, and this website has no form with that name. Pick one from the list above, or leave it \u2014 nothing has been changed.",{slug:e??""})}),Rc("div",{className:"sf-formsummary-actions",children:[d&&or(X5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{v(!0)},children:u("Try again")}),or(X5,{variant:"secondary",size:"md",disabled:p,onClick:()=>{y()},children:u("New form +")})]}),!d&&or("p",{className:"es-field-hint",children:u("Pick a form to show here, or build a new one. Forms are made once in {place} and can be shown on any number of pages.",{place:u("Storefront \u2192 Forms")})})]})]}):or("div",{className:"sf-formpicker",children:or("div",{className:"sf-blogsource sf-formsummary",children:Rc("div",{children:[or("div",{className:"sf-formsummary-caption",children:u(o)}),Rc(r8,{children:[u("Forms aren\u2019t available in this editor, so there is nothing to choose here."),e?` ${u("This section still points at \u201C{slug}\u201D, and that is unchanged.",{slug:e})}`:""]})]})})})}import{jsx as s9e}from"react/jsx-runtime";function Nc(e,t){return{type:"custom",render:({value:o,onChange:n})=>s9e(a8,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{jsx as s8}from"react/jsx-runtime";import{ListIcon as l9e}from"efficient-easel/icons";import{NoControlMark as d9e,noControlField as c9e}from"efficient-easel/screen/lib/document/panel-no-control-mark";function Xt(e,t){return fe(e,s8(l9e,{}),[{label:t,value:""}],"")}var ag="_sourceEdit";function Rw(){return c9e({type:"custom",render:()=>s8(d9e,{})},"always")}var Jde=new Map,Qde=new WeakMap,ece=(e,t)=>({type:"custom",render:()=>s8(Li,{compact:!0,status:"ok",hint:u("Where this content is edited."),edit:{label:e,onClick:t}})});function p9e(e){if(WV(e)){let n=Qde.get(e.open);n||Qde.set(e.open,n=new Map);let r=n.get(e.label);return r||n.set(e.label,r=ece(e.label,e.open)),r}let t=`${e.label}\0${e.href}`,o=Jde.get(t);return o||(o=ece(e.label,()=>window.open(e.href,"_blank","noopener")),Jde.set(t,o)),o}var tce=new WeakMap,oce=-1,i8={},nce=new WeakMap;function ace(e,t,o){return UV(e).filter(n=>!n.records||n.key===t||o!==null&&n.records.includes(o))}function m9e(e,t,o,n){oce!==Lm()&&(oce=Lm(),i8={});let r=tce.get(t);(!r||nce.get(r)!==i8)&&(r=new Map,nce.set(r,i8),tce.set(t,r));let a=ace(e,o,n),i=o&&!a.some(d=>d.key===o)?o:"",s=`${e}\0${i}\0${n??""}\0${a.map(d=>d.key).join(",")}`,l=r.get(s);return l||(l={...t,options:[...t.options,...a.map(d=>({label:d.label,value:d.key})),...i?[{label:i,value:i}]:[]]},r.set(s,l)),l}var rce=new WeakMap,Sl={not:{field:ds,set:!0}};function Zt(e,t,o,n={}){let r=t[ds];if(!r)return t;let a=pt(o),i=FP(n.root),s=ace(e,a,i).length>0||a!=="",l=s?m9e(e,r,a,i):null,d=rce.get(t);d||rce.set(t,d=new Map);let c=`${Lm()}\0${s?"1":"0"}\0${a}\0${(n.hides??[]).join(",")}\0${i??""}`,p=d.get(c);if(p)return p;let m=new Set(n.hides??[]),f=a?k0(a)?.edit:void 0,h={};for(let[g,b]of Object.entries(t))g===ds?l&&(h[g]=l):g===ag?f&&(h[g]=p9e(f)):h[g]=m.has(g)&&b&&typeof b=="object"?lt(b,Sl):b;return d.set(c,h),h}import{createContext as u9e,useContext as f9e}from"react";import{jsx as Oc,jsxs as l8}from"react/jsx-runtime";function d8(e){return sc(e)??void 0}var c8=u9e({}),ice=3;function p8({tag:e,name:t,desc:o,href:n,imageSrc:r,imageLabel:a,price:i}){let{showPrice:s,cardStyle:l,partStyles:d,editing:c,ownerId:p,Template:m}=f9e(c8),f=l==="bordered"?" border border-line":l==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",h=d8(r),g=Jn();if(m){let x={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:h??"",tag:e??"",href:n||"#"};return g.scope(Oc("div",{className:go(`block w-full min-w-0 ${B0}`,g.className),...g.attrs,children:Oc(Ve,{ownerId:p??"Collections",ownerType:"Collections",Template:m,rows:[x],fallback:null,children:v=>v})}))}let b=x=>c?{[N0]:x}:{},w=x=>uE(d?.[O0(x)]?.role,Rh[x],eE);return g.scope(l8(Ie,{href:n||"#",className:go(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${f}`,g.className),...g.attrs,children:[Oc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${mie}`,children:Oc(io,{label:a||"collection.jpg",src:h})}),Oc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${hie} max-view-wide:hidden`,style:{transition:"none"}}),l8("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&&Oc("span",{...b("tag"),style:w("tag"),className:`font-mono ${Fp.tag} uppercase tracking-[0.25em] opacity-70`,children:L(e)}),t&&Oc("h3",{...b("name"),style:w("name"),className:`font-heading2 ${Fp.name} font-medium leading-none tracking-[-0.03em] ${Fp.namePhone}`,children:typeof t=="string"?ne(t,!1):t}),o&&It(o).map((x,v)=>Oc("p",{...b("body"),style:w("body"),className:`max-w-[420px] ${Fp.body} leading-[1.5] opacity-80`,children:L(x)},v)),s&&i&&Oc("span",{...b("price"),style:w("price"),className:`font-mono ${Fp.price} tracking-[0.05em] text-accent`,children:L(i)}),l8("span",{...b("link"),style:w("link"),className:`mt-2 inline-flex items-center gap-3 font-mono ${Fp.link} uppercase tracking-[0.2em]`,children:["Explore",Oc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as fce,useCallback as O9e,useContext as mce,useEffect as A9e,useRef as L9e,useState as g8}from"react";import{slugify as I9e}from"efficient-shell/format";import{useState as g9e}from"react";import{jsx as m8,Fragment as h9e}from"react/jsx-runtime";function Tl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=yX(e),a=vX(e),i=t?a:r,s=xX(i);return o&&!i?m8("span",{[Ym]:e,children:n}):i?m8("span",{ref:s,[mX]:i.stamp,...i.textStyle?{[uX]:i.textStyle}:{},children:n}):m8(h9e,{children:n})}import{jsx as Yi,jsxs as Nw}from"react/jsx-runtime";var u8=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function f8({build:e,hiddenMobile:t,alwaysShowOverlay:o,forceHover:n,index:r,total:a,ratio:i,captionPlace:s,display:l,displayPhone:d,styleOwner:c,editing:p=!1}){let m=v=>dQ(l,d,v),f=v=>p&&c?{[lX]:c,[dX]:`@${v}`}:{},h=(v,k)=>!p&&c?Yi(Tl,{kind:`@${v}`,shared:!0,children:k}):k,[g,b]=g9e(!1),w=ZY(s),x=Nw("div",{className:["sf-card group relative overflow-hidden bg-surface-2",D0(i),t?"max-view-wide:hidden":""].join(" "),children:[Nw("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:[Yi(io,{label:e.imageLabel,src:e.imageSrc}),!o&&Yi("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),Yi("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&&Yi(al,{src:e.detailSrc,alt:"",fill:!0,sizes:"(max-width: 800px) 100vw, (max-width: 1500px) 33vw, 25vw",loading:"lazy",className:"absolute inset-0 z-[3] object-cover",style:{display:g?"none":"block"},onError:()=>b(!0)})}),(e.process||r!=null&&a!=null)&&Nw("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&&Yi("span",{...f("tag"),className:["min-w-0 truncate font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] text-accent",m("tag"),"transition-opacity duration-300 ease-out",o||n?"opacity-100":"opacity-0 group-hover:opacity-100 max-view-wide:opacity-100"].join(" "),children:h("tag",Po(e.process))}),r!=null&&a!=null&&Yi("span",{...f("number"),className:`ml-auto shrink-0 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.24em] ${m("number")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:h("number",u8(r,a))})]}),Yi("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:Nw("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&&Yi("div",{...f("eyebrow"),className:`truncate font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-accent max-view-wide:text-[length:var(--size-label,11px)] max-view-wide:tracking-[0.15em] ${m("eyebrow")}`.trim(),children:h("eyebrow",e.car)}),e.wheel&&Yi("div",{...f("title"),className:`font-heading3 text-[length:var(--size-headingSmall,22px)] font-medium leading-[1.05] tracking-[-0.02em] max-view-wide:text-[length:var(--size-body,16px)] ${o?"uppercase ":""}${m("title")}`.trim(),children:h("title",e.wheel)}),e.finish&&Yi("div",{...f("meta"),className:`mt-1.5 flex gap-3.5 font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.12em] ${m("meta")}`.trim(),style:{color:"rgba(245,241,232,0.7)"},children:Yi("span",{children:h("meta",Po(e.finish))})})]})})]});return w?Nw("div",{className:t?"max-view-wide:hidden":"",children:[x,Nw("div",{className:"bg-surface px-3.5 pt-3 pb-3.5",children:[e.wheel&&Yi("div",{...f("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${m("title")}`.trim(),children:h("title",e.wheel)}),(e.finish||e.car)&&Yi("div",{...f(e.finish?"meta":"eyebrow"),className:`mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim ${m(e.finish?"meta":"eyebrow")}`.trim(),children:h(e.finish?"meta":"eyebrow",Po(e.finish||e.car))})]})]}):x}import{createContext as b9e,useCallback as w9e,useContext as x9e,useEffect as y9e,useLayoutEffect as v9e,useRef as h8,useState as k9e}from"react";import{createPortal as S9e}from"react-dom";import{Fragment as C9e,jsx as x1,jsxs as _9e}from"react/jsx-runtime";var T9e=".sf-themed-content",sce="sf-section-accent";function E9e(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(sce)&&(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 ${sce}`:"contents",style:o}}function P9e(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 lce=b9e(()=>{});function tm({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=h8(null),l=h8(null),[d,c]=k9e(null);v9e(()=>{if(!e){c(null);return}let h=s.current;if(!h)return;let g=h.closest(T9e)??h.ownerDocument.body;c({host:g,theme:E9e(h,g)})},[e]);let p=h8({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let m=e&&d!==null,f=w9e(()=>p.current.onClose(),[]);return Pc({active:m,onDismiss:f,scopeRef:l}),y9e(()=>{if(!m)return;let h=l.current,g=h?.ownerDocument??document,b=g.activeElement;h?.focus();let w=v=>{if(v.key==="ArrowLeft")p.current.onPrev?.();else if(v.key==="ArrowRight")p.current.onNext?.();else if(v.key==="Tab"&&h){let k=P9e(h);if(k.length===0){v.preventDefault(),h.focus();return}let S=k[0],T=k[k.length-1],E=g.activeElement,y=!!E&&h.contains(E)&&E!==h;if(v.shiftKey&&(!y||E===S))v.preventDefault(),T.focus();else if(!v.shiftKey&&(!y||E===T))v.preventDefault(),S.focus();else{v.preventDefault();let O=k.indexOf(E);k[v.shiftKey?O-1:O+1]?.focus()}}},x=g.defaultView??window;return x.addEventListener("keydown",w),()=>{x.removeEventListener("keydown",w),b&&b.isConnected&&b.focus()}},[m]),e?_9e(C9e,{children:[x1("span",{ref:s,hidden:!0}),d&&S9e(x1("div",{className:d.theme.className,style:d.theme.style,children:x1("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 ${KB[8]} ${a}`,style:{background:VB},children:x1(lce.Provider,{value:t,children:i})})}),d.host)]}):null}var Z5="color-mix(in oklab, var(--bg) 70%, transparent)";function Uu({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=x9e(lce);return x1("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as R9e,useContext as ig}from"react";var y1=R9e(null);function dce(){let e=ig(ev),t=ig(y1),o=AC();return e?e.socialLinks??Xee:t?t.socialLinks:o.links}function Gu(){return ig(y1)?.commerceEnabled??!0}function N9e(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Ow(){return N9e(ig(y1))}function cce(){let e=ig(y1),t=$n();return e?e.showThemeSwitch??Sp:t.themeSwitchShown??Sp}function pce(){let e=ig(ev),t=ig(y1),o=$n();return e?ZC({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?ZC({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):ZC({siteName:o.websiteName?.trim()||au})}import{useBrowserLayoutEffect as F9e}from"efficient-shell/hooks";import{Fragment as Aw,jsx as _o,jsxs as pa}from"react/jsx-runtime";var B9e="(max-width: 1100px) 100vw, min(59vw, 1050px)",v1=fce({}),hce=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],w8=fce(null),$u="data-gallery-grid",b8="data-gallery-tile";function H9e(e,t){let[o,n]=g8(null);return A9e(()=>{let r=e.current,a=r?.closest(`[${$u}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${b8}]`)),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 wd={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},D9e=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),gce=Array.from({length:6},D9e);function M9e(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=I9e(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 sg({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let{galleryHref:i="/gallery",submitHref:s="/contact",previewHover:l,display:d,displayPhone:c,styleOwner:p,photosOnly:m=!1,wordsAtRest:f=!1,Template:h,ownerId:g}=mce(v1),b=M9e(a),x=Gu()&&!m,v=!x&&!z9e(b),k=b.photos??(b.imageSrc?[b.imageSrc]:[]),S=L9e(null),T=O9e(I=>{S.current=I},[]),E=H9e(S,e),y=mce(w8),O=y?.report,P=r?.id,B=r?.tag??"",H=r?.name??"";F9e(()=>{if(!O||!P)return;let I={id:P,tag:B,name:H};return O(I),()=>O(I,!0)},[O,P,B,H]);let A=(P?y?.positionOf(P):null)??E,_=e&&(!!t||!!l),[C,F]=g8(!1),[$,q]=g8(0),G=()=>q(I=>(I-1+k.length)%k.length),K=()=>q(I=>(I+1)%k.length),Y=k[$]??b.imageSrc??"",oe=k.slice(1),j=h?_o("div",{className:`block w-full min-w-0 ${B0}`,children:_o(Ve,{ownerId:g??"GalleryB",ownerType:"GalleryB",Template:h,rows:[{key:P??b.imageSrc??"tile",image:b.imageSrc??"",tag:b.process,number:A?u8(A.index,A.total):"",eyebrow:b.car,name:b.wheel,meta:b.finish,href:b.href??""}],items:[{hoverMedia:oe.length?{photos:[{finish:"",items:oe.map(I=>({url:I,kind:"image"}))}]}:null}],previewHover:_,fallback:null,children:I=>I})}):_o(f8,{build:b,forceHover:_,alwaysShowOverlay:f,index:A?.index,total:A?.total,ratio:o,captionPlace:n,display:d,displayPhone:c,styleOwner:p,editing:e});return pa(Aw,{children:[e?_o(M,{as:"div",ref:T,[b8]:"",className:"block w-full text-left",children:j}):_o(M,{as:"button",ref:T,[b8]:"",type:"button","aria-label":x?`Open ${b.car||"build"} on ${b.wheel||"wheel"}`:uce(b),onClick:()=>{q(0),F(!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:j}),_o(tm,{open:C,onClose:()=>F(!1),label:x?`${b.car} on ${b.wheel}`:uce(b),onPrev:k.length>1?G:void 0,onNext:k.length>1?K:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:pa("div",{onClick:I=>I.stopPropagation(),className:`relative grid w-[min(1800px,100%)] max-h-[calc(100vh-48px)] ${v?"grid-cols-1":"grid-cols-[1.4fr_1fr]"} overflow-hidden border border-line bg-bg max-view-desktop:grid-cols-1 max-view-desktop:overflow-auto`,style:{boxShadow:"0 60px 120px -20px color-mix(in srgb, var(--sf-shadow-color, #141416) 70%, transparent)"},children:[_o(Uu,{label:"Close popup",className:"absolute right-[24px] top-[24px] z-[5] flex h-[56px] w-[56px] items-center justify-center border border-line font-mono text-[length:var(--size-label,21px)] text-fg-dim transition-colors hover:border-accent hover:text-fg",style:{background:Z5},children:"\u2715"}),pa("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[Y&&_o("img",{...Co(Y,{fallbackWidth:1280}),sizes:B9e,alt:`${(x?b.car:b.wheel||b.car)||"Photo"} \u2014 ${$+1} of ${k.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},Y),k.length>1&&pa(Aw,{children:[_o("button",{type:"button","aria-label":"Previous photo",onClick:G,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"}),_o("button",{type:"button","aria-label":"Next photo",onClick:K,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"}),pa("span",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 border border-fg-dim/30 bg-overlay-scrim/50 px-4 py-1.5 font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em] text-fg-dim backdrop-blur-[4px]",children:[$+1," / ",k.length]})]})]}),x?pa("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[b.process&&_o("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:L(b.process)}),b.wheel&&_o("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:ne(b.wheel,!1)}),b.car&&pa("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",_o("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:L(b.car,!0)})]}),pa("dl",{className:"mt-3 grid grid-cols-[auto_1fr] gap-x-7 gap-y-[18px] border-y border-line py-[30px] font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.22em]",children:[b.wheel&&pa(Aw,{children:[_o("dt",{className:"text-fg-dim",children:"Wheel"}),_o("dd",{className:"text-fg",children:L(b.wheel)})]}),b.process&&pa(Aw,{children:[_o("dt",{className:"text-fg-dim",children:"Process"}),_o("dd",{className:"text-fg",children:L(b.process)})]}),b.finish&&pa(Aw,{children:[_o("dt",{className:"text-fg-dim",children:"Finish"}),_o("dd",{className:"text-fg",children:L(b.finish)})]}),b.car&&pa(Aw,{children:[_o("dt",{className:"text-fg-dim",children:"Vehicle"}),_o("dd",{className:"text-fg",children:L(b.car)})]})]}),pa("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[pa(Ie,{href:b.href||"/wheels",onClick:()=>F(!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:[_o("span",{children:"View product"}),_o("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),pa(Ie,{href:i,onClick:()=>F(!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:[_o("span",{children:"See more builds"}),_o("span",{children:"\u2192"})]}),pa(Ie,{href:s,onClick:()=>F(!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:[_o("span",{children:"Submit your build"}),_o("span",{children:"\u2192"})]})]})]}):!v&&_o(W9e,{build:b})]})})]})}function bce(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function z9e(e){return!!e.wheel||bce(e).length>0}function uce(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function W9e({build:e}){let t=e.wheel,o=bce(e);return pa("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&_o("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:ne(t,!1)}),o.map(n=>_o("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:L(n)},n))]})}import{createContext as Y9e,useContext as j9e,useEffect as k1,useId as q9e,useState as yr,useSyncExternalStore as X9e}from"react";var U9e=14,G9e=3;function $9e(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function V9e(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),$9e(o)}async function wce(e,t,o={}){let n=o.days??U9e,r=o.read??Nh.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=V9e(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>=G9e)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as xce,formatDateTime as x8,formatTime as kce}from"efficient-shell/format";var K9e={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},yce={weekday:"long",day:"numeric",month:"long",year:"numeric"},Sce={hour:"numeric",minute:"2-digit"},vce={...Sce,timeZoneName:"short"};function y8(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function v8(e,...t){let o=gl(...t);return!o||!y8(e)?"":kce(e,{locale:Q4(),timeZone:o})}function k8(e,...t){let o=typeof e=="string"?{start:e}:e,n=gl(...t),r=y8(o.start);if(!n||!r)return"";let a=Q4(),i=o.end?y8(o.end):null;if(!i||i.getTime()<=r.getTime())return x8(o.start,{locale:a,timeZone:n,style:K9e,zoneName:"short"});let s=x8(o.start,{locale:a,timeZone:n,style:yce,clock:Sce}),d=xce(o.start,n)===xce(o.end,n)?kce(o.end,{locale:a,timeZone:n,clock:vce}):x8(o.end,{locale:a,timeZone:n,style:yce,clock:vce});return`${s} \u2013 ${d}`}function J5(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as Z9e,userToday as J9e,userZone as Q9e}from"efficient-shell/format";import{jsx as i7e}from"react/jsx-runtime";var Ece=Y9e(null);function Vu(){let e=j9e(Ece);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var S8=[{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:""}],e7e=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function Tce(e,t){return{timezone:"",slots:t?e7e.flatMap(({hour:n,minute:r})=>Z9e(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var T8={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function t7e(e){let t=String(e?.slots[0]?.start??"");return t?{...T8,startAt:t}:T8}function Pce(e){return e.bookingNumber===T8.bookingNumber}function o7e(e,t){return e&&t?.length===0}function n7e(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!J5(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function r7e(){return()=>{}}function a7e(){return null}function Cce({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=q9e(),r=X9e(r7e,J9e,a7e)??"",[a,i]=yr(),[s,l]=yr(""),[d,c]=yr(""),[p,m]=yr(r),[f,h]=yr(r),[g,b]=yr(!1),[w,x]=yr(null),[v,k]=yr(),[S,T]=yr(""),[E,y]=yr(""),[O,P]=yr(""),[B,H]=yr(""),[A,_]=yr(""),[C,F]=yr(()=>pF()),[$,q]=yr(null),[G,K]=yr(!1),[Y,oe]=yr(!1),[j,I]=yr(null),[z,V]=yr("");k1(()=>{V(Q9e()??"")},[]),k1(()=>{let me=!1;return Nh.listServices().then(it=>{if(me)return;let ue=MC(it);i(ue),l(it.currency),c(kt=>kt||ue[0]?.id||"")}).catch(()=>{me||i([])}),()=>{me=!0}},[]),k1(()=>{r&&(m(me=>me||r),h(me=>me||r))},[r]),k1(()=>{if(g||!d||!r)return;let me={aborted:!1};return T(""),k(void 0),I(null),x(null),K(!0),wce(d,r,{signal:me}).then(it=>{if(!me.aborted){if(it.outcome==="found"){m(it.date),h(it.date),k(it.availability);return}x(it.outcome==="noneInWindow"?`No times are available in the next ${it.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{me.aborted||K(!1)}),()=>{me.aborted=!0}},[g,d,r]),k1(()=>{if(!g||!d||!p)return;let me=!1;return T(""),k(void 0),I(null),x(null),K(!0),Nh.getAvailability(d,p).then(it=>{me||(k(it),it.slots.length===0&&x("No times are available on this date."))}).catch(()=>{me||x("We couldn't load available times. Please try again.")}).finally(()=>{me||K(!1)}),()=>{me=!0}},[p,g,d]);let te=a?.find(me=>me.id===d),X=te?.depositAmountDue!=null,ee=n7e({editing:e,submitting:Y,hasService:!!te,hasDay:!!p,selectedStart:S,name:E,email:O,requiresPayment:X},Date.now());async function ke(me){if(me.preventDefault(),!(!ee||!te)){oe(!0),I(null);try{let it=await Nh.create({serviceId:te.id,start:S,customer:{name:E.trim(),email:O.trim(),phone:B.trim()},notes:A.trim(),idempotencyKey:C,customerTimezone:z});q(it),F(pF())}catch(it){I(it instanceof An&&it.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),it instanceof An&&it.status===409&&(T(""),Nh.getAvailability(te.id,p).then(k).catch(()=>{}))}finally{oe(!1)}}}let ce=o7e(e,a),Ye=ce?Tce(p,z):void 0,Ne=t&&!$?t7e(Ye??Tce(p,z)):null;return i7e(Ece.Provider,{value:{fieldPrefix:n,editing:e,services:ce?S8:a,currency:ce?"AUD":s,serviceId:ce?S8[0].id:d,setServiceId:c,service:ce?S8[0]:te,requiresPayment:ce?!1:X,date:p,earliestDate:f,setDate:m,setDateTouched:b,availability:Ye??v,loadingSlots:ce?!1:G,noSlotsMessage:w,selectedStart:Ye?Ye.slots[0]?.start??"":S,setSelectedStart:T,customerTimezone:z,name:E,setName:y,email:O,setEmail:P,phone:B,setPhone:H,notes:A,setNotes:_,confirmation:$??Ne,submitting:Y,error:j,canSubmit:ce?!1:ee,handleSubmit:ke,sample:!!ce},children:o})}import{jsx as Q5,Fragment as _ce,jsxs as Rce}from"react/jsx-runtime";var Nce=`sf-button group inline-flex items-center justify-center gap-2.5 border ${MQ} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,Oce={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 ma(e){let{variant:t="primary",arrow:o,glyphBefore:n,spread:r,className:a,style:i,children:s,href:l,newTab:d,hrefRewrite:c,...p}=e,m=`${r?Nce.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):Nce} ${Oce[t]??Oce.primary} ${a??""}`,f=n?Rce(_ce,{children:[o!==null&&Q5("span",{"aria-hidden":!0,className:"inline-flex",children:o??"\u2192"}),s]}):Rce(_ce,{children:[s,o!==null&&Q5("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",children:o??"\u2192"})]});return l?Q5(_t,{href:l,className:m,style:i,newTab:d?!0:"auto",...c?{hrefRewrite:c}:{},children:f}):Q5("button",{type:"button",className:m,style:i,...p,children:f})}import{jsx as s7e}from"react/jsx-runtime";var S1=e=>s7e("div",{className:"grid bg-bg",children:e});import{jsx as lo,jsxs as xd}from"react/jsx-runtime";var T1="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 l7e(e,t){let o=Number(e);if(o===0)return Oh;try{return Voe(o,t)}catch{return`${t} ${e}`}}var Ace={selected:!0};function Lce(e,t){return({index:o})=>t?{[uP]:fP(e,o)}:{}}var E1="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function E8({number:e,children:t}){return xd("div",{className:"mb-4 flex items-center gap-3",children:[lo("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}),lo("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 eR({eyebrow:e,heading:t,intro:o}){return xd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&lo("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&lo("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()&&lo("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function tR({style:e,owner:t}){let{fieldPrefix:o,services:n,currency:r,serviceId:a,setServiceId:i,requiresPayment:s,date:l,earliestDate:d,setDate:c,setDateTouched:p,availability:m,loadingSlots:f,noSlotsMessage:h,selectedStart:g,setSelectedStart:b,customerTimezone:w,editing:x}=Vu();if(!n)return null;let v=Date.now(),k=gl(w,m?.timezone??""),S=gl(m?.timezone??""),T=S&&S!==k?S:"",E=(m?.slots??[]).map(y=>({start:y.start,time:v8(y.start,k),businessTime:T?`${v8(y.start,T)} business`:"",passed:!x&&J5(y.start,v)}));return xd(M,{className:"flex flex-col gap-10",style:e,children:[xd("div",{children:[lo(E8,{number:"01",children:"Choose a service"}),lo("div",{className:"grid gap-3 sm:grid-cols-2",children:lo(Ve,{ownerId:t.id,ownerType:t.type,slot:jh,Template:t.serviceTemplate,rows:n.map(y=>({name:y.name,meta:`${y.durationMinutes} min \xB7 ${l7e(y.price,r)}`,description:y.description??""})),states:n.map(y=>y.id===a?Ace:void 0),actions:x?void 0:n.map(y=>({press:()=>i(y.id),label:y.name})),copyAttrs:Lce(jh,x),fallback:null,wrapCopy:S1,children:y=>lo(Fo,{children:y})})}),s&&lo("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."})]}),xd("div",{children:[lo(E8,{number:"02",children:"Choose a date and time"}),lo(Dr,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:E1,children:lo("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:y=>{p(!0),c(y.target.value)},className:T1,required:!0})}),lo("div",{className:"mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 min-[1200px]:grid-cols-4",role:"group","aria-label":"Available appointment times",children:f?lo("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",children:"Loading times\u2026"}):m?.slots.length?lo(Ve,{ownerId:t.id,ownerType:t.type,slot:qh,Template:t.timeTemplate,rows:E.map(y=>({time:y.time,businessTime:y.businessTime})),states:E.map(y=>y.start===g&&!y.passed?Ace:void 0),actions:x?void 0:E.map(y=>({press:()=>b(y.start),label:y.time,disabled:y.passed})),copyAttrs:Lce(qh,x),fallback:null,wrapCopy:S1,children:y=>lo(Fo,{children:y})}):h?lo("p",{className:"col-span-full py-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.18em] text-fg-dim",role:"status",children:h}):null}),k&&!f&&!!m?.slots.length&&xd("p",{className:"mt-3 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,10px)] uppercase tracking-[0.16em] text-fg-dim",children:["Times shown in ",k,T?` \xB7 business timezone ${T}`:""]})]})]})}function oR({buttonLabel:e,style:t}){let{fieldPrefix:o,editing:n,name:r,setName:a,email:i,setEmail:s,phone:l,setPhone:d,notes:c,setNotes:p,submitting:m,error:f,canSubmit:h}=Vu();return xd(M,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[lo(E8,{number:"03",children:"Your details"}),xd("div",{className:"flex flex-col gap-4",children:[lo(Dr,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:E1,children:lo("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:g=>a(g.target.value),className:T1,required:!0})}),lo(Dr,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:E1,children:lo("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:g=>s(g.target.value),className:T1,required:!0})}),lo(Dr,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:E1,children:lo("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:g=>d(g.target.value),className:T1})}),lo(Dr,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:E1,children:lo("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:g=>p(g.target.value),className:`${T1} resize-y`})})]}),f&&lo("p",{className:"mt-4 font-[family-name:var(--bk-note-font,var(--font-mono))] text-[length:var(--bk-note-size,11px)] uppercase tracking-[0.16em] text-alert",role:"alert",children:f}),lo(ma,{type:n?"button":"submit",disabled:!h,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:m?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function nR({successMessage:e}){let{confirmation:t,customerTimezone:o}=Vu();if(!t)return null;let n=gl(t.customerTimezone,o,t.timezone),r=gl(t.timezone),a=r&&r!==n?r:"";return xd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[xd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),lo("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),lo("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:k8(t.startAt,n)}),a&&xd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",k8(t.startAt,a)]}),(e??"").trim()&&lo("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),lo(ma,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!Pce(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Lw}from"react/jsx-runtime";var Ice=["head","booking","details","confirm"],Fce={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function P8({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}=Vu(),m=Pse(d);return e==="head"?Lw(M,{className:"min-[960px]:col-span-2",style:m,children:Lw(eR,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Lw(M,{className:"min-[960px]:col-span-2",style:m,children:Lw(nR,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Lw(tR,{style:m,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Lw(oR,{buttonLabel:s,style:m}):null}import{useEffect as Bce,useState as Ku}from"react";import{jsx as Iw,jsxs as c7e}from"react/jsx-runtime";function Ac(e,t){let[o,n]=Ku(void 0),[r,a]=Ku(0);return Bce(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return vo.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),Bce(()=>{if(t===void 0)return r_(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var d7e="Something went wrong \u2014 your submission wasn't sent. Please try again.";function Fw(e,t="Thanks \u2014 we've received your submission."){return e.successMessage?.trim()||t}function Yu({form:e,formSlug:t,editing:o=!1}){let[n,r]=Ku({}),[a,i]=Ku(""),[s,l]=Ku(!1),[d,c]=Ku(!1),[p,m]=Ku(null),[f,h]=Ku(null);async function g(b){if(b.preventDefault(),!(o||s||!e||!t)){l(!0),h(null);try{let w=e.fields.map(v=>({fieldKey:v.key,value:n[v.key]??""})),x=await vo.submitForm(t,{answers:w,...a?{company:a}:{}});m(x?.account??null),c(!0)}catch{h(d7e)}finally{l(!1)}}}return{valueOf:b=>n[b]??"",set:(b,w)=>r(x=>({...x,[b]:w})),honeypot:a,setHoneypot:i,submitting:s,done:d,account:p,error:f,handleSubmit:g}}function Bw({value:e,onChange:t}){return Iw("input",{type:"text",name:"company",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",value:e,onChange:o=>t(o.target.value)})}function ju({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"?Iw("textarea",{required:e.required,rows:r,value:t,placeholder:s,onChange:d=>o(d.target.value),className:n,...l}):e.type==="select"?c7e("select",{required:e.required,value:t,onChange:d=>o(d.target.value),className:n,...l,children:[Iw("option",{value:"",children:s||"Select\u2026"}),e.options.map(d=>Iw("option",{value:d,children:d},d))]}):e.type==="checkbox"?Iw("input",{type:"checkbox",required:e.required,checked:t==="true",onChange:d=>o(d.target.checked?"true":""),className:n}):Iw("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 Wt={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 P1}from"react/jsx-runtime";function p7e(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function Hce({eyebrow:e,title:t}){return P1("div",{className:"flex flex-col gap-4",children:[e&&El(dt,{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:ne(t,!0)})]})}function rR({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return P1("div",{className:"flex flex-col gap-8",children:[e&&It(e).map((l,d)=>El("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:L(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:Fw(n)}):P1("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",p7e(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?P1("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(ju,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),P1("span",{children:[l.label,l.required?El("span",{className:"text-accent",children:" *"}):null]})]},l.key):El(ju,{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(Bw,{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":L(t||Wt.buttonText)})]}):El("p",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim",children:i?u("Loading form\u2026"):u("Choose a form in the inspector, under Form \u2014 until then this form is hidden on the live page and nothing can be submitted.")})),a&&o&&El("span",{className:"font-mono text-[12px] uppercase tracking-[0.18em] text-fg-dim/70",children:L(o)})]})}var aR=["field","tick","thanks"],Dce={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},iR={field:"styleField",tick:"styleTick",thanks:"styleThanks"},m7e={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 u7e(e){return typeof e=="string"&&S0.includes(e)?e:null}function Mce(e){let t={};for(let o of aR){let n=u7e(e[iR[o]]);n&&Object.assign(t,Nu(n,m7e[o]))}return t}import{jsx as sR}from"react/jsx-runtime";var zce=["head","form"],Wce={head:"Head",form:"Form"};function C8({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=Ac(i,s),p=Yu({form:c,formSlug:i,editing:l}),m=Mce(d);return e==="head"?sR(M,{as:"div",style:m,children:sR(Kt,{look:"statement",num:t,title:o})}):sR(M,{as:"div",style:m,children:sR(rR,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var f7e={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>Ice.map(e=>({region:e,name:Fce[e]})),addBlocked:()=>u("A Booking Form is these three boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},SubmitBuild:{slot:"boxes",childType:"SubmitBox",addLabel:"Add box",fixed:!0,seeds:()=>zce.map(e=>({region:e,name:Wce[e]})),addBlocked:()=>u("A Submit-a-build section is these two boxes. They cannot be added to or removed."),skipSeed:e=>e.layout!=="boxes"},Collections:{slot:"cards",childType:"CollectionCard",addLabel:"Add card",seeds:()=>Array.from({length:ice},()=>({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:()=>gce.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};yJ(f7e);import{jsx as Uce}from"react/jsx-runtime";var h7e={body:"text-[length:var(--size-body,17px)]"},om=5;function Hw({rating:e}){let t=Math.min(om,Math.max(0,Math.round(e)));return Uce(M,{role:"img","aria-label":`${t} out of ${om} stars`,className:`flex gap-1 ${h7e.body} leading-none`,children:Array.from({length:om}).map((o,n)=>Uce("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var _8="mx-auto max-w-[var(--sf-site-width,1600px)]",g7e=[/^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 Gce(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function R8(e){return e.split(/\s+/).filter(t=>t&&!g7e.some(o=>o.test(Gce(t)))).join(" ")}var b7e=new Set(["max-view-desktop","max-view-wide"]);function w7e(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 Dw(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=Gce(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?w7e(l[1]):void 0;d!==void 0&&(i?b7e.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as x7e,jsx as y7e}from"react/jsx-runtime";function N8({inBox:e,atTop:t,anyBox:o=!1}){let n=tu(),r=UP();return y7e(x7e,{children:n||o&&r?e:t})}import{jsx as C1}from"react/jsx-runtime";function xt({className:e,capped:t=!1,column:o=Ni,style:n,defaults:r,id:a,attrs:i,rootRef:s,inAnyBox:l=!1,children:d}){let c=R8(e),p=o===null?"":R8(o),m=C1(M,{as:"section",ref:s,...i,className:c||void 0,style:n,id:a,children:p?C1("div",{className:p,children:d}):d}),f=r?{...r,...n}:n,h=C1(M,{as:"section",ref:s,...i,className:t?`${_8} ${e}`:e,style:f,id:a,children:o===null?d:C1("div",{className:o,children:d})});return C1(N8,{inBox:m,atTop:h,anyBox:l})}import{Fragment as k7e,jsx as nm,jsxs as lR}from"react/jsx-runtime";var Mw={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)]"},v7e="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))]",O8="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 A8({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:lR(xt,{className:"relative z-[2] border-t border-line bg-surface",column:l?O8:v7e,children:[l?null:lR(k7e,{children:[(t??"").trim()&&nm(dt,{text:t??"",look:e,className:"mb-4 block"}),(o??"").trim()&&nm("h2",{className:`mb-12 font-heading2 ${Mw.headingMedium} font-medium uppercase leading-none tracking-[-0.02em] text-fg max-view-wide:mb-8 ${Mw.headingMediumUpTo800}`,children:ne(o??"",!1)})]}),nm("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=>lR("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&&nm(Hw,{rating:c.rating}),(c.title??"").trim()&&nm("h3",{className:`font-display ${Mw.bodyLarge} font-medium uppercase leading-[1.2] tracking-[-0.01em] text-fg`,children:c.title}),nm("div",{className:`flex-1 font-serif ${Mw.bodySmall} leading-[1.65] text-fg-dim`,children:It(c.quote).map((p,m)=>nm("p",{className:m?"mt-3":"",children:p},m))}),lR("footer",{className:"flex items-baseline justify-between gap-4 border-t border-line pt-5",children:[nm("span",{className:`font-mono ${Mw.label} uppercase tracking-[0.22em] text-fg`,children:c.name}),nm("span",{className:`font-mono ${Mw.label} uppercase tracking-[0.18em] text-fg-dim`,children:c.meta??""})]})]},c.key))})]})}var $ce=Dw(O8),L8={top:84,bottom:$ce.bottom,topPhone:84,bottomPhone:$ce.bottomPhone},Vce=L8,[S7e,T7e]=N2("Testimonials"),E7e={type:Zs,props:{...ze,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[Js]:[{type:"Text",props:{...Ge,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Oe("quote",Tt,{size:16,lineHeight:1.6}),{type:Zs,props:{...ze,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Js]:[Oe("name",Ge,{...Ql,weight:500,letterSpacing:.04}),Oe("role",Tt,{textStyle:"body-5"})]}}]}},P7e={name:"Testimonials",boxProps:e=>({...ec,direction:"column",gap:44,sectionBorder:{top:1},...Gm(e,Vce)}),box:[...Pp,...bh(Vce)],parts:[{kind:"group",name:"Heading",props:{...ze,gap:16},parts:[{...S7e,props:Ge},{...T7e,props:Ge,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[E7e]}}],site:lq("title"),drop:{...tc,...oc,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"}};Rn({Testimonials:P7e});var Lc={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 cR,tabletKey as I8}from"efficient-easel/draw";var C7e={textStyle:"body-5",...ho("label",14),letterSpacing:.05,lineHeight:1.5},_7e={type:Zs,props:{...ze,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[cR("share")]:"content",[cR("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Js]:[Oe("label",Tt,{...Na(14),letterSpacing:.05,lineHeight:1.5}),Oe("value",{...Ge,align:"right"},{...C7e,align:"right"})]}},Kce={[xh]:lP},R7e=["dynamic","source","finish","size","wheel"],_1=ll("SpecTable",{slots:{template:[_7e]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...ze,direction:"row",share:"content",gap:48,[I8("gap")]:80,[cR("gap")]:80,...Kce}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),N7e=_1.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(R7e.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),dR=Dw(Lc.ownBox),O7e={..._1,parts:N7e,boxProps:(e,t)=>{let o=typeof _1.boxProps=="function"?_1.boxProps(e,t):_1.boxProps;return{...o,sectionPaddingBottom:dR.bottom,sectionPaddingBottomPhone:dR.bottomPhone,...Kce,[I8("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[I8("sectionPaddingBottom")]:dR.bottomPhone,[cR("gap")]:36,...dR.line?{sectionBorder:oP({bottom:1})}:{}}}};Rn({SpecTable:O7e});Rn({ProductGrid:ll("ProductGrid",{slots:{[Ct]:[ile()]},pressHeading:!0})});Rn({Events:ll("Events",{slots:{[Ct]:aB()},coreProps:{sectionAccent:RE},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});Rn({Collections:ll("Collections",{slots:{[Ct]:[iB()]},roomBelow:gie,pressHeading:!0})});Rn({GalleryB:ll("GalleryB",{slots:{[Ct]:[sB()]},roomBelow:{bottom:fi.bottom,bottomPhone:G_},pressHeading:!0})});Rn({[ca]:{name:"Product hero",box:[...ij],boxProps:{direction:"column",gap:0,gapPhone:0,...gt(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[lw]:dw},slots:e=>({[Ct]:L6(e)})}]}});var F8=Dw(Lc.ownBox);Rn({FitmentTable:ll("FitmentTable",{slots:{[g5]:[Vse()],[Ou]:[Kse()]},roomBelow:{bottom:F8.bottom,bottomPhone:F8.bottomPhone},boxProps:F8.line?{sectionBorder:oP({bottom:1})}:{},pressHeading:!0})});var A7e=e=>({type:Zs,props:{...ze,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[Js]:[{type:Zs,props:{...ze,name:"Words",direction:"column",gap:16},slots:{[Js]:[Oe("eyebrow",Ge,{...Na(13),color:"accent"}),Oe("title",Ge,{textStyle:"heading-2",...ho("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Oe("copy",Tt,{textStyle:"body-1",...ho("body",15),lineHeight:1.6})]}},{type:Zs,props:{...ze,name:"Picture",direction:"column",gap:12},slots:{[Js]:[{type:"ImageBlock",props:{[Ks]:"image",aspect:"1/1",fit:"contain"}},Oe("tag",{...Tt,align:"right"},{...Na(11),align:"right"})]}}]}}),L7e={name:"Feature Rows",boxProps:{...ec,...cq,direction:"column",gap:0},box:Pp,parts:[{kind:"core",keep:"rest",slots:e=>({template:[A7e(e.startLeft===!0)]})}]};Rn({DetailRows:L7e});import{phoneKey as H8}from"efficient-easel/draw";var mR=e=>[...Pp.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>tP(t,n)],...bh(e)],D8=(e,t,o)=>(n,r)=>({...ec,sectionAccent:tP(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...Gm(n,e)}),M8=(e,t,o)=>({kind:"text",key:e,role:"heading",props:Ge,style:{textStyle:"heading-2",...ho("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),z8=(e,t,o={})=>({kind:"group",name:"Heading",props:{...ze,gap:e,gapPhone:e,...o},parts:t}),W8=(e={})=>({kind:"core",keep:"rest",props:QE,...e}),pR=L8,[I7e]=N2("ReviewForm"),F7e=()=>({name:"Review Form",boxProps:D8(pR,48,32),box:mR(pR),parts:[z8(16,[{...I7e,props:Ge},M8("title",1,-.02)]),W8()],pressKeepsEmpty:["eyebrow","title"],drop:{...tc,...oc,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[B7e]=N2("Reviews"),B8=e=>({...Na(12),letterSpacing:e}),H7e={type:Zs,props:{...ze,name:"Card",gap:16,...gt(40,40,32,32),sectionAccent:0},slots:{[Js]:[{type:"RatingBlock",props:{[Ks]:"rating"}},Oe("title",Ge,{textStyle:"heading-1",...ho("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Oe("quote",Tt,{textStyle:"body-1",...ho("body",15),lineHeight:1.65}),{type:Zs,props:{...ze,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[H8("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Js]:[Oe("name",Ge,B8(.22)),Oe("dateLabel",{...Tt,align:"right"},{...B8(.18),align:"right"}),Oe("role",{...Tt,align:"right"},{...B8(.18),align:"right"})]}}]}},D7e=()=>({name:"Reviews",boxProps:D8(pR,48,32),box:mR(pR),parts:[z8(16,[{...B7e,props:Ge},M8("title",1,-.02)]),W8({slots:{template:[H7e]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...tc,...oc,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"}}),Yce={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},M7e=()=>({name:"Booking Form",boxProps:D8(Yce,40,40),box:mR(Yce),parts:[z8(16,[eP("eyebrow",{...ho("label",12),weight:600,letterSpacing:.24,color:"accent"}),M8("heading",.98,-.025),{kind:"text",key:"intro",props:{...Tt,maxWidth:660},style:{textStyle:"heading-1",...ho("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),W8()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...tc,...oc}}),jce={top:88,bottom:88,topPhone:64,bottomPhone:64},z7e=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...ec,direction:"column",align:"center",gap:20,gapPhone:20,...Gm(e,jce)}),box:[...Pp,...bh(jce)],parts:[{...eP("eyebrow"),props:{...Ge,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...Ge,align:"center",maxWidth:720},style:{textStyle:"heading-1",...ho("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...Ge,align:"center",maxWidth:560},style:{textStyle:"body-1",...ho("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...ze,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[H8("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...sq,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...H2,align:"center",icon:"none"},style:{...Bm(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...tc,...oc}}),qce={top:60,bottom:0,topPhone:60,bottomPhone:0},W7e=()=>({name:"Contact Form",boxProps:(e,t)=>({...ec,sectionAccent:tP(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...Gm(e,qce)}),box:mR(qce),parts:[{kind:"group",name:"Header",props:{...ze,direction:"row",align:"center",share:"content",phoneRow:2,[H8("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[eP("routingNumber"),{kind:"text",key:"routingTagline",props:Tt,style:{textStyle:"heading-1",...ho("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:dq(e.sectionAccent??0,t)})}}],drop:{...tc,...oc}});Rn({ContactRouting:W7e(),ReviewForm:F7e(),AppointmentBooking:M7e(),Reviews:D7e(),CheckoutCTA:z7e()});var Xce={top:40,bottom:40,topPhone:40,bottomPhone:40},Zce={textStyle:"heading-1",...Iq("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},U8=["heading","intro"],Jce=[Ct,Ha,Da,Ma];function U7e(e,t){let o=(t?A0:JK)(Bo,e);return Object.fromEntries(Jce.map(n=>[n,o[n]]))}var G7e=()=>({name:"List",boxProps:e=>({...ec,direction:"column",gap:24,gapPhone:24,...Gm(e,Xce)}),box:[...Pp,...bh(Xce)],parts:[{kind:"group",name:"Heading",props:{...ze,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...Ge,tag:"h1"},style:Zce,when:e=>!r4(e)},{kind:"text",key:"heading",role:"heading",props:{...Ge,tag:"h2"},style:Zce,when:r4},{kind:"text",key:"intro",role:"body",props:Tt,style:{textStyle:"body-1",...ho("body",15)}}]},{kind:"core",keep:"rest",props:QE,derive:{reads:[...Jce],props:(e,t)=>U7e(e,t.press===!0)}}],pressKeepsEmpty:U8,drop:{...tc,...oc,[SP]:"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"}});Rn({AlloyWheelsListing:G7e()});var Qce={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as $7e,useContext as V7e}from"react";import{Fragment as K7e,jsx as zw}from"react/jsx-runtime";var $o={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)]"},Ww=$7e("catalog");function Es(){return V7e(Ww)==="catalog"}function qu({children:e}){let t=Es();return zw(K7e,{children:e??(t?zw(M,{"aria-hidden":!0}):null)})}function Uw({children:e}){return zw(qu,{children:e?zw(M,{children:e}):null})}function uR({children:e}){return zw(qu,{children:e?zw(M,{className:"[.sf-card-rows>*>&]:self-end",children:e}):null})}var epe={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:C3($o.label),writable:!0,sized:!0}},tpe={name:{label:"Name",follows:"Heading 3",builtIn:C3($o.headingSmall2),writable:!0,sized:!0}};zte({ProductPrice:Qce,ProductEyebrow:epe,ProductName:tpe});function Gw(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as Y7e}from"react/jsx-runtime";import{OpacityIcon as j7e}from"efficient-easel/icons";import{group as fR}from"efficient-easel/screen/lib/document/box-fields";var ope={fields:{_gContent:fR("Content"),eyebrow:U("Eyebrow",Qm.eyebrow),title:Z("Heading",Qm.title),body:Z("Body",Qm.body),_gBackground:fR("Background image"),imageSrc:ot("Image","image/*"),overlay:le("Overlay",Y7e(j7e,{}),0,100,5,60,"%"),_gButton:fR("Button"),...kl,_gLayout:fR("Layout")}};import{jsx as R1}from"react/jsx-runtime";import{GroundIcon as rpe,ListIcon as q7e}from"efficient-easel/icons";function ape(e){let t=e?.data?.root,o=FP(t?.props)??"";return o&&k4(o,"text").length?o:""}var G8="outsideCardTemplate",X7e={not:{context:G8,is:!0}},Wa={[G8]:(e,t)=>{let o=kp(t.appState,e.props?.id);if(o!==void 0)return o===null&&!ape(t.appState)},[lK]:(e,t)=>{let o=ed(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[cK]:(e,t)=>ed(t.appState,e.props?.id)?.inCopy};function Gr(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?R1(aa,{noun:"link"}):t==="colour"?R1(rpe,{}):R1(q7e,{}),a={...fe(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return lt(a,X7e)}function Ic(){return Gr("Link from","link")}var Z7e={any:[{field:Yo,set:!1},{context:G8,is:!0,default:!0}]};function Xu(e){return lt(e,Z7e)}function N1(e){return e.kind==="link"?wr(Q(e.label)):e.kind==="colour"?J7e(e.label):e.multiline?Je(e.label):ve(e.label)}function J7e(e){return{type:"custom",render:({value:t,onChange:o})=>R1(vee,{label:e,icon:R1(rpe,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function Q7e(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var npe=new WeakMap;function Ua(e,t,o){let n=Object.keys(e).filter(S=>Q7e(e[S]));if(!n.length)return e;let r=t.props??{},a=kp(o.appState,r.id),i=typeof a?.type=="string"?a.type:"",s=a?_3(o.appState,r.id)??"":"",l=n.map(S=>typeof r[S]=="string"?r[S].trim():""),d=pt(a?.props),c=i===Ir?kp(o.appState,a?.props?.id):null,p=c?_3(o.appState,a?.props?.id)??void 0:void 0,m=c?hE(a?.props,c.type,p):"",f=c?pt(c.props):"",h=c?`${String(c.type??"")}\0${f}\0${p??""}`:"",g=i===Ir&&!c?JSON.stringify(a?.props?.[qK]??null):"",b=a?"":ape(o.appState),w=[i,s,d,m,h,g,Lm(),b,SZ(),...l].join("\0"),x=npe.get(e);x||npe.set(e,x=new Map);let v=x.get(w);if(v)return v;let k={...e};return n.forEach((S,T)=>{let E=e[S],y=i===Ir?mh(o.appState,a,E.cardRowKind):i?eY(a,E.cardRowKind,s||void 0):k4(b,E.cardRowKind),O=E.cardRowKind==="link"&&!!i&&!y.length;if(!l[T]&&(O||(E.cardRowContent?!i||!y.length:!y.length&&!i&&b))){delete k[S];return}let P=l[T]&&!y.some(A=>A.key===l[T])?l[T]:"",B=E.cardRowKind==="list",H=(A,_)=>B&&_===0&&A.key!==l[T]?"":A.key;k[S]={...E,options:[...B?[]:E.options,...y.map((A,_)=>({label:A.label,value:H(A,_)})),...P?[{label:P,value:P}]:[]]}}),x.set(w,k),k}import{group as spe}from"efficient-easel/screen/lib/document/box-fields";var hR={meta:"Trailing note"},ipe={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var lpe={fields:{_gContent:spe("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:Q("Label"),href:wr(Q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:U("Trailing note",hR.meta),_gText:spe("Text"),rowField:Gr("Shows","text")},resolveFields:(e,t)=>Ua(t.fields,e,t),showWhenFacts:Wa};import{jsx as bi,jsxs as aze}from"react/jsx-runtime";import{ButtonIcon as ize,ButtonIconIcon as sze,IconAfterTextIcon as lze,IconBeforeTextIcon as dze}from"efficient-easel/icons";import{SettingsField as cze}from"efficient-easel/panel";import{useSelectedFields as hpe}from"efficient-easel/easel";import{buttonFieldSet as pze}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as mze}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as uze,Segmented as fze}from"efficient-shell/ui";function gR(e){return typeof e=="boolean"?e:!0}var $8=["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"];function V8(e){return typeof e=="string"&&$8.includes(e)?e:void 0}function dpe(e,t){return V8(e)??(gR(t)?"arrow-right":"none")}function O1(e){return e==="before"?"before":e==="end"?"end":"after"}function cpe(e,t){return O1(e)==="end"&&lg(t)==="fill"}function lg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function ppe(e,t,o,{atSectionLine:n=!1}={}){let r=lg(e);if(fr(o)){let i=lg(o),s=fr(t)?lg(t):i;return n?[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-tablet:max-view-desktop:w-full":"view-tablet:max-view-desktop:w-auto",s==="fill"?"max-view-tablet:w-full":"max-view-tablet:w-auto"].join(" "):[r==="fill"?"view-desktop:w-full":"view-desktop:w-auto",i==="fill"?"view-wide:max-view-desktop:w-full":"view-wide:max-view-desktop:w-auto",s==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto"].join(" ")}let a=r==="fill"?["w-full"]:[];if(fr(t)){let i=lg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as xR}from"efficient-easel/screen/lib/document/style-fields";import{group as mpe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as hze}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as K8}from"react/jsx-runtime";import{LockIcon as eze}from"efficient-easel/icons";import{FieldText as tze}from"efficient-easel/fields";import{SettingsField as oze}from"efficient-easel/panel";import{keptByRow as nze}from"efficient-easel/screen/lib/document/style-fields";function rze(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??NQ}-words`;return K8(oze,{label:u("Words"),icon:K8(eze,{}),htmlFor:o,children:K8(tze,{id:o,value:u("Set by country"),onChange:()=>{},readOnly:!0})})}}}function bR(e){return nze(e)}function wR(e,t,o,n=[]){return cC(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?rze():a]))}var Y8=e=>oC(e==="none"?"no-symbol":e),gze=$8.map(e=>({value:e,icon:e==="none"?rQ(Y8(e),bi(C4,{value:e})):Y8(e)})),gpe=Q("Button");function bze({value:e,onChange:t}){let o=hpe(),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?bi(DQ,{label:"Button",icon:bi(ize,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):gpe.render({value:r,field:{label:"Button"},onChange:a=>t(iee(a))})}function wze({value:e,onChange:t}){let o=hpe(),n=dpe(e,o.values.arrow),r=O1(o.values.iconPosition),a=lg(o.values.widthFit)==="fill",i=Y8("icon-at-end");return bi(cze,{label:u("Icon"),icon:bi(sze,{size:18}),value:n==="none"?void 0:bi(C4,{value:n}),children:aze("div",{className:"flex items-center gap-2",children:[bi(uze,{label:u("Icon"),value:n,options:gze,onChange:t}),n!=="none"&&bi(fze,{size:"sm",block:!0,label:u("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:bi(dze,{size:16}),label:bi("span",{className:"sr-only",children:u("Icon before text")}),title:u("Icon before text")},{value:"after",icon:bi(lze,{size:16}),label:bi("span",{className:"sr-only",children:u("Icon after text")}),title:u("Icon after text")},...a?[{value:"end",icon:i,label:bi("span",{className:"sr-only",children:u("Icon at the far end")}),title:u("Icon at the far end")}]:[]]})]})})}var upe=()=>A3($n().theme),fpe=pze({lengthUnits:JP,follows:{useFill:()=>upe().fill,useText:()=>upe().ink,useBorder:()=>{let[e]=pc("variant"),[t]=pc("buttonColor"),{theme:o}=$n(),n=H4({variant:e,buttonColor:t}).border.width,r=fr(t)??(e==="ghost"?pY(o).text:A3(o).fill);return{width:n,color:r}},useCorners:()=>bY($n().cornerRadiusPx),useFillOpacity:()=>H4({variant:pc("variant")[0]}).fillOpacity},usePresets:uQ,resetTo:e=>see(e,u("Styles")),padding:{fallback:zQ,tablet:!0},phone:mze,say:lb});function xze(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var bpe={fields:{label:dee(gpe,e=>bi(bze,{value:e.value,onChange:e.onChange})),labelText:fee("label"),href:Xu({...qe("Button link"),...xR("label")}),consentWords:bR("label"),_gButton:mpe("Button"),rowField:Gr("Shows","text"),[Yo]:Ic(),...xze(fpe,hze.Design),_gStyle:mpe("Style"),variant:xR("buttonColor"),icon:{type:"custom",render:e=>bi(wze,{value:e.value,onChange:e.onChange})},iconPosition:xR("icon"),arrow:xR("icon"),...fpe},resolveFields:(e,t)=>wR(Ua(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Wa};import{jsx as SR}from"react/jsx-runtime";import{AccentIcon as yze,ColumnsIcon as vze,StylesIcon as vpe}from"efficient-easel/icons";import{group as j8}from"efficient-easel/screen/lib/document/box-fields";import{newId as xpe}from"efficient-easel/data";function yR(e,{rows:t="items",label:o="title"}={}){let n=pt(e);return n?vp(n).map(r=>({label:r.label,value:r.key})):(Array.isArray(e[t])?e[t]:[]).map((r,a)=>({label:typeof r?.[o]=="string"&&r[o].trim()||u("Card {n}",{n:a+1}),value:nY(an(r),a)}))}var wpe=new WeakMap;function vR(e,t){let o=wpe.get(e);o||wpe.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 ype(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>xpe(t),enumerable:!0})}function kR(e,t="items"){if(!Array.isArray(e[t])||pt(e))return e;let o=e[t],n=typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",r=c=>c&&typeof c=="object"&&typeof c.key=="string"?c.key:"",a=!!n&&!o.some(c=>r(c)===n),i=new Set,s=e.highlightedCard,l=!1,d=o.map((c,p)=>{if(!c||typeof c!="object")return c;let m=r(c);if(m&&!i.has(m))return i.add(m),c;let f=!m&&a&&n===String(p+1);if(m||f){let h=xpe("card");return i.add(h),l=!0,f&&(s=h),{...c,key:h}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as kze}from"efficient-easel/data";var Sze=e=>kze(e.template)&&e.template.length>0;function Tze(e,t){let o=Sze(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,vR(r,yR(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,Cze(r)]]:[[n,r]]))}var Eze=Object.fromEntries(P2("Cards").filter(e=>!e.everySource).map(e=>[e.key,N1(e)])),Pze=Object.fromEntries(P2("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,N1(e)])),kpe=new WeakMap;function Cze(e){let t=kpe.get(e);return t||kpe.set(e,t={...e,arrayFields:Eze}),t}var Spe={fields:{_gSource:j8("Source"),dataSource:Xt("Card content","Manual"),[ag]:Rw(),_gContent:j8("Content"),eyebrow:U("Eyebrow",V0.eyebrow),eyebrowLook:fe("Eyebrow style",SR(vpe,{}),[...nl],Cp("Cards")),title:Z("Heading",V0.title),items:{type:"array",label:"Cards",arrayFields:Pze,defaultItemProps:ype({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...pq,highlightedCard:fe("Highlighted card",SR(yze,{}),[{label:"None",value:""}],""),highlightBadge:U("Highlight badge","Most popular"),_gStyle:j8("Style"),cardStyle:yo("Card style",SR(vpe,{}),[{label:"Cards",value:"cards",picture:D4.cards},{label:"Label only",value:"label-only",picture:D4["label-only"]}],"cards",{columns:2,cell:br}),columns:le("Columns",SR(vze,{}),2,4,1,3)},resolveData:(e,t)=>{let o=t?.lastData?.props,n=Hte(e.props,o),r=mE(n),a=r===e.props?e:{...e,props:r},i=a.props,s=kR(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=nt(Zt("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,st.Cards.headRows),n=e.props,r=Tze(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:ve("Feature label"),href:wr(Q("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:Cp("KeyFeatures")}}:{}}}};import{jsx as _ze}from"react/jsx-runtime";import{StickyIcon as Rze}from"efficient-easel/icons";import{group as Tpe}from"efficient-easel/screen/lib/document/box-fields";var Epe={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:Xo(wr(Q("Active tab","All"))),_gLinks:Tpe("Links"),links:{type:"array",label:"Right links",arrayFields:{label:Q("Label"),href:wr(Q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:Tpe("Style"),sticky:ae("Stick to top",!0,_ze(Rze,{}))}};import{jsx as Nze}from"react/jsx-runtime";import{StylesIcon as Oze}from"efficient-easel/icons";import{group as Ppe}from"efficient-easel/screen/lib/document/box-fields";var Aze=[...KX],Cpe={fields:_i({_gContent:Ppe("Content"),eyebrow:U("Chip label",nb.eyebrow),title:Z("Heading",nb.title),body:Z("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:ve("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:U("Caption","Illustrative example"),_gStyle:Ppe("Style"),chartStyle:yo("Chart style",Nze(Oze,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:gC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:gC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:gC.donut}],"bars",{columns:3,cell:br}),valueSuffix:Xo(U("Value suffix","%"))},Aze,Ri)};import{jsx as qze}from"react/jsx-runtime";import{jsx as rt,Fragment as X8,jsxs as yd}from"react/jsx-runtime";import{useId as Lze,useState as Ize}from"react";import{InspectorUpLevel as A1}from"efficient-easel/chrome";import{useEasel as Fze}from"efficient-easel/easel";import{ListField as Ope}from"efficient-easel/fields";import{SettingsField as Ape}from"efficient-easel/panel";import{ClockIcon as _pe,ContrastIcon as Bze,GlobeIcon as Hze,LinkIcon as Dze,LocationIcon as Mze,PhoneIcon as zze,SquareIcon as Wze,TypeIcon as Z8}from"efficient-easel/icons";import{useSectionOps as Uze}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as Gze}from"efficient-easel/draw";var J8=(e,t)=>t||e?Xte(e,t):u("Ungrouped");function $ze(e){let t=[];return e.forEach((o,n)=>{let r=su(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 q8({children:e}){return rt("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--ink-faint)",margin:"14px 0 6px"},children:e})}var Lpe={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"},Vze={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},Ipe={...Vze,color:"var(--status-danger-soft-ink)"};function rm({label:e,value:t,placeholder:o,textarea:n,icon:r,onChange:a,onBlur:i,onKeyDown:s}){let l=Lze();return rt(Ape,{label:e,icon:r??rt(Z8,{}),htmlFor:l,children:n?rt("textarea",{id:l,value:t,placeholder:o,onChange:d=>a(d.target.value)}):rt("input",{id:l,type:"text",value:t,placeholder:o,onChange:d=>a(d.target.value),onBlur:i,onKeyDown:s})})}var Kze=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],Yze=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function Rpe({label:e,icon:t,options:o,value:n,onChange:r}){return rt(Ape,{label:e,icon:t,children:rt("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:o.map(a=>{let i=n===a.value;return rt("button",{type:"button","aria-pressed":i,onClick:()=>r(a.value),style:{flex:1,padding:"6px 8px",fontSize:12,borderRadius:6,cursor:"pointer",border:`1px solid ${i?"var(--sf-accent)":"var(--line-strong)"}`,background:i?"var(--sf-accent)":"transparent",color:i?"var(--sf-on-accent)":"inherit",fontWeight:i?500:400},children:u(a.label)},a.value)})})})}function Npe({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||Sn.mapTheme,a=Sn;return yd(X8,{children:[!o&&rt(q8,{children:u("Section")}),rt(rm,{label:u("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),rt(rm,{label:u("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),rt(rm,{label:u("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:yd(X8,{children:[rt(q8,{children:u("City strip")}),rt(rm,{label:u("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),rt(rm,{label:u("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),rt(Rpe,{label:u("Shape"),icon:rt(Wze,{}),options:Yze,value:vP(e.imageShape),onChange:i=>t({imageShape:i})}),rt(q8,{children:u("Map & Theme")}),rt(Rpe,{label:u("Map theme"),icon:rt(Bze,{}),options:Kze,value:r,onChange:i=>t({mapTheme:i})})]})]})}function jze({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((f,h)=>su(f)===t?h:-1).filter(f=>f>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(su).filter(f=>f!==t)),[d,c]=Ize(t),p=f=>o(e.map(h=>su(h)===t?{...h,...f}:h)),m=()=>{let f=d;if(f!==t){if(l.has(f)){c(t);return}o(e.map(h=>su(h)===t?{...h,group:f}:h)),a(f)}};return yd("div",{className:"sf-locations-view",children:[rt(A1,{inline:!0,name:u("Section"),onSelect:n,title:J8(t,s)}),rt(rm,{label:u("Group heading"),value:d,placeholder:u("e.g. Americas"),onChange:c,onBlur:m,onKeyDown:f=>{f.key==="Enter"&&f.currentTarget.blur()}}),l.has(d)&&d!==t&&rt("p",{className:"sf-note sf-note--error",role:"alert",children:u("Another group already uses this heading \u2014 pick a different one.")}),rt(rm,{label:u("Group name"),value:s,placeholder:u("Shown beside the heading"),onChange:f=>p({groupName:f})}),rt(Ope,{label:u("Cities in this group"),noun:u("city"),items:i.map(f=>e[f]),onChange:f=>o(Zte(e,t,f)),newItem:()=>({...J4,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(f,h)=>yd("button",{type:"button",style:Lpe,onClick:()=>r(i[h]),children:[rt("span",{children:f?.name||u("City")}),rt("span",{"aria-hidden":"true",children:"\u203A"})]})}),rt("div",{style:{marginTop:12},children:rt("button",{type:"button",style:Ipe,onClick:()=>{o(e.filter(f=>su(f)!==t)),n()},children:Zn("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function Fpe({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=qte(),r=ate(),a=$ze(o),{appState:i,selectedItem:s}=Fze(g=>g),l=Uze(),d=s?.props??{},c=g=>{if(!s)return;let b=(i.data.content??[]).findIndex(w=>w.props.id===s.props.id);b<0||l.replaceComponent(Gze,b,{type:s.type,props:{...s.props,...g}})},p=(g,b)=>t(o.map((w,x)=>x===g?{...w,...b}:w)),m=()=>{let g=new Set(a.map(x=>x.key)),b=a.length+1,w=`Group ${b}`;for(;g.has(w);)w=`Group ${++b}`;return w};if(n.level==="texts")return yd("div",{className:"sf-locations-view",children:[rt(A1,{inline:!0,name:u("Locations"),onSelect:()=>ld({level:"groups"}),title:u("Texts")}),rt(Npe,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let g=o[n.index];return g?yd("div",{className:"sf-locations-view",children:[rt(A1,{inline:!0,name:String(g.name??"")||u("City"),onSelect:()=>ld({level:"city",index:n.index}),title:u("Image")}),rt(wQ,{value:g.photo||"",onChange:b=>p(n.index,{photo:b}),label:"Image",accept:"image/*"})]}):f()}if(n.level==="map"){let g=o[n.index];return g?yd("div",{className:"sf-locations-view",children:[rt(A1,{inline:!0,name:String(g.name??"")||u("City"),onSelect:()=>ld({level:"city",index:n.index}),title:u("Map")}),rt(kb,{value:g.geocode,onChange:b=>p(n.index,{geocode:b}),label:"Coordinates"}),rt(rm,{label:u("Directions link"),icon:rt(Dze,{}),value:String(g.mapsUrl??""),onChange:b=>p(n.index,{mapsUrl:b})})]}):f()}if(n.level==="city"){let g=n.index,b=o[g];if(!b)return f();let w=su(b),x=(k,S)=>p(g,{[k]:S}),v=(k,S,T,E=!1)=>rt(rm,{label:S,icon:T,textarea:E,value:String(b[k]??""),onChange:y=>x(k,y)});return yd("div",{className:"sf-locations-view",children:[rt(A1,{inline:!0,name:J8(w,String(b.groupName??"")),onSelect:()=>ld({level:"group",key:w}),title:b.name||u("City")}),v("name",u("Location name"),rt(Z8,{})),v("state",u("State / Province"),rt(Z8,{})),v("country",u("Country"),rt(Hze,{})),v("address",u("Address"),rt(Mze,{}),!0),v("phone",u("Phone"),rt(zze,{})),v("hours",u("Opening hours"),rt(_pe,{})),v("timezone",u("Timezone chip"),rt(_pe,{})),rt("div",{style:{marginTop:12},children:rt("button",{type:"button",style:Ipe,onClick:()=>{t(o.filter((k,S)=>S!==g)),ld({level:"group",key:w})},children:u("Delete city")})})]})}if(n.level==="group")return a.some(g=>g.key===n.key)?rt(jze,{cards:o,groupKey:n.key,onChange:t,onBack:()=>ld({level:"groups"}),onOpenCity:g=>ld({level:"city",index:g}),onNavigate:g=>ld({level:"group",key:g})},n.key):f();function f(){return yd("div",{className:"sf-locations-view",children:[rt(Npe,{props:d,setSection:c}),!r&&rt(X8,{children:h()})]})}function h(){return rt(Ope,{label:u("Locations"),noun:u("group"),items:a,onChange:g=>{let b=g.find(w=>!a.some(x=>x.key===w.key));t(Jte(o,g.map(w=>w.key),w=>[{...J4,group:w,groupName:""}])),b&&ld({level:"group",key:b.key})},newItem:()=>({key:m(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:a.length===0?rt("div",{style:{fontSize:12,color:"var(--ink-faint)",padding:"4px 0"},children:u("No locations yet.")}):void 0,renderRow:g=>yd("button",{type:"button",style:Lpe,onClick:()=>ld({level:"group",key:g.key}),children:[rt("span",{style:{fontWeight:500},children:J8(g.key,g.name)}),yd("span",{style:{color:"var(--ink-faint)"},children:[Zn("{n} city","{n} cities",g.indices.length)," \u203A"]})]})})}return f()}var Bpe={fields:{dataSource:Xt("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>qze(Fpe,{value:e,onChange:t})}},resolveData:async e=>{let t=e.props,o=t.locations??[];if(!pb(o))return e;let n=await mb(o,i=>{let s=kP(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(", ")}),{[QT]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>Zt("ContactLocations",t,e.props)};import{jsx as Hpe}from"react/jsx-runtime";import{ClockIcon as Xze,TagIcon as Zze}from"efficient-easel/icons";var Jze=[...JX],Dpe={fields:_i({title:U("Heading",i4.title),zeroText:Xo(U("At zero",i4.zeroText)),endsAt:yee("Ends",Hpe(Xze,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:ae("Unit labels",!0,Hpe(Zze,{}))},Jze,Ri)};var Mpe={fields:{html:{type:"textarea",label:"HTML"}}};import{jsx as Q8}from"react/jsx-runtime";import{StylesIcon as Qze,WeightIcon as eWe,WidthIcon as tWe}from"efficient-easel/icons";import{keptByRow as oWe}from"efficient-easel/screen/lib/document/style-fields";var nWe={any:[{field:"style",set:!1},{field:"style",is:Ch}]},rWe={not:{field:"style",is:"none"}},zpe={fields:Be({style:yo("Style",Q8(Qze,{}),KQ.map(e=>({...e,picture:ZQ(e.value)})),Ch,{columns:3,cell:br}),spacing:oWe("sectionPaddingTop"),thickness:le("Thickness",Q8(eWe,{}),1,8,1,1,av),...id(av,"thickness"),lengthPct:le("Length",Q8(tWe,{}),10,100,1,100,iv),...id(iv,"lengthPct")},[[["thickness"],nWe],[["lengthPct"],rWe]]),resolveFields:(e,{fields:t})=>{let o=fC[hC(e.props.spacing)],n=Ap({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return dv(t,n)}};import{jsx as Upe}from"react/jsx-runtime";import{HashIcon as aWe,StickyIcon as iWe}from"efficient-easel/icons";import{group as Gpe,select as sWe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as L1}from"efficient-easel/screen/lib/document/device-fields";var eH={title:"On this page"},Wpe={label:"Contents",defaultProps:{title:eH.title,sticky:!0}};var $pe={fields:{title:L1("desktop",U("Heading",eH.title)),_gList:L1("desktop",Gpe("List")),[FC]:L1("desktop",sWe("Number",Upe(aWe,{}),LX,IX)),_gStick:L1("desktop",Gpe(U3)),sticky:L1("desktop",ae(U3,!0,Upe(iWe,{})))}};import{group as lWe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as tH}from"efficient-easel/screen/lib/document/device-fields";var I1={hint:"Search questions",noMatchText:"No question matches your search."},Vpe={label:"List search",defaultProps:{hint:I1.hint,noMatchText:I1.noMatchText}};var Kpe={fields:{_gContent:tH("desktop",lWe("Content")),hint:tH("desktop",Xo(U("Hint",I1.hint))),noMatchText:tH("desktop",Xo(U("No match",I1.noMatchText)))}};import{group as jpe}from"efficient-easel/screen/lib/document/box-fields";var TR={toc:"On this page"},Ype={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var qpe={fields:{_gContent:jpe("Contents"),tocTitle:U("Contents heading",TR.toc),_gSections:jpe("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:ve("Contents label"),heading:ve("Title"),body:Je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as Xpe}from"efficient-easel/screen/lib/document/box-fields";var Zpe={fields:{_gContent:Xpe("Content"),eyebrow:U("Eyebrow",Xm.eyebrow),title:Z("Heading",Xm.title),deck:Z("Deck / standfirst",Xm.deck),_gMeta:Xpe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:ve("Label"),value:ve("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var ER=[{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."}],Jpe={label:"Document Detail Cards",defaultProps:{cards:[]}};var Qpe={fields:{cards:wb({type:"array",label:"Cards",arrayFields:{label:ve("Label"),value:ve("Value"),desc:Je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},ER)}};import{jsx as dWe}from"react/jsx-runtime";import{PageIcon as cWe}from"efficient-easel/icons";import{group as pWe}from"efficient-easel/screen/lib/document/box-fields";var $w={metaLabel:W.label,metaValue:W.value},eme={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var tme={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Tab label"),href:qe("Links to"),current:ae("Current page",!1,dWe(cWe,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:pWe("Trailing note"),metaLabel:U("Note label",$w.metaLabel),metaValue:U("Note value",$w.metaValue)}};import{jsx as mWe}from"react/jsx-runtime";import{StylesIcon as uWe}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as fWe}from"efficient-easel/screen/lib/document/box-fields";var ome={fields:{eyebrow:U("Eyebrow",W.eyebrow),...ml("align",{access:fWe}),eyebrowLook:fe("Look",mWe(uWe,{}),nl,nP)}};import{jsx as hWe}from"react/jsx-runtime";import{ChevronIcon as gWe}from"efficient-easel/icons";import{group as nH}from"efficient-easel/screen/lib/document/box-fields";var Zu={num:W.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},oH=kn.FAQ,nme={label:"Q&A",inline:!0,fields:oH,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var rme="faqOnTemplate",bWe={not:{context:rme,is:!0}},wWe={[rme]:e=>nq("FAQ",e.props??{})},xWe=new Set([dj,...cj]);function yWe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||xWe.has(t))}var ame={fields:{_gContent:nH("Content"),num:U("Number",Zu.num),title:Z("Heading",Zu.title),linkText:U("Button",Zu.link),linkHref:qe("Link"),_gQuestions:nH("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:ve("Question"),answer:Je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:nH("Layout"),defaultOpen:ae("Open first answer",!0,hWe(gWe,{})),...oH},resolveFields:(e,{fields:t})=>{let o=nt(t,e.props.headPlacement,st.FAQ.headRows);return _i(o,yWe(o),bWe)},showWhenFacts:wWe};import{jsx as ji,Fragment as PR,jsxs as kWe}from"react/jsx-runtime";import{useContext as SWe}from"react";import{SettingsField as dme}from"efficient-easel/panel";import{FieldSelect as cme}from"efficient-easel/fields";import{BlogPostIcon as pme}from"efficient-easel/icons";import{ScreenDocumentContext as TWe}from"efficient-easel/screen/components/ScreenDocumentContext";var ime=xw({fetch:async(e,t)=>await Xd().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:On});import{useEffect as sme,useRef as vWe,useState as rH}from"react";function dg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Vw({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=rH(null),[s,l]=rH(!1),[d,c]=rH(!1),p=vWe(!0);return sme(()=>(p.current=!0,e().then(m=>{p.current&&i(m)}),()=>{p.current=!1}),[]),sme(()=>{if(!n?.slug||a===null)return;let m=t(a,n);if(!m)return;let f=o(m);dg(f,n)&&r(f)},[a]),{rows:a,loading:a===null,refreshing:s,errored:d,refresh:()=>{n?.slug&&(l(!0),c(!1),e(!0).then(m=>{if(!p.current)return;i(m);let f=t(m,n);f&&r(o(f))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function lme(e,t){return{label:t?u("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function Kw({value:e,onChange:t}){let o=SWe(TWe);return o&&!o.capabilities.hasBlog?e?.slug?ji(EWe,{value:e,onChange:t}):ji(PR,{}):ji(PWe,{value:e,onChange:t})}function EWe({value:e,onChange:t}){return ji("div",{children:ji(dme,{label:u("Blog post source"),icon:ji(pme,{}),hint:ji(PR,{children:u("Linked to a blog post. This editor has no blog to pick another from; choose \u201CNone (manual)\u201D to author the section yourself.")}),children:ji(cme,{value:e.slug,ariaLabel:u("Blog post source"),onChange:o=>o?void 0:t(null),options:[{label:u("None (manual)"),value:""},{label:e.title||e.slug,value:e.slug}]})})})}function PWe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Vw({load:ime,resolve:(m,f)=>m.find(h=>h.slug===f.slug),snapshot:Rv,value:e,onChange:t}),s=m=>{if(!m){t(null);return}let f=(o??[]).find(h=>h.slug===m);f&&t(Rv(f))},l=e?.slug&&!(o??[]).some(m=>m.slug===e.slug),d=a?"error":r?"loading":"idle",c=u("Storefront \u2192 Blog"),p=a?u("Couldn\u2019t reach {place}.",{place:c}):r?u("Syncing from {place}\u2026",{place:c}):u("Linked to \u201C{name}\u201D",{name:e?.title||e?.slug||""});return kWe("div",{children:[ji(dme,{label:u("Blog post source"),icon:ji(pme,{}),hint:e?.slug?void 0:ji(PR,{children:u("Pick a post from {place} to auto-fill this section, or keep \u201CNone (manual)\u201D to author it yourself below.",{place:c})}),children:ji(cme,{value:e?.slug??"",ariaLabel:u("Blog post source"),onChange:s,readOnly:n,options:[{label:u("None (manual)"),value:""},...l?[lme({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(m=>({label:m.title,value:m.slug}))]})}),e?.slug?ji(Li,{status:d,statusText:p,onRefresh:i,busy:r,hint:ji(PR,{children:u("Auto-fills the cover image, headline, dek, date and link from this post each time you open the editor. Those fields are hidden while a post is linked; the remaining fields stay yours to set.")})}):null]})}import{group as CWe}from"efficient-easel/screen/lib/document/box-fields";var $r={badge:"Featured",imageDate:W.date,category:W.category,readLabel:"0 min read",date:W.date,title:"Add a *headline* for this story.",dek:"A short summary of the featured article \u2014 one or two sentences that draw the reader in.",ctaText:"Read the story",ctaHref:nc.href},mme={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var _We=["image","imageDate","date","title","dek","ctaHref"],ume={fields:_i({source:Uo(Kw),_nBound:lt(fl(yC),vC),image:ot("Cover image","image/*"),badge:U("Badge",$r.badge),imageDate:U("Image date",$r.imageDate),_gContent:CWe("Content"),category:U("Category",$r.category),readLabel:U("Read time",$r.readLabel),date:U("Date",$r.date),title:Z("Heading",$r.title),dek:Z("Dek",$r.dek),ctaText:U("Button",$r.ctaText),ctaHref:qe("Link")},_We,yb)};import{jsx as nr}from"react/jsx-runtime";import{phoneKey as vr,tabletKey as ua}from"efficient-easel/draw";import{keptByRow as _Ue}from"efficient-easel/screen/lib/document/style-fields";import{jsx as fme}from"react/jsx-runtime";import{OpacityIcon as RWe,StylesIcon as NWe}from"efficient-easel/icons";function Yw(){return{darken:le("Darken",fme(RWe,{}),od.min,od.max,od.step,od.fallback,od.unit),darkenStyle:fe("Darken style",fme(NWe,{}),L2,L2[0].value)}}var OWe={"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]"},AWe=`calc(${BY} - ${I3}*2)`,hme=`var(${HY},${I3})`,FMt=`pointer-events-none absolute inset-y-0 left-[${hme}] right-[${hme}] z-[6] mx-auto max-w-[var(${DY},${AWe.replace(/ /g,"_")})]`;function CR(e,t){return`pointer-events-auto absolute ${OWe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function gme(e){return IE.includes(e)?e:null}var LWe=IE,aH="top-right",IWe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],iH=["cards","dots","numbers","bar","squares"],_R="cards",RR={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},NR=["tabs","largeTabs"],bme=!0;function OR(e){return IWe.includes(e)?e:_R}function wme(e){return iH.includes(e)?e:_R}function FWe(e){return LWe.includes(e)?e:aH}var xme={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 yme(e,t){return CR(FWe(t),xme[OR(e)])}function vme(e){return`flex ${xme[OR(e)]}`}function kme(e){return e.shown!==!1&&(e.count??0)>1}function BWe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function HWe(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 Sme(e,t){let o=Array.from(t,BWe);return HWe(e,o)?e:o}import{deviceField as vd}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as RUe,ClockIcon as NUe,CropIcon as rue,GapIcon as OUe,MediaLayoutStackedIcon as fue,LineBetweenIcon as AUe,LineSolidIcon as LUe,ListIcon as IUe,NumberedListIcon as aue,ShadowIcon as FUe,StylesIcon as iue,TableIcon as sue,TargetIcon as BUe,WrapIcon as hue}from"efficient-easel/icons";var Fc=BE.map(e=>e.shape);function F1(e){return Fc.includes(String(e??""))?e:"auto"}function AR(e){let t=F1(e);return t==="auto"?"":D0(t)}var DWe={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]"},MWe={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]"};function zWe(e,t){return Fc.includes(String(t??""))?t===F1(e)?null:t:null}var WWe={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]!"};function UWe(e){return Fc.includes(String(e??""))?e:null}function Tme(e,t,o){let n=UWe(o),r=zWe(e,Fc.includes(String(t??""))?t:n);if(r===null&&n===null)return AR(e);let a=F1(e);return[r===null?AR(e):a==="auto"?"":DWe[a],r===null?"":MWe[r],n===null?"":WWe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as gue,VIEW_KEY_ACCESS as Bc,group as pg,phoneTwinFields as Hc}from"efficient-easel/screen/lib/document/box-fields";var GWe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},$We=T2.map(e=>({value:e.value,picture:oC(GWe[e.value])}));function LR(e,t){return yo("Separator",e,$We,t,{resolve:wK})}import{jsx as VWe}from"react/jsx-runtime";import{cloneElement as KWe}from"react";import{PaddingXIcon as YWe}from"efficient-easel/icons";import{deviceField as jWe}from"efficient-easel/screen/lib/document/device-fields";function Eme(){let e=fe(cte,VWe(YWe,{}),Qj,eq);return jWe("desktop",{...e,render:t=>{let o=e.render({...t,value:ZE(t.value),onChange:n=>t.onChange(oq(n))});return KWe(o,{hint:u(tq)})}})}import{newNodeId as sH}from"efficient-easel/draw";var Pme=["First row","Second row","Third row"],qWe="Write the words for this row.",Cme=e=>({type:"Text",props:{...Ge,id:sH("Text"),tag:"p",text:e}}),XWe=(e,t)=>({type:we,props:{...ze,id:sH(we),...t?{startsOpen:!0}:{},rowTitle:[Cme(e)],content:[{type:"Text",props:{...Tt,id:sH("Text"),tag:"p",text:qWe}}]}}),ZWe=e=>!Array.isArray(e)||e.length===0;function _me(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:Pme.map((r,a)=>XWe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==we||!ZWe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(Pme[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[Cme(i)]}}});return o?{...e,content:n}:e}var B1="rowStyle",Rme=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function Nme(e){return e==="numbered"||e==="chevron"?e:"plain"}var IR="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",FR="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",BR="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",Ome="border-t border-line",Ame="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",Lme="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as JWe}from"efficient-easel/screen/lib/content/view-tiers";var HR=kn.Flex,Ime={label:"Box",fields:HR,phoneOrder:{prop:JWe("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 Fme}from"react/jsx-runtime";import{isNode as QWe}from"efficient-easel/data";import{useEasel as eUe}from"efficient-easel/easel";import{PhoneOrderField as tUe}from"efficient-easel/fields";import{slotChildRowName as oUe}from"efficient-easel/draw";import{deviceField as nUe}from"efficient-easel/screen/lib/document/device-fields";function rUe(){try{let e=eUe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!QWe(a)||typeof t[a.type]?.render!="function"?!1:fr(a.props?.id)!==void 0):[],r=n.map(a=>a.props.id);return{blocks:n,ids:r,labelOf:a=>t[a]?.label??a}}catch{return null}}function aUe({value:e,onChange:t,readOnly:o}){let n=rUe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return Fme(tUe,{stored:"ids",value:e,ids:a,onChange:t,readOnly:o,noun:"block",hint:u("The order the blocks stack in on a phone. Only the look moves: the Tab key and screen readers keep the desktop order."),itemLabel:s=>oUe(r[s],i,Wo,void 0,Iee)})}function Bme(){return nUe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>Fme(aUe,{value:e,onChange:t,readOnly:o})})}import{jsx as z1}from"react/jsx-runtime";import{SettingsDefaultReset as fUe,SettingsField as hUe}from"efficient-easel/panel";import{Segmented as gUe}from"efficient-shell/ui";import{SwapIcon as bUe}from"efficient-easel/icons";import{describedAs as wUe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as xUe}from"efficient-easel/screen/lib/document/device-fields";var H1="Mirror cards",D1="off",lH=[{value:D1,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],Hme={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function Ju(e){return e==="even"||e==="odd"?e:null}function Dme(e){return Ju(e)??void 0}function M1(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function cg(e,t,o){return!t||e.direction!=="row"||o||Fm("row",e.separator)||e.loop==="scroll"||e.line===!0||ps(e)||S3(e.columns)!==""||RK(e.columnsTablet)!==""?!1:!(cs(e.share)===""&&P0(e.wrap)!=="")}function Mme(e,t){let o=Ju(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var zme="view-wide:flex-row-reverse",iUe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},sUe={left:"view-wide:text-right!",right:"view-wide:text-left!"},lUe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},dUe={start:"view-wide:items-end!",end:"view-wide:items-start!"},cUe={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!"},DR=(e,t)=>(typeof t=="string"?Ys(e,t):void 0)??"";function dH(e,t,o){return e?[DR(iUe,t),DR(sUe,o)].filter(Boolean).join(" "):""}function Wme(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=kK(o,r,void 0).tablet;return[DR(lUe,o),a?cUe[a]:""].filter(Boolean).join(" ")}return t==="column"?DR(dUe,n):""}function cH(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||ps(e)?!1:S3(e.columns)===""}function MR(e,t){let o=Ju(e.mirrorCards);return o&&cH(e,t)?{mirror:o}:null}import{isNodeList as Yme}from"efficient-easel/data";var Ume=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],Gme=[{value:"half",label:"Half"},{value:"third",label:"One third"}],$me=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function pUe(e){return e==="rows-left"||e==="rows-right"?e:"columns"}var mUe={"rows-left":"even","rows-right":"odd"},uUe={half:"equal",third:"bigRight"};function zR(e){let t=pUe(e?.arrangement);if(t==="columns")return null;let o=e?.imageWidth==="third"?"third":"half";return{mirror:mUe[t],row:{share:uUe[o],phoneReverse:e?.phoneOrder==="words"}}}var Vme={ProcessSteps:{slot:"boxes",hand:zR}},Kme=(e,t,o)=>Yme(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function jw(e,t){let o=zP(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===we&&Kme(o,Re,t)){let s=ed(e,o.props?.id)?.inCopy===!0;return MR(ol(o.props??{},s),s)}let i=Ys(Vme,a);if(i&&Kme(o,i.slot,t))return i.hand(o.props??{})}let n=bE(e,t),r=n&&typeof n.type=="string"?Ys(Vme,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function jme(e){let t=e?.[Re];return Yme(t)&&t.some(o=>o?.type===we)}var qme="mirrorCardsIdle",pH="mirrorCardsMirrors",Xme={[pH]:(e,t)=>{let o=ed(t.appState,e.props?.id);if(o===void 0)return;let n=ol(e.props??{},o.inCopy),r=jw(t.appState,e.props?.id);if(r){let a=r.row?{...n,direction:"row",share:r.row.share}:n;return r.mirror!==null&&cg(a,!0,Vp(a).desktop)}return cg(n,M1(o),Vp(n).desktop)&&Ju(n.mirrorCards)!==null},[qme]:(e,t)=>{let o=ed(t.appState,e.props?.id);if(o===void 0)return;let n=ol(e.props??{},o.inCopy);return jw(t.appState,e.props?.id)?!0:cg(n,M1(o),Vp(n).desktop)?!1:!(cH(n,o.inCopy)&&jme(n))}};function yUe(e=!1){return lH.map(t=>({value:t.value,label:u(t.label),title:t.value===D1?void 0:u(Hme[t.value]),disabled:e}))}function vUe({value:e,onChange:t,readOnly:o}){let n=Ju(e)??D1;return z1(hUe,{label:u(H1),icon:z1(bUe,{}),action:z1(fUe,{words:_E()?.panel,label:u(H1),changed:n!==D1,detail:u("Off"),onReset:()=>t(void 0)}),children:z1(gUe,{size:"sm",block:!0,label:u(H1),value:n,onChange:r=>t(Dme(r)),options:yUe(o===!0)})})}function Zme(){return lt(xUe("desktop",{type:"custom",...wUe({},{type:"radio",label:H1,options:lH.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>z1(vUe,{value:e,onChange:t,readOnly:o})}),{not:{context:qme,is:!0}})}import{jsx as kUe}from"react/jsx-runtime";import{FilterIcon as SUe}from"efficient-easel/icons";import{deviceField as TUe}from"efficient-easel/screen/lib/document/device-fields";var eue="showForUnoffered",tue={[eue]:e=>KP().length===0&&Q2(e.props?.[J2])===void 0},EUe="Show for",PUe="All";function CUe(e,t){if(!e)return;let o=KP().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 oue(){let e=fe(EUe,kUe(SUe,{}),[{label:PUe,value:""}],"");return lt(TUe("desktop",{...e,render:t=>e.render({...t,value:Q2(t.value)?.slug??"",onChange:o=>t.onChange(CUe(o,t.value))})}),{not:{context:eue,is:!0}})}var Jme=new WeakMap;function nue(e,t){let o=e[J2];if(!o)return e;let n=KP(),r=Q2(t?.[J2]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=Jme.get(o);i||Jme.set(o,i=new Map);let s=`${UJ()}\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=Qme.get(e);d||Qme.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[J2]:l}),c}var Qme=new WeakMap;var lue=dK,due={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},HUe={field:"direction",is:"tabs"},DUe={field:"line",in:[!0,!1]},MUe={field:"anchor",set:!0},mH=["fixed","screen","fill"],zUe={not:{any:[{field:"sectionHeightMode",in:mH},{field:"sectionHeightModeTablet",in:mH},{field:"sectionHeightModePhone",in:mH}]}},WUe={context:"parent.line",is:!0},mg={not:{field:"direction",is:"accordion"}},cue={field:"direction",is:"accordion"},pue={any:[mg,{not:{field:B1,in:["numbered","chevron"]}},{field:"columns",in:[...NK]},{field:"phoneRow",in:[...OK]}]},bue="notAccordionRow",UUe={not:{context:bue,is:!0}},GUe={[bue]:(e,t)=>t.parent?.props?.direction!=="accordion"},fH={field:"direction",is:"row",default:"row"},ug={not:PY},gg={all:[fH,ug,{not:{field:"separator",in:T2.map(e=>e.value)}},{not:{field:"line",is:!0}}]},$Ue={field:"direction",is:"column"},wue={all:[gg,...["columns",ua("columns")].map(e=>({not:{field:e,in:Array.from({length:pE},(t,o)=>o+cE)}}))]},VUe={all:[ug,{not:{all:[fH,{field:"separator",in:T2.map(e=>e.value)}]}}]},uH={not:{all:[gg,{field:"columns",in:Array.from({length:pE},(e,t)=>t+cE)}]}},KUe="sharedColumnsFits",xue="sharedColumnsMisfit",yue="sharedColumnsDraws",vue="sharedColumnsPhoneDraws";function hg(e,t){return ol(e.props??{},ed(t.appState,e.props?.id)?.inCopy!==!1)}var YUe={[KUe]:(e,t)=>Z_(hg(e,t)),[xue]:(e,t)=>!Z_(hg(e,t)),[yue]:(e,t)=>Vp(hg(e,t)).desktop,[vue]:(e,t)=>Vp(hg(e,t)).phone};function mue(e){return{all:[{not:{context:xue,is:!0}},{any:[U4,{field:e,set:!0}]}]}}var fg={not:{context:yue,is:!0}},qw={not:{context:vue,is:!0}},kue="sharedRowsDraws",jUe={[kue]:(e,t)=>J_(hg(e,t))&&jw(t.appState,e.props?.id)?.row===void 0},W1={not:{context:kue,is:!0}},qUe={any:[fg,qw]},hH=pK,XUe={not:{context:pH,is:!0}},Sue="rowHanded",ZUe={not:{context:Sue,is:!0}},JUe={[Sue]:(e,t)=>{let o=jw(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},uue={all:[mg,hH,fg,qw,XUe]},QUe={field:"direction",is:"row"},eGe={field:"align",in:["start","center","end"]},tGe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function oGe(){let{darken:e,darkenStyle:t}=Yw();return{...Hc("darken",e,Bc),...Hc("darkenStyle",t,Bc)}}var Tue={not:{all:[gg,{field:ua("columns"),in:Array.from({length:pE},(e,t)=>t+cE)}]}};function nGe(){let e=ae(gue,!1,nr(hue,{})),t=o=>{let n=k3(o);return n===void 0?void 0:n==="wrap"};return{...Th(),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 rGe(){let e=ae(gue,!0,nr(hue,{})),t=o=>{let n=k3(o);return n===void 0?void 0:n==="wrap"};return{...Th(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!AK(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var Eue={hint:$m},Pue={all:[hH,{any:[$Ue,{all:[gg,Tue,{not:{all:[wue,{field:ua("share"),set:!0}]}}]}]}]},aGe=lt(vd("desktop",le("Narrows below",nr(fue,{}),wh.min,wh.max,wh.step,$m,{kind:"breakpoint"},{clear:Eue,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),Pue);function iGe(e,t){let o=e;return!(xh in o)||t.direction!=="column"?e:{...o,[xh]:aGe}}var Cue={fields:Be({_gContent:pg("Content"),rowTitle:HR.rowTitle,content:HR.content,_gCardDisplay:pg("Display"),cardDisplay:PC("desktop"),cardDisplayTablet:PC("tablet"),cardDisplayPhone:PC("mobile"),showFor:oue(),_gLayout:pg("Layout"),direction:xC("Flex"),tabShape:yo("Tab shape",nr(iue,{}),NR.map(e=>({label:RR[e],value:e,picture:JQ[e]})),"tabs",{columns:2,cell:br}),mirrorCards:Zme(),[xh]:vd("desktop",le("Stacks below",nr(fue,{}),wh.min,wh.max,wh.step,$m,{kind:"breakpoint"},{clear:Eue,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[F2]:Eme(),startsOpen:vd("desktop",ae("Starts open",!1,nr(RUe,{}))),[B1]:vd("desktop",yo("Row style",nr(aue,{}),Rme.map(e=>({...e,picture:e.value==="numbered"?nr(aue,{}):nr(IUe,{})})),"plain",{columns:2})),label:Xo(Q("Tab name")),...ci("Flex"),...Hc("justify",eC(),Bc),...Hc("align",tC(),Bc),...(()=>{let e=Hc("wrap",Th(),Bc,{phoneRow:rGe()}),t=Hc("wrap",Th(),Bc,{phoneRow:nGe()});return{wrap:t.wrap,[ua("wrap")]:t[ua("wrap")],[vr("wrap")]:e[vr("wrap")]}})(),[vr("order")]:Bme(),...Hc("boxShape",vw("Box shape",nr(rue,{}),M0(Fc),"shape","auto"),Bc,{phoneRow:vw("Box shape",nr(rue,{}),M0(Fc),"shape","auto",{phoneRest:e=>F1(e)})}),[tE]:vd("desktop",oQ(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:LR(nr(AUe,{size:18}),"none"),[X0]:vd("desktop",yo("Card style",nr(iue,{}),Fq.map(e=>({...e,picture:eee[e.value]})),"table",{columns:2,cell:br})),share:vd("desktop",hee()),[ua("share")]:wee(),[vr("share")]:bee(),[$p]:vd("desktop",fe(S6,nr(sue,{}),[...Sie],zv)),[vr($p)]:vd("mobile",fe(S6,nr(sue,{}),[...Tie],zv)),...xee(),...Hc("blockSpacing",gee(),Bc),line:ae("Line",!1,nr(LUe,{}),"A line across the blocks, with a dot on each."),upcoming:ae("Upcoming",!1,nr(NUe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:fe("Join",nr(OUe,{}),mP,pP),_gShadow:pg("Shadow"),...Hc("shadow",ae("Shadow",!1,nr(FUe,{})),Bc),...Hc("fillColor",kee(),Bc),[Ia]:Gr("Fill content","colour"),[YE]:_Ue("fillColor"),_gBackground:pg("Background image"),bgImage:vd("desktop",ot("Image","image/*")),bgImagePhone:vd("mobile",ot("Image","image/*")),[Xn]:Gr("Image content","image",{content:!0}),...oGe(),placement:ad("Content position"),_gLink:pg("Link"),link:Xu(qe("Link to")),[Yo]:Ic(),_gJump:pg("Anchor"),jumpHighlight:ae("Highlight when a link jumps here",!1,nr(BUe,{}),"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"],lue],[[vr("share")],{all:[due,qw]}],[[$p],mue($p)],[[vr($p)],mue(vr($p))],[[vr("wrap")],{all:[due,ug,qw,W1]}],[[vr("order")],{all:[gg,qw,fg]}],[["phoneRow"],qw],[[B1],{all:[cue,{not:{field:B1,is:"chevron"}}]}],[["tabShape"],HUe],[["rowTitle","startsOpen"],UUe],[["align","blockSpacing",ua("blockSpacing"),vr("blockSpacing")],mg],[[ua("justify"),vr("justify")],{all:[ug,uue,W1]}],[[ua("align"),vr("align")],{all:[QUe,eGe,uue]}],[[ua("wrap")],{all:[ug,uH,Tue,fg,mg,W1]}],[[ua("shadow"),vr("shadow")],hH],[[ua("darken"),vr("darken"),ua("darkenStyle"),vr("darkenStyle")],{all:[lue,tGe]}],[["separator"],fH],[[X0],{field:X0,set:!0}],[["columns"],{any:[gg,cue]}],[[ua("columns")],gg],[[xh],Pue],[[ua("gap")],{all:[VUe,pue]}],[["gap",vr("gap")],pue],[["justify"],{all:[ug,qUe,mg,W1]}],[["wrap"],{all:[ug,uH,fg,mg,W1]}],[["share"],{all:[uH,fg,mg]}],[[ua("share")],{all:[wue,fg]}],[["line"],DUe],[["upcoming"],WUe],[["jumpHighlight"],MUe],[["boxShape",ua("boxShape"),vr("boxShape")],zUe],[["direction","share",vr("order")],ZUe],[["join"],v4],[[F2],v4]]),resolveData:(e,t)=>{let o=e.props,n=o[X0];return t.changed?.[X0]===!0&&Bq(n)?{...e,props:Hq(o,n,we,Re)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:_me(o)}:e},resolveFields:(e,t)=>{let o=ed(t.appState,e.props?.id)?.inCopy===!0,n=o&&bE(t.appState,e.props?.id)===null;return iGe(dGe(cGe(nue(pGe(e,{...t,fields:Ua(t.fields,e,t)}),e.props),hg(e,t),o),n),e.props)},showWhenFacts:{...Wa,...Bee,...Xme,...JUe,...YUe,...jUe,...tue,...GUe}},sGe=lt(Aee,U4),lGe=["darken","darkenStyle",oE,dh];function dGe(e,t){if(!t)return e;let o={...e};for(let n of lGe){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function cGe(e,t,o=!1){let n=e;return lh in n&&ps(t)&&o?{...n,[lh]:lt(Lee,Fee)}:!(lh in n)||ps(t)?e:{...n,[lh]:sGe}}function pGe(...[e,t]){let{fields:o}=t;{if(ps(hg(e,t))){let n=Ap({fallback:{top:Oi.desktop,bottom:Oi.desktop,left:Oi.side,right:Oi.side},tablet:!0,siteSide:!0});return dv(o,n)}return e.props.padV2!==!0?dv(o,Ap({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as U1}from"react/jsx-runtime";var mGe=/^https?:\/\//i;function _ue(e){let t=(e.href??"").trim(),o=(e.linkLabel??"").trim();return{role:e.role??"",city:e.city??"",country:e.country??"",address:e.address??"",hq:e.hq==="true",lat:n4(e.lat),lng:n4(e.lng),...t&&o&&mGe.test(t)?{href:t,linkLabel:o}:{}}}function gH(e){let t=o=>typeof o=="string"?o:"";return{badge:e.hq?"HQ":"",role:t(e.role),city:t(e.city),country:t(e.country),address:t(e.address),phone:t(e.phone),...e.href&&e.linkLabel?{href:e.href,linkLabel:e.linkLabel}:{}}}function Rue(e){return[e.city,e.country,e.address,e.role].map(t=>typeof t=="string"?t.replace(/[=*]/g,"").trim():"").filter(Boolean).join(" ")}var Xw={sectionNumber:"",heading:"",tagline:"",mapTheme:"auto"};function Nue(e){let t=[];return e.forEach((o,n)=>{rc(o.lat,o.lng)&&t.push({key:String(n),label:o.city||o.role||"Office",lat:o.lat,lng:o.lng,glyph:"",tone:"",...o.hq?{badge:"HQ"}:{}})}),t}import{HeadquartersIcon as gGe,LayoutIcon as bGe,LocationIcon as wGe,SearchIcon as xGe,ThemeIcon as yGe}from"efficient-easel/icons";import{group as xH}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as UR}from"efficient-easel/screen/lib/document/device-fields";import{createContext as uGe,useContext as fGe}from"react";var Oue=uGe(null),X7t=Oue.Provider,Aue=()=>fGe(Oue),WR=fE;function Lue(e){let t=[];for(let o of e)o.placement!=="located"&&o.placement!=="approximate"||o.lat===null||o.lng===null||t.push({key:o.id,label:o.name,lat:o.lat,lng:o.lng,glyph:"",tone:"",approximate:o.placement==="approximate"});return t}function hGe(e){return e===null||!Number.isFinite(e)?"":e<10?`${e.toFixed(1)} km`:`${Math.round(e)} km`}function Iue(e,t){let o=[e.city,[e.state,e.postcode].filter(Boolean).join(" ")].filter(Boolean).join(" ");return{name:e.name,address:e.address,place:o,distance:t?hGe(e.distanceKm):"",phone:e.phone,phoneHref:e.phone?`tel:${e.phone.replace(/[^\d+]/g,"")}`:"",website:e.website.replace(/^https?:\/\//,"").replace(/\/$/,""),websiteHref:e.website&&!/^[a-z][a-z\d+.-]*:/i.test(e.website)?`https://${e.website}`:e.website}}var bH=[{key:"name",label:"Dealer name",plain:!0},{key:"address",label:"Address"},{key:"place",label:"City \xB7 state \xB7 postcode",plain:!0},{key:"distance",label:"Distance",plain:!0},{key:"phone",label:"Phone"},{key:"phoneHref",label:"Phone link",kind:"link"},{key:"website",label:"Website",plain:!0},{key:"websiteHref",label:"Website link",kind:"link"}],Fue={key:sh,label:"Dealers",blocks:["Footprint"],fields:bH};function Bue(e){return[e.name,e.city].filter(Boolean).join(", ")}var Qu={sectionNumber:W.sectionNumber,heading:`${W.heading}
16
16
  *${W.accent}*`,tagline:W.body},wH=kn.Footprint,Hue={label:"Locations Map",fields:wH,defaultProps:{sectionNumber:"",heading:"",tagline:"",offices:[],mapTheme:Xw.mapTheme,padTop:120,padBottom:120,search:!1,searchHint:"",noMatchText:"",listPosition:"below",showDistance:!0}};var Mue={field:ds,is:sh,default:""},vGe={field:"listPosition",in:["left","right"],default:"below"},zue={any:[Mue,vGe]},Due={all:[zue,{field:"search",is:!0,default:!1}]};v2([Fue]);var Wue={fields:{_gContent:xH("Section"),sectionNumber:U("Section number",Qu.sectionNumber),heading:Z("Heading",Qu.heading),tagline:Z("Body",Qu.tagline),_gOffices:xH("Offices"),[ds]:Xt("Office content","Manual"),offices:{type:"array",label:"Offices",arrayFields:{role:Q("Role"),city:Q("City"),country:Q("Region \xB7 country"),address:ve("Address"),phone:Q("Phone"),group:Q("Group"),hq:ae("HQ",!1,U1(gGe,{})),geocode:Uo(kb,{label:"Coordinates"})},defaultItemProps:{role:"Sales & Distribution",city:"City",country:"Country",address:"",phone:"",group:"",hq:!1,lat:0,lng:0},getItemSummary:e=>e?.city||"Office"},...wH,mapTheme:Ee("Map theme",U1(yGe,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],Xw.mapTheme),_gList:xH("List"),listPosition:UR("desktop",Ee("Position",U1(bGe,{}),[{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Below",value:"below"}],"below")),search:UR("desktop",lt(ae("Search",!1,U1(xGe,{})),zue)),searchHint:UR("desktop",lt(Xo(U("Hint","Type a postcode or address")),Due)),noMatchText:UR("desktop",lt(Xo(U("No match","No place found. Try another postcode.")),Due)),showDistance:lt(ae("Distance",!0,U1(wGe,{})),Mue)},resolveData:async(e,t)=>{let o=t?.changed,n=e.props;if(o?.listPosition===!0||o?.[ds]===!0){let s=jK(n);s!==n&&(e={...e,props:s})}let r=e.props,a=r.offices??[];if(!pb(a))return e;let i=await mb(a,s=>[s.address,s.city,s.country].map(l=>String(l??"").replace(/\*/g,"").trim()).filter(Boolean).join(", "));return{...e,props:{...r,offices:i}}},resolveFields:(e,{fields:t})=>nt(Zt("Footprint",t,e.props,{hides:["offices"]}),e.props.headPlacement,st.Footprint.headRows)};import{jsx as Gue}from"react/jsx-runtime";import{ColumnsIcon as $ue}from"efficient-easel/icons";import{deviceField as Vue}from"efficient-easel/screen/lib/document/device-fields";var yH=kn.Grid,Uue={label:"Grid",fields:yH,defaultProps:{columns:"3",content:[]}};var Kue={fields:{columns:Vue("desktop",le("Columns",Gue($ue,{}),1,nj,1,aj)),mobileColumns:Vue("mobile",le("Columns",Gue($ue,{}),z3,rj,1,z3)),...ci("Grid"),content:yH.content}};import{jsx as kGe}from"react/jsx-runtime";var Yue={fields:{text:Z("Heading",W.heading),level:fe("Level",kGe(aa,{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 kr}from"react/jsx-runtime";var vH="bottom-right",kH=["outline","solid","square","bare"],SH="outline",jue={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},que=!1,GR=["prev","next"],Xue={prev:"Previous slide",next:"Next slide"};function SGe(e){return kH.includes(e)?e:SH}function TGe(e){return gme(e)??vH}var EGe="flex-row items-center gap-2";function Zue(e){return CR(TGe(e),EGe)}var PGe={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 Jue(e){return PGe[SGe(e)]}function Que(e){return e.shown===!0&&(e.count??0)>1}function Zw(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 CGe,EyeIcon as TH,OpacityIcon as _Ge,PhoneIcon as tfe,PlayIcon as RGe,SlideArrowsBareIcon as NGe,SlideArrowsRoundIcon as OGe,SlideArrowsSquareIcon as AGe,SlidePickerBarIcon as LGe,SlidePickerCardsIcon as IGe,SlidePickerDotsIcon as FGe,SlidePickerNumbersIcon as BGe,SlidePickerSquaresIcon as HGe,SquareIcon as ofe}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as DGe}from"efficient-shell/icons/efficient-looks";import{group as ef}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as EH,deviceNote as UGe}from"efficient-easel/screen/lib/document/device-fields";var $R=kn.Hero,efe={label:"Hero",drawsPictures:!0,fields:$R,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var MGe=DGe,zGe={cards:kr(IGe,{}),dots:kr(FGe,{}),numbers:kr(BGe,{}),bar:kr(LGe,{}),squares:kr(HGe,{})},WGe={outline:kr(OGe,{}),solid:kr(MGe,{}),square:kr(AGe,{}),bare:kr(NGe,{})},nfe={fields:{_dDevice:UGe(),_gContent:ef("Content"),slides:$R.slides,strip:$R.strip,_gStyle:ef("Style"),alignment:eQ(),_gTexture:ef("Texture"),showTexture:ae("Show texture",hJ,kr(TH,{})),textureColor:Vle,textureOpacity:le("Texture opacity",kr(_Ge,{}),0,100,1,40,"%"),_gLayout:ef("Layout"),...R5(),_gAutoplay:ef("Auto-slide"),autoplay:ae("Auto-advance slides",!1,kr(RGe,{})),autoplayInterval:le("Still time per slide",kr(CGe,{}),2,15,1,6,"s"),_gPicker:ef("Slide picker"),showPicker:ae("Show slide picker",bme,kr(TH,{})),pickerShape:yo("Slide picker shape",kr(ofe,{}),iH.map(e=>({label:RR[e],value:e,picture:zGe[e]})),_R),pickerPlacement:ad("Slide picker placement",{fallback:aH}),_gArrows:ef("Arrows"),showArrows:ae("Show arrows",que,kr(TH,{})),arrowsShape:yo("Arrows shape",kr(ofe,{}),kH.map(e=>({label:jue[e],value:e,picture:WGe[e]})),SH),arrowsPlacement:ad("Arrows placement",{fallback:vH}),_gPhone:EH("mobile",ef("On a phone")),phoneUpDown:EH("mobile",Ee(pJ,kr(tfe,{}),uJ(),dJ)),phoneSideways:EH("mobile",Ee(mJ,kr(tfe,{}),fJ(),cJ))}};import{jsx as afe}from"react/jsx-runtime";import{WidthIcon as ife}from"efficient-easel/icons";import{BOX_NUDGE_ROW as sfe,BOX_WIDTH_ROW as CH,group as _H}from"efficient-easel/screen/lib/document/box-fields";var PH={...kn.HeroGroup,content:{...kn.HeroGroup.content,allow:YV}},rfe={label:KV,inline:!0,fields:PH,defaultProps:{placement:GY,nudgeX:0,nudgeY:0,content:[]}};var lfe={fields:Be({_gContent:_H("Content"),name:Xo(xb(wr(Q("Box name",W.boxName)))),content:PH.content,_gLayout:_H("Layout"),placement:ad("Placement",{pointsFor:lee}),width:le("Width",afe(ife,{}),H3,D3,5,$Y,CH),...id(CH,"width"),direction:xC("HeroGroup"),...ci("HeroGroup"),justify:eC(),align:tC(),wrap:Th(),_gNudge:_H("Nudge"),...tQ({keys:{x:"nudgeX",y:"nudgeY"},min:-B3,max:B3,label:null,length:sfe}),...id(sfe,"nudgeX"),...Ap({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(FE(o?.data,n)===0)return t;let r={...t};return r.width=le("Width",afe(ife,{}),H3,D3,5,VY,CH),r}};import{jsx as cfe}from"react/jsx-runtime";import{MediaIcon as $Ge,OpacityIcon as VGe}from"efficient-easel/icons";import{group as VR}from"efficient-easel/screen/lib/document/box-fields";import{deviceNote as KGe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as GGe}from"efficient-shell/format";var RH=kn.HeroSingle,dfe={label:"Hero Single",drawsPictures:!0,fields:RH,defaultProps:{mediaType:La.HeroSingle,[Aa.image]:GGe,tintColor:fs,tintOpacity:0,overlay:100,overlayColor:fs,overlayPosition:kh}};var pfe=ab("video",La.HeroSingle),YGe=ab("image",La.HeroSingle),mfe=[...A5,"tintColor","tintOpacity"],ufe={fields:BP({_dDevice:KGe(),boxNotice:F5("HeroSingle"),boxes:RH.boxes,_gStyle:VR("Style"),overlay:le("Overlay",cfe(VGe,{}),0,100,5,100,"%"),overlayColor:EB.overlayColor,overlayPosition:EB.overlayPosition,_gLayout:VR("Layout"),...R5({tabletNumber:!1}),_gMedia:VR("Media"),mediaType:Ee("Type",cfe($Ge,{}),TC,La.HeroSingle),mediaLayout:Qh.mediaLayout,mediaLayoutPhone:Qh.mediaLayoutPhone,...N5,videoSource:Iu.videoSource,mediaVideo:ot(j2,"video/*",q2),youtubeUrl:Iu.youtubeUrl,videoPlayback:Iu.videoPlayback,poster:ot("Video poster","image/*","Upload a poster still"),_gTint:VR("Image tint"),tintColor:s1(),tintOpacity:i1(),...l1},{parts:{media:["mediaType",...O5,"videoSource","mediaVideo","youtubeUrl","videoPlayback","poster"],image:mfe,image2:kw},onlyFor:{image:[...mfe,"_gTint",...kw],video:["videoSource","videoPlayback","poster"]},rules:{mediaVideo:{all:[pfe,{field:"videoSource",is:"upload",default:cl}]},youtubeUrl:{all:[pfe,{field:"videoSource",is:"youtube",default:cl}]},...L5(YGe)},fallback:La.HeroSingle})};import{jsx as G1}from"react/jsx-runtime";import{BlockVideoIcon as qGe,ClockIcon as XGe,ImageIcon as ZGe,MediaIcon as JGe,PlayIcon as QGe}from"efficient-easel/icons";import{group as KR}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Jw}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as jGe}from"efficient-shell/format";var NH=kn.HeroSlide,ffe={label:"Hero Slide",fields:NH,defaultProps:{mediaType:La.HeroSlide,videoSpeed:100,[Aa.image]:jGe,tintColor:fs,overlay:0}};var tf=ab("video",La.HeroSlide),e$e=ab("image",La.HeroSlide),hfe=[...A5,"tintColor","overlay"],gfe={fields:BP({_gContent:KR("Content"),name:Xo(xb(Q("Slide name",W.slideName))),process:Xo(U("Reel label","Label")),groupNotice:F5("HeroSlide"),groups:NH.groups,_gMedia:KR("Media"),mediaType:Ee("Type",G1(JGe,{}),TC,La.HeroSlide),mediaLayout:Qh.mediaLayout,mediaLayoutPhone:Qh.mediaLayoutPhone,videoSource:Iu.videoSource,mediaVideo:Jw("desktop",ot(j2,"video/*",q2,{frame:"videoFrame"})),mediaVideoPhone:Jw("mobile",ot(j2,"video/*",q2,{frame:"videoFramePhone"})),videoFramePhone:Ip(),mediaVideoAv1:Jw("desktop",ot(p4,"video/mp4",m4)),mediaVideoAv1Phone:Jw("mobile",ot(p4,"video/mp4",m4)),youtubeUrl:Iu.youtubeUrl,videoPlayback:Iu.videoPlayback,videoSpeed:le("Playback speed",G1(QGe,{}),25,100,5,100,"%"),loadingShows:See("Show while loading",G1(XGe,{}),{frame:G1(qGe,{}),image:G1(ZGe,{})}),videoFrame:Ip(),...N5,poster:Jw("desktop",ot("Image","image/*","Choose an image")),posterPhone:Jw("mobile",ot("Image","image/*","Choose an image")),_gTint:KR("Image tint"),tintColor:s1(),overlay:i1(),...l1,_gOverlay:KR("Overlay"),overlayColor:PB.overlayColor,overlayPosition:PB.overlayPosition},{parts:{media:["mediaType",...O5,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:hfe,image2:kw},onlyFor:{image:[...hfe,"_gTint",...kw],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:La.HeroSlide,rules:{mediaVideo:{all:[tf,{field:"videoSource",is:"upload",default:cl}]},mediaVideoPhone:{all:[tf,{field:"videoSource",is:"upload",default:cl}]},mediaVideoAv1:{all:[tf,{field:"videoSource",is:"upload",default:cl}]},mediaVideoAv1Phone:{all:[tf,{field:"videoSource",is:"upload",default:cl}]},youtubeUrl:{all:[tf,{field:"videoSource",is:"youtube",default:cl}]},videoSpeed:{all:[tf,{field:"videoSource",is:"upload",default:cl},{field:"videoPlayback",is:"background",default:DP}]},...L5(e$e),poster:{all:[tf,f4]},posterPhone:{all:[tf,f4]}}})};import{jsx as OH}from"react/jsx-runtime";import{phoneKey as t$e}from"efficient-easel/draw";import{CropIcon as bfe,ImageIcon as o$e}from"efficient-easel/icons";import{group as AH,phoneTwinFields as n$e}from"efficient-easel/screen/lib/document/box-fields";var wfe={fields:{_gImage:AH("Image"),src:ot("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>A2(t,e.fit,e.aspect,e[t$e("aspect")])}),alt:Xo(Q("Alt text")),rowField:Gr("Shows","image"),[Yo]:Ic(),...n$e("aspect",vw("Aspect ratio",OH(bfe,{}),M0(Fc),"image","16/9",{more:[Ile(Pj)]}),void 0,{phoneRow:vw("Aspect ratio",OH(bfe,{}),M0(Fc),"image","16/9",{phoneRest:Ij})}),fit:fe(UE,OH(o$e,{}),Sj(),"cover"),focal:Ip(),focalTablet:Ip(),focalPhone:Ip(),href:Xu(qe("Link")),_gStyle:AH("Style"),grayscale:Sw(),...Yw(),_gShape:AH("Shape"),corners:_ee(),...pee(aQ,"corners"),cornerSides:mee()},resolveFields:(e,t)=>Oee(Ua(t.fields,e,t),e,t),showWhenFacts:Wa};import{jsx as r$e}from"react/jsx-runtime";import{group as xfe}from"efficient-easel/screen/lib/document/box-fields";var yfe={fields:{_gContent:xfe("Content"),eyebrow:U("Chip label","Integrations"),title:Z("Heading",`Plays well with
17
17
  *your favourite apps.*`),body:Z("Body",""),apps:Hr("App chips",r$e(aa,{noun:"tag"}),"App name","verbatim"),_gStat:xfe("Stat & note"),statValue:U("Big stat","100s"),statLabel:U("Stat label",""),note:U("Footnote","")}};import{jsx as $1}from"react/jsx-runtime";import{keptByRow as a$e}from"efficient-easel/screen/lib/document/style-fields";import{CaseIcon as i$e,OpacityIcon as s$e,PlacementIcon as l$e,TextLinesIcon as vfe}from"efficient-easel/icons";import{group as Qw}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Dc,deviceNote as d$e}from"efficient-easel/screen/lib/document/device-fields";var kfe={fields:{_dDevice:d$e(),_gContent:Qw("Content"),eyebrow:U("Eyebrow",Rp.eyebrow),title:Z("Heading",Rp.title),body:Z("Subtitle",Rp.body),uppercase:ae("Uppercase heading",!1,$1(i$e,{})),_gBackground:Qw("Background images"),imageSrc:Dc("desktop",ot("Background image","image/*")),imageSrcMobile:Dc("mobile",ot("Background image","image/*")),_gLayout:Qw("Layout"),layout:yo("Text position",$1(l$e,{}),VX.map(e=>({...e,picture:oee[e.value]})),$X,{columns:2,cell:bC}),heightDesktop:CB("desktop"),heightMobile:CB("mobile"),copyShareDesktop:Dc("desktop",le("Text height",$1(vfe,{}),dl.min,dl.max,dl.step,dl.desktop,"%")),copyShareMobile:Dc("mobile",le("Text height",$1(vfe,{}),dl.min,dl.max,dl.step,dl.mobile,"%")),sticky:a$e("stickTop"),overlay:le("Overlay",$1(s$e,{}),0,100,5,60,"%"),_gTextDesktop:Dc("desktop",Qw("Text style")),titleSizeDesktop:Dc("desktop",lv("Heading font size",32,120,1,96,"heading",{row:CP,view:"desktop"})),bodySizeDesktop:Dc("desktop",lv("Subtitle font size",12,28,1,17,"body",{row:_P,view:"desktop"})),_gTextMobile:Dc("mobile",Qw("Text style")),titleSizeMobile:Dc("mobile",lv("Heading font size",24,72,1,44,"heading",{row:CP,view:"phone"})),bodySizeMobile:Dc("mobile",lv("Subtitle font size",12,22,1,16,"body",{row:_P,view:"phone"})),...id(CP,"titleSizeDesktop",{phone:!0}),...id(_P,"bodySizeDesktop",{phone:!0}),_gButton:Qw("Button"),...kl,buttonColor:sd("Button color","#C9A461"),buttonTextColor:sd("Button text color","#000000")}};import{jsx as Sfe}from"react/jsx-runtime";import{ColumnsIcon as c$e,StylesIcon as p$e}from"efficient-easel/icons";import{group as Tfe}from"efficient-easel/screen/lib/document/box-fields";var Efe={fields:{_gContent:Tfe("Content"),eyebrow:U("Eyebrow",K0.eyebrow),eyebrowLook:fe("Eyebrow style",Sfe(p$e,{}),[...nl],Cp("KeyFeatures")),title:Z("Heading",K0.title),items:{type:"array",label:"Features",arrayFields:{label:ve("Feature label"),href:wr(Q("Link"))},defaultItemProps:{label:"",href:""},getItemSummary:e=>e?.label||"Feature"},_gStyle:Tfe("Style"),columns:le("Columns",Sfe(c$e,{}),2,4,1,3)}};import{jsx as m$e}from"react/jsx-runtime";import{readHidable as u$e}from"efficient-easel/draw";import{ThemeIcon as f$e}from"efficient-easel/icons";import{group as Pfe}from"efficient-easel/screen/lib/document/box-fields";var YR=e=>u$e(e).text;function h$e(e){return[YR(e.address).replace(/\s*\n+\s*/g,", "),YR(e.name),YR(e.state),YR(e.country)].map(t=>t.trim()).filter(Boolean).join(", ")}var Cfe={fields:{_gMap:Pfe("Map"),name:Q("Location name"),state:Q("State / Province"),country:Q("Country"),address:Z("Address"),geocode:Uo(kb,{label:"Coordinates"}),mapsUrl:Q("Directions link"),_gStyle:Pfe("Style"),mapTheme:Ee("Map theme",m$e(f$e,{}),[{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(!pb([o]))return e;let[n]=await mb([o],h$e);return{...e,props:{...e.props,lat:n.lat,lng:n.lng,geocode:n.geocode}}}};import{jsx as b$e}from"react/jsx-runtime";import{HeightIcon as w$e}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as x$e,group as y$e}from"efficient-easel/screen/lib/document/box-fields";var _fe="auto";var jR="custom",LH="#000000";function qR(e,t){return e===jR?{reverse:!1,color:(typeof t=="string"?t.trim():"")||LH}:{reverse:e!=="off",color:null}}var XR={reverse:{type:"select",label:"Logo color",options:[{label:"Auto contrast",value:_fe},{label:"As uploaded",value:"off"},{label:"Custom color",value:jR}]},customColor:lt(sd("Color",LH),{field:"reverse",is:jR})};var Rfe={fields:Be({src:ot("Logo image","image/*"),alt:Xo(Q("Alt text","Brand name","Read out in place of the picture, and shown if it can\u2019t load.")),href:Xu(qe("Link")),heightPx:le("Height",b$e(w$e,{}),Yq,jq,1,Km,"px"),...ml("align",{access:x$e}),...XR,_gText:y$e("Text"),rowField:Gr("Shows","text"),[Yo]:Ic()},[[["alt"],{field:"src",set:!0}]]),resolveFields:(e,t)=>Ua(t.fields,e,t),showWhenFacts:Wa};import{jsx as K1}from"react/jsx-runtime";import{BlackAndWhiteIcon as v$e,ColumnsIcon as k$e,HeightIcon as S$e,PaddingYIcon as T$e,StylesIcon as E$e}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as P$e,group as Ofe}from"efficient-easel/screen/lib/document/box-fields";var V1="plain",IH=[{label:"Plain",value:"plain"},{label:"Cards",value:"cards"},{label:"Marks",value:"marks"},{label:"Chips",value:"chips"}],Nfe=e=>Ra(IH,V1,e);var C$e=["items","heading","bandPadding"],_$e=["look"],R$e={field:"bandPadding",set:!0},N$e={field:ds,set:!0},Afe={not:{field:"look",is:"chips"}},O$e=Be({_gContent:Ofe("Content"),dataSource:Xt("Logo content","Manual"),heading:Z("Heading",dP.heading),items:{type:"array",label:"Logos",arrayFields:{src:ot("Image","image/*"),alt:Xo(Q("Name / alt"))},getItemSummary:e=>e.alt||e.src||"logo"},logos:lt(j3.logos,Sl),template:lt(j3.template,N$e),_gStyle:Ofe("Style"),columns:le("Columns",K1(k$e,{}),3,6,1,5),logoHeight:lt(le("Logo height",K1(S$e,{}),16,72,2,28,"px"),Afe),bandPadding:lt(le("Space above and below",K1(T$e,{}),16,120,4,40,"px"),R$e),grayscale:lt(ae("Black and white logos",!0,K1(v$e,{})),Afe),look:yo("Logo style",K1(E$e,{}),IH.map(e=>({...e,picture:tee[e.value]})),V1,{columns:2,cell:br}),...ml("align",{access:P$e})},[[C$e,Ri],[_$e,KK]]),Lfe={fields:O$e,resolveFields:(e,{fields:t})=>Zt("Logos",t,e.props,{hides:["logos"]}),resolveData:(e,t)=>{if(!t?.changed?.[ds])return e;let o=VK(e.props);return o===e.props?e:{...e,props:o}}};import{group as Y1}from"efficient-easel/screen/lib/document/box-fields";var Ro={headNum:W.sectionNumber,headTitle:W.headingAccent,headDesc:W.body,category:W.category,metaMiddle:"Section",readLabel:"0 min read",title:"Article *headline* goes here.",dek:"A short summary of the article goes here.",quote:"A short pull quote.",quoteAttribution:"\u2014 "+W.date,ctaText:"Begin reading",ctaHref:nc.href,imageLabel:"Featured *image*",metaPublished:W.date,metaReads:"0 min"},Ife={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 A$e=["image","title","dek","ctaHref","metaPublished"],Ffe={fields:_i({source:Uo(Kw),_nBound:lt(fl(yC),vC),_gHead:Y1("Section header"),headNum:U("Number",Ro.headNum),headTitle:Z("Heading",Ro.headTitle),headDesc:Z("Body",Ro.headDesc),_gMeta:Y1("Article"),category:U("Category",Ro.category),metaMiddle:U("Middle meta",Ro.metaMiddle),readLabel:U("Read time",Ro.readLabel),title:Z("Article title",Ro.title),dek:Z("Dek",Ro.dek),_gQuote:Y1("Pull quote"),quote:Z("Quote",Ro.quote),quoteAttribution:U("Attribution",Ro.quoteAttribution),_gLink:Y1("Link"),ctaText:U("Button",Ro.ctaText),ctaHref:qe("Link"),image:ot("Image","image/*"),imageLabel:U("Image label",Ro.imageLabel),_gOverlay:Y1("Image caption"),metaPublished:U("Published",Ro.metaPublished),metaReads:U("Reads in",Ro.metaReads)},A$e,yb),resolveFields:(e,{fields:t})=>nt(t,e.props.headPlacement,st.LongRead.headRows)};import{group as FH}from"efficient-easel/screen/lib/document/box-fields";var Bfe={fields:{_gContent:FH("Content"),eyebrow:U("Eyebrow",W.eyebrow),heading:Z("Heading",`Main heading
18
18
  *Highlight line*`),body:Z("Body",W.body),stats:{type:"array",label:"Stats",arrayFields:{value:Q("Number"),label:Q("Label")},getItemSummary:e=>e.label||e.value||"Stat"},_gMedia:FH("Media"),imageSrc:ot("Image","image/*"),_gStyle:FH("Style"),grayscale:Sw()}};import{jsx as L$e}from"react/jsx-runtime";import{TextLinesIcon as I$e}from"efficient-easel/icons";import{group as BH}from"efficient-easel/screen/lib/document/box-fields";var Mc={eyebrow:W.eyebrow,lead:"A short lead paragraph introducing this section \u2014 a sentence or two about its theme.",issueHeading:"In this issue",issueTotal:"\u2014 Articles in total"},Hfe={label:"Issue Header",defaultProps:{eyebrow:"",issueMeta:[],lead:"",issueHeading:"",issueList:[],issueTotal:""}};var Dfe={fields:{_gTop:BH("Top row"),eyebrow:U("Eyebrow",Mc.eyebrow),issueMeta:{type:"array",label:"Issue meta lines",arrayFields:{lead:ve("Bold word"),rest:ve("Rest")},getItemSummary:e=>[e?.lead,e?.rest].filter(Boolean).join(" ")||"Line"},_gLead:BH("Lead"),lead:Z("Lead",Mc.lead),_gIssue:BH("In this issue"),issueHeading:Z("Panel heading",Mc.issueHeading),issueList:Hr("Issue lines",L$e(I$e,{}),"Line","markup"),issueTotal:U("Total line",Mc.issueTotal)}};import{jsx as of}from"react/jsx-runtime";import{BlockColumnIcon as ZR,PlacementIcon as H$e,StateIcon as D$e,TemplateIcon as M$e,TextLinesIcon as z$e}from"efficient-easel/icons";import{group as bg}from"efficient-easel/screen/lib/document/box-fields";var HH=[{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"}],F$e=HH.map(e=>e.value),DH="spec-card",B$e={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 Mfe(e){return Be(e,Object.entries(B$e).map(([t,o])=>[[t],Oa("variant",F$e,DH,o)]))}var W$e=[...jX,"align"],zfe={fields:_i(Mfe({_gContent:bg("Content"),eyebrow:U("Chip label","In the product"),title:Z("Heading",`Seen from