efficient-storefront-blocks 0.120.1 → 0.120.2

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 KY,$a as YE,$b as uq,$c as $q,$d as yX,$e as WX,$f as yZ,$g as ib,$h as NJ,$i as Lp,$j as kQ,$k as Yo,$l as kee,$m as nte,$n as iu,A as yY,Aa as W0,Ab as eq,Ac as Pq,Ad as tb,Ae as kP,Af as G2,Ag as IZ,Ah as wJ,Ai as $J,Aj as gb,Ak as mC,Al as cee,Am as Dee,An as Ste,B as vY,Ba as ff,Bb as JE,Bc as Cq,Bd as $3,Be as TX,Bf as $2,Bg as FZ,Bh as m4,Bi as lb,Bj as aa,Bk as zQ,Bl as iv,Bm as Mee,Bn as hl,C as Dm,Ca as Qs,Cb as tq,Cc as _q,Cd as V3,Ce as EX,Cf as Eo,Cg as IP,Ch as HP,Ci as qP,Cj as v4,Ck as WQ,Cl as sv,Cm as zee,Cn as Tte,D as Zd,Da as HE,Db as QE,Dc as iP,Dd as K3,De as PX,Df as _P,Dg as BZ,Dh as DP,Di as de,Dj as hQ,Dk as nv,Dl as pee,Dm as H4,Dn as Ob,E as TY,Ea as bo,Eb as B2,Ec as Rq,Ed as dX,Ee as CX,Ef as lZ,Eg as HZ,Eh as xJ,Ei as fe,Ej as fQ,Ek as rv,El as ae,Em as Gee,En as Ete,F as T3,Fa as I3,Fb as V0,Fc as M3,Fd as cX,Fe as _X,Ff as si,Fg as dl,Fh as yJ,Fi as Op,Fj as k4,Fk as uC,Fl as id,Fm as RC,Fn as Pte,G as ed,Ga as DE,Gb as oq,Gc as Nq,Gd as pX,Ge as RX,Gf as sc,Gg as DZ,Gh as vJ,Gi as Te,Gj as S4,Gk as UQ,Gl as mee,Gm as $ee,Gn as IC,H as B0,Ha as el,Hb as nq,Hc as U2,Hd as mP,He as NX,Hf as V2,Hg as MZ,Hh as tu,Hi as VJ,Hj as T4,Hk as GQ,Hl as uee,Hm as Vee,Hn as Ab,I as Ni,Ia as mj,Ib as K0,Ic as Oq,Id as mX,Ie as _p,If as RP,Ig as FP,Ih as Ao,Ii as XP,Ij as Q2,Ik as $Q,Il as Ip,Im as Rb,In as Cte,J as EY,Ja as A2,Jb as rq,Jc as Aq,Jd as xf,Je as SP,Jf as J3,Jg as zZ,Jh as MP,Ji as pl,Jj as E4,Jk as R4,Jl as O4,Jm as D4,Jn as _te,K as PY,Ka as UE,Kb as aq,Kc as Lq,Kd as To,Ke as OX,Kf as dZ,Kg as a4,Kh as kJ,Ki as ZP,Kj as ev,Kk as VQ,Kl as kb,Km as Kee,Kn as Rte,L as CY,La as GE,Lb as iq,Lc as Iq,Ld as uP,Le as AX,Lf as rb,Lg as i4,Lh as SJ,Li as JP,Lj as bb,Lk as KQ,Ll as Mo,Lm as Yee,Ln as au,M as _Y,Ma as td,Mb as ol,Mc as Vm,Md as hX,Me as Zm,Mf as cZ,Mg as j2,Mh as zP,Mi as Sf,Mj as gQ,Mk as YQ,Ml as vC,Mm as M4,Mn as Fp,N as RY,Na as Oi,Nb as eP,Nc as Fq,Nd as hP,Ne as TP,Nf as Np,Ng as WZ,Nh as WP,Ni as rd,Nj as bQ,Nk as av,Nl as hee,Nm as lv,Nn as _f,O as _E,Oa as Dj,Ob as Cp,Oc as Z0,Od as fP,Oe as EP,Of as pZ,Og as UZ,Oh as TJ,Oi as KJ,Oj as ou,Ok as jQ,Ol as nt,Om as jee,On as Nte,P as RE,Pa as L2,Pb as cs,Pc as J0,Pd as bX,Pe as LX,Pf as mZ,Pg as BP,Ph as EJ,Pi as Ap,Pj as aC,Pk as qQ,Pl as Sb,Pm as NC,Pn as Ote,Q as NY,Qa as ds,Qb as sq,Qc as Bq,Qd as Ct,Qe as IX,Qf as yf,Qg as GZ,Qh as u4,Qi as ad,Qj as wQ,Qk as wr,Ql as A4,Qm as OC,Qn as Ate,R as OY,Ra as tl,Rb as lq,Rc as Hq,Rd as wX,Re as FX,Rf as uZ,Rg as $Z,Rh as sb,Ri as YJ,Rj as xQ,Rk as hC,Rl as Dr,Rm as qee,Rn as Lte,S as H0,Sa as Mj,Sb as dq,Sc as sP,Sd as A,Se as BX,Sf as hZ,Sg as VZ,Sh as q2,Si as w4,Sj as nu,Sk as XQ,Sl as fee,Sm as Xee,Sn as Ite,T as AY,Ta as Ep,Tb as cq,Tc as zq,Td as Ko,Te as PP,Tf as NP,Tg as KZ,Th as PJ,Ti as jJ,Tj as yQ,Tk as fC,Tl as gee,Tm as AC,Tn as Fte,U as LY,Ua as $E,Ub as pq,Uc as W3,Ud as Y3,Ue as ll,Uf as fZ,Ug as YZ,Uh as CJ,Ui as qJ,Uj as tv,Uk as ZQ,Ul as bee,Um as Zee,Un as Bte,V as NE,Va as zj,Vb as Y0,Vc as Wq,Vd as ne,Ve as X3,Vf as gZ,Vg as jZ,Vh as UP,Vi as wo,Vj as P4,Vk as JQ,Vl as kC,Vm as Jee,Vn as Lb,W as E3,Wa as VE,Wb as tP,Wc as Uq,Wd as At,We as nb,Wf as bZ,Wg as qZ,Wh as _J,Wi as ml,Wj as C4,Wk as li,Wl as Tb,Wm as Qee,Wn as Hte,X as GY,Xa as Oa,Xb as D3,Xc as Gq,Xd as oc,Xe as HX,Xf as wZ,Xg as XZ,Xh as Aa,Xi as XJ,Xj as iC,Xk as gC,Xl as wee,Xm as ete,Xn as Dte,Y as z0,Ya as KE,Yb as j0,Yc as Hr,Yd as G,Ye as DX,Yf as xZ,Yg as ZZ,Yh as cl,Yi as ZJ,Yj as vQ,Yk as QQ,Yl as xee,Ym as tte,Yn as Mte,Z as $Y,Za as Wj,Zb as mq,Zc as ps,Zd as al,Ze as MX,Zf as Q3,Zg as JZ,Zh as Ve,Zi as QP,Zj as sC,Zk as xb,Zl as yee,Zm as z4,Zn as sd,_ as VY,_a as Uj,_b as oP,_c as eb,_d as xX,_e as zX,_f as e4,_g as QZ,_h as RJ,_i as db,_j as lC,_k as xr,_l as vee,_m as ote,_n as zte,a as x3,aa as YY,ab as I2,ac as H2,ad as Vq,ae as il,af as UX,ag as br,ah as eJ,ai as OJ,aj as cb,ak as SQ,al as yb,am as See,an as rte,ao as Wte,b as qd,ba as jY,bb as Gj,bc as D2,bd as Kq,be as gP,bf as Z3,bg as OP,bh as tJ,bi as AJ,bj as eC,bk as TQ,bl as eee,bm as Tee,bn as ate,bo as G4,c as ZK,ca as N3,cb as $j,cc as nP,cd as Yq,ce as vX,cf as GX,cg as AP,ch as oJ,ci as X2,cj as x4,ck as Tf,cl as bC,cm as Eee,cn as ste,co as Ute,d as fE,da as qY,db as Vj,dc as hq,dd as U3,de as bP,df as $X,dg as t4,dh as nJ,di as GP,dj as Li,dk as dC,dl as wC,dm as L4,dn as lte,do as Gte,e as mf,ea as XY,eb as Kj,ec as fq,ed as lP,ee as nc,ef as Jm,eg as K2,eh as rJ,ei as LJ,ej as ra,ek as Ef,el as vb,em as Pee,en as dte,eo as FC,f as Xs,fa as IE,fb as jE,fc as gq,fd as dP,fe as j3,ff as VX,fg as Y2,fh as aJ,fi as Z2,fj as JJ,fk as EQ,fl as $,fm as Cee,fn as cte,fo as $te,g as Zs,ga as FE,gb as Yj,gc as bq,gd as jq,ge as wP,gf as ac,gg as o4,gh as ms,gi as kf,gj as QJ,gk as PQ,gl as q,gm as SC,gn as pte,go as Vte,h as _n,ha as ZY,hb as jj,hc as wq,hd as qq,he as kn,hf as KX,hg as n4,hh as iJ,hi as h4,hj as eQ,hk as CQ,hl as Q,hm as TC,hn as Nb,ho as dv,i as R2,ia as JY,ib as Vo,ic as xq,id as Xq,ie as ob,if as Qm,ig as ab,ih as vf,ii as IJ,ij as pb,ik as _Q,il as ye,im as EC,in as mte,io as Kte,j as gY,ja as QY,jb as qj,jc as M2,jd as G3,je as kX,jf as YX,jg as LP,jh as s4,ji as FJ,jj as mb,jk as RQ,jl as Xe,jm as Eb,jn as LC,jo as Yte,k as N2,ka as BE,kb as Jd,kc as z2,kd as Zq,ke as xP,kf as CP,kg as r4,kh as sJ,ki as Nt,kj as rQ,kk as NQ,kl as Je,km as Pb,kn as ute,l as bY,la as Ra,lb as H3,lc as W2,ld as Jq,le as jm,lf as jX,lg as vZ,lh as l4,li as BJ,lj as aQ,lk as OQ,ll as ul,lm as Cb,ln as hte,m as wE,ma as Na,mb as qE,mc as rP,md as cP,me as Yt,mf as qX,mg as kZ,mh as nd,mi as HJ,mj as iQ,mk as _4,ml as tee,mm as _b,mn as fte,n as I0,na as nj,nb as Xj,nc as yq,nd as pP,ne as qm,nf as XX,ng as eu,nh as lJ,ni as f4,nj as nC,nk as AQ,nl as xC,nm as I4,nn as gte,o as hf,oa as rj,ob as Zj,oc as $m,od as Ym,oe as sl,of as ZX,og as lc,oh as dJ,oi as VP,oj as sQ,ok as LQ,ol as dc,om as F4,on as W4,p as xE,pa as aj,pb as Jj,pc as aP,pd as Qq,pe as Xm,pf as JX,pg as SZ,ph as d4,pi as KP,pj as y4,pk as IQ,pl as yC,pm as PC,pn as bte,q as yE,qa as ij,qb as F2,qc as bf,qd as eX,qe as SX,qf as QX,qg as TZ,qh as cJ,qi as DJ,qj as ub,qk as cC,ql as N4,qm as _ee,qn as ct,r as vE,ra as sj,rb as Qd,rc as wf,rd as tX,re as yP,rf as eZ,rg as EZ,rh as pJ,ri as YP,rj as hb,rk as wb,rl as cc,rm as B4,rn as Vt,s as kE,sa as O3,sb as XE,sc as q0,sd as oX,se as vP,sf as tZ,sg as PZ,sh as mJ,si as MJ,sj as rC,sk as FQ,sl as oee,sm as Ree,sn as La,t as SE,ta as Mm,tb as Pp,tc as vq,td as nX,te as q3,tf as oZ,tg as CZ,th as uJ,ti as g4,tj as lQ,tk as BQ,tl as nee,tm as Nee,tn as ro,u as TE,ua as A3,ub as ec,uc as kq,ud as rX,ue as rc,uf as nZ,ug as _Z,uh as c4,ui as jP,uj as dQ,uk as ov,ul as ree,um as Oee,un as wte,v as wY,va as lj,vb as tc,vc as Sq,vd as aX,ve as Be,vf as Rn,vg as RZ,vh as hJ,vi as zJ,vj as cQ,vk as Pf,vl as aee,vm as Lee,vn as xte,w as xY,wa as dj,wb as Gm,wc as Tq,wd as nl,we as N,wf as rZ,wg as NZ,wh as fJ,wi as b4,wj as fb,wk as HQ,wl as iee,wm as Iee,wn as U4,x as EE,xa as cj,xb as gf,xc as Eq,xd as iX,xe as rn,xf as Rp,xg as OZ,xh as gJ,xi as WJ,xj as pQ,xk as DQ,xl as see,xm as Fee,xn as yte,y as u,ya as pj,yb as Qj,yc as er,yd as sX,ye as fn,yf as aZ,yg as AZ,yh as p4,yi as UJ,yj as mQ,yk as pC,yl as lee,ym as Bee,yn as vte,z as Jn,za as L3,zb as ZE,zc as X0,zd as lX,ze as ii,zf as iZ,zg as LZ,zh as bJ,zi as GJ,zj as uQ,zk as MQ,zl as dee,zm as Hee,zn as kte}from"./chunks/chunk-JM7XA3F6.js";import{A as du,B as Hb,C as $C,D as Hp,E as J4,F as zoe,G as Woe,H as VC,I as KC,J as YC,K as Uoe,L as Goe,M as Db,N as $oe,Q as Voe,R as Koe,S as cu,T as Lt,U as Yoe,W as Q4,X as Mb,Y as tr,Z as jC,_ as pv,a as us,aa as pu,b as Noe,ba as mc,ca as joe,da as Of,ea as qoe,f as Bp,fa as eF,g as MC,ga as Xoe,h as Ooe,ha as Zoe,i as Aoe,ia as qC,j as q4,ja as Joe,k as Loe,ka as hs,l as Ioe,la as XC,m as zC,ma as zb,n as WC,na as Qoe,o as X4,oa as ene,p as Foe,pa as Dp,q as di,qa as tF,r as Boe,s as Hoe,sa as oF,t as lu,ta as Wb,u as UC,ua as Ub,v as Z4,va as ZC,w as GC,wa as Af,x as Doe,xa as Mr,y as Nf,z as Moe}from"./chunks/chunk-3K5ORZAD.js";import{A as aoe,B as ioe,C as soe,D as loe,E as doe,F as coe,G as poe,H as moe,I as uoe,J as K4,K as hoe,L as Y4,M as gn,N as foe,O as Fi,P as goe,Q as boe,R as DC,S as On,T as woe,U as xoe,V as yoe,W as voe,X as su,Y as koe,b as BC,ca as Fb,da as xo,e as cv,ea as Rf,f as Ib,fa as Soe,ga as Bb,h as Nn,ha as Oe,i as pc,ia as Toe,j as jte,ja as j4,k as qte,ka as Eoe,l as Xte,la as Poe,m as Zte,ma as Coe,n as Jte,na as _oe,o as $4,oa as Roe,p as fl,q as Qte,r as eoe,s as it,t as Ii,u as toe,v as ooe,w as V4,x as noe,y as HC,z as roe}from"./chunks/chunk-3E2YAOJH.js";import{$b as Fm,$c as uo,$d as pE,$e as tY,$f as cY,$g as M0,$h as ai,A as Pa,Aa as $V,Ab as oE,Ae as nn,Ag as F0,Ah as yj,Ai as Km,B as yn,Ba as gr,Bc as sE,Bd as _a,Bg as SY,Bh as vj,Bi as Dq,Cb as ZV,Cc as lE,Cd as ri,Cg as CE,Ch as kj,Ci as Q0,D as vn,Da as JT,Db as df,Dc as u3,Dd as Fe,De as qK,Dg as OE,Dh as Sj,Di as Mq,Ea as VV,Eb as jd,Ec as yK,Ed as _i,Eg as IY,Eh as Tj,Ei as rl,Fa as sf,Fb as T0,Fc as C0,Fd as dt,Fg as P3,Fh as Ej,Fi as uX,G as s3,Ga as QT,Gb as Xl,Gc as _0,Ge as P2,Gg as C3,Gh as Pj,Gi as Ae,H as l3,Hb as k2,Hc as vK,He as XK,Hg as _3,Hh as Cj,Hi as J2,I as FV,Ib as Im,Ic as kK,Id as st,Ig as FY,Ih as _j,Ii as tC,Jb as JV,Jc as h3,Je as kp,Jf as rY,Jg as BY,Jh as O2,Ji as oC,K as Ks,Kb as Br,Kc as SK,Ke as w3,Kg as HY,Kh as Rj,Ki as Gn,Lb as Zn,Lc as R0,Ld as Me,Le as hE,Lg as DY,Li as tQ,Ma as KV,Mb as QV,Mc as TK,Me as Ql,Mf as aY,Mg as MY,Mi as oQ,Na as YV,Nb as eK,Nc as T2,Nd as Ri,Ne as pf,Ng as R3,Nh as U0,Ni as nQ,O as BV,Oa as jV,Ob as tK,Od as HK,Og as zY,Oh as zm,Pb as oK,Pc as EK,Pd as rt,Pe as C2,Pi as ru,Qb as ni,Qc as PK,Qd as N0,Qe as qs,Qf as iY,Qh as Nj,Qi as Aee,Rb as nE,Rc as CK,Re as L0,Rf as sY,Rg as WY,Ri as Cf,S as d3,Sa as qV,Sb as rE,Sc as _K,Sd as cE,Se as y3,Sh as Oj,Tb as nK,Tc as RK,Td as b3,Tf as lY,Ti as Wee,Ub as rK,Uc as Ue,Ud as O0,Ui as CC,V as HV,Vb as aK,Vc as Tt,Vi as Uee,Wb as iK,Wc as js,We as JK,Wg as AE,Wi as _C,X as Ce,Xb as sK,Xc as De,Xd as DK,Xf as dY,Y as we,Yb as lK,Yc as ft,Ye as QK,Yf as S3,Yg as na,Zb as S2,Zc as f3,Ze as uf,Zg as D0,Zh as Wm,_ as DV,_b as dK,_c as NK,_e as eY,_g as LE,_h as Aj,ac as cK,af as _2,ag as pY,ah as UY,b as fr,bc as pK,bd as Jl,bf as gE,bg as mY,c as ss,ca as S0,cc as mK,cd as Bm,ce as MK,cf as v3,cg as uY,da as MV,dd as Ca,de as Hm,df as Xd,e as XT,ea as zV,ec as Zl,ed as Oo,ee as zK,ef as Sp,ei as F3,f as Yd,fa as ZT,fb as oi,fc as E0,fd as OK,fe as WK,g as x2,gc as P0,ge as UK,gi as Um,hc as uK,he as GK,hg as hY,hi as G0,ia as WV,ic as hK,ie as A0,ii as Lj,jc as fK,jd as AK,ji as B3,kc as m3,kd as Ne,kh as ej,ki as Ij,l as af,lb as p3,lc as gK,lf as oY,lg as fY,lh as tj,li as $0,m as AV,md as cf,nb as lf,nc as aE,o as y2,ob as v2,oe as $K,p as LV,pa as UV,ph as oj,pi as Fj,q as k0,qc as bK,qf as nY,qi as Bj,r as vp,ra as c3,rf as bE,rh as uj,ri as Tp,s as Lm,sb as Ys,sc as ls,sd as dE,se as E2,sg as Js,sh as ME,t as mt,tc as wK,td as g3,te as mE,tg as kY,th as zE,u as IV,uc as iE,ud as LK,ue as VK,ug as PE,uh as hj,ui as Hj,v as $t,va as GV,vc as xK,vd as IK,ve as uE,vh as fj,vi as Qn,w as Vs,wb as eE,we as KK,wh as gj,wi as WE,x as $o,xb as tE,xd as FK,xe as YK,xh as bj,xi as ho,y as Pt,ya as Do,yb as XV,ye as Un,yh as wj,yi as z,z as Fr,zd as BK,ze as jK,zf as k3,zh as xj,zi as z3}from"./chunks/chunk-ITCY3GG4.js";import{a as fX,c as gX,f as Ai,g as sZ,h as ic,j as od,m as $P,o as ia,p as ite}from"./chunks/chunk-MR37ISPW.js";import{a as hn,b as OV}from"./chunks/chunk-Y6SLVHK3.js";var Kge=hn((HXt,Vge)=>{"use strict";function uYe(e,t){this.v=e,this.k=t}function Pge(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 hYe(e){if(Array.isArray(e))return e}function fYe(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 gYe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{$ as KY,$a as YE,$b as uq,$c as $q,$d as yX,$e as WX,$f as yZ,$g as ib,$h as NJ,$i as Lp,$j as kQ,$k as Yo,$l as kee,$m as nte,$n as iu,A as yY,Aa as W0,Ab as eq,Ac as Pq,Ad as tb,Ae as kP,Af as G2,Ag as IZ,Ah as wJ,Ai as $J,Aj as gb,Ak as mC,Al as cee,Am as Dee,An as Ste,B as vY,Ba as ff,Bb as JE,Bc as Cq,Bd as $3,Be as TX,Bf as $2,Bg as FZ,Bh as m4,Bi as lb,Bj as aa,Bk as zQ,Bl as iv,Bm as Mee,Bn as hl,C as Dm,Ca as Qs,Cb as tq,Cc as _q,Cd as V3,Ce as EX,Cf as Eo,Cg as IP,Ch as HP,Ci as qP,Cj as v4,Ck as WQ,Cl as sv,Cm as zee,Cn as Tte,D as Zd,Da as HE,Db as QE,Dc as iP,Dd as K3,De as PX,Df as _P,Dg as BZ,Dh as DP,Di as de,Dj as hQ,Dk as nv,Dl as pee,Dm as H4,Dn as Ob,E as TY,Ea as bo,Eb as B2,Ec as Rq,Ed as dX,Ee as CX,Ef as lZ,Eg as HZ,Eh as xJ,Ei as fe,Ej as fQ,Ek as rv,El as ae,Em as Gee,En as Ete,F as T3,Fa as I3,Fb as V0,Fc as M3,Fd as cX,Fe as _X,Ff as si,Fg as dl,Fh as yJ,Fi as Op,Fj as k4,Fk as uC,Fl as id,Fm as RC,Fn as Pte,G as ed,Ga as DE,Gb as oq,Gc as Nq,Gd as pX,Ge as RX,Gf as sc,Gg as DZ,Gh as vJ,Gi as Te,Gj as S4,Gk as UQ,Gl as mee,Gm as $ee,Gn as IC,H as B0,Ha as el,Hb as nq,Hc as U2,Hd as mP,He as NX,Hf as V2,Hg as MZ,Hh as tu,Hi as VJ,Hj as T4,Hk as GQ,Hl as uee,Hm as Vee,Hn as Ab,I as Ni,Ia as mj,Ib as K0,Ic as Oq,Id as mX,Ie as _p,If as RP,Ig as FP,Ih as Ao,Ii as XP,Ij as Q2,Ik as $Q,Il as Ip,Im as Rb,In as Cte,J as EY,Ja as A2,Jb as rq,Jc as Aq,Jd as xf,Je as SP,Jf as J3,Jg as zZ,Jh as MP,Ji as pl,Jj as E4,Jk as R4,Jl as O4,Jm as D4,Jn as _te,K as PY,Ka as UE,Kb as aq,Kc as Lq,Kd as To,Ke as OX,Kf as dZ,Kg as a4,Kh as kJ,Ki as ZP,Kj as ev,Kk as VQ,Kl as kb,Km as Kee,Kn as Rte,L as CY,La as GE,Lb as iq,Lc as Iq,Ld as uP,Le as AX,Lf as rb,Lg as i4,Lh as SJ,Li as JP,Lj as bb,Lk as KQ,Ll as Mo,Lm as Yee,Ln as au,M as _Y,Ma as td,Mb as ol,Mc as Vm,Md as hX,Me as Zm,Mf as cZ,Mg as j2,Mh as zP,Mi as Sf,Mj as gQ,Mk as YQ,Ml as vC,Mm as M4,Mn as Fp,N as RY,Na as Oi,Nb as eP,Nc as Fq,Nd as hP,Ne as TP,Nf as Np,Ng as WZ,Nh as WP,Ni as rd,Nj as bQ,Nk as av,Nl as hee,Nm as lv,Nn as _f,O as _E,Oa as Dj,Ob as Cp,Oc as Z0,Od as fP,Oe as EP,Of as pZ,Og as UZ,Oh as TJ,Oi as KJ,Oj as ou,Ok as jQ,Ol as nt,Om as jee,On as Nte,P as RE,Pa as L2,Pb as cs,Pc as J0,Pd as bX,Pe as LX,Pf as mZ,Pg as BP,Ph as EJ,Pi as Ap,Pj as aC,Pk as qQ,Pl as Sb,Pm as NC,Pn as Ote,Q as NY,Qa as ds,Qb as sq,Qc as Bq,Qd as Ct,Qe as IX,Qf as yf,Qg as GZ,Qh as u4,Qi as ad,Qj as wQ,Qk as wr,Ql as A4,Qm as OC,Qn as Ate,R as OY,Ra as tl,Rb as lq,Rc as Hq,Rd as wX,Re as FX,Rf as uZ,Rg as $Z,Rh as sb,Ri as YJ,Rj as xQ,Rk as hC,Rl as Dr,Rm as qee,Rn as Lte,S as H0,Sa as Mj,Sb as dq,Sc as sP,Sd as A,Se as BX,Sf as hZ,Sg as VZ,Sh as q2,Si as w4,Sj as nu,Sk as XQ,Sl as fee,Sm as Xee,Sn as Ite,T as AY,Ta as Ep,Tb as cq,Tc as zq,Td as Ko,Te as PP,Tf as NP,Tg as KZ,Th as PJ,Ti as jJ,Tj as yQ,Tk as fC,Tl as gee,Tm as AC,Tn as Fte,U as LY,Ua as $E,Ub as pq,Uc as W3,Ud as Y3,Ue as ll,Uf as fZ,Ug as YZ,Uh as CJ,Ui as qJ,Uj as tv,Uk as ZQ,Ul as bee,Um as Zee,Un as Bte,V as NE,Va as zj,Vb as Y0,Vc as Wq,Vd as ne,Ve as X3,Vf as gZ,Vg as jZ,Vh as UP,Vi as wo,Vj as P4,Vk as JQ,Vl as kC,Vm as Jee,Vn as Lb,W as E3,Wa as VE,Wb as tP,Wc as Uq,Wd as At,We as nb,Wf as bZ,Wg as qZ,Wh as _J,Wi as ml,Wj as C4,Wk as li,Wl as Tb,Wm as Qee,Wn as Hte,X as GY,Xa as Oa,Xb as D3,Xc as Gq,Xd as oc,Xe as HX,Xf as wZ,Xg as XZ,Xh as Aa,Xi as XJ,Xj as iC,Xk as gC,Xl as wee,Xm as ete,Xn as Dte,Y as z0,Ya as KE,Yb as j0,Yc as Hr,Yd as G,Ye as DX,Yf as xZ,Yg as ZZ,Yh as cl,Yi as ZJ,Yj as vQ,Yk as QQ,Yl as xee,Ym as tte,Yn as Mte,Z as $Y,Za as Wj,Zb as mq,Zc as ps,Zd as al,Ze as MX,Zf as Q3,Zg as JZ,Zh as Ve,Zi as QP,Zj as sC,Zk as xb,Zl as yee,Zm as z4,Zn as sd,_ as VY,_a as Uj,_b as oP,_c as eb,_d as xX,_e as zX,_f as e4,_g as QZ,_h as RJ,_i as db,_j as lC,_k as xr,_l as vee,_m as ote,_n as zte,a as x3,aa as YY,ab as I2,ac as H2,ad as Vq,ae as il,af as UX,ag as br,ah as eJ,ai as OJ,aj as cb,ak as SQ,al as yb,am as See,an as rte,ao as Wte,b as qd,ba as jY,bb as Gj,bc as D2,bd as Kq,be as gP,bf as Z3,bg as OP,bh as tJ,bi as AJ,bj as eC,bk as TQ,bl as eee,bm as Tee,bn as ate,bo as G4,c as ZK,ca as N3,cb as $j,cc as nP,cd as Yq,ce as vX,cf as GX,cg as AP,ch as oJ,ci as X2,cj as x4,ck as Tf,cl as bC,cm as Eee,cn as ste,co as Ute,d as fE,da as qY,db as Vj,dc as hq,dd as U3,de as bP,df as $X,dg as t4,dh as nJ,di as GP,dj as Li,dk as dC,dl as wC,dm as L4,dn as lte,do as Gte,e as mf,ea as XY,eb as Kj,ec as fq,ed as lP,ee as nc,ef as Jm,eg as K2,eh as rJ,ei as LJ,ej as ra,ek as Ef,el as vb,em as Pee,en as dte,eo as FC,f as Xs,fa as IE,fb as jE,fc as gq,fd as dP,fe as j3,ff as VX,fg as Y2,fh as aJ,fi as Z2,fj as JJ,fk as EQ,fl as $,fm as Cee,fn as cte,fo as $te,g as Zs,ga as FE,gb as Yj,gc as bq,gd as jq,ge as wP,gf as ac,gg as o4,gh as ms,gi as kf,gj as QJ,gk as PQ,gl as q,gm as SC,gn as pte,go as Vte,h as _n,ha as ZY,hb as jj,hc as wq,hd as qq,he as kn,hf as KX,hg as n4,hh as iJ,hi as h4,hj as eQ,hk as CQ,hl as Q,hm as TC,hn as Nb,ho as dv,i as R2,ia as JY,ib as Vo,ic as xq,id as Xq,ie as ob,if as Qm,ig as ab,ih as vf,ii as IJ,ij as pb,ik as _Q,il as ye,im as EC,in as mte,io as Kte,j as gY,ja as QY,jb as qj,jc as M2,jd as G3,je as kX,jf as YX,jg as LP,jh as s4,ji as FJ,jj as mb,jk as RQ,jl as Xe,jm as Eb,jn as LC,jo as Yte,k as N2,ka as BE,kb as Jd,kc as z2,kd as Zq,ke as xP,kf as CP,kg as r4,kh as sJ,ki as Nt,kj as rQ,kk as NQ,kl as Je,km as Pb,kn as ute,l as bY,la as Ra,lb as H3,lc as W2,ld as Jq,le as jm,lf as jX,lg as vZ,lh as l4,li as BJ,lj as aQ,lk as OQ,ll as ul,lm as Cb,ln as hte,m as wE,ma as Na,mb as qE,mc as rP,md as cP,me as Yt,mf as qX,mg as kZ,mh as nd,mi as HJ,mj as iQ,mk as _4,ml as tee,mm as _b,mn as fte,n as I0,na as nj,nb as Xj,nc as yq,nd as pP,ne as qm,nf as XX,ng as eu,nh as lJ,ni as f4,nj as nC,nk as AQ,nl as xC,nm as I4,nn as gte,o as hf,oa as rj,ob as Zj,oc as $m,od as Ym,oe as sl,of as ZX,og as lc,oh as dJ,oi as VP,oj as sQ,ok as LQ,ol as dc,om as F4,on as W4,p as xE,pa as aj,pb as Jj,pc as aP,pd as Qq,pe as Xm,pf as JX,pg as SZ,ph as d4,pi as KP,pj as y4,pk as IQ,pl as yC,pm as PC,pn as bte,q as yE,qa as ij,qb as F2,qc as bf,qd as eX,qe as SX,qf as QX,qg as TZ,qh as cJ,qi as DJ,qj as ub,qk as cC,ql as N4,qm as _ee,qn as ct,r as vE,ra as sj,rb as Qd,rc as wf,rd as tX,re as yP,rf as eZ,rg as EZ,rh as pJ,ri as YP,rj as hb,rk as wb,rl as cc,rm as B4,rn as Vt,s as kE,sa as O3,sb as XE,sc as q0,sd as oX,se as vP,sf as tZ,sg as PZ,sh as mJ,si as MJ,sj as rC,sk as FQ,sl as oee,sm as Ree,sn as La,t as SE,ta as Mm,tb as Pp,tc as vq,td as nX,te as q3,tf as oZ,tg as CZ,th as uJ,ti as g4,tj as lQ,tk as BQ,tl as nee,tm as Nee,tn as ro,u as TE,ua as A3,ub as ec,uc as kq,ud as rX,ue as rc,uf as nZ,ug as _Z,uh as c4,ui as jP,uj as dQ,uk as ov,ul as ree,um as Oee,un as wte,v as wY,va as lj,vb as tc,vc as Sq,vd as aX,ve as Be,vf as Rn,vg as RZ,vh as hJ,vi as zJ,vj as cQ,vk as Pf,vl as aee,vm as Lee,vn as xte,w as xY,wa as dj,wb as Gm,wc as Tq,wd as nl,we as N,wf as rZ,wg as NZ,wh as fJ,wi as b4,wj as fb,wk as HQ,wl as iee,wm as Iee,wn as U4,x as EE,xa as cj,xb as gf,xc as Eq,xd as iX,xe as rn,xf as Rp,xg as OZ,xh as gJ,xi as WJ,xj as pQ,xk as DQ,xl as see,xm as Fee,xn as yte,y as u,ya as pj,yb as Qj,yc as er,yd as sX,ye as fn,yf as aZ,yg as AZ,yh as p4,yi as UJ,yj as mQ,yk as pC,yl as lee,ym as Bee,yn as vte,z as Jn,za as L3,zb as ZE,zc as X0,zd as lX,ze as ii,zf as iZ,zg as LZ,zh as bJ,zi as GJ,zj as uQ,zk as MQ,zl as dee,zm as Hee,zn as kte}from"./chunks/chunk-JM7XA3F6.js";import{A as du,B as Hb,C as $C,D as Hp,E as J4,F as zoe,G as Woe,H as VC,I as KC,J as YC,K as Uoe,L as Goe,M as Db,N as $oe,Q as Voe,R as Koe,S as cu,T as Lt,U as Yoe,W as Q4,X as Mb,Y as tr,Z as jC,_ as pv,a as us,aa as pu,b as Noe,ba as mc,ca as joe,da as Of,ea as qoe,f as Bp,fa as eF,g as MC,ga as Xoe,h as Ooe,ha as Zoe,i as Aoe,ia as qC,j as q4,ja as Joe,k as Loe,ka as hs,l as Ioe,la as XC,m as zC,ma as zb,n as WC,na as Qoe,o as X4,oa as ene,p as Foe,pa as Dp,q as di,qa as tF,r as Boe,s as Hoe,sa as oF,t as lu,ta as Wb,u as UC,ua as Ub,v as Z4,va as ZC,w as GC,wa as Af,x as Doe,xa as Mr,y as Nf,z as Moe}from"./chunks/chunk-IRDJZJOH.js";import{A as aoe,B as ioe,C as soe,D as loe,E as doe,F as coe,G as poe,H as moe,I as uoe,J as K4,K as hoe,L as Y4,M as gn,N as foe,O as Fi,P as goe,Q as boe,R as DC,S as On,T as woe,U as xoe,V as yoe,W as voe,X as su,Y as koe,b as BC,ca as Fb,da as xo,e as cv,ea as Rf,f as Ib,fa as Soe,ga as Bb,h as Nn,ha as Oe,i as pc,ia as Toe,j as jte,ja as j4,k as qte,ka as Eoe,l as Xte,la as Poe,m as Zte,ma as Coe,n as Jte,na as _oe,o as $4,oa as Roe,p as fl,q as Qte,r as eoe,s as it,t as Ii,u as toe,v as ooe,w as V4,x as noe,y as HC,z as roe}from"./chunks/chunk-3E2YAOJH.js";import{$b as Fm,$c as uo,$d as pE,$e as tY,$f as cY,$g as M0,$h as ai,A as Pa,Aa as $V,Ab as oE,Ae as nn,Ag as F0,Ah as yj,Ai as Km,B as yn,Ba as gr,Bc as sE,Bd as _a,Bg as SY,Bh as vj,Bi as Dq,Cb as ZV,Cc as lE,Cd as ri,Cg as CE,Ch as kj,Ci as Q0,D as vn,Da as JT,Db as df,Dc as u3,Dd as Fe,De as qK,Dg as OE,Dh as Sj,Di as Mq,Ea as VV,Eb as jd,Ec as yK,Ed as _i,Eg as IY,Eh as Tj,Ei as rl,Fa as sf,Fb as T0,Fc as C0,Fd as dt,Fg as P3,Fh as Ej,Fi as uX,G as s3,Ga as QT,Gb as Xl,Gc as _0,Ge as P2,Gg as C3,Gh as Pj,Gi as Ae,H as l3,Hb as k2,Hc as vK,He as XK,Hg as _3,Hh as Cj,Hi as J2,I as FV,Ib as Im,Ic as kK,Id as st,Ig as FY,Ih as _j,Ii as tC,Jb as JV,Jc as h3,Je as kp,Jf as rY,Jg as BY,Jh as O2,Ji as oC,K as Ks,Kb as Br,Kc as SK,Ke as w3,Kg as HY,Kh as Rj,Ki as Gn,Lb as Zn,Lc as R0,Ld as Me,Le as hE,Lg as DY,Li as tQ,Ma as KV,Mb as QV,Mc as TK,Me as Ql,Mf as aY,Mg as MY,Mi as oQ,Na as YV,Nb as eK,Nc as T2,Nd as Ri,Ne as pf,Ng as R3,Nh as U0,Ni as nQ,O as BV,Oa as jV,Ob as tK,Od as HK,Og as zY,Oh as zm,Pb as oK,Pc as EK,Pd as rt,Pe as C2,Pi as ru,Qb as ni,Qc as PK,Qd as N0,Qe as qs,Qf as iY,Qh as Nj,Qi as Aee,Rb as nE,Rc as CK,Re as L0,Rf as sY,Rg as WY,Ri as Cf,S as d3,Sa as qV,Sb as rE,Sc as _K,Sd as cE,Se as y3,Sh as Oj,Tb as nK,Tc as RK,Td as b3,Tf as lY,Ti as Wee,Ub as rK,Uc as Ue,Ud as O0,Ui as CC,V as HV,Vb as aK,Vc as Tt,Vi as Uee,Wb as iK,Wc as js,We as JK,Wg as AE,Wi as _C,X as Ce,Xb as sK,Xc as De,Xd as DK,Xf as dY,Y as we,Yb as lK,Yc as ft,Ye as QK,Yf as S3,Yg as na,Zb as S2,Zc as f3,Ze as uf,Zg as D0,Zh as Wm,_ as DV,_b as dK,_c as NK,_e as eY,_g as LE,_h as Aj,ac as cK,af as _2,ag as pY,ah as UY,b as fr,bc as pK,bd as Jl,bf as gE,bg as mY,c as ss,ca as S0,cc as mK,cd as Bm,ce as MK,cf as v3,cg as uY,da as MV,dd as Ca,de as Hm,df as Xd,e as XT,ea as zV,ec as Zl,ed as Oo,ee as zK,ef as Sp,ei as F3,f as Yd,fa as ZT,fb as oi,fc as E0,fd as OK,fe as WK,g as x2,gc as P0,ge as UK,gi as Um,hc as uK,he as GK,hg as hY,hi as G0,ia as WV,ic as hK,ie as A0,ii as Lj,jc as fK,jd as AK,ji as B3,kc as m3,kd as Ne,kh as ej,ki as Ij,l as af,lb as p3,lc as gK,lf as oY,lg as fY,lh as tj,li as $0,m as AV,md as cf,nb as lf,nc as aE,o as y2,ob as v2,oe as $K,p as LV,pa as UV,ph as oj,pi as Fj,q as k0,qc as bK,qf as nY,qi as Bj,r as vp,ra as c3,rf as bE,rh as uj,ri as Tp,s as Lm,sb as Ys,sc as ls,sd as dE,se as E2,sg as Js,sh as ME,t as mt,tc as wK,td as g3,te as mE,tg as kY,th as zE,u as IV,uc as iE,ud as LK,ue as VK,ug as PE,uh as hj,ui as Hj,v as $t,va as GV,vc as xK,vd as IK,ve as uE,vh as fj,vi as Qn,w as Vs,wb as eE,we as KK,wh as gj,wi as WE,x as $o,xb as tE,xd as FK,xe as YK,xh as bj,xi as ho,y as Pt,ya as Do,yb as XV,ye as Un,yh as wj,yi as z,z as Fr,zd as BK,ze as jK,zf as k3,zh as xj,zi as z3}from"./chunks/chunk-ITCY3GG4.js";import{a as fX,c as gX,f as Ai,g as sZ,h as ic,j as od,m as $P,o as ia,p as ite}from"./chunks/chunk-MR37ISPW.js";import{a as hn,b as OV}from"./chunks/chunk-Y6SLVHK3.js";var Kge=hn((HXt,Vge)=>{"use strict";function uYe(e,t){this.v=e,this.k=t}function Pge(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 hYe(e){if(Array.isArray(e))return e}function fYe(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 gYe(){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 bYe(e,t){return hYe(e)||fYe(e,t)||wYe(e,t)||gYe()}function wYe(e,t){if(e){if(typeof e=="string")return Pge(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)?Pge(e,t):void 0}}function iN(e){var t,o;function n(a,i){try{var s=e[a](i),l=s.value,d=l instanceof uYe;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)}iN.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},iN.prototype.next=function(e){return this._invoke("next",e)},iN.prototype.throw=function(e){return this._invoke("throw",e)},iN.prototype.return=function(e){return this._invoke("return",e)};var Wge=Object.entries,Cge=Object.setPrototypeOf,xYe=Object.isFrozen,yYe=Object.getPrototypeOf,vYe=Object.getOwnPropertyDescriptor,Tr=Object.freeze,Kr=Object.seal,ax=Object.create,Uge=typeof Reflect<"u"&&Reflect,QH=Uge.apply,eD=Uge.construct;Tr||(Tr=function(t){return t});Kr||(Kr=function(t){return t});QH||(QH=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)});eD||(eD=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 wg=ar(Array.prototype.forEach);Array.prototype.indexOf;var kYe=ar(Array.prototype.lastIndexOf),_ge=ar(Array.prototype.pop),ek=ar(Array.prototype.push);Array.prototype.slice;var SYe=ar(Array.prototype.splice),ix=Array.isArray,nk=ar(String.prototype.toLowerCase),YH=ar(String.prototype.toString),Rge=ar(String.prototype.match),tk=ar(String.prototype.replace),Nge=ar(String.prototype.indexOf),TYe=ar(String.prototype.trim),EYe=ar(Number.prototype.toString),PYe=ar(Boolean.prototype.toString),Oge=typeof BigInt>"u"?null:ar(BigInt.prototype.toString),Age=typeof Symbol>"u"?null:ar(Symbol.prototype.toString),ji=ar(Object.prototype.hasOwnProperty),ok=ar(Object.prototype.toString),za=ar(RegExp.prototype.test),rh=CYe(TypeError);function ar(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 QH(e,t,n)}}function CYe(e){return function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return eD(e,o)}}function so(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:nk;if(Cge&&Cge(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&&(xYe(t)||(t[n]=a),r=a)}e[r]=!0}return e}function _Ye(e){for(let t=0;t<e.length;t++)ji(e,t)||(e[t]=null);return e}function Ps(e){let t=ax(null);for(let n of Wge(e)){var o=bYe(n,2);let r=o[0],a=o[1];ji(e,r)&&(ix(a)?t[r]=_Ye(a):a&&typeof a=="object"&&a.constructor===Object?t[r]=Ps(a):t[r]=a)}return t}function RYe(e){switch(typeof e){case"string":return e;case"number":return EYe(e);case"boolean":return PYe(e);case"bigint":return Oge?Oge(e):"0";case"symbol":return Age?Age(e):"Symbol()";case"undefined":return ok(e);case"function":case"object":{if(e===null)return ok(e);let t=e,o=Cl(t,"toString");if(typeof o=="function"){let n=o(t);return typeof n=="string"?n:ok(n)}return ok(e)}default:return ok(e)}}function Cl(e,t){for(;e!==null;){let n=vYe(e,t);if(n){if(n.get)return ar(n.get);if(typeof n.value=="function")return ar(n.value)}e=yYe(e)}function o(){return null}return o}function NYe(e){try{return za(e,""),!0}catch{return!1}}var Lge=Tr(["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"]),jH=Tr(["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"]),qH=Tr(["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"]),OYe=Tr(["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"]),XH=Tr(["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"]),AYe=Tr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ige=Tr(["#text"]),Fge=Tr(["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"]),ZH=Tr(["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"]),Bge=Tr(["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"]),sN=Tr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),LYe=Kr(/{{[\w\W]*|^[\w\W]*}}/g),IYe=Kr(/<%[\w\W]*|^[\w\W]*%>/g),FYe=Kr(/\${[\w\W]*/g),BYe=Kr(/^data-[\-\w.\u00B7-\uFFFF]+$/),HYe=Kr(/^aria-[\-\w]+$/),Hge=Kr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),DYe=Kr(/^(?:\w+script|data):/i),MYe=Kr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zYe=Kr(/^html$/i),WYe=Kr(/^[a-z][.\w]*(-[.\w]+)+$/i),Dge=Kr(/<[/\w!]/g),Mge=Kr(/<[/\w]/g),UYe=Kr(/<\/no(script|embed|frames)/i),GYe=Kr(/\/>/i),Es={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Gge=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],$Ye=Tr(so({},Gge)),VYe=(function(){let e={};return wg(Gge,t=>{e[t]=Kr(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Tr(e)})(),KYe=function(){return typeof window>"u"?null:window},YYe=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}},zge=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ah=function(t,o,n,r){return ji(t,o)&&ix(t[o])?so(r.base?Ps(r.base):{},t[o],r.transform):n},JH=function(t,o,n){let r=ji(t,o)?t[o]:void 0;return r&&typeof r=="object"?Ps(r):n()};function $ge(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:KYe(),t=he=>$ge(he);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==Es.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"),h=Cl(p,"remove"),f=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,D=!1,L=0,_=function(){if(L>0)throw rh('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){_(),L++;try{return O.createHTML(R)}finally{L--}},I=function(R){_(),L++;try{return O.createScriptURL(R)}finally{L--}},U=function(){return D||(B=YYe(c,r),D=!0),B},Y=o,V=Y.implementation,j=Y.createNodeIterator,K=Y.createDocumentFragment,te=Y.getElementsByTagName,J=n.importNode,F=zge();t.isSupported=typeof Wge=="function"&&typeof w=="function"&&V&&V.createHTMLDocument!==void 0;let W=LYe,M=IYe,ee=FYe,oe=BYe,Z=HYe,_e=DYe,Se=MYe,Ye=WYe,Re=Hge,me=null,lt=so({},[...Lge,...jH,...qH,...XH,...Ige]),ue=null,yt=so({},[...Fge,...ZH,...Bge,...sN]),$e=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,Ge=null,We=Object.seal(ax(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Jt=!0,Bt=!0,_t=!1,co=!0,qe=!1,kt=!0,Le=!1,Ie=!1,on=null,jn=null,Ja=!1,je=!1,pt=!1,bt=!1,Ht=!0,vo=!1,va="user-content-",pn=!0,Dt=!1,Wn={},ka=null,Pn=so({},["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"]),qn=null,St=so({},["audio","video","img","source","image","track"]),mn=null,Pi=so({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ko="http://www.w3.org/1998/Math/MathML",Xn="http://www.w3.org/2000/svg",Zo="http://www.w3.org/1999/xhtml",Ho=Zo,xn=!1,Sa=null,le=so({},[ko,Xn,Zo],YH),tt=Tr(["mi","mo","mn","ms","mtext"]),po=so({},tt),Qa=Tr(["annotation-xml"]),zt=so({},Qa),Jo=so({},["title","style","font","a","script"]),ur=null,Or=["application/xhtml+xml","text/html"],ei="text/html",mo=null,Ci=null,Nm=o.createElement("form"),Ee=function(R){return R instanceof RegExp||R instanceof Function},ze=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ci&&Ci===R)return;(!R||typeof R!="object")&&(R={}),R=Ps(R),ur=Or.indexOf(R.PARSER_MEDIA_TYPE)===-1?ei:R.PARSER_MEDIA_TYPE,mo=ur==="application/xhtml+xml"?YH:nk,me=ah(R,"ALLOWED_TAGS",lt,{transform:mo}),ue=ah(R,"ALLOWED_ATTR",yt,{transform:mo}),Sa=ah(R,"ALLOWED_NAMESPACES",le,{transform:YH}),mn=ah(R,"ADD_URI_SAFE_ATTR",Pi,{transform:mo,base:Pi}),qn=ah(R,"ADD_DATA_URI_TAGS",St,{transform:mo,base:St}),ka=ah(R,"FORBID_CONTENTS",Pn,{transform:mo}),pe=ah(R,"FORBID_TAGS",Ps({}),{transform:mo}),Ge=ah(R,"FORBID_ATTR",Ps({}),{transform:mo}),Wn=ji(R,"USE_PROFILES")?R.USE_PROFILES&&typeof R.USE_PROFILES=="object"?Ps(R.USE_PROFILES):R.USE_PROFILES:!1,Jt=R.ALLOW_ARIA_ATTR!==!1,Bt=R.ALLOW_DATA_ATTR!==!1,_t=R.ALLOW_UNKNOWN_PROTOCOLS||!1,co=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,qe=R.SAFE_FOR_TEMPLATES||!1,kt=R.SAFE_FOR_XML!==!1,Le=R.WHOLE_DOCUMENT||!1,je=R.RETURN_DOM||!1,pt=R.RETURN_DOM_FRAGMENT||!1,bt=R.RETURN_TRUSTED_TYPE||!1,Ja=R.FORCE_BODY||!1,Ht=R.SANITIZE_DOM!==!1,vo=R.SANITIZE_NAMED_PROPS||!1,pn=R.KEEP_CONTENT!==!1,Dt=R.IN_PLACE||!1,Re=NYe(R.ALLOWED_URI_REGEXP)?R.ALLOWED_URI_REGEXP:Hge,Ho=typeof R.NAMESPACE=="string"?R.NAMESPACE:Zo,po=JH(R,"MATHML_TEXT_INTEGRATION_POINTS",()=>so({},tt)),zt=JH(R,"HTML_INTEGRATION_POINTS",()=>so({},Qa));let X=JH(R,"CUSTOM_ELEMENT_HANDLING",()=>ax(null));if($e=ax(null),ji(X,"tagNameCheck")&&Ee(X.tagNameCheck)&&($e.tagNameCheck=X.tagNameCheck),ji(X,"attributeNameCheck")&&Ee(X.attributeNameCheck)&&($e.attributeNameCheck=X.attributeNameCheck),ji(X,"allowCustomizedBuiltInElements")&&typeof X.allowCustomizedBuiltInElements=="boolean"&&($e.allowCustomizedBuiltInElements=X.allowCustomizedBuiltInElements),Kr($e),qe&&(Bt=!1),pt&&(je=!0),Wn&&(me=so({},Ige),ue=ax(null),Wn.html===!0&&(so(me,Lge),so(ue,Fge)),Wn.svg===!0&&(so(me,jH),so(ue,ZH),so(ue,sN)),Wn.svgFilters===!0&&(so(me,qH),so(ue,ZH),so(ue,sN)),Wn.mathMl===!0&&(so(me,XH),so(ue,Bge),so(ue,sN))),We.tagCheck=null,We.attributeCheck=null,ji(R,"ADD_TAGS")&&(typeof R.ADD_TAGS=="function"?We.tagCheck=R.ADD_TAGS:ix(R.ADD_TAGS)&&(me===lt&&(me=Ps(me)),so(me,R.ADD_TAGS,mo))),ji(R,"ADD_ATTR")&&(typeof R.ADD_ATTR=="function"?We.attributeCheck=R.ADD_ATTR:ix(R.ADD_ATTR)&&(ue===yt&&(ue=Ps(ue)),so(ue,R.ADD_ATTR,mo))),ji(R,"ADD_FORBID_CONTENTS")&&ix(R.ADD_FORBID_CONTENTS)&&(ka===Pn&&(ka=Ps(ka)),so(ka,R.ADD_FORBID_CONTENTS,mo)),pn&&(me["#text"]=!0),Le&&so(me,["html","head","body"]),me.table&&(so(me,["tbody"]),delete pe.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw rh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw rh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let ce=O;O=R.TRUSTED_TYPES_POLICY;try{P=C("")}catch(be){throw O=ce,be}}else R.TRUSTED_TYPES_POLICY===null?(O=void 0,P=""):(O===void 0&&(O=U()),O&&typeof P=="string"&&(P=C("")));Tr&&Tr(R),Ci=R},Qo=so({},[...jH,...qH,...OYe]),Kt=so({},[...XH,...AYe]),Gs=function(R,X,ce){return X.namespaceURI===Zo?R==="svg":X.namespaceURI===ko?R==="svg"&&(ce==="annotation-xml"||po[ce]):!!Qo[R]},Ta=function(R,X,ce){return X.namespaceURI===Zo?R==="math":X.namespaceURI===Xn?R==="math"&&zt[ce]:!!Kt[R]},Ud=function(R,X,ce){return X.namespaceURI===Xn&&!zt[ce]||X.namespaceURI===ko&&!po[ce]?!1:!Kt[R]&&(Jo[R]||!Qo[R])},WI=function(R){let X=w(R);(!X||!X.tagName)&&(X={namespaceURI:Ho,tagName:"template"});let ce=nk(R.tagName),be=nk(X.tagName);return Sa[R.namespaceURI]?R.namespaceURI===Xn?Gs(ce,X,be):R.namespaceURI===ko?Ta(ce,X,be):R.namespaceURI===Zo?Ud(ce,X,be):!!(ur==="application/xhtml+xml"&&Sa[R.namespaceURI]):!1},Ea=function(R){ek(t.removed,{element:R});try{w(R).removeChild(R)}catch{if(h(R),!w(R))throw rh("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,X,ce){try{f(R,X)}catch{try{R.removeAttribute(ce)}catch{}}},Gd=function(R){nf(R);let X=b(R);if(X){let be=[];wg(X,et=>{ek(be,et)}),wg(be,et=>{try{h(et)}catch{}})}let ce=v(R);if(ce)for(let be=ce.length-1;be>=0;--be){let et=ce[be],Mt=et&&et.name;typeof Mt=="string"&&b0(R,et,Mt)}},ti=function(R,X,ce){if(!ce)try{ce=X.getAttributeNode(R)}catch{ce=null}ek(t.removed,{attribute:ce||null,from:X});try{ce?f(X,ce):X.removeAttribute(R)}catch{try{X.removeAttribute(R)}catch{}}if(R==="is")if(je||pt)try{Ea(X)}catch{}else try{X.setAttribute(R,"")}catch{}},UI=function(R){let X=v(R);if(X)for(let ce=X.length-1;ce>=0;--ce){let be=X[ce],et=be&&be.name;typeof et!="string"||ue[mo(et)]||b0(R,be,et)}},nf=function(R){let X=[R];for(;X.length>0;){let ce=X.pop();E(ce)===Es.element&&UI(ce);let be=b(ce);if(be)for(let et=be.length-1;et>=0;--et)X.push(be[et])}},$T=function(R,X){return kt?R==="patchsrc"?!0:R==="for"&&X!=="label"&&X!=="output":!1},GI=function(R){if(!kt)return;let X=[R];for(;X.length>0;){let ce=X.pop(),be=E(ce);if(be===Es.processingInstruction||be===Es.comment&&za(Mge,ce.data)){try{h(ce)}catch{}continue}if(be===Es.element){let Mt=ce,Rt=mo(y(ce));try{Mt.hasAttribute&&Mt.hasAttribute("patchsrc")&&Mt.removeAttribute("patchsrc"),Mt.hasAttribute&&Mt.hasAttribute("for")&&$T("for",Rt)&&Mt.removeAttribute("for")}catch{}}let et=b(ce);if(et)for(let Mt=et.length-1;Mt>=0;--Mt)X.push(et[Mt])}},a2=function(R){let X=null,ce=null;if(Ja)R="<remove></remove>"+R;else{let Mt=Rge(R,/^[\r\n\t ]+/);ce=Mt&&Mt[0]}ur==="application/xhtml+xml"&&Ho===Zo&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");let be=O?C(R):R;if(Ho===Zo)try{X=new d().parseFromString(be,ur)}catch{}if(!X||!X.documentElement){X=V.createDocument(Ho,"template",null);try{X.documentElement.innerHTML=xn?P:be}catch{}}let et=X.body||X.documentElement;return R&&ce&&et.insertBefore(o.createTextNode(ce),et.childNodes[0]||null),Ho===Zo?te.call(X,Le?"html":"body")[0]:Le?X.documentElement:et},i2=function(R){let X=T?T(R):R.ownerDocument;return j.call(X||R,R,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},$d=function(R){return R=tk(R,W," "),R=tk(R,M," "),R=tk(R,ee," "),R},un=function(R){var X;R.normalize();let ce=T?T(R):R.ownerDocument,be=j.call(ce||R,R,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),et=be.nextNode();for(;et;)et.data=$d(et.data),et=be.nextNode();let Mt=(X=R.querySelectorAll)===null||X===void 0?void 0:X.call(R,"template");Mt&&wg(Mt,Rt=>{bp(Rt.content)&&un(Rt.content)})},rf=function(R){let X=S?S(R):null;return typeof X!="string"||mo(X)!=="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)===Es.documentFragment}catch{return!1}},Vd=function(R){if(!k||typeof R!="object"||R===null)return!1;try{return typeof k(R)=="number"}catch{return!1}};function $s(he,R,X){he.length!==0&&wg(he,ce=>{ce.call(t,R,X,Ci)})}let w0=function(R,X){return!!(kt&&R.hasChildNodes()&&!Vd(R.firstElementChild)&&za(Dge,R.textContent)&&za(Dge,R.innerHTML)||kt&&R.namespaceURI===Zo&&$Ye[X]&&(Vd(R.firstElementChild)||typeof R.textContent=="string"&&za(VYe[X],R.textContent))||R.nodeType===Es.processingInstruction||kt&&R.nodeType===Es.comment&&za(Mge,R.data))},x0=function(R,X){if(R instanceof RegExp)return za(R,X);if(R instanceof Function){for(var ce=arguments.length,be=new Array(ce>2?ce-2:0),et=2;et<ce;et++)be[et-2]=arguments[et];return!!R(X,...be)}return!1},$I=function(R,X,ce){if(!pe[X]&&Om(X)&&x0($e.tagNameCheck,X))return!1;if(pn&&!ka[X]){let be=w(R),et=b(R);if(et&&be){let Mt=et.length;for(let Rt=Mt-1;Rt>=0;--Rt){let So=R===ce?m(et[Rt],!0):et[Rt];be.insertBefore(So,g(R))}}}return Ea(R),!0},s2=function(R,X,ce,be){return R.length===0?X:X===ce||X===be?Ps(X):X},wp=function(R,X){return R===X||w(R)!==null?!1:(Dt&&nf(R),!0)},VT=function(R,X){if($s(F.beforeSanitizeElements,R,null),wp(R,X))return!0;if(rf(R))return Ea(R),!0;let ce=mo(y(R));if(me=s2(F.uponSanitizeElement,me,lt,on),$s(F.uponSanitizeElement,R,{tagName:ce,allowedTags:me}),wp(R,X))return!0;if(w0(R,ce))return Ea(R),!0;if(pe[ce]||!(We.tagCheck instanceof Function&&We.tagCheck(ce))&&!me[ce]){let be=$I(R,ce,X);return be===!1&&($s(F.afterSanitizeElements,R,null),wp(R,X))?!0:be}if(E(R)===Es.element&&!WI(R)||(ce==="noscript"||ce==="noembed"||ce==="noframes")&&za(UYe,R.innerHTML))return Ea(R),!0;if(qe&&R.nodeType===Es.text){let be=$d(R.textContent);R.textContent!==be&&(ek(t.removed,{element:R.cloneNode()}),R.textContent=be)}return $s(F.afterSanitizeElements,R,null),wp(R,X)},Ar=function(R,X,ce){if(Ge[X]||$T(X,R)||Ht&&(X==="id"||X==="name")&&(ce in o||ce in Nm))return!1;let be=ue[X]||We.attributeCheck instanceof Function&&We.attributeCheck(X,R);return Bt&&za(oe,X)||Jt&&za(Z,X)?!0:be?mn[X]||za(Re,tk(ce,Se,""))||(X==="src"||X==="xlink:href"||X==="href")&&R!=="script"&&Nge(ce,"data:")===0&&qn[R]||_t&&!za(_e,tk(ce,Se,""))?!0:!ce:Om(R)&&x0($e.tagNameCheck,R)&&x0($e.attributeNameCheck,X,R)||X==="is"&&$e.allowCustomizedBuiltInElements&&x0($e.tagNameCheck,ce)},l2=so({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Om=function(R){return!l2[nk(R)]&&za(Ye,R)},d2=function(R,X,ce,be){if(O&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!ce)switch(c.getAttributeType(R,X)){case"TrustedHTML":return C(be);case"TrustedScriptURL":return I(be)}return be},c2=function(R,X,ce,be){try{return ce?R.setAttributeNS(ce,X,be):R.setAttribute(X,be),rf(R)?(Ea(R),!1):!0}catch{return ti(X,R),!1}},p2=function(R,X){if($s(F.beforeSanitizeAttributes,R,null),wp(R,X))return;let ce=R.attributes;if(!ce||rf(R))return;ue=s2(F.uponSanitizeAttribute,ue,yt,jn);let be={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ue,forceKeepAttr:void 0},et=ce.length,Mt=mo(R.nodeName);for(;et--;){let Rt=ce[et],So=Rt.name,Ir=Rt.namespaceURI,hr=Rt.value,Kd=mo(So),y0=hr,Cn=So==="value"?y0:TYe(y0),xp=!1;if(be.attrName=Kd,be.attrValue=Cn,be.keepAttr=!0,be.forceKeepAttr=void 0,$s(F.uponSanitizeAttribute,R,be),Cn=be.attrValue,vo&&(Kd==="id"||Kd==="name")&&Nge(Cn,va)!==0&&(ti(So,R,Rt),Cn=va+Cn,xp=!0),kt&&za(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Cn)){ti(So,R,Rt);continue}if(Kd==="attributename"&&Rge(Cn,"href")){ti(So,R,Rt);continue}if(!be.forceKeepAttr){if(!be.keepAttr){ti(So,R,Rt);continue}if(!co&&za(GYe,Cn)){ti(So,R,Rt);continue}if(qe&&(Cn=$d(Cn)),!Ar(Mt,Kd,Cn)){ti(So,R,Rt);continue}Cn=d2(Mt,Kd,Ir,Cn),Cn!==y0&&c2(R,So,Ir,Cn)&&xp&&_ge(t.removed)}}$s(F.afterSanitizeAttributes,R,null),wp(R,X)},ql=function(R){let X=null,ce=i2(R);for($s(F.beforeSanitizeShadowDOM,R,null);X=ce.nextNode();)if($s(F.uponSanitizeShadowNode,X,null),VT(X,R),p2(X,R),bp(X.content)&&ql(X.content),E(X)===Es.element){let be=x(X);bp(be)&&(Lr(be),ql(be))}$s(F.afterSanitizeShadowDOM,R,null)},Lr=function(R){let X=[{node:R,shadow:null}];for(;X.length>0;){let ce=X.pop();if(ce.shadow){ql(ce.shadow);continue}let be=ce.node,et=E(be)===Es.element,Mt=b(be);if(Mt)for(let Rt=Mt.length-1;Rt>=0;--Rt)X.push({node:Mt[Rt],shadow:null});if(et){let Rt=S?S(be):null;if(typeof Rt=="string"&&mo(Rt)==="template"){let So=be.content;bp(So)&&X.push({node:So,shadow:null})}}if(et){let Rt=x(be);bp(Rt)&&X.push({node:null,shadow:Rt},{node:Rt,shadow:null})}}};return t.sanitize=function(he){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,ce=null,be=null,et=null;if(xn=!he,xn&&(he="<!-->"),typeof he!="string"&&!Vd(he)&&(he=RYe(he),typeof he!="string"))throw rh("dirty is not a string, aborting");if(!t.isSupported)return he;Ie?(me=on,ue=jn):ze(R),(F.uponSanitizeElement.length>0||F.uponSanitizeAttribute.length>0)&&(me=Ps(me)),F.uponSanitizeAttribute.length>0&&(ue=Ps(ue)),t.removed=[];let Mt=Dt&&typeof he!="string"&&Vd(he);if(Mt){GI(he);let Ir=y(he);if(typeof Ir=="string"){let hr=mo(Ir);if(!me[hr]||pe[hr])throw Gd(he),rh("root node is forbidden and cannot be sanitized in-place")}if(rf(he))throw Gd(he),rh("root node is clobbered and cannot be sanitized in-place");try{Lr(he)}catch(hr){throw Gd(he),hr}}else if(Vd(he))X=a2("<!---->"),ce=X.ownerDocument.importNode(he,!0),ce.nodeType===Es.element&&ce.nodeName==="BODY"||ce.nodeName==="HTML"?X=ce:X.appendChild(ce),Lr(X);else{if(!je&&!qe&&!Le&&he.indexOf("<")===-1)return O&&bt?C(he):he;if(X=a2(he),!X)return je?null:bt?P:""}X&&Ja&&Ea(X.firstChild);let Rt=Mt?he:X;try{let Ir=i2(Rt);for(;be=Ir.nextNode();)VT(be,Rt),p2(be,Rt),bp(be.content)&&ql(be.content)}catch(Ir){throw Mt&&(Gd(he),wg(t.removed,hr=>{hr.element&&nf(hr.element)})),Ir}if(Mt){let Ir=!1;if(wg(t.removed,hr=>{hr.element&&(hr.element===he&&(Ir=!0),nf(hr.element))}),Ir)throw rh("a node selected for removal could not be safely returned; refusing to sanitize in place");return qe&&un(he),he}if(je){if(qe&&un(X),pt)for(et=K.call(X.ownerDocument);X.firstChild;)et.appendChild(X.firstChild);else et=X;return(ue.shadowroot||ue.shadowrootmode)&&(et=J.call(n,et,!0)),et}let So=Le?X.outerHTML:X.innerHTML;return Le&&me["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&za(zYe,X.ownerDocument.doctype.name)&&(So="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
3
3
  `+So),qe&&(So=$d(So)),O&&bt?C(So):So},t.setConfig=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ze(he),Ie=!0,on=me,jn=ue},t.clearConfig=function(){Ci=null,Ie=!1,on=null,jn=null,O=B,P=""},t.isValidAttribute=function(he,R,X){Ci||ze({});let ce=mo(he),be=mo(R);return Ar(ce,be,X)},t.addHook=function(he,R){typeof R=="function"&&ji(F,he)&&ek(F[he],R)},t.removeHook=function(he,R){if(ji(F,he)){if(R!==void 0){let X=kYe(F[he],R);return X===-1?void 0:SYe(F[he],X,1)[0]}return _ge(F[he])}},t.removeHooks=function(he){ji(F,he)&&(F[he]=[])},t.removeAllHooks=function(){F=zge()},t}var jYe=$ge();Vge.exports=jYe});var Jh=hn(m0=>{"use strict";var n$,Cwt=[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 Cwt[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.');n$=t};m0.isKanjiModeEnabled=function(){return typeof n$<"u"};m0.toSJIS=function(t){return n$(t)}});var wI=hn(Kl=>{"use strict";Kl.L={bit:1};Kl.M={bit:0};Kl.Q={bit:3};Kl.H={bit:2};function _wt(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Kl.L;case"m":case"medium":return Kl.M;case"q":case"quartile":return Kl.Q;case"h":case"high":return Kl.H;default:throw new Error("Unknown EC Level: "+e)}}Kl.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};Kl.from=function(t,o){if(Kl.isValid(t))return t;try{return _wt(t)}catch{return o}}});var COe=hn((cun,POe)=>{"use strict";function EOe(){this.buffer=[],this.length=0}EOe.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++}};POe.exports=EOe});var ROe=hn((pun,_Oe)=>{"use strict";function _T(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)}_T.prototype.set=function(e,t,o,n){let r=e*this.size+t;this.data[r]=o,n&&(this.reservedBit[r]=!0)};_T.prototype.get=function(e,t){return this.data[e*this.size+t]};_T.prototype.xor=function(e,t,o){this.data[e*this.size+t]^=o};_T.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};_Oe.exports=_T});var NOe=hn(xI=>{"use strict";var Rwt=Jh().getSymbolSize;xI.getRowColCoords=function(t){if(t===1)return[];let o=Math.floor(t/7)+2,n=Rwt(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()};xI.getPositions=function(t){let o=[],n=xI.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 LOe=hn(AOe=>{"use strict";var Nwt=Jh().getSymbolSize,OOe=7;AOe.getPositions=function(t){let o=Nwt(t);return[[0,0],[o-OOe,0],[0,o-OOe]]}});var IOe=hn(tn=>{"use strict";tn.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};tn.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};tn.from=function(t){return tn.isValid(t)?parseInt(t,10):void 0};tn.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};tn.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};tn.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};tn.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 Owt(e,t,o){switch(e){case tn.Patterns.PATTERN000:return(t+o)%2===0;case tn.Patterns.PATTERN001:return t%2===0;case tn.Patterns.PATTERN010:return o%3===0;case tn.Patterns.PATTERN011:return(t+o)%3===0;case tn.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(o/3))%2===0;case tn.Patterns.PATTERN101:return t*o%2+t*o%3===0;case tn.Patterns.PATTERN110:return(t*o%2+t*o%3)%2===0;case tn.Patterns.PATTERN111:return(t*o%3+(t+o)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}tn.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,Owt(t,a,r))};tn.getBestMask=function(t,o){let n=Object.keys(tn.Patterns).length,r=0,a=1/0;for(let i=0;i<n;i++){o(i),tn.applyMask(i,t);let s=tn.getPenaltyN1(t)+tn.getPenaltyN2(t)+tn.getPenaltyN3(t)+tn.getPenaltyN4(t);tn.applyMask(i,t),s<a&&(a=s,r=i)}return r}});var a$=hn(r$=>{"use strict";var Qh=wI(),yI=[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],vI=[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];r$.getBlocksCount=function(t,o){switch(o){case Qh.L:return yI[(t-1)*4+0];case Qh.M:return yI[(t-1)*4+1];case Qh.Q:return yI[(t-1)*4+2];case Qh.H:return yI[(t-1)*4+3];default:return}};r$.getTotalCodewordsCount=function(t,o){switch(o){case Qh.L:return vI[(t-1)*4+0];case Qh.M:return vI[(t-1)*4+1];case Qh.Q:return vI[(t-1)*4+2];case Qh.H:return vI[(t-1)*4+3];default:return}}});var FOe=hn(SI=>{"use strict";var RT=new Uint8Array(512),kI=new Uint8Array(256);(function(){let t=1;for(let o=0;o<255;o++)RT[o]=t,kI[t]=o,t<<=1,t&256&&(t^=285);for(let o=255;o<512;o++)RT[o]=RT[o-255]})();SI.log=function(t){if(t<1)throw new Error("log("+t+")");return kI[t]};SI.exp=function(t){return RT[t]};SI.mul=function(t,o){return t===0||o===0?0:RT[kI[t]+kI[o]]}});var BOe=hn(NT=>{"use strict";var i$=FOe();NT.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]^=i$.mul(t[r],o[a]);return n};NT.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]^=i$.mul(o[i],r);let a=0;for(;a<n.length&&n[a]===0;)a++;n=n.slice(a)}return n};NT.generateECPolynomial=function(t){let o=new Uint8Array([1]);for(let n=0;n<t;n++)o=NT.mul(o,new Uint8Array([1,i$.exp(n)]));return o}});var MOe=hn((wun,DOe)=>{"use strict";var HOe=BOe();function s$(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}s$.prototype.initialize=function(t){this.degree=t,this.genPoly=HOe.generateECPolynomial(this.degree)};s$.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=HOe.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};DOe.exports=s$});var l$=hn(zOe=>{"use strict";zOe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var d$=hn(Rm=>{"use strict";var WOe="[0-9]+",Awt="[A-Z $%*+\\-./:]+",OT="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";OT=OT.replace(/u/g,"\\u");var Lwt="(?:(?![A-Z0-9 $%*+\\-./:]|"+OT+`)(?:.|[\r
4
4
  ]))+`;Rm.KANJI=new RegExp(OT,"g");Rm.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Rm.BYTE=new RegExp(Lwt,"g");Rm.NUMERIC=new RegExp(WOe,"g");Rm.ALPHANUMERIC=new RegExp(Awt,"g");var Iwt=new RegExp("^"+OT+"$"),Fwt=new RegExp("^"+WOe+"$"),Bwt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Rm.testKanji=function(t){return Iwt.test(t)};Rm.testNumeric=function(t){return Fwt.test(t)};Rm.testAlphanumeric=function(t){return Bwt.test(t)}});var ef=hn(pr=>{"use strict";var Hwt=l$(),c$=d$();pr.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};pr.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};pr.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};pr.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};pr.MIXED={bit:-1};pr.getCharCountIndicator=function(t,o){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!Hwt.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?t.ccBits[0]:o<27?t.ccBits[1]:t.ccBits[2]};pr.getBestModeForData=function(t){return c$.testNumeric(t)?pr.NUMERIC:c$.testAlphanumeric(t)?pr.ALPHANUMERIC:c$.testKanji(t)?pr.KANJI:pr.BYTE};pr.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};pr.isValid=function(t){return t&&t.bit&&t.ccBits};function Dwt(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return pr.NUMERIC;case"alphanumeric":return pr.ALPHANUMERIC;case"kanji":return pr.KANJI;case"byte":return pr.BYTE;default:throw new Error("Unknown mode: "+e)}}pr.from=function(t,o){if(pr.isValid(t))return t;try{return Dwt(t)}catch{return o}}});var KOe=hn(h0=>{"use strict";var TI=Jh(),Mwt=a$(),UOe=wI(),tf=ef(),p$=l$(),$Oe=7973,GOe=TI.getBCHDigit($Oe);function zwt(e,t,o){for(let n=1;n<=40;n++)if(t<=h0.getCapacity(n,o,e))return n}function VOe(e,t){return tf.getCharCountIndicator(e,t)+4}function Wwt(e,t){let o=0;return e.forEach(function(n){let r=VOe(n.mode,t);o+=r+n.getBitsLength()}),o}function Uwt(e,t){for(let o=1;o<=40;o++)if(Wwt(e,o)<=h0.getCapacity(o,t,tf.MIXED))return o}h0.from=function(t,o){return p$.isValid(t)?parseInt(t,10):o};h0.getCapacity=function(t,o,n){if(!p$.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=tf.BYTE);let r=TI.getSymbolTotalCodewords(t),a=Mwt.getTotalCodewordsCount(t,o),i=(r-a)*8;if(n===tf.MIXED)return i;let s=i-VOe(n,t);switch(n){case tf.NUMERIC:return Math.floor(s/10*3);case tf.ALPHANUMERIC:return Math.floor(s/11*2);case tf.KANJI:return Math.floor(s/13);case tf.BYTE:default:return Math.floor(s/8)}};h0.getBestVersionForData=function(t,o){let n,r=UOe.from(o,UOe.M);if(Array.isArray(t)){if(t.length>1)return Uwt(t,r);if(t.length===0)return 1;n=t[0]}else n=t;return zwt(n.mode,n.getLength(),r)};h0.getEncodedBits=function(t){if(!p$.isValid(t)||t<7)throw new Error("Invalid QR Code version");let o=t<<12;for(;TI.getBCHDigit(o)-GOe>=0;)o^=$Oe<<TI.getBCHDigit(o)-GOe;return t<<12|o}});var XOe=hn(qOe=>{"use strict";var m$=Jh(),jOe=1335,Gwt=21522,YOe=m$.getBCHDigit(jOe);qOe.getEncodedBits=function(t,o){let n=t.bit<<3|o,r=n<<10;for(;m$.getBCHDigit(r)-YOe>=0;)r^=jOe<<m$.getBCHDigit(r)-YOe;return(n<<10|r)^Gwt}});var JOe=hn((Tun,ZOe)=>{"use strict";var $wt=ef();function jy(e){this.mode=$wt.NUMERIC,this.data=e.toString()}jy.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};jy.prototype.getLength=function(){return this.data.length};jy.prototype.getBitsLength=function(){return jy.getBitsLength(this.data.length)};jy.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))};ZOe.exports=jy});var eAe=hn((Eun,QOe)=>{"use strict";var Vwt=ef(),u$=["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 qy(e){this.mode=Vwt.ALPHANUMERIC,this.data=e}qy.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};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;for(o=0;o+2<=this.data.length;o+=2){let n=u$.indexOf(this.data[o])*45;n+=u$.indexOf(this.data[o+1]),t.put(n,11)}this.data.length%2&&t.put(u$.indexOf(this.data[o]),6)};QOe.exports=qy});var oAe=hn((Pun,tAe)=>{"use strict";var Kwt=ef();function Xy(e){this.mode=Kwt.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}Xy.getBitsLength=function(t){return t*8};Xy.prototype.getLength=function(){return this.data.length};Xy.prototype.getBitsLength=function(){return Xy.getBitsLength(this.data.length)};Xy.prototype.write=function(e){for(let t=0,o=this.data.length;t<o;t++)e.put(this.data[t],8)};tAe.exports=Xy});var rAe=hn((Cun,nAe)=>{"use strict";var Ywt=ef(),jwt=Jh();function Zy(e){this.mode=Ywt.KANJI,this.data=e}Zy.getBitsLength=function(t){return t*13};Zy.prototype.getLength=function(){return this.data.length};Zy.prototype.getBitsLength=function(){return Zy.getBitsLength(this.data.length)};Zy.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let o=jwt.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 f=v=>{!m||!lde(e,!1)||v.target===v.currentTarget&&p()},g=e.height==="full",b=e.fullWidth||g,w=GDe(e),x=IB("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% - ${FB}px)`:"100%",borderRadius:b?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[w.place!=="none"?tg("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:-UDe,right:0}:{top:12,right:12},children:"\xD7"}):null,w.until?tg("style",{children:`@container popup-frame (min-width: ${w.until+1}px){[data-popup-close-until="${w.until}"]{display:none}}`}):null,tg("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return tg("div",{role:a||r?"dialog":"region","aria-modal":m?!0:void 0,"aria-label":s,"data-popup-frame":r?"inline":"live",onClick:f,className:r?"relative flex min-h-[100vh] w-full":"fixed inset-0 z-[90] flex",style:{...WDe[e.placement],background:sde(e.tintColor,e.tintOpacity),padding:b?0:w.place==="outside"&&e.placement.startsWith("top")?`${24+FB}px 24px 24px`:24,...w.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:x})}var VDe=25.4,p1=400,W_=152,KDe=58,dde=W_*Math.cos(KDe*Math.PI/180),YDe=14,jDe=p1/2,qDe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function pde(e){let t=fs(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:qDe}function mde(e){let t=e.rimDiameter*VDe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=W_*(e.sectionWidth/o),r=t/o;return{cy:jDe,rx:dde,ry:W_,cxf:p1/2-n/2-YDe,dx:n,rimRx:dde*r,rimRy:W_*r}}var eo=e=>e.toFixed(1);function U_(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${eo(r)} ${eo(a)} A${eo(e.rx)} ${eo(e.ry)} 0 0 ${o} ${eo(r)} ${eo(i)}`}function DB(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${eo(n)} ${eo(a)} L${eo(r)} ${eo(a)} A${eo(e.rx)} ${eo(e.ry)} 0 0 1 ${eo(r)} ${eo(i)} L${eo(n)} ${eo(i)} A${eo(e.rx)} ${eo(e.ry)} 0 0 0 ${eo(n)} ${eo(a)} Z`}function z_(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 ude(e,t,o,n,r){let[a,i]=z_(e,t,n),[s,l]=z_(e,t,r),[d,c]=z_(e,o,r),[p,m]=z_(e,o,n);return`M${eo(a)} ${eo(i)} A${eo(e.rx)} ${eo(e.ry)} 0 0 1 ${eo(s)} ${eo(l)} L${eo(d)} ${eo(c)} A${eo(e.rx)} ${eo(e.ry)} 0 0 0 ${eo(p)} ${eo(m)} L${eo(a)} ${eo(i)} Z`}var cde=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],XDe={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}}]},ZDe=[["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 hde(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return cde;for(let[o,n]of ZDe)if(t.includes(` ${o} `))return XDe[n];return cde}var G_="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as JDe}from"react";function Ha(e,t=/:/g){let o=JDe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as m1,jsx as jt,jsxs as Pc}from"react/jsx-runtime";var ks={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},QDe=[.8,.52,.24],fde=.4,gde=.88,bde=.3,wde=5,xde=.3,yde=.84,eMe=7,fo=e=>Math.round(e*10)/10;function MB({size:e,type:t,className:o}){let n=Ha("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=mde(pde(e)),i=DB(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Pc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${p1} ${p1}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[jt("title",{children:s}),Pc("defs",{children:[jt(oMe,{id:r}),jt("clipPath",{id:r.crown,children:jt("path",{d:i})})]}),jt("ellipse",{cx:fo(a.cxf+a.dx/2),cy:fo(a.cy+a.ry-4),rx:fo(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),jt(nMe,{g:a,id:r}),jt(rMe,{g:a,id:r}),jt("path",{d:i,fill:`url(#${r.tread})`}),jt("g",{clipPath:`url(#${r.crown})`,children:hde(t).map(l=>jt(tMe,{g:a,column:l},l.f[0]))}),jt("path",{d:U_(a,0,0,!0),stroke:"currentColor",strokeOpacity:ks.shoulder,strokeWidth:1.2}),jt("path",{d:U_(a,1,1),stroke:"currentColor",strokeOpacity:ks.silhouette,strokeWidth:1.4})]})}function tMe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Pc(m1,{children:[jt("path",{d:DB(e,o,n),fill:"currentColor",fillOpacity:ks.rib}),jt("path",{d:U_(e,o,1),stroke:"currentColor",strokeOpacity:ks.grooveWall,strokeWidth:1})]});let{count:r,gap:a,phase:i=0}=t.blocks,s=1/r,l=[];for(let d=-1;d<=r;d+=1){let c=Math.max((d+i+a/2)*s,0),p=Math.min((d+i+1-a/2)*s,1);p-c>s*.15&&l.push([c,p])}return jt(m1,{children:l.map(([d,c])=>jt("path",{d:ude(e,o,n,d,c),fill:"currentColor",fillOpacity:ks.rib,stroke:"currentColor",strokeOpacity:ks.grooveWall,strokeWidth:1},d))})}function oMe({id:e}){return Pc(m1,{children:[Pc("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),jt("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),jt("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),Pc("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),Pc("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),jt("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),Pc("radialGradient",{id:e.shadow,children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function nMe({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 Pc(m1,{children:[jt("ellipse",{cx:fo(e.cxf),cy:fo(e.cy),rx:fo(e.rx),ry:fo(e.ry),fill:`url(#${t.wall})`}),QDe.map((a,i)=>{let s=n(a);return jt("ellipse",{cx:fo(e.cxf),cy:fo(e.cy),rx:fo(e.rx*s),ry:fo(e.ry*s),stroke:"currentColor",strokeOpacity:ks.relief[i],strokeWidth:1},a)}),jt("ellipse",{cx:fo(e.cxf),cy:fo(e.cy),rx:fo(e.rx*n(fde)),ry:fo(e.ry*n(fde)),stroke:"currentColor",strokeOpacity:ks.lettering,strokeWidth:fo(r)})]})}function rMe({g:e,id:t}){let o=Array.from({length:wde},(n,r)=>{let a=(r*(360/wde)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*xde*Math.cos(a),y1:e.cy+e.rimRy*xde*Math.sin(a),x2:e.cxf+e.rimRx*yde*Math.cos(a),y2:e.cy+e.rimRy*yde*Math.sin(a)}});return Pc(m1,{children:[jt("ellipse",{cx:fo(e.cxf),cy:fo(e.cy),rx:fo(e.rimRx),ry:fo(e.rimRy),fill:`url(#${t.rim})`}),jt("ellipse",{cx:fo(e.cxf),cy:fo(e.cy),rx:fo(e.rimRx*gde),ry:fo(e.rimRy*gde),fill:"currentColor",fillOpacity:ks.dishFill,stroke:"currentColor",strokeOpacity:ks.dishEdge,strokeWidth:1}),o.map((n,r)=>jt("line",{x1:fo(n.x1),y1:fo(n.y1),x2:fo(n.x2),y2:fo(n.y2),stroke:"currentColor",strokeOpacity:ks.spoke,strokeWidth:eMe,strokeLinecap:"round"},r)),jt("ellipse",{cx:fo(e.cxf),cy:fo(e.cy),rx:fo(e.rimRx*bde),ry:fo(e.rimRy*bde),fill:"currentColor",fillOpacity:ks.hubFill,stroke:"currentColor",strokeOpacity:ks.hubEdge,strokeWidth:1})]})}import{jsx as zB}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 zB("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:zB(ro,{label:t||"Tyre",src:od(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:zB(MB,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as u1}from"react/jsx-runtime";function aMe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function WB({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??qoe;return u1("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:M_(e)?u1(Qp,{image:o?.coverImage,size:e.size,type:aMe(o),sizes:"96px",className:"h-full w-full"}):a?.src?u1(rl,{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?u1("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:u1(Of,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as UB,jsxs as sMe}from"react/jsx-runtime";var vde={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function kde(e,t){return Math.min(X4,Math.max(1,e+t))}var Sde="disabled:cursor-not-allowed disabled:opacity-40",iMe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${vde.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${Sde}`,value:`w-11 text-center font-mono ${vde.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 ${Sde}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function h1({value:e,onChange:t,size:o}){let n=iMe[o];return sMe("div",{className:n.frame,children:[UB("button",{type:"button",onClick:()=>t(kde(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),UB("span",{className:n.value,children:e}),UB("button",{type:"button",onClick:()=>t(kde(e,1)),disabled:e>=X4,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as Cc,jsx as Ke,jsxs as to}from"react/jsx-runtime";function Tde({content:e,closeRef:t}){let{close:o,items:n}=tr(),r=t;return to("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:[to("div",{className:"flex items-center justify-between",children:[to("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"})]}),to("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:wQ(e,n.length)})]})}function Ede({content:e}){let{totals:t}=tr(),{activeCountry:o}=Lt(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ke(Cc,{children:to("div",{className:`grid flex-shrink-0 ${lMe[r-1]} gap-px border-b border-line bg-line`,children:[Ke(GB,{label:"Items",value:to(Cc,{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(GB,{label:"Lead time",value:e.leadTimeValue}):null,n?Ke(GB,{label:"Ships to",value:n}):null]})})}function Pde({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=tr();return Ke(Cc,{children:o.length===0?Ke(uMe,{content:e}):o.map(a=>Ke(dMe,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function Cde(){let{items:e,totals:t,bundles:o}=tr(),{formatMoney:n}=Lt(),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(Cc,{children:i.length>0&&to("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:[to("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:pMe(s,t.currency,n)},s.slug))})]})})}function _de(){return Ke(Cc,{children:Ke("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ke(Joe,{})})})}function Rde({content:e}){return Ke(Cc,{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(mMe,{children:t},t))})})}function Nde(){let{totals:e,coupon:t}=tr(),{formatMoney:o}=Lt();return Ke(Cc,{children:to("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ke(Mu,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ke(Mu,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:to("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),e.discount>0&&t?.valid&&Ke(Mu,{label:`Coupon \xB7 ${t.code}`,value:to("span",{style:{color:"var(--green)"},children:["\u2212 ",o(e.discount,e.currency)]})}),t?.deferred&&Ke(Mu,{label:`Coupon \xB7 ${t.code}`,value:Noe}),t?.valid&&t.effects?.gift&&Ke(Mu,{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:Nf})}),Ke(Mu,{label:"Shipping",value:e.shippingStatus==="free"?Ke("span",{style:{color:"var(--green)"},children:Nf}):Koe(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ke(Mu,{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(Mu,{label:e.tax.name,value:Voe}):null),to("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[to("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?Moe:o(e.grand,e.currency)})]})]})})}function Ode(){let{items:e,close:t}=tr();return Ke(Cc,{children:to("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[to(Ae,{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(Ae,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var lMe=["grid-cols-1","grid-cols-2","grid-cols-3"];function GB({label:e,value:t}){return to("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 dMe({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=tr(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=Lt();return to(Cc,{children:[to("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(WB,{line:e,catalog:r,tyre:t}),to("div",{className:"flex min-w-0 flex-col gap-2",children:[to("div",{className:"flex items-start justify-between gap-3",children:[to("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?to(Cc,{children:["FusionForge",Ke(uP,{})]}):e.process]}),Ke("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:Q4(e,s)===null?lu:l(Q4(e,s),s)})]}),to("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&&to("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&&to("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"]})]}),to("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ke(h1,{value:e.qty,onChange:n,size:"small"}),to("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[Ke(Ae,{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&&to("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"}),to("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 to(Ae,{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:[to("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 pMe(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 mMe({children:e}){return Ke("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function Mu({label:e,value:t}){return to("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 uMe({content:e}){return to("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}),to(Ae,{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 zu,jsxs as Ade}from"react/jsx-runtime";var gMe=nu(void 0);function f1({content:e=aC,look:t=gMe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=tr(),s=fMe(null),l=ide(a.filter(M_).map(d=>d.slug));return hMe(()=>{i(t.autoOpen)},[t.autoOpen,i]),Ade(kl,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:"Your cart",children:[zu(Tde,{content:e,closeRef:s}),zu(Ede,{content:e}),Ade("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[zu(Pde,{content:e,tyres:l}),zu(Cde,{}),zu(_de,{}),zu(Rde,{content:e})]}),zu(Nde,{}),zu(Ode,{})]})}import bMe from"efficient-easel/screen/components/UiIcon";import{Fragment as xMe,jsx as og,jsxs as $_}from"react/jsx-runtime";var wMe=ew(()=>import("./chunks/EditorPreviewCheckout-BJXYQD6G.js"),{ssr:!1});function $B(){let{chromePlaceholder:e,themeFromDocument:t}=Gn(),{surface:o}=Vee();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?$_(xMe,{children:[og(wMe,{}),og(Lde,{surface:o})]}):og(cu,{children:$_(Mb,{preview:!0,children:[og(f1,{}),og(Lde,{surface:o})]})})}function Lde({surface:e}){let{label:t,href:o}=gle(e);return $_("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:[og("span",{style:{whiteSpace:"nowrap"},children:u("{name} \xB7 preview only",{name:u(t)})}),$_("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"),og(bMe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as yMe,CursorClickIcon as vMe,EyeIcon as kMe,FullWidthIcon as SMe,HeightIcon as TMe,OpacityIcon as Bde,PlacementIcon as EMe,WidthIcon as PMe}from"efficient-easel/icons";import{group as Cw}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as CMe}from"efficient-easel/screen/lib/document/device-fields";import{jsx as em}from"react/jsx-runtime";var _Me={label:"Inside",value:"inside"},RMe={label:"None",value:"none"};function VB(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,CMe("desktop",o)]))}function Ide(e,t){return{_gDesign:Cw("Color"),tintColor:id("Tint color",e),tintOpacity:de("Tint opacity",em(Bde,{}),ev.min,ev.max,5,t,"%")}}function Fde(e,t){return{_gBehavior:Cw("Behavior"),outsideClick:ae("Outside click",e,em(vMe,{})),...t}}var NMe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function KB(e){return de("Width",em(PMe,{}),E4.min,E4.max,4,e,"px")}function Hde(e){if(e===ou){let o=nu(void 0);return VB({_gSize:Cw("Width"),width:KB(o.width),_gPosition:Cw("Placement"),placement:fe("Placement",em(EMe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...Ide(o.tintColor,o.tintOpacity),...Fde(o.outsideClick,{autoOpen:ae("Auto open",o.autoOpen,em(kMe,{}))})})}let t=bb;return Fe(VB({_gSize:Cw("Width"),width:KB(t.width),height:fe("Height",em(TMe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:Cw("Placement"),placement:rd("Placement",{fallback:t.placement}),fullWidth:ae("Full width",t.fullWidth,em(SMe,{})),...Ide(t.tintColor,t.tintOpacity),...Fde(t.outsideClick,{closeButton:fe("Close button",em(yMe,{}),[_Me,{label:"Outside",value:"outside"},RMe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],NMe])}function Dde(e,t){return VB({menuPanelWidth:KB(e),menuPanelTintColor:id("Tint color",bb.tintColor),menuPanelTintOpacity:de("Tint opacity",em(Bde,{}),ev.min,ev.max,5,t,"%")})}import{PictureTiles as OMe}from"efficient-shell/ui";import{SettingsField as AMe}from"efficient-easel/panel";import{GridIcon as LMe}from"efficient-easel/icons";import{jsx as ng}from"react/jsx-runtime";function IMe({layout:e}){return ng("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?ng("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):ng("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var Mde={type:"custom",render:({value:e,onChange:t})=>{let o=iC({layout:e}).layout,n=P4.find(r=>r.value===o);return ng(AMe,{label:u(C4),icon:ng(LMe,{}),value:n?u(n.label):void 0,children:ng(OMe,{className:"sf-gallery-layouts",label:u(C4),value:o,onChange:t,options:P4.map(r=>({value:r.value,label:u(r.label),picture:ng(IMe,{layout:r.value})}))})})}};import{CategoryIcon as yyt,CheckIcon as vyt,ClockIcon as M$,ColumnsIcon as kyt,DirectionIcon as Syt,EyeIcon as Tyt,ListIcon as Eyt,PageIcon as Pyt,PlacementIcon as Cyt,ScrollPointIcon as _yt,TabsIcon as Ryt,TriggerIcon as Nyt}from"efficient-easel/icons";import{deviceField as lLe}from"efficient-easel/screen/lib/document/device-fields";import{group as jl,phoneTwinFields as Oyt}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as FMe}from"efficient-easel/screen/lib/document/box-fields";function _w(e){let t=FMe(e);return{...t,render:o=>t.render({...o,value:Im(o.value)??o.value})}}import{useContext as HMe,useEffect as Wde,useRef as K_,useState as Y_}from"react";import{Button as j_}from"efficient-shell/ui";import{ScreenDocumentContext as DMe}from"efficient-easel/screen/components/ScreenDocumentContext";var g1=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},V_=null,YB=null,jB=null;function BMe(){V_=null,YB=null,jB=null}function zde(e=!1){let t=aa(),o=Nn();return(e||!V_||YB===null&&t!==null||jB!==o)&&(YB=t,jB=o,V_=(t?Oe.listForms(t,{siteId:o}):Promise.reject(new g1)).catch(n=>{throw BMe(),n instanceof g1?n:new g1(n)})),V_}import{useEaselHost as MMe}from"efficient-easel/screen/lib/host";import{InertHint as qB}from"efficient-easel/panel";import{jsx as nr,jsxs as _c}from"react/jsx-runtime";var Ude="__create-a-new-form__";function zMe({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:Ude,label:u("Create a new form")}];return[s,...l,...d,...c]}function WMe(e){return e===Ude?{action:"create"}:{action:"store",slug:e}}function UMe({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 GMe(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 XB({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=MMe(),a=HMe(DMe),i=a?a.capabilities.hasForms:!0,[s,l]=Y_(null),[d,c]=Y_(!1),[p,m]=Y_(!1),[h,f]=Y_(!1),g=K_(!0),b=K_(e);b.current=e;let w=K_(t);w.current=t;let x=K_(null),v=(P=!1)=>zde(P).then(B=>{if(g.current){l(B),c(!1);let D=UMe({value:b.current,pickedId:x.current,forms:B});D&&w.current(D)}return B},()=>(g.current&&c(!0),[]));Wde(()=>(g.current=!0,i&&v(),()=>{g.current=!1}),[i]),Wde(()=>i?t5(()=>{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=zMe({value:e,forms:s,loadFailed:d,emptyLabel:n}),y=async()=>{m(!0),f(!1);try{let P=await wne(r,{mode:"create"}),B=await v(!0);if(!g.current)return;if(P.status==="timeout"){f(!0);return}if(P.status!=="saved")return;let{form:D}=P;D.slug!==b.current&&w.current(D.slug),B.some(L=>L.id===D.id)||v(!0)}finally{g.current&&m(!1)}},O=P=>{let B=WMe(P);B.action==="create"?y():(f(!1),t(B.slug))};return i?_c("div",{className:"sf-formpicker",children:[nr(gb,{label:o,options:E,fallback:"",value:e??"",onChange:O,placeholder:u("Search forms\u2026")}),h&&nr("p",{className:"sf-formsummary-warn",children:u("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),S?_c("div",{className:"sf-blogsource sf-formsummary",children:[_c("div",{children:[nr("div",{className:"sf-formsummary-caption",children:Jn("{n} field","{n} fields",S.fields.length)}),S.fields.length?nr("ol",{className:"sf-formsummary-fields",children:S.fields.map((P,B)=>nr("li",{children:P.label},P.key||`${P.label}-${B}`))}):nr(qB,{children:u("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),_c("div",{children:[nr("div",{className:"sf-formsummary-caption",children:u("Where the answers go")}),nr("ul",{className:"sf-formsummary-fields",children:GMe(S).map(P=>nr("li",{children:P},P))})]}),!S.is_active&&nr("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")})}),_c("div",{className:"sf-formsummary-actions",children:[nr(j_,{variant:"secondary",size:"md",onClick:()=>bne(r,S.id),children:u("Edit form \u270E")}),nr(j_,{variant:"secondary",size:"md",disabled:p,onClick:()=>{y()},children:u("New form +")})]}),nr("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")})})]}):_c("div",{className:"sf-blogsource sf-formsummary",children:[d?_c(qB,{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&&nr("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??""})}),_c("div",{className:"sf-formsummary-actions",children:[d&&nr(j_,{variant:"secondary",size:"md",disabled:p,onClick:()=>{v(!0)},children:u("Try again")}),nr(j_,{variant:"secondary",size:"md",disabled:p,onClick:()=>{y()},children:u("New form +")})]}),!d&&nr("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")})})]})]}):nr("div",{className:"sf-formpicker",children:nr("div",{className:"sf-blogsource sf-formsummary",children:_c("div",{children:[nr("div",{className:"sf-formsummary-caption",children:u(o)}),_c(qB,{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 $Me}from"react/jsx-runtime";function Rc(e,t){return{type:"custom",render:({value:o,onChange:n})=>$Me(XB,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{jsx as JB}from"react/jsx-runtime";import{ListIcon as VMe}from"efficient-easel/icons";import{NoControlMark as KMe,noControlField as YMe}from"efficient-easel/screen/lib/document/panel-no-control-mark";function qt(e,t){return fe(e,JB(VMe,{}),[{label:t,value:""}],"")}var rg="_sourceEdit";function Rw(){return YMe({type:"custom",render:()=>JB(KMe,{})},"always")}var Gde=new Map,$de=new WeakMap,Vde=(e,t)=>({type:"custom",render:()=>JB(Li,{compact:!0,status:"ok",hint:u("Where this content is edited."),edit:{label:e,onClick:t}})});function jMe(e){if(AV(e)){let n=$de.get(e.open);n||$de.set(e.open,n=new Map);let r=n.get(e.label);return r||n.set(e.label,r=Vde(e.label,e.open)),r}let t=`${e.label}\0${e.href}`,o=Gde.get(t);return o||(o=Vde(e.label,()=>window.open(e.href,"_blank","noopener")),Gde.set(t,o)),o}var Kde=new WeakMap,Yde=-1,ZB={},jde=new WeakMap;function Xde(e,t,o){return LV(e).filter(n=>!n.records||n.key===t||o!==null&&n.records.includes(o))}function qMe(e,t,o,n){Yde!==Lm()&&(Yde=Lm(),ZB={});let r=Kde.get(t);(!r||jde.get(r)!==ZB)&&(r=new Map,jde.set(r,ZB),Kde.set(t,r));let a=Xde(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 qde=new WeakMap,Sl={not:{field:ss,set:!0}};function Xt(e,t,o,n={}){let r=t[ss];if(!r)return t;let a=mt(o),i=AP(n.root),s=Xde(e,a,i).length>0||a!=="",l=s?qMe(e,r,a,i):null,d=qde.get(t);d||qde.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??[]),h=a?k0(a)?.edit:void 0,f={};for(let[g,b]of Object.entries(t))g===ss?l&&(f[g]=l):g===rg?h&&(f[g]=jMe(h)):f[g]=m.has(g)&&b&&typeof b=="object"?dt(b,Sl):b;return d.set(c,f),f}import{createContext as XMe,useContext as ZMe}from"react";import{jsx as Nc,jsxs as QB}from"react/jsx-runtime";function e8(e){return ic(e)??void 0}var t8=XMe({}),Zde=3;function o8({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}=ZMe(t8),h=l==="bordered"?" border border-line":l==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",f=e8(r),g=Qn();if(m){let x={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:f??"",tag:e??"",href:n||"#"};return g.scope(Nc("div",{className:ho(`block w-full min-w-0 ${B0}`,g.className),...g.attrs,children:Nc(Ve,{ownerId:p??"Collections",ownerType:"Collections",Template:m,rows:[x],fallback:null,children:v=>v})}))}let b=x=>c?{[N0]:x}:{},w=x=>cE(d?.[O0(x)]?.role,_f[x],ZT);return g.scope(QB(Ae,{href:n||"#",className:ho(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${h}`,g.className),...g.attrs,children:[Nc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${nie}`,children:Nc(ro,{label:a||"collection.jpg",src:f})}),Nc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${iie} max-view-wide:hidden`,style:{transition:"none"}}),QB("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&&Nc("span",{...b("tag"),style:w("tag"),className:`font-mono ${Fp.tag} uppercase tracking-[0.25em] opacity-70`,children:A(e)}),t&&Nc("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&&At(o).map((x,v)=>Nc("p",{...b("body"),style:w("body"),className:`max-w-[420px] ${Fp.body} leading-[1.5] opacity-80`,children:A(x)},v)),s&&i&&Nc("span",{...b("price"),style:w("price"),className:`font-mono ${Fp.price} tracking-[0.05em] text-accent`,children:A(i)}),QB("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",Nc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as ace,useCallback as h9e,useContext as nce,useEffect as f9e,useRef as g9e,useState as s8}from"react";import{slugify as b9e}from"efficient-shell/format";import{useState as QMe}from"react";import{jsx as n8,Fragment as JMe}from"react/jsx-runtime";function Tl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=pX(e),a=mX(e),i=t?a:r,s=cX(i);return o&&!i?n8("span",{[Ym]:e,children:n}):i?n8("span",{ref:s,[nX]:i.stamp,...i.textStyle?{[rX]:i.textStyle}:{},children:n}):n8(JMe,{children:n})}import{jsx as Ki,jsxs as Nw}from"react/jsx-runtime";var r8=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function a8({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=>eQ(l,d,v),h=v=>p&&c?{[Qq]:c,[eX]:`@${v}`}:{},f=(v,k)=>!p&&c?Ki(Tl,{kind:`@${v}`,shared:!0,children:k}):k,[g,b]=QMe(!1),w=UY(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:[Ki(ro,{label:e.imageLabel,src:e.imageSrc}),!o&&Ki("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),Ki("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&&Ki(rl,{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&&Ki("span",{...h("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:f("tag",To(e.process))}),r!=null&&a!=null&&Ki("span",{...h("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:f("number",r8(r,a))})]}),Ki("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&&Ki("div",{...h("eyebrow"),className:`truncate font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-accent max-view-wide:text-[length:var(--size-label,11px)] max-view-wide:tracking-[0.15em] ${m("eyebrow")}`.trim(),children:f("eyebrow",e.car)}),e.wheel&&Ki("div",{...h("title"),className:`font-heading3 text-[length:var(--size-headingSmall,22px)] font-medium leading-[1.05] tracking-[-0.02em] max-view-wide:text-[length:var(--size-body,16px)] ${o?"uppercase ":""}${m("title")}`.trim(),children:f("title",e.wheel)}),e.finish&&Ki("div",{...h("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:Ki("span",{children:f("meta",To(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&&Ki("div",{...h("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${m("title")}`.trim(),children:f("title",e.wheel)}),(e.finish||e.car)&&Ki("div",{...h(e.finish?"meta":"eyebrow"),className:`mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim ${m(e.finish?"meta":"eyebrow")}`.trim(),children:f(e.finish?"meta":"eyebrow",To(e.finish||e.car))})]})]}):x}import{createContext as e9e,useCallback as t9e,useContext as o9e,useEffect as n9e,useLayoutEffect as r9e,useRef as i8,useState as a9e}from"react";import{createPortal as i9e}from"react-dom";import{Fragment as c9e,jsx as b1,jsxs as p9e}from"react/jsx-runtime";var s9e=".sf-themed-content",Jde="sf-section-accent";function l9e(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(Jde)&&(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 ${Jde}`:"contents",style:o}}function d9e(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 Qde=e9e(()=>{});function tm({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=i8(null),l=i8(null),[d,c]=a9e(null);r9e(()=>{if(!e){c(null);return}let f=s.current;if(!f)return;let g=f.closest(s9e)??f.ownerDocument.body;c({host:g,theme:l9e(f,g)})},[e]);let p=i8({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let m=e&&d!==null,h=t9e(()=>p.current.onClose(),[]);return Ec({active:m,onDismiss:h,scopeRef:l}),n9e(()=>{if(!m)return;let f=l.current,g=f?.ownerDocument??document,b=g.activeElement;f?.focus();let w=v=>{if(v.key==="ArrowLeft")p.current.onPrev?.();else if(v.key==="ArrowRight")p.current.onNext?.();else if(v.key==="Tab"&&f){let k=d9e(f);if(k.length===0){v.preventDefault(),f.focus();return}let S=k[0],T=k[k.length-1],E=g.activeElement,y=!!E&&f.contains(E)&&E!==f;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?p9e(c9e,{children:[b1("span",{ref:s,hidden:!0}),d&&i9e(b1("div",{className:d.theme.className,style:d.theme.style,children:b1("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 ${HB[8]} ${a}`,style:{background:BB},children:b1(Qde.Provider,{value:t,children:i})})}),d.host)]}):null}var q_="color-mix(in oklab, var(--bg) 70%, transparent)";function Wu({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=o9e(Qde);return b1("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as m9e,useContext as ag}from"react";var w1=m9e(null);function ece(){let e=ag(J2),t=ag(w1),o=RC();return e?e.socialLinks??Wee:t?t.socialLinks:o.links}function Uu(){return ag(w1)?.commerceEnabled??!0}function u9e(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Ow(){return u9e(ag(w1))}function tce(){let e=ag(w1),t=Gn();return e?e.showThemeSwitch??Sp:t.themeSwitchShown??Sp}function oce(){let e=ag(J2),t=ag(w1),o=Gn();return e?jC({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?jC({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):jC({siteName:o.websiteName?.trim()||ru})}import{useBrowserLayoutEffect as w9e}from"efficient-shell/hooks";import{Fragment as Aw,jsx as Po,jsxs as da}from"react/jsx-runtime";var x9e="(max-width: 1100px) 100vw, min(59vw, 1050px)",x1=ace({}),ice=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],d8=ace(null),Gu="data-gallery-grid",l8="data-gallery-tile";function y9e(e,t){let[o,n]=s8(null);return f9e(()=>{let r=e.current,a=r?.closest(`[${Gu}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${l8}]`)),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 bd={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},v9e=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),sce=Array.from({length:6},v9e);function k9e(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=b9e(e.name)||"gallery-item";return{car:e.eyebrow??"",wheel:e.name??"",process:e.process??"",finish:e.meta??"",imageLabel:`${r}.jpg`,detailLabel:`${r}-detail.jpg`,imageSrc:o||void 0,detailSrc:t[0]||o||void 0,photos:n,href:e.href}}function ig({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let{galleryHref:i="/gallery",submitHref:s="/contact",previewHover:l,display:d,displayPhone:c,styleOwner:p,photosOnly:m=!1,wordsAtRest:h=!1,Template:f,ownerId:g}=nce(x1),b=k9e(a),x=Uu()&&!m,v=!x&&!S9e(b),k=b.photos??(b.imageSrc?[b.imageSrc]:[]),S=g9e(null),T=h9e(F=>{S.current=F},[]),E=y9e(S,e),y=nce(d8),O=y?.report,P=r?.id,B=r?.tag??"",D=r?.name??"";w9e(()=>{if(!O||!P)return;let F={id:P,tag:B,name:D};return O(F),()=>O(F,!0)},[O,P,B,D]);let L=(P?y?.positionOf(P):null)??E,_=e&&(!!t||!!l),[C,I]=s8(!1),[U,Y]=s8(0),V=()=>Y(F=>(F-1+k.length)%k.length),j=()=>Y(F=>(F+1)%k.length),K=k[U]??b.imageSrc??"",te=k.slice(1),J=f?Po("div",{className:`block w-full min-w-0 ${B0}`,children:Po(Ve,{ownerId:g??"GalleryB",ownerType:"GalleryB",Template:f,rows:[{key:P??b.imageSrc??"tile",image:b.imageSrc??"",tag:b.process,number:L?r8(L.index,L.total):"",eyebrow:b.car,name:b.wheel,meta:b.finish,href:b.href??""}],items:[{hoverMedia:te.length?{photos:[{finish:"",items:te.map(F=>({url:F,kind:"image"}))}]}:null}],previewHover:_,fallback:null,children:F=>F})}):Po(a8,{build:b,forceHover:_,alwaysShowOverlay:h,index:L?.index,total:L?.total,ratio:o,captionPlace:n,display:d,displayPhone:c,styleOwner:p,editing:e});return da(Aw,{children:[e?Po(z,{as:"div",ref:T,[l8]:"",className:"block w-full text-left",children:J}):Po(z,{as:"button",ref:T,[l8]:"",type:"button","aria-label":x?`Open ${b.car||"build"} on ${b.wheel||"wheel"}`:rce(b),onClick:()=>{Y(0),I(!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}),Po(tm,{open:C,onClose:()=>I(!1),label:x?`${b.car} on ${b.wheel}`:rce(b),onPrev:k.length>1?V:void 0,onNext:k.length>1?j:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:da("div",{onClick:F=>F.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:[Po(Wu,{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:q_},children:"\u2715"}),da("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[K&&Po("img",{...Eo(K,{fallbackWidth:1280}),sizes:x9e,alt:`${(x?b.car:b.wheel||b.car)||"Photo"} \u2014 ${U+1} of ${k.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},K),k.length>1&&da(Aw,{children:[Po("button",{type:"button","aria-label":"Previous photo",onClick:V,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"}),Po("button",{type:"button","aria-label":"Next photo",onClick:j,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"}),da("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:[U+1," / ",k.length]})]})]}),x?da("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[b.process&&Po("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:A(b.process)}),b.wheel&&Po("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&&da("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",Po("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:A(b.car,!0)})]}),da("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&&da(Aw,{children:[Po("dt",{className:"text-fg-dim",children:"Wheel"}),Po("dd",{className:"text-fg",children:A(b.wheel)})]}),b.process&&da(Aw,{children:[Po("dt",{className:"text-fg-dim",children:"Process"}),Po("dd",{className:"text-fg",children:A(b.process)})]}),b.finish&&da(Aw,{children:[Po("dt",{className:"text-fg-dim",children:"Finish"}),Po("dd",{className:"text-fg",children:A(b.finish)})]}),b.car&&da(Aw,{children:[Po("dt",{className:"text-fg-dim",children:"Vehicle"}),Po("dd",{className:"text-fg",children:A(b.car)})]})]}),da("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[da(Ae,{href:b.href||"/wheels",onClick:()=>I(!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:[Po("span",{children:"View product"}),Po("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),da(Ae,{href:i,onClick:()=>I(!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:[Po("span",{children:"See more builds"}),Po("span",{children:"\u2192"})]}),da(Ae,{href:s,onClick:()=>I(!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:[Po("span",{children:"Submit your build"}),Po("span",{children:"\u2192"})]})]})]}):!v&&Po(T9e,{build:b})]})})]})}function lce(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function S9e(e){return!!e.wheel||lce(e).length>0}function rce(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function T9e({build:e}){let t=e.wheel,o=lce(e);return da("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&Po("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=>Po("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:A(n)},n))]})}import{createContext as N9e,useContext as O9e,useEffect as y1,useId as A9e,useState as vr,useSyncExternalStore as L9e}from"react";var E9e=14,P9e=3;function C9e(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function _9e(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),C9e(o)}async function dce(e,t,o={}){let n=o.days??E9e,r=o.read??Rf.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=_9e(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>=P9e)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as cce,formatDateTime as c8,formatTime as uce}from"efficient-shell/format";var R9e={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},pce={weekday:"long",day:"numeric",month:"long",year:"numeric"},hce={hour:"numeric",minute:"2-digit"},mce={...hce,timeZoneName:"short"};function p8(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function m8(e,...t){let o=fl(...t);return!o||!p8(e)?"":uce(e,{locale:$4(),timeZone:o})}function u8(e,...t){let o=typeof e=="string"?{start:e}:e,n=fl(...t),r=p8(o.start);if(!n||!r)return"";let a=$4(),i=o.end?p8(o.end):null;if(!i||i.getTime()<=r.getTime())return c8(o.start,{locale:a,timeZone:n,style:R9e,zoneName:"short"});let s=c8(o.start,{locale:a,timeZone:n,style:pce,clock:hce}),d=cce(o.start,n)===cce(o.end,n)?uce(o.end,{locale:a,timeZone:n,clock:mce}):c8(o.end,{locale:a,timeZone:n,style:pce,clock:mce});return`${s} \u2013 ${d}`}function X_(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as I9e,userToday as F9e,userZone as B9e}from"efficient-shell/format";import{jsx as G9e}from"react/jsx-runtime";var gce=N9e(null);function $u(){let e=O9e(gce);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var h8=[{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:""}],H9e=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function fce(e,t){return{timezone:"",slots:t?H9e.flatMap(({hour:n,minute:r})=>I9e(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var f8={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function D9e(e){let t=String(e?.slots[0]?.start??"");return t?{...f8,startAt:t}:f8}function bce(e){return e.bookingNumber===f8.bookingNumber}function M9e(e,t){return e&&t?.length===0}function z9e(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!X_(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function W9e(){return()=>{}}function U9e(){return null}function wce({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=A9e(),r=L9e(W9e,F9e,U9e)??"",[a,i]=vr(),[s,l]=vr(""),[d,c]=vr(""),[p,m]=vr(r),[h,f]=vr(r),[g,b]=vr(!1),[w,x]=vr(null),[v,k]=vr(),[S,T]=vr(""),[E,y]=vr(""),[O,P]=vr(""),[B,D]=vr(""),[L,_]=vr(""),[C,I]=vr(()=>oF()),[U,Y]=vr(null),[V,j]=vr(!1),[K,te]=vr(!1),[J,F]=vr(null),[W,M]=vr("");y1(()=>{M(B9e()??"")},[]),y1(()=>{let me=!1;return Rf.listServices().then(lt=>{if(me)return;let ue=BC(lt);i(ue),l(lt.currency),c(yt=>yt||ue[0]?.id||"")}).catch(()=>{me||i([])}),()=>{me=!0}},[]),y1(()=>{r&&(m(me=>me||r),f(me=>me||r))},[r]),y1(()=>{if(g||!d||!r)return;let me={aborted:!1};return T(""),k(void 0),F(null),x(null),j(!0),dce(d,r,{signal:me}).then(lt=>{if(!me.aborted){if(lt.outcome==="found"){m(lt.date),f(lt.date),k(lt.availability);return}x(lt.outcome==="noneInWindow"?`No times are available in the next ${lt.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{me.aborted||j(!1)}),()=>{me.aborted=!0}},[g,d,r]),y1(()=>{if(!g||!d||!p)return;let me=!1;return T(""),k(void 0),F(null),x(null),j(!0),Rf.getAvailability(d,p).then(lt=>{me||(k(lt),lt.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||j(!1)}),()=>{me=!0}},[p,g,d]);let ee=a?.find(me=>me.id===d),oe=ee?.depositAmountDue!=null,Z=z9e({editing:e,submitting:K,hasService:!!ee,hasDay:!!p,selectedStart:S,name:E,email:O,requiresPayment:oe},Date.now());async function _e(me){if(me.preventDefault(),!(!Z||!ee)){te(!0),F(null);try{let lt=await Rf.create({serviceId:ee.id,start:S,customer:{name:E.trim(),email:O.trim(),phone:B.trim()},notes:L.trim(),idempotencyKey:C,customerTimezone:W});Y(lt),I(oF())}catch(lt){F(lt instanceof On&&lt.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),lt instanceof On&&lt.status===409&&(T(""),Rf.getAvailability(ee.id,p).then(k).catch(()=>{}))}finally{te(!1)}}}let Se=M9e(e,a),Ye=Se?fce(p,W):void 0,Re=t&&!U?D9e(Ye??fce(p,W)):null;return G9e(gce.Provider,{value:{fieldPrefix:n,editing:e,services:Se?h8:a,currency:Se?"AUD":s,serviceId:Se?h8[0].id:d,setServiceId:c,service:Se?h8[0]:ee,requiresPayment:Se?!1:oe,date:p,earliestDate:h,setDate:m,setDateTouched:b,availability:Ye??v,loadingSlots:Se?!1:V,noSlotsMessage:w,selectedStart:Ye?Ye.slots[0]?.start??"":S,setSelectedStart:T,customerTimezone:W,name:E,setName:y,email:O,setEmail:P,phone:B,setPhone:D,notes:L,setNotes:_,confirmation:U??Re,submitting:K,error:J,canSubmit:Se?!1:Z,handleSubmit:_e,sample:!!Se},children:o})}import{jsx as Z_,Fragment as xce,jsxs as yce}from"react/jsx-runtime";var vce=`sf-button group inline-flex items-center justify-center gap-2.5 border ${NQ} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,kce={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 ca(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?vce.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):vce} ${kce[t]??kce.primary} ${a??""}`,h=n?yce(xce,{children:[o!==null&&Z_("span",{"aria-hidden":!0,className:"inline-flex",children:o??"\u2192"}),s]}):yce(xce,{children:[s,o!==null&&Z_("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",children:o??"\u2192"})]});return l?Z_(Ct,{href:l,className:m,style:i,newTab:d?!0:"auto",...c?{hrefRewrite:c}:{},children:h}):Z_("button",{type:"button",className:m,style:i,...p,children:h})}import{jsx as $9e}from"react/jsx-runtime";var v1=e=>$9e("div",{className:"grid bg-bg",children:e});import{jsx as io,jsxs as wd}from"react/jsx-runtime";var k1="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 V9e(e,t){let o=Number(e);if(o===0)return Nf;try{return Boe(o,t)}catch{return`${t} ${e}`}}var Sce={selected:!0};function Tce(e,t){return({index:o})=>t?{[cP]:pP(e,o)}:{}}var S1="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function g8({number:e,children:t}){return wd("div",{className:"mb-4 flex items-center gap-3",children:[io("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}),io("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 J_({eyebrow:e,heading:t,intro:o}){return wd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&io("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&io("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()&&io("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function Q_({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:h,noSlotsMessage:f,selectedStart:g,setSelectedStart:b,customerTimezone:w,editing:x}=$u();if(!n)return null;let v=Date.now(),k=fl(w,m?.timezone??""),S=fl(m?.timezone??""),T=S&&S!==k?S:"",E=(m?.slots??[]).map(y=>({start:y.start,time:m8(y.start,k),businessTime:T?`${m8(y.start,T)} business`:"",passed:!x&&X_(y.start,v)}));return wd(z,{className:"flex flex-col gap-10",style:e,children:[wd("div",{children:[io(g8,{number:"01",children:"Choose a service"}),io("div",{className:"grid gap-3 sm:grid-cols-2",children:io(Ve,{ownerId:t.id,ownerType:t.type,slot:Yf,Template:t.serviceTemplate,rows:n.map(y=>({name:y.name,meta:`${y.durationMinutes} min \xB7 ${V9e(y.price,r)}`,description:y.description??""})),states:n.map(y=>y.id===a?Sce:void 0),actions:x?void 0:n.map(y=>({press:()=>i(y.id),label:y.name})),copyAttrs:Tce(Yf,x),fallback:null,wrapCopy:v1,children:y=>io(Ao,{children:y})})}),s&&io("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."})]}),wd("div",{children:[io(g8,{number:"02",children:"Choose a date and time"}),io(Mr,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:S1,children:io("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:y=>{p(!0),c(y.target.value)},className:k1,required:!0})}),io("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:h?io("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?io(Ve,{ownerId:t.id,ownerType:t.type,slot:jf,Template:t.timeTemplate,rows:E.map(y=>({time:y.time,businessTime:y.businessTime})),states:E.map(y=>y.start===g&&!y.passed?Sce:void 0),actions:x?void 0:E.map(y=>({press:()=>b(y.start),label:y.time,disabled:y.passed})),copyAttrs:Tce(jf,x),fallback:null,wrapCopy:v1,children:y=>io(Ao,{children:y})}):f?io("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:f}):null}),k&&!h&&!!m?.slots.length&&wd("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 eR({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:h,canSubmit:f}=$u();return wd(z,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[io(g8,{number:"03",children:"Your details"}),wd("div",{className:"flex flex-col gap-4",children:[io(Mr,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:S1,children:io("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:g=>a(g.target.value),className:k1,required:!0})}),io(Mr,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:S1,children:io("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:g=>s(g.target.value),className:k1,required:!0})}),io(Mr,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:S1,children:io("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:g=>d(g.target.value),className:k1})}),io(Mr,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:S1,children:io("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:g=>p(g.target.value),className:`${k1} resize-y`})})]}),h&&io("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:h}),io(ca,{type:n?"button":"submit",disabled:!f,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:m?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function tR({successMessage:e}){let{confirmation:t,customerTimezone:o}=$u();if(!t)return null;let n=fl(t.customerTimezone,o,t.timezone),r=fl(t.timezone),a=r&&r!==n?r:"";return wd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[wd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),io("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),io("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:u8(t.startAt,n)}),a&&wd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",u8(t.startAt,a)]}),(e??"").trim()&&io("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),io(ca,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!bce(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Lw}from"react/jsx-runtime";var Ece=["head","booking","details","confirm"],Pce={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function b8({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}=$u(),m=bse(d);return e==="head"?Lw(z,{className:"min-[960px]:col-span-2",style:m,children:Lw(J_,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Lw(z,{className:"min-[960px]:col-span-2",style:m,children:Lw(tR,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Lw(Q_,{style:m,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Lw(eR,{buttonLabel:s,style:m}):null}import{useEffect as Cce,useState as Vu}from"react";import{jsx as Iw,jsxs as Y9e}from"react/jsx-runtime";function Oc(e,t){let[o,n]=Vu(void 0),[r,a]=Vu(0);return Cce(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return xo.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),Cce(()=>{if(t===void 0)return t5(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var K9e="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 Ku({form:e,formSlug:t,editing:o=!1}){let[n,r]=Vu({}),[a,i]=Vu(""),[s,l]=Vu(!1),[d,c]=Vu(!1),[p,m]=Vu(null),[h,f]=Vu(null);async function g(b){if(b.preventDefault(),!(o||s||!e||!t)){l(!0),f(null);try{let w=e.fields.map(v=>({fieldKey:v.key,value:n[v.key]??""})),x=await xo.submitForm(t,{answers:w,...a?{company:a}:{}});m(x?.account??null),c(!0)}catch{f(K9e)}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:h,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 Yu({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"?Y9e("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 T1}from"react/jsx-runtime";function j9e(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function _ce({eyebrow:e,title:t}){return T1("div",{className:"flex flex-col gap-4",children:[e&&El(ct,{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 oR({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return T1("div",{className:"flex flex-col gap-8",children:[e&&At(e).map((l,d)=>El("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:A(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)}):T1("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",j9e(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?T1("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(Yu,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),T1("span",{children:[l.label,l.required?El("span",{className:"text-accent",children:" *"}):null]})]},l.key):El(Yu,{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":A(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:A(o)})]})}var nR=["field","tick","thanks"],Rce={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},rR={field:"styleField",tick:"styleTick",thanks:"styleThanks"},q9e={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 X9e(e){return typeof e=="string"&&S0.includes(e)?e:null}function Nce(e){let t={};for(let o of nR){let n=X9e(e[rR[o]]);n&&Object.assign(t,Ru(n,q9e[o]))}return t}import{jsx as aR}from"react/jsx-runtime";var Oce=["head","form"],Ace={head:"Head",form:"Form"};function w8({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=Oc(i,s),p=Ku({form:c,formSlug:i,editing:l}),m=Nce(d);return e==="head"?aR(z,{as:"div",style:m,children:aR(Vt,{look:"statement",num:t,title:o})}):aR(z,{as:"div",style:m,children:aR(oR,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var Z9e={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>Ece.map(e=>({region:e,name:Pce[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:()=>Oce.map(e=>({region:e,name:Ace[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:Zde},()=>({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:()=>sce.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};pJ(Z9e);import{jsx as Lce}from"react/jsx-runtime";var J9e={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 Lce(z,{role:"img","aria-label":`${t} out of ${om} stars`,className:`flex gap-1 ${J9e.body} leading-none`,children:Array.from({length:om}).map((o,n)=>Lce("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var x8="mx-auto max-w-[var(--sf-site-width,1600px)]",Q9e=[/^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 Ice(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function y8(e){return e.split(/\s+/).filter(t=>t&&!Q9e.some(o=>o.test(Ice(t)))).join(" ")}var e7e=new Set(["max-view-desktop","max-view-wide"]);function t7e(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=Ice(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?t7e(l[1]):void 0;d!==void 0&&(i?e7e.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as o7e,jsx as n7e}from"react/jsx-runtime";function v8({inBox:e,atTop:t,anyBox:o=!1}){let n=tu(),r=MP();return n7e(o7e,{children:n||o&&r?e:t})}import{jsx as E1}from"react/jsx-runtime";function wt({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=y8(e),p=o===null?"":y8(o),m=E1(z,{as:"section",ref:s,...i,className:c||void 0,style:n,id:a,children:p?E1("div",{className:p,children:d}):d}),h=r?{...r,...n}:n,f=E1(z,{as:"section",ref:s,...i,className:t?`${x8} ${e}`:e,style:h,id:a,children:o===null?d:E1("div",{className:o,children:d})});return E1(v8,{inBox:m,atTop:f,anyBox:l})}import{Fragment as a7e,jsx as nm,jsxs as iR}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)]"},r7e="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))]",k8="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 S8({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:iR(wt,{className:"relative z-[2] border-t border-line bg-surface",column:l?k8:r7e,children:[l?null:iR(a7e,{children:[(t??"").trim()&&nm(ct,{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=>iR("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:At(c.quote).map((p,m)=>nm("p",{className:m?"mt-3":"",children:p},m))}),iR("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 Fce=Dw(k8),T8={top:84,bottom:Fce.bottom,topPhone:84,bottomPhone:Fce.bottomPhone},Bce=T8,[i7e,s7e]=R2("Testimonials"),l7e={type:Xs,props:{...De,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[Zs]:[{type:"Text",props:{...Ue,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Ne("quote",Tt,{size:16,lineHeight:1.6}),{type:Xs,props:{...De,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Zs]:[Ne("name",Ue,{...Jl,weight:500,letterSpacing:.04}),Ne("role",Tt,{textStyle:"body-5"})]}}]}},d7e={name:"Testimonials",boxProps:e=>({...Qd,direction:"column",gap:44,sectionBorder:{top:1},...Gm(e,Bce)}),box:[...Pp,...gf(Bce)],parts:[{kind:"group",name:"Heading",props:{...De,gap:16},parts:[{...i7e,props:Ue},{...s7e,props:Ue,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[l7e]}}],site:Qj("title"),drop:{...ec,...tc,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"}};_n({Testimonials:d7e});var Ac={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 lR,tabletKey as E8}from"efficient-easel/draw";var c7e={textStyle:"body-5",...uo("label",14),letterSpacing:.05,lineHeight:1.5},p7e={type:Xs,props:{...De,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[lR("share")]:"content",[lR("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Zs]:[Ne("label",Tt,{...Ca(14),letterSpacing:.05,lineHeight:1.5}),Ne("value",{...Ue,align:"right"},{...c7e,align:"right"})]}},Hce={[wf]:aP},m7e=["dynamic","source","finish","size","wheel"],P1=sl("SpecTable",{slots:{template:[p7e]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...De,direction:"row",share:"content",gap:48,[E8("gap")]:80,[lR("gap")]:80,...Hce}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),u7e=P1.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(m7e.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),sR=Dw(Ac.ownBox),h7e={...P1,parts:u7e,boxProps:(e,t)=>{let o=typeof P1.boxProps=="function"?P1.boxProps(e,t):P1.boxProps;return{...o,sectionPaddingBottom:sR.bottom,sectionPaddingBottomPhone:sR.bottomPhone,...Hce,[E8("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[E8("sectionPaddingBottom")]:sR.bottomPhone,[lR("gap")]:36,...sR.line?{sectionBorder:QE({bottom:1})}:{}}}};_n({SpecTable:h7e});_n({ProductGrid:sl("ProductGrid",{slots:{[Pt]:[Zse()]},pressHeading:!0})});_n({Events:sl("Events",{slots:{[Pt]:X6()},coreProps:{sectionAccent:PE},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});_n({Collections:sl("Collections",{slots:{[Pt]:[Z6()]},roomBelow:sie,pressHeading:!0})});_n({GalleryB:sl("GalleryB",{slots:{[Pt]:[J6()]},roomBelow:{bottom:ui.bottom,bottomPhone:W5},pressHeading:!0})});_n({[la]:{name:"Product hero",box:[...ZY],boxProps:{direction:"column",gap:0,gapPhone:0,...ft(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[lw]:dw},slots:e=>({[Pt]:T6(e)})}]}});var P8=Dw(Ac.ownBox);_n({FitmentTable:sl("FitmentTable",{slots:{[h_]:[Bse()],[Nu]:[Hse()]},roomBelow:{bottom:P8.bottom,bottomPhone:P8.bottomPhone},boxProps:P8.line?{sectionBorder:QE({bottom:1})}:{},pressHeading:!0})});var f7e=e=>({type:Xs,props:{...De,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[Zs]:[{type:Xs,props:{...De,name:"Words",direction:"column",gap:16},slots:{[Zs]:[Ne("eyebrow",Ue,{...Ca(13),color:"accent"}),Ne("title",Ue,{textStyle:"heading-2",...uo("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Ne("copy",Tt,{textStyle:"body-1",...uo("body",15),lineHeight:1.6})]}},{type:Xs,props:{...De,name:"Picture",direction:"column",gap:12},slots:{[Zs]:[{type:"ImageBlock",props:{[Vs]:"image",aspect:"1/1",fit:"contain"}},Ne("tag",{...Tt,align:"right"},{...Ca(11),align:"right"})]}}]}}),g7e={name:"Feature Rows",boxProps:{...Qd,...tq,direction:"column",gap:0},box:Pp,parts:[{kind:"core",keep:"rest",slots:e=>({template:[f7e(e.startLeft===!0)]})}]};_n({DetailRows:g7e});import{phoneKey as _8}from"efficient-easel/draw";var cR=e=>[...Pp.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>JE(t,n)],...gf(e)],R8=(e,t,o)=>(n,r)=>({...Qd,sectionAccent:JE(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...Gm(n,e)}),N8=(e,t,o)=>({kind:"text",key:e,role:"heading",props:Ue,style:{textStyle:"heading-2",...uo("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),O8=(e,t,o={})=>({kind:"group",name:"Heading",props:{...De,gap:e,gapPhone:e,...o},parts:t}),A8=(e={})=>({kind:"core",keep:"rest",props:XE,...e}),dR=T8,[b7e]=R2("ReviewForm"),w7e=()=>({name:"Review Form",boxProps:R8(dR,48,32),box:cR(dR),parts:[O8(16,[{...b7e,props:Ue},N8("title",1,-.02)]),A8()],pressKeepsEmpty:["eyebrow","title"],drop:{...ec,...tc,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[x7e]=R2("Reviews"),C8=e=>({...Ca(12),letterSpacing:e}),y7e={type:Xs,props:{...De,name:"Card",gap:16,...ft(40,40,32,32),sectionAccent:0},slots:{[Zs]:[{type:"RatingBlock",props:{[Vs]:"rating"}},Ne("title",Ue,{textStyle:"heading-1",...uo("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Ne("quote",Tt,{textStyle:"body-1",...uo("body",15),lineHeight:1.65}),{type:Xs,props:{...De,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[_8("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Zs]:[Ne("name",Ue,C8(.22)),Ne("dateLabel",{...Tt,align:"right"},{...C8(.18),align:"right"}),Ne("role",{...Tt,align:"right"},{...C8(.18),align:"right"})]}}]}},v7e=()=>({name:"Reviews",boxProps:R8(dR,48,32),box:cR(dR),parts:[O8(16,[{...x7e,props:Ue},N8("title",1,-.02)]),A8({slots:{template:[y7e]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...ec,...tc,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"}}),Dce={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},k7e=()=>({name:"Booking Form",boxProps:R8(Dce,40,40),box:cR(Dce),parts:[O8(16,[ZE("eyebrow",{...uo("label",12),weight:600,letterSpacing:.24,color:"accent"}),N8("heading",.98,-.025),{kind:"text",key:"intro",props:{...Tt,maxWidth:660},style:{textStyle:"heading-1",...uo("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),A8()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...ec,...tc}}),Mce={top:88,bottom:88,topPhone:64,bottomPhone:64},S7e=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...Qd,direction:"column",align:"center",gap:20,gapPhone:20,...Gm(e,Mce)}),box:[...Pp,...gf(Mce)],parts:[{...ZE("eyebrow"),props:{...Ue,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...Ue,align:"center",maxWidth:720},style:{textStyle:"heading-1",...uo("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...Ue,align:"center",maxWidth:560},style:{textStyle:"body-1",...uo("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...De,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[_8("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...Jj,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...F2,align:"center",icon:"none"},style:{...Bm(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...ec,...tc}}),zce={top:60,bottom:0,topPhone:60,bottomPhone:0},T7e=()=>({name:"Contact Form",boxProps:(e,t)=>({...Qd,sectionAccent:JE(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...Gm(e,zce)}),box:cR(zce),parts:[{kind:"group",name:"Header",props:{...De,direction:"row",align:"center",share:"content",phoneRow:2,[_8("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[ZE("routingNumber"),{kind:"text",key:"routingTagline",props:Tt,style:{textStyle:"heading-1",...uo("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:eq(e.sectionAccent??0,t)})}}],drop:{...ec,...tc}});_n({ContactRouting:T7e(),ReviewForm:w7e(),AppointmentBooking:k7e(),Reviews:v7e(),CheckoutCTA:S7e()});var Wce={top:40,bottom:40,topPhone:40,bottomPhone:40},Uce={textStyle:"heading-1",...Eq("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},L8=["heading","intro"],Gce=[Pt,Ia,Fa,Ba];function E7e(e,t){let o=(t?A0:GK)(Lo,e);return Object.fromEntries(Gce.map(n=>[n,o[n]]))}var P7e=()=>({name:"List",boxProps:e=>({...Qd,direction:"column",gap:24,gapPhone:24,...Gm(e,Wce)}),box:[...Pp,...gf(Wce)],parts:[{kind:"group",name:"Heading",props:{...De,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...Ue,tag:"h1"},style:Uce,when:e=>!q3(e)},{kind:"text",key:"heading",role:"heading",props:{...Ue,tag:"h2"},style:Uce,when:q3},{kind:"text",key:"intro",role:"body",props:Tt,style:{textStyle:"body-1",...uo("body",15)}}]},{kind:"core",keep:"rest",props:XE,derive:{reads:[...Gce],props:(e,t)=>E7e(e,t.press===!0)}}],pressKeepsEmpty:L8,drop:{...ec,...tc,[yP]:"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"}});_n({AlloyWheelsListing:P7e()});var $ce={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as C7e,useContext as _7e}from"react";import{Fragment as R7e,jsx as zw}from"react/jsx-runtime";var Wo={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=C7e("catalog");function Ss(){return _7e(Ww)==="catalog"}function ju({children:e}){let t=Ss();return zw(R7e,{children:e??(t?zw(z,{"aria-hidden":!0}):null)})}function Uw({children:e}){return zw(ju,{children:e?zw(z,{children:e}):null})}function pR({children:e}){return zw(ju,{children:e?zw(z,{className:"[.sf-card-rows>*>&]:self-end",children:e}):null})}var Vce={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:b3(Wo.label),writable:!0,sized:!0}},Kce={name:{label:"Name",follows:"Heading 3",builtIn:b3(Wo.headingSmall2),writable:!0,sized:!0}};Ote({ProductPrice:$ce,ProductEyebrow:Vce,ProductName:Kce});function Gw(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as N7e}from"react/jsx-runtime";import{OpacityIcon as O7e}from"efficient-easel/icons";import{group as mR}from"efficient-easel/screen/lib/document/box-fields";var Yce={fields:{_gContent:mR("Content"),eyebrow:$("Eyebrow",Qm.eyebrow),title:q("Heading",Qm.title),body:q("Body",Qm.body),_gBackground:mR("Background image"),imageSrc:nt("Image","image/*"),overlay:de("Overlay",N7e(O7e,{}),0,100,5,60,"%"),_gButton:mR("Button"),...vl,_gLayout:mR("Layout")}};import{jsx as C1}from"react/jsx-runtime";import{GroundIcon as qce,ListIcon as A7e}from"efficient-easel/icons";function Xce(e){let t=e?.data?.root,o=AP(t?.props)??"";return o&&u4(o,"text").length?o:""}var I8="outsideCardTemplate",L7e={not:{context:I8,is:!0}},Da={[I8]:(e,t)=>{let o=kp(t.appState,e.props?.id);if(o!==void 0)return o===null&&!Xce(t.appState)},[QV]:(e,t)=>{let o=Ql(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[tK]:(e,t)=>Ql(t.appState,e.props?.id)?.inCopy};function $r(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?C1(ra,{noun:"link"}):t==="colour"?C1(qce,{}):C1(A7e,{}),a={...fe(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return dt(a,L7e)}function Lc(){return $r("Link from","link")}var I7e={any:[{field:$o,set:!1},{context:I8,is:!0,default:!0}]};function qu(e){return dt(e,I7e)}function _1(e){return e.kind==="link"?xr(Q(e.label)):e.kind==="colour"?F7e(e.label):e.multiline?Je(e.label):ye(e.label)}function F7e(e){return{type:"custom",render:({value:t,onChange:o})=>C1(mee,{label:e,icon:C1(qce,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function B7e(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var jce=new WeakMap;function Ma(e,t,o){let n=Object.keys(e).filter(S=>B7e(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?w3(o.appState,r.id)??"":"",l=n.map(S=>typeof r[S]=="string"?r[S].trim():""),d=mt(a?.props),c=i===Fr?kp(o.appState,a?.props?.id):null,p=c?w3(o.appState,a?.props?.id)??void 0:void 0,m=c?mE(a?.props,c.type,p):"",h=c?mt(c.props):"",f=c?`${String(c.type??"")}\0${h}\0${p??""}`:"",g=i===Fr&&!c?JSON.stringify(a?.props?.[zK]??null):"",b=a?"":Xce(o.appState),w=[i,s,d,m,f,g,Lm(),b,hZ(),...l].join("\0"),x=jce.get(e);x||jce.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===Fr?pf(o.appState,a,E.cardRowKind):i?VK(a,E.cardRowKind,s||void 0):u4(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(L=>L.key===l[T])?l[T]:"",B=E.cardRowKind==="list",D=(L,_)=>B&&_===0&&L.key!==l[T]?"":L.key;k[S]={...E,options:[...B?[]:E.options,...y.map((L,_)=>({label:L.label,value:D(L,_)})),...P?[{label:P,value:P}]:[]]}}),x.set(w,k),k}import{group as Jce}from"efficient-easel/screen/lib/document/box-fields";var uR={meta:"Trailing note"},Zce={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var Qce={fields:{_gContent:Jce("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:Q("Label"),href:xr(Q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:$("Trailing note",uR.meta),_gText:Jce("Text"),rowField:$r("Shows","text")},resolveFields:(e,t)=>Ma(t.fields,e,t),showWhenFacts:Da};import{jsx as gi,jsxs as U7e}from"react/jsx-runtime";import{ButtonIcon as G7e,ButtonIconIcon as $7e,IconAfterTextIcon as V7e,IconBeforeTextIcon as K7e}from"efficient-easel/icons";import{SettingsField as Y7e}from"efficient-easel/panel";import{useSelectedFields as ipe}from"efficient-easel/easel";import{buttonFieldSet as j7e}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as q7e}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as X7e,Segmented as Z7e}from"efficient-shell/ui";function hR(e){return typeof e=="boolean"?e:!0}var F8=["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 B8(e){return typeof e=="string"&&F8.includes(e)?e:void 0}function epe(e,t){return B8(e)??(hR(t)?"arrow-right":"none")}function R1(e){return e==="before"?"before":e==="end"?"end":"after"}function tpe(e,t){return R1(e)==="end"&&sg(t)==="fill"}function sg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function ope(e,t,o,{atSectionLine:n=!1}={}){let r=sg(e);if(fr(o)){let i=sg(o),s=fr(t)?sg(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=sg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as bR}from"efficient-easel/screen/lib/document/style-fields";import{group as npe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as J7e}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as H8}from"react/jsx-runtime";import{LockIcon as H7e}from"efficient-easel/icons";import{FieldText as D7e}from"efficient-easel/fields";import{SettingsField as M7e}from"efficient-easel/panel";import{keptByRow as z7e}from"efficient-easel/screen/lib/document/style-fields";function W7e(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??vQ}-words`;return H8(M7e,{label:u("Words"),icon:H8(H7e,{}),htmlFor:o,children:H8(D7e,{id:o,value:u("Set by country"),onChange:()=>{},readOnly:!0})})}}}function fR(e){return z7e(e)}function gR(e,t,o,n=[]){return sC(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?W7e():a]))}var D8=e=>QP(e==="none"?"no-symbol":e),Q7e=F8.map(e=>({value:e,icon:e==="none"?qJ(D8(e),gi(w4,{value:e})):D8(e)})),spe=Q("Button");function eze({value:e,onChange:t}){let o=ipe(),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?gi(RQ,{label:"Button",icon:gi(G7e,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):spe.render({value:r,field:{label:"Button"},onChange:a=>t(ZQ(a))})}function tze({value:e,onChange:t}){let o=ipe(),n=epe(e,o.values.arrow),r=R1(o.values.iconPosition),a=sg(o.values.widthFit)==="fill",i=D8("icon-at-end");return gi(Y7e,{label:u("Icon"),icon:gi($7e,{size:18}),value:n==="none"?void 0:gi(w4,{value:n}),children:U7e("div",{className:"flex items-center gap-2",children:[gi(X7e,{label:u("Icon"),value:n,options:Q7e,onChange:t}),n!=="none"&&gi(Z7e,{size:"sm",block:!0,label:u("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:gi(K7e,{size:16}),label:gi("span",{className:"sr-only",children:u("Icon before text")}),title:u("Icon before text")},{value:"after",icon:gi(V7e,{size:16}),label:gi("span",{className:"sr-only",children:u("Icon after text")}),title:u("Icon after text")},...a?[{value:"end",icon:i,label:gi("span",{className:"sr-only",children:u("Icon at the far end")}),title:u("Icon at the far end")}]:[]]})]})})}var rpe=()=>k3(Gn().theme),ape=j7e({lengthUnits:qP,follows:{useFill:()=>rpe().fill,useText:()=>rpe().ink,useBorder:()=>{let[e]=cc("variant"),[t]=cc("buttonColor"),{theme:o}=Gn(),n=_4({variant:e,buttonColor:t}).border.width,r=fr(t)??(e==="ghost"?oY(o).text:k3(o).fill);return{width:n,color:r}},useCorners:()=>lY(Gn().cornerRadiusPx),useFillOpacity:()=>_4({variant:cc("variant")[0]}).fillOpacity},usePresets:rQ,resetTo:e=>JQ(e,u("Styles")),padding:{fallback:OQ,tablet:!0},phone:q7e,say:lb});function oze(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var lpe={fields:{label:eee(spe,e=>gi(eze,{value:e.value,onChange:e.onChange})),labelText:aee("label"),href:qu({...Xe("Button link"),...bR("label")}),consentWords:fR("label"),_gButton:npe("Button"),rowField:$r("Shows","text"),[$o]:Lc(),...oze(ape,J7e.Design),_gStyle:npe("Style"),variant:bR("buttonColor"),icon:{type:"custom",render:e=>gi(tze,{value:e.value,onChange:e.onChange})},iconPosition:bR("icon"),arrow:bR("icon"),...ape},resolveFields:(e,t)=>gR(Ma(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Da};import{jsx as vR}from"react/jsx-runtime";import{AccentIcon as nze,ColumnsIcon as rze,StylesIcon as mpe}from"efficient-easel/icons";import{group as M8}from"efficient-easel/screen/lib/document/box-fields";import{newId as cpe}from"efficient-easel/data";function wR(e,{rows:t="items",label:o="title"}={}){let n=mt(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:jK(nn(r),a)}))}var dpe=new WeakMap;function xR(e,t){let o=dpe.get(e);o||dpe.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 ppe(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>cpe(t),enumerable:!0})}function yR(e,t="items"){if(!Array.isArray(e[t])||mt(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 h=!m&&a&&n===String(p+1);if(m||h){let f=cpe("card");return i.add(f),l=!0,h&&(s=f),{...c,key:f}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as aze}from"efficient-easel/data";var ize=e=>aze(e.template)&&e.template.length>0;function sze(e,t){let o=ize(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,xR(r,wR(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,cze(r)]]:[[n,r]]))}var lze=Object.fromEntries(E2("Cards").filter(e=>!e.everySource).map(e=>[e.key,_1(e)])),dze=Object.fromEntries(E2("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,_1(e)])),upe=new WeakMap;function cze(e){let t=upe.get(e);return t||upe.set(e,t={...e,arrayFields:lze}),t}var hpe={fields:{_gSource:M8("Source"),dataSource:qt("Card content","Manual"),[rg]:Rw(),_gContent:M8("Content"),eyebrow:$("Eyebrow",V0.eyebrow),eyebrowLook:fe("Eyebrow style",vR(mpe,{}),[...ol],Cp("Cards")),title:q("Heading",V0.title),items:{type:"array",label:"Cards",arrayFields:dze,defaultItemProps:ppe({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...oq,highlightedCard:fe("Highlighted card",vR(nze,{}),[{label:"None",value:""}],""),highlightBadge:$("Highlight badge","Most popular"),_gStyle:M8("Style"),cardStyle:wo("Card style",vR(mpe,{}),[{label:"Cards",value:"cards",picture:R4.cards},{label:"Label only",value:"label-only",picture:R4["label-only"]}],"cards",{columns:2,cell:wr}),columns:de("Columns",vR(rze,{}),2,4,1,3)},resolveData:(e,t)=>{let o=t?.lastData?.props,n=_te(e.props,o),r=dE(n),a=r===e.props?e:{...e,props:r},i=a.props,s=yR(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=rt(Xt("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,st.Cards.headRows),n=e.props,r=sze(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:ye("Feature label"),href:xr(Q("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:Cp("KeyFeatures")}}:{}}}};import{jsx as pze}from"react/jsx-runtime";import{StickyIcon as mze}from"efficient-easel/icons";import{group as fpe}from"efficient-easel/screen/lib/document/box-fields";var gpe={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:Yo(xr(Q("Active tab","All"))),_gLinks:fpe("Links"),links:{type:"array",label:"Right links",arrayFields:{label:Q("Label"),href:xr(Q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:fpe("Style"),sticky:ae("Stick to top",!0,pze(mze,{}))}};import{jsx as uze}from"react/jsx-runtime";import{StylesIcon as hze}from"efficient-easel/icons";import{group as bpe}from"efficient-easel/screen/lib/document/box-fields";var fze=[...HX],wpe={fields:_i({_gContent:bpe("Content"),eyebrow:$("Chip label",nb.eyebrow),title:q("Heading",nb.title),body:q("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:ye("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:$("Caption","Illustrative example"),_gStyle:bpe("Style"),chartStyle:wo("Chart style",uze(hze,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:uC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:uC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:uC.donut}],"bars",{columns:3,cell:wr}),valueSuffix:Yo($("Value suffix","%"))},fze,Ri)};import{jsx as Aze}from"react/jsx-runtime";import{jsx as at,Fragment as W8,jsxs as xd}from"react/jsx-runtime";import{useId as gze,useState as bze}from"react";import{InspectorUpLevel as N1}from"efficient-easel/chrome";import{useEasel as wze}from"efficient-easel/easel";import{ListField as kpe}from"efficient-easel/fields";import{SettingsField as Spe}from"efficient-easel/panel";import{ClockIcon as xpe,ContrastIcon as xze,GlobeIcon as yze,LinkIcon as vze,LocationIcon as kze,PhoneIcon as Sze,SquareIcon as Tze,TypeIcon as U8}from"efficient-easel/icons";import{useSectionOps as Eze}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as Pze}from"efficient-easel/draw";var G8=(e,t)=>t||e?Wte(e,t):u("Ungrouped");function Cze(e){let t=[];return e.forEach((o,n)=>{let r=iu(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 z8({children:e}){return at("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--ink-faint)",margin:"14px 0 6px"},children:e})}var Tpe={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"},_ze={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},Epe={..._ze,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=gze();return at(Spe,{label:e,icon:r??at(U8,{}),htmlFor:l,children:n?at("textarea",{id:l,value:t,placeholder:o,onChange:d=>a(d.target.value)}):at("input",{id:l,type:"text",value:t,placeholder:o,onChange:d=>a(d.target.value),onBlur:i,onKeyDown:s})})}var Rze=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],Nze=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function ype({label:e,icon:t,options:o,value:n,onChange:r}){return at(Spe,{label:e,icon:t,children:at("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:o.map(a=>{let i=n===a.value;return at("button",{type:"button","aria-pressed":i,onClick:()=>r(a.value),style:{flex:1,padding:"6px 8px",fontSize:12,borderRadius:6,cursor:"pointer",border:`1px solid ${i?"var(--sf-accent)":"var(--line-strong)"}`,background:i?"var(--sf-accent)":"transparent",color:i?"var(--sf-on-accent)":"inherit",fontWeight:i?500:400},children:u(a.label)},a.value)})})})}function vpe({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||kn.mapTheme,a=kn;return xd(W8,{children:[!o&&at(z8,{children:u("Section")}),at(rm,{label:u("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),at(rm,{label:u("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),at(rm,{label:u("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:xd(W8,{children:[at(z8,{children:u("City strip")}),at(rm,{label:u("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),at(rm,{label:u("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),at(ype,{label:u("Shape"),icon:at(Tze,{}),options:Nze,value:wP(e.imageShape),onChange:i=>t({imageShape:i})}),at(z8,{children:u("Map & Theme")}),at(ype,{label:u("Map theme"),icon:at(xze,{}),options:Rze,value:r,onChange:i=>t({mapTheme:i})})]})]})}function Oze({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((h,f)=>iu(h)===t?f:-1).filter(h=>h>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(iu).filter(h=>h!==t)),[d,c]=bze(t),p=h=>o(e.map(f=>iu(f)===t?{...f,...h}:f)),m=()=>{let h=d;if(h!==t){if(l.has(h)){c(t);return}o(e.map(f=>iu(f)===t?{...f,group:h}:f)),a(h)}};return xd("div",{className:"sf-locations-view",children:[at(N1,{inline:!0,name:u("Section"),onSelect:n,title:G8(t,s)}),at(rm,{label:u("Group heading"),value:d,placeholder:u("e.g. Americas"),onChange:c,onBlur:m,onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur()}}),l.has(d)&&d!==t&&at("p",{className:"sf-note sf-note--error",role:"alert",children:u("Another group already uses this heading \u2014 pick a different one.")}),at(rm,{label:u("Group name"),value:s,placeholder:u("Shown beside the heading"),onChange:h=>p({groupName:h})}),at(kpe,{label:u("Cities in this group"),noun:u("city"),items:i.map(h=>e[h]),onChange:h=>o(Ute(e,t,h)),newItem:()=>({...G4,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(h,f)=>xd("button",{type:"button",style:Tpe,onClick:()=>r(i[f]),children:[at("span",{children:h?.name||u("City")}),at("span",{"aria-hidden":"true",children:"\u203A"})]})}),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:Epe,onClick:()=>{o(e.filter(h=>iu(h)!==t)),n()},children:Jn("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function Ppe({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=zte(),r=Xee(),a=Cze(o),{appState:i,selectedItem:s}=wze(g=>g),l=Eze(),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(Pze,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 xd("div",{className:"sf-locations-view",children:[at(N1,{inline:!0,name:u("Locations"),onSelect:()=>sd({level:"groups"}),title:u("Texts")}),at(vpe,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let g=o[n.index];return g?xd("div",{className:"sf-locations-view",children:[at(N1,{inline:!0,name:String(g.name??"")||u("City"),onSelect:()=>sd({level:"city",index:n.index}),title:u("Image")}),at(dQ,{value:g.photo||"",onChange:b=>p(n.index,{photo:b}),label:"Image",accept:"image/*"})]}):h()}if(n.level==="map"){let g=o[n.index];return g?xd("div",{className:"sf-locations-view",children:[at(N1,{inline:!0,name:String(g.name??"")||u("City"),onSelect:()=>sd({level:"city",index:n.index}),title:u("Map")}),at(Sb,{value:g.geocode,onChange:b=>p(n.index,{geocode:b}),label:"Coordinates"}),at(rm,{label:u("Directions link"),icon:at(vze,{}),value:String(g.mapsUrl??""),onChange:b=>p(n.index,{mapsUrl:b})})]}):h()}if(n.level==="city"){let g=n.index,b=o[g];if(!b)return h();let w=iu(b),x=(k,S)=>p(g,{[k]:S}),v=(k,S,T,E=!1)=>at(rm,{label:S,icon:T,textarea:E,value:String(b[k]??""),onChange:y=>x(k,y)});return xd("div",{className:"sf-locations-view",children:[at(N1,{inline:!0,name:G8(w,String(b.groupName??"")),onSelect:()=>sd({level:"group",key:w}),title:b.name||u("City")}),v("name",u("Location name"),at(U8,{})),v("state",u("State / Province"),at(U8,{})),v("country",u("Country"),at(yze,{})),v("address",u("Address"),at(kze,{}),!0),v("phone",u("Phone"),at(Sze,{})),v("hours",u("Opening hours"),at(xpe,{})),v("timezone",u("Timezone chip"),at(xpe,{})),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:Epe,onClick:()=>{t(o.filter((k,S)=>S!==g)),sd({level:"group",key:w})},children:u("Delete city")})})]})}if(n.level==="group")return a.some(g=>g.key===n.key)?at(Oze,{cards:o,groupKey:n.key,onChange:t,onBack:()=>sd({level:"groups"}),onOpenCity:g=>sd({level:"city",index:g}),onNavigate:g=>sd({level:"group",key:g})},n.key):h();function h(){return xd("div",{className:"sf-locations-view",children:[at(vpe,{props:d,setSection:c}),!r&&at(W8,{children:f()})]})}function f(){return at(kpe,{label:u("Locations"),noun:u("group"),items:a,onChange:g=>{let b=g.find(w=>!a.some(x=>x.key===w.key));t(Gte(o,g.map(w=>w.key),w=>[{...G4,group:w,groupName:""}])),b&&sd({level:"group",key:b.key})},newItem:()=>({key:m(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:a.length===0?at("div",{style:{fontSize:12,color:"var(--ink-faint)",padding:"4px 0"},children:u("No locations yet.")}):void 0,renderRow:g=>xd("button",{type:"button",style:Tpe,onClick:()=>sd({level:"group",key:g.key}),children:[at("span",{style:{fontWeight:500},children:G8(g.key,g.name)}),xd("span",{style:{color:"var(--ink-faint)"},children:[Jn("{n} city","{n} cities",g.indices.length)," \u203A"]})]})})}return h()}var Cpe={fields:{dataSource:qt("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>Aze(Ppe,{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=xP(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(", ")}),{[XT]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>Xt("ContactLocations",t,e.props)};import{jsx as _pe}from"react/jsx-runtime";import{ClockIcon as Lze,TagIcon as Ize}from"efficient-easel/icons";var Fze=[...GX],Rpe={fields:_i({title:$("Heading",Z3.title),zeroText:Yo($("At zero",Z3.zeroText)),endsAt:pee("Ends",_pe(Lze,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:ae("Unit labels",!0,_pe(Ize,{}))},Fze,Ri)};var Npe={fields:{html:{type:"textarea",label:"HTML"}}};import{jsx as $8}from"react/jsx-runtime";import{StylesIcon as Bze,WeightIcon as Hze,WidthIcon as Dze}from"efficient-easel/icons";import{keptByRow as Mze}from"efficient-easel/screen/lib/document/style-fields";var zze={any:[{field:"style",set:!1},{field:"style",is:Pf}]},Wze={not:{field:"style",is:"none"}},Ope={fields:Fe({style:wo("Style",$8(Bze,{}),HQ.map(e=>({...e,picture:UQ(e.value)})),Pf,{columns:3,cell:wr}),spacing:Mze("sectionPaddingTop"),thickness:de("Thickness",$8(Hze,{}),1,8,1,1,nv),...ad(nv,"thickness"),lengthPct:de("Length",$8(Dze,{}),10,100,1,100,rv),...ad(rv,"lengthPct")},[[["thickness"],zze],[["lengthPct"],Wze]]),resolveFields:(e,{fields:t})=>{let o=pC[mC(e.props.spacing)],n=Ap({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return sv(t,n)}};import{jsx as Lpe}from"react/jsx-runtime";import{HashIcon as Uze,StickyIcon as Gze}from"efficient-easel/icons";import{group as Ipe,select as $ze}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as O1}from"efficient-easel/screen/lib/document/device-fields";var V8={title:"On this page"},Ape={label:"Contents",defaultProps:{title:V8.title,sticky:!0}};var Fpe={fields:{title:O1("desktop",$("Heading",V8.title)),_gList:O1("desktop",Ipe("List")),[AC]:O1("desktop",$ze("Number",Lpe(Uze,{}),TX,EX)),_gStick:O1("desktop",Ipe(A3)),sticky:O1("desktop",ae(A3,!0,Lpe(Gze,{})))}};import{group as Vze}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as K8}from"efficient-easel/screen/lib/document/device-fields";var A1={hint:"Search questions",noMatchText:"No question matches your search."},Bpe={label:"List search",defaultProps:{hint:A1.hint,noMatchText:A1.noMatchText}};var Hpe={fields:{_gContent:K8("desktop",Vze("Content")),hint:K8("desktop",Yo($("Hint",A1.hint))),noMatchText:K8("desktop",Yo($("No match",A1.noMatchText)))}};import{group as Mpe}from"efficient-easel/screen/lib/document/box-fields";var kR={toc:"On this page"},Dpe={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var zpe={fields:{_gContent:Mpe("Contents"),tocTitle:$("Contents heading",kR.toc),_gSections:Mpe("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:ye("Contents label"),heading:ye("Title"),body:Je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as Wpe}from"efficient-easel/screen/lib/document/box-fields";var Upe={fields:{_gContent:Wpe("Content"),eyebrow:$("Eyebrow",Xm.eyebrow),title:q("Heading",Xm.title),deck:q("Deck / standfirst",Xm.deck),_gMeta:Wpe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:ye("Label"),value:ye("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var SR=[{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."}],Gpe={label:"Document Detail Cards",defaultProps:{cards:[]}};var $pe={fields:{cards:xb({type:"array",label:"Cards",arrayFields:{label:ye("Label"),value:ye("Value"),desc:Je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},SR)}};import{jsx as Kze}from"react/jsx-runtime";import{PageIcon as Yze}from"efficient-easel/icons";import{group as jze}from"efficient-easel/screen/lib/document/box-fields";var $w={metaLabel:G.label,metaValue:G.value},Vpe={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var Kpe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Tab label"),href:Xe("Links to"),current:ae("Current page",!1,Kze(Yze,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:jze("Trailing note"),metaLabel:$("Note label",$w.metaLabel),metaValue:$("Note value",$w.metaValue)}};import{jsx as qze}from"react/jsx-runtime";import{StylesIcon as Xze}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as Zze}from"efficient-easel/screen/lib/document/box-fields";var Ype={fields:{eyebrow:$("Eyebrow",G.eyebrow),...pl("align",{access:Zze}),eyebrowLook:fe("Look",qze(Xze,{}),ol,eP)}};import{jsx as Jze}from"react/jsx-runtime";import{ChevronIcon as Qze}from"efficient-easel/icons";import{group as j8}from"efficient-easel/screen/lib/document/box-fields";var Xu={num:G.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},Y8=vn.FAQ,jpe={label:"Q&A",inline:!0,fields:Y8,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var qpe="faqOnTemplate",eWe={not:{context:qpe,is:!0}},tWe={[qpe]:e=>jj("FAQ",e.props??{})},oWe=new Set([ej,...tj]);function nWe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||oWe.has(t))}var Xpe={fields:{_gContent:j8("Content"),num:$("Number",Xu.num),title:q("Heading",Xu.title),linkText:$("Button",Xu.link),linkHref:Xe("Link"),_gQuestions:j8("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:ye("Question"),answer:Je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:j8("Layout"),defaultOpen:ae("Open first answer",!0,Jze(Qze,{})),...Y8},resolveFields:(e,{fields:t})=>{let o=rt(t,e.props.headPlacement,st.FAQ.headRows);return _i(o,nWe(o),eWe)},showWhenFacts:tWe};import{jsx as Yi,Fragment as TR,jsxs as aWe}from"react/jsx-runtime";import{useContext as iWe}from"react";import{SettingsField as eme}from"efficient-easel/panel";import{FieldSelect as tme}from"efficient-easel/fields";import{BlogPostIcon as ome}from"efficient-easel/icons";import{ScreenDocumentContext as sWe}from"efficient-easel/screen/components/ScreenDocumentContext";var Zpe=xw({fetch:async(e,t)=>await qd().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:Nn});import{useEffect as Jpe,useRef as rWe,useState as q8}from"react";function lg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Vw({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=q8(null),[s,l]=q8(!1),[d,c]=q8(!1),p=rWe(!0);return Jpe(()=>(p.current=!0,e().then(m=>{p.current&&i(m)}),()=>{p.current=!1}),[]),Jpe(()=>{if(!n?.slug||a===null)return;let m=t(a,n);if(!m)return;let h=o(m);lg(h,n)&&r(h)},[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 h=t(m,n);h&&r(o(h))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function Qpe(e,t){return{label:t?u("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function Kw({value:e,onChange:t}){let o=iWe(sWe);return o&&!o.capabilities.hasBlog?e?.slug?Yi(lWe,{value:e,onChange:t}):Yi(TR,{}):Yi(dWe,{value:e,onChange:t})}function lWe({value:e,onChange:t}){return Yi("div",{children:Yi(eme,{label:u("Blog post source"),icon:Yi(ome,{}),hint:Yi(TR,{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:Yi(tme,{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 dWe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Vw({load:Zpe,resolve:(m,h)=>m.find(f=>f.slug===h.slug),snapshot:Cv,value:e,onChange:t}),s=m=>{if(!m){t(null);return}let h=(o??[]).find(f=>f.slug===m);h&&t(Cv(h))},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 aWe("div",{children:[Yi(eme,{label:u("Blog post source"),icon:Yi(ome,{}),hint:e?.slug?void 0:Yi(TR,{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:Yi(tme,{value:e?.slug??"",ariaLabel:u("Blog post source"),onChange:s,readOnly:n,options:[{label:u("None (manual)"),value:""},...l?[Qpe({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(m=>({label:m.title,value:m.slug}))]})}),e?.slug?Yi(Li,{status:d,statusText:p,onRefresh:i,busy:r,hint:Yi(TR,{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 Vr={badge:"Featured",imageDate:G.date,category:G.category,readLabel:"0 min read",date:G.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:oc.href},nme={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var pWe=["image","imageDate","date","title","dek","ctaHref"],rme={fields:_i({source:Mo(Kw),_nBound:dt(ul(bC),wC),image:nt("Cover image","image/*"),badge:$("Badge",Vr.badge),imageDate:$("Image date",Vr.imageDate),_gContent:cWe("Content"),category:$("Category",Vr.category),readLabel:$("Read time",Vr.readLabel),date:$("Date",Vr.date),title:q("Heading",Vr.title),dek:q("Dek",Vr.dek),ctaText:$("Button",Vr.ctaText),ctaHref:Xe("Link")},pWe,vb)};import{jsx as rr}from"react/jsx-runtime";import{phoneKey as kr,tabletKey as pa}from"efficient-easel/draw";import{keptByRow as pUe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as ame}from"react/jsx-runtime";import{OpacityIcon as mWe,StylesIcon as uWe}from"efficient-easel/icons";function Yw(){return{darken:de("Darken",ame(mWe,{}),td.min,td.max,td.step,td.fallback,td.unit),darkenStyle:fe("Darken style",ame(uWe,{}),A2,A2[0].value)}}var hWe={"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]"},fWe=`calc(${CY} - ${T3}*2)`,ime=`var(${_Y},${T3})`,cMt=`pointer-events-none absolute inset-y-0 left-[${ime}] right-[${ime}] z-[6] mx-auto max-w-[var(${RY},${fWe.replace(/ /g,"_")})]`;function ER(e,t){return`pointer-events-auto absolute ${hWe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function sme(e){return OE.includes(e)?e:null}var gWe=OE,X8="top-right",bWe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],Z8=["cards","dots","numbers","bar","squares"],PR="cards",CR={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},_R=["tabs","largeTabs"],lme=!0;function RR(e){return bWe.includes(e)?e:PR}function dme(e){return Z8.includes(e)?e:PR}function wWe(e){return gWe.includes(e)?e:X8}var cme={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 pme(e,t){return ER(wWe(t),cme[RR(e)])}function mme(e){return`flex ${cme[RR(e)]}`}function ume(e){return e.shown!==!1&&(e.count??0)>1}function xWe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function yWe(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 hme(e,t){let o=Array.from(t,xWe);return yWe(e,o)?e:o}import{deviceField as yd}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as mUe,ClockIcon as uUe,CropIcon as qme,GapIcon as hUe,MediaLayoutStackedIcon as aue,LineBetweenIcon as fUe,LineSolidIcon as gUe,ListIcon as bUe,NumberedListIcon as Xme,ShadowIcon as wUe,StylesIcon as Zme,TableIcon as Jme,TargetIcon as xUe,WrapIcon as iue}from"efficient-easel/icons";var Ic=LE.map(e=>e.shape);function L1(e){return Ic.includes(String(e??""))?e:"auto"}function NR(e){let t=L1(e);return t==="auto"?"":D0(t)}var vWe={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]"},kWe={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 SWe(e,t){return Ic.includes(String(t??""))?t===L1(e)?null:t:null}var TWe={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 EWe(e){return Ic.includes(String(e??""))?e:null}function fme(e,t,o){let n=EWe(o),r=SWe(e,Ic.includes(String(t??""))?t:n);if(r===null&&n===null)return NR(e);let a=L1(e);return[r===null?NR(e):a==="auto"?"":vWe[a],r===null?"":kWe[r],n===null?"":TWe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as sue,VIEW_KEY_ACCESS as Fc,group as cg,phoneTwinFields as Bc}from"efficient-easel/screen/lib/document/box-fields";var PWe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},CWe=S2.map(e=>({value:e.value,picture:QP(PWe[e.value])}));function OR(e,t){return wo("Separator",e,CWe,t,{resolve:dK})}import{jsx as _We}from"react/jsx-runtime";import{cloneElement as RWe}from"react";import{PaddingXIcon as NWe}from"efficient-easel/icons";import{deviceField as OWe}from"efficient-easel/screen/lib/document/device-fields";function gme(){let e=fe(tte,_We(NWe,{}),$j,Vj);return OWe("desktop",{...e,render:t=>{let o=e.render({...t,value:jE(t.value),onChange:n=>t.onChange(Yj(n))});return RWe(o,{hint:u(Kj)})}})}import{newNodeId as J8}from"efficient-easel/draw";var bme=["First row","Second row","Third row"],AWe="Write the words for this row.",wme=e=>({type:"Text",props:{...Ue,id:J8("Text"),tag:"p",text:e}}),LWe=(e,t)=>({type:we,props:{...De,id:J8(we),...t?{startsOpen:!0}:{},rowTitle:[wme(e)],content:[{type:"Text",props:{...Tt,id:J8("Text"),tag:"p",text:AWe}}]}}),IWe=e=>!Array.isArray(e)||e.length===0;function xme(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:bme.map((r,a)=>LWe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==we||!IWe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(bme[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[wme(i)]}}});return o?{...e,content:n}:e}var I1="rowStyle",yme=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function vme(e){return e==="numbered"||e==="chevron"?e:"plain"}var AR="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",LR="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",IR="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",kme="border-t border-line",Sme="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",Tme="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as FWe}from"efficient-easel/screen/lib/content/view-tiers";var FR=vn.Flex,Eme={label:"Box",fields:FR,phoneOrder:{prop:FWe("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 Pme}from"react/jsx-runtime";import{isNode as BWe}from"efficient-easel/data";import{useEasel as HWe}from"efficient-easel/easel";import{PhoneOrderField as DWe}from"efficient-easel/fields";import{slotChildRowName as MWe}from"efficient-easel/draw";import{deviceField as zWe}from"efficient-easel/screen/lib/document/device-fields";function WWe(){try{let e=HWe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!BWe(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 UWe({value:e,onChange:t,readOnly:o}){let n=WWe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return Pme(DWe,{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=>MWe(r[s],i,Do,void 0,Eee)})}function Cme(){return zWe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>Pme(UWe,{value:e,onChange:t,readOnly:o})})}import{jsx as D1}from"react/jsx-runtime";import{SettingsDefaultReset as ZWe,SettingsField as JWe}from"efficient-easel/panel";import{Segmented as QWe}from"efficient-shell/ui";import{SwapIcon as eUe}from"efficient-easel/icons";import{describedAs as tUe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as oUe}from"efficient-easel/screen/lib/document/device-fields";var F1="Mirror cards",B1="off",Q8=[{value:B1,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],_me={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function Zu(e){return e==="even"||e==="odd"?e:null}function Rme(e){return Zu(e)??void 0}function H1(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function dg(e,t,o){return!t||e.direction!=="row"||o||Fm("row",e.separator)||e.loop==="scroll"||e.line===!0||ds(e)||u3(e.columns)!==""||yK(e.columnsTablet)!==""?!1:!(ls(e.share)===""&&P0(e.wrap)!=="")}function Nme(e,t){let o=Zu(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var Ome="view-wide:flex-row-reverse",GWe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},$We={left:"view-wide:text-right!",right:"view-wide:text-left!"},VWe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},KWe={start:"view-wide:items-end!",end:"view-wide:items-start!"},YWe={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!"},BR=(e,t)=>(typeof t=="string"?Ks(e,t):void 0)??"";function eH(e,t,o){return e?[BR(GWe,t),BR($We,o)].filter(Boolean).join(" "):""}function Ame(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=uK(o,r,void 0).tablet;return[BR(VWe,o),a?YWe[a]:""].filter(Boolean).join(" ")}return t==="column"?BR(KWe,n):""}function tH(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||ds(e)?!1:u3(e.columns)===""}function HR(e,t){let o=Zu(e.mirrorCards);return o&&tH(e,t)?{mirror:o}:null}import{isNodeList as Dme}from"efficient-easel/data";var Lme=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],Ime=[{value:"half",label:"Half"},{value:"third",label:"One third"}],Fme=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function jWe(e){return e==="rows-left"||e==="rows-right"?e:"columns"}var qWe={"rows-left":"even","rows-right":"odd"},XWe={half:"equal",third:"bigRight"};function DR(e){let t=jWe(e?.arrangement);if(t==="columns")return null;let o=e?.imageWidth==="third"?"third":"half";return{mirror:qWe[t],row:{share:XWe[o],phoneReverse:e?.phoneOrder==="words"}}}var Bme={ProcessSteps:{slot:"boxes",hand:DR}},Hme=(e,t,o)=>Dme(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function jw(e,t){let o=HP(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===we&&Hme(o,Ce,t)){let s=Ql(e,o.props?.id)?.inCopy===!0;return HR(tl(o.props??{},s),s)}let i=Ks(Bme,a);if(i&&Hme(o,i.slot,t))return i.hand(o.props??{})}let n=hE(e,t),r=n&&typeof n.type=="string"?Ks(Bme,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function Mme(e){let t=e?.[Ce];return Dme(t)&&t.some(o=>o?.type===we)}var zme="mirrorCardsIdle",oH="mirrorCardsMirrors",Wme={[oH]:(e,t)=>{let o=Ql(t.appState,e.props?.id);if(o===void 0)return;let n=tl(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&&dg(a,!0,Vp(a).desktop)}return dg(n,H1(o),Vp(n).desktop)&&Zu(n.mirrorCards)!==null},[zme]:(e,t)=>{let o=Ql(t.appState,e.props?.id);if(o===void 0)return;let n=tl(e.props??{},o.inCopy);return jw(t.appState,e.props?.id)?!0:dg(n,H1(o),Vp(n).desktop)?!1:!(tH(n,o.inCopy)&&Mme(n))}};function nUe(e=!1){return Q8.map(t=>({value:t.value,label:u(t.label),title:t.value===B1?void 0:u(_me[t.value]),disabled:e}))}function rUe({value:e,onChange:t,readOnly:o}){let n=Zu(e)??B1;return D1(JWe,{label:u(F1),icon:D1(eUe,{}),action:D1(ZWe,{words:EE()?.panel,label:u(F1),changed:n!==B1,detail:u("Off"),onReset:()=>t(void 0)}),children:D1(QWe,{size:"sm",block:!0,label:u(F1),value:n,onChange:r=>t(Rme(r)),options:nUe(o===!0)})})}function Ume(){return dt(oUe("desktop",{type:"custom",...tUe({},{type:"radio",label:F1,options:Q8.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>D1(rUe,{value:e,onChange:t,readOnly:o})}),{not:{context:zme,is:!0}})}import{jsx as aUe}from"react/jsx-runtime";import{FilterIcon as iUe}from"efficient-easel/icons";import{deviceField as sUe}from"efficient-easel/screen/lib/document/device-fields";var Vme="showForUnoffered",Kme={[Vme]:e=>GP().length===0&&Z2(e.props?.[X2])===void 0},lUe="Show for",dUe="All";function cUe(e,t){if(!e)return;let o=GP().find(r=>r.slug===e);if(o)return{slug:o.slug,name:o.name};let n=Z2(t);return n?.slug===e?n:void 0}function Yme(){let e=fe(lUe,aUe(iUe,{}),[{label:dUe,value:""}],"");return dt(sUe("desktop",{...e,render:t=>e.render({...t,value:Z2(t.value)?.slug??"",onChange:o=>t.onChange(cUe(o,t.value))})}),{not:{context:Vme,is:!0}})}var Gme=new WeakMap;function jme(e,t){let o=e[X2];if(!o)return e;let n=GP(),r=Z2(t?.[X2]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=Gme.get(o);i||Gme.set(o,i=new Map);let s=`${LJ()}\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=$me.get(e);d||$me.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[X2]:l}),c}var $me=new WeakMap;var Qme=eK,eue={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},yUe={field:"direction",is:"tabs"},vUe={field:"line",in:[!0,!1]},kUe={field:"anchor",set:!0},nH=["fixed","screen","fill"],SUe={not:{any:[{field:"sectionHeightMode",in:nH},{field:"sectionHeightModeTablet",in:nH},{field:"sectionHeightModePhone",in:nH}]}},TUe={context:"parent.line",is:!0},pg={not:{field:"direction",is:"accordion"}},tue={field:"direction",is:"accordion"},oue={any:[pg,{not:{field:I1,in:["numbered","chevron"]}},{field:"columns",in:[...vK]},{field:"phoneRow",in:[...kK]}]},lue="notAccordionRow",EUe={not:{context:lue,is:!0}},PUe={[lue]:(e,t)=>t.parent?.props?.direction!=="accordion"},aH={field:"direction",is:"row",default:"row"},mg={not:bY},fg={all:[aH,mg,{not:{field:"separator",in:S2.map(e=>e.value)}},{not:{field:"line",is:!0}}]},CUe={field:"direction",is:"column"},due={all:[fg,...["columns",pa("columns")].map(e=>({not:{field:e,in:Array.from({length:lE},(t,o)=>o+sE)}}))]},_Ue={all:[mg,{not:{all:[aH,{field:"separator",in:S2.map(e=>e.value)}]}}]},rH={not:{all:[fg,{field:"columns",in:Array.from({length:lE},(e,t)=>t+sE)}]}},RUe="sharedColumnsFits",cue="sharedColumnsMisfit",pue="sharedColumnsDraws",mue="sharedColumnsPhoneDraws";function hg(e,t){return tl(e.props??{},Ql(t.appState,e.props?.id)?.inCopy!==!1)}var NUe={[RUe]:(e,t)=>q5(hg(e,t)),[cue]:(e,t)=>!q5(hg(e,t)),[pue]:(e,t)=>Vp(hg(e,t)).desktop,[mue]:(e,t)=>Vp(hg(e,t)).phone};function nue(e){return{all:[{not:{context:cue,is:!0}},{any:[L4,{field:e,set:!0}]}]}}var ug={not:{context:pue,is:!0}},qw={not:{context:mue,is:!0}},uue="sharedRowsDraws",OUe={[uue]:(e,t)=>X5(hg(e,t))&&jw(t.appState,e.props?.id)?.row===void 0},M1={not:{context:uue,is:!0}},AUe={any:[ug,qw]},iH=oK,LUe={not:{context:oH,is:!0}},hue="rowHanded",IUe={not:{context:hue,is:!0}},FUe={[hue]:(e,t)=>{let o=jw(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},rue={all:[pg,iH,ug,qw,LUe]},BUe={field:"direction",is:"row"},HUe={field:"align",in:["start","center","end"]},DUe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function MUe(){let{darken:e,darkenStyle:t}=Yw();return{...Bc("darken",e,Fc),...Bc("darkenStyle",t,Fc)}}var fue={not:{all:[fg,{field:pa("columns"),in:Array.from({length:lE},(e,t)=>t+sE)}]}};function zUe(){let e=ae(sue,!1,rr(iue,{})),t=o=>{let n=m3(o);return n===void 0?void 0:n==="wrap"};return{...Sf(),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 WUe(){let e=ae(sue,!0,rr(iue,{})),t=o=>{let n=m3(o);return n===void 0?void 0:n==="wrap"};return{...Sf(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!SK(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var gue={hint:$m},bue={all:[iH,{any:[CUe,{all:[fg,fue,{not:{all:[due,{field:pa("share"),set:!0}]}}]}]}]},UUe=dt(yd("desktop",de("Narrows below",rr(aue,{}),bf.min,bf.max,bf.step,$m,{kind:"breakpoint"},{clear:gue,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),bue);function GUe(e,t){let o=e;return!(wf in o)||t.direction!=="column"?e:{...o,[wf]:UUe}}var wue={fields:Fe({_gContent:cg("Content"),rowTitle:FR.rowTitle,content:FR.content,_gCardDisplay:cg("Display"),cardDisplay:SC("desktop"),cardDisplayTablet:SC("tablet"),cardDisplayPhone:SC("mobile"),showFor:Yme(),_gLayout:cg("Layout"),direction:gC("Flex"),tabShape:wo("Tab shape",rr(Zme,{}),_R.map(e=>({label:CR[e],value:e,picture:GQ[e]})),"tabs",{columns:2,cell:wr}),mirrorCards:Ume(),[wf]:yd("desktop",de("Stacks below",rr(aue,{}),bf.min,bf.max,bf.step,$m,{kind:"breakpoint"},{clear:gue,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[I2]:gme(),startsOpen:yd("desktop",ae("Starts open",!1,rr(mUe,{}))),[I1]:yd("desktop",wo("Row style",rr(Xme,{}),yme.map(e=>({...e,picture:e.value==="numbered"?rr(Xme,{}):rr(bUe,{})})),"plain",{columns:2})),label:Yo(Q("Tab name")),...li("Flex"),...Bc("justify",ZP(),Fc),...Bc("align",JP(),Fc),...(()=>{let e=Bc("wrap",Sf(),Fc,{phoneRow:WUe()}),t=Bc("wrap",Sf(),Fc,{phoneRow:zUe()});return{wrap:t.wrap,[pa("wrap")]:t[pa("wrap")],[kr("wrap")]:e[kr("wrap")]}})(),[kr("order")]:Cme(),...Bc("boxShape",vw("Box shape",rr(qme,{}),M0(Ic),"shape","auto"),Fc,{phoneRow:vw("Box shape",rr(qme,{}),M0(Ic),"shape","auto",{phoneRest:e=>L1(e)})}),[JT]:yd("desktop",YJ(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:OR(rr(fUe,{size:18}),"none"),[X0]:yd("desktop",wo("Card style",rr(Zme,{}),Pq.map(e=>({...e,picture:VQ[e.value]})),"table",{columns:2,cell:wr})),share:yd("desktop",iee()),[pa("share")]:dee(),[kr("share")]:lee(),[$p]:yd("desktop",fe(h6,rr(Jme,{}),[...hie],Dv)),[kr($p)]:yd("mobile",fe(h6,rr(Jme,{}),[...fie],Dv)),...cee(),...Bc("blockSpacing",see(),Fc),line:ae("Line",!1,rr(gUe,{}),"A line across the blocks, with a dot on each."),upcoming:ae("Upcoming",!1,rr(uUe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:fe("Join",rr(hUe,{}),dP,lP),_gShadow:cg("Shadow"),...Bc("shadow",ae("Shadow",!1,rr(wUe,{})),Fc),...Bc("fillColor",uee(),Fc),[Oa]:$r("Fill content","colour"),[$E]:pUe("fillColor"),_gBackground:cg("Background image"),bgImage:yd("desktop",nt("Image","image/*")),bgImagePhone:yd("mobile",nt("Image","image/*")),[Zn]:$r("Image content","image",{content:!0}),...MUe(),placement:rd("Content position"),_gLink:cg("Link"),link:qu(Xe("Link to")),[$o]:Lc(),_gJump:cg("Anchor"),jumpHighlight:ae("Highlight when a link jumps here",!1,rr(xUe,{}),"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"],Qme],[[kr("share")],{all:[eue,qw]}],[[$p],nue($p)],[[kr($p)],nue(kr($p))],[[kr("wrap")],{all:[eue,mg,qw,M1]}],[[kr("order")],{all:[fg,qw,ug]}],[["phoneRow"],qw],[[I1],{all:[tue,{not:{field:I1,is:"chevron"}}]}],[["tabShape"],yUe],[["rowTitle","startsOpen"],EUe],[["align","blockSpacing",pa("blockSpacing"),kr("blockSpacing")],pg],[[pa("justify"),kr("justify")],{all:[mg,rue,M1]}],[[pa("align"),kr("align")],{all:[BUe,HUe,rue]}],[[pa("wrap")],{all:[mg,rH,fue,ug,pg,M1]}],[[pa("shadow"),kr("shadow")],iH],[[pa("darken"),kr("darken"),pa("darkenStyle"),kr("darkenStyle")],{all:[Qme,DUe]}],[["separator"],aH],[[X0],{field:X0,set:!0}],[["columns"],{any:[fg,tue]}],[[pa("columns")],fg],[[wf],bue],[[pa("gap")],{all:[_Ue,oue]}],[["gap",kr("gap")],oue],[["justify"],{all:[mg,AUe,pg,M1]}],[["wrap"],{all:[mg,rH,ug,pg,M1]}],[["share"],{all:[rH,ug,pg]}],[[pa("share")],{all:[due,ug]}],[["line"],vUe],[["upcoming"],TUe],[["jumpHighlight"],kUe],[["boxShape",pa("boxShape"),kr("boxShape")],SUe],[["direction","share",kr("order")],IUe],[["join"],m4],[[I2],m4]]),resolveData:(e,t)=>{let o=e.props,n=o[X0];return t.changed?.[X0]===!0&&Cq(n)?{...e,props:_q(o,n,we,Ce)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:xme(o)}:e},resolveFields:(e,t)=>{let o=Ql(t.appState,e.props?.id)?.inCopy===!0,n=o&&hE(t.appState,e.props?.id)===null;return GUe(KUe(YUe(jme(jUe(e,{...t,fields:Ma(t.fields,e,t)}),e.props),hg(e,t),o),n),e.props)},showWhenFacts:{...Da,...Cee,...Wme,...FUe,...NUe,...OUe,...Kme,...PUe}},$Ue=dt(See,L4),VUe=["darken","darkenStyle",QT,lf];function KUe(e,t){if(!t)return e;let o={...e};for(let n of VUe){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function YUe(e,t,o=!1){let n=e;return sf in n&&ds(t)&&o?{...n,[sf]:dt(Tee,Pee)}:!(sf in n)||ds(t)?e:{...n,[sf]:$Ue}}function jUe(...[e,t]){let{fields:o}=t;{if(ds(hg(e,t))){let n=Ap({fallback:{top:Oi.desktop,bottom:Oi.desktop,left:Oi.side,right:Oi.side},tablet:!0,siteSide:!0});return sv(o,n)}return e.props.padV2!==!0?sv(o,Ap({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as z1}from"react/jsx-runtime";var qUe=/^https?:\/\//i;function xue(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:j3(e.lat),lng:j3(e.lng),...t&&o&&qUe.test(t)?{href:t,linkLabel:o}:{}}}function sH(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 yue(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 vue(e){let t=[];return e.forEach((o,n)=>{nc(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 QUe,LayoutIcon as eGe,LocationIcon as tGe,SearchIcon as oGe,ThemeIcon as nGe}from"efficient-easel/icons";import{group as cH}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as zR}from"efficient-easel/screen/lib/document/device-fields";import{createContext as XUe,useContext as ZUe}from"react";var kue=XUe(null),E7t=kue.Provider,Sue=()=>ZUe(kue),MR=pE;function Tue(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 JUe(e){return e===null||!Number.isFinite(e)?"":e<10?`${e.toFixed(1)} km`:`${Math.round(e)} km`}function Eue(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?JUe(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 lH=[{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"}],Pue={key:af,label:"Dealers",blocks:["Footprint"],fields:lH};function Cue(e){return[e.name,e.city].filter(Boolean).join(", ")}var Ju={sectionNumber:G.sectionNumber,heading:`${G.heading}
15
+ `:""}`}),d]})]})}let f=v=>{!m||!lde(e,!1)||v.target===v.currentTarget&&p()},g=e.height==="full",b=e.fullWidth||g,w=GDe(e),x=IB("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% - ${FB}px)`:"100%",borderRadius:b?0:"var(--sf-section-radius, 0px)",...a||r?null:{pointerEvents:"auto"}},children:[w.place!=="none"?tg("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:-UDe,right:0}:{top:12,right:12},children:"\xD7"}):null,w.until?tg("style",{children:`@container popup-frame (min-width: ${w.until+1}px){[data-popup-close-until="${w.until}"]{display:none}}`}):null,tg("div",{"data-popup-scroll":"",className:"min-h-0 flex-1",style:{overflow:"auto"},children:d})]});return tg("div",{role:a||r?"dialog":"region","aria-modal":m?!0:void 0,"aria-label":s,"data-popup-frame":r?"inline":"live",onClick:f,className:r?"relative flex min-h-[100vh] w-full":"fixed inset-0 z-[90] flex",style:{...WDe[e.placement],background:sde(e.tintColor,e.tintOpacity),padding:b?0:w.place==="outside"&&e.placement.startsWith("top")?`${24+FB}px 24px 24px`:24,...w.until?{containerType:"inline-size",containerName:"popup-frame"}:null,...a||r?null:{pointerEvents:"none"}},children:x})}var VDe=25.4,p1=400,W_=152,KDe=58,dde=W_*Math.cos(KDe*Math.PI/180),YDe=14,jDe=p1/2,qDe={sectionWidth:225,aspectRatio:60,rimDiameter:17};function pde(e){let t=fs(e);return t?{sectionWidth:t.width,aspectRatio:t.profile,rimDiameter:t.rim}:qDe}function mde(e){let t=e.rimDiameter*VDe/2,o=t+e.sectionWidth*e.aspectRatio/100,n=W_*(e.sectionWidth/o),r=t/o;return{cy:jDe,rx:dde,ry:W_,cxf:p1/2-n/2-YDe,dx:n,rimRx:dde*r,rimRy:W_*r}}var eo=e=>e.toFixed(1);function U_(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${eo(r)} ${eo(a)} A${eo(e.rx)} ${eo(e.ry)} 0 0 ${o} ${eo(r)} ${eo(i)}`}function DB(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${eo(n)} ${eo(a)} L${eo(r)} ${eo(a)} A${eo(e.rx)} ${eo(e.ry)} 0 0 1 ${eo(r)} ${eo(i)} L${eo(n)} ${eo(i)} A${eo(e.rx)} ${eo(e.ry)} 0 0 0 ${eo(n)} ${eo(a)} Z`}function z_(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 ude(e,t,o,n,r){let[a,i]=z_(e,t,n),[s,l]=z_(e,t,r),[d,c]=z_(e,o,r),[p,m]=z_(e,o,n);return`M${eo(a)} ${eo(i)} A${eo(e.rx)} ${eo(e.ry)} 0 0 1 ${eo(s)} ${eo(l)} L${eo(d)} ${eo(c)} A${eo(e.rx)} ${eo(e.ry)} 0 0 0 ${eo(p)} ${eo(m)} L${eo(a)} ${eo(i)} Z`}var cde=[{f:[0,.215]},{f:[.245,.485]},{f:[.515,.755]},{f:[.785,1]}],XDe={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}}]},ZDe=[["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 hde(e){let t=` ${(e??"").toLowerCase().replace(/[^a-z0-9]+/g," ").trim()} `;if(t.trim()==="")return cde;for(let[o,n]of ZDe)if(t.includes(` ${o} `))return XDe[n];return cde}var G_="Illustrations are drawn to each tyre's listed size and represent its category; supplier photography replaces them where available.";import{useId as JDe}from"react";function Ha(e,t=/:/g){let o=JDe().replace(t,"");return e?`${e}-${o}`:o}import{Fragment as m1,jsx as jt,jsxs as Pc}from"react/jsx-runtime";var ks={rib:.2,grooveWall:.16,shoulder:.22,silhouette:.26,relief:[.26,.15,.11],lettering:.1,dishFill:.06,dishEdge:.3,spoke:.3,hubFill:.16,hubEdge:.34},QDe=[.8,.52,.24],fde=.4,gde=.88,bde=.3,wde=5,xde=.3,yde=.84,eMe=7,fo=e=>Math.round(e*10)/10;function MB({size:e,type:t,className:o}){let n=Ha("",/[^a-zA-Z0-9]/g),r={tread:`${n}-tread`,wall:`${n}-wall`,rim:`${n}-rim`,shadow:`${n}-shadow`,crown:`${n}-crown`},a=mde(pde(e)),i=DB(a,0,1),s=e?`${e} tyre illustration`:"Tyre illustration";return Pc("svg",{"data-tyre-placeholder":"",viewBox:`0 0 ${p1} ${p1}`,role:"img","aria-label":s,fill:"none",className:o??"block h-full w-full",children:[jt("title",{children:s}),Pc("defs",{children:[jt(oMe,{id:r}),jt("clipPath",{id:r.crown,children:jt("path",{d:i})})]}),jt("ellipse",{cx:fo(a.cxf+a.dx/2),cy:fo(a.cy+a.ry-4),rx:fo(a.dx*1.5),ry:16,fill:`url(#${r.shadow})`}),jt(nMe,{g:a,id:r}),jt(rMe,{g:a,id:r}),jt("path",{d:i,fill:`url(#${r.tread})`}),jt("g",{clipPath:`url(#${r.crown})`,children:hde(t).map(l=>jt(tMe,{g:a,column:l},l.f[0]))}),jt("path",{d:U_(a,0,0,!0),stroke:"currentColor",strokeOpacity:ks.shoulder,strokeWidth:1.2}),jt("path",{d:U_(a,1,1),stroke:"currentColor",strokeOpacity:ks.silhouette,strokeWidth:1.4})]})}function tMe({g:e,column:t}){let[o,n]=t.f;if(!t.blocks)return Pc(m1,{children:[jt("path",{d:DB(e,o,n),fill:"currentColor",fillOpacity:ks.rib}),jt("path",{d:U_(e,o,1),stroke:"currentColor",strokeOpacity:ks.grooveWall,strokeWidth:1})]});let{count:r,gap:a,phase:i=0}=t.blocks,s=1/r,l=[];for(let d=-1;d<=r;d+=1){let c=Math.max((d+i+a/2)*s,0),p=Math.min((d+i+1-a/2)*s,1);p-c>s*.15&&l.push([c,p])}return jt(m1,{children:l.map(([d,c])=>jt("path",{d:ude(e,o,n,d,c),fill:"currentColor",fillOpacity:ks.rib,stroke:"currentColor",strokeOpacity:ks.grooveWall,strokeWidth:1},d))})}function oMe({id:e}){return Pc(m1,{children:[Pc("linearGradient",{id:e.tread,x1:"0",y1:"0",x2:"1",y2:"0",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.07}),jt("stop",{offset:"0.14",stopColor:"currentColor",stopOpacity:.24}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.18}),jt("stop",{offset:"0.84",stopColor:"currentColor",stopOpacity:.1}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.05})]}),Pc("linearGradient",{id:e.wall,x1:"0.15",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.28}),jt("stop",{offset:"0.45",stopColor:"currentColor",stopOpacity:.17}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.08})]}),Pc("linearGradient",{id:e.rim,x1:"0.1",y1:"0",x2:"0.9",y2:"1",children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.46}),jt("stop",{offset:"0.5",stopColor:"currentColor",stopOpacity:.26}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:.12})]}),Pc("radialGradient",{id:e.shadow,children:[jt("stop",{offset:"0",stopColor:"currentColor",stopOpacity:.22}),jt("stop",{offset:"1",stopColor:"currentColor",stopOpacity:0})]})]})}function nMe({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 Pc(m1,{children:[jt("ellipse",{cx:fo(e.cxf),cy:fo(e.cy),rx:fo(e.rx),ry:fo(e.ry),fill:`url(#${t.wall})`}),QDe.map((a,i)=>{let s=n(a);return jt("ellipse",{cx:fo(e.cxf),cy:fo(e.cy),rx:fo(e.rx*s),ry:fo(e.ry*s),stroke:"currentColor",strokeOpacity:ks.relief[i],strokeWidth:1},a)}),jt("ellipse",{cx:fo(e.cxf),cy:fo(e.cy),rx:fo(e.rx*n(fde)),ry:fo(e.ry*n(fde)),stroke:"currentColor",strokeOpacity:ks.lettering,strokeWidth:fo(r)})]})}function rMe({g:e,id:t}){let o=Array.from({length:wde},(n,r)=>{let a=(r*(360/wde)-90)*Math.PI/180;return{x1:e.cxf+e.rimRx*xde*Math.cos(a),y1:e.cy+e.rimRy*xde*Math.sin(a),x2:e.cxf+e.rimRx*yde*Math.cos(a),y2:e.cy+e.rimRy*yde*Math.sin(a)}});return Pc(m1,{children:[jt("ellipse",{cx:fo(e.cxf),cy:fo(e.cy),rx:fo(e.rimRx),ry:fo(e.rimRy),fill:`url(#${t.rim})`}),jt("ellipse",{cx:fo(e.cxf),cy:fo(e.cy),rx:fo(e.rimRx*gde),ry:fo(e.rimRy*gde),fill:"currentColor",fillOpacity:ks.dishFill,stroke:"currentColor",strokeOpacity:ks.dishEdge,strokeWidth:1}),o.map((n,r)=>jt("line",{x1:fo(n.x1),y1:fo(n.y1),x2:fo(n.x2),y2:fo(n.y2),stroke:"currentColor",strokeOpacity:ks.spoke,strokeWidth:eMe,strokeLinecap:"round"},r)),jt("ellipse",{cx:fo(e.cxf),cy:fo(e.cy),rx:fo(e.rimRx*bde),ry:fo(e.rimRy*bde),fill:"currentColor",fillOpacity:ks.hubFill,stroke:"currentColor",strokeOpacity:ks.hubEdge,strokeWidth:1})]})}import{jsx as zB}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 zB("div",{className:`text-fg ${a}`,style:{padding:"var(--sf-tyre-image-inset, 0)"},children:zB(ro,{label:t||"Tyre",src:od(e??void 0),alt:t?`${t} tyre`:"Tyre",objectFit:"contain",sizes:n,priority:r,showBackground:i,fallback:zB(MB,{size:t,type:o,className:"block h-full w-full p-3"})})})}import{jsx as u1}from"react/jsx-runtime";function aMe(e){let t=e?.tyreTypes??[];return t.length===1?t[0]:null}function WB({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??qoe;return u1("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden border border-line bg-surface",children:M_(e)?u1(Qp,{image:o?.coverImage,size:e.size,type:aMe(o),sizes:"96px",className:"h-full w-full"}):a?.src?u1(rl,{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?u1("div",{className:"relative z-[2] block w-[72%]",style:{color:d,filter:"drop-shadow(0 6px 12px rgba(0,0,0,0.25))"},children:u1(Of,{spokes:i,mesh:s,className:"block w-full"})}):null})}import{jsx as UB,jsxs as sMe}from"react/jsx-runtime";var vde={labelSmall:"text-[length:var(--size-label,15px)]",labelLarge:"text-[length:var(--size-label,16px)]"};function kde(e,t){return Math.min(X4,Math.max(1,e+t))}var Sde="disabled:cursor-not-allowed disabled:opacity-40",iMe={large:{frame:"flex items-center border-2 border-fg-dim/50",button:`h-12 w-12 cursor-pointer bg-transparent font-mono ${vde.labelLarge} font-bold text-fg transition-colors enabled:hover:bg-surface enabled:hover:text-accent ${Sde}`,value:`w-11 text-center font-mono ${vde.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 ${Sde}`,value:"min-w-[36px] px-3 text-center font-mono text-[12px] tracking-[0.18em] text-fg"}};function h1({value:e,onChange:t,size:o}){let n=iMe[o];return sMe("div",{className:n.frame,children:[UB("button",{type:"button",onClick:()=>t(kde(e,-1)),disabled:e<=1,"aria-label":"Decrease quantity",className:n.button,children:"\u2212"}),UB("span",{className:n.value,children:e}),UB("button",{type:"button",onClick:()=>t(kde(e,1)),disabled:e>=X4,"aria-label":"Increase quantity",className:n.button,children:"+"})]})}import{Fragment as Cc,jsx as Ke,jsxs as to}from"react/jsx-runtime";function Tde({content:e,closeRef:t}){let{close:o,items:n}=tr(),r=t;return to("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:[to("div",{className:"flex items-center justify-between",children:[to("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"})]}),to("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:wQ(e,n.length)})]})}function Ede({content:e}){let{totals:t}=tr(),{activeCountry:o}=Lt(),n=o?.name??e.shipsToFallback,r=1+(e.leadTimeValue?1:0)+(n?1:0);return Ke(Cc,{children:to("div",{className:`grid flex-shrink-0 ${lMe[r-1]} gap-px border-b border-line bg-line`,children:[Ke(GB,{label:"Items",value:to(Cc,{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(GB,{label:"Lead time",value:e.leadTimeValue}):null,n?Ke(GB,{label:"Ships to",value:n}):null]})})}function Pde({content:e,tyres:t}){let{items:o,remove:n,setQty:r}=tr();return Ke(Cc,{children:o.length===0?Ke(uMe,{content:e}):o.map(a=>Ke(dMe,{line:a,tyre:t.get(a.slug),onRemove:()=>n(a.id),onQtyChange:i=>r(a.id,i)},a.id))})}function Cde(){let{items:e,totals:t,bundles:o}=tr(),{formatMoney:n}=Lt(),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(Cc,{children:i.length>0&&to("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:[to("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:pMe(s,t.currency,n)},s.slug))})]})})}function _de(){return Ke(Cc,{children:Ke("section",{className:"border-b border-line px-8 py-6 max-[640px]:px-6",children:Ke(Joe,{})})})}function Rde({content:e}){return Ke(Cc,{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(mMe,{children:t},t))})})}function Nde(){let{totals:e,coupon:t}=tr(),{formatMoney:o}=Lt();return Ke(Cc,{children:to("div",{className:"flex flex-shrink-0 flex-col gap-2 border-t border-line px-8 pt-5 max-[640px]:px-6",children:[Ke(Mu,{label:`Subtotal \xB7 ${e.sets} set${e.sets===1?"":"s"}`,value:o(e.subtotal,e.currency)}),e.appliedBundles.map(n=>Ke(Mu,{label:`Bundle \xB7 ${n.name}${n.multiples>1?` \xD7${n.multiples}`:""}`,value:to("span",{style:{color:"var(--green)"},children:["\u2212 ",o(n.discount,e.currency)]})},n.slug)),e.discount>0&&t?.valid&&Ke(Mu,{label:`Coupon \xB7 ${t.code}`,value:to("span",{style:{color:"var(--green)"},children:["\u2212 ",o(e.discount,e.currency)]})}),t?.deferred&&Ke(Mu,{label:`Coupon \xB7 ${t.code}`,value:Noe}),t?.valid&&t.effects?.gift&&Ke(Mu,{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:Nf})}),Ke(Mu,{label:"Shipping",value:e.shippingStatus==="free"?Ke("span",{style:{color:"var(--green)"},children:Nf}):Koe(e.shippingStatus)??o(e.shipping,e.currency)}),e.tax&&(e.tax.charged?Ke(Mu,{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(Mu,{label:e.tax.name,value:Voe}):null),to("div",{className:"mt-2 flex items-center justify-between border-t border-line pt-4 text-fg",children:[to("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?Moe:o(e.grand,e.currency)})]})]})})}function Ode(){let{items:e,close:t}=tr();return Ke(Cc,{children:to("div",{className:"flex flex-shrink-0 flex-col gap-3 px-8 pb-6 pt-4 max-[640px]:px-6",children:[to(Ae,{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(Ae,{href:"/wheels",onClick:t,className:"text-fg transition-colors hover:text-accent",children:"\u2190 Keep browsing"})})]})})}var lMe=["grid-cols-1","grid-cols-2","grid-cols-3"];function GB({label:e,value:t}){return to("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 dMe({line:e,tyre:t,onRemove:o,onQtyChange:n}){let{catalog:r,totals:a}=tr(),i=(e.components??[]).reduce((d,c)=>d+(a.freeUnitsByPartNumber[c.partNumber]??0),0),{currency:s,formatMoney:l}=Lt();return to(Cc,{children:[to("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(WB,{line:e,catalog:r,tyre:t}),to("div",{className:"flex min-w-0 flex-col gap-2",children:[to("div",{className:"flex items-start justify-between gap-3",children:[to("span",{className:"font-mono text-[9px] uppercase tracking-[0.26em] text-accent",children:["N\xB0 ",e.positionNo," \xB7 ",e.process==="FusionForge\xAE"?to(Cc,{children:["FusionForge",Ke(uP,{})]}):e.process]}),Ke("span",{className:"whitespace-nowrap font-display text-[16px] font-medium tracking-[-0.015em] text-fg",children:Q4(e,s)===null?lu:l(Q4(e,s),s)})]}),to("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&&to("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&&to("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"]})]}),to("div",{className:"mt-3 flex items-center justify-between gap-3",children:[Ke(h1,{value:e.qty,onChange:n,size:"small"}),to("div",{className:"flex gap-4 font-mono text-[10px] uppercase tracking-[0.22em]",children:[Ke(Ae,{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&&to("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"}),to("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 to(Ae,{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:[to("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 pMe(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 mMe({children:e}){return Ke("span",{className:"inline-flex items-center gap-2 before:text-[6px] before:text-accent before:content-['\u25CF']",children:e})}function Mu({label:e,value:t}){return to("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 uMe({content:e}){return to("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}),to(Ae,{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 zu,jsxs as Ade}from"react/jsx-runtime";var gMe=nu(void 0);function f1({content:e=aC,look:t=gMe}){let{isOpen:o,preview:n,close:r,items:a,setAutoOpen:i}=tr(),s=fMe(null),l=ide(a.filter(M_).map(d=>d.slug));return hMe(()=>{i(t.autoOpen)},[t.autoOpen,i]),Ade(kl,{look:t,drawer:{closeRef:s,lockScroll:!n},open:o,onClose:r,label:"Your cart",children:[zu(Tde,{content:e,closeRef:s}),zu(Ede,{content:e}),Ade("div",{className:"flex-1 overflow-y-auto [scrollbar-color:var(--site-line)_transparent] [scrollbar-width:thin]",children:[zu(Pde,{content:e,tyres:l}),zu(Cde,{}),zu(_de,{}),zu(Rde,{content:e})]}),zu(Nde,{}),zu(Ode,{})]})}import bMe from"efficient-easel/screen/components/UiIcon";import{Fragment as xMe,jsx as og,jsxs as $_}from"react/jsx-runtime";var wMe=ew(()=>import("./chunks/EditorPreviewCheckout-4OBHQ7YG.js"),{ssr:!1});function $B(){let{chromePlaceholder:e,themeFromDocument:t}=Gn(),{surface:o}=Vee();return e||t||!o||o!=="cart"&&o!=="checkout"?null:o==="checkout"?$_(xMe,{children:[og(wMe,{}),og(Lde,{surface:o})]}):og(cu,{children:$_(Mb,{preview:!0,children:[og(f1,{}),og(Lde,{surface:o})]})})}function Lde({surface:e}){let{label:t,href:o}=gle(e);return $_("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:[og("span",{style:{whiteSpace:"nowrap"},children:u("{name} \xB7 preview only",{name:u(t)})}),$_("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"),og(bMe,{name:"external-link",size:13,rounded:!0})]})]})}import{CloseIcon as yMe,CursorClickIcon as vMe,EyeIcon as kMe,FullWidthIcon as SMe,HeightIcon as TMe,OpacityIcon as Bde,PlacementIcon as EMe,WidthIcon as PMe}from"efficient-easel/icons";import{group as Cw}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as CMe}from"efficient-easel/screen/lib/document/device-fields";import{jsx as em}from"react/jsx-runtime";var _Me={label:"Inside",value:"inside"},RMe={label:"None",value:"none"};function VB(e){return Object.fromEntries(Object.entries(e).map(([t,o])=>[t,CMe("desktop",o)]))}function Ide(e,t){return{_gDesign:Cw("Color"),tintColor:id("Tint color",e),tintOpacity:de("Tint opacity",em(Bde,{}),ev.min,ev.max,5,t,"%")}}function Fde(e,t){return{_gBehavior:Cw("Behavior"),outsideClick:ae("Outside click",e,em(vMe,{})),...t}}var NMe=[["outsideClick"],{not:{field:"closeButton",is:"none"}}];function KB(e){return de("Width",em(PMe,{}),E4.min,E4.max,4,e,"px")}function Hde(e){if(e===ou){let o=nu(void 0);return VB({_gSize:Cw("Width"),width:KB(o.width),_gPosition:Cw("Placement"),placement:fe("Placement",em(EMe,{}),[{label:"Right",value:"right"},{label:"Left",value:"left"}],o.placement),...Ide(o.tintColor,o.tintOpacity),...Fde(o.outsideClick,{autoOpen:ae("Auto open",o.autoOpen,em(kMe,{}))})})}let t=bb;return Fe(VB({_gSize:Cw("Width"),width:KB(t.width),height:fe("Height",em(TMe,{}),[{label:"Auto",value:"auto"},{label:"Full",value:"full"}],t.height),_gPosition:Cw("Placement"),placement:rd("Placement",{fallback:t.placement}),fullWidth:ae("Full width",t.fullWidth,em(SMe,{})),...Ide(t.tintColor,t.tintOpacity),...Fde(t.outsideClick,{closeButton:fe("Close button",em(yMe,{}),[_Me,{label:"Outside",value:"outside"},RMe],t.closeButton)})}),[[["width"],{not:{field:"fullWidth",is:!0}}],NMe])}function Dde(e,t){return VB({menuPanelWidth:KB(e),menuPanelTintColor:id("Tint color",bb.tintColor),menuPanelTintOpacity:de("Tint opacity",em(Bde,{}),ev.min,ev.max,5,t,"%")})}import{PictureTiles as OMe}from"efficient-shell/ui";import{SettingsField as AMe}from"efficient-easel/panel";import{GridIcon as LMe}from"efficient-easel/icons";import{jsx as ng}from"react/jsx-runtime";function IMe({layout:e}){return ng("span",{"aria-hidden":!0,className:"relative block h-9 w-13 rounded-xs border border-current",children:e==="bar"?ng("span",{className:"absolute inset-x-0 bottom-0 h-2 bg-current opacity-50"}):ng("span",{className:"absolute bottom-1 left-1 h-3 w-5 rounded-xs bg-current opacity-50"})})}var Mde={type:"custom",render:({value:e,onChange:t})=>{let o=iC({layout:e}).layout,n=P4.find(r=>r.value===o);return ng(AMe,{label:u(C4),icon:ng(LMe,{}),value:n?u(n.label):void 0,children:ng(OMe,{className:"sf-gallery-layouts",label:u(C4),value:o,onChange:t,options:P4.map(r=>({value:r.value,label:u(r.label),picture:ng(IMe,{layout:r.value})}))})})}};import{CategoryIcon as yyt,CheckIcon as vyt,ClockIcon as M$,ColumnsIcon as kyt,DirectionIcon as Syt,EyeIcon as Tyt,ListIcon as Eyt,PageIcon as Pyt,PlacementIcon as Cyt,ScrollPointIcon as _yt,TabsIcon as Ryt,TriggerIcon as Nyt}from"efficient-easel/icons";import{deviceField as lLe}from"efficient-easel/screen/lib/document/device-fields";import{group as jl,phoneTwinFields as Oyt}from"efficient-easel/screen/lib/document/box-fields";import{blockAlignmentField as FMe}from"efficient-easel/screen/lib/document/box-fields";function _w(e){let t=FMe(e);return{...t,render:o=>t.render({...o,value:Im(o.value)??o.value})}}import{useContext as HMe,useEffect as Wde,useRef as K_,useState as Y_}from"react";import{Button as j_}from"efficient-shell/ui";import{ScreenDocumentContext as DMe}from"efficient-easel/screen/components/ScreenDocumentContext";var g1=class extends Error{constructor(o){super("The storefront forms list could not be loaded.");this.cause=o;this.name="FormsUnavailableError"}},V_=null,YB=null,jB=null;function BMe(){V_=null,YB=null,jB=null}function zde(e=!1){let t=aa(),o=Nn();return(e||!V_||YB===null&&t!==null||jB!==o)&&(YB=t,jB=o,V_=(t?Oe.listForms(t,{siteId:o}):Promise.reject(new g1)).catch(n=>{throw BMe(),n instanceof g1?n:new g1(n)})),V_}import{useEaselHost as MMe}from"efficient-easel/screen/lib/host";import{InertHint as qB}from"efficient-easel/panel";import{jsx as nr,jsxs as _c}from"react/jsx-runtime";var Ude="__create-a-new-form__";function zMe({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:Ude,label:u("Create a new form")}];return[s,...l,...d,...c]}function WMe(e){return e===Ude?{action:"create"}:{action:"store",slug:e}}function UMe({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 GMe(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 XB({value:e,onChange:t,label:o="Form",emptyLabel:n}){let r=MMe(),a=HMe(DMe),i=a?a.capabilities.hasForms:!0,[s,l]=Y_(null),[d,c]=Y_(!1),[p,m]=Y_(!1),[h,f]=Y_(!1),g=K_(!0),b=K_(e);b.current=e;let w=K_(t);w.current=t;let x=K_(null),v=(P=!1)=>zde(P).then(B=>{if(g.current){l(B),c(!1);let D=UMe({value:b.current,pickedId:x.current,forms:B});D&&w.current(D)}return B},()=>(g.current&&c(!0),[]));Wde(()=>(g.current=!0,i&&v(),()=>{g.current=!1}),[i]),Wde(()=>i?t5(()=>{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=zMe({value:e,forms:s,loadFailed:d,emptyLabel:n}),y=async()=>{m(!0),f(!1);try{let P=await wne(r,{mode:"create"}),B=await v(!0);if(!g.current)return;if(P.status==="timeout"){f(!0);return}if(P.status!=="saved")return;let{form:D}=P;D.slug!==b.current&&w.current(D.slug),B.some(L=>L.id===D.id)||v(!0)}finally{g.current&&m(!1)}},O=P=>{let B=WMe(P);B.action==="create"?y():(f(!1),t(B.slug))};return i?_c("div",{className:"sf-formpicker",children:[nr(gb,{label:o,options:E,fallback:"",value:e??"",onChange:O,placeholder:u("Search forms\u2026")}),h&&nr("p",{className:"sf-formsummary-warn",children:u("That didn\u2019t come back \u2014 pick the form from the list, or try again.")}),S?_c("div",{className:"sf-blogsource sf-formsummary",children:[_c("div",{children:[nr("div",{className:"sf-formsummary-caption",children:Jn("{n} field","{n} fields",S.fields.length)}),S.fields.length?nr("ol",{className:"sf-formsummary-fields",children:S.fields.map((P,B)=>nr("li",{children:P.label},P.key||`${P.label}-${B}`))}):nr(qB,{children:u("This form has no fields yet, so there is nothing for a visitor to fill in.")})]}),_c("div",{children:[nr("div",{className:"sf-formsummary-caption",children:u("Where the answers go")}),nr("ul",{className:"sf-formsummary-fields",children:GMe(S).map(P=>nr("li",{children:P},P))})]}),!S.is_active&&nr("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")})}),_c("div",{className:"sf-formsummary-actions",children:[nr(j_,{variant:"secondary",size:"md",onClick:()=>bne(r,S.id),children:u("Edit form \u270E")}),nr(j_,{variant:"secondary",size:"md",disabled:p,onClick:()=>{y()},children:u("New form +")})]}),nr("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")})})]}):_c("div",{className:"sf-blogsource sf-formsummary",children:[d?_c(qB,{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&&nr("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??""})}),_c("div",{className:"sf-formsummary-actions",children:[d&&nr(j_,{variant:"secondary",size:"md",disabled:p,onClick:()=>{v(!0)},children:u("Try again")}),nr(j_,{variant:"secondary",size:"md",disabled:p,onClick:()=>{y()},children:u("New form +")})]}),!d&&nr("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")})})]})]}):nr("div",{className:"sf-formpicker",children:nr("div",{className:"sf-blogsource sf-formsummary",children:_c("div",{children:[nr("div",{className:"sf-formsummary-caption",children:u(o)}),_c(qB,{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 $Me}from"react/jsx-runtime";function Rc(e,t){return{type:"custom",render:({value:o,onChange:n})=>$Me(XB,{value:o,onChange:n,...e?{label:e}:{},...t?{emptyLabel:t}:{}})}}import{jsx as JB}from"react/jsx-runtime";import{ListIcon as VMe}from"efficient-easel/icons";import{NoControlMark as KMe,noControlField as YMe}from"efficient-easel/screen/lib/document/panel-no-control-mark";function qt(e,t){return fe(e,JB(VMe,{}),[{label:t,value:""}],"")}var rg="_sourceEdit";function Rw(){return YMe({type:"custom",render:()=>JB(KMe,{})},"always")}var Gde=new Map,$de=new WeakMap,Vde=(e,t)=>({type:"custom",render:()=>JB(Li,{compact:!0,status:"ok",hint:u("Where this content is edited."),edit:{label:e,onClick:t}})});function jMe(e){if(AV(e)){let n=$de.get(e.open);n||$de.set(e.open,n=new Map);let r=n.get(e.label);return r||n.set(e.label,r=Vde(e.label,e.open)),r}let t=`${e.label}\0${e.href}`,o=Gde.get(t);return o||(o=Vde(e.label,()=>window.open(e.href,"_blank","noopener")),Gde.set(t,o)),o}var Kde=new WeakMap,Yde=-1,ZB={},jde=new WeakMap;function Xde(e,t,o){return LV(e).filter(n=>!n.records||n.key===t||o!==null&&n.records.includes(o))}function qMe(e,t,o,n){Yde!==Lm()&&(Yde=Lm(),ZB={});let r=Kde.get(t);(!r||jde.get(r)!==ZB)&&(r=new Map,jde.set(r,ZB),Kde.set(t,r));let a=Xde(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 qde=new WeakMap,Sl={not:{field:ss,set:!0}};function Xt(e,t,o,n={}){let r=t[ss];if(!r)return t;let a=mt(o),i=AP(n.root),s=Xde(e,a,i).length>0||a!=="",l=s?qMe(e,r,a,i):null,d=qde.get(t);d||qde.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??[]),h=a?k0(a)?.edit:void 0,f={};for(let[g,b]of Object.entries(t))g===ss?l&&(f[g]=l):g===rg?h&&(f[g]=jMe(h)):f[g]=m.has(g)&&b&&typeof b=="object"?dt(b,Sl):b;return d.set(c,f),f}import{createContext as XMe,useContext as ZMe}from"react";import{jsx as Nc,jsxs as QB}from"react/jsx-runtime";function e8(e){return ic(e)??void 0}var t8=XMe({}),Zde=3;function o8({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}=ZMe(t8),h=l==="bordered"?" border border-line":l==="shadow"?" shadow-[0_8px_30px_rgba(0,0,0,0.12)]":"",f=e8(r),g=Qn();if(m){let x={key:typeof t=="string"&&t?t:r??"card",name:typeof t=="string"?t:"",desc:o??"",image:f??"",tag:e??"",href:n||"#"};return g.scope(Nc("div",{className:ho(`block w-full min-w-0 ${B0}`,g.className),...g.attrs,children:Nc(Ve,{ownerId:p??"Collections",ownerType:"Collections",Template:m,rows:[x],fallback:null,children:v=>v})}))}let b=x=>c?{[N0]:x}:{},w=x=>cE(d?.[O0(x)]?.role,_f[x],ZT);return g.scope(QB(Ae,{href:n||"#",className:ho(`sf-card group relative block w-full min-w-0 overflow-hidden bg-surface-2${h}`,g.className),...g.attrs,children:[Nc("div",{className:`relative z-0 aspect-[4/5] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)] ${nie}`,children:Nc(ro,{label:a||"collection.jpg",src:f})}),Nc("div",{className:`pointer-events-none absolute inset-0 z-[1] ${iie} max-view-wide:hidden`,style:{transition:"none"}}),QB("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&&Nc("span",{...b("tag"),style:w("tag"),className:`font-mono ${Fp.tag} uppercase tracking-[0.25em] opacity-70`,children:A(e)}),t&&Nc("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&&At(o).map((x,v)=>Nc("p",{...b("body"),style:w("body"),className:`max-w-[420px] ${Fp.body} leading-[1.5] opacity-80`,children:A(x)},v)),s&&i&&Nc("span",{...b("price"),style:w("price"),className:`font-mono ${Fp.price} tracking-[0.05em] text-accent`,children:A(i)}),QB("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",Nc("span",{className:"transition-transform group-hover:translate-x-[3px]","aria-hidden":!0,children:"\u2192"})]})]})]}))}import{createContext as ace,useCallback as h9e,useContext as nce,useEffect as f9e,useRef as g9e,useState as s8}from"react";import{slugify as b9e}from"efficient-shell/format";import{useState as QMe}from"react";import{jsx as n8,Fragment as JMe}from"react/jsx-runtime";function Tl({kind:e,shared:t=!1,declare:o=!1,children:n}){let r=pX(e),a=mX(e),i=t?a:r,s=cX(i);return o&&!i?n8("span",{[Ym]:e,children:n}):i?n8("span",{ref:s,[nX]:i.stamp,...i.textStyle?{[rX]:i.textStyle}:{},children:n}):n8(JMe,{children:n})}import{jsx as Ki,jsxs as Nw}from"react/jsx-runtime";var r8=(e,t)=>`${String(e).padStart(2,"0")} / ${String(t).padStart(2,"0")}`;function a8({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=>eQ(l,d,v),h=v=>p&&c?{[Qq]:c,[eX]:`@${v}`}:{},f=(v,k)=>!p&&c?Ki(Tl,{kind:`@${v}`,shared:!0,children:k}):k,[g,b]=QMe(!1),w=UY(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:[Ki(ro,{label:e.imageLabel,src:e.imageSrc}),!o&&Ki("div",{className:"absolute inset-0",style:{background:"rgba(0,0,0,0.35)"}})]}),Ki("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&&Ki(rl,{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&&Ki("span",{...h("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:f("tag",To(e.process))}),r!=null&&a!=null&&Ki("span",{...h("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:f("number",r8(r,a))})]}),Ki("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&&Ki("div",{...h("eyebrow"),className:`truncate font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.2em] text-accent max-view-wide:text-[length:var(--size-label,11px)] max-view-wide:tracking-[0.15em] ${m("eyebrow")}`.trim(),children:f("eyebrow",e.car)}),e.wheel&&Ki("div",{...h("title"),className:`font-heading3 text-[length:var(--size-headingSmall,22px)] font-medium leading-[1.05] tracking-[-0.02em] max-view-wide:text-[length:var(--size-body,16px)] ${o?"uppercase ":""}${m("title")}`.trim(),children:f("title",e.wheel)}),e.finish&&Ki("div",{...h("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:Ki("span",{children:f("meta",To(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&&Ki("div",{...h("title"),className:`font-display text-[length:var(--size-body,15px)] font-medium leading-[1.25] tracking-[-0.01em] text-fg ${m("title")}`.trim(),children:f("title",e.wheel)}),(e.finish||e.car)&&Ki("div",{...h(e.finish?"meta":"eyebrow"),className:`mt-0.5 font-mono text-[length:var(--size-label,11px)] uppercase tracking-[0.14em] text-fg-dim ${m(e.finish?"meta":"eyebrow")}`.trim(),children:f(e.finish?"meta":"eyebrow",To(e.finish||e.car))})]})]}):x}import{createContext as e9e,useCallback as t9e,useContext as o9e,useEffect as n9e,useLayoutEffect as r9e,useRef as i8,useState as a9e}from"react";import{createPortal as i9e}from"react-dom";import{Fragment as c9e,jsx as b1,jsxs as p9e}from"react/jsx-runtime";var s9e=".sf-themed-content",Jde="sf-section-accent";function l9e(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(Jde)&&(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 ${Jde}`:"contents",style:o}}function d9e(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 Qde=e9e(()=>{});function tm({open:e,onClose:t,label:o,onPrev:n,onNext:r,className:a="",children:i}){let s=i8(null),l=i8(null),[d,c]=a9e(null);r9e(()=>{if(!e){c(null);return}let f=s.current;if(!f)return;let g=f.closest(s9e)??f.ownerDocument.body;c({host:g,theme:l9e(f,g)})},[e]);let p=i8({onClose:t,onPrev:n,onNext:r});p.current={onClose:t,onPrev:n,onNext:r};let m=e&&d!==null,h=t9e(()=>p.current.onClose(),[]);return Ec({active:m,onDismiss:h,scopeRef:l}),n9e(()=>{if(!m)return;let f=l.current,g=f?.ownerDocument??document,b=g.activeElement;f?.focus();let w=v=>{if(v.key==="ArrowLeft")p.current.onPrev?.();else if(v.key==="ArrowRight")p.current.onNext?.();else if(v.key==="Tab"&&f){let k=d9e(f);if(k.length===0){v.preventDefault(),f.focus();return}let S=k[0],T=k[k.length-1],E=g.activeElement,y=!!E&&f.contains(E)&&E!==f;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?p9e(c9e,{children:[b1("span",{ref:s,hidden:!0}),d&&i9e(b1("div",{className:d.theme.className,style:d.theme.style,children:b1("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 ${HB[8]} ${a}`,style:{background:BB},children:b1(Qde.Provider,{value:t,children:i})})}),d.host)]}):null}var q_="color-mix(in oklab, var(--bg) 70%, transparent)";function Wu({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=o9e(Qde);return b1("button",{type:"button","aria-label":o,onClick:a=>{a.stopPropagation(),r()},className:e,style:t,children:n})}import{createContext as m9e,useContext as ag}from"react";var w1=m9e(null);function ece(){let e=ag(J2),t=ag(w1),o=RC();return e?e.socialLinks??Wee:t?t.socialLinks:o.links}function Uu(){return ag(w1)?.commerceEnabled??!0}function u9e(e){return(e?.commerceEnabled??!0)&&(e?.cartEnabled??!0)}function Ow(){return u9e(ag(w1))}function tce(){let e=ag(w1),t=Gn();return e?e.showThemeSwitch??Sp:t.themeSwitchShown??Sp}function oce(){let e=ag(J2),t=ag(w1),o=Gn();return e?jC({legalName:e.legalName,foundedYear:e.foundedYear,siteName:e.siteName}):t?jC({legalName:t.legalName,foundedYear:t.foundedYear,siteName:t.siteName}):jC({siteName:o.websiteName?.trim()||ru})}import{useBrowserLayoutEffect as w9e}from"efficient-shell/hooks";import{Fragment as Aw,jsx as Po,jsxs as da}from"react/jsx-runtime";var x9e="(max-width: 1100px) 100vw, min(59vw, 1050px)",x1=ace({}),ice=[{id:"tag",label:"Tag"},{id:"eyebrow",label:"Eyebrow"},{id:"title",label:"Title"},{id:"meta",label:"Meta"},{id:"number",label:"Card number"}],d8=ace(null),Gu="data-gallery-grid",l8="data-gallery-tile";function y9e(e,t){let[o,n]=s8(null);return f9e(()=>{let r=e.current,a=r?.closest(`[${Gu}]`);if(!r||!a)return;let i=()=>{let l=Array.from(a.querySelectorAll(`[${l8}]`)),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 bd={process:"Category",eyebrow:"Subtitle",name:"Item name",meta:"Detail"},v9e=()=>({image:"",href:"#",process:"",eyebrow:"",name:"",meta:""}),sce=Array.from({length:6},v9e);function k9e(e){let t=(e.photos??[]).map(a=>a?.src).filter(a=>!!a),o=e.image||t[0]||"",n=[o,...t].filter(a=>!!a),r=b9e(e.name)||"gallery-item";return{car:e.eyebrow??"",wheel:e.name??"",process:e.process??"",finish:e.meta??"",imageLabel:`${r}.jpg`,detailLabel:`${r}-detail.jpg`,imageSrc:o||void 0,detailSrc:t[0]||o||void 0,photos:n,href:e.href}}function ig({editing:e=!1,previewHover:t,ratio:o,captionPlace:n,tile:r,...a}){let{galleryHref:i="/gallery",submitHref:s="/contact",previewHover:l,display:d,displayPhone:c,styleOwner:p,photosOnly:m=!1,wordsAtRest:h=!1,Template:f,ownerId:g}=nce(x1),b=k9e(a),x=Uu()&&!m,v=!x&&!S9e(b),k=b.photos??(b.imageSrc?[b.imageSrc]:[]),S=g9e(null),T=h9e(F=>{S.current=F},[]),E=y9e(S,e),y=nce(d8),O=y?.report,P=r?.id,B=r?.tag??"",D=r?.name??"";w9e(()=>{if(!O||!P)return;let F={id:P,tag:B,name:D};return O(F),()=>O(F,!0)},[O,P,B,D]);let L=(P?y?.positionOf(P):null)??E,_=e&&(!!t||!!l),[C,I]=s8(!1),[U,Y]=s8(0),V=()=>Y(F=>(F-1+k.length)%k.length),j=()=>Y(F=>(F+1)%k.length),K=k[U]??b.imageSrc??"",te=k.slice(1),J=f?Po("div",{className:`block w-full min-w-0 ${B0}`,children:Po(Ve,{ownerId:g??"GalleryB",ownerType:"GalleryB",Template:f,rows:[{key:P??b.imageSrc??"tile",image:b.imageSrc??"",tag:b.process,number:L?r8(L.index,L.total):"",eyebrow:b.car,name:b.wheel,meta:b.finish,href:b.href??""}],items:[{hoverMedia:te.length?{photos:[{finish:"",items:te.map(F=>({url:F,kind:"image"}))}]}:null}],previewHover:_,fallback:null,children:F=>F})}):Po(a8,{build:b,forceHover:_,alwaysShowOverlay:h,index:L?.index,total:L?.total,ratio:o,captionPlace:n,display:d,displayPhone:c,styleOwner:p,editing:e});return da(Aw,{children:[e?Po(z,{as:"div",ref:T,[l8]:"",className:"block w-full text-left",children:J}):Po(z,{as:"button",ref:T,[l8]:"",type:"button","aria-label":x?`Open ${b.car||"build"} on ${b.wheel||"wheel"}`:rce(b),onClick:()=>{Y(0),I(!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}),Po(tm,{open:C,onClose:()=>I(!1),label:x?`${b.car} on ${b.wheel}`:rce(b),onPrev:k.length>1?V:void 0,onNext:k.length>1?j:void 0,className:"flex items-center justify-center p-6 max-[700px]:p-3",children:da("div",{onClick:F=>F.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:[Po(Wu,{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:q_},children:"\u2715"}),da("div",{className:"relative flex min-h-[690px] items-center justify-center overflow-hidden bg-surface-2 max-view-desktop:min-h-[450px]",children:[K&&Po("img",{...Eo(K,{fallbackWidth:1280}),sizes:x9e,alt:`${(x?b.car:b.wheel||b.car)||"Photo"} \u2014 ${U+1} of ${k.length}`,className:"block h-full max-h-[88vh] w-full object-cover"},K),k.length>1&&da(Aw,{children:[Po("button",{type:"button","aria-label":"Previous photo",onClick:V,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"}),Po("button",{type:"button","aria-label":"Next photo",onClick:j,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"}),da("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:[U+1," / ",k.length]})]})]}),x?da("div",{className:"flex flex-col gap-[30px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[b.process&&Po("span",{className:"font-mono text-[length:var(--size-label,15px)] uppercase tracking-[0.3em] text-accent",children:A(b.process)}),b.wheel&&Po("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&&da("div",{className:"font-heading3 text-[length:var(--size-headingSmall,27px)] leading-[1.4] text-fg",children:["on ",Po("em",{className:"font-serif font-normal italic text-accent tracking-[-0.01em]",children:A(b.car,!0)})]}),da("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&&da(Aw,{children:[Po("dt",{className:"text-fg-dim",children:"Wheel"}),Po("dd",{className:"text-fg",children:A(b.wheel)})]}),b.process&&da(Aw,{children:[Po("dt",{className:"text-fg-dim",children:"Process"}),Po("dd",{className:"text-fg",children:A(b.process)})]}),b.finish&&da(Aw,{children:[Po("dt",{className:"text-fg-dim",children:"Finish"}),Po("dd",{className:"text-fg",children:A(b.finish)})]}),b.car&&da(Aw,{children:[Po("dt",{className:"text-fg-dim",children:"Vehicle"}),Po("dd",{className:"text-fg",children:A(b.car)})]})]}),da("div",{className:"mt-auto flex flex-col gap-3.5 pt-6",children:[da(Ae,{href:b.href||"/wheels",onClick:()=>I(!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:[Po("span",{children:"View product"}),Po("span",{className:"transition-transform group-hover:translate-x-[6px]",children:"\u2192"})]}),da(Ae,{href:i,onClick:()=>I(!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:[Po("span",{children:"See more builds"}),Po("span",{children:"\u2192"})]}),da(Ae,{href:s,onClick:()=>I(!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:[Po("span",{children:"Submit your build"}),Po("span",{children:"\u2192"})]})]})]}):!v&&Po(T9e,{build:b})]})})]})}function lce(e){return[e.process,e.car,e.finish].filter((t,o,n)=>!!t&&t!==e.wheel&&n.indexOf(t)===o)}function S9e(e){return!!e.wheel||lce(e).length>0}function rce(e){let t=e.wheel||e.car;return t?`Open photo of ${t}`:"Open photo"}function T9e({build:e}){let t=e.wheel,o=lce(e);return da("div",{className:"flex flex-col gap-[24px] px-[60px] py-[72px] max-view-desktop:px-9 max-view-desktop:py-[54px]",children:[t&&Po("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=>Po("p",{className:"text-[length:var(--size-body,18px)] leading-[1.5] text-fg",children:A(n)},n))]})}import{createContext as N9e,useContext as O9e,useEffect as y1,useId as A9e,useState as vr,useSyncExternalStore as L9e}from"react";var E9e=14,P9e=3;function C9e(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function _9e(e,t){let o=new Date(`${e}T00:00:00`);return o.setDate(o.getDate()+t),C9e(o)}async function dce(e,t,o={}){let n=o.days??E9e,r=o.read??Rf.getAvailability,a=0,i=0;for(let s=0;s<n;s++){if(o.signal?.aborted)return{outcome:"unreadable"};let l=_9e(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>=P9e)return{outcome:"unreadable"}}}return i===n?{outcome:"noneInWindow",days:n}:{outcome:"unreadable"}}import{dayKeyInZone as cce,formatDateTime as c8,formatTime as uce}from"efficient-shell/format";var R9e={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit"},pce={weekday:"long",day:"numeric",month:"long",year:"numeric"},hce={hour:"numeric",minute:"2-digit"},mce={...hce,timeZoneName:"short"};function p8(e){let t=new Date(e);return Number.isFinite(t.getTime())?t:null}function m8(e,...t){let o=fl(...t);return!o||!p8(e)?"":uce(e,{locale:$4(),timeZone:o})}function u8(e,...t){let o=typeof e=="string"?{start:e}:e,n=fl(...t),r=p8(o.start);if(!n||!r)return"";let a=$4(),i=o.end?p8(o.end):null;if(!i||i.getTime()<=r.getTime())return c8(o.start,{locale:a,timeZone:n,style:R9e,zoneName:"short"});let s=c8(o.start,{locale:a,timeZone:n,style:pce,clock:hce}),d=cce(o.start,n)===cce(o.end,n)?uce(o.end,{locale:a,timeZone:n,clock:mce}):c8(o.end,{locale:a,timeZone:n,style:pce,clock:mce});return`${s} \u2013 ${d}`}function X_(e,t){let o=Date.parse(e);return Number.isFinite(o)&&o<=t}import{instantOnDayKey as I9e,userToday as F9e,userZone as B9e}from"efficient-shell/format";import{jsx as G9e}from"react/jsx-runtime";var gce=N9e(null);function $u(){let e=O9e(gce);if(!e)throw new Error("useBookingForm must be used inside <BookingFormProvider>");return e}var h8=[{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:""}],H9e=[{hour:9,minute:0},{hour:10,minute:30},{hour:13,minute:0}];function fce(e,t){return{timezone:"",slots:t?H9e.flatMap(({hour:n,minute:r})=>I9e(e,{timeZone:t,hour:n,minute:r})??[]).map(n=>({start:n})):[]}}var f8={bookingNumber:"EXAMPLE-0000",service:"Example service",startAt:"",timezone:"",customerTimezone:"",manageToken:"example"};function D9e(e){let t=String(e?.slots[0]?.start??"");return t?{...f8,startAt:t}:f8}function bce(e){return e.bookingNumber===f8.bookingNumber}function M9e(e,t){return e&&t?.length===0}function z9e(e,t){return!!(!e.editing&&!e.submitting&&e.hasService&&e.hasDay!==!1&&e.selectedStart&&!X_(e.selectedStart,t)&&e.name.trim()&&e.email.trim()&&!e.requiresPayment)}function W9e(){return()=>{}}function U9e(){return null}function wce({editing:e=!1,previewConfirmation:t=!1,children:o}){let n=A9e(),r=L9e(W9e,F9e,U9e)??"",[a,i]=vr(),[s,l]=vr(""),[d,c]=vr(""),[p,m]=vr(r),[h,f]=vr(r),[g,b]=vr(!1),[w,x]=vr(null),[v,k]=vr(),[S,T]=vr(""),[E,y]=vr(""),[O,P]=vr(""),[B,D]=vr(""),[L,_]=vr(""),[C,I]=vr(()=>oF()),[U,Y]=vr(null),[V,j]=vr(!1),[K,te]=vr(!1),[J,F]=vr(null),[W,M]=vr("");y1(()=>{M(B9e()??"")},[]),y1(()=>{let me=!1;return Rf.listServices().then(lt=>{if(me)return;let ue=BC(lt);i(ue),l(lt.currency),c(yt=>yt||ue[0]?.id||"")}).catch(()=>{me||i([])}),()=>{me=!0}},[]),y1(()=>{r&&(m(me=>me||r),f(me=>me||r))},[r]),y1(()=>{if(g||!d||!r)return;let me={aborted:!1};return T(""),k(void 0),F(null),x(null),j(!0),dce(d,r,{signal:me}).then(lt=>{if(!me.aborted){if(lt.outcome==="found"){m(lt.date),f(lt.date),k(lt.availability);return}x(lt.outcome==="noneInWindow"?`No times are available in the next ${lt.days} days.`:"We couldn't load available times. Please try again.")}}).finally(()=>{me.aborted||j(!1)}),()=>{me.aborted=!0}},[g,d,r]),y1(()=>{if(!g||!d||!p)return;let me=!1;return T(""),k(void 0),F(null),x(null),j(!0),Rf.getAvailability(d,p).then(lt=>{me||(k(lt),lt.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||j(!1)}),()=>{me=!0}},[p,g,d]);let ee=a?.find(me=>me.id===d),oe=ee?.depositAmountDue!=null,Z=z9e({editing:e,submitting:K,hasService:!!ee,hasDay:!!p,selectedStart:S,name:E,email:O,requiresPayment:oe},Date.now());async function _e(me){if(me.preventDefault(),!(!Z||!ee)){te(!0),F(null);try{let lt=await Rf.create({serviceId:ee.id,start:S,customer:{name:E.trim(),email:O.trim(),phone:B.trim()},notes:L.trim(),idempotencyKey:C,customerTimezone:W});Y(lt),I(oF())}catch(lt){F(lt instanceof On&&lt.status===409?"That time was just booked. Choose another available time.":"Your appointment wasn't submitted. Please check your details and try again."),lt instanceof On&&lt.status===409&&(T(""),Rf.getAvailability(ee.id,p).then(k).catch(()=>{}))}finally{te(!1)}}}let Se=M9e(e,a),Ye=Se?fce(p,W):void 0,Re=t&&!U?D9e(Ye??fce(p,W)):null;return G9e(gce.Provider,{value:{fieldPrefix:n,editing:e,services:Se?h8:a,currency:Se?"AUD":s,serviceId:Se?h8[0].id:d,setServiceId:c,service:Se?h8[0]:ee,requiresPayment:Se?!1:oe,date:p,earliestDate:h,setDate:m,setDateTouched:b,availability:Ye??v,loadingSlots:Se?!1:V,noSlotsMessage:w,selectedStart:Ye?Ye.slots[0]?.start??"":S,setSelectedStart:T,customerTimezone:W,name:E,setName:y,email:O,setEmail:P,phone:B,setPhone:D,notes:L,setNotes:_,confirmation:U??Re,submitting:K,error:J,canSubmit:Se?!1:Z,handleSubmit:_e,sample:!!Se},children:o})}import{jsx as Z_,Fragment as xce,jsxs as yce}from"react/jsx-runtime";var vce=`sf-button group inline-flex items-center justify-center gap-2.5 border ${NQ} font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.2em] transition-colors`,kce={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 ca(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?vce.replace("justify-center","justify-between").replace("gap-2.5","gap-6"):vce} ${kce[t]??kce.primary} ${a??""}`,h=n?yce(xce,{children:[o!==null&&Z_("span",{"aria-hidden":!0,className:"inline-flex",children:o??"\u2192"}),s]}):yce(xce,{children:[s,o!==null&&Z_("span",{"aria-hidden":!0,className:"transition-transform group-hover:translate-x-[3px]",children:o??"\u2192"})]});return l?Z_(Ct,{href:l,className:m,style:i,newTab:d?!0:"auto",...c?{hrefRewrite:c}:{},children:h}):Z_("button",{type:"button",className:m,style:i,...p,children:h})}import{jsx as $9e}from"react/jsx-runtime";var v1=e=>$9e("div",{className:"grid bg-bg",children:e});import{jsx as io,jsxs as wd}from"react/jsx-runtime";var k1="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 V9e(e,t){let o=Number(e);if(o===0)return Nf;try{return Boe(o,t)}catch{return`${t} ${e}`}}var Sce={selected:!0};function Tce(e,t){return({index:o})=>t?{[cP]:pP(e,o)}:{}}var S1="font-[family-name:var(--bk-name-font,var(--font-mono))] text-[length:var(--bk-name-size,12px)]";function g8({number:e,children:t}){return wd("div",{className:"mb-4 flex items-center gap-3",children:[io("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}),io("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 J_({eyebrow:e,heading:t,intro:o}){return wd("div",{className:"mb-10 max-w-[760px]",children:[(e??"").trim()&&io("p",{className:"mb-4 font-mono text-[12px] font-semibold uppercase tracking-[0.24em] text-accent",children:e}),(t??"").trim()&&io("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()&&io("p",{className:"mt-5 max-w-[660px] font-display text-[17px] leading-[1.65] text-fg-dim",children:o})]})}function Q_({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:h,noSlotsMessage:f,selectedStart:g,setSelectedStart:b,customerTimezone:w,editing:x}=$u();if(!n)return null;let v=Date.now(),k=fl(w,m?.timezone??""),S=fl(m?.timezone??""),T=S&&S!==k?S:"",E=(m?.slots??[]).map(y=>({start:y.start,time:m8(y.start,k),businessTime:T?`${m8(y.start,T)} business`:"",passed:!x&&X_(y.start,v)}));return wd(z,{className:"flex flex-col gap-10",style:e,children:[wd("div",{children:[io(g8,{number:"01",children:"Choose a service"}),io("div",{className:"grid gap-3 sm:grid-cols-2",children:io(Ve,{ownerId:t.id,ownerType:t.type,slot:Yf,Template:t.serviceTemplate,rows:n.map(y=>({name:y.name,meta:`${y.durationMinutes} min \xB7 ${V9e(y.price,r)}`,description:y.description??""})),states:n.map(y=>y.id===a?Sce:void 0),actions:x?void 0:n.map(y=>({press:()=>i(y.id),label:y.name})),copyAttrs:Tce(Yf,x),fallback:null,wrapCopy:v1,children:y=>io(Ao,{children:y})})}),s&&io("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."})]}),wd("div",{children:[io(g8,{number:"02",children:"Choose a date and time"}),io(Mr,{separate:!0,htmlFor:`${o}-date`,label:"Date",required:!0,labelFace:S1,children:io("input",{id:`${o}-date`,type:"date",min:d,value:l,onChange:y=>{p(!0),c(y.target.value)},className:k1,required:!0})}),io("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:h?io("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?io(Ve,{ownerId:t.id,ownerType:t.type,slot:jf,Template:t.timeTemplate,rows:E.map(y=>({time:y.time,businessTime:y.businessTime})),states:E.map(y=>y.start===g&&!y.passed?Sce:void 0),actions:x?void 0:E.map(y=>({press:()=>b(y.start),label:y.time,disabled:y.passed})),copyAttrs:Tce(jf,x),fallback:null,wrapCopy:v1,children:y=>io(Ao,{children:y})}):f?io("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:f}):null}),k&&!h&&!!m?.slots.length&&wd("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 eR({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:h,canSubmit:f}=$u();return wd(z,{className:"sf-card border border-line bg-bg p-5 min-[640px]:p-8",style:t,children:[io(g8,{number:"03",children:"Your details"}),wd("div",{className:"flex flex-col gap-4",children:[io(Mr,{separate:!0,htmlFor:`${o}-name`,label:"Name",required:!0,labelFace:S1,children:io("input",{id:`${o}-name`,type:"text",autoComplete:"name",value:r,onChange:g=>a(g.target.value),className:k1,required:!0})}),io(Mr,{separate:!0,htmlFor:`${o}-email`,label:"Email",required:!0,labelFace:S1,children:io("input",{id:`${o}-email`,type:"email",inputMode:"email",autoComplete:"email",value:i,onChange:g=>s(g.target.value),className:k1,required:!0})}),io(Mr,{separate:!0,htmlFor:`${o}-phone`,label:"Phone",labelFace:S1,children:io("input",{id:`${o}-phone`,type:"tel",inputMode:"tel",autoComplete:"tel",value:l,onChange:g=>d(g.target.value),className:k1})}),io(Mr,{separate:!0,htmlFor:`${o}-notes`,label:"What would you like to cover?",labelFace:S1,children:io("textarea",{id:`${o}-notes`,rows:4,value:c,onChange:g=>p(g.target.value),className:`${k1} resize-y`})})]}),h&&io("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:h}),io(ca,{type:n?"button":"submit",disabled:!f,arrow:null,className:"mt-6 w-full disabled:cursor-not-allowed disabled:opacity-50",children:m?"Submitting\u2026":(e??"").trim()||"Book appointment"})]})}function tR({successMessage:e}){let{confirmation:t,customerTimezone:o}=$u();if(!t)return null;let n=fl(t.customerTimezone,o,t.timezone),r=fl(t.timezone),a=r&&r!==n?r:"";return wd("div",{className:"sf-card max-w-[760px] border border-line bg-bg p-6 min-[640px]:p-10",role:"status",children:[wd("p",{className:"font-mono text-[12px] font-semibold uppercase tracking-[0.22em] text-accent",children:["Request received \xB7 ",t.bookingNumber]}),io("h3",{className:"mt-4 font-display text-[28px] font-medium uppercase text-fg",children:t.service}),io("p",{className:"mt-2 font-display text-[17px] text-fg-dim",children:u8(t.startAt,n)}),a&&wd("p",{className:"mt-1 font-mono text-[10px] uppercase tracking-[0.16em] text-fg-dim",children:["Business time: ",u8(t.startAt,a)]}),(e??"").trim()&&io("p",{className:"mt-5 max-w-[620px] font-serif text-[18px] italic leading-[1.6] text-fg-dim",children:e}),io(ca,{href:`/book/${encodeURIComponent(t.manageToken)}`,newTab:!bce(t),variant:"ghost",className:"mt-8",children:"Manage booking"})]})}import{jsx as Lw}from"react/jsx-runtime";var Ece=["head","booking","details","confirm"],Pce={head:"Head",booking:"Booking",details:"Your details",confirm:"Confirmation"};function b8({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}=$u(),m=bse(d);return e==="head"?Lw(z,{className:"min-[960px]:col-span-2",style:m,children:Lw(J_,{eyebrow:r,heading:a,intro:i})}):e==="confirm"?c?Lw(z,{className:"min-[960px]:col-span-2",style:m,children:Lw(tR,{successMessage:l})}):null:c||!p||p.length===0?null:e==="booking"?Lw(Q_,{style:m,owner:{id:t,type:"BookingBox",serviceTemplate:o,timeTemplate:n}}):e==="details"?Lw(eR,{buttonLabel:s,style:m}):null}import{useEffect as Cce,useState as Vu}from"react";import{jsx as Iw,jsxs as Y9e}from"react/jsx-runtime";function Oc(e,t){let[o,n]=Vu(void 0),[r,a]=Vu(0);return Cce(()=>{if(t!==void 0)return;if(!e){n(null);return}let i=!1;return xo.getForm(e).then(s=>{i||n(s)}).catch(()=>{i||n(null)}),()=>{i=!0}},[t,e,r]),Cce(()=>{if(t===void 0)return t5(()=>a(i=>i+1))},[t]),t!==void 0?t:o}var K9e="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 Ku({form:e,formSlug:t,editing:o=!1}){let[n,r]=Vu({}),[a,i]=Vu(""),[s,l]=Vu(!1),[d,c]=Vu(!1),[p,m]=Vu(null),[h,f]=Vu(null);async function g(b){if(b.preventDefault(),!(o||s||!e||!t)){l(!0),f(null);try{let w=e.fields.map(v=>({fieldKey:v.key,value:n[v.key]??""})),x=await xo.submitForm(t,{answers:w,...a?{company:a}:{}});m(x?.account??null),c(!0)}catch{f(K9e)}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:h,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 Yu({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"?Y9e("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 T1}from"react/jsx-runtime";function j9e(e){return e.type==="textarea"||e.type==="select"||e.type==="checkbox"}function _ce({eyebrow:e,title:t}){return T1("div",{className:"flex flex-col gap-4",children:[e&&El(ct,{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 oR({body:e,buttonLabel:t,consent:o,form:n,submission:r,showForm:a,resolving:i,editing:s}){return T1("div",{className:"flex flex-col gap-8",children:[e&&At(e).map((l,d)=>El("p",{className:"max-w-[480px] font-display text-[16px] leading-[1.6] text-fg-dim",children:A(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)}):T1("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",j9e(l)?"col-span-2":""].join(" ");return l.type==="checkbox"?T1("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(Yu,{field:l,value:r.valueOf(l.key),onChange:c=>r.set(l.key,c),className:"mt-0.5 size-4 accent-accent"}),T1("span",{children:[l.label,l.required?El("span",{className:"text-accent",children:" *"}):null]})]},l.key):El(Yu,{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":A(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:A(o)})]})}var nR=["field","tick","thanks"],Rce={field:"Form rows",tick:"Tick label",thanks:"Thank-you message"},rR={field:"styleField",tick:"styleTick",thanks:"styleThanks"},q9e={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 X9e(e){return typeof e=="string"&&S0.includes(e)?e:null}function Nce(e){let t={};for(let o of nR){let n=X9e(e[rR[o]]);n&&Object.assign(t,Ru(n,q9e[o]))}return t}import{jsx as aR}from"react/jsx-runtime";var Oce=["head","form"],Ace={head:"Head",form:"Form"};function w8({region:e,eyebrow:t,title:o,body:n,buttonText:r,consent:a,formSlug:i,form:s,editing:l=!1,...d}){let c=Oc(i,s),p=Ku({form:c,formSlug:i,editing:l}),m=Nce(d);return e==="head"?aR(z,{as:"div",style:m,children:aR(Vt,{look:"statement",num:t,title:o})}):aR(z,{as:"div",style:m,children:aR(oR,{body:n??"",buttonLabel:r??"",consent:a??"",form:c,submission:p,showForm:!!c||l,resolving:c===void 0,editing:l})})}var Z9e={AppointmentBooking:{slot:"boxes",childType:"BookingBox",addLabel:"Add box",fixed:!0,seeds:()=>Ece.map(e=>({region:e,name:Pce[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:()=>Oce.map(e=>({region:e,name:Ace[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:Zde},()=>({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:()=>sce.map(e=>({...e})),legacy:e=>Array.isArray(e.cards)?e.cards.map(t=>({...t})):[]}};pJ(Z9e);import{jsx as Lce}from"react/jsx-runtime";var J9e={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 Lce(z,{role:"img","aria-label":`${t} out of ${om} stars`,className:`flex gap-1 ${J9e.body} leading-none`,children:Array.from({length:om}).map((o,n)=>Lce("span",{"aria-hidden":!0,className:n<t?"text-accent":"text-fg-dim/30",children:"\u2605"},n))})}var x8="mx-auto max-w-[var(--sf-site-width,1600px)]",Q9e=[/^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 Ice(e){let t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)}function y8(e){return e.split(/\s+/).filter(t=>t&&!Q9e.some(o=>o.test(Ice(t)))).join(" ")}var e7e=new Set(["max-view-desktop","max-view-wide"]);function t7e(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=Ice(r);!i&&/^border-[by]$/.test(s)&&(n=!0);let l=/^p[by]-(.+)$/.exec(s),d=l?t7e(l[1]):void 0;d!==void 0&&(i?e7e.has(i)&&(o=d):t=d)}return{bottom:t,bottomPhone:o??t,line:n}}import{Fragment as o7e,jsx as n7e}from"react/jsx-runtime";function v8({inBox:e,atTop:t,anyBox:o=!1}){let n=tu(),r=MP();return n7e(o7e,{children:n||o&&r?e:t})}import{jsx as E1}from"react/jsx-runtime";function wt({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=y8(e),p=o===null?"":y8(o),m=E1(z,{as:"section",ref:s,...i,className:c||void 0,style:n,id:a,children:p?E1("div",{className:p,children:d}):d}),h=r?{...r,...n}:n,f=E1(z,{as:"section",ref:s,...i,className:t?`${x8} ${e}`:e,style:h,id:a,children:o===null?d:E1("div",{className:o,children:d})});return E1(v8,{inBox:m,atTop:f,anyBox:l})}import{Fragment as a7e,jsx as nm,jsxs as iR}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)]"},r7e="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))]",k8="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 S8({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:iR(wt,{className:"relative z-[2] border-t border-line bg-surface",column:l?k8:r7e,children:[l?null:iR(a7e,{children:[(t??"").trim()&&nm(ct,{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=>iR("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:At(c.quote).map((p,m)=>nm("p",{className:m?"mt-3":"",children:p},m))}),iR("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 Fce=Dw(k8),T8={top:84,bottom:Fce.bottom,topPhone:84,bottomPhone:Fce.bottomPhone},Bce=T8,[i7e,s7e]=R2("Testimonials"),l7e={type:Xs,props:{...De,name:"Card",gap:20,sectionPaddingTop:36,sectionPaddingBottom:36,sectionPaddingLeft:36,sectionPaddingRight:36,sectionPaddingTopPhone:28,sectionPaddingBottomPhone:28,sectionPaddingLeftPhone:28,sectionPaddingRightPhone:28,sectionAccent:0},slots:{[Zs]:[{type:"Text",props:{...Ue,text:"\u201C",_partStyles:{text:{textStyle:"heading-2",color:"accent",lineHeight:1}}}},Ne("quote",Tt,{size:16,lineHeight:1.6}),{type:Xs,props:{...De,name:"Name",gap:4,sectionPaddingTop:20,sectionBorder:{top:1}},slots:{[Zs]:[Ne("name",Ue,{...Jl,weight:500,letterSpacing:.04}),Ne("role",Tt,{textStyle:"body-5"})]}}]}},d7e={name:"Testimonials",boxProps:e=>({...Qd,direction:"column",gap:44,sectionBorder:{top:1},...Gm(e,Bce)}),box:[...Pp,...gf(Bce)],parts:[{kind:"group",name:"Heading",props:{...De,gap:16},parts:[{...i7e,props:Ue},{...s7e,props:Ue,style:{textStyle:"heading-2",lineHeight:1,letterSpacing:-.02}}]},{kind:"core",as:"Reviews",keep:["items","columns"],slots:{template:[l7e]}}],site:Qj("title"),drop:{...ec,...tc,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"}};_n({Testimonials:d7e});var Ac={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 lR,tabletKey as E8}from"efficient-easel/draw";var c7e={textStyle:"body-5",...uo("label",14),letterSpacing:.05,lineHeight:1.5},p7e={type:Xs,props:{...De,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[lR("share")]:"content",[lR("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[Zs]:[Ne("label",Tt,{...Ca(14),letterSpacing:.05,lineHeight:1.5}),Ne("value",{...Ue,align:"right"},{...c7e,align:"right"})]}},Hce={[wf]:aP},m7e=["dynamic","source","finish","size","wheel"],P1=sl("SpecTable",{slots:{template:[p7e]},coreProps:{widthFit:"fill"},coreBox:{name:"Sheet",props:{...De,direction:"row",share:"content",gap:48,[E8("gap")]:80,[lR("gap")]:80,...Hce}},partsAfter:[{kind:"block",type:"EuTyreLabelBlock",keepEmpty:!0,props:{_hidden:!0}}]}),u7e=P1.parts.map(e=>e.kind==="group"&&e.name==="Sheet"?{...e,parts:[...e.parts,{kind:"block",type:"WheelDiagram",keepEmpty:!0,props:t=>Object.fromEntries(m7e.filter(o=>o in t).map(o=>[o,t[o]]))}]}:e),sR=Dw(Ac.ownBox),h7e={...P1,parts:u7e,boxProps:(e,t)=>{let o=typeof P1.boxProps=="function"?P1.boxProps(e,t):P1.boxProps;return{...o,sectionPaddingBottom:sR.bottom,sectionPaddingBottomPhone:sR.bottomPhone,...Hce,[E8("sectionPaddingTop")]:o?.sectionPaddingTopPhone,[E8("sectionPaddingBottom")]:sR.bottomPhone,[lR("gap")]:36,...sR.line?{sectionBorder:QE({bottom:1})}:{}}}};_n({SpecTable:h7e});_n({ProductGrid:sl("ProductGrid",{slots:{[Pt]:[Zse()]},pressHeading:!0})});_n({Events:sl("Events",{slots:{[Pt]:X6()},coreProps:{sectionAccent:PE},roomBelow:{bottom:120,bottomPhone:70},pressHeading:!0})});_n({Collections:sl("Collections",{slots:{[Pt]:[Z6()]},roomBelow:sie,pressHeading:!0})});_n({GalleryB:sl("GalleryB",{slots:{[Pt]:[J6()]},roomBelow:{bottom:ui.bottom,bottomPhone:W5},pressHeading:!0})});_n({[la]:{name:"Product hero",box:[...ZY],boxProps:{direction:"column",gap:0,gapPhone:0,...ft(0,0)},parts:[{kind:"core",keep:"rest",headless:!0,props:{[lw]:dw},slots:e=>({[Pt]:T6(e)})}]}});var P8=Dw(Ac.ownBox);_n({FitmentTable:sl("FitmentTable",{slots:{[h_]:[Bse()],[Nu]:[Hse()]},roomBelow:{bottom:P8.bottom,bottomPhone:P8.bottomPhone},boxProps:P8.line?{sectionBorder:QE({bottom:1})}:{},pressHeading:!0})});var f7e=e=>({type:Xs,props:{...De,name:"Row",mirrorCards:e?"odd":"even",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[Zs]:[{type:Xs,props:{...De,name:"Words",direction:"column",gap:16},slots:{[Zs]:[Ne("eyebrow",Ue,{...Ca(13),color:"accent"}),Ne("title",Ue,{textStyle:"heading-2",...uo("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),Ne("copy",Tt,{textStyle:"body-1",...uo("body",15),lineHeight:1.6})]}},{type:Xs,props:{...De,name:"Picture",direction:"column",gap:12},slots:{[Zs]:[{type:"ImageBlock",props:{[Vs]:"image",aspect:"1/1",fit:"contain"}},Ne("tag",{...Tt,align:"right"},{...Ca(11),align:"right"})]}}]}}),g7e={name:"Feature Rows",boxProps:{...Qd,...tq,direction:"column",gap:0},box:Pp,parts:[{kind:"core",keep:"rest",slots:e=>({template:[f7e(e.startLeft===!0)]})}]};_n({DetailRows:g7e});import{phoneKey as _8}from"efficient-easel/draw";var cR=e=>[...Pp.filter(t=>t!=="sectionAccent"),["sectionAccent","sectionAccent",(t,o,n)=>JE(t,n)],...gf(e)],R8=(e,t,o)=>(n,r)=>({...Qd,sectionAccent:JE(n.sectionAccent??0,r),direction:"column",gap:t,gapPhone:o,sectionBorder:{top:1},...Gm(n,e)}),N8=(e,t,o)=>({kind:"text",key:e,role:"heading",props:Ue,style:{textStyle:"heading-2",...uo("headingMedium",44,32),weight:500,case:"upper",lineHeight:t,letterSpacing:o}}),O8=(e,t,o={})=>({kind:"group",name:"Heading",props:{...De,gap:e,gapPhone:e,...o},parts:t}),A8=(e={})=>({kind:"core",keep:"rest",props:XE,...e}),dR=T8,[b7e]=R2("ReviewForm"),w7e=()=>({name:"Review Form",boxProps:R8(dR,48,32),box:cR(dR),parts:[O8(16,[{...b7e,props:Ue},N8("title",1,-.02)]),A8()],pressKeepsEmpty:["eyebrow","title"],drop:{...ec,...tc,headPlacement:"the head is the Text blocks above the form, which is always own-box here"}}),[x7e]=R2("Reviews"),C8=e=>({...Ca(12),letterSpacing:e}),y7e={type:Xs,props:{...De,name:"Card",gap:16,...ft(40,40,32,32),sectionAccent:0},slots:{[Zs]:[{type:"RatingBlock",props:{[Vs]:"rating"}},Ne("title",Ue,{textStyle:"heading-1",...uo("body",19),weight:500,case:"upper",lineHeight:1.2,letterSpacing:-.01}),Ne("quote",Tt,{textStyle:"body-1",...uo("body",15),lineHeight:1.65}),{type:Xs,props:{...De,name:"Byline",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[_8("share")]:"content",gap:16,sectionPaddingTop:20,sectionPaddingTopPhone:20,sectionBorder:{top:1}},slots:{[Zs]:[Ne("name",Ue,C8(.22)),Ne("dateLabel",{...Tt,align:"right"},{...C8(.18),align:"right"}),Ne("role",{...Tt,align:"right"},{...C8(.18),align:"right"})]}}]}},v7e=()=>({name:"Reviews",boxProps:R8(dR,48,32),box:cR(dR),parts:[O8(16,[{...x7e,props:Ue},N8("title",1,-.02)]),A8({slots:{template:[y7e]}})],pressKeepsEmpty:["eyebrow","title"],drop:{...ec,...tc,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"}}),Dce={top:88,bottom:88,topTablet:88,bottomTablet:88,topPhone:64,bottomPhone:64},k7e=()=>({name:"Booking Form",boxProps:R8(Dce,40,40),box:cR(Dce),parts:[O8(16,[ZE("eyebrow",{...uo("label",12),weight:600,letterSpacing:.24,color:"accent"}),N8("heading",.98,-.025),{kind:"text",key:"intro",props:{...Tt,maxWidth:660},style:{textStyle:"heading-1",...uo("body",17),weight:400,case:"none",lineHeight:1.65,color:"muted"}}],{maxWidth:760}),A8()],pressKeepsEmpty:["eyebrow","heading","intro"],drop:{...ec,...tc}}),Mce={top:88,bottom:88,topPhone:64,bottomPhone:64},S7e=()=>({name:"Ready-to-Order Banner",boxProps:e=>({...Qd,direction:"column",align:"center",gap:20,gapPhone:20,...Gm(e,Mce)}),box:[...Pp,...gf(Mce)],parts:[{...ZE("eyebrow"),props:{...Ue,align:"center"}},{kind:"text",key:"title",role:"heading",props:{...Ue,align:"center",maxWidth:720},style:{textStyle:"heading-1",...uo("headingMedium",44,30),weight:500,case:"none",lineHeight:1.05,letterSpacing:-.03,align:"center"}},{kind:"text",key:"body",props:{...Ue,align:"center",maxWidth:560},style:{textStyle:"body-1",...uo("body",16),lineHeight:1.6,align:"center"}},{kind:"group",name:"Buttons",props:{...De,direction:"row",align:"center",justify:"center",share:"content",phoneRow:2,[_8("share")]:"content",gap:24,gapPhone:24,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>({...Jj,align:"center",href:typeof e.ctaHref=="string"&&e.ctaHref?e.ctaHref:"/checkout"})},{kind:"button",key:"secondaryText",href:"secondaryHref",variant:"ghost",props:{...F2,align:"center",icon:"none"},style:{...Bm(13),color:"muted"}}]}],pressKeepsEmpty:["eyebrow","title","body"],drop:{...ec,...tc}}),zce={top:60,bottom:0,topPhone:60,bottomPhone:0},T7e=()=>({name:"Contact Form",boxProps:(e,t)=>({...Qd,sectionAccent:JE(e.sectionAccent??0,t),direction:"column",gap:0,gapPhone:0,...Gm(e,zce)}),box:cR(zce),parts:[{kind:"group",name:"Header",props:{...De,direction:"row",align:"center",share:"content",phoneRow:2,[_8("share")]:"content",gap:24,gapPhone:24,sectionPaddingBottom:24,sectionPaddingBottomPhone:24,sectionBorder:{bottom:1}},parts:[ZE("routingNumber"),{kind:"text",key:"routingTagline",props:Tt,style:{textStyle:"heading-1",...uo("body",14),weight:400,case:"upper",letterSpacing:.04,color:"muted"}}]},{kind:"core",keep:"rest",derive:{reads:["sectionAccent"],props:(e,t)=>({sectionAccent:eq(e.sectionAccent??0,t)})}}],drop:{...ec,...tc}});_n({ContactRouting:T7e(),ReviewForm:w7e(),AppointmentBooking:k7e(),Reviews:v7e(),CheckoutCTA:S7e()});var Wce={top:40,bottom:40,topPhone:40,bottomPhone:40},Uce={textStyle:"heading-1",...Eq("headingMedium",28,4,40),lineHeight:1.05,letterSpacing:-.02},L8=["heading","intro"],Gce=[Pt,Ia,Fa,Ba];function E7e(e,t){let o=(t?A0:GK)(Lo,e);return Object.fromEntries(Gce.map(n=>[n,o[n]]))}var P7e=()=>({name:"List",boxProps:e=>({...Qd,direction:"column",gap:24,gapPhone:24,...Gm(e,Wce)}),box:[...Pp,...gf(Wce)],parts:[{kind:"group",name:"Heading",props:{...De,gap:8,gapPhone:8},parts:[{kind:"text",key:"heading",role:"heading",props:{...Ue,tag:"h1"},style:Uce,when:e=>!q3(e)},{kind:"text",key:"heading",role:"heading",props:{...Ue,tag:"h2"},style:Uce,when:q3},{kind:"text",key:"intro",role:"body",props:Tt,style:{textStyle:"body-1",...uo("body",15)}}]},{kind:"core",keep:"rest",props:XE,derive:{reads:[...Gce],props:(e,t)=>E7e(e,t.press===!0)}}],pressKeepsEmpty:L8,drop:{...ec,...tc,[yP]:"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"}});_n({AlloyWheelsListing:P7e()});var $ce={price:{label:"Price",follows:"Heading 2",builtIn:"36px",writable:!0,sized:!0}};import{createContext as C7e,useContext as _7e}from"react";import{Fragment as R7e,jsx as zw}from"react/jsx-runtime";var Wo={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=C7e("catalog");function Ss(){return _7e(Ww)==="catalog"}function ju({children:e}){let t=Ss();return zw(R7e,{children:e??(t?zw(z,{"aria-hidden":!0}):null)})}function Uw({children:e}){return zw(ju,{children:e?zw(z,{children:e}):null})}function pR({children:e}){return zw(ju,{children:e?zw(z,{className:"[.sf-card-rows>*>&]:self-end",children:e}):null})}var Vce={eyebrow:{label:"Eyebrow",follows:"Label",builtIn:b3(Wo.label),writable:!0,sized:!0}},Kce={name:{label:"Name",follows:"Heading 3",builtIn:b3(Wo.headingSmall2),writable:!0,sized:!0}};Ote({ProductPrice:$ce,ProductEyebrow:Vce,ProductName:Kce});function Gw(e,t){let o={};for(let n of Object.keys(e))o[n]={...e[n],...t[n]};return o}import{jsx as N7e}from"react/jsx-runtime";import{OpacityIcon as O7e}from"efficient-easel/icons";import{group as mR}from"efficient-easel/screen/lib/document/box-fields";var Yce={fields:{_gContent:mR("Content"),eyebrow:$("Eyebrow",Qm.eyebrow),title:q("Heading",Qm.title),body:q("Body",Qm.body),_gBackground:mR("Background image"),imageSrc:nt("Image","image/*"),overlay:de("Overlay",N7e(O7e,{}),0,100,5,60,"%"),_gButton:mR("Button"),...vl,_gLayout:mR("Layout")}};import{jsx as C1}from"react/jsx-runtime";import{GroundIcon as qce,ListIcon as A7e}from"efficient-easel/icons";function Xce(e){let t=e?.data?.root,o=AP(t?.props)??"";return o&&u4(o,"text").length?o:""}var I8="outsideCardTemplate",L7e={not:{context:I8,is:!0}},Da={[I8]:(e,t)=>{let o=kp(t.appState,e.props?.id);if(o!==void 0)return o===null&&!Xce(t.appState)},[QV]:(e,t)=>{let o=Ql(t.appState,e.props?.id);return o===void 0?void 0:!o.inCopy},[tK]:(e,t)=>Ql(t.appState,e.props?.id)?.inCopy};function $r(e,t,o){let n=t==="colour"||o?.content===!0,r=t==="link"?C1(ra,{noun:"link"}):t==="colour"?C1(qce,{}):C1(A7e,{}),a={...fe(e,r,[n?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:t,...n?{cardRowContent:!0}:null};return dt(a,L7e)}function Lc(){return $r("Link from","link")}var I7e={any:[{field:$o,set:!1},{context:I8,is:!0,default:!0}]};function qu(e){return dt(e,I7e)}function _1(e){return e.kind==="link"?xr(Q(e.label)):e.kind==="colour"?F7e(e.label):e.multiline?Je(e.label):ye(e.label)}function F7e(e){return{type:"custom",render:({value:t,onChange:o})=>C1(mee,{label:e,icon:C1(qce,{}),value:t,shown:typeof t=="string"?t:"",onChange:o})}}function B7e(e){return!!(e&&typeof e=="object"&&"cardRowKind"in e)}var jce=new WeakMap;function Ma(e,t,o){let n=Object.keys(e).filter(S=>B7e(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?w3(o.appState,r.id)??"":"",l=n.map(S=>typeof r[S]=="string"?r[S].trim():""),d=mt(a?.props),c=i===Fr?kp(o.appState,a?.props?.id):null,p=c?w3(o.appState,a?.props?.id)??void 0:void 0,m=c?mE(a?.props,c.type,p):"",h=c?mt(c.props):"",f=c?`${String(c.type??"")}\0${h}\0${p??""}`:"",g=i===Fr&&!c?JSON.stringify(a?.props?.[zK]??null):"",b=a?"":Xce(o.appState),w=[i,s,d,m,f,g,Lm(),b,hZ(),...l].join("\0"),x=jce.get(e);x||jce.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===Fr?pf(o.appState,a,E.cardRowKind):i?VK(a,E.cardRowKind,s||void 0):u4(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(L=>L.key===l[T])?l[T]:"",B=E.cardRowKind==="list",D=(L,_)=>B&&_===0&&L.key!==l[T]?"":L.key;k[S]={...E,options:[...B?[]:E.options,...y.map((L,_)=>({label:L.label,value:D(L,_)})),...P?[{label:P,value:P}]:[]]}}),x.set(w,k),k}import{group as Jce}from"efficient-easel/screen/lib/document/box-fields";var uR={meta:"Trailing note"},Zce={label:"Breadcrumb",defaultProps:{items:[],meta:""}};var Qce={fields:{_gContent:Jce("Content"),items:{type:"array",label:"Crumbs",arrayFields:{label:Q("Label"),href:xr(Q("Link"))},getItemSummary:e=>e?.label||"Crumb"},meta:$("Trailing note",uR.meta),_gText:Jce("Text"),rowField:$r("Shows","text")},resolveFields:(e,t)=>Ma(t.fields,e,t),showWhenFacts:Da};import{jsx as gi,jsxs as U7e}from"react/jsx-runtime";import{ButtonIcon as G7e,ButtonIconIcon as $7e,IconAfterTextIcon as V7e,IconBeforeTextIcon as K7e}from"efficient-easel/icons";import{SettingsField as Y7e}from"efficient-easel/panel";import{useSelectedFields as ipe}from"efficient-easel/easel";import{buttonFieldSet as j7e}from"efficient-easel/screen/lib/document/button-fields";import{VIEW_KEY_ACCESS as q7e}from"efficient-easel/screen/lib/document/box-fields";import{IconPicker as X7e,Segmented as Z7e}from"efficient-shell/ui";function hR(e){return typeof e=="boolean"?e:!0}var F8=["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 B8(e){return typeof e=="string"&&F8.includes(e)?e:void 0}function epe(e,t){return B8(e)??(hR(t)?"arrow-right":"none")}function R1(e){return e==="before"?"before":e==="end"?"end":"after"}function tpe(e,t){return R1(e)==="end"&&sg(t)==="fill"}function sg(e){return e==="fill"||e==="fixed"?"fill":"fit"}function ope(e,t,o,{atSectionLine:n=!1}={}){let r=sg(e);if(fr(o)){let i=sg(o),s=fr(t)?sg(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=sg(t);i!==r&&a.push(i==="fill"?"max-view-wide:w-full":"max-view-wide:w-auto")}return a.join(" ")}import{keptByRow as bR}from"efficient-easel/screen/lib/document/style-fields";import{group as npe}from"efficient-easel/screen/lib/document/box-fields";import{DESIGN_GROUP_KEY as J7e}from"efficient-easel/screen/lib/document/field-buckets";import{jsx as H8}from"react/jsx-runtime";import{LockIcon as H7e}from"efficient-easel/icons";import{FieldText as D7e}from"efficient-easel/fields";import{SettingsField as M7e}from"efficient-easel/panel";import{keptByRow as z7e}from"efficient-easel/screen/lib/document/style-fields";function W7e(){return{type:"custom",render:({id:e,name:t})=>{let o=`${e??t??vQ}-words`;return H8(M7e,{label:u("Words"),icon:H8(H7e,{}),htmlFor:o,children:H8(D7e,{id:o,value:u("Set by country"),onChange:()=>{},readOnly:!0})})}}}function fR(e){return z7e(e)}function gR(e,t,o,n=[]){return sC(t)===null?e:Object.fromEntries(Object.entries(e).filter(([r])=>!n.includes(r)).map(([r,a])=>[r,r===o?W7e():a]))}var D8=e=>QP(e==="none"?"no-symbol":e),Q7e=F8.map(e=>({value:e,icon:e==="none"?qJ(D8(e),gi(w4,{value:e})):D8(e)})),spe=Q("Button");function eze({value:e,onChange:t}){let o=ipe(),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?gi(RQ,{label:"Button",icon:gi(G7e,{size:18}),text:r,onTextChange:t,link:typeof n=="string"?n:"",onLinkChange:a=>o.onChange("href",a)}):spe.render({value:r,field:{label:"Button"},onChange:a=>t(ZQ(a))})}function tze({value:e,onChange:t}){let o=ipe(),n=epe(e,o.values.arrow),r=R1(o.values.iconPosition),a=sg(o.values.widthFit)==="fill",i=D8("icon-at-end");return gi(Y7e,{label:u("Icon"),icon:gi($7e,{size:18}),value:n==="none"?void 0:gi(w4,{value:n}),children:U7e("div",{className:"flex items-center gap-2",children:[gi(X7e,{label:u("Icon"),value:n,options:Q7e,onChange:t}),n!=="none"&&gi(Z7e,{size:"sm",block:!0,label:u("Icon position"),value:r==="end"&&!a?"after":r,onChange:s=>o.onChange("iconPosition",s),options:[{value:"before",icon:gi(K7e,{size:16}),label:gi("span",{className:"sr-only",children:u("Icon before text")}),title:u("Icon before text")},{value:"after",icon:gi(V7e,{size:16}),label:gi("span",{className:"sr-only",children:u("Icon after text")}),title:u("Icon after text")},...a?[{value:"end",icon:i,label:gi("span",{className:"sr-only",children:u("Icon at the far end")}),title:u("Icon at the far end")}]:[]]})]})})}var rpe=()=>k3(Gn().theme),ape=j7e({lengthUnits:qP,follows:{useFill:()=>rpe().fill,useText:()=>rpe().ink,useBorder:()=>{let[e]=cc("variant"),[t]=cc("buttonColor"),{theme:o}=Gn(),n=_4({variant:e,buttonColor:t}).border.width,r=fr(t)??(e==="ghost"?oY(o).text:k3(o).fill);return{width:n,color:r}},useCorners:()=>lY(Gn().cornerRadiusPx),useFillOpacity:()=>_4({variant:cc("variant")[0]}).fillOpacity},usePresets:rQ,resetTo:e=>JQ(e,u("Styles")),padding:{fallback:OQ,tablet:!0},phone:q7e,say:lb});function oze(e,t){let o=Object.keys(e);return Object.fromEntries(o.slice(0,o.indexOf(t)+1).map(n=>[n,e[n]]))}var lpe={fields:{label:eee(spe,e=>gi(eze,{value:e.value,onChange:e.onChange})),labelText:aee("label"),href:qu({...Xe("Button link"),...bR("label")}),consentWords:fR("label"),_gButton:npe("Button"),rowField:$r("Shows","text"),[$o]:Lc(),...oze(ape,J7e.Design),_gStyle:npe("Style"),variant:bR("buttonColor"),icon:{type:"custom",render:e=>gi(tze,{value:e.value,onChange:e.onChange})},iconPosition:bR("icon"),arrow:bR("icon"),...ape},resolveFields:(e,t)=>gR(Ma(t.fields,e,t),e.props,"label",["href"]),showWhenFacts:Da};import{jsx as vR}from"react/jsx-runtime";import{AccentIcon as nze,ColumnsIcon as rze,StylesIcon as mpe}from"efficient-easel/icons";import{group as M8}from"efficient-easel/screen/lib/document/box-fields";import{newId as cpe}from"efficient-easel/data";function wR(e,{rows:t="items",label:o="title"}={}){let n=mt(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:jK(nn(r),a)}))}var dpe=new WeakMap;function xR(e,t){let o=dpe.get(e);o||dpe.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 ppe(e,t="card"){return Object.defineProperty({...e},"key",{get:()=>cpe(t),enumerable:!0})}function yR(e,t="items"){if(!Array.isArray(e[t])||mt(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 h=!m&&a&&n===String(p+1);if(m||h){let f=cpe("card");return i.add(f),l=!0,h&&(s=f),{...c,key:f}}return c});return l?{...e,[t]:d,highlightedCard:s}:e}import{isNodeList as aze}from"efficient-easel/data";var ize=e=>aze(e.template)&&e.template.length>0;function sze(e,t){let o=ize(t)&&t.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([n,r])=>n==="highlightedCard"?o?[[n,xR(r,wR(t))]]:[]:n==="highlightBadge"?o?[[n,r]]:[]:n==="items"&&o&&r?[[n,cze(r)]]:[[n,r]]))}var lze=Object.fromEntries(E2("Cards").filter(e=>!e.everySource).map(e=>[e.key,_1(e)])),dze=Object.fromEntries(E2("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,_1(e)])),upe=new WeakMap;function cze(e){let t=upe.get(e);return t||upe.set(e,t={...e,arrayFields:lze}),t}var hpe={fields:{_gSource:M8("Source"),dataSource:qt("Card content","Manual"),[rg]:Rw(),_gContent:M8("Content"),eyebrow:$("Eyebrow",V0.eyebrow),eyebrowLook:fe("Eyebrow style",vR(mpe,{}),[...ol],Cp("Cards")),title:q("Heading",V0.title),items:{type:"array",label:"Cards",arrayFields:dze,defaultItemProps:ppe({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...oq,highlightedCard:fe("Highlighted card",vR(nze,{}),[{label:"None",value:""}],""),highlightBadge:$("Highlight badge","Most popular"),_gStyle:M8("Style"),cardStyle:wo("Card style",vR(mpe,{}),[{label:"Cards",value:"cards",picture:R4.cards},{label:"Label only",value:"label-only",picture:R4["label-only"]}],"cards",{columns:2,cell:wr}),columns:de("Columns",vR(rze,{}),2,4,1,3)},resolveData:(e,t)=>{let o=t?.lastData?.props,n=_te(e.props,o),r=dE(n),a=r===e.props?e:{...e,props:r},i=a.props,s=yR(i);return s===i?a:{...a,props:s}},resolveFields:(e,{fields:t})=>{let o=rt(Xt("Cards",t,e.props,{hides:["items"]}),e.props.headPlacement,st.Cards.headRows),n=e.props,r=sze(o,n);if(n.cardStyle!=="label-only")return r;let a=o.items,i=o.eyebrowLook;return{...r,...a?{items:{...a,arrayFields:{title:ye("Feature label"),href:xr(Q("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:Cp("KeyFeatures")}}:{}}}};import{jsx as pze}from"react/jsx-runtime";import{StickyIcon as mze}from"efficient-easel/icons";import{group as fpe}from"efficient-easel/screen/lib/document/box-fields";var gpe={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:Yo(xr(Q("Active tab","All"))),_gLinks:fpe("Links"),links:{type:"array",label:"Right links",arrayFields:{label:Q("Label"),href:xr(Q("Link"))},getItemSummary:e=>e?.label||"Link"},_gStyle:fpe("Style"),sticky:ae("Stick to top",!0,pze(mze,{}))}};import{jsx as uze}from"react/jsx-runtime";import{StylesIcon as hze}from"efficient-easel/icons";import{group as bpe}from"efficient-easel/screen/lib/document/box-fields";var fze=[...HX],wpe={fields:_i({_gContent:bpe("Content"),eyebrow:$("Chip label",nb.eyebrow),title:q("Heading",nb.title),body:q("Body",""),items:{type:"array",label:"Data points",arrayFields:{label:ye("Label"),value:Q("Value")},defaultItemProps:{label:"",value:""},getItemSummary:e=>[e?.label,e?.value].filter(Boolean).join(" \xB7 ")||"Point"},caption:$("Caption","Illustrative example"),_gStyle:bpe("Style"),chartStyle:wo("Chart style",uze(hze,{}),[{label:"Bars",hint:"Bars (comparison / funnel)",value:"bars",picture:uC.bars},{label:"Line",hint:"Line (trend)",value:"line",picture:uC.line},{label:"Donut",hint:"Donut (split of a whole)",value:"donut",picture:uC.donut}],"bars",{columns:3,cell:wr}),valueSuffix:Yo($("Value suffix","%"))},fze,Ri)};import{jsx as Aze}from"react/jsx-runtime";import{jsx as at,Fragment as W8,jsxs as xd}from"react/jsx-runtime";import{useId as gze,useState as bze}from"react";import{InspectorUpLevel as N1}from"efficient-easel/chrome";import{useEasel as wze}from"efficient-easel/easel";import{ListField as kpe}from"efficient-easel/fields";import{SettingsField as Spe}from"efficient-easel/panel";import{ClockIcon as xpe,ContrastIcon as xze,GlobeIcon as yze,LinkIcon as vze,LocationIcon as kze,PhoneIcon as Sze,SquareIcon as Tze,TypeIcon as U8}from"efficient-easel/icons";import{useSectionOps as Eze}from"efficient-easel/screen/lib/document/use-section-ops";import{ROOT_ZONE as Pze}from"efficient-easel/draw";var G8=(e,t)=>t||e?Wte(e,t):u("Ungrouped");function Cze(e){let t=[];return e.forEach((o,n)=>{let r=iu(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 z8({children:e}){return at("div",{style:{fontSize:11,fontWeight:600,letterSpacing:"0.06em",textTransform:"uppercase",color:"var(--ink-faint)",margin:"14px 0 6px"},children:e})}var Tpe={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"},_ze={padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent)",cursor:"pointer"},Epe={..._ze,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=gze();return at(Spe,{label:e,icon:r??at(U8,{}),htmlFor:l,children:n?at("textarea",{id:l,value:t,placeholder:o,onChange:d=>a(d.target.value)}):at("input",{id:l,type:"text",value:t,placeholder:o,onChange:d=>a(d.target.value),onBlur:i,onKeyDown:s})})}var Rze=[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],Nze=[{label:"Tall (3:4)",value:"tall"},{label:"Square",value:"square"},{label:"Wide (2:1)",value:"wide"}];function ype({label:e,icon:t,options:o,value:n,onChange:r}){return at(Spe,{label:e,icon:t,children:at("div",{role:"group","aria-label":e,style:{display:"flex",gap:4,flex:1},children:o.map(a=>{let i=n===a.value;return at("button",{type:"button","aria-pressed":i,onClick:()=>r(a.value),style:{flex:1,padding:"6px 8px",fontSize:12,borderRadius:6,cursor:"pointer",border:`1px solid ${i?"var(--sf-accent)":"var(--line-strong)"}`,background:i?"var(--sf-accent)":"transparent",color:i?"var(--sf-on-accent)":"inherit",fontWeight:i?500:400},children:u(a.label)},a.value)})})})}function vpe({props:e,setSection:t,headOnly:o}){let n=i=>String(e[i]??""),r=e.mapTheme||kn.mapTheme,a=kn;return xd(W8,{children:[!o&&at(z8,{children:u("Section")}),at(rm,{label:u("Section number"),value:n("sectionNumber"),placeholder:a.sectionNumber,onChange:i=>t({sectionNumber:i})}),at(rm,{label:u("Heading"),textarea:!0,value:n("heading"),placeholder:a.heading,onChange:i=>t({heading:i})}),at(rm,{label:u("Body"),textarea:!0,value:n("tagline"),placeholder:a.tagline,onChange:i=>t({tagline:i})}),o?null:xd(W8,{children:[at(z8,{children:u("City strip")}),at(rm,{label:u("Eyebrow"),value:n("galleryKicker"),placeholder:a.galleryKicker,onChange:i=>t({galleryKicker:i})}),at(rm,{label:u("Hint"),value:n("galleryHint"),placeholder:a.galleryHint,onChange:i=>t({galleryHint:i})}),at(ype,{label:u("Shape"),icon:at(Tze,{}),options:Nze,value:wP(e.imageShape),onChange:i=>t({imageShape:i})}),at(z8,{children:u("Map & Theme")}),at(ype,{label:u("Map theme"),icon:at(xze,{}),options:Rze,value:r,onChange:i=>t({mapTheme:i})})]})]})}function Oze({cards:e,groupKey:t,onChange:o,onBack:n,onOpenCity:r,onNavigate:a}){let i=e.map((h,f)=>iu(h)===t?f:-1).filter(h=>h>=0),s=String(e[i[0]]?.groupName??""),l=new Set(e.map(iu).filter(h=>h!==t)),[d,c]=bze(t),p=h=>o(e.map(f=>iu(f)===t?{...f,...h}:f)),m=()=>{let h=d;if(h!==t){if(l.has(h)){c(t);return}o(e.map(f=>iu(f)===t?{...f,group:h}:f)),a(h)}};return xd("div",{className:"sf-locations-view",children:[at(N1,{inline:!0,name:u("Section"),onSelect:n,title:G8(t,s)}),at(rm,{label:u("Group heading"),value:d,placeholder:u("e.g. Americas"),onChange:c,onBlur:m,onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur()}}),l.has(d)&&d!==t&&at("p",{className:"sf-note sf-note--error",role:"alert",children:u("Another group already uses this heading \u2014 pick a different one.")}),at(rm,{label:u("Group name"),value:s,placeholder:u("Shown beside the heading"),onChange:h=>p({groupName:h})}),at(kpe,{label:u("Cities in this group"),noun:u("city"),items:i.map(h=>e[h]),onChange:h=>o(Ute(e,t,h)),newItem:()=>({...G4,group:t,groupName:s}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,renderRow:(h,f)=>xd("button",{type:"button",style:Tpe,onClick:()=>r(i[f]),children:[at("span",{children:h?.name||u("City")}),at("span",{"aria-hidden":"true",children:"\u203A"})]})}),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:Epe,onClick:()=>{o(e.filter(h=>iu(h)!==t)),n()},children:Jn("Delete group ({n} city)","Delete group ({n} cities)",i.length)})})]})}function Ppe({value:e,onChange:t}){let o=Array.isArray(e)?e:[],n=zte(),r=Xee(),a=Cze(o),{appState:i,selectedItem:s}=wze(g=>g),l=Eze(),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(Pze,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 xd("div",{className:"sf-locations-view",children:[at(N1,{inline:!0,name:u("Locations"),onSelect:()=>sd({level:"groups"}),title:u("Texts")}),at(vpe,{props:d,setSection:c,headOnly:!0})]});if(n.level==="image"){let g=o[n.index];return g?xd("div",{className:"sf-locations-view",children:[at(N1,{inline:!0,name:String(g.name??"")||u("City"),onSelect:()=>sd({level:"city",index:n.index}),title:u("Image")}),at(dQ,{value:g.photo||"",onChange:b=>p(n.index,{photo:b}),label:"Image",accept:"image/*"})]}):h()}if(n.level==="map"){let g=o[n.index];return g?xd("div",{className:"sf-locations-view",children:[at(N1,{inline:!0,name:String(g.name??"")||u("City"),onSelect:()=>sd({level:"city",index:n.index}),title:u("Map")}),at(Sb,{value:g.geocode,onChange:b=>p(n.index,{geocode:b}),label:"Coordinates"}),at(rm,{label:u("Directions link"),icon:at(vze,{}),value:String(g.mapsUrl??""),onChange:b=>p(n.index,{mapsUrl:b})})]}):h()}if(n.level==="city"){let g=n.index,b=o[g];if(!b)return h();let w=iu(b),x=(k,S)=>p(g,{[k]:S}),v=(k,S,T,E=!1)=>at(rm,{label:S,icon:T,textarea:E,value:String(b[k]??""),onChange:y=>x(k,y)});return xd("div",{className:"sf-locations-view",children:[at(N1,{inline:!0,name:G8(w,String(b.groupName??"")),onSelect:()=>sd({level:"group",key:w}),title:b.name||u("City")}),v("name",u("Location name"),at(U8,{})),v("state",u("State / Province"),at(U8,{})),v("country",u("Country"),at(yze,{})),v("address",u("Address"),at(kze,{}),!0),v("phone",u("Phone"),at(Sze,{})),v("hours",u("Opening hours"),at(xpe,{})),v("timezone",u("Timezone chip"),at(xpe,{})),at("div",{style:{marginTop:12},children:at("button",{type:"button",style:Epe,onClick:()=>{t(o.filter((k,S)=>S!==g)),sd({level:"group",key:w})},children:u("Delete city")})})]})}if(n.level==="group")return a.some(g=>g.key===n.key)?at(Oze,{cards:o,groupKey:n.key,onChange:t,onBack:()=>sd({level:"groups"}),onOpenCity:g=>sd({level:"city",index:g}),onNavigate:g=>sd({level:"group",key:g})},n.key):h();function h(){return xd("div",{className:"sf-locations-view",children:[at(vpe,{props:d,setSection:c}),!r&&at(W8,{children:f()})]})}function f(){return at(kpe,{label:u("Locations"),noun:u("group"),items:a,onChange:g=>{let b=g.find(w=>!a.some(x=>x.key===w.key));t(Gte(o,g.map(w=>w.key),w=>[{...G4,group:w,groupName:""}])),b&&sd({level:"group",key:b.key})},newItem:()=>({key:m(),name:"",indices:[]}),open:null,onOpen:()=>{},renderItem:()=>null,removeOnRow:!1,canDuplicate:()=>!1,above:a.length===0?at("div",{style:{fontSize:12,color:"var(--ink-faint)",padding:"4px 0"},children:u("No locations yet.")}):void 0,renderRow:g=>xd("button",{type:"button",style:Tpe,onClick:()=>sd({level:"group",key:g.key}),children:[at("span",{style:{fontWeight:500},children:G8(g.key,g.name)}),xd("span",{style:{color:"var(--ink-faint)"},children:[Jn("{n} city","{n} cities",g.indices.length)," \u203A"]})]})})}return h()}var Cpe={fields:{dataSource:qt("Location content","Manual"),locations:{type:"custom",render:({value:e,onChange:t})=>Aze(Ppe,{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=xP(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(", ")}),{[XT]:r,...a}=t;return{...e,props:{...a,locations:n}}},resolveFields:(e,{fields:t})=>Xt("ContactLocations",t,e.props)};import{jsx as _pe}from"react/jsx-runtime";import{ClockIcon as Lze,TagIcon as Ize}from"efficient-easel/icons";var Fze=[...GX],Rpe={fields:_i({title:$("Heading",Z3.title),zeroText:Yo($("At zero",Z3.zeroText)),endsAt:pee("Ends",_pe(Lze,{}),"In your own time zone. Every visitor counts down to the same moment."),showUnits:ae("Unit labels",!0,_pe(Ize,{}))},Fze,Ri)};var Npe={fields:{html:{type:"textarea",label:"HTML"}}};import{jsx as $8}from"react/jsx-runtime";import{StylesIcon as Bze,WeightIcon as Hze,WidthIcon as Dze}from"efficient-easel/icons";import{keptByRow as Mze}from"efficient-easel/screen/lib/document/style-fields";var zze={any:[{field:"style",set:!1},{field:"style",is:Pf}]},Wze={not:{field:"style",is:"none"}},Ope={fields:Fe({style:wo("Style",$8(Bze,{}),HQ.map(e=>({...e,picture:UQ(e.value)})),Pf,{columns:3,cell:wr}),spacing:Mze("sectionPaddingTop"),thickness:de("Thickness",$8(Hze,{}),1,8,1,1,nv),...ad(nv,"thickness"),lengthPct:de("Length",$8(Dze,{}),10,100,1,100,rv),...ad(rv,"lengthPct")},[[["thickness"],zze],[["lengthPct"],Wze]]),resolveFields:(e,{fields:t})=>{let o=pC[mC(e.props.spacing)],n=Ap({fallback:{top:o,bottom:o},tablet:!0,siteSide:!0});return sv(t,n)}};import{jsx as Lpe}from"react/jsx-runtime";import{HashIcon as Uze,StickyIcon as Gze}from"efficient-easel/icons";import{group as Ipe,select as $ze}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as O1}from"efficient-easel/screen/lib/document/device-fields";var V8={title:"On this page"},Ape={label:"Contents",defaultProps:{title:V8.title,sticky:!0}};var Fpe={fields:{title:O1("desktop",$("Heading",V8.title)),_gList:O1("desktop",Ipe("List")),[AC]:O1("desktop",$ze("Number",Lpe(Uze,{}),TX,EX)),_gStick:O1("desktop",Ipe(A3)),sticky:O1("desktop",ae(A3,!0,Lpe(Gze,{})))}};import{group as Vze}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as K8}from"efficient-easel/screen/lib/document/device-fields";var A1={hint:"Search questions",noMatchText:"No question matches your search."},Bpe={label:"List search",defaultProps:{hint:A1.hint,noMatchText:A1.noMatchText}};var Hpe={fields:{_gContent:K8("desktop",Vze("Content")),hint:K8("desktop",Yo($("Hint",A1.hint))),noMatchText:K8("desktop",Yo($("No match",A1.noMatchText)))}};import{group as Mpe}from"efficient-easel/screen/lib/document/box-fields";var kR={toc:"On this page"},Dpe={label:"Document body",defaultProps:{tocTitle:"",sections:[]}};var zpe={fields:{_gContent:Mpe("Contents"),tocTitle:$("Contents heading",kR.toc),_gSections:Mpe("Sections"),sections:{type:"array",label:"Sections",arrayFields:{label:ye("Contents label"),heading:ye("Title"),body:Je("Body")},defaultItemProps:{label:"",heading:"",body:""},getItemSummary:e=>e?.label||e?.heading||"Section"}}};import{group as Wpe}from"efficient-easel/screen/lib/document/box-fields";var Upe={fields:{_gContent:Wpe("Content"),eyebrow:$("Eyebrow",Xm.eyebrow),title:q("Heading",Xm.title),deck:q("Deck / standfirst",Xm.deck),_gMeta:Wpe("Metadata"),meta:{type:"array",label:"Metadata rows",arrayFields:{label:ye("Label"),value:ye("Value")},defaultItemProps:{label:"Label",value:""},getItemSummary:e=>e?.label||"Row"}}};var SR=[{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."}],Gpe={label:"Document Detail Cards",defaultProps:{cards:[]}};var $pe={fields:{cards:xb({type:"array",label:"Cards",arrayFields:{label:ye("Label"),value:ye("Value"),desc:Je("Body")},defaultItemProps:{label:"Label",value:"",desc:""},getItemSummary:e=>e?.label||e?.value||"Card"},SR)}};import{jsx as Kze}from"react/jsx-runtime";import{PageIcon as Yze}from"efficient-easel/icons";import{group as jze}from"efficient-easel/screen/lib/document/box-fields";var $w={metaLabel:G.label,metaValue:G.value},Vpe={label:"Document tabs",defaultProps:{tabs:[],metaLabel:"",metaValue:""}};var Kpe={fields:{tabs:{type:"array",label:"Tabs",arrayFields:{label:Q("Tab label"),href:Xe("Links to"),current:ae("Current page",!1,Kze(Yze,{}))},defaultItemProps:{label:"Tab",href:"",current:!1},getItemSummary:e=>e?.label||"Tab"},_gNote:jze("Trailing note"),metaLabel:$("Note label",$w.metaLabel),metaValue:$("Note value",$w.metaValue)}};import{jsx as qze}from"react/jsx-runtime";import{StylesIcon as Xze}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as Zze}from"efficient-easel/screen/lib/document/box-fields";var Ype={fields:{eyebrow:$("Eyebrow",G.eyebrow),...pl("align",{access:Zze}),eyebrowLook:fe("Look",qze(Xze,{}),ol,eP)}};import{jsx as Jze}from"react/jsx-runtime";import{ChevronIcon as Qze}from"efficient-easel/icons";import{group as j8}from"efficient-easel/screen/lib/document/box-fields";var Xu={num:G.sectionNumber,title:"Frequently *asked.*",link:"View all questions"},Y8=vn.FAQ,jpe={label:"Q&A",inline:!0,fields:Y8,defaultProps:{num:"",title:"",linkText:"",linkHref:"/faq",defaultOpen:!0,items:[]}};var qpe="faqOnTemplate",eWe={not:{context:qpe,is:!0}},tWe={[qpe]:e=>jj("FAQ",e.props??{})},oWe=new Set([ej,...tj]);function nWe(e){return Object.keys(e).filter(t=>["num","title","linkText","linkHref","anchor"].includes(t)||t.startsWith("sectionPadding")||t.startsWith("sectionHeight")||oWe.has(t))}var Xpe={fields:{_gContent:j8("Content"),num:$("Number",Xu.num),title:q("Heading",Xu.title),linkText:$("Button",Xu.link),linkHref:Xe("Link"),_gQuestions:j8("Questions"),items:{type:"array",label:"Questions",arrayFields:{question:ye("Question"),answer:Je("Answer")},getItemSummary:e=>e.question||"Question"},_gLayout:j8("Layout"),defaultOpen:ae("Open first answer",!0,Jze(Qze,{})),...Y8},resolveFields:(e,{fields:t})=>{let o=rt(t,e.props.headPlacement,st.FAQ.headRows);return _i(o,nWe(o),eWe)},showWhenFacts:tWe};import{jsx as Yi,Fragment as TR,jsxs as aWe}from"react/jsx-runtime";import{useContext as iWe}from"react";import{SettingsField as eme}from"efficient-easel/panel";import{FieldSelect as tme}from"efficient-easel/fields";import{BlogPostIcon as ome}from"efficient-easel/icons";import{ScreenDocumentContext as sWe}from"efficient-easel/screen/components/ScreenDocumentContext";var Zpe=xw({fetch:async(e,t)=>await qd().blog?.posts(t?{siteId:t}:void 0)??[],keyBy:Nn});import{useEffect as Jpe,useRef as rWe,useState as q8}from"react";function lg(e,t){return JSON.stringify(e)!==JSON.stringify(t)}function Vw({load:e,resolve:t,snapshot:o,value:n,onChange:r}){let[a,i]=q8(null),[s,l]=q8(!1),[d,c]=q8(!1),p=rWe(!0);return Jpe(()=>(p.current=!0,e().then(m=>{p.current&&i(m)}),()=>{p.current=!1}),[]),Jpe(()=>{if(!n?.slug||a===null)return;let m=t(a,n);if(!m)return;let h=o(m);lg(h,n)&&r(h)},[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 h=t(m,n);h&&r(o(h))}).catch(()=>{p.current&&c(!0)}).finally(()=>{p.current&&l(!1)}))}}}function Qpe(e,t){return{label:t?u("{name} (unavailable)",{name:e.name}):e.name,value:e.value}}function Kw({value:e,onChange:t}){let o=iWe(sWe);return o&&!o.capabilities.hasBlog?e?.slug?Yi(lWe,{value:e,onChange:t}):Yi(TR,{}):Yi(dWe,{value:e,onChange:t})}function lWe({value:e,onChange:t}){return Yi("div",{children:Yi(eme,{label:u("Blog post source"),icon:Yi(ome,{}),hint:Yi(TR,{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:Yi(tme,{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 dWe({value:e,onChange:t}){let{rows:o,loading:n,refreshing:r,errored:a,refresh:i}=Vw({load:Zpe,resolve:(m,h)=>m.find(f=>f.slug===h.slug),snapshot:Cv,value:e,onChange:t}),s=m=>{if(!m){t(null);return}let h=(o??[]).find(f=>f.slug===m);h&&t(Cv(h))},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 aWe("div",{children:[Yi(eme,{label:u("Blog post source"),icon:Yi(ome,{}),hint:e?.slug?void 0:Yi(TR,{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:Yi(tme,{value:e?.slug??"",ariaLabel:u("Blog post source"),onChange:s,readOnly:n,options:[{label:u("None (manual)"),value:""},...l?[Qpe({name:e.title||e.slug,value:e.slug},!n)]:[],...(o??[]).map(m=>({label:m.title,value:m.slug}))]})}),e?.slug?Yi(Li,{status:d,statusText:p,onRefresh:i,busy:r,hint:Yi(TR,{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 Vr={badge:"Featured",imageDate:G.date,category:G.category,readLabel:"0 min read",date:G.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:oc.href},nme={label:"Featured cover",drawsPictures:!0,defaultProps:{source:null,image:"",badge:"",imageDate:"",category:"",readLabel:"",date:"",title:"",dek:"",ctaText:"",ctaHref:""}};var pWe=["image","imageDate","date","title","dek","ctaHref"],rme={fields:_i({source:Mo(Kw),_nBound:dt(ul(bC),wC),image:nt("Cover image","image/*"),badge:$("Badge",Vr.badge),imageDate:$("Image date",Vr.imageDate),_gContent:cWe("Content"),category:$("Category",Vr.category),readLabel:$("Read time",Vr.readLabel),date:$("Date",Vr.date),title:q("Heading",Vr.title),dek:q("Dek",Vr.dek),ctaText:$("Button",Vr.ctaText),ctaHref:Xe("Link")},pWe,vb)};import{jsx as rr}from"react/jsx-runtime";import{phoneKey as kr,tabletKey as pa}from"efficient-easel/draw";import{keptByRow as pUe}from"efficient-easel/screen/lib/document/style-fields";import{jsx as ame}from"react/jsx-runtime";import{OpacityIcon as mWe,StylesIcon as uWe}from"efficient-easel/icons";function Yw(){return{darken:de("Darken",ame(mWe,{}),td.min,td.max,td.step,td.fallback,td.unit),darkenStyle:fe("Darken style",ame(uWe,{}),A2,A2[0].value)}}var hWe={"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]"},fWe=`calc(${CY} - ${T3}*2)`,ime=`var(${_Y},${T3})`,cMt=`pointer-events-none absolute inset-y-0 left-[${ime}] right-[${ime}] z-[6] mx-auto max-w-[var(${RY},${fWe.replace(/ /g,"_")})]`;function ER(e,t){return`pointer-events-auto absolute ${hWe[e]} z-[6] sf-hero-overlay-rail flex ${t}`}function sme(e){return OE.includes(e)?e:null}var gWe=OE,X8="top-right",bWe=["cards","dots","numbers","bar","squares","tabs","largeTabs"],Z8=["cards","dots","numbers","bar","squares"],PR="cards",CR={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs",largeTabs:"Large tabs"},_R=["tabs","largeTabs"],lme=!0;function RR(e){return bWe.includes(e)?e:PR}function dme(e){return Z8.includes(e)?e:PR}function wWe(e){return gWe.includes(e)?e:X8}var cme={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 pme(e,t){return ER(wWe(t),cme[RR(e)])}function mme(e){return`flex ${cme[RR(e)]}`}function ume(e){return e.shown!==!1&&(e.count??0)>1}function xWe(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function yWe(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 hme(e,t){let o=Array.from(t,xWe);return yWe(e,o)?e:o}import{deviceField as yd}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as mUe,ClockIcon as uUe,CropIcon as qme,GapIcon as hUe,MediaLayoutStackedIcon as aue,LineBetweenIcon as fUe,LineSolidIcon as gUe,ListIcon as bUe,NumberedListIcon as Xme,ShadowIcon as wUe,StylesIcon as Zme,TableIcon as Jme,TargetIcon as xUe,WrapIcon as iue}from"efficient-easel/icons";var Ic=LE.map(e=>e.shape);function L1(e){return Ic.includes(String(e??""))?e:"auto"}function NR(e){let t=L1(e);return t==="auto"?"":D0(t)}var vWe={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]"},kWe={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 SWe(e,t){return Ic.includes(String(t??""))?t===L1(e)?null:t:null}var TWe={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 EWe(e){return Ic.includes(String(e??""))?e:null}function fme(e,t,o){let n=EWe(o),r=SWe(e,Ic.includes(String(t??""))?t:n);if(r===null&&n===null)return NR(e);let a=L1(e);return[r===null?NR(e):a==="auto"?"":vWe[a],r===null?"":kWe[r],n===null?"":TWe[n]].filter(Boolean).join(" ")}import{BOX_WRAP_LABEL as sue,VIEW_KEY_ACCESS as Fc,group as cg,phoneTwinFields as Bc}from"efficient-easel/screen/lib/document/box-fields";var PWe={none:"no-symbol",dot:"dot",cross:"close",slash:"separator-slash",triangle:"separator-triangle"},CWe=S2.map(e=>({value:e.value,picture:QP(PWe[e.value])}));function OR(e,t){return wo("Separator",e,CWe,t,{resolve:dK})}import{jsx as _We}from"react/jsx-runtime";import{cloneElement as RWe}from"react";import{PaddingXIcon as NWe}from"efficient-easel/icons";import{deviceField as OWe}from"efficient-easel/screen/lib/document/device-fields";function gme(){let e=fe(tte,_We(NWe,{}),$j,Vj);return OWe("desktop",{...e,render:t=>{let o=e.render({...t,value:jE(t.value),onChange:n=>t.onChange(Yj(n))});return RWe(o,{hint:u(Kj)})}})}import{newNodeId as J8}from"efficient-easel/draw";var bme=["First row","Second row","Third row"],AWe="Write the words for this row.",wme=e=>({type:"Text",props:{...Ue,id:J8("Text"),tag:"p",text:e}}),LWe=(e,t)=>({type:we,props:{...De,id:J8(we),...t?{startsOpen:!0}:{},rowTitle:[wme(e)],content:[{type:"Text",props:{...Tt,id:J8("Text"),tag:"p",text:AWe}}]}}),IWe=e=>!Array.isArray(e)||e.length===0;function xme(e){let t=Array.isArray(e.content)?e.content:[];if(t.length===0)return{...e,gap:0,blockSpacing:"gap",content:bme.map((r,a)=>LWe(r,a===0))};let o=!1,n=t.map((r,a)=>{if(r?.type!==we||!IWe(r.props?.rowTitle))return r;o=!0;let i=(typeof r.props?.label=="string"?r.props.label.trim():"")||(bme[a]??`Row ${a+1}`);return{...r,props:{...r.props,rowTitle:[wme(i)]}}});return o?{...e,content:n}:e}var I1="rowStyle",yme=[{label:"Plain",value:"plain"},{label:"Numbered",value:"numbered"}];function vme(e){return e==="numbered"||e==="chevron"?e:"plain"}var AR="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",LR="font-mono text-[length:var(--size-label,14px)] tracking-[0.2em] text-accent",IR="pb-8 pl-11 pr-8 max-view-wide:pl-0 max-view-wide:pr-0",kme="border-t border-line",Sme="flex w-full cursor-pointer list-none items-center justify-between py-3 text-left [&::-webkit-details-marker]:hidden",Tme="shrink-0 text-fg-dim transition-transform [details[open]>summary_&]:rotate-180";import{phoneKey as FWe}from"efficient-easel/screen/lib/content/view-tiers";var FR=vn.Flex,Eme={label:"Box",fields:FR,phoneOrder:{prop:FWe("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 Pme}from"react/jsx-runtime";import{isNode as BWe}from"efficient-easel/data";import{useEasel as HWe}from"efficient-easel/easel";import{PhoneOrderField as DWe}from"efficient-easel/fields";import{slotChildRowName as MWe}from"efficient-easel/draw";import{deviceField as zWe}from"efficient-easel/screen/lib/document/device-fields";function WWe(){try{let e=HWe(a=>a),t=e.config.components??{},o=e.selectedItem?.props?.content,n=Array.isArray(o)?o.filter(a=>!BWe(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 UWe({value:e,onChange:t,readOnly:o}){let n=WWe();if(!n)return null;let{blocks:r,ids:a,labelOf:i}=n;return Pme(DWe,{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=>MWe(r[s],i,Do,void 0,Eee)})}function Cme(){return zWe("mobile",{type:"custom",render:({value:e,onChange:t,readOnly:o})=>Pme(UWe,{value:e,onChange:t,readOnly:o})})}import{jsx as D1}from"react/jsx-runtime";import{SettingsDefaultReset as ZWe,SettingsField as JWe}from"efficient-easel/panel";import{Segmented as QWe}from"efficient-shell/ui";import{SwapIcon as eUe}from"efficient-easel/icons";import{describedAs as tUe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as oUe}from"efficient-easel/screen/lib/document/device-fields";var F1="Mirror cards",B1="off",Q8=[{value:B1,label:"Off"},{value:"even",label:"Even cards"},{value:"odd",label:"Odd cards"}],_me={even:"Cards 2, 4, 6 draw the other way round",odd:"Cards 1, 3, 5 draw the other way round"};function Zu(e){return e==="even"||e==="odd"?e:null}function Rme(e){return Zu(e)??void 0}function H1(e){return e.inCopy&&!e.nestedCopy&&!e.underBox}function dg(e,t,o){return!t||e.direction!=="row"||o||Fm("row",e.separator)||e.loop==="scroll"||e.line===!0||ds(e)||u3(e.columns)!==""||yK(e.columnsTablet)!==""?!1:!(ls(e.share)===""&&P0(e.wrap)!=="")}function Nme(e,t){let o=Zu(e);return!o||typeof t!="number"||!Number.isInteger(t)||t<0?!1:o==="even"?t%2===1:t%2===0}var Ome="view-wide:flex-row-reverse",GWe={left:"view-wide:ml-auto!",right:"view-wide:ml-0!"},$We={left:"view-wide:text-right!",right:"view-wide:text-left!"},VWe={start:"view-wide:justify-end!",end:"view-wide:justify-start!"},KWe={start:"view-wide:items-end!",end:"view-wide:items-start!"},YWe={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!"},BR=(e,t)=>(typeof t=="string"?Ks(e,t):void 0)??"";function eH(e,t,o){return e?[BR(GWe,t),BR($We,o)].filter(Boolean).join(" "):""}function Ame(e,t,o,n,r){if(!e)return"";if(t==="row"){let a=uK(o,r,void 0).tablet;return[BR(VWe,o),a?YWe[a]:""].filter(Boolean).join(" ")}return t==="column"?BR(KWe,n):""}function tH(e,t){return t||e.direction!==void 0&&e.direction!=="column"||e.loop==="scroll"||ds(e)?!1:u3(e.columns)===""}function HR(e,t){let o=Zu(e.mirrorCards);return o&&tH(e,t)?{mirror:o}:null}import{isNodeList as Dme}from"efficient-easel/data";var Lme=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],Ime=[{value:"half",label:"Half"},{value:"third",label:"One third"}],Fme=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function jWe(e){return e==="rows-left"||e==="rows-right"?e:"columns"}var qWe={"rows-left":"even","rows-right":"odd"},XWe={half:"equal",third:"bigRight"};function DR(e){let t=jWe(e?.arrangement);if(t==="columns")return null;let o=e?.imageWidth==="third"?"third":"half";return{mirror:qWe[t],row:{share:XWe[o],phoneReverse:e?.phoneOrder==="words"}}}var Bme={ProcessSteps:{slot:"boxes",hand:DR}},Hme=(e,t,o)=>Dme(e.props?.[t])&&(e.props?.[t]).some(n=>n?.props?.id===o);function jw(e,t){let o=HP(e,t);if(o===void 0)return;if(o!==null){let a=typeof o.type=="string"?o.type:"";if(a===we&&Hme(o,Ce,t)){let s=Ql(e,o.props?.id)?.inCopy===!0;return HR(tl(o.props??{},s),s)}let i=Ks(Bme,a);if(i&&Hme(o,i.slot,t))return i.hand(o.props??{})}let n=hE(e,t),r=n&&typeof n.type=="string"?Ks(Bme,n.type):void 0;return r&&n?r.hand(n.props??{}):null}function Mme(e){let t=e?.[Ce];return Dme(t)&&t.some(o=>o?.type===we)}var zme="mirrorCardsIdle",oH="mirrorCardsMirrors",Wme={[oH]:(e,t)=>{let o=Ql(t.appState,e.props?.id);if(o===void 0)return;let n=tl(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&&dg(a,!0,Vp(a).desktop)}return dg(n,H1(o),Vp(n).desktop)&&Zu(n.mirrorCards)!==null},[zme]:(e,t)=>{let o=Ql(t.appState,e.props?.id);if(o===void 0)return;let n=tl(e.props??{},o.inCopy);return jw(t.appState,e.props?.id)?!0:dg(n,H1(o),Vp(n).desktop)?!1:!(tH(n,o.inCopy)&&Mme(n))}};function nUe(e=!1){return Q8.map(t=>({value:t.value,label:u(t.label),title:t.value===B1?void 0:u(_me[t.value]),disabled:e}))}function rUe({value:e,onChange:t,readOnly:o}){let n=Zu(e)??B1;return D1(JWe,{label:u(F1),icon:D1(eUe,{}),action:D1(ZWe,{words:EE()?.panel,label:u(F1),changed:n!==B1,detail:u("Off"),onReset:()=>t(void 0)}),children:D1(QWe,{size:"sm",block:!0,label:u(F1),value:n,onChange:r=>t(Rme(r)),options:nUe(o===!0)})})}function Ume(){return dt(oUe("desktop",{type:"custom",...tUe({},{type:"radio",label:F1,options:Q8.map(e=>({value:e.value,label:e.label}))}),render:({value:e,onChange:t,readOnly:o})=>D1(rUe,{value:e,onChange:t,readOnly:o})}),{not:{context:zme,is:!0}})}import{jsx as aUe}from"react/jsx-runtime";import{FilterIcon as iUe}from"efficient-easel/icons";import{deviceField as sUe}from"efficient-easel/screen/lib/document/device-fields";var Vme="showForUnoffered",Kme={[Vme]:e=>GP().length===0&&Z2(e.props?.[X2])===void 0},lUe="Show for",dUe="All";function cUe(e,t){if(!e)return;let o=GP().find(r=>r.slug===e);if(o)return{slug:o.slug,name:o.name};let n=Z2(t);return n?.slug===e?n:void 0}function Yme(){let e=fe(lUe,aUe(iUe,{}),[{label:dUe,value:""}],"");return dt(sUe("desktop",{...e,render:t=>e.render({...t,value:Z2(t.value)?.slug??"",onChange:o=>t.onChange(cUe(o,t.value))})}),{not:{context:Vme,is:!0}})}var Gme=new WeakMap;function jme(e,t){let o=e[X2];if(!o)return e;let n=GP(),r=Z2(t?.[X2]),a=r&&!n.some(p=>p.slug===r.slug)?r:void 0,i=Gme.get(o);i||Gme.set(o,i=new Map);let s=`${LJ()}\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=$me.get(e);d||$me.set(e,d=new Map);let c=d.get(s);return c||d.set(s,c={...e,[X2]:l}),c}var $me=new WeakMap;var Qme=eK,eue={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},yUe={field:"direction",is:"tabs"},vUe={field:"line",in:[!0,!1]},kUe={field:"anchor",set:!0},nH=["fixed","screen","fill"],SUe={not:{any:[{field:"sectionHeightMode",in:nH},{field:"sectionHeightModeTablet",in:nH},{field:"sectionHeightModePhone",in:nH}]}},TUe={context:"parent.line",is:!0},pg={not:{field:"direction",is:"accordion"}},tue={field:"direction",is:"accordion"},oue={any:[pg,{not:{field:I1,in:["numbered","chevron"]}},{field:"columns",in:[...vK]},{field:"phoneRow",in:[...kK]}]},lue="notAccordionRow",EUe={not:{context:lue,is:!0}},PUe={[lue]:(e,t)=>t.parent?.props?.direction!=="accordion"},aH={field:"direction",is:"row",default:"row"},mg={not:bY},fg={all:[aH,mg,{not:{field:"separator",in:S2.map(e=>e.value)}},{not:{field:"line",is:!0}}]},CUe={field:"direction",is:"column"},due={all:[fg,...["columns",pa("columns")].map(e=>({not:{field:e,in:Array.from({length:lE},(t,o)=>o+sE)}}))]},_Ue={all:[mg,{not:{all:[aH,{field:"separator",in:S2.map(e=>e.value)}]}}]},rH={not:{all:[fg,{field:"columns",in:Array.from({length:lE},(e,t)=>t+sE)}]}},RUe="sharedColumnsFits",cue="sharedColumnsMisfit",pue="sharedColumnsDraws",mue="sharedColumnsPhoneDraws";function hg(e,t){return tl(e.props??{},Ql(t.appState,e.props?.id)?.inCopy!==!1)}var NUe={[RUe]:(e,t)=>q5(hg(e,t)),[cue]:(e,t)=>!q5(hg(e,t)),[pue]:(e,t)=>Vp(hg(e,t)).desktop,[mue]:(e,t)=>Vp(hg(e,t)).phone};function nue(e){return{all:[{not:{context:cue,is:!0}},{any:[L4,{field:e,set:!0}]}]}}var ug={not:{context:pue,is:!0}},qw={not:{context:mue,is:!0}},uue="sharedRowsDraws",OUe={[uue]:(e,t)=>X5(hg(e,t))&&jw(t.appState,e.props?.id)?.row===void 0},M1={not:{context:uue,is:!0}},AUe={any:[ug,qw]},iH=oK,LUe={not:{context:oH,is:!0}},hue="rowHanded",IUe={not:{context:hue,is:!0}},FUe={[hue]:(e,t)=>{let o=jw(t.appState,e.props?.id);return o===void 0?void 0:o?.row!==void 0}},rue={all:[pg,iH,ug,qw,LUe]},BUe={field:"direction",is:"row"},HUe={field:"align",in:["start","center","end"]},DUe={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function MUe(){let{darken:e,darkenStyle:t}=Yw();return{...Bc("darken",e,Fc),...Bc("darkenStyle",t,Fc)}}var fue={not:{all:[fg,{field:pa("columns"),in:Array.from({length:lE},(e,t)=>t+sE)}]}};function zUe(){let e=ae(sue,!1,rr(iue,{})),t=o=>{let n=m3(o);return n===void 0?void 0:n==="wrap"};return{...Sf(),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 WUe(){let e=ae(sue,!0,rr(iue,{})),t=o=>{let n=m3(o);return n===void 0?void 0:n==="wrap"};return{...Sf(),render:o=>{let n=o.followsView==="tablet";return e.render({...o,value:t(o.value),follows:!SK(void 0,n?o.follows:void 0),followsNoView:!n,onChange:r=>o.onChange(r===void 0?void 0:r?"wrap":"nowrap")})}}}var gue={hint:$m},bue={all:[iH,{any:[CUe,{all:[fg,fue,{not:{all:[due,{field:pa("share"),set:!0}]}}]}]}]},UUe=dt(yd("desktop",de("Narrows below",rr(aue,{}),bf.min,bf.max,bf.step,$m,{kind:"breakpoint"},{clear:gue,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),bue);function GUe(e,t){let o=e;return!(wf in o)||t.direction!=="column"?e:{...o,[wf]:UUe}}var wue={fields:Fe({_gContent:cg("Content"),rowTitle:FR.rowTitle,content:FR.content,_gCardDisplay:cg("Display"),cardDisplay:SC("desktop"),cardDisplayTablet:SC("tablet"),cardDisplayPhone:SC("mobile"),showFor:Yme(),_gLayout:cg("Layout"),direction:gC("Flex"),tabShape:wo("Tab shape",rr(Zme,{}),_R.map(e=>({label:CR[e],value:e,picture:GQ[e]})),"tabs",{columns:2,cell:wr}),mirrorCards:Ume(),[wf]:yd("desktop",de("Stacks below",rr(aue,{}),bf.min,bf.max,bf.step,$m,{kind:"breakpoint"},{clear:gue,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[I2]:gme(),startsOpen:yd("desktop",ae("Starts open",!1,rr(mUe,{}))),[I1]:yd("desktop",wo("Row style",rr(Xme,{}),yme.map(e=>({...e,picture:e.value==="numbered"?rr(Xme,{}):rr(bUe,{})})),"plain",{columns:2})),label:Yo(Q("Tab name")),...li("Flex"),...Bc("justify",ZP(),Fc),...Bc("align",JP(),Fc),...(()=>{let e=Bc("wrap",Sf(),Fc,{phoneRow:WUe()}),t=Bc("wrap",Sf(),Fc,{phoneRow:zUe()});return{wrap:t.wrap,[pa("wrap")]:t[pa("wrap")],[kr("wrap")]:e[kr("wrap")]}})(),[kr("order")]:Cme(),...Bc("boxShape",vw("Box shape",rr(qme,{}),M0(Ic),"shape","auto"),Fc,{phoneRow:vw("Box shape",rr(qme,{}),M0(Ic),"shape","auto",{phoneRest:e=>L1(e)})}),[JT]:yd("desktop",YJ(0,{clear:{hint:0},hint:"Turns the box. 0\xB0 is straight."})),separator:OR(rr(fUe,{size:18}),"none"),[X0]:yd("desktop",wo("Card style",rr(Zme,{}),Pq.map(e=>({...e,picture:VQ[e.value]})),"table",{columns:2,cell:wr})),share:yd("desktop",iee()),[pa("share")]:dee(),[kr("share")]:lee(),[$p]:yd("desktop",fe(h6,rr(Jme,{}),[...hie],Dv)),[kr($p)]:yd("mobile",fe(h6,rr(Jme,{}),[...fie],Dv)),...cee(),...Bc("blockSpacing",see(),Fc),line:ae("Line",!1,rr(gUe,{}),"A line across the blocks, with a dot on each."),upcoming:ae("Upcoming",!1,rr(uUe,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:fe("Join",rr(hUe,{}),dP,lP),_gShadow:cg("Shadow"),...Bc("shadow",ae("Shadow",!1,rr(wUe,{})),Fc),...Bc("fillColor",uee(),Fc),[Oa]:$r("Fill content","colour"),[$E]:pUe("fillColor"),_gBackground:cg("Background image"),bgImage:yd("desktop",nt("Image","image/*")),bgImagePhone:yd("mobile",nt("Image","image/*")),[Zn]:$r("Image content","image",{content:!0}),...MUe(),placement:rd("Content position"),_gLink:cg("Link"),link:qu(Xe("Link to")),[$o]:Lc(),_gJump:cg("Anchor"),jumpHighlight:ae("Highlight when a link jumps here",!1,rr(xUe,{}),"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"],Qme],[[kr("share")],{all:[eue,qw]}],[[$p],nue($p)],[[kr($p)],nue(kr($p))],[[kr("wrap")],{all:[eue,mg,qw,M1]}],[[kr("order")],{all:[fg,qw,ug]}],[["phoneRow"],qw],[[I1],{all:[tue,{not:{field:I1,is:"chevron"}}]}],[["tabShape"],yUe],[["rowTitle","startsOpen"],EUe],[["align","blockSpacing",pa("blockSpacing"),kr("blockSpacing")],pg],[[pa("justify"),kr("justify")],{all:[mg,rue,M1]}],[[pa("align"),kr("align")],{all:[BUe,HUe,rue]}],[[pa("wrap")],{all:[mg,rH,fue,ug,pg,M1]}],[[pa("shadow"),kr("shadow")],iH],[[pa("darken"),kr("darken"),pa("darkenStyle"),kr("darkenStyle")],{all:[Qme,DUe]}],[["separator"],aH],[[X0],{field:X0,set:!0}],[["columns"],{any:[fg,tue]}],[[pa("columns")],fg],[[wf],bue],[[pa("gap")],{all:[_Ue,oue]}],[["gap",kr("gap")],oue],[["justify"],{all:[mg,AUe,pg,M1]}],[["wrap"],{all:[mg,rH,ug,pg,M1]}],[["share"],{all:[rH,ug,pg]}],[[pa("share")],{all:[due,ug]}],[["line"],vUe],[["upcoming"],TUe],[["jumpHighlight"],kUe],[["boxShape",pa("boxShape"),kr("boxShape")],SUe],[["direction","share",kr("order")],IUe],[["join"],m4],[[I2],m4]]),resolveData:(e,t)=>{let o=e.props,n=o[X0];return t.changed?.[X0]===!0&&Cq(n)?{...e,props:_q(o,n,we,Ce)}:o.direction==="accordion"&&(t.trigger==="insert"||t.changed?.direction===!0)?{...e,props:xme(o)}:e},resolveFields:(e,t)=>{let o=Ql(t.appState,e.props?.id)?.inCopy===!0,n=o&&hE(t.appState,e.props?.id)===null;return GUe(KUe(YUe(jme(jUe(e,{...t,fields:Ma(t.fields,e,t)}),e.props),hg(e,t),o),n),e.props)},showWhenFacts:{...Da,...Cee,...Wme,...FUe,...NUe,...OUe,...Kme,...PUe}},$Ue=dt(See,L4),VUe=["darken","darkenStyle",QT,lf];function KUe(e,t){if(!t)return e;let o={...e};for(let n of VUe){if(!(n in o))continue;let{showWhen:r,...a}=o[n];o[n]=a}return o}function YUe(e,t,o=!1){let n=e;return sf in n&&ds(t)&&o?{...n,[sf]:dt(Tee,Pee)}:!(sf in n)||ds(t)?e:{...n,[sf]:$Ue}}function jUe(...[e,t]){let{fields:o}=t;{if(ds(hg(e,t))){let n=Ap({fallback:{top:Oi.desktop,bottom:Oi.desktop,left:Oi.side,right:Oi.side},tablet:!0,siteSide:!0});return sv(o,n)}return e.props.padV2!==!0?sv(o,Ap({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):o}}import{jsx as z1}from"react/jsx-runtime";var qUe=/^https?:\/\//i;function xue(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:j3(e.lat),lng:j3(e.lng),...t&&o&&qUe.test(t)?{href:t,linkLabel:o}:{}}}function sH(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 yue(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 vue(e){let t=[];return e.forEach((o,n)=>{nc(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 QUe,LayoutIcon as eGe,LocationIcon as tGe,SearchIcon as oGe,ThemeIcon as nGe}from"efficient-easel/icons";import{group as cH}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as zR}from"efficient-easel/screen/lib/document/device-fields";import{createContext as XUe,useContext as ZUe}from"react";var kue=XUe(null),E7t=kue.Provider,Sue=()=>ZUe(kue),MR=pE;function Tue(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 JUe(e){return e===null||!Number.isFinite(e)?"":e<10?`${e.toFixed(1)} km`:`${Math.round(e)} km`}function Eue(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?JUe(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 lH=[{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"}],Pue={key:af,label:"Dealers",blocks:["Footprint"],fields:lH};function Cue(e){return[e.name,e.city].filter(Boolean).join(", ")}var Ju={sectionNumber:G.sectionNumber,heading:`${G.heading}
16
16
  *${G.accent}*`,tagline:G.body},dH=vn.Footprint,_ue={label:"Locations Map",fields:dH,defaultProps:{sectionNumber:"",heading:"",tagline:"",offices:[],mapTheme:Xw.mapTheme,padTop:120,padBottom:120,search:!1,searchHint:"",noMatchText:"",listPosition:"below",showDistance:!0}};var Nue={field:ss,is:af,default:""},rGe={field:"listPosition",in:["left","right"],default:"below"},Oue={any:[Nue,rGe]},Rue={all:[Oue,{field:"search",is:!0,default:!1}]};y2([Pue]);var Aue={fields:{_gContent:cH("Section"),sectionNumber:$("Section number",Ju.sectionNumber),heading:q("Heading",Ju.heading),tagline:q("Body",Ju.tagline),_gOffices:cH("Offices"),[ss]:qt("Office content","Manual"),offices:{type:"array",label:"Offices",arrayFields:{role:Q("Role"),city:Q("City"),country:Q("Region \xB7 country"),address:ye("Address"),phone:Q("Phone"),group:Q("Group"),hq:ae("HQ",!1,z1(QUe,{})),geocode:Mo(Sb,{label:"Coordinates"})},defaultItemProps:{role:"Sales & Distribution",city:"City",country:"Country",address:"",phone:"",group:"",hq:!1,lat:0,lng:0},getItemSummary:e=>e?.city||"Office"},...dH,mapTheme:Te("Map theme",z1(nGe,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],Xw.mapTheme),_gList:cH("List"),listPosition:zR("desktop",Te("Position",z1(eGe,{}),[{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Below",value:"below"}],"below")),search:zR("desktop",dt(ae("Search",!1,z1(oGe,{})),Oue)),searchHint:zR("desktop",dt(Yo($("Hint","Type a postcode or address")),Rue)),noMatchText:zR("desktop",dt(Yo($("No match","No place found. Try another postcode.")),Rue)),showDistance:dt(ae("Distance",!0,z1(tGe,{})),Nue)},resolveData:async(e,t)=>{let o=t?.changed,n=e.props;if(o?.listPosition===!0||o?.[ss]===!0){let s=MK(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})=>rt(Xt("Footprint",t,e.props,{hides:["offices"]}),e.props.headPlacement,st.Footprint.headRows)};import{jsx as Iue}from"react/jsx-runtime";import{ColumnsIcon as Fue}from"efficient-easel/icons";import{deviceField as Bue}from"efficient-easel/screen/lib/document/device-fields";var pH=vn.Grid,Lue={label:"Grid",fields:pH,defaultProps:{columns:"3",content:[]}};var Hue={fields:{columns:Bue("desktop",de("Columns",Iue(Fue,{}),1,jY,1,XY)),mobileColumns:Bue("mobile",de("Columns",Iue(Fue,{}),N3,qY,1,N3)),...li("Grid"),content:pH.content}};import{jsx as aGe}from"react/jsx-runtime";var Due={fields:{text:q("Heading",G.heading),level:fe("Level",aGe(ra,{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 Sr}from"react/jsx-runtime";var mH="bottom-right",uH=["outline","solid","square","bare"],hH="outline",Mue={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},zue=!1,WR=["prev","next"],Wue={prev:"Previous slide",next:"Next slide"};function iGe(e){return uH.includes(e)?e:hH}function sGe(e){return sme(e)??mH}var lGe="flex-row items-center gap-2";function Uue(e){return ER(sGe(e),lGe)}var dGe={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 Gue(e){return dGe[iGe(e)]}function $ue(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 fH,OpacityIcon as pGe,PhoneIcon as Kue,PlayIcon as mGe,SlideArrowsBareIcon as uGe,SlideArrowsRoundIcon as hGe,SlideArrowsSquareIcon as fGe,SlidePickerBarIcon as gGe,SlidePickerCardsIcon as bGe,SlidePickerDotsIcon as wGe,SlidePickerNumbersIcon as xGe,SlidePickerSquaresIcon as yGe,SquareIcon as Yue}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as vGe}from"efficient-shell/icons/efficient-looks";import{group as Qu}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as gH,deviceNote as EGe}from"efficient-easel/screen/lib/document/device-fields";var UR=vn.Hero,Vue={label:"Hero",drawsPictures:!0,fields:UR,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};var kGe=vGe,SGe={cards:Sr(bGe,{}),dots:Sr(wGe,{}),numbers:Sr(xGe,{}),bar:Sr(gGe,{}),squares:Sr(yGe,{})},TGe={outline:Sr(hGe,{}),solid:Sr(kGe,{}),square:Sr(fGe,{}),bare:Sr(uGe,{})},jue={fields:{_dDevice:EGe(),_gContent:Qu("Content"),slides:UR.slides,strip:UR.strip,_gStyle:Qu("Style"),alignment:VJ(),_gTexture:Qu("Texture"),showTexture:ae("Show texture",iJ,Sr(fH,{})),textureColor:Ble,textureOpacity:de("Texture opacity",Sr(pGe,{}),0,100,1,40,"%"),_gLayout:Qu("Layout"),...C_(),_gAutoplay:Qu("Auto-slide"),autoplay:ae("Auto-advance slides",!1,Sr(mGe,{})),autoplayInterval:de("Still time per slide",Sr(cGe,{}),2,15,1,6,"s"),_gPicker:Qu("Slide picker"),showPicker:ae("Show slide picker",lme,Sr(fH,{})),pickerShape:wo("Slide picker shape",Sr(Yue,{}),Z8.map(e=>({label:CR[e],value:e,picture:SGe[e]})),PR),pickerPlacement:rd("Slide picker placement",{fallback:X8}),_gArrows:Qu("Arrows"),showArrows:ae("Show arrows",zue,Sr(fH,{})),arrowsShape:wo("Arrows shape",Sr(Yue,{}),uH.map(e=>({label:Mue[e],value:e,picture:TGe[e]})),hH),arrowsPlacement:rd("Arrows placement",{fallback:mH}),_gPhone:gH("mobile",Qu("On a phone")),phoneUpDown:gH("mobile",Te(oJ,Sr(Kue,{}),rJ(),eJ)),phoneSideways:gH("mobile",Te(nJ,Sr(Kue,{}),aJ(),tJ))}};import{jsx as Xue}from"react/jsx-runtime";import{WidthIcon as Zue}from"efficient-easel/icons";import{BOX_NUDGE_ROW as Jue,BOX_WIDTH_ROW as wH,group as xH}from"efficient-easel/screen/lib/document/box-fields";var bH={...vn.HeroGroup,content:{...vn.HeroGroup.content,allow:DV}},que={label:HV,inline:!0,fields:bH,defaultProps:{placement:IY,nudgeX:0,nudgeY:0,content:[]}};var Que={fields:Fe({_gContent:xH("Content"),name:Yo(yb(xr(Q("Box name",G.boxName)))),content:bH.content,_gLayout:xH("Layout"),placement:rd("Placement",{pointsFor:QQ}),width:de("Width",Xue(Zue,{}),C3,_3,5,FY,wH),...ad(wH,"width"),direction:gC("HeroGroup"),...li("HeroGroup"),justify:ZP(),align:JP(),wrap:Sf(),_gNudge:xH("Nudge"),...KJ({keys:{x:"nudgeX",y:"nudgeY"},min:-P3,max:P3,label:null,length:Jue}),...ad(Jue,"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(AE(o?.data,n)===0)return t;let r={...t};return r.width=de("Width",Xue(Zue,{}),C3,_3,5,BY,wH),r}};import{jsx as the}from"react/jsx-runtime";import{MediaIcon as CGe,OpacityIcon as _Ge}from"efficient-easel/icons";import{group as GR}from"efficient-easel/screen/lib/document/box-fields";import{deviceNote as RGe}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as PGe}from"efficient-shell/format";var yH=vn.HeroSingle,ehe={label:"Hero Single",drawsPictures:!0,fields:yH,defaultProps:{mediaType:Na.HeroSingle,[Ra.image]:PGe,tintColor:ms,tintOpacity:0,overlay:100,overlayColor:ms,overlayPosition:vf}};var ohe=ab("video",Na.HeroSingle),NGe=ab("image",Na.HeroSingle),nhe=[...N_,"tintColor","tintOpacity"],rhe={fields:LP({_dDevice:RGe(),boxNotice:L_("HeroSingle"),boxes:yH.boxes,_gStyle:GR("Style"),overlay:de("Overlay",the(_Ge,{}),0,100,5,100,"%"),overlayColor:gB.overlayColor,overlayPosition:gB.overlayPosition,_gLayout:GR("Layout"),...C_({tabletNumber:!1}),_gMedia:GR("Media"),mediaType:Te("Type",the(CGe,{}),vC,Na.HeroSingle),mediaLayout:Jf.mediaLayout,mediaLayoutPhone:Jf.mediaLayoutPhone,...__,videoSource:Lu.videoSource,mediaVideo:nt(K2,"video/*",Y2),youtubeUrl:Lu.youtubeUrl,videoPlayback:Lu.videoPlayback,poster:nt("Video poster","image/*","Upload a poster still"),_gTint:GR("Image tint"),tintColor:a1(),tintOpacity:r1(),...i1},{parts:{media:["mediaType",...R_,"videoSource","mediaVideo","youtubeUrl","videoPlayback","poster"],image:nhe,image2:kw},onlyFor:{image:[...nhe,"_gTint",...kw],video:["videoSource","videoPlayback","poster"]},rules:{mediaVideo:{all:[ohe,{field:"videoSource",is:"upload",default:dl}]},youtubeUrl:{all:[ohe,{field:"videoSource",is:"youtube",default:dl}]},...O_(NGe)},fallback:Na.HeroSingle})};import{jsx as W1}from"react/jsx-runtime";import{BlockVideoIcon as AGe,ClockIcon as LGe,ImageIcon as IGe,MediaIcon as FGe,PlayIcon as BGe}from"efficient-easel/icons";import{group as $R}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Jw}from"efficient-easel/screen/lib/document/device-fields";import{FOCAL_DEFAULT as OGe}from"efficient-shell/format";var vH=vn.HeroSlide,ahe={label:"Hero Slide",fields:vH,defaultProps:{mediaType:Na.HeroSlide,videoSpeed:100,[Ra.image]:OGe,tintColor:ms,overlay:0}};var eh=ab("video",Na.HeroSlide),HGe=ab("image",Na.HeroSlide),ihe=[...N_,"tintColor","overlay"],she={fields:LP({_gContent:$R("Content"),name:Yo(yb(Q("Slide name",G.slideName))),process:Yo($("Reel label","Label")),groupNotice:L_("HeroSlide"),groups:vH.groups,_gMedia:$R("Media"),mediaType:Te("Type",W1(FGe,{}),vC,Na.HeroSlide),mediaLayout:Jf.mediaLayout,mediaLayoutPhone:Jf.mediaLayoutPhone,videoSource:Lu.videoSource,mediaVideo:Jw("desktop",nt(K2,"video/*",Y2,{frame:"videoFrame"})),mediaVideoPhone:Jw("mobile",nt(K2,"video/*",Y2,{frame:"videoFramePhone"})),videoFramePhone:Ip(),mediaVideoAv1:Jw("desktop",nt(o4,"video/mp4",n4)),mediaVideoAv1Phone:Jw("mobile",nt(o4,"video/mp4",n4)),youtubeUrl:Lu.youtubeUrl,videoPlayback:Lu.videoPlayback,videoSpeed:de("Playback speed",W1(BGe,{}),25,100,5,100,"%"),loadingShows:hee("Show while loading",W1(LGe,{}),{frame:W1(AGe,{}),image:W1(IGe,{})}),videoFrame:Ip(),...__,poster:Jw("desktop",nt("Image","image/*","Choose an image")),posterPhone:Jw("mobile",nt("Image","image/*","Choose an image")),_gTint:$R("Image tint"),tintColor:a1(),overlay:r1(),...i1,_gOverlay:$R("Overlay"),overlayColor:bB.overlayColor,overlayPosition:bB.overlayPosition},{parts:{media:["mediaType",...R_,"videoSource","mediaVideo","mediaVideoPhone","videoFramePhone","mediaVideoAv1","mediaVideoAv1Phone","youtubeUrl","videoPlayback","videoSpeed","loadingShows","videoFrame","poster","posterPhone"],image:ihe,image2:kw},onlyFor:{image:[...ihe,"_gTint",...kw],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:Na.HeroSlide,rules:{mediaVideo:{all:[eh,{field:"videoSource",is:"upload",default:dl}]},mediaVideoPhone:{all:[eh,{field:"videoSource",is:"upload",default:dl}]},mediaVideoAv1:{all:[eh,{field:"videoSource",is:"upload",default:dl}]},mediaVideoAv1Phone:{all:[eh,{field:"videoSource",is:"upload",default:dl}]},youtubeUrl:{all:[eh,{field:"videoSource",is:"youtube",default:dl}]},videoSpeed:{all:[eh,{field:"videoSource",is:"upload",default:dl},{field:"videoPlayback",is:"background",default:FP}]},...O_(HGe),poster:{all:[eh,a4]},posterPhone:{all:[eh,a4]}}})};import{jsx as kH}from"react/jsx-runtime";import{phoneKey as DGe}from"efficient-easel/draw";import{CropIcon as lhe,ImageIcon as MGe}from"efficient-easel/icons";import{group as SH,phoneTwinFields as zGe}from"efficient-easel/screen/lib/document/box-fields";var dhe={fields:{_gImage:SH("Image"),src:nt("Image","image/*",void 0,{focus:"focal",focusWhen:(e,t)=>O2(t,e.fit,e.aspect,e[DGe("aspect")])}),alt:Yo(Q("Alt text")),rowField:$r("Shows","image"),[$o]:Lc(),...zGe("aspect",vw("Aspect ratio",kH(lhe,{}),M0(Ic),"image","16/9",{more:[Ele(bj)]}),void 0,{phoneRow:vw("Aspect ratio",kH(lhe,{}),M0(Ic),"image","16/9",{phoneRest:Ej})}),fit:fe(ME,kH(MGe,{}),hj(),"cover"),focal:Ip(),focalTablet:Ip(),focalPhone:Ip(),href:qu(Xe("Link")),_gStyle:SH("Style"),grayscale:Sw(),...Yw(),_gShape:SH("Shape"),corners:xee(),...oee(XJ,"corners"),cornerSides:nee()},resolveFields:(e,t)=>kee(Ma(t.fields,e,t),e,t),showWhenFacts:Da};import{jsx as WGe}from"react/jsx-runtime";import{group as che}from"efficient-easel/screen/lib/document/box-fields";var phe={fields:{_gContent:che("Content"),eyebrow:$("Chip label","Integrations"),title:q("Heading",`Plays well with
17
17
  *your favourite apps.*`),body:q("Body",""),apps:Dr("App chips",WGe(ra,{noun:"tag"}),"App name","verbatim"),_gStat:che("Stat & note"),statValue:$("Big stat","100s"),statLabel:$("Stat label",""),note:$("Footnote","")}};import{jsx as U1}from"react/jsx-runtime";import{keptByRow as UGe}from"efficient-easel/screen/lib/document/style-fields";import{CaseIcon as GGe,OpacityIcon as $Ge,PlacementIcon as VGe,TextLinesIcon as mhe}from"efficient-easel/icons";import{group as Qw}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as Hc,deviceNote as KGe}from"efficient-easel/screen/lib/document/device-fields";var uhe={fields:{_dDevice:KGe(),_gContent:Qw("Content"),eyebrow:$("Eyebrow",Rp.eyebrow),title:q("Heading",Rp.title),body:q("Subtitle",Rp.body),uppercase:ae("Uppercase heading",!1,U1(GGe,{})),_gBackground:Qw("Background images"),imageSrc:Hc("desktop",nt("Background image","image/*")),imageSrcMobile:Hc("mobile",nt("Background image","image/*")),_gLayout:Qw("Layout"),layout:wo("Text position",U1(VGe,{}),BX.map(e=>({...e,picture:YQ[e.value]})),FX,{columns:2,cell:hC}),heightDesktop:wB("desktop"),heightMobile:wB("mobile"),copyShareDesktop:Hc("desktop",de("Text height",U1(mhe,{}),ll.min,ll.max,ll.step,ll.desktop,"%")),copyShareMobile:Hc("mobile",de("Text height",U1(mhe,{}),ll.min,ll.max,ll.step,ll.mobile,"%")),sticky:UGe("stickTop"),overlay:de("Overlay",U1($Ge,{}),0,100,5,60,"%"),_gTextDesktop:Hc("desktop",Qw("Text style")),titleSizeDesktop:Hc("desktop",iv("Heading font size",32,120,1,96,"heading",{row:TP,view:"desktop"})),bodySizeDesktop:Hc("desktop",iv("Subtitle font size",12,28,1,17,"body",{row:EP,view:"desktop"})),_gTextMobile:Hc("mobile",Qw("Text style")),titleSizeMobile:Hc("mobile",iv("Heading font size",24,72,1,44,"heading",{row:TP,view:"phone"})),bodySizeMobile:Hc("mobile",iv("Subtitle font size",12,22,1,16,"body",{row:EP,view:"phone"})),...ad(TP,"titleSizeDesktop",{phone:!0}),...ad(EP,"bodySizeDesktop",{phone:!0}),_gButton:Qw("Button"),...vl,buttonColor:id("Button color","#C9A461"),buttonTextColor:id("Button text color","#000000")}};import{jsx as hhe}from"react/jsx-runtime";import{ColumnsIcon as YGe,StylesIcon as jGe}from"efficient-easel/icons";import{group as fhe}from"efficient-easel/screen/lib/document/box-fields";var ghe={fields:{_gContent:fhe("Content"),eyebrow:$("Eyebrow",K0.eyebrow),eyebrowLook:fe("Eyebrow style",hhe(jGe,{}),[...ol],Cp("KeyFeatures")),title:q("Heading",K0.title),items:{type:"array",label:"Features",arrayFields:{label:ye("Feature label"),href:xr(Q("Link"))},defaultItemProps:{label:"",href:""},getItemSummary:e=>e?.label||"Feature"},_gStyle:fhe("Style"),columns:de("Columns",hhe(YGe,{}),2,4,1,3)}};import{jsx as qGe}from"react/jsx-runtime";import{readHidable as XGe}from"efficient-easel/draw";import{ThemeIcon as ZGe}from"efficient-easel/icons";import{group as bhe}from"efficient-easel/screen/lib/document/box-fields";var VR=e=>XGe(e).text;function JGe(e){return[VR(e.address).replace(/\s*\n+\s*/g,", "),VR(e.name),VR(e.state),VR(e.country)].map(t=>t.trim()).filter(Boolean).join(", ")}var whe={fields:{_gMap:bhe("Map"),name:Q("Location name"),state:Q("State / Province"),country:Q("Country"),address:q("Address"),geocode:Mo(Sb,{label:"Coordinates"}),mapsUrl:Q("Directions link"),_gStyle:bhe("Style"),mapTheme:Te("Map theme",qGe(ZGe,{}),[{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],JGe);return{...e,props:{...e.props,lat:n.lat,lng:n.lng,geocode:n.geocode}}}};import{jsx as e$e}from"react/jsx-runtime";import{HeightIcon as t$e}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as o$e,group as n$e}from"efficient-easel/screen/lib/document/box-fields";var xhe="auto";var KR="custom",TH="#000000";function YR(e,t){return e===KR?{reverse:!1,color:(typeof t=="string"?t.trim():"")||TH}:{reverse:e!=="off",color:null}}var jR={reverse:{type:"select",label:"Logo color",options:[{label:"Auto contrast",value:xhe},{label:"As uploaded",value:"off"},{label:"Custom color",value:KR}]},customColor:dt(id("Color",TH),{field:"reverse",is:KR})};var yhe={fields:Fe({src:nt("Logo image","image/*"),alt:Yo(Q("Alt text","Brand name","Read out in place of the picture, and shown if it can\u2019t load.")),href:qu(Xe("Link")),heightPx:de("Height",e$e(t$e,{}),Dq,Mq,1,Km,"px"),...pl("align",{access:o$e}),...jR,_gText:n$e("Text"),rowField:$r("Shows","text"),[$o]:Lc()},[[["alt"],{field:"src",set:!0}]]),resolveFields:(e,t)=>Ma(t.fields,e,t),showWhenFacts:Da};import{jsx as $1}from"react/jsx-runtime";import{BlackAndWhiteIcon as r$e,ColumnsIcon as a$e,HeightIcon as i$e,PaddingYIcon as s$e,StylesIcon as l$e}from"efficient-easel/icons";import{VIEW_KEY_ACCESS as d$e,group as khe}from"efficient-easel/screen/lib/document/box-fields";var G1="plain",EH=[{label:"Plain",value:"plain"},{label:"Cards",value:"cards"},{label:"Marks",value:"marks"},{label:"Chips",value:"chips"}],vhe=e=>ni(EH,G1,e);var c$e=["items","heading","bandPadding"],p$e=["look"],m$e={field:"bandPadding",set:!0},u$e={field:ss,set:!0},She={not:{field:"look",is:"chips"}},h$e=Fe({_gContent:khe("Content"),dataSource:qt("Logo content","Manual"),heading:q("Heading",iP.heading),items:{type:"array",label:"Logos",arrayFields:{src:nt("Image","image/*"),alt:Yo(Q("Name / alt"))},getItemSummary:e=>e.alt||e.src||"logo"},logos:dt(M3.logos,Sl),template:dt(M3.template,u$e),_gStyle:khe("Style"),columns:de("Columns",$1(a$e,{}),3,6,1,5),logoHeight:dt(de("Logo height",$1(i$e,{}),16,72,2,28,"px"),She),bandPadding:dt(de("Space above and below",$1(s$e,{}),16,120,4,40,"px"),m$e),grayscale:dt(ae("Black and white logos",!0,$1(r$e,{})),She),look:wo("Logo style",$1(l$e,{}),EH.map(e=>({...e,picture:KQ[e.value]})),G1,{columns:2,cell:wr}),...pl("align",{access:d$e})},[[c$e,Ri],[p$e,HK]]),The={fields:h$e,resolveFields:(e,{fields:t})=>Xt("Logos",t,e.props,{hides:["logos"]}),resolveData:(e,t)=>{if(!t?.changed?.[ss])return e;let o=BK(e.props);return o===e.props?e:{...e,props:o}}};import{group as V1}from"efficient-easel/screen/lib/document/box-fields";var Co={headNum:G.sectionNumber,headTitle:G.headingAccent,headDesc:G.body,category:G.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 "+G.date,ctaText:"Begin reading",ctaHref:oc.href,imageLabel:"Featured *image*",metaPublished:G.date,metaReads:"0 min"},Ehe={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 f$e=["image","title","dek","ctaHref","metaPublished"],Phe={fields:_i({source:Mo(Kw),_nBound:dt(ul(bC),wC),_gHead:V1("Section header"),headNum:$("Number",Co.headNum),headTitle:q("Heading",Co.headTitle),headDesc:q("Body",Co.headDesc),_gMeta:V1("Article"),category:$("Category",Co.category),metaMiddle:$("Middle meta",Co.metaMiddle),readLabel:$("Read time",Co.readLabel),title:q("Article title",Co.title),dek:q("Dek",Co.dek),_gQuote:V1("Pull quote"),quote:q("Quote",Co.quote),quoteAttribution:$("Attribution",Co.quoteAttribution),_gLink:V1("Link"),ctaText:$("Button",Co.ctaText),ctaHref:Xe("Link"),image:nt("Image","image/*"),imageLabel:$("Image label",Co.imageLabel),_gOverlay:V1("Image caption"),metaPublished:$("Published",Co.metaPublished),metaReads:$("Reads in",Co.metaReads)},f$e,vb),resolveFields:(e,{fields:t})=>rt(t,e.props.headPlacement,st.LongRead.headRows)};import{group as PH}from"efficient-easel/screen/lib/document/box-fields";var Che={fields:{_gContent:PH("Content"),eyebrow:$("Eyebrow",G.eyebrow),heading:q("Heading",`Main heading
18
18
  *Highlight line*`),body:q("Body",G.body),stats:{type:"array",label:"Stats",arrayFields:{value:Q("Number"),label:Q("Label")},getItemSummary:e=>e.label||e.value||"Stat"},_gMedia:PH("Media"),imageSrc:nt("Image","image/*"),_gStyle:PH("Style"),grayscale:Sw()}};import{jsx as g$e}from"react/jsx-runtime";import{TextLinesIcon as b$e}from"efficient-easel/icons";import{group as CH}from"efficient-easel/screen/lib/document/box-fields";var Dc={eyebrow:G.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"},_he={label:"Issue Header",defaultProps:{eyebrow:"",issueMeta:[],lead:"",issueHeading:"",issueList:[],issueTotal:""}};var Rhe={fields:{_gTop:CH("Top row"),eyebrow:$("Eyebrow",Dc.eyebrow),issueMeta:{type:"array",label:"Issue meta lines",arrayFields:{lead:ye("Bold word"),rest:ye("Rest")},getItemSummary:e=>[e?.lead,e?.rest].filter(Boolean).join(" ")||"Line"},_gLead:CH("Lead"),lead:q("Lead",Dc.lead),_gIssue:CH("In this issue"),issueHeading:q("Panel heading",Dc.issueHeading),issueList:Dr("Issue lines",g$e(b$e,{}),"Line","markup"),issueTotal:$("Total line",Dc.issueTotal)}};import{jsx as th}from"react/jsx-runtime";import{BlockColumnIcon as qR,PlacementIcon as y$e,StateIcon as v$e,TemplateIcon as k$e,TextLinesIcon as S$e}from"efficient-easel/icons";import{group as gg}from"efficient-easel/screen/lib/document/box-fields";var _H=[{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"}],w$e=_H.map(e=>e.value),RH="spec-card",x$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 Nhe(e){return Fe(e,Object.entries(x$e).map(([t,o])=>[[t],_a("variant",w$e,RH,o)]))}var T$e=[...MX,"align"],Ohe={fields:_i(Nhe({_gContent:gg("Content"),eyebrow:$("Chip label","In the product"),title:q("Heading",`Seen from