efficient-storefront-blocks 0.125.4 → 0.125.6

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.
Files changed (145) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/chunks/CustomHtmlCodeWindow-KAHNIUZO.js +26 -0
  3. package/dist/chunks/{EditorPreviewCheckout-3ZX2DIIL.js → EditorPreviewCheckout-M5LLO3H2.js} +1 -1
  4. package/dist/chunks/SiteEditorProvider-6P7LYLL2.js +1 -0
  5. package/dist/chunks/{chunk-5SWY36EZ.js → chunk-4SIPG47B.js} +1 -1
  6. package/dist/chunks/chunk-7ARO3R4C.js +9 -0
  7. package/dist/chunks/chunk-7SLHEYYR.js +337 -0
  8. package/dist/chunks/chunk-COR5IL6E.js +2 -0
  9. package/dist/chunks/{chunk-4WRJWM6K.js → chunk-FD3ICZTF.js} +1 -1
  10. package/dist/chunks/{chunk-RGLTNGJH.js → chunk-L6MXM22Q.js} +1 -1
  11. package/dist/chunks/chunk-SB3V6PTJ.js +1 -0
  12. package/dist/chunks/chunk-SQ6D33WV.js +96 -0
  13. package/dist/chunks/{chunk-ACYEMD5J.js → chunk-UREPZPIT.js} +1 -1
  14. package/dist/chunks/{fitment-data-CFDAFXJB.js → fitment-data-BQFU5HN3.js} +1 -1
  15. package/dist/chunks/section-css-style-VF2FOE3B.js +1 -0
  16. package/dist/editor/lib/document/blocks/commerce/AccountBlock/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/commerce/CartBlock/fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/commerce/CountrySwitchBlock/fields.js +1 -1
  19. package/dist/editor/lib/document/blocks/commerce/SearchBlock/fields.js +1 -1
  20. package/dist/editor/lib/document/blocks/commerce/ThemeSwitchBlock/fields.js +1 -1
  21. package/dist/editor/lib/document/blocks/service/ContactRouting/fields.js +1 -1
  22. package/dist/editor/lib/document/blocks/service/Form/fields.js +1 -1
  23. package/dist/editor/lib/document/blocks/service/index.d.ts +1 -1
  24. package/dist/editor/lib/storefront-editor-words.d.ts +1 -0
  25. package/dist/editor/lib/storefront-editor-words.js +1 -1
  26. package/dist/editor.css +1 -1
  27. package/dist/index.d.ts +29 -2
  28. package/dist/index.js +33 -33
  29. package/dist/render/built-with.json +1 -1
  30. package/dist/render/components/AppointmentBooking.js +1 -1
  31. package/dist/render/components/CheckoutCTA.js +1 -1
  32. package/dist/render/components/CollectionCard.js +1 -1
  33. package/dist/render/components/Collections.js +1 -1
  34. package/dist/render/components/ContactRouting.d.ts +5 -1
  35. package/dist/render/components/ContactRouting.js +1 -1
  36. package/dist/render/components/DeliveryOptions.js +1 -1
  37. package/dist/render/components/Events.js +1 -1
  38. package/dist/render/components/FitmentTable.js +1 -1
  39. package/dist/render/components/FooterMenu.js +1 -1
  40. package/dist/render/components/FooterSection.js +1 -1
  41. package/dist/render/components/FormBlock.d.ts +9 -2
  42. package/dist/render/components/FormBlock.js +1 -1
  43. package/dist/render/components/GalleryGrid.js +3 -3
  44. package/dist/render/components/GalleryItem.js +1 -1
  45. package/dist/render/components/GalleryShowcase.js +1 -1
  46. package/dist/render/components/HeaderToolBlocks.d.ts +11 -5
  47. package/dist/render/components/HeaderToolBlocks.js +1 -1
  48. package/dist/render/components/HeaderTools.d.ts +1 -0
  49. package/dist/render/components/HeaderTools.js +1 -1
  50. package/dist/render/components/PhoneMenuAccount.d.ts +6 -0
  51. package/dist/render/components/PhoneMenuAccount.js +1 -0
  52. package/dist/render/components/PhoneSheet.js +1 -1
  53. package/dist/render/components/ProductGridSection.js +1 -1
  54. package/dist/render/components/ProductHeroPanel.js +1 -1
  55. package/dist/render/components/ReviewForm.js +1 -1
  56. package/dist/render/components/Reviews.js +1 -1
  57. package/dist/render/components/SectionBand.d.ts +2 -1
  58. package/dist/render/components/SectionBand.js +1 -1
  59. package/dist/render/components/SectionGroupBody.js +1 -1
  60. package/dist/render/components/SectionNotice.js +1 -1
  61. package/dist/render/components/SectionPadScope.d.ts +23 -0
  62. package/dist/render/components/SectionPadScope.js +1 -0
  63. package/dist/render/components/ThanksCard.d.ts +9 -0
  64. package/dist/render/components/ThanksCard.js +1 -0
  65. package/dist/render/components/catalog/CatalogFilterBar.js +1 -1
  66. package/dist/render/components/pdp-dynamic/DynamicGalleryGrid.js +1 -1
  67. package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
  68. package/dist/render/lib/content/block-own-pads.d.ts +27 -0
  69. package/dist/render/lib/content/block-own-pads.js +1 -0
  70. package/dist/render/lib/content/thanks-slot.d.ts +12 -0
  71. package/dist/render/lib/content/thanks-slot.js +1 -0
  72. package/dist/render/lib/document/blocks/commerce/AccountBlock/render.js +1 -1
  73. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.js +1 -1
  74. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
  75. package/dist/render/lib/document/blocks/commerce/BundleOffer/meta.js +1 -1
  76. package/dist/render/lib/document/blocks/commerce/BundleOffer/render.js +1 -1
  77. package/dist/render/lib/document/blocks/commerce/CartBlock/render.js +1 -1
  78. package/dist/render/lib/document/blocks/commerce/CatalogFilterBar/meta.js +1 -1
  79. package/dist/render/lib/document/blocks/commerce/CatalogFilterBar/render.js +1 -1
  80. package/dist/render/lib/document/blocks/commerce/CheckoutCTA/meta.js +1 -1
  81. package/dist/render/lib/document/blocks/commerce/CheckoutCTA/render.js +1 -1
  82. package/dist/render/lib/document/blocks/commerce/Collections/meta.js +1 -1
  83. package/dist/render/lib/document/blocks/commerce/Collections/render.js +1 -1
  84. package/dist/render/lib/document/blocks/commerce/CompatibleTyres/meta.js +1 -1
  85. package/dist/render/lib/document/blocks/commerce/CompatibleTyres/render.js +1 -1
  86. package/dist/render/lib/document/blocks/commerce/CountrySwitchBlock/render.js +1 -1
  87. package/dist/render/lib/document/blocks/commerce/DeliveryOptions/meta.js +1 -1
  88. package/dist/render/lib/document/blocks/commerce/DeliveryOptions/render.js +1 -1
  89. package/dist/render/lib/document/blocks/commerce/EuTyreLabel/meta.js +1 -1
  90. package/dist/render/lib/document/blocks/commerce/EuTyreLabel/render.js +1 -1
  91. package/dist/render/lib/document/blocks/commerce/FitmentFinder/meta.js +1 -1
  92. package/dist/render/lib/document/blocks/commerce/FitmentFinder/render.js +1 -1
  93. package/dist/render/lib/document/blocks/commerce/FitmentTable/meta.js +1 -1
  94. package/dist/render/lib/document/blocks/commerce/FitmentTable/render.js +1 -1
  95. package/dist/render/lib/document/blocks/commerce/Gallery/meta.js +1 -1
  96. package/dist/render/lib/document/blocks/commerce/Gallery/render.js +1 -1
  97. package/dist/render/lib/document/blocks/commerce/ProductHero/meta.js +1 -1
  98. package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
  99. package/dist/render/lib/document/blocks/commerce/RelatedProducts/meta.js +1 -1
  100. package/dist/render/lib/document/blocks/commerce/RelatedProducts/render.js +1 -1
  101. package/dist/render/lib/document/blocks/commerce/SearchBlock/render.js +1 -1
  102. package/dist/render/lib/document/blocks/commerce/SpecTable/meta.js +1 -1
  103. package/dist/render/lib/document/blocks/commerce/SpecTable/render.js +1 -1
  104. package/dist/render/lib/document/blocks/commerce/ThemeSwitchBlock/render.js +1 -1
  105. package/dist/render/lib/document/blocks/commerce/TyreFitment/meta.js +1 -1
  106. package/dist/render/lib/document/blocks/commerce/TyreFitment/render.js +1 -1
  107. package/dist/render/lib/document/blocks/commerce/TyreSizes/meta.js +1 -1
  108. package/dist/render/lib/document/blocks/commerce/TyreSizes/render.js +1 -1
  109. package/dist/render/lib/document/blocks/service/AppointmentBooking/meta.js +1 -1
  110. package/dist/render/lib/document/blocks/service/AppointmentBooking/render.js +1 -1
  111. package/dist/render/lib/document/blocks/service/ContactRouting/meta.d.ts +4 -0
  112. package/dist/render/lib/document/blocks/service/ContactRouting/meta.js +1 -1
  113. package/dist/render/lib/document/blocks/service/ContactRouting/render.js +1 -1
  114. package/dist/render/lib/document/blocks/service/Form/meta.d.ts +6 -0
  115. package/dist/render/lib/document/blocks/service/Form/meta.js +1 -1
  116. package/dist/render/lib/document/blocks/service/Form/render.js +1 -1
  117. package/dist/render/lib/document/blocks/service/ReviewForm/meta.js +1 -1
  118. package/dist/render/lib/document/blocks/service/ReviewForm/render.js +1 -1
  119. package/dist/render/lib/document/blocks/service/Reviews/meta.js +1 -1
  120. package/dist/render/lib/document/blocks/service/Reviews/render.js +1 -1
  121. package/dist/render/lib/document/blocks/service/SubmitBuild/meta.js +1 -1
  122. package/dist/render/lib/document/blocks/service/SubmitBuild/render.js +1 -1
  123. package/dist/render/lib/document/blocks/service/Subscribe/meta.js +1 -1
  124. package/dist/render/lib/document/blocks/service/Subscribe/render.js +1 -1
  125. package/dist/render/lib/document/blocks/service/SubscribeBlogs/meta.js +1 -1
  126. package/dist/render/lib/document/blocks/service/SubscribeBlogs/render.js +1 -1
  127. package/dist/render/lib/document/card-templates.js +1 -1
  128. package/dist/render/lib/document/pads-itself.d.ts +16 -0
  129. package/dist/render/lib/document/pads-itself.js +1 -0
  130. package/dist/routine-index.json +1 -1
  131. package/dist/value-index.json +1 -1
  132. package/dist/words.d.ts +1 -0
  133. package/dist/words.js +1 -1
  134. package/package.json +2 -2
  135. package/dist/chunks/CustomHtmlCodeWindow-KB7QEJAG.js +0 -26
  136. package/dist/chunks/SiteEditorProvider-TYNFV3WZ.js +0 -1
  137. package/dist/chunks/chunk-4M7WJPOZ.js +0 -7
  138. package/dist/chunks/chunk-AEBQM5LZ.js +0 -2
  139. package/dist/chunks/chunk-DHKJAYUG.js +0 -337
  140. package/dist/chunks/chunk-HKL2EKLO.js +0 -96
  141. package/dist/chunks/section-css-style-TKWJ7WU2.js +0 -1
  142. /package/dist/chunks/{chunk-DHKJAYUG.js.LEGAL.txt → chunk-7SLHEYYR.js.LEGAL.txt} +0 -0
  143. /package/dist/chunks/{chunk-3DCSW3PN.js → chunk-ECMYL3O7.js} +0 -0
  144. /package/dist/chunks/{chunk-ACYEMD5J.js.LEGAL.txt → chunk-UREPZPIT.js.LEGAL.txt} +0 -0
  145. /package/dist/chunks/{chunk-5NGS7VFJ.js → chunk-VYXOE5FY.js} +0 -0
@@ -1,337 +0,0 @@
1
- import{$ as Jd,D as hk,E as Ik,F as Kd,G as gk,H as kk,I as wr,J as vk,K as Pk,L as Tk,M as ot,N as qd,O as vo,P as ie,R as Vd,S as Cr,T as Yd,X as Ok,Y as Xd,Z as kr,_ as Ek,a as Ko,b as Ks,ba as Hv,c as Rd,d as In,e as qs,f as YC,fa as Xv,g as gn,h as Dd,ha as Jv,ia as Of,ja as kT,ka as vT,r as Zs}from"./chunk-RGLTNGJH.js";import{a as tP,d as cf,e as tt,f as pf,g as uf,h as If,l as Lx}from"./chunk-5NGS7VFJ.js";import{$ as xn,$a as ox,$c as fx,$e as lP,$f as OP,A as pC,Aa as HC,Ab as Sn,Ac as qk,Ad as Pv,Ae as bt,Af as IP,Ag as DP,Aj as iT,B as uC,Ba as WC,Bb as Js,Bc as Mt,Bd as Tv,Be as Te,Bf as gP,Bg as NP,Bk as Pf,C as Zo,Ca as $C,Cc as $e,Cd as Ov,Ce as eP,Cf as yP,Cg as MP,Ck as Tf,D as mC,Da as zC,Dc as vr,Dd as px,Df as SP,Dg as bx,Dj as Tx,Dk as Ax,E as xC,Ea as UC,Eb as nx,Ec as lx,Ed as Ev,Eg as HP,Ej as sl,Ek as ST,F as hC,Fa as jC,Fb as bn,Fc as Vk,Fd as ux,Ff as bP,Fg as wx,Fk as da,G as IC,Ga as yr,Gb as Gd,Gc as Yk,Gd as _v,Ge as mx,Gg as or,Gk as bT,H as gC,Ha as GC,Hb as uk,Hc as Xk,Hd as Av,Hg as Cx,Hj as On,Hk as wT,I as yC,Ib as mk,Ic as af,Id as Fv,Ig as yf,Ik as CT,J as SC,Ja as KC,Jb as xk,Jc as el,Jd as Ht,Je as al,Jg as WP,Jj as dT,Ka as Nd,Kb as Zd,Kc as Jk,Kd as Bv,Kg as $P,Kk as PT,L as bC,La as Vs,Lb as Ak,Lc as Zk,Ld as na,Lg as zP,Lk as Fx,M as wC,Ma as Md,Mb as Qd,Mc as Qk,Md as Lv,Mf as wP,Mg as UP,N as CC,Na as XC,Nb as sx,Nc as nf,Nd as kn,Ne as oP,Nf as CP,Ng as jP,Nk as TT,O as Ed,Ob as ef,Oc as ev,Oe as xx,Of as kP,Ok as OT,P as kC,Pc as ov,Pd as Qt,Pe as rP,Pf as yx,Pk as ET,Q as vC,Qc as ix,Qd as Rv,Qf as vP,Qg as GP,Qj as fT,Qk as _T,Ra as JC,Rc as tv,Rd as rl,Rf as PP,Rg as KP,Rj as Ox,Rk as AT,Sa as ZC,Sc as dx,Sd as Dv,Sf as Sx,Sj as cT,Sk as FT,Ta as Ys,Tb as wn,Td as sa,Tj as pT,Uc as rv,Ud as Nv,Ui as ia,V as Vm,Va as yn,Vc as av,Vj as vf,Wa as QC,Wb as Fk,Wc as nv,Wd as sf,We as aP,Wf as er,Wi as tr,Wj as En,X as Us,Xa as Hd,Xb as Bk,Xc as sv,Xd as Tr,Xe as nP,Xj as _n,Y as _d,Ya as ek,Yb as Lk,Yc as lv,Yd as Mv,Ye as mf,Yf as vn,Yh as QP,Yj as ll,Z as Bo,Za as Xs,Zb as Qs,Zc as ta,Ze as sP,Zg as Sf,Zh as eT,Zj as An,_ as Ym,_a as ok,_c as iv,_e as hx,_f as TP,_j as uT,a as Fo,aa as PC,ab as tk,ad as dv,af as iP,ag as gf,b as pn,ba as TC,bb as tx,bd as fv,bf as dP,bg as Or,bj as Cf,ca as OC,cb as rk,cd as cv,cf as fP,cg as EP,d as Vw,da as EC,db as rx,dd as pv,df as xf,dh as qP,dj as rT,e as jm,ea as _C,ed as uv,ee as Wv,eg as Pn,f as Yw,fa as Xm,fb as ak,fd as Pr,ff as cP,fh as VP,fk as mT,g as c,gb as nk,gd as ol,gk as xT,h as Rt,ha as AC,hd as ra,he as $v,hi as oT,hl as Bx,i as mn,ia as Ad,ib as Wd,ic as Cn,id as mv,ie as zv,if as Ix,ii as tT,j as $s,jb as sk,jc as Nt,je as Uv,k as No,kb as lk,kc as Rk,kd as aa,l as zs,lb as ik,lc as Dk,ld as tl,mb as dk,mc as Nk,md as xv,n as rC,nb as $d,nc as Mk,nd as hv,nf as pP,ng as Er,nk as Ex,o as aC,ob as fk,oc as Hk,oe as Mo,of as uP,og as _P,p as nC,pc as of,pd as Iv,pe as eo,pf as hf,pg as AP,ph as kx,pj as aT,pk as hT,pl as BT,q as sC,qc as tf,qd as gv,qf as mP,qg as FP,qh as bf,qk as IT,ql as LT,r as lC,rb as ck,rc as Wk,rd as yv,re as lf,rf as xP,rh as la,rk as gT,rl as Ef,s as iC,sb as Sr,se as jv,sh as wf,sj as nT,sl as RT,t as dC,tb as zd,tc as $k,td as Sv,te as Gv,tj as kf,tk as yT,u as Od,ub as Ud,uc as zk,ud as bv,ue as Kv,ug as BP,uh as YP,uj as vx,ul as Fn,v as gr,va as RC,vb as pk,vc as Uk,vd as wv,ve as qv,vh as XP,vj as sT,vk as _x,vl as _f,wa as DC,wb as ko,wc as rf,wd as Cv,we as df,wh as JP,wj as lT,x as qm,xa as NC,xb as ax,xc as jk,xd as cx,xe as Vv,xh as ZP,xj as Px,y as fC,ya as MC,yb as jd,yc as Gk,yd as kv,ye as Yv,yf as hP,yg as LP,z as cC,za as Qm,zb as Dt,zc as Kk,zd as vv,ze,zf as gx,zg as RP,zj as Tn}from"./chunk-4M7WJPOZ.js";import{a as oC,b as Td,c as tC,g as _k}from"./chunk-AEBQM5LZ.js";import{$a as Pb,$c as Co,$d as sw,$e as Wm,$g as Km,A as no,Ae as Nm,Af as zm,B as en,Bb as Ds,Bd as Rm,Be as fw,Ca as ye,Cb as $b,D as Bs,Dd as ow,De as Mm,E as Qi,Ed as pd,F as At,Fg as Ww,G as on,Ga as Xo,Gb as dd,Gd as Jo,Gg as $w,H as We,Ha as gt,Hc as qb,Hd as Do,He as xd,Hf as kw,Hg as zw,I as Ve,Ia as hm,Id as Qe,Ie as hd,Ig as Uw,J as tn,Ja as Im,Jc as _m,Jd as Bt,Je as cw,Jh as ex,K as ed,Kd as Jt,Ke as Id,Kf as Zt,Kh as hn,L as $,La as gm,Lb as zb,Ld as St,Le as gd,Lg as jw,Lh as qC,M as xo,Ma as ym,Md as ln,Me as pw,Mh as Qo,N as QS,Nd as tw,Ne as uw,Nh as et,O as eb,Od as dn,Oe as yd,Og as Gw,Oh as Ld,Pd as rw,Pe as Sd,Pg as Kw,Ph as VC,Q as ob,Qa as Sm,Qb as fd,Qc as Vb,Qe as oa,Qf as vw,Qh as Gs,R as od,Ra as gb,Re as mw,Rg as qw,S as tb,Sa as yb,T as Jr,Ta as Ge,Tb as Ub,Td as ea,Tg as Xw,U as rb,Ua as Sb,Ub as jb,Ud as aw,Ug as Jw,V as ab,Va as sd,Vd as nw,Ve as xw,W as Ls,Wa as bb,Wb as Gb,Wd as fn,Wf as Pw,Wg as Ir,X as mm,Xa as wb,Xc as U,Xd as Ms,Xf as Tw,Xh as yk,Y as Ce,Ya as Cb,Yb as Tm,Yc as te,Yd as Hs,Ye as Lt,Yf as Ow,Yg as Zw,Z as G,Za as kb,Zc as Am,Zd as Dm,Ze as Ws,Zf as Ew,Zg as Gm,_ as nb,_a as vb,_c as A,_e as Hm,_g as Qw,a as Qa,aa as td,ab as Tb,ad as Yt,ae as lw,af as hw,ah as Pd,b as mo,ba as sb,bb as Ob,bd as Yb,be as iw,bf as Iw,bg as _w,c as ao,ca as rd,cb as ld,cd as M,cf as bd,cg as Aw,ch as eC,ci as Sk,d as qt,da as lb,db as id,dd as cd,de as dw,df as gw,di as br,ea as ib,eb as Eb,ed as Ro,eg as Fw,f as Go,fa as xm,fb as _b,fc as Om,fd as Xb,fe as ud,fg as Bw,fi as bk,g as Fs,ga as db,gd as yt,gf as yw,gg as kd,gi as wk,h as GS,ha as fb,hb as Ab,hd as Ft,he as md,hf as wd,hg as Lw,hi as Ck,i as KS,ia as cb,ib as Fb,id as Fm,if as Sw,ig as vd,j as qS,jb as bm,jd as xr,jf as $m,jg as Um,k as VS,kb as Bb,kd as Xt,kf as bw,la as pb,lb as Lb,ld as Jb,lf as ww,li as Po,ma as ub,mb as wm,mf as Cd,mg as Rw,na as mb,nb as an,nd as Ae,nf as cn,ng as Dw,o as YS,ob as Zr,od as Qr,of as un,pa as xb,pb as Cm,pd as Ns,pf as hr,pi as nl,qb as km,qd as nn,qg as Nw,qh as Jm,ra as hb,rb as vm,rd as Zb,rg as Mw,rh as Fd,s as XS,sa as ad,sb as Rb,sd as Bm,sh as FC,ta as Ib,tb as Db,td as sn,tf as Cw,th as Zm,u as De,ua as nd,ub as Nb,uc as Em,ud as Lm,ug as Hw,uh as BC,v as JS,vb as Pm,w as Zi,wb as Mb,wc as Kb,wh as Bd,x as ZS,xb as Vt,xh as LC,ya as Rs,yb as Hb,yd as Qb,yh as js,z as Pe,za as rn,zb as Wb,zd as ew}from"./chunk-HKL2EKLO.js";import{c as Zv,d as Qv,e as ff}from"./chunk-3DCSW3PN.js";import{jsx as Rx,Fragment as _4,jsxs as A4}from"react/jsx-runtime";import{createContext as F4,useContext as B4}from"react";var L4={mirrorHostStyles:!0,css:null,fontHrefs:[]},DT=F4(L4);function Eae({value:e,children:o}){return Rx(DT.Provider,{value:e,children:o})}function il(){return B4(DT)}function NT(){let{css:e,fontHrefs:o}=il();return A4(_4,{children:[o.map(t=>Rx("link",{rel:"stylesheet",href:t},t)),e?Rx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as R4}from"react/jsx-runtime";import{createContext as D4,useContext as N4}from"react";var MT=D4(void 0);function Bae({metadata:e,children:o}){return R4(MT.Provider,{value:e,children:o})}var HT=()=>N4(MT);import{jsx as fo,Fragment as u4,jsxs as Vi}from"react/jsx-runtime";import{useCallback as Os,useEffect as jt,useRef as oae,useState as d4}from"react";import{SettingsSwitch as tae}from"efficient-easel/panel";import{PagesIcon as rae,StylesIcon as aae}from"efficient-easel/rail";import{PaletteIcon as nae}from"efficient-shell/icons/efficient";import{Subtree as sae,TreeRow as m4}from"efficient-easel/tree";import{useEasel as x4}from"efficient-easel/easel";import{toItemSelector as lae}from"efficient-easel/node-ops";import{useEaselStrings as h4}from"efficient-easel/strings";import{createContext as M4,useContext as H4}from"react";var Dx=M4(!1),Dae=()=>H4(Dx);import{useMemo as W4,useRef as $4}from"react";import{useEaselApi as z4}from"efficient-easel/easel";import{useSectionOps as U4}from"efficient-easel/screen/lib/document/use-section-ops";function Af(){let e=z4(),o=U4(),t=$4(o);return t.current=o,W4(()=>({getItemById:r=>e.getState().getItemById(r),getSelectorForId:r=>e.getState().getSelectorForId(r),get components(){return e.getState().config.components},replace:(r,a,n)=>t.current.replaceComponent(r,a,n)}),[e])}import{encodePartId as f6}from"efficient-easel/draw";import{insertAt as c6,moveTo as p6,removeAt as u6}from"efficient-easel/fields";import{useSyncExternalStore as r6}from"react";import{isNodeList as WT}from"efficient-easel/data";var $T="Flex";function Bn(e,o){return Lt(e)?typeof e?.[Go]=="string"?Nx(o?.[Go]):"":Nx(e?.[Go])}var Nx=e=>typeof e=="string"?e.trim():"",j4=e=>e.type===no&&Array.isArray(e.props?.[Mm])&&e.props[Mm].some(o=>Nx(o?.[Go])!==""),G4=new Intl.NumberFormat("en-US");function K4(e){return/^\d+$/.test(e)?G4.format(Number(e)):e}function Kae(e,o){let t=o?o.find(r=>r.key===e)?.value:XS(Fs).find(r=>r.key===e)?.value;return t===void 0?null:K4(t)}var q4={[Go]:"any"};function Mx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Bn(t)!==""||o&&Bn(t,q4)!==""),a=o||j4(e),n=Ve(e,l=>We(l,i=>{let d=Mx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==$T)return{node:n===t?e:{...e,props:n},names:r};let s=De(n);if(r&&!s&&(n={...n,[ao]:Fs}),!r&&s===Fs){let{[ao]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function zT(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of on(r??{})){let n=zT(a,o,r.type===$T?r:t);if(n!==void 0)return n}}}function qae(e,o){if(!WT(e))return!0;let t=zT(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=De(t.props);return!r||r===Fs}function UT(e){let o=e?.content;if(!WT(o))return e;let t=o.map(r=>Mx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function jT(e){return Mx(e).node}import{decodePartId as a6}from"efficient-easel/draw";function Ln(e,o){let t=zk(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?IT(t,o.index):null:Uk(e)?.[o.rowKey]??null}function Ff(e,o,t){let r=e.node.props,{key:a,row:n}=Nt(e.propKey),s=n?Gk(r,a,n,e.kind,o):$k(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as qT}from"efficient-easel/draw";import{parseOption as V4}from"efficient-shell/format";var Hx=e=>String(e+1).padStart(2,"0"),Y4=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Wx="two-digit",GT=e=>V4(Y4,Wx,e),Bf=(e,o)=>e==="plain"?`${o+1}.`:Hx(o);var Ux="Contents",$x="Flex",KT="Text",X4="numberForm",J4="_contentsEntries",Z4="_kickerNumber",VT="data-sf-kicker-number",Q4=e=>qT(e).text.trim(),YT=e=>sa(e?.anchor),zx=e=>String(e.props?.id??""),e6=e=>!qT(e.props?.text).hidden&&!Bn(e.props)&&!Lt(e.props),dl=e=>on(e);function XT(e){for(let o of dl(e))for(let t of o){if(Qt(t.props??{}))continue;if(t.type===KT&&e6(t))return t;if(t.type===KT)continue;let r=XT(t);if(r)return r}}function JT(e){return dl(e).some(o=>o.some(t=>t&&!Qt(t.props??{})&&(t.type===Ux||JT(t))))}var ZT=e=>e.type===$x&&vn($x,e.props?.direction)==="row";function QT(e){return dl(e).some(o=>o.some(t=>t&&!Qt(t.props??{})&&(t.type===Ux||!ZT(t)&&QT(t))))}function o6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||Qt(n.props??{}))continue;if(n.type===Ux){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(ZT(n)&&QT(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of dl(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===$x&&YT(n.props)&&s&&!JT(n)){s.push({box:n,kicker:XT(n)});continue}for(let l of dl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function t6(e){return e.map(o=>({label:o.kicker?rn(Q4(o.kicker.props?.text)):"",anchor:YT(o.box.props)}))}function jx(e){let o=e?.length?o6(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=zx(a.contents);n&&t.set(n,t6(a.sections));let s=GT(a.contents.props?.[X4]);a.sections.forEach((l,i)=>{let d=l.kicker?zx(l.kicker):"";d&&r.set(d,Bf(s,i))})}return{entries:t,numbers:r}}var pne=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function e0(e){let o=e;if(!o?.content?.length)return e;let t=jx(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=Ve(s,h=>We(h,n)),i=l.props??{},d=l!==s,f=zx(s),x=f?r.get(f):void 0;x&&(i={...i,[J4]:x},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[Z4]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var n6=`[${VT}]`,s6=["bold","italic","underline","strike","link","sup","sub"],l6=["bullet","number"];function qx(e,o){return e?[...s6,...o?l6:[]]:[]}function o0(e,o){let t=a6(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:l,row:i}=Nt(a),d=o.components[n.type]?.fields?.[l],f=i?Ln(d,i):d,x=of(f);if(!x)return null;let u=n.props??{};if(QP(u)!==null||!i&&bd(n.type,u,l)||n.type==="Text"&&l==="text"&&Bn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?rf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:x,stored:h,offPage:Cf(f),panelOnly:Hk(f)}}function Lf(e,o){let t=o0(e,o);if(!t)return null;let{text:r,hidden:a}=ia(t.stored);if(!ov({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=tf(t.kind);return{partId:e,value:r,rules:ad,multiline:n,skip:n6,offered:qx(t.kind!=="plainText",n),write:s=>{let l=o0(e,o);l&&Ff({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function Vx(e,o,t){return e?.isConnected&&e.getAttribute($e)===t?e:o?.querySelector(`[${$e}="${Rf(t)}"]`)??null}function Rf(e){return e.replace(/["\\]/g,"\\$&")}function t0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Gx=null,Kx=new Set;function i6(){return Gx}function Yx(e){if(e!==Gx){Gx=e;for(let o of Kx)o()}}function d6(e){return Kx.add(e),()=>{Kx.delete(e)}}function r0(){return r6(d6,i6,()=>null)}function a0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=pw(t.type);return!r||De(t.props)?null:{node:t,rows:r}}function m6(e,o){let t=a0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=gw(r.type,r.props,e.key);if(!a)return null;let n=t.node.props[t.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:f6(e.ownerId,Cn(t.rows,{index:e.index,rowKey:a}))}function Df(e,o){let t=m6(e,o);return t?Lf(t,o):null}function n0(e,o){return Df(e,o)?.value}function s0(e,o){let t=Df(e,o);return t?(t.write(e.text),!0):!1}function l0(e,o){let t=a0(e,o),r=t&&o.getSelectorForId(e.ownerId);if(!t||!r)return!1;let a=t.node.props,n=a[t.rows],s=e.index;if(!Array.isArray(n)||s<0||s>=n.length)return!1;let l;switch(e.action){case"addAfter":{let i=o.components[t.node.type]?.fields?.[t.rows];l=c6(n,s+1,{...i?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{let i=e.action==="moveEarlier"?s-1:s+1;if(i<0||i>=n.length)return!1;l=p6(n,s,i);break}case"delete":l=u6(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as ve,Fragment as IJ,jsxs as Eu}from"react/jsx-runtime";import{Fragment as gJ,useEffect as FM,useMemo as BM,useRef as yJ,useState as Ma}from"react";import{useScreenDocument as MM}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Ey}from"efficient-easel/draw/client";import SJ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as bJ}from"efficient-easel/chrome";import{Input as wJ,PopupMenu as CJ,PopupMenuItem as LM,toast as RM}from"efficient-shell/ui";import{LayersTree as kJ,TreeGroupLabel as vJ,TreeRow as DM,TreeRowAction as _u}from"efficient-easel/tree";import{AddIcon as PJ,DuplicateIcon as TJ,PageIcon as OJ,SettingsIcon as EJ}from"efficient-easel/icons";import{PagesIcon as _J}from"efficient-easel/rail";import{useEaselHost as AJ}from"efficient-easel/screen/lib/host";import{useEaselSession as _y}from"efficient-easel/screen/lib/session-context";import{useCallback as Nf,useEffect as x6,useSyncExternalStore as h6}from"react";import{useScreenDocument as c0}from"efficient-easel/screen/components/ScreenDocumentContext";var i0=new WeakMap;function fl(e){let o=i0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},i0.set(e,o)),o}function Xx(e,o){e.rows=o;for(let t of e.listeners)t()}var Mf=new Set;function Hf(e,o){o?Mf.add(e):Mf.delete(e)}function d0(e){let o=fl(e),t=e.listPages().then(r=>Xx(o,Mf.size?r.filter(a=>!Mf.has(a.id)):r),()=>Xx(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var f0=()=>null,I6=()=>()=>{};function cl(){let{adapter:e,ready:o}=c0(),t=Nf(l=>{let{listeners:i}=fl(e);return i.add(l),()=>i.delete(l)},[e]),r=Nf(()=>fl(e).rows,[e]),a=h6(o?t:I6,o?r:f0,f0);x6(()=>{if(!o)return;let l=fl(e);l.rows===null&&!l.loading&&d0(e)},[e,o]);let n=Nf(()=>o?d0(e):Promise.resolve(),[e,o]),s=Nf(l=>Xx(fl(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function g6(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function p0(){let{currentSlug:e}=c0(),{rows:o}=cl();return g6(o,e)}import{canDuplicatePage as FJ,DuplicatePageDialog as BJ}from"efficient-easel/page-copy";import{jsx as Eo,jsxs as kM}from"react/jsx-runtime";import{useEffect as eJ,useId as oJ,useMemo as tJ,useRef as rJ,useState as Py}from"react";import{useScreenDocument as aJ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as nJ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as vM}from"efficient-easel/page-copy";import{AddIcon as sJ}from"efficient-easel/icons";import{Button as lJ,Dialog as iJ,EmptyState as dJ,LoadingSpinner as fJ,Paragraph as cJ,SidebarLayout as pJ,SidebarNavItem as Ty,Title as uJ,toast as PM}from"efficient-shell/ui";import{jsx as kt,jsxs as UL}from"react/jsx-runtime";import{useEffect as a7,useState as Sg}from"react";import{CanvasFrame as n7}from"efficient-easel/easel";import{Button as s7,Card as l7,FitFrame as i7,Text as d7}from"efficient-shell/ui";import{jsx as I0,Fragment as _6,jsxs as A6}from"react/jsx-runtime";import{useEffect as g0,useLayoutEffect as F6}from"react";var Wf="data-theme",u0="light";function y6(e){return e.getAttribute(Wf)===u0?"light":"dark"}function S6(e,o){return y6(e)===o?!1:(o==="light"?e.setAttribute(Wf,u0):e.removeAttribute(Wf),!0)}function b6(e){return Lx(e).getItem(zm)}function $ne(e,o){Lx(e).setItem(zm,o)}function w6(e,o,t=new Date().getHours()){return kw({mode:o.mode,override:b6(e),switchShown:o.switchShown,hour:t})}function m0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>S6(t,w6(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Wf]}),()=>n.disconnect()}var C6="style";function k6(e,o){let t=vd(o),r=!1;for(let a of Lw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function x0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>k6(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[C6]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as v6,VIEW_TABLET_MIN as P6}from"efficient-easel/screen/lib/content/view-tiers";var rr={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},qo=rr,T6=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),O6=String.raw`(function (doc) {
2
- if (doc.__sfFitWords) return;
3
- var win = doc.defaultView;
4
- var SELECTOR = "h1,h2,h3,h4,h5,h6,[class*='font-heading'],[class*='font-display']";
5
- // Body text a block asked to shrink (its Text group's Shrink), beside
6
- // the headings: what this script may fit at all. modeOf() decides each one.
7
- var SHRINK_BODY = ${JSON.stringify(T6([qo.fit,qo.fitTablet,qo.fitPhone]))};
8
- var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
9
- var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Vt};
10
- var TABLET_MIN = ${P6}, DESKTOP_MIN = ${v6};
11
-
12
- // A block's own answer (lib/content/block-size, the wrapper's attributes):
13
- // the fit "wrap" | "shrink" | "line" | "ellipsis" and the floor, each with a tablet and a
14
- // phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
15
- // in a Box, marked edge; 720 outside one) the tablet's where it has one;
16
- // under it the phone's, else the tablet's, else the desktop's. With no
17
- // tablet answer the phone's is read under 800, as before (the edge moves with
18
- // F1). With none, a heading shrinks and body text wraps, as always.
19
- // A holder with any tablet attribute takes the three views (its line and 1100)
20
- // for its fit AND its floor together; one with none keeps the 800 edge.
21
- var TABLET_ATTRS = [${JSON.stringify(qo.fitTablet)}, ${JSON.stringify(qo.minTablet)}];
22
- function own(el, attr, tabletAttr, phoneAttr) {
23
- var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
24
- if (!holder) return null;
25
- var w = win.innerWidth, d = holder.getAttribute(attr);
26
- if (w >= DESKTOP_MIN) return d;
27
- var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
28
- if (w < (holder.hasAttribute(${JSON.stringify(qo.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
29
- if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
30
- return (w < PHONE_BELOW && p) || d;
31
- }
32
- function modeOf(el) {
33
- var mode = own(el, ${JSON.stringify(qo.fit)}, ${JSON.stringify(qo.fitTablet)}, ${JSON.stringify(qo.fitPhone)});
34
- if (mode === "wrap" || mode === "shrink") return mode;
35
- // One line and Shorten (stored "ellipsis", which cuts its words with "..."):
36
- // the block keeps its words at their set size, nothing shrinks.
37
- if (mode === "line" || mode === "ellipsis") return "wrap";
38
- return el.matches(SELECTOR) ? "shrink" : "wrap";
39
- }
40
- function floorOf(el, set) {
41
- var raw = own(el, ${JSON.stringify(qo.min)}, ${JSON.stringify(qo.minTablet)}, ${JSON.stringify(qo.minPhone)});
42
- var min = parseFloat(raw);
43
- // A Min font size in vw (block-size.ts): a share of the window's width.
44
- if (/vw$/.test(String(raw))) min = min * win.innerWidth / 100;
45
- return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
46
- }
47
-
48
- function measure(el) {
49
- var widest = 0, current = 0, last = null, split = false, lastBlock = null;
50
- function blockOf(n) {
51
- for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
52
- var d = win.getComputedStyle(p).display;
53
- if (d.indexOf("inline") !== 0 && d !== "contents") return p;
54
- }
55
- return el;
56
- }
57
- function close() { if (current > widest) widest = current; current = 0; last = null; }
58
- var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
59
- while ((node = walker.nextNode())) {
60
- if (node.nodeType === 1) {
61
- if (node.tagName === "BR" || node.tagName === "WBR") close();
62
- continue;
63
- }
64
- var block = blockOf(node);
65
- if (block !== lastBlock) close();
66
- lastBlock = block;
67
- var re = /(\S+)|(\s+)/g, m;
68
- while ((m = re.exec(node.data))) {
69
- if (m[2]) { close(); continue; }
70
- range.setStart(node, m.index);
71
- range.setEnd(node, m.index + m[0].length);
72
- var rects = range.getClientRects();
73
- for (var i = 0; i < rects.length; i++) {
74
- var r = rects[i];
75
- if (r.width <= 0) continue;
76
- current += r.width;
77
- if (last && r.top > last.top + last.height / 2) split = true;
78
- last = r;
79
- }
80
- }
81
- }
82
- close();
83
- return { widest: widest, split: split };
84
- }
85
-
86
- function lineWidth(el) {
87
- var cs = win.getComputedStyle(el);
88
- return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
89
- - parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
90
- }
91
-
92
- // ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
93
- // runs before React hydrates, and React 19 in development reports ANY
94
- // attribute that differs from what it rendered ("a tree hydrated but some
95
- // attributes didn't match"): first our inline font-size on the hero (which
96
- // React owns via --heading-size), then, when that moved to a data-sf-fit
97
- // attribute, the attribute itself. So the fitted size lives only in this
98
- // script's own stylesheet, in <head>, addressed to each heading by its
99
- // POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
100
- // structure changes, so the rules are rewritten in the MutationObserver
101
- // callback, which runs before the next paint. !important so the size also
102
- // beats a part's own inline size.
103
- var head = doc.head || doc.documentElement;
104
- var fitEl = doc.createElement("style");
105
- fitEl.id = "storefront-fit-words-sizes";
106
- head.appendChild(fitEl);
107
- // heading -> [[element, fitted size]]: the heading and each Text part inside
108
- // it that holds its own size (a span [data-sf-part-styled]), e.g.
109
- // [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
110
- // a part at its own size, and the word still breaks (card C25, Spec Table).
111
- var fitted = new Map();
112
-
113
- function pathOf(el) {
114
- var parts = [];
115
- for (var e = el; e && e.parentElement; e = e.parentElement) {
116
- var i = 1, s = e;
117
- while ((s = s.previousElementSibling)) i++;
118
- parts.unshift("*:nth-child(" + i + ")");
119
- }
120
- return ":root>" + parts.join(">");
121
- }
122
- function writeRules() {
123
- var css = "";
124
- fitted.forEach(function (sizes, el) {
125
- if (!el.isConnected) { fitted.delete(el); return; }
126
- for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
127
- });
128
- if (fitEl.textContent !== css) fitEl.textContent = css;
129
- }
130
-
131
- function unfit(el) {
132
- if (fitted.delete(el)) writeRules();
133
- }
134
-
135
- function fits(el) {
136
- var m = measure(el);
137
- return !m.split && m.widest <= lineWidth(el) + SLACK;
138
- }
139
-
140
- function fit(el) {
141
- unfit(el);
142
- if (modeOf(el) !== "shrink") return; // the block's own Wrap
143
- if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
144
- if (fits(el)) return;
145
- var set = parseFloat(win.getComputedStyle(el).fontSize);
146
- if (!set) return;
147
- var floor = floorOf(el, set);
148
- if (floor >= set) return;
149
- function size(px) { return Math.floor(px * 10) / 10 + "px"; }
150
- // The SEARCH tries sizes on the element's own style and then puts that
151
- // attribute back byte for byte (or removes it, if it had none), so nothing
152
- // is left for React to see. A trial in a stylesheet instead restyles the
153
- // whole page per step: a full pass on the Hartes home took 75–160ms at 4x
154
- // CPU that way.
155
- // Every trial scales the heading AND each part inside it that holds its
156
- // own size, by the same ratio, so a part keeps its proportion to the
157
- // heading.
158
- var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
159
- var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
160
- var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
161
- function attempt(px) {
162
- for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
163
- }
164
- function done() {
165
- for (var i = 0; i < carriers.length; i++) {
166
- if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
167
- }
168
- }
169
- attempt(floor);
170
- if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
171
- var lo = floor, hi = set;
172
- for (var i = 0; i < 8; i++) {
173
- var mid = (lo + hi) / 2;
174
- attempt(mid);
175
- if (fits(el)) lo = mid; else hi = mid;
176
- }
177
- done();
178
- fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
179
- writeRules();
180
- }
181
-
182
- // What each heading measured right after we last fitted it, so the
183
- // ResizeObserver below can tell a real change (a font swap, a rotate, a
184
- // container that moved) from the size change our own write just caused.
185
- var seen = new WeakMap();
186
- function remember(el) {
187
- var b = el.getBoundingClientRect();
188
- seen.set(el, b.width + "x" + b.height);
189
- }
190
- function fitAndRemember(el) { fit(el); remember(el); }
191
-
192
- // ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
193
- // WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
194
- // fitted heading, and fonts.ready resolves only after that frame is painted —
195
- // measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
196
- // reported here is fitted in the same frame, so the broken state is never
197
- // drawn. It also covers a container that resizes.
198
- var ro = new win.ResizeObserver(function (entries) {
199
- for (var i = 0; i < entries.length; i++) {
200
- var el = entries[i].target;
201
- var b = el.getBoundingClientRect();
202
- if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
203
- fitAndRemember(el);
204
- }
205
- });
206
- // Its own set, not seen: fitAndRemember has written seen by the
207
- // time watch runs, so a seen test observed no heading at all, and a
208
- // heading fitted in the fallback face was never fitted again when the web
209
- // font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
210
- var watched = new WeakSet();
211
- function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
212
-
213
- function fitAll() {
214
- var els = doc.querySelectorAll(CANDIDATES);
215
- for (var i = 0; i < els.length; i++) {
216
- if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
217
- else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
218
- }
219
- }
220
-
221
- var queued = 0, all = false, touched = new Set();
222
- function run() {
223
- queued = 0;
224
- if (all) { all = false; touched.clear(); fitAll(); return; }
225
- var els = Array.from(touched);
226
- touched.clear();
227
- for (var i = 0; i < els.length; i++) {
228
- if (!els[i].isConnected) continue;
229
- if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
230
- else unfit(els[i]);
231
- }
232
- }
233
- function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
234
- function scheduleAll() { all = true; schedule(); }
235
-
236
- fitAll();
237
- // A backstop only: a font that changes widths without changing any
238
- // heading's box is not seen by the ResizeObserver.
239
- if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
240
-
241
- // …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
242
- // heading sized to its own text (fit-content, a flex item) keeps the SAME box
243
- // when the phone turns to 844, so nothing reports a change and it would stay
244
- // shrunk. The probe's rotate check caught exactly that.
245
- var lastWidth = win.innerWidth;
246
- function onResize() {
247
- if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
248
- lastWidth = win.innerWidth;
249
- scheduleAll();
250
- }
251
- win.addEventListener("resize", onResize);
252
-
253
- var mo = new win.MutationObserver(function (records) {
254
- // Positions first: a node added or removed anywhere can shift the
255
- // nth-child path of a fitted heading, and this callback runs before paint.
256
- if (fitted.size) {
257
- for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
258
- }
259
- for (var i = 0; i < records.length; i++) {
260
- var r = records[i];
261
- // A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
262
- // only a data-fit attribute moved, so every heading is measured again.
263
- if (r.type === "attributes") { scheduleAll(); continue; }
264
- var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
265
- var owner = target && target.closest(CANDIDATES);
266
- if (owner) touched.add(owner);
267
- for (var j = 0; j < r.addedNodes.length; j++) {
268
- var n = r.addedNodes[j];
269
- if (n.nodeType !== 1) continue;
270
- if (n.matches(CANDIDATES)) touched.add(n);
271
- var inner = n.querySelectorAll(CANDIDATES);
272
- for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
273
- }
274
- }
275
- if (touched.size) schedule();
276
- });
277
- mo.observe(doc.body, {
278
- childList: true,
279
- subtree: true,
280
- characterData: true,
281
- attributes: true,
282
- attributeFilter: ${JSON.stringify(Object.values(qo))},
283
- });
284
-
285
- doc.__sfFitWords = function stop() {
286
- win.removeEventListener("resize", onResize);
287
- ro.disconnect();
288
- mo.disconnect();
289
- if (queued) win.cancelAnimationFrame(queued);
290
- fitted.clear();
291
- fitEl.remove();
292
- delete doc.__sfFitWords;
293
- };
294
- // For the probe and for debugging: which headings are fitted, at what size,
295
- // and the sheet that holds it (disable it to read a heading's set size).
296
- doc.__sfFitWords.fitted = fitted;
297
- doc.__sfFitWords.sheet = fitEl;
298
- // …and the two questions a block's own answer changes, for the guard
299
- // (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
300
- doc.__sfFitWords.modeOf = modeOf;
301
- doc.__sfFitWords.floorOf = floorOf;
302
- })(document);`,E6="storefront-fit-words";function h0(e){let o=e.createElement("script");return o.id=E6,o.textContent=O6,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var B6=`
303
- [${$e}][${$e}] { cursor: text; }
304
- `;function $f({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=Po(),n=Zt(t);return g0(()=>{if(o)return m0(o,{mode:r,switchShown:a})},[o,r,a]),g0(()=>{if(o)return x0(o,n)},[o,n]),F6(()=>{if(o)return h0(o)},[o]),A6(_6,{children:[I0(NT,{}),I0("style",{children:B6}),e]})}import{jsx as $B}from"react/jsx-runtime";import{memo as $8}from"react";import{Render as z8}from"efficient-easel/render";import{jsx as Rn}from"react/jsx-runtime";import{createContext as L6,useContext as R6,useMemo as D6}from"react";var Jx=L6(null);function N6({children:e}){return Rn(Jx.Provider,{value:"first",children:e})}function Uf({children:e}){return Rn(Jx.Provider,{value:"below",children:e})}function pl(){return R6(Jx)}function Zx(){return pl()==="below"?{loading:"lazy"}:{}}function jf(e){let o=Zx();return Rn("img",{...e,...o})}var y0="laterSlideIds",M6=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function S0(e){return mf(e?.filter(o=>!o?.type||!M6.has(o.type)))}function zf(e,o=[]){if(Array.isArray(e))for(let t of e)zf(t,o);else if(e&&typeof e=="object"){let{slides:t}=e;if(Array.isArray(t))for(let r of t.slice(1))typeof r?.props?.id=="string"&&o.push(r.props.id);for(let r of Object.values(e))zf(r,o)}return o}function b0(e,o){let t=o?.type,r=o?.props?.id;return D6(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Rn(N6,{children:Rn(n,{...l})}):Rn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function w0(e){return e.props?Ve(e,o=>{let t=We(o,w0),r=e.type===LC&&t.every(a=>a.type===Fd)?FC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function C0(e){return ed(e,o=>We(o,w0))}var H6="Flex",k0="ListSearch",v0=["FAQ"],W6="listKey";function P0(e,o){let t={search:e.type===k0,list:v0.includes(String(e.type))};return Ve(e,r=>{for(let a of r){let n=P0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===H6&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function T0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=Ve(e,n=>We(n,s=>T0(s,o,r)));return r&&(e.type===k0||v0.includes(String(e.type)))?{...a,props:{...a.props,[W6]:r}}:a}function O0(e){return tn(e,o=>{let t=new Set;for(let r of o)P0(r,t);return t.size?We(o,r=>T0(r,t,"")):o})}import{isNode as qW,isNodeList as CE}from"efficient-easel/data";import{jsx as Ee,Fragment as RW,jsxs as lr}from"react/jsx-runtime";import{jsx as lh}from"react/jsx-runtime";import{Fragment as K6,jsx as q6}from"react/jsx-runtime";import{jsx as Qx}from"react/jsx-runtime";import{createContext as U6,Fragment as j6,useContext as G6}from"react";import{jsx as E0,jsxs as $6}from"react/jsx-runtime";import{lazy as z6}from"react";var _0=z6(()=>import("./section-css-style-TKWJ7WU2.js"));function A0({css:e,id:o,attr:t}){return E0(_0,{css:e,id:o,attr:t})}var F0={name:"sectionCustomCss",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.customCssFields()}},draw(e){e.defaultProps={...e.defaultProps,[Td]:""};let o=e.render;e.render=t=>{let r=tC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):$6(kr,{className:"sf-section-css",attrs:{[oC]:a},children:[E0(_0,{css:r,id:a}),o(t)]})}}};var B0=U6(null);function L0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=mk(t),a=Qx(j6,{children:o},"page");return Qx(B0.Provider,{value:t,children:r?[Qx(A0,{css:r,id:uk,attr:Gd},"css"),a]:a})}function R0(){return G6(B0)}function wt(){return Od(R0())===dC}function Gf({className:e,children:o}){let t=wt();return q6(K6,{children:o(Zo(e,t))})}import{SITE_SIDE as V6}from"efficient-easel/screen/lib/content/length-units";var D0="sideSpace",ul=V6,eh="none",vse=[{value:"box",label:"Box"},{value:ul,label:"Site"},{value:eh,label:"None"}],Pse="box",Tse="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.";function N0(e){return e===ul||e===eh?e:"box"}function Ose(e){return e===ul||e===eh?e:void 0}import{parseOption as rh}from"efficient-shell/format";var Kf="standard",$0=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],th=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],oh=[...th,"description"],M0={standard:["eyebrowLook"],editorial:[...th,"eyebrowLook"],simple:oh,statement:oh,natural:th,essay:oh},H0=["gap-5","gap-3"],W0=["text-[length:var(--size-body,16px)]","text-[15px]"];function Fse(e){return rh(H0,H0[0],e)}function Bse(e){return rh(W0,W0[0],e)}function z0(e){return rh($0,Kf,e)}function Lse(e){let o=$0.map(r=>r.value),t=[...new Set(Object.values(M0).flat())];return Jo(e,t.map(r=>[[r],pd("headStyle",o,Kf,o.filter(a=>!M0[a].includes(r)))]))}import{readHidable as Y6}from"efficient-easel/draw";var fa={direction:"row",share:"content",align:"center"},ca={top:14,bottom:14,topPhone:12,bottomPhone:12},qf={wrap:"nowrap",loop:"scroll",sectionAccent:Qw,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},U0={gap:120,gapPhone:64},Vf={...Ro,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},j0={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},ml={top:24,bottom:24,topPhone:16,bottomPhone:16},pa={top:16,bottom:16,topPhone:12,bottomPhone:12},xl={justify:"between",wrap:"wrap",gap:32,separator:"none"},hl={...Ro,letterSpacing:.1,lineHeight:1.5};var Yf={top:24,bottom:24,topPhone:24,bottomPhone:24},Xf={top:72,bottom:72,topPhone:72,bottomPhone:72},Dn={top:100,bottom:100,topPhone:60,bottomPhone:60},Jf={top:120,bottom:120,topPhone:70,bottomPhone:70},X6={top:24,bottom:24,topPhone:24,bottomPhone:24},J6=40,Zf={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},Z6={top:24,bottom:24,topPhone:24,bottomPhone:24},Qf={top:24,bottom:24,topPhone:24,bottomPhone:24},Q6={top:84,bottom:84,topPhone:84,bottomPhone:84},ec={top:48,bottom:48,topPhone:48,bottomPhone:48},oc={top:80,bottom:80,topPhone:60,bottomPhone:60},tc={top:100,bottom:60,topPhone:60,bottomPhone:40},rc={top:60,bottom:60,topPhone:40,bottomPhone:40},ac={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},nc={top:76,bottom:76,topPhone:76,bottomPhone:76},sc={top:76,bottom:76,topPhone:76,bottomPhone:76},gl={top:80,bottom:40,topPhone:60,bottomPhone:32},yl={top:76,bottom:76,topPhone:76,bottomPhone:76},lc={top:72,bottom:72,topPhone:72,bottomPhone:72},ic={top:40,bottom:64,topPhone:24,bottomPhone:36},dc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},fc={top:48,bottom:48,topPhone:48,bottomPhone:48},Sl=e=>{let o=ye(e.bandPadding)??J6;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},G0=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),ah=e=>dn(e.headPlacement)==="own-box",Fe=(e,o)=>({top:G0(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:G0(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),K0=e=>({top:e.topPhone,bottom:e.bottomPhone}),Il=e=>o=>ah(o)?{top:0,bottom:e.bottom}:e,e3=(e,o)=>{let t=Y6(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},nh={Banner:{frame:()=>Fe(Yf)},Cards:{frame:Il(Fe(Xf))},Chart:{frame:()=>Fe(yl)},ContactLocations:{frame:()=>Fe(Dn,K0(Dn))},Countdown:{frame:()=>Fe(ec)},DocBody:{frame:()=>Fe(oc)},DocMasthead:{frame:()=>Fe(tc)},DocMetaCards:{frame:()=>Fe(rc)},FAQ:{frame:e=>{let o=ah(e)||!["num","title","linkText"].some(r=>e3(e,r)),t=Fe(Jf);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Fe(ac)},Grid:{frame:()=>Fe(X6)},Integrations:{frame:()=>Fe(nc)},KeyFeatures:{frame:()=>Fe(sc)},Logos:{frame:e=>ah(e)?0:Fe(Sl(e))},LongRead:{frame:Il(Fe(Zf))},Masthead:{frame:()=>Fe(gl,K0(gl))},Mockup:{frame:()=>Fe(yl)},OrderSummary:{frame:()=>Fe(Z6)},PaymentBadges:{frame:()=>Fe(Qf)},Prose:{frame:Il(Fe(lc))},SectionHeader:{frame:e=>{let o=Fe(ic);return z0(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:Il(Fe(dc))},Stats:{frame:()=>Fe(fc)},Testimonials:{frame:Il(Fe(Q6))},Ticker:{frame:()=>Fe(ca),edge:!0}};function Kse(e,o){let t=$(nh,e);return t?bn({values:jd(o,ko,!0),frame:t.frame(o),drawsFrame:!0,edge:t.edge},!0).root:null}var o3=/^(?:[^\s]*:)?p[ytb]-/;function q0(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!o3.test(n)),a={...t,...o.style};return{className:[...r,o.className].filter(Boolean).join(" "),...Object.keys(a).length?{style:a}:{},...o.attrs}}import{isNodeList as t3}from"efficient-easel/data";var sh=new Set(["FAQ"]);function Vo(e,o){if(!sh.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:t3(t)}var Y0={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120}},X0=new Set(Object.keys(Y0));function ih(e,o){return o?.innerPadding??$(Y0,e)}var Nn=e=>ih(e)??{};var cc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),r3=new Set(["Divider"]),a3=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),V0=new Set(["ProductGrid"]);function dh(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...jd(n,ko,t),sideSpace:N0(n.sideSpace)},l=r?bn({values:s,frame:r(n)},!0).outer:fk(s),i=a(n);if(!l)return i;let d=u=>lh(Gf,{className:u?`${l.className} ${u}`:l.className,children:h=>lh(ie,{className:h,style:l.style,children:i})}),f=br(n,{atSectionLine:!0}),x=br(n);return f===x?d(f):lh(Vd,{line:"by-box",draw:u=>d(u?x:f)})}}var J0={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!a3.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=ih(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:Sr,unitKey:zd,fallback:r,tablet:!0,siteSide:!0})};return}if(V0.has(o))return;let a=[Sr.top,Sr.bottom].filter(s=>e.fields!=null&&s in e.fields);if(a.length)throw new Error(`section-padding: ${o} declares its own ${a.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);let n=$(fh,o);if(n){Z0(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!ih(o,e)){if(V0.has(o)){dh(e);return}cc.has(o)||r3.has(o)||dh(e,o==="Flex"?t=>Fk(t.bgImage):sh.has(o)?t=>Vo(o,t):void 0,!0,$(fh,o))}}},n3=["Heading","Text","ImageBlock","ButtonBlock"],s3=["LogoBlock"],fh={Text:e=>Pr(e,"text").textStyle?.startsWith("heading-")?Js.heading:Js.text,Heading:()=>Js.heading,ButtonBlock:()=>Js.text,Breadcrumb:()=>nx(ml),SpecStrip:()=>nx(pa),...Object.fromEntries(Object.entries(nh).map(([e,o])=>[e,o.frame]))},l3={ButtonBlock:"Outer padding"};function i3(e,o){let t=e[Dt],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=Sn().filter(i=>o?.[i]);if(!a.length)return e;let n=[...r.filter(i=>!a.includes(i)),...a.filter(i=>typeof e[i]=="number")];if(n.length===r.length&&n.every((i,d)=>i===r[d]))return e;let{[Dt]:s,...l}=e;return n.length?{...l,[Dt]:n}:l}function d3(e,o,t){if(o<=0)return null;let r=Array.isArray(e[Dt])?e[Dt]:[];return(t?Sn().filter(a=>a.startsWith(ko[t])):Sn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function Z0(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,d3,$(l3,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?i3(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var Q0={name:"blockPadding",applies:(e,o,t)=>(n3.includes(e)||s3.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=$(fh,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}Z0(e,o,t,r)},draw(e,o){cc.has(o)||dh(e,void 0,!0)}};import{createContext as ch,useContext as pc}from"react";var eO=ch(null);function ple(){return pc(eO)===!0}function ule(){return pc(eO)!==null}var f3=ch(!1);function mle(){return pc(f3)}function xle(e,o,t){let r=e.boxes;if(!r)return t;let a=r.indexOf(o);return a>=0?a:(r.push(o),r.length-1)}var uc=ch(null);function hle(){return pc(uc)}import{jsx as ua}from"react/jsx-runtime";import{Component as g3,createContext as y3,lazy as Fle,Suspense as Ble,useContext as S3,useSyncExternalStore as b3}from"react";function c3(e,o){let t=e.trim();if(!mc(t))return!1;if(!o)return!0;let r;try{r=new URL(t,"https://x.invalid").host}catch{return!1}let a=n=>n.toLowerCase().replace(/^www\./,"");return a(r)!==a(o)}function yle(e){return e.startsWith("/")||mc(e)}function mc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var bl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function oO(e,o){return c3(e,o)?{...bl}:{}}function Sle(e){return typeof e=="string"?e.trim():""}var ble="data-sf-box-link",tO="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",ph="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",p3="data-sf-box-jump";function u3(e){return`sf-box-jump-${e}`}function wle(e,o){return e===!0?sa(o):""}function m3({box:e,lit:o,first:t}){let r=s=>s.join(`,
305
- `),a=t(e),n=o.flatMap(t);return`
306
- ${e} {
307
- outline: 2px solid transparent;
308
- outline-offset: -2px;
309
- transition: outline-color 600ms ease-out;
310
- }
311
- ${r(a)} { transition: background-color 600ms ease-out; }
312
- ${r(a.map(s=>`${s} *`))} { transition: color 600ms ease-out; }
313
- ${r(o)} { outline-color: var(--accent); }
314
- ${r(n)} { background-color: var(--accent); }
315
- ${r([...n,...n.map(s=>`${s} *`)])} { color: var(--bg) !important; }
316
- `}function Cle(e){let o=`[${p3}="${e}"]`,t=`.${u3(e)}`,r=`[id="${e}"]:target`;return m3({box:o,lit:[`${r}~${o}`,`${r}~* ${o}`],first:a=>[`${a} ${t}>:first-child:not(.sf-section-anchor)`,`${a} ${t}>.sf-section-anchor:first-child+*`]})}var x3="hrefRewrite";function h3(){return Qa("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function I3(){return typeof process<"u"&&!0}function Ple(e){let o=e?.[x3];return typeof o=="string"?o.trim():""}function rO(e){if(!e)return null;let o=h3(),t=o.rewrites.get(e);return!t&&!I3()&&o.missed.add(e),t??null}var w3={Link:Jv,Image:Xv},aO=y3(w3);function Hle({runtime:e,children:o}){return ua(aO.Provider,{value:e,children:o})}function mh(){return S3(aO)}function Wle(){return mh().pagePath??null}var C3=()=>()=>{},k3=()=>ff()||null,v3=()=>null;function P3(){return b3(C3,k3,v3)}function ma({hrefRewrite:e,newTab:o,...t}){let{Link:r}=mh(),a=P3(),n=o===!0?{...t,...bl}:o==="auto"?{...t,...oO(t.href,a)}:t,s=rO(e);return s?ua(uh,{name:s.name,href:n.href,fallback:ua(r,{...n}),children:ua(T3,{Link:r,rewrite:s.rewrite,...n})},s.key):ua(r,{...n})}function T3({Link:e,rewrite:o,...t}){let r=mo(o(t.href)),a=r&&hb(r)?r:t.href;return ua(e,{...t,href:a})}var uh=class extends g3{state={failed:!1,href:this.props.href};static getDerivedStateFromProps(o,t){return o.href===t.href?null:{failed:!1,href:o.href}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(o){console.error(`The link href rewrite ${this.props.name} failed; the link goes where it was typed.`,o)}render(){return this.state.failed?this.props.fallback:this.props.children}};function xc(e){let{Image:o}=mh();return ua(o,{...e})}import{jsx as kW}from"react/jsx-runtime";import{jsx as Se,jsxs as To,Fragment as SW}from"react/jsx-runtime";import{imageCopyUrl as lO,imageSrcSet as O3}from"efficient-shell/image-copies";var nO;function xh(){return nO===void 0?{}:{host:nO}}var Ule="(max-width: 800px) 100vw, min(100vw, 1600px)",jle="(max-width: 960px) 100vw, 50vw";function xa(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=O3(e,{...xh(),...t===void 0?{}:{maxWidth:t}});return r?{src:lO(e,o,xh()),srcSet:r}:{src:e}}var E3=/[\s"'()\\;]/,_3={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function sO(e){return e.replace(/[\\"\n\r\f]/g,o=>_3[o]??o)}function Gle(e){let o=lO(e,1920,xh());return o===e?E3.test(e)?`url("${sO(e)}")`:`url(${e})`:`url("${sO(o)}")`}import{parseOption as A3}from"efficient-shell/format";var wl="solid",F3=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function iO(e){return A3(F3,wl,e)}var hh="sf-secnum-outline",dO="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",fO=`@supports (-webkit-text-stroke: 1px currentColor){.${hh}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as cO}from"efficient-shell/format";var Ih="plain",pO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],B3="line",L3={KeyFeatures:"filled"};function Cl(e){return $(L3,e)??Ih}function uO(e,o){return cO(pO,Cl(o),e)}function Jle(e){return cO(pO,B3,e)}import{jsxs as ga,jsx as Ne}from"react/jsx-runtime";import{Fragment as Oh}from"react";import{Fragment as sW,jsx as vh}from"react/jsx-runtime";import{Fragment as PO,jsx as Ol,jsxs as Z3}from"react/jsx-runtime";import{createContext as kh,useContext as El,useEffect as Q3,useId as eW,useMemo as oW,useRef as tW}from"react";import{armEntrance as rW}from"efficient-shell/format";import{jsx as R3}from"react/jsx-runtime";import{useEffect as xO,useRef as mO,useState as D3}from"react";import{armEntrance as N3,entranceAttrs as M3,playEntrance as H3}from"efficient-shell/format";function hc({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=mO(null),d=Xd(),f=ot(),x=n?f:wr,u=kl(i,!0,s),{attrs:h,style:I}=M3(e[u]),w=mO(Mn.seed(e)),T=JSON.stringify(e);return xO(()=>{let O=i.current;if(O){if(o){let F=Mn.next(w.current,e,u);w.current=F.seen,F.play&&H3(O);return}return N3(O)}},[T,u,o]),x.scope(R3("div",{ref:i,className:vo(`${In}${d.fill}${t?` ${t}`:""}`,x.className),...r,...x.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:d.inner(l)}))}var Mn={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Mn.seed(o);return{play:r[t]!==e[t],seen:r}}};function kl(e,o=!0,t=!1){return vl(e,o,t)??"desktop"}function vl(e,o=!0,t=!1){let[r,a]=D3(void 0),n=Cr(t?"edge":"by-box"),{phone:s,tablet:l}=_v(n);return xO(()=>{if(!o)return;let i=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!i?.matchMedia){a("desktop");return}let d=i.matchMedia(s),f=i.matchMedia(l),x=()=>a(d.matches?"phone":f.matches?"tablet":"desktop");return x(),d.addEventListener("change",x),f.addEventListener("change",x),()=>{d.removeEventListener("change",x),f.removeEventListener("change",x)}},[e,o,s,l]),r}var Pl="@name",hO="@body",IO="@value",gO={[Pl]:"Name",[hO]:"Body",[IO]:"Value"},W3={TimelineTrack:{"entries.date":Pl,"entries.title":Pl,"entries.blurb":hO},Footprint:{"offices.city":Pl},Stats:{"items.label":Pl,"items.value":IO}};function $3(e){let{key:o,row:t}=Nt(e);return t?`${o}.${t.rowKey}`:null}function ar(e,o){if(!e)return o;let t=$3(o);return t?$(W3,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as q3,entranceAttrs as V3,scrollAttrs as Y3}from"efficient-shell/format";import{parseFocal as j3,formatFocal as G3,readScroll as K3}from"efficient-shell/format";import{phoneKey as z3,tabletKey as U3}from"efficient-easel/screen/lib/content/view-tiers";var gh=[{block:"HeroSlide",upload:"mediaImage",focus:Vs.image},{block:"HeroSlide",upload:"mediaImage2",focus:Vs.image2},{block:"HeroSingle",upload:"mediaImage",focus:Vs.image},{block:"HeroSingle",upload:"mediaImage2",focus:Vs.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],yO=e=>[e,U3(e),z3(e)],pie=[...new Set(gh.flatMap(e=>yO(e.focus)))].sort();function SO(e,o){let[t,r,a]=yO(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var ho={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},Hn="_gScroll",Ic="_cScroll",gc=Ld(Object.values(ho));function nr(e,o){return K3(Gs(e,ho.effect,o),Gs(e,ho.zoom,o),Gs(e,ho.start,o),Gs(e,ho.end,o))}function Wn(e){let o={desktop:nr(e,"desktop"),tablet:nr(e,"tablet"),phone:nr(e,"phone")};return Qo.every(t=>o[t].effect==="none")?null:o}function yh(e){let o=VC(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=j3(a);return G3(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function bO(e,o){return yh(SO(e,o))}var yc={},Sh="_partMotion",bh=[...Rd,Xo,Ge.duration,Ge.delay,...gc];function CO(e){return rv(e,Sh)}function ha(e,o){return av(e,Sh,o)}var X3=new Set([Ko.kind,Xo,ho.effect]);function kO(e,o,t,r){let{[t]:a,...n}=ha(e,o),s=r==null||r===""||r==="none"&&X3.has(t)?n:{...n,[t]:r};return nv(e,Sh,o,Object.keys(s).length?s:null)}function Tl(e){return{entrance:gn(e),hover:gb(e),scroll:Wn(e)}}function vO(e){let o=Tl(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Sc(e,o){let{attrs:t,style:r}=V3(o),a=Object.keys(t).filter(n=>t[n]!==void 0);for(let n of a)e.setAttribute(n,String(t[n]));for(let[n,s]of Object.entries(r))e.style.setProperty(n,String(s));return()=>{for(let n of a)e.removeAttribute(n);for(let n of Object.keys(r))e.style.removeProperty(n);e.removeAttribute(q3)}}function bc(e,o){let{attrs:t,style:r}=Y3(o);for(let[a,n]of Object.entries(t))e.setAttribute(a,n);for(let[a,n]of Object.entries(r))e.style.setProperty(a,n);return()=>{for(let a of Object.keys(t))e.removeAttribute(a);for(let a of Object.keys(r))e.style.removeProperty(a)}}var J3=4;function $n(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&J3)&&(o=t);return o}var wh="data-sf-part-host";function wc(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(wh)&&!t.classList.contains(In);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var Ia="data-sf-part-lift",wO="sf-part-lift";function Cc(e){if(e.getElementById(wO))return;let o=e.createElement("style");o.id=wO,o.textContent=pv(`[${Ia}]`).join(`
317
- `),e.head.appendChild(o)}var kc=kh(null),OO=kh(null),EO=kh(null);function _O({needles:e,styles:o,motions:t=yc,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=eW(),i=Cr(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),f=oW(()=>{let u=Object.keys(t).filter(h=>vO(t[h]));return Ev(e,o,l,h=>ar(r,h),h=>tl(r,h),h=>u.includes(h)?Tl(t[h]):null,u,h=>aa(n,h))},[d]);if(!f)return Ol(PO,{children:s});let x=Av(f,{inBox:i});return Z3(PO,{children:[x&&Ol("style",{href:`${aW}${l}-${nW(x)}`,precedence:FO,dangerouslySetInnerHTML:{__html:_k(x)}}),Ol(kc.Provider,{value:f,children:s})]})}var Ch=new WeakMap;function TO(e,o){let t=$n(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:$n(o.filter(a=>a.scroll));for(let a of o)a!==t&&a.undo&&(a.undo(),a.undo=void 0),a!==r&&a.undoScroll&&(a.undoScroll(),a.undoScroll=void 0);t?.arm&&!t.undo&&(t.undo=t.arm()),r?.scroll&&!r.undoScroll&&(r.undoScroll=r.scroll()),o.some(a=>a.lift)?(Cc(e.ownerDocument),e.setAttribute(Ia,"")):e.removeAttribute(Ia)}function AO(e){let o=tW(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=kl(o,t!==null||r!==null),s=t?t[n]:null,l=r&&r[n].effect!=="none"?r[n]:null,i=JSON.stringify([s,l]);return Q3(()=>{let d=o.current,f=wc(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let x=s?()=>{let I=Sc(f,s),w=rW(f);return()=>{w?.(),I()}}:null,u=Ch.get(f)??[];Ch.set(f,u);let h={element:d,arm:x,entering:s!==null&&s.kind!=="none",scroll:l?()=>bc(f,l):null,lift:a};return u.push(h),TO(f,u),()=>{let I=u.indexOf(h);I<0||(u.splice(I,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,TO(f,u),u.length||Ch.delete(f))}},[i,a]),o}var FO="sf-part-styles",aW=`${FO}-`;function nW(e){let o=2166136261;for(let t=0;t<e.length;t+=1)o^=e.charCodeAt(t),o=Math.imul(o,16777619);return(o>>>0).toString(36)}function BO(e){let o=El(kc),t=El(OO),r=Fv(o,e);return r&&r.stamp!==t?r:null}function Lie(e){return ux(El(kc),e)}function LO({stamp:e,children:o}){return Ol(OO.Provider,{value:e,children:o})}function Rie({children:e}){let o=El(kc);return Ol(EO.Provider,{value:o,children:e})}function Die(e){return ux(El(EO),e)}function _l({value:e,children:o}){let t=BO(e),r=AO(t);return t?vh(LO,{stamp:t.stamp,children:vh("span",{ref:r,[lv]:t.stamp,...t.textStyle?{[ta]:t.textStyle}:{},children:o})}):vh(sW,{children:o})}import{jsx as Ph,Fragment as lW}from"react/jsx-runtime";function RO({className:e=""}){return Ph("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function rt(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((r,a)=>{r&&t.push(r),a<o.length-1&&t.push(Ph(RO,{},`r${a}`))}),Ph(lW,{children:t})}var Uie=RO;function Ye(e,o=!1,t){let r=mW(o),a=nd(e);if(a.length===1){let[s]=a,l=Ib(s),i=l?pW(l,s.children):s.children;return ga(_l,{value:e,children:[t,vc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(Ne("span",{"data-sf-bullet":"",className:iW,children:vc(s.children,r)},l));return}if(s.number!=null){n.push(ga("span",{"data-sf-number":s.number,className:dW,children:[ga("span",{className:fW,children:[s.number,"."]}),vc(s.children,r)]},l));return}l>0&&!cW(a[l-1])&&n.push(Ne("br",{},`br${l}`)),n.push(Ne(Oh,{children:vc(s.children,r)},l))}),ga(_l,{value:e,children:[t,n]})}var iW="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",dW="relative block pl-[2em]",fW="absolute left-0 w-[1.6em] text-right tabular-nums";function cW(e){return e.bullet||e.number!=null}var DO="text-accent underline underline-offset-[0.18em]";function pW(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function uW(e){return Ak(e)||void 0}function vc(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(Ne("span",{children:rt(a.text)},n)),r=!0;return}r||t.push(Ne("span",{},`e${n}`)),t.push(MO(a,n,o)),r=!1}),r||t.push(Ne("span",{},"end")),t}function Th(e,o){return e.length===1&&e[0].kind==="text"?rt(e[0].text):e.map((t,r)=>t.kind==="text"?Ne(Oh,{children:rt(t.text)},r):MO(t,r,o))}function mW(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function ede(e){return NO(e)}function NO(e,o){let t=e.split(`
318
- `);return ga(_l,{value:e,children:[o,t.map((r,a)=>ga(Oh,{children:[a>0?Ne("br",{}):null,Ne("span",{children:r})]},a))]})}function MO(e,o,t){if(e.kind==="link")return mc(e.href)?Ne(ma,{newTab:"auto",href:e.href,className:DO,children:Th(e.children,t)},o):Ne("a",{href:e.href,className:DO,children:Th(e.children,t)},o);let r=Th(e.children,t),a=ub[e.kind];if(a)return Ne("span",{[mb]:a,children:r},o);switch(e.kind){case"underline":return Ne("u",{children:r},o);case"sup":return Ne("sup",{children:r},o);case"sub":return Ne("sub",{children:r},o);case"color":{let n=uW(e.color);return n?Ne("span",{style:{color:n},children:r},o):Ne("span",{children:r},o)}case"accent":case"highlight":return Ne("em",{className:t,children:r},o);case"bold":return Ne("strong",{className:"font-semibold",children:r},o);case"italic":return Ne("em",{className:"italic",children:r},o);case"strike":return Ne("s",{className:"line-through",children:r},o);default:return Ne("span",{children:r},o)}}function HO(e,o=!0,t=!1){let r=e.split(`
319
- `);return Ne(_l,{value:e,children:r.map((a,n)=>ga("span",{children:[t?NO(a):Ye(a,o),n<r.length-1?Ne("br",{}):null]},n))})}function WO(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Eh,jsxs as hW}from"react/jsx-runtime";import{jsx as xW}from"react/jsx-runtime";function $O(){return xW("span",{className:"block h-px w-[30px] bg-current"})}var _h={labelUpTo800:"max-view-wide:text-[length:var(--size-label,12px)]",labelSmall:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,14px)]"};function IW(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var gW=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${_h.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,yW=`flex items-center gap-3.5 font-mono ${_h.labelLarge} uppercase tracking-[0.3em] opacity-80 ${_h.labelUpTo800} max-view-wide:tracking-[0.25em]`;function zn({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let l=ot(),i=s?l:wr;if(o==="line")return i.scope(hW("div",{className:vo([a,yW,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Eh($O,{}),Eh("span",{children:Ye(e)})]}));let d=o==="filled"?gW:IW(t,r);return i.scope(Eh("span",{className:vo([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Ye(e)}))}var Oe={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},zO=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Oe.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading1} ${Oe.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading2} ${Oe.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading3} ${Oe.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading4} ${Oe.shelfHeadingUpTo800Xl}`}],bW="lg";function wW(e){return(zO.find(o=>o.value===e)??zO.find(o=>o.value===bW)).cls}var Un=(e,o=!1)=>typeof e=="string"?HO(e,o):e,sr=(e,o=!1)=>typeof e=="string"?Ye(e,o):e;function UO({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=wl,look:i="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:x,rowGap:u,descriptionSize:h,className:I="",eyebrowLook:w=Ih,titleSize:T,count:O,capped:F=!1,rootPadsBottom:k=!1}){let y=wt(),b=x??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?To("div",{className:Zo(`${nP} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${F?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,y),children:[To("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Se("span",{className:`font-mono ${Oe.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:sr(e)}),o&&Se("h2",{className:`${wW(T)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:Un(o)})]}),(a||t||O)&&To("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&Se("span",{className:`max-w-[340px] truncate font-display ${Oe.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:sr(a)}),t&&To(ma,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Oe.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[sr(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]}),O&&Se("span",{className:`whitespace-nowrap font-mono ${Oe.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:O})]})]}):null;if(i==="editorial"){let g=!!o||!!d;return To("header",{className:`${b} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${I}`.trim(),children:[e&&(typeof e=="string"?Se(zn,{text:e,className:"pb-2"}):Se("span",{className:"pb-2",children:e})),g&&To("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[o,d&&To(SW,{children:[" ",Se("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:f},children:d})]})]}),a&&Se("p",{className:`max-w-[360px] pb-1 text-right font-display ${Oe.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(i==="simple"){let g=`${b} ${I}`.trim();return To("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(zn,{text:e,look:w,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Oe.headingMediumUpTo800Small}`,children:Un(o)})]})}if(i==="statement"){let g=`${b} ${I}`.trim();return To("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(zn,{text:e,look:w,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:Un(o,!0)})]})}if(i==="natural"){let g=`flex max-w-[680px] flex-col ${u??"gap-5"} ${b} ${I}`.replace(/\s+/g," ").trim();return To("div",{className:g,children:[e&&(typeof e=="string"?Se(zn,{text:e,look:w}):Se("span",{children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Oe.headingMediumUpTo800Small}`,children:Un(o)}),a&&Se("p",{className:`${h??`${Oe.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let g=`${b} ${I}`.trim();return To("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(zn,{text:e,look:w,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Oe.headingSmallUpTo800}`,children:Un(o)})]})}let E=!!a||!!t,B=!!o,R=iO(l)==="outlined",C=`font-mono ${Oe.label} uppercase tracking-[0.3em]`,L=null;if(e)if(R)L=Se("span",{className:`${dO} text-fg-dim ${hh}`,children:sr(e)});else if(s&&!n&&typeof e=="string"){let g=e.indexOf("/"),P=g===-1?e:e.slice(0,g),v=g===-1?"":e.slice(g);L=To("span",{className:C,children:[Se("span",{className:"text-accent",children:sr(P)}),v&&Se("span",{className:"text-fg-dim",children:sr(v)})]})}else L=Se("span",{className:`${C} ${n?"text-accent":"text-fg-dim"}`,children:sr(e)});return To("div",{className:k?"grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5":"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[R&&e&&Se("style",{children:fO}),To("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Se(gk,{children:Se(jf,{...CW(tP(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),L]}),B&&Se("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Oe.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Oe.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:Un(o)}),E&&To("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Se("p",{className:`max-w-[340px] font-display ${Oe.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:sr(a)}),t&&To(ma,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Oe.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[sr(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function CW(e){let o=xa(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function jO({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return kW(UO,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Fl,jsxs as AW}from"react/jsx-runtime";import{useEffect as FW,useState as eE}from"react";import{jsx as vW}from"react/jsx-runtime";var GO="sf-photo-hover";function Pc({sheet:e,name:o=GO}){return e?vW("style",{href:o,precedence:GO,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as JO,Fragment as OW}from"react/jsx-runtime";import{createContext as EW,useContext as Oc}from"react";var PW=Wb["view-desktop"];function TW(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var Ah=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,Tc=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function _de(e,o){return{phone:Ah(e.phone*Tc(o?.phone)),tablet:Ah(e.tablet*Tc(o?.tablet)),desktop:Ah(e.desktop*Tc(o?.desktop))}}function Fh(e){if([e.phone,e.tablet,e.desktop].every(r=>Tc(r)>=1))return;let o=[{below:Vt,slot:e.phone},{below:PW,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return TW(t,e.desktop)}function KO(e){let o=e.split(/,\s*(?![^()]*\))/).map(a=>a.trim()),t=[];for(let a of o.slice(0,-1)){let n=/^\(max-width:\s*([\d.]+)px\)\s+(.+)$/.exec(a);if(!n)return null;let s=Number(n[1]);if(t.length&&s<=t[t.length-1].edge)return null;t.push({edge:s,slot:n[2]})}let r=o[o.length-1];return!r||r.startsWith("(")?null:{steps:t,last:r}}var qO=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,VO=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function YO(e,o){if(e===o)return e;let t=[...VO(e),...VO(o)],r=s=>{let l=t.map(i=>new RegExp(`^([\\d.]+)${s}$`).exec(i)).filter(Boolean).map(i=>Number(i[1]));return l.length?[`${Math.min(...l)}${s}`]:[]},a=[...new Set(t.filter(s=>!/^[\d.]+(vw|px)$/.test(s)))],n=[...r("vw"),...r("px"),...a];return n.length===1?n[0]:`min(${n.join(", ")})`}function XO(e,o){if(!o)return e;let t=KO(e),r=KO(o);if(!t||!r)return e;let a=[...new Set([...t.steps,...r.steps].map(s=>s.edge))].sort((s,l)=>s-l).map(s=>({edge:s,slot:YO(qO(t,s),qO(r,s))})),n=YO(t.last,r.last);return[...a.filter((s,l)=>s.slot!==(a[l+1]?.slot??n)).map(s=>`(max-width: ${s.edge}px) ${s.slot}`),n].join(", ")}var _W={hasWidth:!1},Al=EW(_W);function Rde(){return Oc(Al).hasWidth}function Dde(e){let{bound:o}=Oc(Al);return o&&Fh(o)||e}function ZO(e){let{bound:o}=Oc(Al);return XO(e,o&&Fh(o))}function QO({children:e}){let o=Oc(Al);return o.bound?JO(Al.Provider,{value:{hasWidth:o.hasWidth},children:e}):JO(OW,{children:e})}function oE({fallback:e,className:o,src:t,alt:r="",objectPosition:a,objectFit:n="cover",sizes:s="100vw",sizesFromCell:l=!1,priority:i=!1,deferFetch:d=!1,showBackground:f=!0,treatment:x}){let u=Zx(),h=ZO(s),I=l?h:s,[w,T]=eE(!1),[O,F]=eE(!1),k=t||"";FW(()=>{T(!1),F(!1)},[k]);let y=cf(k),b=y&&!O?xa(k):{src:k},E=!k||w;return AW("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Fl("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:E?e:null}),Fl(Kd,{fill:Zs,children:k&&(y?Fl("img",{src:b.src,alt:r,...b.srcSet?{srcSet:b.srcSet,sizes:I}:{},decoding:"async",...d?{loading:"lazy"}:u,className:`absolute inset-0 h-full w-full${x?.className?` ${x.className}`:""}`,style:{display:w?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>b.srcSet?F(!0):T(!0)}):Fl(xc,{src:k,alt:r,fill:!0,sizes:I,priority:i,...x?.className?{className:x.className}:{},style:{display:w?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>T(!0)}))}),Fl(Pc,{sheet:x?.sheet})]})}import{jsx as BW}from"react/jsx-runtime";var Bl="sf-empty-hides",Bh="sf-empty-else",Ec="sf-head-core",_c="sf-head-box",Ll="holdsHeadCore",Rl="isHeadCore",LW=`.${Bl}:empty{display:none}.${Bl}:not(:empty)~.${Bh}{display:none}.${_c},.${Ec}{display:contents}.${_c}:not(:has(.${Ec}:not(:empty))){display:none}`;function Ac(){return BW("style",{children:LW})}var Ho={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},tE={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},Lh="sf-itc-boxes",DW="sf-itc-steps";function Rh(e){return(e??[]).filter(o=>(o?.tag??"").trim()||(o?.meta??"").trim()||(o?.title??"").trim()||(o?.copy??"").trim()||(o?.image??"").trim()||(o?.specs??[]).some(t=>(t?.label??"").trim()||(t?.value??"").trim()))}function ufe({num:e,title:o,description:t,boxes:r,steps:a,columns:n=3,cta:s,padTop:l,padBottom:i,bandPad:d,editing:f=!1,omitHead:x=!1,cardImage:u,cardImageUnit:h,cardText:I,rows:w,copies:T}){let O=wt(),F=T!==void 0,k=w&&(F||(r?.blockCount??0)>0)?w:null,y=d??pk({padTop:l,padBottom:i},Nn("ProcessSteps")),b=F?[]:Rh(a),E=b.length>0?b:f&&!r&&!F?[1,2,3].map(g=>({tag:c("Column {n}",{n:g})})):[],B=tE[n]??tE[3],R=k?"grid-cols-1":B,C=k?"":" [&>*]:min-h-[560px]",L=I==="on-image";return Ee(ie,{as:"section",className:Zo(["relative z-[2] border-b border-line bg-bg",y.className].filter(Boolean).join(" "),O),style:{...y.style,...jP(u,h)},children:lr("div",{className:Zo(mC,O),children:[x?null:Ee(jO,{num:e,title:o?.trim()?Ye(o,!0):void 0,desc:t?.trim()?Ye(t,!1):void 0}),r&&!F?lr(RW,{children:[Ee(Ac,{}),k?Ee(uc.Provider,{value:{hand:k,ids:r.blockIds??[],boxes:[]},children:Ee(r,{className:`${Lh} ${Bl} sf-card grid ${R} gap-[2px] border border-line bg-line${C} [&>*]:bg-bg`,minEmptyHeight:260})}):Ee(r,{className:`${Lh} ${Bl} sf-card grid ${R} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,F&&T?Ee("div",{className:`${Lh} sf-card grid ${R} gap-[2px] border border-line bg-line${C} [&>*]:bg-bg`,children:k?Ee(uc.Provider,{value:{hand:k,copies:!0},children:T}):T}):null,E.length>0&&Ee("div",{className:`${DW} ${Bh} sf-card grid ${B} gap-[2px] border border-line bg-line`,children:E.map((g,P)=>{let v=(g.specs??[]).filter(S=>(S?.label??"").trim()||(S?.value??"").trim());return lr("article",{className:L?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[lr("div",{className:L?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[Ee(oE,{label:g.tag?.trim()||g.title?.trim()||`column-${P+1}`,src:g.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),Ee("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${js(.55)} 0%, transparent 30%, transparent 70%, ${js(.65)} 100%)`}}),L&&Ee("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${js(.73)} 55%, ${js(.92)} 100%)`}}),g.tag?.trim()&&Ee("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${Ho.label} uppercase tracking-[0.3em] text-accent`,children:rt(g.tag)}),g.meta?.trim()&&Ee("span",{className:L?`absolute right-5 top-[18px] z-[2] font-mono ${Ho.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${Ho.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:rt(g.meta)}),L&&(g.title?.trim()||g.copy?.trim())&&lr("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[g.title?.trim()&&Ee("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${Ho.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${Ho.headingSmallUpTo700Small}`,children:Ye(g.title,!0)}),g.copy?.trim()&&Ee("p",{className:`min-h-[3em] font-display ${Ho.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Ye(g.copy,!1)})]})]}),L?v.length>0&&Ee("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:v.map((S,N)=>lr("div",{className:"flex flex-col gap-1",children:[S.label?.trim()&&Ee("span",{className:`font-mono ${Ho.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:rt(S.label)}),S.value?.trim()&&Ee("span",{className:`font-display ${Ho.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:rt(S.value)})]},N))}):lr("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[g.title?.trim()&&Ee("h3",{className:`font-heading3 ${Ho.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${Ho.headingSmallUpTo700Large}`,children:Ye(g.title,!0)}),g.copy?.trim()&&Ee("p",{className:`font-display ${Ho.bodySmall} leading-[1.55] text-fg-dim`,children:Ye(g.copy,!1)}),v.length>0&&Ee("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:v.map((S,N)=>lr("div",{className:"flex flex-col gap-1",children:[S.label?.trim()&&Ee("span",{className:`font-mono ${Ho.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:rt(S.label)}),S.value?.trim()&&Ee("span",{className:`font-display ${Ho.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:rt(S.value)})]},N))})]})]},P)})}),s?.text&&Ee("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:lr(ma,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${Ho.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[rt(s.text),Ee("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var NW=["selected","highlighted"],rE="data-sf-card-state",nE="pointer-events-none absolute inset-0 border border-accent",sE="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",lE="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",iE="absolute inset-y-0 left-0 w-[3px] bg-accent",dE="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",fE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",aE=e=>{let o=Xw.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},MW={[aE("muted")]:`var(${aE("fg")})`};function Dh(e){return e?.selected===!0}function Nh(e){return e?NW.filter(o=>e[o]===!0).join(" "):""}function cE(e,o="frame"){let t=Nh(e);return t?o==="frame"&&Dh(e)?{[rE]:t,className:"relative isolate",style:{...MW}}:{[rE]:t,className:"relative"}:{}}var HW={highlighted:!0},WW={},Fc="badge";function gfe(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Ws(t,r)}))}function pE(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===Fc||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function yfe(e,{chosen:o,badge:t}){let r=o.trim(),a=r?e.findIndex(n=>n.key===r):-1;return{rows:e.map((n,s)=>({...n,[Fc]:s===a?t:""})),states:e.map((n,s)=>s===a?HW:WW)}}function Sfe(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function bfe(e){if(!e||typeof e!="object")return;let{press:o,pressLabel:t,pressDisabled:r}=e;if(typeof o=="function")return{press:o,...typeof t=="string"&&t.trim()!==""?{label:t}:null,...r===!0?{disabled:!0}:null}}var uE="data-sf-card-press",mE=`${tO} appearance-none bg-transparent border-0 p-0 m-0`,xE=`${mE} cursor-pointer`,hE=mE;import{paymentMarkItems as $W,paymentMarks as zW}from"efficient-shell/icons/payment";var UW=[GS,KS],IE=e=>UW.includes(e),gE=e=>$W({name:e.label,kind:e.kind}),jW=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function yE(e){return zW(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>gE(t).some(r=>jW(r,o)))?.kind??""}))}function vfe(e){return gE(e)[0]??null}var SE={heading:"Trusted by *teams worldwide*"},Bc=()=>[{src:"",alt:c("Logo one")},{src:"",alt:c("Logo two")},{src:"",alt:c("Logo three")},{src:"",alt:c("Logo four")},{src:"",alt:c("Logo five")}],GW=Qi.Logos,Efe={label:"Logos",drawsPictures:!0,fields:GW,defaultProps:{items:[],contained:!0}};var KW=()=>Bc().map(e=>({label:e.alt}));function bE(e,o){let t=Zi(e,o,KW()).rows.filter(r=>r.label);return IE(De(e))?yE(t):t}var Dl="Flex",VW="Text",Nl=e=>Object.values(e??{}).filter(CE),YW=e=>e.type===no&&De(e.props)!=="",kE=e=>{if(e.type!==Dl)return!1;let o=Nl(e.props).flat();return o.length>0&&o.every(YW)},Lc=e=>dn(e.props?.headPlacement)==="own-box"||kE(e),Mh=e=>e===void 0||Array.isArray(e)&&e.length===0;function vE(e){return e.type===VW?!0:e.type===Dl&&Nl(e.props).every(o=>o.every(vE))}var PE={ProcessSteps:e=>Mh(e.boxes)&&Rh(e.steps).length===0,Logos:e=>De(e)?XW(e):Mh(e.logos)&&Mh(e.items)};function XW(e){return JS(e)!==null&&bE(e,!1).length===0}function JW(e){return Nl(e.props).flat().every(o=>!Zi(o.props,!1).rows.some(pE))}function Rc(e){let o=Nl(e.props).flat();return o.some(Lc)&&o.every(t=>Lc(t)||vE(t))}function ZW(e){if(!qW(e)||!Lc(e))return e;let o=kE(e)?JW(e):$(PE,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Rl]:o?"empty":!0}}}function wE(e){return Ve(e,o=>We(o,ZW))}function TE(e){let o=Object.entries(e.props??{}).filter(([,r])=>CE(r)).filter(([,r])=>r.length>0);if(o.length!==1||o[0][1].length!==1)return null;let t=o[0][1][0];return t?.type===Dl&&t.props?{key:o[0][0],inner:t}:null}function OE(e){if(e?.type!==Dl||!e.props)return e;if(Rc(e)){let t=wE(e);return{...t,props:{...t.props,[Ll]:!0}}}let o=TE(e);return!o||!Rc(o.inner)?e:{...e,props:{...e.props,[o.key]:[wE(o.inner)],[Ll]:!0}}}function EE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=OE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var QW=e=>$(PE,String(e.type))?.(e.props??{})===!0;function e$(e){if(e.type!==Dl||!e.props)return!1;let o=Rc(e)?null:TE(e),t=o?o.inner:e;if(!Rc(t))return!1;let r=Nl(t.props).flat().filter(Lc);return r.some(a=>De(a.props)!=="")&&r.every(QW)}function _E(e){return Ve(e,o=>o$(o))}function o$(e){let o=!1,t=[];for(let r of e){if(e$(r)){o=!0;continue}let a=_E(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function AE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(OE(a)!==a)return a;let n=_E(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var t$=["DocMasthead","AlloyWheelsListing"],Dc="titleLevel",r$=e=>e===2?"h2":"h1",Hh=e=>r$(e?.[Dc])==="h2";function FE(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>t$.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[Dc]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as d$}from"efficient-easel/draw";var jn="showFor";function BE(){return Qa("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var a$=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Vfe(){return BE().choices}function Yfe(){return BE().revision}function LE(e){return a$(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as n$}from"efficient-easel/draw";var Wh="_wallLabelId",s$="_wallLabelledBy",$h=e=>e.props?.id==null?"":String(e.props.id);function l$(e){if(!e||e.type!=="Text"||!$h(e))return!1;let o=n$(e.props?.text);return!o.hidden&&o.text.trim()!==""}var i$=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&$h(e)!=="",RE=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function DE(e){let o=We(e,r=>Ve(r,DE)),t=null;for(let r=1;r<o.length;r++){if(!i$(o[r])||!l$(o[r-1]))continue;let a=`sf-wall-label-${$h(o[r-1])}`;t??=o.slice(),t[r-1]=RE(t[r-1],Wh,a),t[r]=RE(t[r],s$,a)}return t??o}function NE(e){return tn(e,DE)}var ME="_cardPressTitles",f$="_cardPressTitle";function sce(e,o){let t=e?.[ME],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var HE=(e,o)=>({...e,props:{...e.props,...o}});function c$(e){let o=e.props??{};return e.type!=="Text"||d$(o.text).hidden||typeof o[Go]=="string"||typeof o[Wh]=="string"?"":Lt(o)}function WE(e,o,t,r){return We(e,a=>{let n=c$(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),HE(a,{[f$]:!0});if(a.type==="Text"||Array.isArray(a.props?.[jn]))return a;let s=a.props?.[en],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return Ve(a,(i,d)=>oa(a.type,d)?i:WE(i,l,t,r))})}function $E(e){let o,t=Ve(e,(r,a)=>{let n=We(r,$E);if(!oa(e.type,a))return n;let s=[],l=WE(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?HE(t,{[ME]:o}):t}function zE(e){return tn(e,o=>We(o,$E))}import{pinnedDuplicateIndices as Sz}from"efficient-easel/draw";import{jsx as at,jsxs as A_}from"react/jsx-runtime";import{createContext as cz,useContext as pz,useEffect as uz,useRef as mz,useState as F_}from"react";import{jsx as Ar,jsxs as KE}from"react/jsx-runtime";import{useEffect as Gn,useRef as qE,useState as ya}from"react";import{jsx as UE,Fragment as p$,jsxs as u$}from"react/jsx-runtime";import{useEffect as m$,useRef as jE,useState as x$}from"react";var h$="#t=0.001",I$=2;function g$(e,o){if(e.readyState<I$||!e.videoWidth||!e.videoHeight)return!1;let t=o.getContext("2d");return t?(o.width=e.videoWidth,o.height=e.videoHeight,t.drawImage(e,0,0,o.width,o.height),!0):!1}function GE({src:e,objectPosition:o="50% 50%",onError:t}){let r=jE(null),a=jE(null),[n,s]=x$(!1);return m$(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{g$(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),u$(p$,{children:[UE("canvas",{ref:a,"aria-hidden":!0,className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:o,visibility:n?"visible":"hidden"}}),!n&&UE("video",{ref:r,src:`${e}${h$}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var y$="data-part",cce=Object.freeze({Flex:Object.freeze(["box","card","card-content"]),Grid:Object.freeze(["grid"]),Hero:Object.freeze(["hero","arrows","arrow","dots","dot","strip"]),HeroSlide:Object.freeze(["slide","hero-media","tint","overlay","hero-content"]),HeroSingle:Object.freeze(["hero","hero-media","tint","overlay","hero-content"]),ImageBlock:Object.freeze(["image-block","image-frame","image"]),ButtonBlock:Object.freeze(["button-block","button","button-icon"]),Text:Object.freeze(["text-block","text"]),Heading:Object.freeze(["heading-block","heading"]),LogoBlock:Object.freeze(["logo"]),MenuBlock:Object.freeze(["menu-block","heading","menu","menu-item","menu-link","menu-button"]),SiteHeader:Object.freeze(["header","header-content"]),SiteFooter:Object.freeze(["footer"]),FooterSection:Object.freeze(["footer-block","grid","legal-line","copyright"]),FooterLogo:Object.freeze(["logo-block","logo-link","tagline"]),FooterSocial:Object.freeze(["social-block","social-item","social-link"]),ProductGrid:Object.freeze(["product-grid-block","grid-head","grid-number","heading","description","view-all","count","grid","grid-empty"]),ProductCard:Object.freeze(["card","card-link","card-content","image-block","image-frame","image-plate","image","card-number","badges","badge","eyebrow","product-name","pattern","specs","price","price-note","swatches","swatch","sizes","size","buy","button","page-label"])});function _r(e){return{[y$]:e}}var S$=.5;function Ml({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=S$,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:x=!1,slideShown:u,laterSlide:h=!1,laterOfLead:I=!1}){let w=rP(d,f),T=pl(),[O,F]=ya(!1),k=T==="below"&&!O,y=T==="first",b=a||"",E=n||"",B=qE(null),R=vl(B,!0,!0),C=R===void 0?void 0:R==="phone",L=uf({video:e,av1:o,videoPhone:t,av1Phone:r},C===!0),g=L.video||"",P=pf(g,L.av1),[v,S]=ya(!1),[N,H]=ya(!1),[q,z]=ya(!1),[ne,ge]=ya(!1),J=u??!0,[me,oe]=ya(!1),xe=T!=="first"&&!I,[ce,qe]=ya(!1),ro=qE(null);Gn(()=>{if(!xe)return;if(document.readyState==="complete"){qe(!0);return}let le=()=>qe(!0);return window.addEventListener("load",le,{once:!0}),()=>window.removeEventListener("load",le)},[xe]),Gn(()=>{S(!1),H(!1),z(!1),ge(!1)},[g,b,E]),Gn(()=>{J&&oe(!0)},[J]),Gn(()=>{let le=ro.current;le&&(J?le.play()?.catch(()=>{}):le.pause())},[J,me,ce]),Gn(()=>{if(!h||xe&&!ce)return;let le=()=>F(!0);if(typeof window.requestIdleCallback=="function"){let W=window.requestIdleCallback(le,{timeout:2e3});return()=>window.cancelIdleCallback(W)}let Le=setTimeout(le,800);return()=>clearTimeout(Le)},[h,xe,ce]),Gn(()=>{let le=ro.current;if(!le)return;let Le=()=>{le.playbackRate=l};return Le(),le.addEventListener("loadedmetadata",Le),()=>le.removeEventListener("loadedmetadata",Le)},[g,l]);let wo=cf(b),Je=b&&(wo||E)&&!N?xa(b):{src:b},co=E&&!N?xa(E):{src:E},po=E&&!k&&!O?[{sized:co,media:dx},...b?[{sized:Je,media:Ds}]:[]]:[];return KE("div",{ref:B,className:"absolute inset-0 z-[1]",..._r("hero-media"),children:[Ar("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),po.map(({sized:le,media:Le})=>Ar("link",{rel:"preload",as:"image",href:le.src,media:Le,fetchPriority:"high",...le.srcSet?{imageSrcSet:le.srcSet,imageSizes:"100vw"}:{}},Le)),(b||E)&&(wo||E?(()=>{let le=Ar("img",{...b?{src:Je.src}:{},...Je.srcSet?{srcSet:Je.srcSet,sizes:"100vw"}:{},alt:"",...k?{loading:"lazy"}:{},...y?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${w.className}`.trim(),style:{display:v?"none":"block",objectPosition:i,...w.style},onError:Le=>{Le.currentTarget.currentSrc&&(Je.srcSet||co.srcSet?H(!0):S(!0))}},E?void 0:b);return E?KE("picture",{children:[Ar("source",{media:dx,srcSet:co.srcSet||co.src,sizes:"100vw"}),le]},`${b} ${E}`):le})():Ar(xc,{src:b,alt:"",fill:!0,...k?{}:O?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${w.className}`.trim(),style:{display:v?"none":"block",objectPosition:i,...w.style},onError:()=>S(!0)},b)),s&&!x&&g&&C!==void 0&&me&&(!xe||ce)&&!q&&Ar("video",{ref:ro,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:i},onError:()=>z(!0),children:P.map(le=>Ar("source",{src:le.src,type:le.type},le.src))},g),s&&x&&g&&C!==void 0&&me&&(!xe||ce)&&!ne&&(!b||v)&&Ar(GE,{src:g,objectPosition:i,onError:()=>ge(!0)},g)]})}import{jsx as Io,Fragment as s_,jsxs as Kh}from"react/jsx-runtime";import{jsx as Kn}from"react/jsx-runtime";import{useRef as b$}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as w$,scrollAttrs as C$}from"efficient-shell/format";function Nc({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:i,children:d}){let f=b$(null),x=Xd(),u=ot(),h=n?u:wr,I=kl(f,!0,s),{attrs:w,style:T}=C$(e[I],o[I]),O=w$.includes(e[I].effect),F=vo(`${In}${x.fill}${t?` ${t}`:""}`,h.className);if(O&&l==="picture")return h.scope(Kn("div",{ref:f,className:F,...r,...h.attrs,...a?{style:a}:{},children:Kn(hk,{attrs:w,style:T,children:x.inner(d)})}));let k=Kn(Ik,{children:x.inner(d)});if(O){let b=i??(x.fill?"h-full":void 0);return h.scope(Kn("div",{ref:f,className:F,...r,...h.attrs,style:{...a,overflow:"clip"},children:Kn("div",{...b?{className:b}:{},...w,style:T,children:k})}))}let y=Object.keys(T).length||a?{style:{...a,...T}}:{};return h.scope(Kn("div",{ref:f,className:F,...r,...h.attrs,...w,...y,children:k}))}var Sa=["media","image","image2"],ir={media:"Media",image:"Image",image2:"Image 2"},Hl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Mc(e,o){return e==="image"&&Ys(o)>1?"Image 1":ir[e]}var Nce="Video file",Mce="Upload a video file",Hce="AV1 file",Wce="Upload an AV1 file";function k$(e,o){return pd("mediaType",Nd,o,[e])}var v$=new Set(Object.keys(Md)),VE="heroPart";function P$(e,o){return{...o,[VE]:e}}function $ce(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Nd.flatMap(l=>t[l])].filter(l=>!(l in e));if(s.length)throw new Error(`heroMediaFields: ${s.join(", ")} is not a row of this block`);for(let l of Nd)for(let i of t[l])n[i]=Qe(n[i],k$(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=Qe(n[l],i));for(let l of Sa)for(let i of o[l]??[])n[i]=P$(l,n[i]);return n}function T$(e){let o=e?.[VE];return Sa.includes(o)?o:null}function YE(e,o){let t={};for(let[r,a]of Object.entries(e))T$(a)===o&&(t[r]=a);return t}function XE(e){if(!v$.has(e.type))return[];let o=[{part:"media",label:ir.media,depth:0}];return XC(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:Mc("image",e.props),depth:1}),Ys(e.props)>1&&o.push({part:"image2",label:Mc("image2",e.props),depth:1})),o}function ba(e,o){return`${e}::${o}`}function Hc(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return Sa.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var Wl="data-sf-hero-part";import{MOTION_TIMING as O$}from"efficient-shell/format";var e_="grayscale(1) contrast(1.03)",Gce="Black and white";function E$(e){return e===!0?{filter:e_}:{}}function _$(e){let{filter:o}=E$(e);return o?{style:{filter:o}}:{}}var wa="sf-photo-grayscale",Gh="data-sf-photo-host",JE={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Uc=`@media (hover:hover){.${wa}{filter:${e_};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${wa}:hover,[data-sf-photo-host]:hover .${wa}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${wa}{transition:none}}`;function o_(e){let o=O$.hover,t={...e.duration!==o.duration.default?{[JE.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[JE.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function t_(e,o,t){if(e===!0)return _$(!0);if(t?.kind==="mono"){let r=o_(t);return{className:wa,sheet:Uc,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:wa}:{}}var r_="data-sf-repeat",zh="sf-photo-zoom",A$="--sf-photo-zoom",Kce="sf-photo-wash",Wc="sf-photo-wash-rest",$l="sf-photo-wash-hover",zc="sf-photo-frame",a_=(e,o)=>`:not([${r_}]:not(${o}) .${e})`,jh=(e,o)=>`[${r_}]${o} .${e}${a_(e,o)}`,Uh=(e,o)=>`${o},${jh(e,":hover")},[${Gh}]:hover .${e}${a_(e,":hover")}`,ZE=e=>`${e} var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))`,F$=`.${$l}{opacity:0}@media (hover:hover){.${Wc},.${$l}{transition:${ZE("opacity")}}${Uh($l,`.${zc}:hover .${$l}`)}{opacity:1}${Uh(Wc,`.${zc}:hover .${Wc}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${zh}{transition:${ZE("transform")}}${Uh(zh,`.${zc}:hover .${zh}`)}{transform:scale(var(${A$}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Wc},.${$l}{transition:none}}`,qce="sf-photo-move";function Vce(e){if(!e||!e.zoom&&!e.darken)return null;let o=o_(e);return{className:zc,sheet:F$,...o?{style:o}:{}}}function n_(e){return e===!0?{[wa]:Uc}:{}}var $c="sf-box-reveal",Yce="sf-box-reveal",B$=8,QE=.3,Xce=`@media ${Ds}{.${$c}{opacity:0;transform:translateY(${B$}px);transition:opacity ${QE}s ease-out,transform ${QE}s ease-out}${jh($c,":hover")},${jh($c,":focus-within")}{opacity:1;transform:none}}@media ${Ds} and (prefers-reduced-motion:reduce){.${$c}{transition:none;transform:none}}`;import{hidableText as L$}from"efficient-easel/draw";var R$={one:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-1",side:"max-view-tablet:grid-cols-2 max-view-tablet:grid-rows-1",stacked:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-2"},D$={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function l_(e){let o=e.isVideo&&wP(e.videoSource)==="youtube",t=e.isVideo&&CP(e.videoPlayback)==="click",r=o?kP(L$(e.youtubeUrl)):null,a=JC(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:ZC(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Ys(e)>1}}function zl(e,o){return gn(ha({_partMotion:e},o))}function Ul(e,o){return Wn(ha({_partMotion:e},o))}var jc=e=>yh({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),i_=Zs.img;function d_({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?Io(hc,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?Io(Nc,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:i}):Io("div",{className:a,...n,...s?{style:s}:{},children:i})}function qn(e,o){return t_(void 0,void 0,Db(ha({_partMotion:e},o)))}function f_(e){return Sa.some(o=>qn(e,o).className)?{hostAttrs:{[Gh]:""},sheet:Uc}:{}}function Gc({treatment:e,children:o}){return e.className?Io("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Io(s_,{children:o})}function Kc({color:e,opacity:o,passClicks:t=!0}){return o>0?Io("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100},..._r("tint")}):null}function qc({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let i=o&&t?{[Wl]:e}:void 0;return Io(d_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:i_,children:l})}function c_({partMotion:e,editing:o,children:t}){let r=zl(e,"media"),a=Ul(e,"media"),n=qn(e,"media"),s=Io(Kd,{fill:Zs,children:t}),l=n.className?Io("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?Io(d_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:i_,children:l}):Io(s_,{children:l})}function p_({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return Kh("div",{className:`absolute inset-0 z-[1] grid ${R$[o]} ${D$[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Io(qc,{part:"image",editing:t,marked:r,entrance:zl(a,"image"),scroll:Ul(a,"image"),origins:jc(n),className:"relative overflow-hidden",children:Kh(Gc,{treatment:qn(a,"image"),children:[Io(Ml,{posterSrc:tt(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Io(Kc,{color:n.tintColor,opacity:n.tintOpacity})]})}),Io(qc,{part:"image2",editing:t,marked:r,entrance:zl(a,"image2"),scroll:Ul(a,"image2"),origins:jc(s),className:`relative overflow-hidden ${Lv({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:Kh(Gc,{treatment:qn(a,"image2"),children:[Io(Ml,{posterSrc:tt(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Io(Kc,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Fr,Fragment as N$,jsxs as M$}from"react/jsx-runtime";import{useEffect as H$,useRef as W$,useState as $$}from"react";import{PlaySolidIcon as z$}from"efficient-shell/icons/efficient-looks";function u_({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=$$("large");return H$(()=>n("large"),[e]),e?M$(N$,{children:[!o&&a!=="none"&&Fr(jf,{src:a==="large"?vP(e):PP(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:s=>{a==="large"&&s.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(a==="large"?"small":"none")},`${e}-${a}`),t&&!r&&Fr("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Fr("iframe",{src:yx(e,"background"),title:"",tabIndex:-1,allow:"autoplay; encrypted-media; picture-in-picture",className:"absolute left-1/2 top-1/2 h-[max(100%,56.25cqw)] w-[max(100%,177.78cqh)] -translate-x-1/2 -translate-y-1/2 border-0"})})]}):null}function m_({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=W$(null),d=vl(i,!0,!0)==="phone";if(!e&&!o)return null;let f=uf({video:o,av1:t,videoPhone:r,av1Phone:a},d),x=pf(f.video,f.av1);return n&&!l?e?Fr("iframe",{src:yx(e,"click"),title:Sx,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):Fr("video",{ref:u=>{i.current=u},...x.length===1?{src:x[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:x.length>1&&x.map(u=>Fr("source",{src:u.src,type:u.type},u.src))},f.video):Fr("button",{ref:u=>{i.current=u},type:"button","aria-label":Sx,onClick:l?void 0:s,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${l?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:Fr(z$,{size:28})})}function x_(e,o){if(!e)return[];let t=`[${o}]`;return Array.from(e.querySelectorAll(t)).filter(r=>{let a=r.parentElement?.closest(t);return!a||a===e||!e.contains(a)})}import{parseOption as h_}from"efficient-shell/format";var I_=["top","middle","bottom"],g_=["left","center","right"],y_="bottom",S_="left",U$={top:"Top",middle:"Middle",bottom:"Bottom"},j$={left:"Left",center:"Center",right:"Right"},Tpe="Up and down",Ope="Sideways",G$={top:"flex-start",middle:"center",bottom:"flex-end"},K$={left:"flex-start",center:"center",right:"flex-end"},q$="--sf-hero-phone-y",V$="--sf-hero-phone-x";function Y$(e){return h_(I_,y_,e)}function X$(e){return h_(g_,S_,e)}function b_(e,o){let t=Y$(e),r=X$(o),a={};return t!==y_&&(a[q$]=G$[t]),r!==S_&&(a[V$]=K$[r]),a}var J$="--sf-hero-phone-words-top",Z$="--sf-hero-phone-words-bottom",Q$="--sf-hero-phone-box-gap",Epe=100,_pe=90,Ape=28,ez=0,oz=200,Fpe="Words space top",Bpe="Words space bottom",Lpe="Space between boxes";function qh(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(oz,Math.max(ez,Math.round(e)))}function w_(e,o,t){let r={},a=qh(e),n=qh(o),s=qh(t);return a!==void 0&&(r[J$]=`${a}px`),n!==void 0&&(r[Z$]=`${n}px`),s!==void 0&&(r[Q$]=`${s}px`),r}function Rpe(){return I_.map(e=>({label:U$[e],value:e}))}function Dpe(){return g_.map(e=>({label:j$[e],value:e}))}import{hexToRgb as tz}from"efficient-shell/format";var rz=!0;var az=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function C_(e){let o=tz(e);return o?`${o.r},${o.g},${o.b}`:null}function k_(e){return e==null?rz:e!==!1}function v_(e){let o=(e?C_(e):null)??C_(er);return`linear-gradient(180deg, ${az.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as P_,parseOption as nz}from"efficient-shell/format";var T_="bottom";var sz=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],lz={bottom:180,top:0,left:270,right:90},iz=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],dz=[[null,33],[.6,67],[.94,100]];function fz(e,o){let{r:t,g:r,b:a}=P_(e)??P_(er);return`rgba(${t},${r},${a},${o})`}function O_(e){return nz(sz,T_,e)}function E_(e=er,o=T_){let t=O_(o),r=(t==="top"||t==="bottom"?iz:dz).map(([a,n])=>`${a===null?"transparent":fz(e,a)} ${n}%`);return`linear-gradient(${lz[t]}deg, ${r.join(", ")})`}function __(e,o){let t=mo(e.overlayColor),r=mo(e.overlayPosition),a=mo(o)??er;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:O_(r)}}var xz=cz({});function fue({name:e,process:o,mediaType:t=Md.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:f,objectPositionPhone:x,objectPositionTablet:u,tintColor:h=er,tintOpacity:I=0,groups:w,editing:T=!1,themeClassName:O,themeStyle:F,overlayColor:k,overlayPosition:y,mediaLayout:b,mediaLayoutPhone:E,mediaImage2:B,objectPosition2:R,objectPosition2Phone:C,objectPosition2Tablet:L,tintColor2:g=er,tintOpacity2:P=0,videoSource:v,youtubeUrl:S,videoPlayback:N,partMotion:H,laterSlide:q=!1}){let z=wt(),ne=ot(),{alignment:ge="left",textureOpacity:J,textureOn:me,textureColor:oe,quietVideo:xe,phoneUpDown:ce,phoneSideways:qe,phoneWordsTop:ro,phoneWordsBottom:wo,phoneBoxGap:Je,holdReel:co,reelHeld:po,shownSlide:le,ratioMin:Le}=pz(xz),W=pl(),he=q&&W==="first",Ie=mz(null),[Ze,_o]=F_(le===void 0?void 0:!1);uz(()=>{let ht=Ie.current;_o(le===void 0||!ht?void 0:x_(ht.closest(".hero-track"),"data-slide-name")[le]===ht)});let Re=t==="video",Ue=Re?tt(r):void 0,uo=Re?tt(n):tt(r)??tt(n),Ao=Re?{av1:tt(s),phone:tt(l),av1Phone:tt(i),poster:tt(d)}:{},Gt=typeof a=="number"?a/100:1,{fromYouTube:pr,onClick:Va,youTubeId:Ya,backgroundFile:Kt,desktopLayout:ur,phoneLayout:Xa,twoPictures:Es}=l_({isVideo:Re,videoSource:v,videoPlayback:N,youtubeUrl:S,mediaLayout:b,mediaLayoutPhone:E}),[Ja,qr]=F_(!1);Ja&&po===!1&&qr(!1);let _s=!Ja,Vr=__({overlayColor:k,overlayPosition:y},oe),Yi=Re?null:zl(H,"image"),Za=Re?null:Ul(H,"image"),As=f_(H),Xi=at(Gc,{treatment:Re?{}:qn(H,"image"),children:at(Ml,{videoSrc:Kt?Ue:void 0,videoAv1Src:Kt?Ao.av1:void 0,videoSrcPhone:Kt?Ao.phone:void 0,videoAv1SrcPhone:Kt?Ao.av1Phone:void 0,posterSrc:uo,posterSrcPhone:Ao.poster,showVideo:Kt,playbackRate:Gt,objectPosition:f,objectPositionPhone:Re?void 0:x,objectPositionTablet:Re?void 0:u,quiet:xe,slideShown:Ze,laterSlide:q,laterOfLead:he})}),Ji=A_("section",{ref:Ie,className:vo(`${Le?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${O?` ${O}`:""}`,ne.className),...ne.attrs,style:F,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Kt&&Ue?"video":"still",...As.hostAttrs,..._r("slide"),children:[at(Pc,{sheet:As.sheet}),at(c_,{partMotion:H,editing:T,children:Es?at(p_,{laterSlide:q,desktopLayout:ur,phoneLayout:Xa,editing:T,partMotion:H,first:{src:r,objectPosition:f,objectPositionPhone:x,objectPositionTablet:u,tintColor:h,tintOpacity:I},second:{src:B,objectPosition:R,objectPositionPhone:C,objectPositionTablet:L,tintColor:g,tintOpacity:P}}):pr||Yi||Za?A_(qc,{part:Re?"media":"image",editing:T,entrance:Yi,scroll:Za,origins:jc({objectPosition:f,objectPositionTablet:u,objectPositionPhone:x}),className:"absolute inset-0 z-[1]",children:[Xi,pr&&at(u_,{youTubeId:Ya,ownPoster:!!uo,background:!Va,editing:T})]}):Xi}),Va&&at(m_,{youTubeId:Ya,fileSrc:pr?void 0:Ue,fileAv1Src:pr?void 0:Ao.av1,fileSrcPhone:pr?void 0:Ao.phone,fileAv1SrcPhone:pr?void 0:Ao.av1Phone,playing:Ja,onPlay:()=>{qr(!0),co?.()},editing:T}),_s&&!Es&&at(Kc,{color:h,opacity:I,passClicks:!1}),_s&&k_(me)&&at("div",{className:"absolute inset-0 z-[2]",style:{background:Vr.own?E_(Vr.color,Vr.position??void 0):v_(Vr.color),...J!==void 0?{opacity:J/100}:null},..._r("overlay")}),_s&&at("div",{className:[Le?"sf-hero-group-layer relative z-[3] mx-auto w-full flex-1 max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",z?cC:"",T?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Jw,...b_(ce,qe),...w_(ro,wo,Je)},..._r("hero-content"),children:w&&at(w,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return ne.scope(he?at(Uf,{children:Ji}):Ji)}var B_=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as M_}from"efficient-easel/draw";import{isNodeList as Iz}from"efficient-easel/data";var Vh=3,Yh=()=>({type:G,props:{direction:"column"},slots:{[Ce]:[{type:"ImageBlock"},{type:G,props:{direction:"column"},slots:{[Ce]:[{type:"Text",props:xr()},{type:"Text"}]}}]}}),L_=()=>Array.from({length:Vh},Yh);var R_=["","","","","",""],D_="#ticker",jl="strip",Xh={sectionAccent:Ir,line:!1};function hz(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Jh(e){return hz(e).length>0}function Iue(e){return e.showTicker!==!1&&Jh(e)}var H_=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,Iz(r)?r.map(a=>H_(a,o)):r]))}}),gz=e=>{let[o]=Ft([Yh()],a=>M_(a)),{id:t,...r}=H_(o,e).props;return r},nt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>B_.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Ls.toLowerCase()}`,seeds:()=>[],addBlocked:Jm,notice:Zm},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Ls.toLowerCase()}`,seeds:()=>[],addBlocked:Jm,notice:Zm},ProcessSteps:{slot:Bs,childType:G,addLabel:`Add ${Ls.toLowerCase()}`,seeds:e=>Array.from({length:Vh},()=>gz(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},N_=1,yz={slot:jl,childType:G,addLabel:`Add ${Ls.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=N_?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>N_?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},W_={Hero:{[jl]:yz}};function Eue(e){for(let[o,t]of Object.entries(e)){if(xo(nt,o)&&$(nt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);nt[o]=t}}function _ue(e,o){let t=$(nt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:M_(t.childType),...r}}))}:null}var bz=["GalleryB"];function $_(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!bz.includes(l))return s;let i=$(nt,l);if(!i?.legacy)return s;let d=s.props??{},f=d[i.slot];if(Array.isArray(f)&&f.length>0)return s;let x=i.legacy(d);if(!x.length)return s;t=!0;let u=String(d.id??l),h=x.map((I,w)=>({type:i.childType,props:{id:`${i.childType}-${u}-${w}`,...I}}));return{...s,props:{...d,[i.slot]:h}}}),a=new Set(Sz(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var wz={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},Cz={"Footprint.source":"typed"};function z_(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(wz)){let n=r.indexOf("."),s=r.slice(0,n),l=r.slice(n+1);if(s!==e.type||!(l in o))continue;let i=o[l],d={...o};delete d[l],(!(a in d)||d[a]===void 0)&&(d[a]=i),o=d,t=!0}if(e.type&&o)for(let[r,a]of Object.entries(Cz)){let n=r.indexOf("."),s=r.slice(n+1);if(r.slice(0,n)!==e.type||!(s in o))continue;let l=typeof o[s]=="string"?o[s].trim():"",i={...o};delete i[s],YS(l)&&l!==a&&!De(i)&&(i[ao]=l),o=i,t=!0}if(e.type&&o){let r=xd(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=Ve({props:o},a=>We(a,z_));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function U_(e){return ed(e,o=>We(o,z_))}import{readHidable as kz}from"efficient-easel/draw";var Wt=G,$t=Ce;function Ca(e){if(e.theme)return Zt(e.theme);let o=e.site?.themePresets;return o?Zt({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function vz(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var G_=new Set(["id"]),Br={},Gl=[],Pz={ProductGrid:["ProductColour","ProductEyebrow","ProductName","ProductPicture","ProductPrice","ProductRef","ProductSpecs"],Events:[],Collections:["CollectionCard"],GalleryB:["GalleryItem"],ContactRouting:[],ReviewForm:[],AppointmentBooking:["BookingBox"],Reviews:["RatingBlock"],CheckoutCTA:[],AlloyWheelsListing:["ProductBuy","ProductColour","ProductEyebrow","ProductName","ProductPicture","ProductPrice","ProductSpecs"],SpecTable:["EuTyreLabelBlock","WheelDiagram"],FitmentTable:[],ProductHero:["ProductGallery","ProductEyebrow","ProductName","ProductPrice","ProductBuyButton"]},Tz=Object.keys(Pz),ka=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...Tz,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function oo(e){for(let[o,t]of Object.entries(e)){if(xo(Br,o)&&$(Br,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Br[o]=t}}function Lr(e){return $(Br,e)}function Oz(e){return xo(Br,e)&&Gl.includes(e)}function K_(e,o=ka){return xo(Br,e)&&(o.includes(e)||Oz(e))}function Yue(e){let o=$(St,e);if(!o)throw new Error(`lib/sections/section-to-box: "${e}" has no head row in SPLITTABLE_SECTIONS`);let t=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&t.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&t.push({kind:"button",key:"linkText",href:"linkHref"}),t}var Zh=e=>kz(e),Me=e=>Zh(e).text.trim()!=="";function Ez(e){if(e.includes("=="))return e;let o=e.indexOf("/"),t=o===-1?e:e.slice(0,o),r=t.trim();if(!r)return e;let a=t.indexOf(r);return`${t.slice(0,a)}==${r}==${t.slice(a+r.length)}${o===-1?"":e.slice(o)}`}var _z=e=>e==="heading"?xr():e==="eyebrow"?Xt():{};function Az(e,o,t,r){let a={...e._partStyles?.text??{},...o??{},...t??{}};return(r==="center"||r==="right")&&a.align===void 0&&(a.align=r),Object.keys(a).length?{_partStyles:{text:a}}:{}}function Fz(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?$(e.map,t):void 0)??e.fallback}}function j_(e,o,t,r,a={}){let n={...o};for(let s of e){let[l,i,d]=typeof s=="string"?[s,s,void 0]:s;if(t[l]===void 0)continue;let f=d?d(t[l],t,a):t[l];f===void 0?delete n[i]:n[i]=f,r(l,i,f===void 0)}return n}function Bz(e){let o=new Set([...G_,"headPlacement","_partStyles",...Object.keys(e.drop??{}),...Object.keys(e.reads??{})]),t=a=>{for(let n of a??[])o.add(typeof n=="string"?n:n[0])},r=a=>{for(let n of a)switch(n.kind){case"text":case"image":o.add(n.key),n.kind==="image"&&n.alt&&o.add(n.alt);break;case"button":o.add(n.key),o.add(n.href),typeof n.variant=="object"&&o.add(n.variant.key);break;case"list":o.add(n.key);break;case"group":case"block":t(n.box),r(n.parts??[]);break;case"core":if(n.keep!=="rest"&&n.keep.forEach(s=>o.add(s)),Object.keys(n.rename??{}).forEach(s=>o.add(s)),n.derive?.reads.forEach(s=>o.add(s)),typeof n.slots!="function")for(let s of Object.values(n.slots??{}))for(let l of s)"kind"in l&&o.add(l.key);break}};for(let a of[e,...e.also??[]])t(a.box),r(a.parts);return o}var Qh=e=>dn(e.headPlacement)==="own-box";function Lz(e){return Qh(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function Rz(e,o){let t=e[o];return Array.isArray(t)&&t.some(r=>!!r&&typeof r=="object"&&typeof r.type=="string")?"already on the Box path: its items draw from a filled card template":void 0}function Dz(e){let o=new Set,t=r=>{for(let a of r)if(a.kind==="group"||a.kind==="block")t(a.parts??[]);else if(a.kind==="core"&&a.slots&&typeof a.slots!="function")for(let[n,s]of Object.entries(a.slots))s.length>0&&s.every(l=>!("kind"in l))&&o.add(n)};for(let r of[e,...e.also??[]])t(r.parts);return[...o]}function Nz(e,o,t){if(!t.press)for(let r of Dz(e)){let a=Rz(o,r);if(a!==void 0)return a}}function va(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:Lz(r))??Nz(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],l=[],i=new Set,d=(y,b)=>{s.push({key:y,home:b}),i.add(y)},f=r._partStyles??{},x=Bz(o),u=0,h=(y,b)=>({type:y,props:{...b,id:`${n}~${y}-${++u}`}}),I=(y,b,E,B,R,C,L)=>{if(R){for(let P of y??[]){let v=typeof P=="string"?P:P[0];E[v]!==void 0&&L(v,`nothing \u2014 the ${B} has no parts, so it is not drawn`)}return}let g=typeof b=="function"?b(r,t):b??{};return j_(y??[],g,E,(P,v,S)=>L(P,S?`nothing \u2014 the old value draws nothing (${B}: no ${v})`:`${C}${B}: ${v}`),t)},w=y=>Ft(y,b=>`${n}~${b}-${++u}`),T=(y,b,E)=>{let B=y.of?y.of(b):Array.isArray(b[y.key])?b[y.key]:[],R=typeof y.props=="function"?y.props(r,t):y.props??{},C=B.map((S,N)=>{let H=S??{},q=y.item?.(H,N,r)??{},z=O(q.reverse?[...y.parts].reverse():y.parts,H,!1,`item ${N+1}: `);return y.flat?q.props?z.map(ne=>({...ne,props:{...ne.props,...q.props,id:ne.props.id}})):z:[h(Wt,{name:`${y.name} ${N+1}`,...R,...q.props??{},[$t]:z})]});if(y.groups){let S=y.groups;return E(y.key,B.length?`one Box per item (${B.length}), in a Box per group`:"nothing \u2014 the list is empty"),ud(B.map(N=>N??{}),S.of,S.of).map((N,H)=>{let q=N.items.map(oe=>oe.item),z=S.parts?O(S.parts,S.head?.(q,r)??{},!1,`group ${H+1}: `):[],ne=N.items.map(oe=>C[oe.index]),ge=S.perRow?.(q.length,r),J=Number.isInteger(ge)&&ge>=1?ge:1,me=[];if(S.perRow&&J<ne.length)for(let oe=0;oe*J<ne.length;oe++)me.push(ne.slice(oe*J,(oe+1)*J).flat());return h(Wt,{name:`${S.name} ${H+1}`,...S.props??{},[$t]:[...z,h(Wt,{name:`${S.itemsName} ${H+1}`,...S.itemsProps?.(q.length,r)??{},[$t]:me.length?me.map((oe,xe)=>h(Wt,{name:`${S.rowName??`${S.itemsName} row`} ${xe+1}`,...S.rowProps??{},[$t]:oe})):ne.flat()})]})})}let L=y.perRow?.(r),g=y.perRow?Number.isInteger(L)&&L>=1?L:1:0;if(E(y.key,(B.length?y.flat?`each item's parts (${B.length} items), in order`:`one Box per item (${B.length}), its parts inside`:"nothing \u2014 the list is empty")+(g&&B.length?`, in rows of ${g}`:"")),!g)return C.flat();let P=typeof y.rowProps=="function"?y.rowProps(r,t):y.rowProps??{},v=[];for(let S=0;S*g<C.length;S++){let N=C.slice(S*g,(S+1)*g).flat(),H=y.rowFiller?g-C.slice(S*g,(S+1)*g).length:0;v.push(h(Wt,{name:`${y.rowName??`${y.name} row`} ${S+1}`,...P,[$t]:[...N,...Array.from({length:H},(q,z)=>h(Wt,{name:`Empty ${z+1}`,...y.rowFiller,[$t]:[]}))]}))}return v},O=(y,b,E,B)=>{let R=[],C=(g,P)=>E?d(g,P):void 0,L=g=>E?f[g]:void 0;for(let g of y)if(!(g.when&&!g.when(r,E?void 0:b)))switch(g.kind){case"text":{let P=Zh(b[g.key]);if(!P.text.trim()&&!(E&&t.press&&o.pressKeepsEmpty?.includes(g.key))){C(g.key,"nothing \u2014 empty words draw nothing, so no block");break}let v=_z(g.role??"body"),{_partStyles:S,...N}=v,H=Az(v,g.styleFrom?{...g.style,...g.styleFrom(r,t)}:g.style,L(g.key),g.props?.align);R.push(h("Text",{text:g.mark==="accentLead"?Ez(P.text):g.mark==="accentItalic"?Rs(P.text):P.text,...N,...g.props??{},...H,...P.hidden?{_hidden:!0}:{}})),C(g.key,`${B}Text block: its words${P.hidden?", hidden":""}`);break}case"button":{let P=Zh(b[g.key]);if(!P.text.trim()){C(g.key,"nothing \u2014 no words, no button"),C(g.href,"nothing \u2014 no button to link"),typeof g.variant=="object"&&C(g.variant.key,"nothing \u2014 no button to style");break}let v=typeof b[g.href]=="string"&&b[g.href]?b[g.href]:"#",S={...g.style??{},...L(g.key)??{}};R.push(h("ButtonBlock",{label:P.text,href:v,...typeof g.props=="function"?g.props(b,t):g.props??{},...Fz(g.variant,b),...Object.keys(S).length?{_partStyles:{label:S}}:{},...P.hidden?{_hidden:!0}:{}})),C(g.key,`${B}Button block: its words`),C(g.href,`${B}Button block: its link`),typeof g.variant=="object"&&C(g.variant.key,`${B}Button block: its Style`);break}case"image":{let P=b[g.key];if(typeof P!="string"||!P){C(g.key,"nothing \u2014 no picture, no block"),g.alt&&C(g.alt,"nothing \u2014 no picture to describe");break}let v=g.alt&&typeof b[g.alt]=="string"?b[g.alt]:"";R.push(h("ImageBlock",{src:P,alt:v,...g.props??{}})),C(g.key,`${B}Image block: its picture`),g.alt&&C(g.alt,`${B}Image block: its alt text`);break}case"list":{R.push(...T(g,b,C));break}case"group":{let P=O(g.parts,b,E,B),v=I(g.box,g.props,b,`${g.name} Box`,!P.length&&!g.keepEmpty,B,C);v&&R.push(h(Wt,{name:g.name,...v,[$t]:P}));break}case"block":{let P=g.parts?O(g.parts,b,E,B):[],v=I(g.box,g.props,b,`${g.type} block`,!!g.parts&&!P.length&&!g.keepEmpty,B,C);v&&R.push(h(g.type,{...v,...g.slot?{[g.slot]:P}:{}}));break}case"core":{let P=g.as??e.type,v={...g.headless?{}:{headPlacement:"own-box"},...g.props??{}},S=g.keep==="rest"?Object.keys(b).filter(H=>!x.has(H)&&!(H in v)):g.keep;for(let H of S)b[H]!==void 0&&(v[H]=b[H],C(H,`the ${P} block inside the Box`));if(g.keep==="rest"){for(let q of Object.keys(g.props??{}))b[q]!==void 0&&!x.has(q)&&C(q,`nothing \u2014 the ${P} block inside the Box has the row's own value`);b.headPlacement!==void 0&&C("headPlacement",`the ${P} block inside the Box: own-box`);let H=Object.fromEntries(Object.entries(f).filter(([q])=>!x.has(q)));Object.keys(H).length&&(v._partStyles=H)}for(let[H,q]of Object.entries(g.rename??{}))b[H]!==void 0&&(v[q]=b[H],C(H,`the ${P} block inside the Box: ${q}`));if(g.derive){Object.assign(v,g.derive.props(b,t));for(let H of g.derive.reads)b[H]!==void 0&&C(H,`the ${P} block inside the Box`)}let N=typeof g.slots=="function"?g.slots(b,t):g.slots??{};for(let[H,q]of Object.entries(N))v[H]=q.flatMap(z=>"kind"in z?T(z,b,C):w([z]));R.push(h(P,v));break}}return R},F=(y,b)=>{let E=b===0?"Box":`${y.name} Box`,B=O(y.parts,r,!0,b===0?"":`${E}: `),R=typeof y.boxProps=="function"?y.boxProps(r,t):y.boxProps??{},C=j_(y.box??[],R,r,(L,g,P)=>d(L,P?`nothing \u2014 the old value draws nothing (${E}: no ${g})`:`${E}: ${g}`),t);return{type:Wt,props:{name:y.name,...C,[$t]:B,id:vz(n,b)}}},k=[o,...o.also??[]].map(F);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[y,b]of Object.entries(o.reads??{}))r[y]!==void 0&&d(y,b);for(let[y,b]of Object.entries(o.drop??{}))y in r&&(l.push({key:y,why:b}),i.add(y));for(let y of Object.keys(r))G_.has(y)||i.has(y)||l.push({key:y,why:"not in the row \u2014 not carried"});return{node:k[0],nodes:k,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function q_(e,o=Gl,t={}){let r=e.content;if(!Array.isArray(r))return e;let a=!1,n=r.flatMap(s=>{let l=s&&typeof s.type=="string"&&o.includes(s.type)?$(Br,s.type):void 0;if(!l)return[s];let i=va(s,l,t);return i.skipped!==void 0?[s]:(a=!0,i.nodes)});return a?{...e,content:n}:e}function V_(e,o=Gl,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?$(Br,a.type):void 0;if(!s)return;let l=va(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as Mz,BLOCK_SIZE_KEYS as Hz,parseBlockWidthFit as Yc,phoneKey as Y_,parseTextFit as Vc,tabletKey as X_,viewKeyAt as J_}from"efficient-easel/draw";import{sideLengthAt as Wz}from"efficient-easel/screen/lib/content/length-units";var $z="sf-block-size",Kl=["width","minWidth","maxWidth"],Xc=e=>`${e}Unit`,Rr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,zz={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},o1={desktop:{fill:"view-desktop:w-full view-desktop:[.flex-row>&]:grow",fixed:"view-desktop:w-[min(var(--sf-bw),100%)] view-desktop:basis-auto! view-desktop:grow-0! view-desktop:shrink-0"},tablet:{fill:"view-wide:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-wide:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-wide:max-view-desktop:basis-auto! view-wide:max-view-desktop:grow-0! view-wide:max-view-desktop:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},Uz={desktop:o1.desktop,tablet:{fill:"view-tablet:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-tablet:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-tablet:max-view-desktop:basis-auto! view-tablet:max-view-desktop:grow-0! view-tablet:max-view-desktop:shrink-0"},phone:{fill:"max-view-tablet:w-full",fixed:"max-view-tablet:w-[min(var(--sf-bw-p),100%)] max-view-tablet:basis-auto! max-view-tablet:grow-0! max-view-tablet:shrink-0"}},jz={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},t1="max-view-wide:grow!";function r1(e){return Jc(e).mode.phone==="fill"}var Gz={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Kz={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},qz="data-sf-min-width",Z_={two:{desktop:"wide",phone:ex.phone},three:ex},Vz={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},eI={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-wide:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-wide:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},Yz={minWidth:{desktop:eI.minWidth.desktop,tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:eI.maxWidth.desktop,tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},Xz=["widthFit",...Kl],Q_={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},oI={desktop:"view-desktop:whitespace-nowrap view-desktop:[&_*]:whitespace-nowrap!",tablet:"view-wide:max-view-desktop:whitespace-nowrap view-wide:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},Jz={desktop:oI.desktop,tablet:"view-tablet:max-view-desktop:whitespace-nowrap view-tablet:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-tablet:whitespace-nowrap max-view-tablet:[&_*]:whitespace-nowrap!"},a1={desktop:"view-wide:min-w-0 view-wide:[&_*]:overflow-hidden view-wide:[&_*]:text-ellipsis",phone:"max-view-wide:min-w-0 max-view-wide:[&_*]:overflow-hidden max-view-wide:[&_*]:text-ellipsis"},Zz={desktop:"view-desktop:min-w-0 view-desktop:[&_*]:overflow-hidden view-desktop:[&_*]:text-ellipsis",tablet:"view-wide:max-view-desktop:min-w-0 view-wide:max-view-desktop:[&_*]:overflow-hidden view-wide:max-view-desktop:[&_*]:text-ellipsis",phone:a1.phone},n1={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},e1={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:n1.phone};function s1(e){let o=Jc(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>jz[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function l1(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=Jc(e),n=d=>o?Z_.three[d]:Z_.two[d],s={fill:[],fixed:[],min:[]},l=a("minWidth");for(let d of t){let f=r[d];(f==="fill"||f==="fixed")&&s[f].push(n(d)),l[d]!==void 0&&s.min.push(n(d))}let i={};for(let d of["fill","fixed"])s[d].length&&(i[Kz[d]]=s[d].join(" "));return s.min.length&&(i[qz]=s.min.join(" ")),i}function Jc(e){let o=Xz.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Yc(n)!==void 0:Rr(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),l=o?a(n?.tablet)??s:s;return{desktop:s,tablet:l,phone:a(n?.phone)??l}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=Xc(a),s={};for(let i of t)s[J_(a,hn(i))]=Rr(e[a]?.[i]),s[J_(n,hn(i))]=e.units?.[a]?.[i];let l=i=>Wz(s,{length:a},n,hn(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(Yc,e.widthFit)}}function tI(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(P=>Vc(e.textFit?.[P])==="ellipsis"),r=o&&!t,a=r?Uz:o1,n=r?Yz:eI,s=r?Jz:oI,l=[],i={},d={},{three:f,sides:x,lengthPerSide:u,mode:h}=Jc(e),I=u("width");for(let P of x){let v=h[P];!v||v==="fit"||(l.push(f?a[P][v]:zz[P][v]),v==="fixed"&&(i[Gz[P]]=un(I[P]?.value??Mz.fallback,I[P]?.unit)))}for(let P of Kl.filter(v=>v!=="width")){let v=u(P);for(let S of x){let N=v[S];if(N===void 0)continue;let[H,q]=f?n[P][S]:Vz[P][S];i[H]=un(N.value,N.unit),l.push(q)}}let w=Vc(e.textFit?.desktop),T=Vc(e.textFit?.phone),O=P=>{let v=Rr(e.minFont?.[P]);return v===void 0?void 0:e.units?.minFont?.[P]==="vw"?`${v}vw`:String(v)},F=O("desktop"),k=O("phone"),y=Vc(e.textFit?.tablet),b=y!==w||T!==void 0?y:void 0,E=O("tablet"),B=E!==F||k!==void 0?E:void 0,R=Rr(e.maxWidth?.desktop),C=Rr(e.maxWidth?.tablet)??R,L={desktop:R!==void 0,tablet:C!==void 0,phone:(Rr(e.maxWidth?.phone)??C)!==void 0},g=(P,v,S)=>{if(v!=="line"&&v!=="ellipsis")return;let N=P==="tablet"?void 0:P,H=(q,z)=>S||!N?q[P]:z[N];if(v==="line"){l.push(H(s,Q_));return}if(l.push(H(oI,Q_)),l.push(H(Zz,a1)),f&&!S&&P==="desktop")for(let q of["desktop","tablet"])L[q]||l.push(e1[q]);else L[P]||l.push(H(e1,n1))};return b?(g("desktop",w,!0),g("tablet",b,!0),g("phone",T??b,!0)):(g("desktop",w,!1),g("phone",T??w,!1)),w&&(d[rr.fit]=w),b&&(d[rr.fitTablet]=b),T&&(d[rr.fitPhone]=T),F!==void 0&&(d[rr.min]=F),B!==void 0&&(d[rr.minTablet]=B),k!==void 0&&(d[rr.minPhone]=k),!r&&(b||B!==void 0)&&(d[rr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[$z,...l].join(" "),style:i,attrs:d}}function tme(e){if(Rr(e.maxWidth?.desktop)!==void 0)return!0;let o=Yc(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function i1(e){return["desktop","tablet","phone"].some(o=>{let t=Yc(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Rr(e.minWidth?.[o])!==void 0})}function Zc(e){let o={};for(let t of Hz){let r=e[t],a=e[X_(t)],n=e[Y_(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=Xc(t),l={desktop:e[s],tablet:e[X_(s)],phone:e[Y_(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var d1={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as Qz}from"efficient-shell/format";import{convertLength as eU}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as f1}from"efficient-easel/draw";var zt=(e,o,t,r)=>o===t?e:eU(e,o,t,r,{min:0,max:200,step:4}),Pa={textFit:"line",textFitPhone:"wrap"},Ta={...U,[Go]:""},{label:Lme,href:Rme,...oU}=d1.defaultProps,so=oU,Oa={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...Am,sectionAccent:0},Yn={sectionAccent:-1},Q=[...yr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",ak.unitKey,...lk,...ok,"anchor",Ks,...kn,Td,...Rd,...gc,...Ld(["widthFit",...Kl,...Kl.map(Xc)]),...Object.values(Bo)],Vn="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",X={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Vn,fullWidth:Vn,pageWidth:Vn,backgroundWidth:Vn,contentWidth:Vn,contentMax:Vn},re=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(e=>[e,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"])),Qc={[Dt]:"read by `wrapperPad`: a value named here is drawn as it is, so the section's own px is not added; the Box's padding is the total"};function ae(e,o){let t=ye(e.sectionPaddingTop)??0,r=ye(e.sectionPaddingBottom)??0,a=ye(e.sectionPaddingTopTablet),n=ye(e.sectionPaddingBottomTablet),s=hr(e.sectionPaddingUnit),l=hr(e.sectionPaddingUnitTablet),i=hr(e.sectionPaddingUnitPhone),d=Array.isArray(e[Dt])?e[Dt]:[],f=(T,O)=>d.includes(T)?0:O,x=(T,O,F,k,y,b)=>{let E=ye(e[T]);if(E!==void 0)return E+zt(f(T,b),"px",i,"mobile");let B=k===void 0?{n:y,unit:s,key:F}:{n:k,unit:l,key:O};return zt(B.n,B.unit,i,"mobile")+zt(f(B.key,b),"px",i,"mobile")},u=(T,O,F,k,y,b)=>F!==void 0?{[T]:F+zt(f(T,b??y),"px",l,"tablet")}:b===void 0?{}:{[T]:zt(k,s,l,"tablet")+zt(f(O,b),"px",l,"tablet")},h=T=>({desktop:ko[T],tablet:f1(ko[T],"tablet"),phone:f1(ko[T],"mobile")}),I=h("top"),w=h("bottom");return{[I.desktop]:t+zt(f(I.desktop,o.top),"px",s,"desktop"),[w.desktop]:r+zt(f(w.desktop,o.bottom),"px",s,"desktop"),...u(I.tablet,I.desktop,a,t,o.top,o.topTablet),...u(w.tablet,w.desktop,n,r,o.bottom,o.bottomTablet),[I.phone]:x(I.phone,I.tablet,I.desktop,a,t,o.topPhone),[w.phone]:x(w.phone,w.tablet,w.desktop,n,r,o.bottomPhone)}}var de=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>ae(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function st(e,o){let t={};for(let[a,n]of ax)e[a]!==void 0&&(t[n]=e[a]);let r=Ud(e,Nn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var Dr=e=>[...ax.map(([o,t])=>[o,t,(r,a)=>st(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>st(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>st(t,e).sectionPaddingBottom]],tU={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Dme=e=>o=>Me(o.props[e])?[tU]:[],fe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:U,...o?{style:o}:{}}),Xn=e=>({kind:"group",name:"Chip",props:{...A,...Yt("main"),...Co(6,14)},parts:[fe(e,{color:"background",...M("label",12),weight:600,letterSpacing:.16})]}),c1=e=>e.background!=="transparent",rU=(e,o)=>{let[t,r]=[e,o].map(a=>typeof a=="string"?a.trim():"");return t?r?`[${t} ]{color=text}${r}`:`[${t}]{color=text}`:r},ql={align:"right",alignPhone:"left"},aU=(e,o,t)=>{let r=a=>rU(a[e],a[o]);return{kind:"block",type:"Text",when:(a,n)=>n!==void 0&&r(n)!=="",box:[[e,"text",(a,n)=>r(n)],[o,"text",(a,n)=>r(n)]],props:t}},Vl=(e,o,t,r={})=>aU(e,o,{...Ta,...ql,...r,_partStyles:{text:{...Ro,color:"labels",...t,case:Ro.case,...ql}}}),Jn=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ca(o)?.selected??0,p1="var(--site-surface-2)",ep=(e,o)=>Ca(o)?.themes[Jn(e.sectionAccent??0,o)],Wo=(e,o)=>(t,r)=>{if(!o?.(t,r))return Yt(e);let a=ep(t,r)?.[e];return a?{fillColor:a}:{}},op=(e,o)=>Nr(e,o)>=0,u1=e=>e.startsWith("#")&&Qz(e)!==null,tp=(e,o,t)=>{let r=e?.trim();if(r&&u1(r))return{fillColor:r};let a=sx(r);if(a)return Yt(a);let n=r===p1?ep(o,t):void 0;return n?{fillColor:Aw(n)}:{}},rp=e=>{let o=e?.trim();return!o||o==="transparent"||o===Ht||sx(o)||o===p1||u1(o)?void 0:"it paints a colour that no Box Fill can hold"},Nr=(e,o)=>{let t=Ca(o)?.themes;return t&&c1(e)?Fw(t,Jn(e.sectionAccent,o)):-1},Mr=(e,o,t)=>{let r=Nr(o,t);return r>=0?r:e},Zn=(e,o)=>{let t=Ca(o)?.themes,r=t?Bw(t,Jn(e,o)):-1;return r>=0?r:e},Ea=(e,o)=>{let t=Nr(e,o);return t>=0?{sectionAccent:t}:{}},Hr=(e,o)=>c1(e.props)&&Nr(e.props,o)<0?[{kind:"band-preset",page:Jn(e.props.sectionAccent,o)}]:[],Qn=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=hn(o),d=(x,u,h)=>{let I=hr(u),w=Cw(x,I,"spacing",h);return w===null?null:zt(w,I,"px",i)},f=o==="desktop"?d(a,n,aC)??xC(a):d(s,l,nC)??IC(s)??SC(a,n);return zt(Math.min(r,f),"px",t,i)},Yl=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),Xl=e=>({top:0,right:0,bottom:0,left:0,...e}),rI=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...A,...Yl,...Wo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],Ge.kind,Ge.duration,Ge.delay],parts:r});import{phoneKey as II,readHidable as gI}from"efficient-easel/draw";import{isNodeList as _U,newId as AU}from"efficient-easel/data";function m1(e){return Math.min(4,Math.max(2,e??3))}var Wme={eyebrow:"Label",title:"Section *heading.*"},nU=Qi.Cards,x1={label:"Cards",fields:nU,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Ume={eyebrow:"Highlight",title:"Key *features.*"},jme=()=>[{label:c("Feature label one")},{label:c("Feature label two")},{label:c("Feature label three")},{label:c("Feature label four")},{label:c("Feature label five")},{label:c("Feature label six")}],h1={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as sU}from"efficient-shell/format";var aI="cardPlace",lU=["","top-line"];function Vme(e){return sU(lU,"",e[aI])}var Yme="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",Xme="data-sf-top-line",iU=new Set(["Cards",no]);function Jme(e){return typeof e=="string"&&iU.has(e)}var dU=e=>{if(!e||typeof e!="object")return!1;let o=e,t=n=>typeof n=="number"&&n>0,r=o.width,a=n=>typeof o[n]=="number"?t(o[n]):t(r);return a("top")&&!a("right")&&!a("bottom")&&!a("left")};function Zme(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:dU(e)?{...e,top:0}:e}var Qme="outsideFramedCard";var ap={sectionBorder:{top:0,right:1,bottom:1,left:0},...Yt("background")},fU={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},_a=e=>({direction:"row",columns:e,columnsTablet:e,...fU}),I1=(e={})=>Ae(Fc,{...U,tag:"p",[aI]:"top-line"},e,!0),es=(e=Qr)=>{let o=nn(e);return{...o,props:{...ap,...o.props},slots:{[Ce]:[...o.slots?.[Ce]??[],I1()]}}},nI=(e=!1)=>{let o=sn(e);return{...o,props:{...ap,...o.props}}},cU={name:"name",time:"time",note:"note",price:"price"},pU={textStyle:"body-1",...M("body",16),weight:500,lineHeight:1.5},uU={...Ro,...M("label",12),letterSpacing:.18,lineHeight:1.5},mU={textStyle:"body-1",...M("body",14),lineHeight:1.6},xU={textStyle:"body-1",fontRole:"heading",...M("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},hU={...M("label",11),letterSpacing:.25},IU={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},np=e=>({direction:"row",columns:e,...IU}),sI=[...new Set([...Object.keys(_a(1)),...Object.keys(np(1))])],lI=()=>{let e=cU,o={tag:"p",widthFit:"fill"};return{type:G,props:{...A,name:"Card",justify:"between",gap:16,gapPhone:16,...Co(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Yt("surface"),shadow:!0},slots:{[Ce]:[I1(hU),{type:G,props:{...A,name:"Words",gap:8,gapPhone:8},slots:{[Ce]:[Ae(e.name,{...U,...o},pU),Ae(e.time,{...te,...o},uU),Ae(e.note,{...te,...o},mU)]}},Ae(e.price,{...U,...o},xU)]}}};import{tabletKey as b1}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as sp}from"efficient-easel/draw";var lp=Vt,iI=sp,g1=960,y1=Vt,S1={min:lp,max:1600,step:10},ip="stackBelow";function fxe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<S1.min||e>S1.max))return Math.round(e)}var gU=e=>`sf-stack-${e}`,yU=e=>`sf-stack-${e}-gutter`,SU=e=>`sf-stack-${e}-outer`,os=e=>`${e-.02}px`;function cxe(e,o={}){let t=o.gutter!==!1,r=`.${gU(e)}`,a=`.${yU(e)}`,n=`.${SU(e)}`,s=[];if(e>lp){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,sp);s.push(`@media (min-width:${lp}px) and (max-width:${os(e)}){${r}${r}{flex-direction:column}.sf-gap-overlap${r}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${l}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${lp}px) and (max-width:${os(i)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>sp&&s.push(`@media (min-width:${sp}px) and (max-width:${os(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${os(e)}){${a}${a}{padding-inline:${lC.frame}}}`),t&&e<g1&&s.push(`@media (min-width:${e}px) and (max-width:${os(g1)}){${a}${a}{padding-inline:${sC}}}`),e>y1&&s.push(`@media (min-width:${y1}px) and (max-width:${os(e)}){`+["top","bottom","left","right"].map(l=>`.sf-pad-${l}-phone:has(>${n}),.sf-pad-${l}-phone${n}{padding-${l}:var(--sf-pad-${l[0]}-phone)!important}`).join("")+"}"),s.join("")}import{parseOption as bU}from"efficient-shell/format";var wU=["standard","editorial","simple","essay"];function Aa(e){if(e==="ProductGrid")return"shelf";let o=$(St,e)?.headStyle;return bU(wU,"standard",o)}var Jl={standard:64,editorial:60,simple:36,essay:28,shelf:20},CU={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function kU(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=$(St,e);if(!o)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:o.num,title:o.title,description:o.description,link:o.headRows.includes("linkText")&&o.headRows.includes("linkHref")}}function fp(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=dp.get(r);if(a)return a;let n=v1({num:e,title:o,description:t,link:!1});return dp.set(r,n),n}var $o={[ip]:iI},fI={top:0,right:0,bottom:1,left:0},zo=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),cp=(e,o,t={})=>fe(e,{...M("label",o),...t}),pp=(e,o)=>({kind:"text",key:e,role:"heading",props:U,style:{textStyle:"heading-2",...o}}),cI=Vt,vU=iI,pI=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...te,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:cI}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...M("body",o),...r,...a}}),k1={...so,align:"right",alignPhone:"left",...Oa},dI=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:k1,style:{...yt(e),color:"labels"}}),w1=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...U,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?PU(Xt()):{},...t.style}}}}},PU=e=>e._partStyles.text??{},ts={widthFitPhone:"fill"};function uI(e){if(e.kind!=="group")return e;if(e.name==="Words"){let o=e.props;return{...e,props:typeof o=="function"?(t,r)=>({...o(t,r),...ts}):{...o,...ts}}}return{...e,parts:e.parts.map(uI)}}function TU(e,o){let t=$(CU,e),r=t==="accent",a=cp(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=pp(o.title,r?{...zo("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...M("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),l=e==="Collections";return{kind:"group",name:"Header",props:{...A,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:fI,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...A,...ts,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...A,...ts,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[w1(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...A,...ts},parts:[s,...l?[w1(o.title,`Three ranges,
320
- one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...A,...ts,gap:12,maxWidth:340,maxWidthPhone:cI},parts:[...o.description?[pI(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[dI(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...k1,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:dI(14).style}}}]:[]]}]}}function up(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>up(t,o))}:e}function v1(e){let o=pp(e.title,{...zo("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...A,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:fI,sectionPaddingBottom:32,...$o},parts:[{kind:"group",name:"Title",props:{...A,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...$o},parts:[{kind:"group",name:"Number",props:{...A,sectionPaddingBottom:8},parts:[{...cp(e.num,13),props:{...U,...Pa}}]},up(o,[e.title])]},{kind:"group",name:"Words",props:{...A,sectionPaddingBottom:4,maxWidth:360,[b1("maxWidth")]:vU,maxWidthPhone:cI},parts:e.description?[pI(e.description,14,void 0,{lineHeight:1.5},{[b1("align")]:"left"})]:[]}]}}function C1(e,o){return{kind:"group",name:"Header",props:{...A,gap:16,gapPhone:16},parts:[cp(e.num,13),pp(e.title,o)]}}var P1=[["para",{...yt(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...M("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...M("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...M("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...M("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],OU=e=>P1.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function EU(e){return{kind:"group",name:"Header",props:{...A,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:fI,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...A,direction:"row",align:"end",gap:24,share:"content"},parts:[cp(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...P1.map(([o,t])=>({...pp(e.title,t),when:r=>OU(r)===o}))]},{kind:"group",name:"Words",props:{...A,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[pI(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[dI(13)]:[]]}]}}function mp(e){return Aa(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}var dp=new Map,mI={...M("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function lt(e){let o=dp.get(e);if(o)return o;let t=kU(e),r=Aa(e),a=r==="editorial"?v1(t):r==="simple"?C1(t,mI):r==="essay"?C1(t,{...M("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?EU(t):TU(e,t);return dp.set(e,a),a}var Fa={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Ht,Stats:void 0};var Zl=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),R1=e=>o=>m1(ye(o.columns)??ye(e.columns)),FU="inline is the head the row draws; an own-box node is skipped (`skip`)",BU={kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-3",...mI}},hp=e=>{let o=na(typeof e.background=="string"?e.background:void 0,Fa.Series);return o&&o!=="transparent"?o:void 0},xp=e=>hp(e)===Ht,LU={...A,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},T1={...A,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[II("share")]:"content"},RU=e=>{let o=hp(e)?1:2;return{...A,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},xI={...yt(12),letterSpacing:.22,lineHeight:1.5},O1=e=>Me(e.viewLabel)&&!gI(e.viewLabel).hidden,it=e=>gI(e).text?.trim?.()??"",Ip=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>mo(o)!==void 0)),yI=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),DU=yI([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),NU=yI([["label","Label"],["value","Value"],["body","Card body",!0]]),Ql=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:no,headless:!0,keep:s,derive:{reads:n,props:l=>Cd(r(l),t)},slots:(l,i)=>({[Pe]:[a(l,i)]})}]}),D1=e=>Array.isArray(e.cards)?e.cards:[],N1=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Ip({title:it(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Ws(Hm(o),t),...o})),MU=e=>N1(e).some(o=>mo(o.href)!==void 0),M1=[{key:Bm.label,label:"Feature label"},{key:Bm.href,label:"Link",kind:"link"}],E1=e=>uO(e.eyebrowLook,"KeyFeatures")==="filled",HU={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...Wo("surface")(e,o),...Zl(1,0,1,0),...ae(e,sc)}),box:[...Q,...de(sc)],parts:[{kind:"group",name:"Heading",props:{...A,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[II("share")]:"content"},parts:[{...Xn("eyebrow"),when:E1},{...fe("eyebrow"),when:e=>!E1(e)},BU]},Ql("Cards",e=>({...A,..._a(R1(h1.defaultProps)(e))}),M1,N1,e=>nI(MU(e)),{reads:["items"]})],drop:{...X,...re,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},_1=(e,o)=>({...ap,...Wo("background")(e,o)}),A1=e=>{let o=R1(x1.defaultProps)(e);return{...A,..._a(o)}},WU=yI([["title","Card title"],["body","Card body",!0]]),H1=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Ws(Hm(o),t),title:it(o?.title),body:it(o?.body)})),W1=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(_U(a)?t[r]=a.map(W1):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},F1=(e,o)=>{let t=hI(e)?nI($U(e)):es(),r=Array.isArray(e.template)?e.template.map(W1):[t],[a]=r;return r.length===1&&a.type===G?{...a,props:{..._1(e,o),...a.props}}:{type:G,props:{...A,..._1(e,o),name:"Card"},slots:{[Ce]:r}}},hI=e=>e.cardStyle==="label-only",$1=e=>H1(e).map((o,t)=>{let r=e.items[t]?.href;return Ip({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),$U=e=>$1(e).some(o=>mo(o.href)!==void 0),B1=e=>Array.isArray(e.template)&&e.template.length===0,L1=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function z1(){let e=t=>({key:AU("card"),title:c(t),body:c("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:c("Label"),title:c("Section *heading.*"),items:o}}var zU={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...Wo("surface")(e,o),...ae(e,Xf)}),box:[...Q,...de(Xf)],parts:[{...lt("Cards"),when:e=>!Qh(e)},{...Ql("Cards",A1,WU,H1,F1,{reads:["items"],keep:L1}),when:e=>!B1(e)&&!hI(e)},{...Ql("Cards",A1,M1,$1,F1,{reads:["items"],keep:L1}),when:e=>!B1(e)&&hI(e)}],drop:{...X,...re,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},UU={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...Zl(0,0,1,0),...$o,...xp(e)?Ea(e,o):{},...tp(hp(e),e,o),...ae(e,dc)}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>xp(o)?Mr(e,o,t):e],...de(dc)],skip:e=>rp(hp(e)),site:(e,o)=>xp(e.props)?Hr(e,o):[],parts:[lt("Series"),Ql("Cards",RU,DU,e=>D1(e).map(o=>Ip({num:it(o.num),since:it(o.since),title:it(o.title),body:it(o.desc),count:it(o.entries),countLabel:it(o.entriesLabel)})),(e,o)=>({type:G,props:{...LU,...Wo("background",(t,r)=>xp(t)&&op(t,r))(e,o),name:"Card"},slots:{[Ce]:[{type:G,props:{...A,name:"Words",gap:16,gapPhone:16},slots:{[Ce]:[{type:G,props:{...T1,name:"Top"},slots:{[Ce]:[Ae("num",U,M("label",13),!0),Ae("since",U,M("label",13),!0)]}},Ae("title",{...U,tag:"h3"},{textStyle:"heading-3",...M("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Ae("body",te,{textStyle:"body-5",fontRole:"heading",...M("body",14),lineHeight:1.6})]}},{type:G,props:{...T1,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...Zl(1,0,0,0),...O1(e)?{}:{[en]:["count","countLabel"]}},slots:{[Ce]:[{type:G,props:{...A,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[II("share")]:"content"},slots:{[Ce]:[Ae("count",U,xI),Ae("countLabel",te,xI)]}},...O1(e)?[{type:G,props:{...A,name:"View",maxWidthPhone:266},slots:{[Ce]:[{type:"Text",props:{...U,text:gI(e.viewLabel).text,_partStyles:{text:{...Xt()._partStyles.text,...xI}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...X,...re,headPlacement:FU}},jU={...A,direction:"row",columns:3,gap:40,gapPhone:16},GU={...A,gap:8,gapPhone:8,...Co(24),...Zl(1,1,1,1)},KU={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...Zl(0,0,1,0),...ae(e,rc)}),box:[...Q,...de(rc)],parts:[Ql("Cards",jU,NU,e=>D1(e).map(o=>Ip({label:it(o.label),value:it(o.value),body:it(o.desc)})),(e,o)=>({type:G,props:{...GU,...Wo("surface")(e,o),name:"Card"},slots:{[Ce]:[Ae("label",U,{...M("label",12),lineHeight:1.5},!0),{type:G,props:{...A,name:"Words",gap:14,gapPhone:14},slots:{[Ce]:[Ae("value",U,{textStyle:"heading-3",...M("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Ae("body",te,{textStyle:"body-5",fontRole:"accent",...M("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...X,...re}},U1={Cards:zU,KeyFeatures:HU,Series:UU,DocMetaCards:KU};import{SITE_SIDE as OB}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as XU}from"efficient-easel/draw";import{newId as JU}from"efficient-easel/data";import{phoneKey as qU}from"efficient-easel/draw";import{isNode as ei}from"efficient-easel/data";var rs="cardStyle";function j1(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var gp={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[qU("share")]:"content"},card:{justify:"between",gap:12,gapPhone:12,sectionHeightMode:"fixed",sectionHeightValue:242,sectionHeightUnit:"px",widthFitPhone:"fixed",widthPhone:800,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1}}},list:{items:{gap:32,gapPhone:32,phoneRow:2},grid:{gap:32,gapPhone:32},row:{gap:32,gapPhone:32},card:{justify:"start",gap:8,gapPhone:8,sectionPaddingTop:20,sectionPaddingBottom:0,sectionBorder:{top:1,right:0,bottom:0,left:0}}}},dt={table:{...gp.table,listCard:j1(gp.table.card)},list:{...gp.list,listCard:j1(gp.list.card)}},Jxe=[{label:"Table",value:"table"},{label:"List",value:"list"}],Zxe=e=>e==="table"||e==="list",VU=e=>[...new Set([...Object.keys(dt.table[e]),...Object.keys(dt.list[e])])];function oi(e,o,t){let r={...e};for(let a of VU(o))delete r[a];return{...r,...structuredClone(dt[t][o])}}function YU(e,o,t){let r=e.props??{},a=Array.isArray(r[Pe])?r[Pe]:[],n=a.findIndex(i=>ei(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:oi(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Pe]:l}}}function Qxe(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>ei(s)&&s.type===no)){let s=a.map(l=>ei(l)&&l.type===no?YU(l,o,t):l);return{...oi(e,"items",o),[rs]:o,[r]:s}}let n=a.map(s=>{if(!ei(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>ei(d)&&d.type===t?{...d,props:oi(d.props??{},"card",o)}:d);return{...s,props:{...oi(l,"row",o),[r]:i}}});return{...oi(e,"grid",o),[rs]:o,[r]:n}}var SI=e=>typeof e=="string"?e.trim():"";function G1(e){let o=`${SI(e.prefix)}${SI(e.value)}`,t=SI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var q1={textStyle:"heading-2",...zo("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},bI={kind:"block",type:"Text",props:{...Ta,_partStyles:{text:q1}},box:[["value","text",(e,o)=>G1(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&G1(o)!==""},K1=e=>Me(e?.supSuffix),V1={textStyle:"body-1",fontRole:"heading",...M("body",16),lineHeight:1.5,letterSpacing:-.01},Y1={color:"labels",...M("label",12),lineHeight:1.5,letterSpacing:.24},X1={...A,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[XU("share")]:"content"},J1={textStyle:"body-5",...M("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},wI=e=>na(e.background,Fa.StatsParagraph),ti=e=>wI(e)===Ht,yp=e=>({...e,sectionAccent:e.sectionAccent??0}),ZU=(e,o)=>ti(e)?Wo("background",(t,r)=>op(yp(t),r))(e,o):{},QU={name:"Stats with Text",skip:e=>wI(e)&&wI(e)!=="transparent"&&!ti(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...$o,...st(e,"StatsParagraph"),...ti(e)?Ea(yp(e),o):{}}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ti(o)?Mr(e,yp(o),t):e],...Dr("StatsParagraph")],site:(e,o)=>ti(e.props)?Hr({props:yp(e.props)},o):[],parts:[lt("StatsParagraph"),{kind:"group",name:"Stats",props:{...A,...dt.table.grid,[rs]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...A,direction:"row",share:"equal",phoneRow:2,...dt.table.row},props:(e,o)=>({...A,...dt.table.card,...ZU(e,o)}),parts:[{...bI,when:(e,o)=>!K1(o)&&bI.when(e,o)},{kind:"group",name:"Figure",props:X1,when:(e,o)=>K1(o),parts:[bI,{kind:"text",key:"supSuffix",props:U,style:J1}]},{kind:"group",name:"Words",props:{...A,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:U,style:V1},fe("sub",Y1)]}]}]}],drop:{...X,...re,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},ej=new Set(["value","label",Go]),oj=e=>{let o=na(typeof e.background=="string"?e.background:void 0,Fa.Stats);return!!o&&o!=="transparent"},tj={name:"Stats",skip:e=>oj(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Me(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Me(o?.[Go]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(o=>Object.keys(o??{}).some(t=>!ej.has(t)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(o=>o!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...Y,direction:"column",gap:24,gapPhone:24,...ae(e,fc)}),box:[...Q,...de(fc)],parts:[fe("heading",{color:"labels",...M("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...A,...dt.list.grid,[rs]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>ye(e.columns)??4,rowName:"Stats row",rowProps:{...A,direction:"row",share:"equal",phoneRow:2,...dt.list.row},props:{...A,...dt.list.card},parts:[{kind:"text",key:"value",props:Ta,style:{textStyle:"heading-2",...M("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},fe("label",{color:"labels",...M("label",12),letterSpacing:.2})]}]}],drop:{...X,...re,columns:"the rows of N: one row Box per `columns` figures, which the Box draws",dataSource:"an empty source is typed figures, what the row draws; a sourced node is skipped (0 Hartes nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 Hartes nodes)",contained:"the Box draws the site frame now; each figure fills the Box's column",background:"only no fill reaches here: a node that paints a colour is skipped"}},Z1={StatsParagraph:QU,Stats:tj};function Q1(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var rj=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function eA(){let e=(o,t,r,a="")=>({key:JU("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",c("Years in business"),c("Privately held since day one. Same two founders.")),e("==_8_==",c("Operating footprint"),c("Los Angeles \xB7 Fort Lauderdale \xB7 Bewdley \xB7 Drachten \xB7 Mumbai \xB7 Selangor \xB7 Ho Chi Minh \xB7 Sydney. Three continents covered from one California design studio."),c("cities")),e("\u221221==_%_==",c("Avg. weight saving"),c("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",c("Finish steps"),c("Specified in California to a 14-step protocol. No two sets are identical."))]}function aj(e){return{type:G,props:{...A,name:"Card",...structuredClone(dt[e].listCard)},slots:{[Ce]:[{type:G,props:{...X1,name:"Figure"},slots:{[Ce]:[Ae("figure",Ta,q1),Ae("superscript",U,J1)]}},{type:G,props:{...A,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Ae("label",{...U,widthFit:"fill"},V1),Ae("body",{...U,widthFit:"fill"},Y1,!0)]}}]}}}function CI(e,o,t=4){return{type:G,props:{...A,name:"Stats",direction:"row",columns:t,...structuredClone(dt[o].items),[rs]:o},slots:{[Ce]:[{type:no,props:Cd(e,rj),slots:{[Pe]:[aj(o)]}}]}}}var oA={heading:"Ways to pay"},tA=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],rA=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],ghe={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as nj}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as nA}from"efficient-shell/format";var Sp="Flex",sj={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},lj={FooterPayment:"PaymentLogosBlock"},ij=e=>{let{id:o,...t}=e;return t},aA=e=>typeof e=="string"?e:"",as={sm:12,md:13,lg:15},sA={sm:{mark:16,words:as.sm},md:{mark:20,words:as.md}},dj="md",lA=1.5,fj={size:13,lineHeight:lA,width:280},cj=14,pj=40,uj=e=>nA(["left","center","right"],"left",e);function mj(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=ye(e[r]);n&&(o[a]=n)}return o}function xj(e,o,t){let r=t(e,ij(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:iA(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=hd(e,r.props);return a===r.props?r:{...r,props:a}}function iA(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of At(r))a[n]=iA(a[n],o,t);return{...r,props:a}})}function dA(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=$(sj,e.type)??$(lj,e.type);if(n)return[xj(n,r,o)];switch(e.type){case"FooterLogo":{let s=uj(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(Hv*((ye(r.widthPct)??100)/100)),href:"/",align:s,...mj(r)}),i=aA(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...fj}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&xo(as,r.size)?r.size:dj;return[o("Text",{text:aA(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:as[s],lineHeight:lA}}})]}case"FooterDivider":{let s=ye(r.thickness),l=ye(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...l!==void 0?{lengthPct:l}:{},...r.hideOnMobile===!0?{[nj("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Sp,{direction:r.direction==="horizontal"?"row":"column",gap:Wv("FooterGroup",r.gap),align:nA(["start","center","end","stretch"],"start",r.align),...Om,content:s.flatMap(l=>dA(l,o,t))})]}default:return[]}}function ri(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Sp,{direction:"row",wrap:!0,share:"equal",gap:pj,content:f}),s=[],l=[];for(let f of a){let x=dA(f,o,r);if(f.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...x);continue}x.length<=1?l.push(...x):l.push(o(Sp,{direction:"column",gap:cj,align:"stretch",...Om,content:x}))}(l.length||!s.length)&&s.push(n(l));let i=o(Sp,{direction:"column",content:[o("LegalLineBlock")]}),d=Kv(eo,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as kI,readHidable as hj}from"efficient-easel/draw";import{parseOption as Ij}from"efficient-shell/format";var vI={contained:!1},PI=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Me(r?.src)||Me(r?.[o])}]}]}),gj={...fe("heading",{color:"labels",letterSpacing:.2}),props:{...U,align:"center"}},yj={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...ae(e,Sl(e))}),box:[...Q,...de(Sl),["bandPadding","sectionPaddingTop",(e,o)=>ae(o,Sl(o)).sectionPaddingTop]],parts:[gj,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:vI,slots:PI("items","alt")}],drop:{...X,...re,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},Sj={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:Yb(4,"main",{sectionCorners:2})},bj={name:"Payment Methods",boxProps:e=>({...Y,direction:"column",...ae(e,Qf)}),box:[...Q,...de(Qf)],parts:[{kind:"group",name:"Methods",props:{...A,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...fe("heading",{color:"labels"}),props:{...U,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[ao,qt],props:e=>Me(e[ao])?{[ao]:e[ao],...e[qt]!==void 0?{[qt]:e[qt]}:{}}:{}},props:{...vI,look:"cards",grayscale:!1},slots:e=>({...PI("badges","label"),...Me(e[ao])?{[Pe]:[Rm()]}:{}})},{kind:"group",name:"Reassurance",props:{...A,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[kI("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Me(o?.text)),props:{...A,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[kI("share")]:"content"},item:e=>hj(e.text).hidden?{props:{_hidden:!0}}:{},parts:[Sj,{kind:"text",key:"text",props:{...U,align:"center"},style:{...M("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...X,...re,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},fA=e=>zb(e.align)??"left",cA=e=>Ij(["sm","md"],"sm",e.size),pA=12,uA={name:"Payment logos",boxProps:e=>({...A,direction:"row",wrap:!0,align:"center",justify:dd[fA(e)],gap:pA,gapPhone:pA,phoneRow:2,[kI("share")]:"content"}),box:[...yr],parts:[{kind:"text",key:"lead",props:te,styleFrom:e=>({size:as[cA(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[ao,qt],props:e=>({logoHeight:sA[cA(e)].mark,align:fA(e),...Me(e[ao])?{[ao]:e[ao],...e[qt]!==void 0?{[qt]:e[qt]}:{}}:{}})},props:{...vI,look:"marks",grayscale:!1,sectionAccent:Ir},slots:e=>({...PI("methods","label"),...Me(e[ao])?{[Pe]:[Rm()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},mA={Logos:yj,PaymentBadges:bj,FooterPayment:uA,PaymentLogosBlock:uA},xA=()=>({heading:SE.heading,items:Bc()}),hA=()=>({heading:oA.heading,badges:tA(),assurances:rA()}),IA=()=>({...sf,methods:[]});import{mixHex as Pj}from"efficient-shell/format";import{MOTION_EASING as wj,MOTION_TIMING as gA,motionSeconds as yA,parseOption as SA}from"efficient-shell/format";var TI="none",bp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function Yhe(e){return SA(bp,TI,e)}var ns="_gLoop",ai={field:"loop",is:"scroll"},ni="left",OI=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],Cj={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function bA(e){return SA(OI,ni,e)}function wA(e){return e==="up"||e==="down"}function wp(e){return yA("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var Xhe=gA.loop.duration.default,kj=gA.loop.delay.default;function CA(e){return yA("loop","delay",e.loopDelay)}function Jhe(e,o,t=kj){return`${Cj[e]} ${o}s ${wj.loop}${t?` ${t}s`:""} infinite`}var Cp="_gEntrance";var oIe="none",tIe=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function kp(e){return e==="above"||e==="below"?e:null}var kA="sf-ticker-join";function vj(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function vA(e){return`absolute inset-x-0 ${vj(e)}`}var PA=e=>e.size==="display",Tj=(e,o)=>{let t=ep(e,o),r=e.tone!=="plain"&&t?.text&&t.background?Pj(t.text,t.background,.3):null;return r?{color:r}:{}},Oj=(e,o)=>e.tone!=="plain"&&Km(e.sectionAccent)===null?Wo("background")(e,o):{},TA=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:te,style:e,styleFrom:Tj}]}),Ej={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...fa,...qf,...Gb[Tm(e.separator)]===""?U0:{},...ae(e,ca),...Oj(e,o)}),box:[["scrollDirection","scrollDirection",e=>bA(e)],["speed","loopDuration",(e,o)=>o.loopDuration!=null?o.loopDuration:e],["loopDuration","loopDuration",(e,o)=>e??o.speed],["loopDelay","loopDelay",e=>e],["separator","separator",e=>Tm(e)],["join","join",e=>kp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...Q,["tone","sectionAccent",(e,o)=>Km(o.sectionAccent)??Ir],...de(ca)],parts:[TA(Vf,e=>!PA(e)),TA(j0,PA)],drop:{...X,...re,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},OA=e=>e?.tone==="muted",EA=e=>kd(Ca(e)),_j={name:"Spec Strip",boxProps:(e,o)=>({...Y,...fa,...xl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:EA(o)},...ae(e,pa)}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:EA(t)],...de(pa)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:U,style:hl,when:(e,o)=>!OA(o)},{kind:"text",key:"text",props:te,style:hl,when:(e,o)=>OA(o)}]}],drop:{...X,...re,...Qc,fill:"None \u2192 no fill and a line on top. Dark band (the default) \u2192 the Box's theme is the site's first dark preset that is not its page (lib/theme `darkBandIndex`; Theme 2 with no site theme): the old fixed `plate-band` colour, as a theme"}},_A={Ticker:Ej,SpecStrip:_j};import{tabletKey as AA}from"efficient-easel/screen/lib/content/view-tiers";var FA={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[AA("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[AA("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},EI={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as Aj}from"efficient-easel/draw";var vp={eyebrow:Te.eyebrow,title:`Section heading
321
- *Highlight line*`,intro:Te.body,imageCaption:Te.imageCaption,imageMeta:Te.imageMeta,cta:ze.text},BA=()=>[{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")},{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")},{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")}],gIe={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Pp={eyebrow:Te.eyebrow,title:Te.headingAccent,intro:Te.body,cta:ze.text},LA=()=>[{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year \u2192"),title:c("Upcoming"),blurb:c("A milestone still to come."),future:!0}],CIe={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Bv,padTop:120,padBottom:120}};var WA={buttonBorder:{width:0}},Ep=(e,o,t={})=>({textStyle:"body-5",...M("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),ss=(e,o,t={})=>({...Ep(e,o),...Ro,...t}),_p=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),si=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),ft=(e,o,t={})=>({kind:"text",key:e,props:U,style:o,...t}),RA=(e,o)=>o?.future===!0,Tp=e=>WO(typeof e?.body=="string"?e.body:""),LI=e=>na(typeof e.background=="string"?e.background:void 0,Fa.TimelineTrack),_I=e=>LI(e)===Ht?e:{...e,background:"transparent"},Fj={name:"Milestone Timeline",skip:e=>rp(LI(e)),boxProps:(e,o)=>{let t=Nr(_I(e),o);return{...Y,direction:"column",gap:60,[Aj("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...$o,...st(e,"TimelineTrack"),...tp(LI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Mr(e,_I(o),t)],...Dr("TimelineTrack")],parts:[uI(up(fp("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...A,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...A,direction:"row",share:"equal",gap:0,line:!0,...$o},parts:[{kind:"list",key:"entries",name:"Year",props:{...A,...FA},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:EI.name,props:{...A,...EI},parts:[ft("date",Ep(13,.22,{color:"accent"}),{when:(e,o)=>!RA(e,o)}),ft("date",Ep(13,.22,{color:"labels"}),{when:RA}),ft("title",{textStyle:"heading-3",..._p(M("headingSmall",20),-.02,1.1)},{role:"heading"})]},ft("blurb",si(M("body",13),1.55),{props:te,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...A,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...so,align:"right",...WA},style:ss(13,.3)}]}]}],site:(e,o)=>Hr({props:_I(e.props)},o),drop:{...X,...re,background:"another colour is the Box's Fill, or a skip if no Fill holds it; the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},DI=e=>typeof e.layout=="string"?e.layout:"split",Op=e=>DI(e)==="split",RI=e=>!Op(e),$A=e=>DI(e)==="spine",Bj=e=>RI(e)&&!$A(e),DA=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...A,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...Co(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...A,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[ft("imageCaption",ss(11,.24,{color:"text"})),ft("imageMeta",ss(11,.24,{color:"accent"}),{props:{...U,align:"right"}})]}]}),NA=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...so,...e,...WA},style:ss(13,.3)}),AI=()=>[ft("title",{textStyle:"heading-3",..._p(M("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...U,_partStyles:{text:si(M("body",17,16),1.6)}},box:[["body","text",(e,o)=>Rs(Tp(o)[0]??"")]],when:(e,o)=>Tp(o).length>0},{kind:"block",type:"Text",props:{...te,_partStyles:{text:si(M("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Rs(Tp(o).slice(1).join(`
322
-
323
- `))]],when:(e,o)=>Tp(o).length>1}],FI=()=>ft("date",Ep(13,.24,{color:"accent"})),BI=(e,o,t={})=>ft(e,o,{...t,props:{...U,...t.props??{},align:"center"}}),MA=zo("headingMedium",40,5,76),HA={sectionBorder:{bottom:1}},Lj={name:"Story Timeline",skip:e=>DI(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Op(e)?{...Y,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...HA,...st(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...HA,...st(e,"Timeline")},box:[...Q,...Dr("Timeline")],parts:[{kind:"group",name:"Heading",props:{...A,gap:24,gapPhone:24},when:Op,parts:[ft("eyebrow",ss(12,.3,{color:"accent"}),{role:"eyebrow"}),ft("title",{textStyle:"heading-2",..._p(MA,-.03,.94)},{role:"heading",mark:"accentItalic"}),ft("intro",si(M("body",14),1.6),{props:{...te,maxWidth:360},mark:"accentItalic"}),DA(667,419,{},()=>!0),NA()]},{kind:"group",name:"Chapters",props:{...A,gap:48,gapPhone:48,line:!1},when:Op,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...A,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[FI(),{kind:"group",name:"Words",props:{...A,gap:14,gapPhone:14},parts:AI()}]}]},{kind:"group",name:"Heading",props:{...A,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:RI,parts:[BI("eyebrow",ss(12,.3,{color:"accent"}),{role:"eyebrow"}),BI("title",{textStyle:"heading-2",..._p(MA,-.03,.94)},{role:"heading",mark:"accentItalic"}),BI("intro",si(M("body",14),1.6),{props:{...te,maxWidth:520},mark:"accentItalic"}),NA({align:"center"})]},DA(506,192,{maxWidth:900,widthFit:"fill"},RI),{kind:"group",name:"Chapters",props:{...A,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:$A,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...A,gap:8,gapPhone:8},parts:[FI(),{kind:"group",name:"Words",props:{...A,gap:14,gapPhone:14},parts:AI()}]}]},{kind:"group",name:"Chapters",props:{...A,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:Bj,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...A,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...A,gap:8,gapPhone:8},parts:[FI(),{kind:"group",name:"Words",props:{...A,gap:14,gapPhone:14},parts:AI()}]},{kind:"group",name:"Spacer",props:{...A},keepEmpty:!0,parts:[]}]}]}],drop:{...X,...re,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},zA=()=>({eyebrow:vp.eyebrow,title:bt(vp.title),intro:vp.intro,ctaText:ze.text,ctaHref:ze.href,entries:BA()}),UA=()=>({eyebrow:Pp.eyebrow,title:bt(Pp.title),intro:Pp.intro,ctaText:ze.text,ctaHref:ze.href,entries:LA()}),jA={TimelineTrack:Fj,Timeline:Lj};import{tabletKey as Rj}from"efficient-easel/draw";function GA(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var ct=e=>typeof e=="string"?e:e==null?"":String(e),NI=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],ls=e=>ct(e.group),eF=e=>`loc-${e}`,oF=e=>ct(e.state).trim()||mx(ct(e.region)).state,tF=e=>ct(e.country).trim()||mx(ct(e.region)).country,KA=e=>[oF(e),tF(e)].filter(Boolean).join(" \xB7 "),Dj=e=>NI(e).some(o=>ct(o.photo).trim()!==""),Nj=e=>NI(e).some(o=>dw(Number(o.lat),Number(o.lng))),Mj=(e,o)=>NI(e).filter(t=>ls(t)===ls(o)).length,Hj=(e,o)=>Mj(e,o)===1?"wide":eP(e.imageShape),qA=48,Ct=(e,o={})=>({...yt(e),...o}),MI={top:1,right:1,bottom:1,left:1},HI={...A,direction:"row",share:"equal",gap:0},Wj=e=>o=>o>md(o)?{...A,gap:0}:{...HI,...o>1?{phoneRow:e}:{}},WI=!0,$j={kind:"group",name:"Gallery",props:{...A,gap:20,...WI?{_hidden:!0}:{}},when:Dj,parts:[{kind:"group",name:"Gallery head",props:{...A,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[fe("galleryKicker",Ct(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...te,align:"right",alignPhone:"left"},style:Ct(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...A,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...A,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:MI,...Co(12,12)},item:(e,o,t)=>({props:{...ct(e.photo).trim()?{bgImage:ct(e.photo),hover:"mono"}:{},link:`#${eF(o)}`,boxShape:Hj(t,e)}}),parts:[{kind:"text",key:"name",props:U,style:Ct(11,{letterSpacing:.22,color:"text"})}],groups:{of:ls,name:"Group",props:{...A,gap:10},head:e=>({label:ls(e[0]??{})}),parts:[fe("label",Ct(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:Wj(2),perRow:md,rowName:"Row",rowProps:{...HI,phoneRow:2}}}]}]},zj={kind:"group",name:"Words",props:{...A,gap:12,gapPhone:12,...Co(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...A,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...A,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:U,style:{textStyle:"heading-3",...M("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...U,_partStyles:{text:Ct(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>KA(t)]),when:(e,o)=>KA(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...A,sectionBorder:MI,...Co(6,10)},parts:[{kind:"text",key:"timezone",props:{...te,textFit:"line"},style:Ct(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:te,style:{textStyle:"body-5",fontRole:"heading",...M("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...so,...Oa,variant:"ghost",arrow:!1,_partStyles:{label:Ct(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>GA(ct(e))??"#"]],when:(e,o)=>ct(o?.phone).trim()!==""},{kind:"text",key:"hours",props:te,style:Ct(12,{letterSpacing:.18,lineHeight:1.7})}]},Uj={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(o,t)=>oF(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>tF(t)])]},jj={kind:"group",name:"Map",props:{...A,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[Uj]},Gj={kind:"list",key:"locations",name:"City",props:(e,o)=>({...A,gap:0,justify:"between",sectionBorder:MI,jumpHighlight:!0,sectionAccent:Nr(e,o)>=0?Jn(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:eF(o)}}),parts:[zj,jj],groups:{of:ls,name:"Group",props:{...A,gap:20},head:e=>{let o=e[0]??{};return{key:ls(o),groupName:ct(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...A,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>ct(o?.key).trim()!=="",parts:[fe("key",Ct(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:U,style:{textStyle:"heading-3",...M("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:te,style:Ct(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...HI,columns:md(e),[Rj("columns")]:1})}},VA=Ct(10,{letterSpacing:.25}),Kj={kind:"block",type:Wt,props:{...A,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Nj,slot:$t,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...te,text:"Location coordinates \xA9",_partStyles:{text:VA}}},{kind:"block",type:"ButtonBlock",props:{...so,...Oa,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...VA,color:"labels"}}}}]},YA=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),XA=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],JA=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],ZA=e=>e.map(o=>[o,o,(t,r)=>ae(r,Dn)[o]]),QA=["sectionAccent","sectionAccent",Mr],qj=[...yr,...kn,...Object.values(Bo)],Vj={name:"City pictures",skip:e=>De(e)?`fed by the data source "${De(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:40,anchor:"studios",...$o,...YA(ae(e,Dn),XA),sectionPaddingBottom:qA,sectionPaddingBottomPhone:qA,...Ea(e,o)}),box:[...Q.filter(e=>e!=="sectionAccent"&&e!=="anchor"),QA,["anchor","anchor",e=>Dv(e).trim()?e:"studios"],...ZA(XA)],parts:[fp("sectionNumber","heading","tagline"),$j],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...$o,sectionPaddingTop:0,sectionPaddingTopPhone:0,...YA(ae(e,Dn),JA),...Ea(e,o)}),box:[...qj,QA,...ZA(JA)],parts:[Gj,Kj]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:Hr,drop:{...X,...re,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},rF={ContactLocations:Vj};import{SITE_SIDE as aF,sideLengthAt as Yj}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as $I}from"efficient-easel/draw";var Xj=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var Wr=(e,o)=>()=>({top:e,topPhone:o}),nF=e=>o=>{let t=Nn(e),r={...o,[Sr.top]:Ud(o,t).top},a=i=>{let d=Yj(r,Sr,zd,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>ye(o[$I(Sr.top,i)])===void 0?void 0:a(i),s=n("tablet"),l=n("mobile");return{top:a("desktop")??t.top??0,...s!==void 0?{topTablet:s}:{},...l!==void 0?{topPhone:l}:{}}},Jj={Collections:Wr(120,70),Events:Wr(120,70),FAQ:Wr(Jf.top,Jf.topPhone),GalleryB:Wr(120,70),FitmentTable:Wr(120,80),SpecTable:Wr(120,80),LongRead:Wr(Zf.top,Zf.topPhone),RelatedProducts:Wr(0,0),Footprint:nF("Footprint"),ProcessSteps:nF("ProcessSteps"),ProductGrid:e=>({top:ye(e.padTop)??120,topPhone:0})};function Zj(e,o={}){let t=$(St,e),r=$(Jj,e);if(!t||!r)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);let a=t.padKey,n=lt(e),s=mp(e),l=t.headRows.filter(d=>![t.num,t.title,t.description,"linkText","linkHref"].includes(d)),i={...Object.fromEntries(l.filter(d=>!(d in s)).map(d=>[d,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:$(Jr,e)??e,boxProps:(d,f)=>{let x=r(d),u=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(d,f):o.boxProps??{},I=Aa(e)==="editorial"?$o:{};return{...Y,direction:"column",gap:Jl[Aa(e)],sectionPaddingTop:x.top,...x.topTablet!==void 0?{sectionPaddingTopTablet:x.topTablet}:{},...x.topPhone!==void 0?{sectionPaddingTopPhone:x.topPhone}:{},...I,...u,...h}},box:[...Q,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&X0.has(e)?{[$I(a,"tablet")]:0,[$I(a,"mobile")]:0}:{},f={...a?{[a]:0}:{},...d,...o.coreProps},x={kind:"core",keep:"rest",...Object.keys(f).length?{props:f}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[x]}:x]})(),...o.partsAfter??[]],...Object.keys(s).length?{reads:s}:{},...Object.keys(i).length?{drop:i}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var Qj={...A,direction:"accordion",rowStyle:"numbered"},eG={sectionPaddingLeft:aF,sectionPaddingRight:aF},oG={Footprint:{slots:{[Pe]:[fw()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Bs]:L_().map(t=>({...t,props:{...t.props,...eG}}))}:{},boxProps:{gapPhone:Jl.editorial}},FAQ:{slots:{[Pe]:[iw()]},pressHeading:!0,coreBox:{name:"Questions",props:Qj},coreProps:{sectionAccent:Ir},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[D0]:ul},skip:e=>{let o=e._partStyles??{},t=lw().filter(r=>o[r]!==void 0);return t.length?`held: its rows carry their own run style (_partStyles ${t.map(r=>`"${r}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},sF=Object.fromEntries(Xj.map(e=>[e,Zj(e,$(oG,e))]));import{BLOCK_WIDTH_LIMIT as tG}from"efficient-easel/draw";var Ap={eyebrow:Te.eyebrow,title:Te.headingAccent,deck:"Add a sentence or two introducing this document."},bge={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var cF={minWidth:tG.min},lF=(e,o,t)=>({...fe(e,{...o,...ql}),props:{...U,align:"right",...Pa,...t}}),pF={top:1,bottom:0},UI=(e,o,t,r)=>({kind:"group",name:e,props:{...A,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),iF={widthFit:"fill",...cF},rG={...M("label",13),letterSpacing:.22,lineHeight:1.8},dF={textStyle:"heading-1",...zo("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},aG=()=>({name:"Page Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...ae(e,tc)}),box:[...Q,...de(tc)],parts:[{kind:"group",name:"Header",props:{...A,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[UI("Eyebrow",12,0,{...fe("eyebrow",M("label",13)),props:{...U,...Pa}}),{kind:"text",key:"title",role:"heading",props:{...U,tag:"h1",...iF},style:dF,mark:"accentItalic",when:e=>!Hh(e)},{kind:"text",key:"title",role:"heading",props:{...U,tag:"h2",...iF},style:dF,mark:"accentItalic",when:Hh},{kind:"group",name:"Details",props:{...A,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[Vl("label","value",rG,Pa)]}]}]},{kind:"group",name:"Deck",props:{...A,maxWidth:760,sectionBorder:pF,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:te,style:{textStyle:"body-1",fontRole:"accent",...M("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...X,...re,[Dc]:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),uF=()=>({eyebrow:Ap.eyebrow,title:bt(Ap.title),deck:Ap.deck,meta:[{label:Te.label,value:Te.value},{label:Te.label,value:Te.value}]}),nG={...M("label",13),letterSpacing:.18,lineHeight:1.8},fF={...M("label",13),letterSpacing:.22,lineHeight:1.9},sG=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...ae(e,gl)}),box:[...Q,...de(gl)],parts:[{kind:"group",name:"Top",props:{...A,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[UI("Eyebrow",14,14,fe("eyebrow",M("label",14))),{kind:"group",name:"Issue",props:{...A,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[Vl("lead","rest",nG)]}]}]},{kind:"group",name:"Bottom",props:{...A,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:pF,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...U,maxWidth:720,...cF},style:{textStyle:"body-1",fontRole:"heading3",...M("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...A,align:"stretch",gap:0},parts:[UI("Heading",6,6,{kind:"text",key:"issueHeading",props:{...U,align:"right",...Pa},style:{textStyle:"body-1",fontRole:"heading",...M("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...ql}}),{kind:"group",name:"Lines",props:{...A,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[lF("text",{color:"labels",...fF})]}]},lF("issueTotal",fF)]}]}],drop:{...X,...re}}),zI={color:"labels",...M("label",13),letterSpacing:.2},mF=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),jI=(e,o)=>o!==void 0&&mF(e).at(-1)===o,xF=(e,o)=>o!==void 0&&mF(e).includes(o),lG=(e,o)=>xF(e,o)&&!jI(e,o)&&Me(o?.href),iG=()=>({name:"Breadcrumb",skip:e=>Me(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Y,...fa,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...ae(e,ml)}),box:[...Q,...de(ml)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:lG,props:{...so,...Oa,icon:"none"},style:zI},{...fe("label",zI),when:(e,o)=>xF(e,o)&&!jI(e,o)&&!Me(o?.href)},{...fe("label",{...zI,color:"text"}),when:jI}]}],drop:{...X,...re,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing",...Qc}}),hF={DocMasthead:aG(),Masthead:sG(),Breadcrumb:iG()};import{BLOCK_WIDTH_LIMIT as fG,hiddenKeyOf as cG}from"efficient-easel/draw";import{readHidable as GI}from"efficient-easel/draw";function dG(e,o,t){return e||(t?.isEditing?c(o):void 0)}function Dge(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function IF(e,o,t){let r=GI(e);if(!r.hidden)return dG(r.text,o,t)}function gF(e){if(e==null)return;let o=GI(e);return o.hidden?"":o.text}function Nge(e,o,t){return GI(e).hidden?"":IF(e,o,t)}function Mge(e,o,t){return{text:IF(e,ze.text,t),href:o||ze.href}}var wF="MenuBlock",KI=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Me(o.label)),yF=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(gF(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},SF={top:0,bottom:0,topPhone:0,bottomPhone:0},pG={...Ro,color:"labels",...M("label",12),letterSpacing:.24},uG={kind:"group",name:"Note",props:{...A,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[cG("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>yF(e)!=="",props:e=>({...U,textFit:"line",text:yF(e),[sv]:{text:pG}})}]},CF=()=>({tabs:[],metaLabel:Te.label,metaValue:Te.value}),bF="the note Text inside the Box (the label, then the value in the accent); no words, no Text",kF={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:fG.min},vF=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[yn]:0,[Xs]:!0,sectionBorder:{bottom:1},...ae(o,SF)}),box:[...Q,...de(SF)]}),mG=()=>vF({name:"Tab Bar",skip:e=>KI(e.tabs).length?"its tabs need a Console menu first: they are typed labels and links, and the Menu block draws only a Console menu":void 0,reads:{metaLabel:bF,metaValue:bF},parts:[{kind:"block",type:wF,props:kF},uG],drop:{...X,...re,tabs:"a node whose tabs hold words is skipped (`skip`): typed tabs are not a Console menu; a list of blank tabs draws nothing, so nothing is lost"}}),xG=()=>vF({name:"Category Bar",skip:e=>{if(KI(e.tabs).length)return"its tabs are typed words with typed counts, not the blog's categories: a Blog categories Menu would replace them";if(KI(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:wF,props:{...kF,[ao]:VS}}],drop:{...X,...re,tabs:"a node whose tabs hold words is skipped (`skip`); blank tabs draw nothing on a page, so nothing is lost. The Menu draws the blog's own categories",activeTab:"the Menu marks the page's own entry (Current page), not a typed active tab",links:"a node whose links hold words is skipped (`skip`); blank links draw nothing",sticky:"the bar is always pinned (the Box's own pin, Stays above): the merchant turns the Box's pin off",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}}),PF={DocTabs:mG(),CategoryBar:xG()};import{jsx as Ba,jsxs as qI}from"react/jsx-runtime";import{slugify as CG}from"efficient-shell/format";import{jsx as Bp,jsxs as EF}from"react/jsx-runtime";import{jsx as hG}from"react/jsx-runtime";import{useEffect as IG,useRef as gG}from"react";var TF="data-current",yG=1/3,SG=2;function bG(e,o,t=!1){if(t&&e.length)return e[e.length-1].anchor;let r=null;for(let a of e)a.top<=o&&(!r||a.top>r.top)&&(r=a);return r?.anchor??null}function wG(e,o,t=!1){let r=Array.from(e.querySelectorAll("a[href^='#']")),a=l=>{try{return decodeURIComponent((l.getAttribute("href")??"").slice(1))}catch{return""}},n=r.flatMap(l=>{let i=a(l),d=i?e.ownerDocument.getElementById(i):null;return d?[{anchor:i,top:d.getBoundingClientRect().top}]:[]}),s=bG(n,o,t);for(let l of r)s!==null&&a(l)===s?(l.setAttribute(TF,""),l.setAttribute("aria-current","location")):(l.removeAttribute(TF),l.removeAttribute("aria-current"))}function OF(){let e=gG(null);return IG(()=>{let o=e.current?.parentElement;if(!o)return;let t=0,r=()=>{t=0;let n=document.documentElement,s=window.scrollY>0&&window.scrollY+window.innerHeight>=n.scrollHeight-SG;wG(o,window.innerHeight*yG,s)},a=()=>{t||(t=requestAnimationFrame(r))};return r(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a),t&&cancelAnimationFrame(t)}},[]),hG("span",{ref:e,hidden:!0})}var Qge="sticky top-[120px]";var Fp={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var _F=(e,o)=>e?{[ea]:o}:{},AF=(e,o)=>nw(e?.[Ms(o)]?.role,Fp[o],db),FF=120;function BF({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Wx,takesViewHide:l=!1,markCurrent:i=!1}){let d=s==="plain",f=ot(),x=l?f:wr;return x.scope(EF("aside",{className:vo(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,x.className),style:r?{top:t}:void 0,...x.attrs,children:[e&&Bp("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Ye(e)}),o.map((u,h)=>{let I=Bp("span",{..._F(a,"number"),style:AF(n,"number"),className:"text-accent",children:Bf(s,h)});return EF("a",{href:`#${u.anchor}`,className:`flex items-center ${d?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${h===0?" border-t":""}${i?" data-[current]:text-fg":""}`,children:[d&&I,Bp("span",{..._F(a,"entry"),style:AF(n,"entry"),children:Ye(u.label||"Section")}),!d&&I]},`${h}-${u.anchor}`)}),i&&!a&&Bp(OF,{})]}))}function LF(e){let o=new Set;return e.map(t=>{if(!t)return"";let r=t,a=2;for(;o.has(r);)r=`${t}-${a++}`;return o.add(r),r})}function kG(e,o){return CG(e)||`section-${o+1}`}var VI=e=>typeof e=="string"&&e.trim()!=="";function YI(e){return(e??[]).filter(o=>VI(o.heading)||VI(o.label)||VI(o.body))}function XI(e){return LF(e.map((o,t)=>kG(o.label||o.heading||"",t)))}function JI(e){let o=[];for(let t of e.replace(/\r\n?/g,`
324
- `).split(/\n[ \t]*\n/))t.split(`
325
- `).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=nd(r)[0].bullet,s=o.at(-1),l=a===0||!s||s.type==="ul"!==n;if(n){let i=r.slice(2);!l&&s?.type==="ul"?s.items.push(i):o.push({type:"ul",items:[i]})}else!l&&s?.type==="p"?s.text+=`
326
- ${r}`:o.push({type:"p",text:r})});return o}var vG=()=>[{label:c("First section"),heading:c("Your *first* section."),body:c(`Write the opening paragraph here.
327
-
328
- - Start a line with a dash for a bullet.
329
- - Add as many as you like.`)},{label:c("Second section"),heading:c("Your *second* section."),body:c("Leave a blank line between paragraphs to start a new one.")}],PG=FF;function vye({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=PG,pad:a}){let n=wt(),s=YI(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?vG():s,i=XI(l);return Ba(ie,{as:"section",className:"relative z-[2] bg-bg",children:qI("div",{...q0(Zo("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",n),a),children:[Ba(BF,{title:e,entries:l.map((d,f)=>({label:d.label||"Section",anchor:i[f]})),stickyTop:r}),Ba("div",{className:"flex flex-col gap-16",children:l.map((d,f)=>qI("article",{id:i[f],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[qI("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Hx(f)," \xB7 ",Ye(d.label||"Section")]}),d.heading&&Ba("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:Ye(d.heading)}),JI(d.body??"").map((x,u)=>x.type==="ul"?Ba("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:x.items.map((h,I)=>Ba("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['\xB7']",children:Ye(h)},I))},u):Ba("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Ye(x.text)},u))]},i[f]))})]})})}var RF=18,DF=18,NF=8,TG=10,ZI=e=>typeof e=="string"&&e.trim()!=="",MF=e=>YI(e.sections),OG=e=>JI(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
330
- `)}:{kind:"p",text:o.text}),QI={...yt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},HF={textStyle:"body-1",fontRole:"accent",...M("body",17)},EG=[fe("label",QI),{...fe("title",QI),when:(e,o)=>!ZI(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!ZI(o?.label)&&!ZI(o?.title),props:{...U,text:"Section",_partStyles:{text:QI}}},{kind:"group",name:"Heading",props:{...A,sectionPaddingBottom:NF,sectionPaddingBottomPhone:NF},parts:[{kind:"group",name:"Heading line",props:{...A,sectionBorder:{bottom:1},sectionPaddingBottom:DF,sectionPaddingBottomPhone:DF},parts:[{kind:"text",key:"heading",role:"heading",props:U,style:{textStyle:"heading-2",...zo("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:OG,parts:[{kind:"text",key:"text",props:te,style:{...HF,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:te,style:{...HF,lineHeight:1.65,paragraphSpacing:TG},when:(e,o)=>o?.kind==="ul"}]}],_G=900,AG={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[ip]:_G,sectionBorder:{bottom:1},...ae(e,oc)}),box:["anchor","sectionAccent",...yr,...kn,...Object.values(Bo),...de(oc)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...A,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>MF(e),props:{...A,gap:RF,gapPhone:RF},item:(e,o,t)=>({props:{anchor:XI(MF(t))[o]??`section-${o+1}`}}),parts:EG}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},WF={DocBody:AG};import{phoneKey as RG}from"efficient-easel/draw";import{SITE_SIDE as DG}from"efficient-easel/screen/lib/content/length-units";var Nye={eyebrow:"\u2014 Label",title:`Section headline *here.*
331
- *Highlight line*`,body:"Describe this section in a sentence or two."},Mye={text:"Learn more"},Hye={label:"Image & Text Split",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",reverse:!1,uppercase:!1,textAlign:"left",ctaText:"",ctaHref:"",imageBtnText:"",imageBtnHref:"",textBgSrc:"",overlay:60,imageOverlay:40}};function eg(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}import{parseOption as FG}from"efficient-shell/format";var $F="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",BG="overlay",LG=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Lp(e){return FG(LG,BG,e)}var zye={desktop:40,mobile:45,min:20,max:80,step:5};function Uye(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as NG}from"efficient-shell/format";var zF=(e,o,t)=>{let r=ye(e),a=ye(o),n=(s,l)=>l&&l!=="px"?{[s]:l}:{};return{...r===void 0?{}:{size:r,...n(ol.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(ol.sizePhone,t?.phone)}}},MG=e=>Lp(e.layout)==="stacked",UF=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),Rp=e=>ye(e)??100,HG={textStyle:"heading-1",sizeToken:{...zo("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},WG=[fe("eyebrow",M("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:U,style:{...HG,case:e?"upper":"none"},styleFrom:o=>{let t=xx(o);return zF(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...te,maxWidth:560},style:{textStyle:"body-1",...M("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=xx(e);return zF(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...A,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:so}]}],jF=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,$G=()=>({name:"Scroll-Over Text",skip:e=>MG(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...Y,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...Yl,placement:"left",darken:UF(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Rp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Rp(e.heightMobile),[Hd]:ek}),box:[...Q.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>UF(o)],["heightDesktop","sectionHeightValue",e=>Rp(e)],["heightMobile","sectionHeightValuePhone",e=>Rp(e)]],parts:WG,drop:{uppercase:"not a value of its own: it picks the heading part \u2014 Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",...Object.fromEntries(oP.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:jF("Button color"),buttonTextColor:jF("Button text color"),...X}}),qF={textStyle:"heading-2",...M("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},zG={textStyle:"body-1",...M("body",16),lineHeight:1.7},VF=e=>({kind:"text",key:"body",props:{...te,maxWidth:520},style:{...zG,paragraphSpacing:e}}),Np={top:0,bottom:0,topPhone:0,bottomPhone:0},og=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},UG=(e,o)=>{let t=og(e,o);return Object.keys(t).length?t:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},YF={boxShapePhone:"landscape"},XF="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",jG=(e,o)=>({[e]:o,[RG(e)]:o}),GG={textStyle:"heading-2",...M("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},GF=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),KG=()=>({name:"Brand Text",boxProps:(e,o)=>({...Y,...Wo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ae(e,Np),...og(e,100)}),box:[...Q,...de(Np)],parts:[{kind:"group",name:"Words",props:()=>({...A,justify:"center",gap:28,gapPhone:28,sectionBorder:Xl({right:1}),sectionBorderPhone:Xl({}),...Yl,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:DG}),parts:[fe("eyebrow",M("label",14)),{kind:"text",key:"heading",role:"heading",props:U,style:{...qF,case:"none"},mark:"accentItalic"},VF(28),{kind:"group",name:"Stats",props:{...A,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...A,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(GF(e).length,1),3),...jG("sectionBorder",Xl({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:GF,props:{...A,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Ta,style:GG},fe("label",{...M("label",13),color:"labels",letterSpacing:.2})]}]}]}]},rI("Picture","imageSrc",YF)],drop:{...X,grayscale:XF,...re}}),Dp=e=>{let o=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},t=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...o,...t}},qG=e=>e.textAlign==="center"||e.textAlign==="right"?dd[e.textAlign]:"stretch",VG=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),JF=e=>typeof e=="string"&&e.trim()!=="",YG={...so,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},KF=e=>({...rI("Picture","imageSrc",(o,t)=>({...JF(o.imageSrc)&&eg(o.imageOverlay)>0?{darken:eg(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...YF,sectionBorder:Xl(e?{left:1}:{right:1}),...ZF(e?"left":"right",Qn(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:YG,style:{...yt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),ZF=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},XG={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...A,justify:"center",align:qG(e),placement:NG(["left","center","right"],"left",e.textAlign),...UG(e,72),gap:24,gapPhone:24,...JF(e.textBgSrc)?{darken:VG(e),darkenStyle:"even"}:{},...Yl,sectionPaddingTop:100,sectionPaddingBottom:100,...ZF(t?"right":"left",Qn(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...fe("eyebrow",M("label",14)),styleFrom:Dp},{kind:"text",key:"title",role:"heading",props:U,style:qF,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Dp(e)})},{...VF(24),styleFrom:Dp},{kind:"group",name:"Button",props:{...A,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Dp(e);return{...so,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},JG=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Y,...Wo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ae(e,Np),...og(e,72)}),box:[...Q,...de(Np)],parts:[KF(!1),XG,KF(!0)],drop:{reverse:"not a value of its own: it picks the order \u2014 the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case \u2014 Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",imageOverlay:"read by the Picture Box: its Darken over the image column's picture (40 when unset, none at 0); no picture, no wash",grayscale:XF,...X,...re}}),QF={IntroBleed:$G(),Manifesto:KG(),Split:JG()};var tB={headPlacement:void 0},eB={top:0,bottom:0,topPhone:0,bottomPhone:0},ZG=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...ae(e,eB)}),box:[...Q,...de(eB)],parts:[{kind:"core",keep:"rest",props:tB}],drop:{...X,...re}}),oB={top:120,bottom:120,topPhone:60,bottomPhone:60},QG=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...ae(e,oB)}),box:[...Q,...de(oB)],parts:[fe("eyebrow"),{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:te},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:tB}],skip:e=>e.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...X,...re,layout:'the marker of the two-region drawing; a node that has it is skipped (above), so here it is never "boxes"',boxes:'the SubmitBox regions, drawn only under layout "boxes", which this row skips (above); without that marker they draw nothing'}}),rB={Form:ZG(),SubmitBuild:QG()};import{phoneKey as aB}from"efficient-easel/draw";var sB=1.5,nB={textStyle:"body-1",...M("body",15),lineHeight:sB},e8={...Ro,...M("label",12),letterSpacing:.12,lineHeight:sB},lB=()=>({type:G,props:{...A,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[aB("share")]:"content",[aB("wrap")]:"nowrap",...Co(12,0),sectionBorder:{top:1},name:"Item"},slots:{[Ce]:[{type:G,props:{...A,gap:0,gapPhone:0,name:"Item words"},slots:{[Ce]:[Ae("label",{...U,tag:"p"},nB),Ae("meta",{...te,tag:"p"},e8)]}},Ae("amount",{...U,tag:"p"},nB)]}});var o8=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...Q],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Pe]:[lB()]}}],drop:{...X}}),iB={OrderSummary:o8()};import{phoneKey as t8}from"efficient-easel/draw";var hSe={eyebrow:"By the numbers",title:`A picture worth
332
- *a thousand rows.*`},dB=["eyebrow","title","body","caption"],ISe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var fB=["eyebrow","title","body"],ySe={label:"Mockup Card",defaultProps:{eyebrow:"",title:"",body:"",variant:"spec-card",cardHeader:"",badge:"",cardTitle:"",cardSubtitle:"",pills:[],tiles:[],rows:[],button:"",footnote:"",col1Title:"",col1Cards:[],col2Title:"",col2Cards:[],col3Title:"",col3Cards:[],col4Title:"",col4Cards:[],barsHeading:"",bars:[],termLines:[],urlText:"",heroTitle:"",heroButton:"",products:[],align:"right"}};var uB=()=>({kind:"group",name:"Words",props:{...A,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...A,direction:"row",phoneRow:2,[t8("share")]:"content"},parts:[Xn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2",...M("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...te,maxWidth:435},style:cd(16)}]}),mB=e=>(o,t)=>({...Y,sectionAccent:Zn(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...ae(o,yl)}),xB=[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Zn(e,t)],...de(yl)],r8=()=>({name:"Chart",boxProps:mB([42]),box:xB,parts:[uB(),{kind:"group",name:"Chart",props:{...A,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Yn},fe("caption",{color:"muted",...M("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...dB],drop:{...X,...re}}),cB=e=>e.align==="left",pB={kind:"group",name:"Card",keepEmpty:!0,props:A,parts:[{kind:"core",keep:"rest",props:Yn}]},a8=()=>({name:"Mockup Card",boxProps:mB("equal"),box:xB,parts:[{...pB,when:cB},uB(),{...pB,when:e=>!cB(e)}],pressKeepsEmpty:[...fB],drop:{...X,...re}}),hB={Chart:r8(),Mockup:a8()};import{phoneKey as s8}from"efficient-easel/draw";function IB(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function gB(e){return Math.max(e*6,30)}var l8=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),tg=e=>IB(l8(e)),i8=e=>wp({loopDuration:gB(e)}),d8={kind:"group",name:"Header",props:{...A,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...A,direction:"row",justify:"center",phoneRow:2,[s8("share")]:"content"},parts:[Xn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...U,align:"center"},style:{textStyle:"heading-2",...M("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...te,align:"center",maxWidth:568},style:cd(16)}]},f8=e=>({kind:"group",name:`Row ${e+1}`,when:o=>tg(o)[e].length>0,props:o=>({...A,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:i8(tg(o)[e].length)}),parts:[{kind:"block",type:"Logos",props:{contained:!1,headPlacement:"own-box",look:"chips",grayscale:!1},slot:"logos",parts:[{kind:"list",key:"apps",name:"Logo",flat:!0,of:o=>tg(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),c8={kind:"group",name:"Stat",props:{...A,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...A,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...U,align:"center"},style:{textStyle:"heading-1",...M("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...U,align:"center"},style:{textStyle:"heading-3",...M("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...U,align:"center",maxWidth:428},style:{textStyle:"body-1",...M("label",14),lineHeight:1.625,color:"muted"}}]},p8=[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Zn(e,t)],...de(nc)],u8={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:Zn(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...ae(e,nc)}),box:p8,parts:[d8,{kind:"group",name:"Rows",props:{...A,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>f8(o))},c8],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...re}},yB={Integrations:u8},SB=()=>({eyebrow:c("Integrations"),title:c(`Plays well with
333
- *your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});var m8={title:"Back online in",zeroText:"Almost done. Back very soon."},bB=["title"],NSe={label:"Countdown",defaultProps:{...m8,endsAt:"",showUnits:!0}};var x8={...fe("title",{...Xb(12),color:"muted"}),props:{...U,align:"center"}},h8=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...ae(e,ec)}),box:[...Q,...de(ec)],parts:[x8,{kind:"core",keep:"rest",props:Yn}],pressKeepsEmpty:[...bB],drop:{...X,...re}}),I8=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...ae(e,ac)}),box:[...Q,...de(ac)],parts:[{kind:"core",keep:"rest",props:Yn}],drop:{...X,...re}}),wB={Countdown:h8(),FeaturedCover:I8()};var CB={top:80,bottom:80,topPhone:60,bottomPhone:60},g8=()=>{let e=mp("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:Jl[Aa("FitmentFinder")],...ae(o,CB)}),box:[...Q,...de(CB)],parts:[lt("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...X,...re,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},kB={FitmentFinder:g8()};var Mp={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},qSe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var li={eyebrow:Te.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},XSe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var vB={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},ZSe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var PB={title:`Section heading
334
- *Highlight line*`},TB=[{label:ze.text,href:ze.href,variant:"primary"},{label:ze.text,href:ze.href,variant:"outline"}],obe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var dr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Te.viewAll},sbe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:Kf,num:dr.num,numStyle:wl,title:dr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Hp={eyebrow:"\u2014 Label",title:`Section headline
335
- *Highlight line*`,body:"A sentence or two of supporting copy."},fbe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:al,bodySizeDesktop:al,titleSizeMobile:al,bodySizeMobile:al,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[yn]:0,uppercase:!1}};var y8={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ae(e,lc)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...Q,...de(lc)],parts:[lt("Prose"),{kind:"text",key:"body",props:te,style:{textStyle:"body-1",...M("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...X,...re,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},EB={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},_B=(e,o)=>o?.variant==="primary",AB=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:_B,variant:"primary",style:{letterSpacing:.3},props:{...so,...EB,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!_B(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...so,...EB,...o}}]}),Wp=e=>Me(e.title),S8={name:"Call-to-Action Heading",boxProps:e=>({...Y,direction:"row",align:"center",justify:Wp(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...st(e,"TitleWithButtons")}),box:[...Q,...Dr("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...A,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-1",...zo("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...A,gap:14,gapPhone:14,widthFitPhone:"fill",...Wp(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[AB(Wp,{widthFit:"fill",iconPosition:"end"}),AB(e=>!Wp(e),{})]}],drop:{...X,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function b8(e,o){let t=Qn(o,{to:hr(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=Qn(o,{view:"phone",to:hr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:OB,sectionPaddingRight:OB,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var w8={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...ae(e,ic),...b8(e,o)}),box:[...Q,...de(ic)],parts:[lt("SectionHeader")],drop:{...X,...re,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},FB={...A,direction:"row",share:[67],gap:32},BB={...A,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},LB=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),C8={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...st(e,"ParagraphsA")}),box:[...Q,...Dr("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...FB,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...A,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[fe("eyebrow",{color:"labels",...M("label",12),letterSpacing:.24})]},LB("Stats column",A,{kind:"group",name:"Stats",props:{...BB,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[Vl("value","label",{...M("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...FB,gapPhone:28},parts:[{kind:"group",name:"Lead",props:A,parts:[{kind:"group",name:"Measure",props:{...A,maxWidth:780},parts:[{kind:"text",key:"lead",props:U,style:{textStyle:"heading-3",...M("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},LB("Note column",{...A,justify:"end"},{kind:"group",name:"Founders",props:{...BB,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...A,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:U,style:{textStyle:"body-1",fontRole:"heading",...M("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:te,style:{textStyle:"body-5",fontRole:"heading",...M("body",14,12),lineHeight:1.7}}]},fe("attribution",{...M("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...X}},k8={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...ae(e,Yf)}),box:[...Q,"contained",...de(Yf)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...A,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Yt("surface"),...Co(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(ye(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...A,gap:20,gapPhone:20},parts:[fe("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...U,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...M("headingMedium",44,32)}},{kind:"text",key:"body",props:{...U,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...M("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:so}]}],drop:{...X,...re}},rg={Prose:y8,TitleWithButtons:S8,SectionHeader:w8,ParagraphsA:C8,Banner:k8},RB={Prose:()=>({eyebrow:Mp.eyebrow,title:bt(Mp.title),body:Mp.body}),TitleWithButtons:()=>({title:bt(PB.title),buttons:TB.map(e=>({...e}))}),SectionHeader:()=>({num:dr.num,title:bt(dr.title),description:dr.description,linkText:dr.linkText,linkHref:ze.href}),ParagraphsA:()=>({eyebrow:li.eyebrow,lead:Te.body,foundersHeading:li.foundersHeading,foundersBody:li.foundersBody,attribution:li.attribution}),Banner:()=>({...vB,ctaText:ze.text,ctaHref:ze.href}),ProcessSteps:()=>({num:dr.num,title:bt(dr.title)}),IntroBleed:()=>({eyebrow:Hp.eyebrow,title:bt(Hp.title),body:Hp.body,ctaText:ze.text,ctaHref:ze.href})};function $p(){oo(rg),oo(Z1),oo(mA),oo(U1),oo(_A),oo(jA),oo(rF),oo(sF),oo(hF),oo(PF),oo(WF),oo(QF),oo(rB),oo(iB),oo(kB),oo(hB),oo(yB),oo(wB)}var v8=[{name:"migrateLegacyPageData",chrome:!1,why:"page-only: it walks the top-level sections (Gallery B's array to its slot, a second pinned Header or Footer); a chrome document's one top-level node is the chrome itself",run:e=>$_(e)},{name:"migrateRenamedProps",chrome:!0,why:"every document built from stored props: a renamed key still reads its stored answer (lib/source-rules/document-surfaces)",run:e=>U_(e)},{name:"convertSectionsInPage",chrome:!1,why:"page-only: it turns an old top-level SECTION into its Box, with the site theme off the page's metadata; chrome is a Box group, never one of those sections",run:(e,{metadata:o})=>($p(),q_(e,Gl,{theme:qw(o)}))},{name:"capHeroGroups",chrome:!1,why:"page-only: it caps a top-level Hero's slide groups, and a Hero is a page section",run:e=>C0(e)},{name:"oneH1",chrome:!1,why:"page-only: it hands the h1 to the first opener in the PAGE's document order; on a chrome document it would count a second document on its own",run:e=>FE(e)},{name:"dropEmptySourcedBoxes",chrome:!0,why:"any document: a nested head over sourced cores served none goes (the Box footer's payment line), at any depth inside a slot",run:e=>AE(e)},{name:"markHeadCoreBoxes",chrome:!1,why:"page-only: it marks a head Box at the TOP of the page, where the mark element draws (lib/content/empty-hides); a chrome document's top is the chrome group",run:e=>EE(e)},{name:"markListSearchScopes",chrome:!1,why:"page-only for now: it ties a Search to the lists of the page's Box; no chrome holds a Search, and a chrome entry is one flag when one does",run:e=>O0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>e0(e)},{name:"markWallLabels",chrome:!0,why:"any document: each Marks wall is named by the lead Text drawn before it (aria-labelledby), the Box footer's walls too",run:e=>NE(e)},{name:"markCardPressTitles",chrome:!0,why:"any document: an acting copy's press button is named by its template's title Text (aria-labelledby), a header or footer list too; after the wall labels, so a Text keeps one id",run:e=>zE(e)}];function P8(e,o,t){let r=e;for(let a of v8)(!t||a.chrome)&&(r=a.run(r,o));return r}function DB(e,o){return P8(e,{metadata:o},!1)}import{useRef as T8}from"react";import{createRenderKeep as O8}from"efficient-easel/render";function NB(){let e=T8(null);return e.current??=O8(),e.current}import{isNode as E8,isNodeList as _8}from"efficient-easel/data";import{hidableText as A8,readHidable as F8}from"efficient-easel/draw";var HB="slotCounts",ag=e=>!F8(e).hidden&&A8(e).trim()!=="",B8=e=>typeof e=="string"&&e.trim()!=="",L8={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>B8(e.src),Text:e=>ag(e.text),Heading:e=>ag(e.text),Eyebrow:e=>ag(e.eyebrow)},R8=["widthFit","width","minWidth"],MB=e=>_8(e);function D8(e){if(Array.isArray(e.content))return MB(e.content)?e.content:null;let o=Object.values(e).filter(MB);return o.length===1?o[0]:null}function N8(e,o){return[...new Set([ZS,...Object.values($(hw,e)??{})])].some(t=>Lt(o,t)!=="")}function M8(e){let o=e.props??{},t=$(L8,e.type);if(!t||!t(o)||N8(e.type,o)||rl(o))return!1;let r=o[jn];if(r!=null&&r!=="")return!1;let a=Zc(o);return!R8.some(n=>a[n]!==void 0)}function H8(e){let o=0;for(let t of e)if(!Qt(t.props??{})){if(!M8(t))return;o+=1}return o>0?o:void 0}function W8(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!E8(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:D8(l.props);if(typeof i=="string"&&d){let f=H8(d);f!==void 0&&(o[i]=f)}for(let f of At(l))a(l.props[f],s||oa(l.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function WB(e,o){return{...e??{},[HB]:W8(o)}}function xwe(e){let o=e.editor?.metadata?.[HB],t=e.id,r=typeof t=="string"&&o&&typeof o=="object"?o[t]:void 0;return typeof r=="number"&&Number.isInteger(r)&&r>0?r:void 0}function U8({config:e,data:o,metadata:t}){let r=DB(o,t),a=NB(),n=b0(e,S0(r.content)),s=zf(r.content),l=s.length>0?{...t,[y0]:s}:t;return $B(Uf,{children:$B(z8,{config:n,metadata:WB(l,r.content),keep:a,data:r})})}var zB=$8(U8);import{jsx as Uo,Fragment as YK,jsxs as NL}from"react/jsx-runtime";import{Suspense as XK,useMemo as JK}from"react";import{jsx as j8}from"react/jsx-runtime";import{createContext as G8,useCallback as K8,useContext as q8,useState as ng}from"react";var UB=G8({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function Twe({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=ng(null),[n,s]=ng(null),[l,i]=ng(0),d=K8(()=>i(f=>f+1),[]);return j8(UB.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var jB=()=>q8(UB);import{jsx as V8,jsxs as Y8}from"react/jsx-runtime";import{createContext as X8,useContext as J8}from"react";var GB=X8(!1);function Fwe(){return J8(GB)}function KB({grayscale:e,children:o}){let t=e===!0;return Y8(GB.Provider,{value:t,children:[Object.entries(n_(e)).map(([r,a])=>V8("style",{children:a},r)),o]})}import{jsx as Z8}from"react/jsx-runtime";import{createContext as Q8,useContext as eK}from"react";var qB=Q8(null);function Dwe(){return eK(qB)}function VB({ink:e,children:o}){return Z8(qB.Provider,{value:e??null,children:o})}import{parseOption as oK}from"efficient-shell/format";var YB="data-lead-ink",$we="data-header-ink",tK=["auto","light","dark"],rK="auto";function aK(e){return e.type==="IntroBleed"?Lp(e.props?.layout)!=="stacked":!0}function XB(e){let o=mf(e);return o&&sP(e)&&aK(o)?"light":null}function zwe(e){return oK(tK,rK,e)}import{useEasel as gg}from"efficient-easel/easel";import{useEffect as hK}from"react";import{useEaselApi as IK}from"efficient-easel/easel";import{find as nK,walk as JB}from"efficient-easel/data";var sK=()=>"",lK=e=>Nm(Ft([e],sK));function eL(e,o,t){if(!Array.isArray(e)||e.length!==1)return null;let r=t.keys??=Object.fromEntries(Object.entries(o()).map(([n,s])=>[n,new Set(s.map(lK))])),a=Nm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var iK=()=>({press:[es(Qr),es(Ns)],delivery:[lI()]}),dK={},sg=e=>eL(e,iK,dK),fK=e=>De(e)===qS?"delivery":"press";function eCe(e,o){if(!o||De(e)===De(o))return e;let t=sg(e[Pe]),r=fK(e);if(!t||t===r)return e;let a=Fm(e,no),n=r==="delivery"?lI():es(De(e)?Ns:Qr),s=Ft([n],Lm(a));return{...e,[Pe]:s}}var cK=()=>({cards:[nn(Qr),nn(Ns)],label:[sn(!1),sn(!0)]}),pK={},uK=e=>eL(e,cK,pK);function oCe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=uK(e[Pe]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=Fm(e,Jb),n=Array.isArray(e.items)&&e.items.some(i=>mo(i?.href)!==void 0),s=r==="label"?sn(n):nn(De(e)?Ns:Qr),l=Ft([s],Lm(a));return{...e,[Pe]:l}}var ZB=(e,o)=>sI.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function QB(e,o){let t={...e};for(let r of sI)delete t[r];return{...t,...structuredClone(o)}}function lg(e){let o=e?.[Ce];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===no&&t.props?t:null}function mK(e,o){let t=lg(e),r=lg(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||De(t.props)===De(r.props))return e;let a=sg(t.props[Pe]);if(!a||a===sg(r.props[Pe]))return e;let n=ye(e.columns);return n===void 0?e:a==="delivery"&&ZB(e,_a(n))?QB(e,np(n)):a==="press"&&ZB(e,np(n))?QB(e,_a(n)):e}function oL(e){let o=zp.get(e);o?o.count+=1:zp.set(e,{count:1,stop:xK(e)});let t=!1;return()=>{let r=zp.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),zp.delete(e)))}}var zp=new WeakMap;function xK(e){let o=e.getState().appState.data;return e.subscribe(()=>{let t=e.getState().appState.data;if(t===o)return;let r=o;if(o=t,t===e.loaded)return;let a=new Map;JB(t,e.config,n=>{if(n.type!==G||!lg(n.props))return;let s=nK(r,e.config,n.props.id);if(!s||s.node===n)return;let l=mK(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>JB(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function tL(){let e=gK();hK(()=>e?oL(e):void 0,[e])}function gK(){try{return IK()}catch{return null}}import{jsx as Up}from"react/jsx-runtime";import{useEffect as yK}from"react";import{armScrollProgress as SK}from"efficient-shell/format";function rL({armed:e,children:o}){return yK(()=>e?SK():void 0,[e]),o}function ig(){return{style:{"--sf-page-width":No}}}function bK({children:e}){return Up("div",{style:ig().style,children:e})}function mCe({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return Up("div",{style:{...o?{}:Sf(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:Up(rL,{armed:!t,children:Up(bK,{children:r})})})}import{jsx as aL,Fragment as wK}from"react/jsx-runtime";import{createContext as sL,useContext as nL}from"react";var lL=sL({}),iL=lL.Provider,dL=sL(void 0),fL=dL.Provider;function gCe(e){let{SectionTextParts:o}=nL(lL),t=nL(dL);return o?aL(o,{...e,sizeCaps:t}):aL(wK,{children:e.children})}import{jsx as $K}from"react/jsx-runtime";import{useEffect as zK,useRef as UK}from"react";var cL="data-easel-overlay-portal";function jp(e){return e.setAttribute(cL,"true"),()=>{e.removeAttribute(cL)}}import{jsx as BK}from"react/jsx-runtime";import{useEffect as LK,useRef as PL}from"react";import{usePreviewParts as RK}from"efficient-easel/draw/client";import{jsx as CK}from"react/jsx-runtime";import{createContext as kK,useContext as vK,useMemo as PK,useState as TK}from"react";var OK={partStyle:null,setPartStyle:()=>{}},pL=kK(OK);function CCe({children:e}){let[o,t]=TK(null),r=PK(()=>({partStyle:o,setPartStyle:t}),[o]);return CK(pL.Provider,{value:r,children:e})}function is(){return vK(pL)}import{usePreviewDevice as DK}from"efficient-easel/draw/client";import{shownTier as NK}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as TL,encodePartId as MK}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as HK}from"efficient-easel/canvas";import{createPreviewSelectionContext as EK}from"efficient-easel/draw/client";var La="Scrolling Bar",{Provider:PCe,useSelection:uL}=EK("selectedHeroId"),dg="data-sf-hero-ticker";function mL(e){return`${e}::ticker`}function xL(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as $r}from"efficient-easel/canvas";import{createPreviewSelectionContext as _K}from"efficient-easel/draw/client";var{Provider:ECe,useSelection:hL}=_K("selectedLocationPartId");function Gp(e,o,t){return`${e}::${o}::${t}`}function Kp(e){if(!e)return null;let o=e.split("::");if(o.length<3)return null;let t=o[o.length-1];if(t!=="image"&&t!=="map"&&t!=="city")return null;let r=Number(o[o.length-2]);if(!Number.isInteger(r)||r<0)return null;let a=o.slice(0,-2).join("::");return a?{nodeId:a,index:r,part:t}:null}var cg="data-sf-part-label";function pg(e,o){return e.closest(`[${$r}]`)?.getAttribute($r)===o}function IL(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(y=>[y.key,nf(y.label)])),n=[],s=new Set;for(let y=0;y<r.length;y+=1){let b=r[y];if(!pg(b,o))continue;let E=b.getAttribute(Yk);if(!E)continue;let B=a.get(E);n.push({element:b,partId:Mt(o,E),...B?{label:B}:{}}),s.add(b)}let l=[],i=new Set;for(let y=0;y<r.length;y+=1){let b=r[y];if(!pg(b,o)||s.has(b))continue;let E=Jk(b.textContent??"");if(!E)continue;let B=b.closest(`[${lx}]`)?.getAttribute(lx)||null;B&&i.add(B.replace(/\[\d+\]$/u,"")),l.push({element:b,text:E,row:B})}let d=y=>l.filter(b=>b.row===Vk(y.key,y.row.index)),f=l.filter(y=>y.row===null),x=y=>y.row&&i.has(y.key)?d(y):i.size?f:l,u=new Map,h=[],I=y=>y.row?`${y.key}.${y.row.rowKey}`:null,w=new Map;for(let y of t){let b=I(y);if(!b||i.has(y.key))continue;let E=w.get(b);E?E.push(y):w.set(b,[y])}let T=new Set;for(let[y,b]of w){if(b.length<2)continue;let E=b.flatMap(C=>C.texts);if(new Set(E).size===E.length)continue;let B=x(b[0]).filter(C=>E.includes(C.text));if(B.length!==b.length)continue;let R=[...b].sort((C,L)=>(C.row?.index??0)-(L.row?.index??0));for(let C=0;C<R.length;C+=1){let L=R[C],g=B[C].element,P={key:L.key,partKey:Cn(L.key,L.row),exact:!0},v=u.get(g);v?v.push(P):(u.set(g,[P]),h.push(g))}T.add(y)}let O=new Map;for(let y of t){if(T.has(I(y)??""))continue;let b=Cn(y.key,y.row);for(let E of y.texts)for(let B of x(y)){if(B.text!==E)continue;let R=O.get(B.element);R?R.add(b):O.set(B.element,new Set([b]))}}let F=(y,b)=>[...O].some(([E,B])=>E!==y&&!B.has(b)&&E.contains(y));for(let y of t){if(T.has(I(y)??""))continue;let b=Cn(y.key,y.row);for(let E of y.texts){let B=[],R=null;for(let g of x(y))g.text===E?F(g.element,b)||B.push(g.element):!B.length&&g.text.includes(E)&&(!R||g.text.length<=R.length)&&(R={element:g.element,length:g.text.length});let C=B.length?B:R?[R.element]:[],L=C.filter(g=>!C.some(P=>P!==g&&g.contains(P)));for(let g of L){let P={key:y.key,partKey:b,exact:B.length>0},v=u.get(g);v?v.push(P):(u.set(g,[P]),h.push(g))}}}let k=[...n];for(let y of h){let b=u.get(y)??[],E=b.some(B=>B.exact)?b.filter(B=>B.exact):b;if(new Set(E.map(B=>B.partKey)).size===1){let B=a.get(E[0].key);k.push({element:y,partId:Mt(o,E[0].partKey),...B?{label:B}:{}});continue}new Set(E.map(B=>B.key)).size===1&&k.push({element:y,partId:Mt(o,E[0].key)})}return k}function fg(e,o,t){let r=e.querySelectorAll(`[${$e}]`);for(let n=0;n<r.length;n+=1){let s=r[n];pg(s,o)&&(s.removeAttribute($e),s.removeAttribute(cg))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute($e,s),l&&n.setAttribute(cg,l),a.push(n);return a}function SL(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let f=t(),x=f?.getAttribute($r)??null;if(!f||!x)return!1;s=x;let u=IL(e,x,o);return a(f,x,fg(e,x,u)),i=n(()=>{let h=IL(e,x,o);AK(u,h)||(u=h,a(f,x,fg(e,x,h)))}),!0};return d()||(l=r(()=>{(s||d())&&(l?.(),l=null)})),()=>{l?.(),l=null,i?.(),i=null,s&&fg(e,s,[])}}function AK(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function NCe(e,o){let t=e?.closest?.(`[${$e}],[${vr}]`),r=t?.getAttribute($e)??t?.getAttribute(vr),a=r?qk(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:yL(t,r),label:gL(t,r)};let n=e?.closest?.(wL.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${$r}]`)?.getAttribute($r)===o?CL(n,o):null;return s?{id:s,element:n,whole:yL(n,s),label:gL(n,s)}:null}function gL(e,o){let t=Kp(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=Hc(o);return r?ir[r.part]:xL(o)?La:e.getAttribute(cg)??void 0}var bL="data-loc-pick",wL=[$e,vr,Wl,dg,bL];function CL(e,o){let t=e.getAttribute($e)??e.getAttribute(vr);if(t)return t;let r=e.getAttribute(Wl);if(r)return ba(o,r);if(e.getAttribute(dg)!==null)return mL(o);let a=e.getAttribute(bL)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?Gp(o,Number(a[0]),a[1]):null}function yL(e,o){let t=e.closest?.(`[${$r}]`),r=t?.getAttribute($r);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(wL.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${$r}]`)!==t)continue;let s=CL(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as kL,playEntrance as FK}from"efficient-shell/format";var ug=new WeakMap;function vL(e,o,t,r){let a=typeof t=="boolean"?t?"phone":"desktop":t,n=[],s=new Map;for(let{partKey:d}of e){if(s.has(d))continue;let f=o(d)??{},x=YC(f),u=r.get(d),h=u?Mn.next(u,x,a):null;r.set(d,h?h.seen:Mn.seed(x)),s.set(d,h?.play??!1)}let l=new Map,i=e.filter(d=>!e.some(f=>f!==d&&f.partKey===d.partKey&&f.element.contains(d.element)));for(let d of i){let f=wc(d.element);f&&l.set(f,[...l.get(f)??[],d])}for(let[d,f]of l){let x=I=>Tl(o(I.partKey)??{}),u=$n(f.filter(I=>x(I).entrance));if(u){let I=o(u.partKey)??{};n.push(Sc(d,qs(I,a)));let w=ug.get(d);ug.set(d,u.partKey),(s.get(u.partKey)||w!==void 0&&w!==u.partKey)&&d.hasAttribute(kL)&&FK(d)}else ug.delete(d);let h=d.hasAttribute(kL)?void 0:$n(f.filter(I=>nr(o(I.partKey)??{},a).effect!=="none"));h&&n.push(bc(d,nr(o(h.partKey)??{},a))),f.some(I=>x(I).hover==="lift")&&(Cc(d.ownerDocument),d.setAttribute(Ia,""),n.push(()=>d.removeAttribute(Ia)))}return()=>n.forEach(d=>d())}function mg(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=fb(a),t??=Um(a)}return{faceRole:o??"body",sizeGroup:t}}function qp(e,o={}){let t=e.style,r={};for(let l of px)r[l]=t[l]??"",t[l]="";o.fontFamily&&(t.fontFamily=o.fontFamily),o.fontSize&&(t.fontSize=o.fontSize);let a=getComputedStyle(e),n=getComputedStyle(e.ownerDocument.documentElement),s=Sv({fontSize:a.fontSize,fontWeight:a.fontWeight,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,textAlign:a.textAlign,textTransform:a.textTransform,paddingTop:a.paddingTop},bv(a.fontFamily,l=>n.getPropertyValue(l)));for(let l of px)t[l]=r[l];return s}function OL({needles:e,styles:o,motions:t=yc,type:r,sizeCaps:a,children:n}){let s=PL(null),{selectedPartId:l}=RK(),{setPartStyle:i}=is(),d=NK(DK()),f=JSON.stringify(e),x=JSON.stringify(o),u=JSON.stringify(t),h=PL(new Map);return LK(()=>{let I=s.current;if(!I)return;let w=[],T=()=>I.parentElement,O=R=>{let C=T();if(!C)return null;let L=new MutationObserver(R);return L.observe(C,{attributes:!0,attributeFilter:[HK]}),()=>L.disconnect()},F=R=>{let C=new MutationObserver(R);return C.observe(I,{childList:!0,subtree:!0,characterData:!0}),()=>C.disconnect()},k=[];w.push(()=>{for(let R of k)R();k=[]});let y=JSON.parse(f),b=JSON.parse(x),E=JSON.parse(u),B=SL(I,y,T,O,(R,C,L)=>{for(let S of k)S();k=[];let g=[];for(let S of L){let N=S,H=jp(N);H&&k.push(H),N.getAttribute($e)===l&&g.push(N)}let P=wv(C,l,g,S=>cb(S)!==null||Um(S)!==null);if(P&&l){let S=P,N=TL(l)?.propKey??"",H=el(S)?{}:yv(Cv(b,ar(r,N)),d,{blockDrawsStyle:tl(r,N),sizeCap:aa(a,N)});i({partId:l,...mg(S),base:qp(S,H),inks:ef(S),...(()=>{let q=el(S);return q?{styleOwner:q}:{}})()})}cx(L.filter(S=>!el(S)).map(S=>({element:S,partId:S.getAttribute($e)??""})),b,S=>qp(S),S=>ar(r,S),void 0,d,S=>tl(r,S),S=>aa(a,S));let v=[...I.querySelectorAll(`[${Xk}="${CSS.escape(C)}"][${af}]`)];v.length&&cx(v.map(S=>({element:S,partId:MK(C,S.getAttribute(af)??"")})),b,void 0,S=>S,void 0,d),k.push(vL([...L.filter(S=>!el(S)).map(S=>{let N=S,H=TL(N.getAttribute($e)??"")?.propKey??"";return{element:N,partKey:ar(r,H)}}),...v.map(S=>({element:S,partKey:S.getAttribute(af)??""}))],S=>E[S],qC(d),h.current))},F);return()=>{B();for(let R of w)R()}},[f,x,u,l,i,d,r]),BK("div",{ref:s,[wh]:"",style:{display:"contents"},children:n})}import{shownTier as jK}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as GK,usePreviewParts as KK}from"efficient-easel/draw/client";var ii={tag:"text-[length:var(--size-label,13px)]",name:"text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))]",namePhone:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,14px)]",price:"text-[length:var(--size-label,15px)]",link:"text-[length:var(--size-label,14px)]"},WK={tag:{label:"Tag",follows:"Labels",builtIn:fn(ii.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:fn(ii.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:fn(ii.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:fn(ii.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:fn(ii.link),writable:!0}},EL=WK;var xke=ea,_L={rowLabel:{label:"Spec row name",follows:"Labels",builtIn:"14px"},rowValue:{label:"Spec row value",follows:"Labels",builtIn:"14px"},diagramTitle:{label:"Diagram title",follows:"Labels",builtIn:"12px"},diagramCallout:{label:"Diagram measurement",follows:"Labels",builtIn:"12px"},diagramStatLabel:{label:"Diagram stat name",follows:"Labels",builtIn:"11px"},diagramStatValue:{label:"Diagram stat value",follows:"Labels",builtIn:"11px"}};var AL={SpecTable:_L,FAQ:sw,Collections:EL,Contents:Fp};function FL(){return Qa("efficient.section-text-regions",()=>new Map)}function Cke(e){let o=FL();for(let[t,r]of Object.entries(e)){if(xo(AL,t))throw new Error(`lib/sections/section-text-regions: "${t}" is a builder section; its table is the builder's`);let a=o.get(t);if(a&&a!==r)throw new Error(`lib/sections/section-text-regions: "${t}" already has a table`);o.set(t,r)}}function ds(e){return e?$(AL,e)??FL().get(e)??null:null}function BL({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=UK(null),{selectedPartId:s}=KK(),{setPartStyle:l}=is(),i=jK(GK()),d=JSON.stringify([t??null,r??null]);return zK(()=>{let f=n.current,x=ds(o);if(!f||!e||!x)return;let u=[],h=Array.from(f.querySelectorAll(`[${ea}]`));for(let I of h){let w=Dm(x,I.getAttribute(ea));if(!w)continue;let T=jp(I);T&&u.push(T);let O=Ms(w),F=Mt(e,O);I.setAttribute(vr,F);let k=t?.[O];if(x[w].sized&&kv(k)){let y=vv(k,i,{sizeCap:aa(r,O)}),b={fontFamily:I.style.fontFamily,fontSize:I.style.fontSize},E=I.getAttribute(ta);y.fontFamily&&(I.style.fontFamily=y.fontFamily),y.fontSize&&(I.style.fontSize=y.fontSize);let B={fontFamily:y.fontFamily?I.style.fontFamily:void 0,fontSize:y.fontSize?I.style.fontSize:void 0},R=k?.textStyle;iv(R)&&I.setAttribute(ta,R),u.push(()=>{Ov(I.style,b,B),E===null?I.removeAttribute(ta):I.setAttribute(ta,E)})}if(F===s){let y=qp(I,Tv(k,x[w],i));l({partId:F,...mg(I),base:y})}}return()=>{for(let I of u)I();for(let I of h)I.removeAttribute(vr)}},[e,o,s,l,i,d]),$K("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as xg,Fragment as LL}from"react/jsx-runtime";import{createContext as qK,useContext as RL,useMemo as VK}from"react";var hg=qK(null),DL=e=>e==null||e===""?void 0:String(e);function Ig({content:e,children:o}){let t=VK(()=>jx(e),[e]);return xg(hg.Provider,{value:t,children:o})}function Wke({id:e,children:o}){let t=RL(hg),r=DL(e);return xg(LL,{children:o(r?t?.entries.get(r):void 0)})}function $ke({id:e,children:o}){let t=RL(hg),r=DL(e);return xg(LL,{children:o(r?t?.numbers.get(r):void 0)})}var ZK={SectionTextParts:BL},QK="color-mix(in oklab, var(--bg) 40%, #ffffff)",e7="12vh";function o7({style:e,children:o}){let{appState:t}=gg(u=>u),r=t.data.content,a=t.data.root;if(lP(r))return Uo("div",{className:"sf-themed-content",style:{...e,background:QK,minHeight:"100vh",paddingBottom:e7},children:Uo("div",{style:{background:"var(--bg)"},children:Uo(Ig,{content:r,children:o})})});let n=hx(r)&&dP(a,r),s=hx(r)?fP(a,r):null,l=s?{[iP]:s}:null,i=vC(a?.widthChoice),d=i?{[kC]:i}:null,f=n?null:XB(r),x=f?{[YB]:f}:null;return Uo("div",{className:`sf-themed-content${n?` ${aP}`:""}`,style:e,...x,...l,...d,children:Uo("div",{style:{background:"var(--bg)",minHeight:"100%"},children:Uo(Ig,{content:r,children:o})})})}function mve({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:f,children:x}){tL();let u=gg(I=>I.appState.data.root?.props),h=gg(I=>RP(I.appState.data.content));return Uo(yg,{siteFooterRootProps:u?.kind===Mv?u:void 0,inPlaceFooterProps:h,propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,body:I=>NL(YK,{children:[Uo(o7,{style:I,children:x}),d,f]})})}function yg({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,siteFooterRootProps:d,inPlaceFooterProps:f,body:x}){let{chromeRootProps:u}=jB(),h=JK(()=>DP(u,f),[u,f]),{theme:I,fonts:w,sizes:T,cornerRadiusPx:O,cardShadow:F,shadowColor:k,cardGap:y,hoverEffect:b,headingCompression:E,siteWidth:B,siteGutter:R,siteGutterPhone:C,blockGap:L,blockGapPhone:g,siteLengthUnits:P,headingTypography:v,heroBackgroundFollowsWidth:S,photographyGrayscale:N,textStyles:H,wordStyles:q,themeFromDocument:z}=Po(),ne=z?e:I,ge=z?o:w,J=z?void 0:T,me=z?r===void 0?Nw[Dw(t)]:Mw(r):O,oe=z?{}:P,xe=z?a:E,ce=z?n:v,qe=[TT(PT(z?void 0:H)),OT(Gw(ce).italicStrong)].filter(Boolean).join(`
336
- `),ro=ig(),wo={...Pw(ne),...Rw(J),...Kw(ce),...ro.style,...l?{}:Sf(s)};return NL("div",{className:`sf-theme-surfaces sf-theme-accent ${[yC(z?void 0:C),Uv(z?void 0:g)].filter(Boolean).join(" ")}`.trim(),style:{...pb(ge),...xb(z?null:q),...Tw(ne),...Ew(ne),..._w(ne),...vd(ne),...Hw(me,oe.cornerRadiusUnit),...Uw(z?void 0:F,z?void 0:k,z?void 0:b),...rC(z?void 0:B,oe.siteWidthUnit),...hC(z?void 0:R,oe.siteGutterUnit),...gC(z?void 0:C,oe.siteGutterPhoneUnit),...$v(z?void 0:L,oe.blockGapUnit),...zv(z?void 0:g,oe.blockGapPhoneUnit),...Ed(z?void 0:S)},"data-sf-headings":jw(xe),[iC]:Od(d??h),[Gd]:xk(d??h),"data-sf-card-shadow":z?void 0:Ww(F),"data-sf-card-gap":z?void 0:$w(y),"data-sf-card-hover":z?void 0:zw(b),onClickCapture:i,children:[qe?Uo("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:qe}}):null,Uo(KB,{grayscale:z?void 0:N,children:Uo(iL,{value:ZK,children:Uo(VB,{ink:vw(ne),children:Uo(XK,{fallback:null,children:Uo(L0,{rootProps:d??h,children:x(wo)})})})})})]})}var ML=e=>{e.target?.closest?.("a")&&e.preventDefault()};var t7=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function r7(e,o){return e.replace(t7,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function WL(e,o){for(let t=0;t<e.length;t++){let r=e.item(t),a=e.getPropertyValue(r);if(!a.includes("vh"))continue;let n=r7(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function $L(e,o){for(let t of Array.from(e)){let r=t.style;r&&WL(r,o);let a=t.cssRules;a&&$L(a,o)}}function HL(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}$L(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))WL(t.style,o)}function zL(e,o){HL(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,HL(e,o)}))};e.addEventListener("load",a,!0);let n=t?new t.MutationObserver(a):null;return n?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style"],characterData:!0}),()=>{n?.disconnect(),e.removeEventListener("load",a,!0),r&&t&&t.cancelAnimationFrame(r)}}var f7=1440,bg=800;function jL({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=il(),[s,l]=Sg(null),[i,d]=Sg(bg),[f,x]=Sg(null);return a7(()=>{if(!s)return;let u=zL(s,bg),h=s.defaultView,I=()=>{f&&d(Math.max(bg,Math.ceil(f.getBoundingClientRect().height)))},w=h&&f?new h.ResizeObserver(I):null;return f&&w?.observe(f),I(),()=>{u(),w?.disconnect()}},[s,f]),UL("div",{className:"sf-starter",children:[UL(l7,{padding:"none",className:"sf-starter-picture",children:[kt("div",{inert:!0,className:"sf-starter-frame",children:kt(i7,{width:f7,height:i,children:kt(n7,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:kt($f,{document:s??void 0,children:kt(yg,{onClickCapture:ML,body:u=>kt("div",{className:"sf-themed-content",style:u,children:kt("div",{ref:x,style:{background:"var(--bg)"},children:kt(zB,{config:o,data:e.layout,metadata:t})})})})})})})}),kt("div",{className:"sf-starter-add",children:kt(s7,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),kt(d7,{size:"sm",children:e.title})]})}import{useMemo as bX}from"react";import{sessionRegistry as wX}from"efficient-easel/screen/lib/session";import{useEaselSession as CX}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as c7}from"efficient-easel/screen/lib/session";var p7={general:!0,commerce:!0,service:!0};function wg(e){let o=e?.sets;return o?Object.fromEntries(QS.map(t=>[t,o.includes(t)])):p7}function Cg(e=c7()){return wg(e.blocks)}import{currentEaselSession as rR}from"efficient-easel/screen/lib/session";import{SITE_SIDE as qL}from"efficient-easel/screen/lib/content/length-units";var GL=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],Bve={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:Ub,separator:jb,scrollDirection:ni}};var KL=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],Dve={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function go(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function VL(e,o,t){return go(G,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Vp={Manifesto:(e,o)=>({type:G,props:{...e(G),id:o(G),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[go(G,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:qL,sectionPaddingRight:qL,content:[go("Text",e,o,Xt()),go("Text",e,o,xr()),go("Text",e,o),go("Stats",e,o)]}),VL(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:G,props:{...e(G),id:o(G),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[go(G,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[go("Text",e,o,Xt()),go("Text",e,o,xr()),go("Text",e,o),go("ButtonBlock",e,o)]}),VL(e,o,{direction:"column",name:"Image",content:[go("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:G,props:{...e(G),id:o(G),direction:"column",name:"Subscribe",content:[go("Text",e,o,xr()),go("Text",e,o),go("Form",e,o)]}}),Ticker:(e,o)=>YL("Scrolling Bar",qf,ca,GL.map(t=>({text:t.text,style:Vf,muted:!0})),e,o),SpecStrip:(e,o,t)=>YL("Spec Strip",t?.theme?{...xl,sectionAccent:kd(Zt(t.theme))}:{...xl,sectionBorder:{top:1}},pa,KL().map(r=>({text:r.text??"",style:hl,muted:r.tone==="muted"})),e,o)};function YL(e,o,t,r,a,n){return go(G,a,n,{...fa,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>go("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function XL(e){return $(Vp,e)??null}import{isNodeList as kg}from"efficient-easel/data";var lPe=Object.keys(rg),u7={Logos:xA,DocMasthead:uF,DocTabs:CF,Timeline:zA,TimelineTrack:UA},m7={PaymentBadges:hA,PaymentLogosBlock:IA,Integrations:SB};function Yp(e,o,t){let r={};for(let a of Object.keys(o(e.type)))r[a]=void 0;for(let[a,n]of Object.entries(e.props))r[a]=kg(n)?n.map(s=>Yp(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var JL=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function di(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=va({type:e,props:{...a(e),...r(),id:n(e)}},o,JL(s));return Yp(l[t],a,n)}}var x7={Stats:I7,Cards:h7};function h7(){let e=Lr("Cards");if(!e)return null;let o=di("Cards",e,0,z1);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function I7(){let e=Lr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=va({type:"StatsParagraph",props:{...o("StatsParagraph"),...Q1(),id:t("StatsParagraph")}},e,JL(r)),n=a[0],s=kg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=QL(CI(eA(),"table")),i=s.map(ZL),d=Yp({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function ZL(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:kg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(ZL)}}:e}var QL=e=>Ft([e],(o,t)=>`${o}-seed-${t}`)[0];function g7(e,o){if(!K_(e,o))return null;let t=$(x7,e);if(t)return t();let r=Lr(e);return r?di(e,r,0,$(u7,e)??$(RB,e)??$(m7,e)):null}function y7(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=Yp(QL(CI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=Ve(n,l=>We(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function fs(e,o=ka){let t=XL(e);return t?y7(t):g7(e,o)}import{blockTypesIn as eR}from"efficient-easel/screen/lib/document/block-types-in";var oR=()=>({}),tR=new Map;function S7(e){let o=tR.get(e);if(o)return o;let t=new Set,r=$(nt,e);if(r)for(let s of r.seeds(oR))for(let l of eR({type:r.childType,props:s}))t.add(l);let a=fs(e);if(a){let s=0;for(let l of eR(a(oR,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return tR.set(e,n),n}function vg(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=wg(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=i=>{if(r.has(i))return!1;if(a.has(i))return!0;let d=rb(i);return!d||!o[d]?!1:t?t.has(i):!0},s=new Map,l=i=>{let d=s.get(i);if(d!==void 0)return d;s.set(i,!1);let f=n(i)&&S7(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var b7="block-offer";function Pg(e=rR()){return e.cache(b7,()=>vg(pn(e)))}function aR(e,o=rR()){let t=Pg(o);return t?t.offers(e):!0}var nR={name:"catalogueLabel",applies:e=>xo(Jr,e),draw(e,o){e.label=$(Jr,o)}};import{jsx as Ag}from"react/jsx-runtime";import{parseBlockWidthFit as P7,phoneKey as vt,tabletKey as pt}from"efficient-easel/draw";import{jsx as w7}from"react/jsx-runtime";import{phoneKey as Xp}from"efficient-easel/draw";var sR={name:"sectionGroupAllow",applies:e=>lf.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Tg=new Set(Object.keys(St)),lR={name:"openSlotDisallow",applies:()=>!0,panel(e,o,t,r){let a=r.contentSectionKeys;if(e?.fields)for(let n of Object.values(e.fields)){let s=n;if(s.type!=="slot"||s.allow)continue;let l=o==="Flex"?a.filter(i=>!Tg.has(i)):a;s.disallow=Array.from(new Set([...s.disallow??[],...l]))}}};var dR=Array.from(new Set([...nb.map(e=>e.type),...Tg]));function Og(e,o){return dR.includes(e)||o?.sitsInBox===!0}var C7=Array.from(new Set([...dR,...od,"GalleryItem"])),k7={not:{context:"parentOffersPositions",is:!1}},v7={not:{context:"parentTileSlot",is:!1}},iR=[Qm,Xp("gridSpan"),Xp("gridRowSpan")],fR={name:"cellWidth",applies:(e,o,t)=>(C7.includes(e)||Og(e,t))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.cellWidthFields;e.fields={...e.fields,...r()};let a=Object.keys(r());e.fields=Do(e.fields??{},a.filter(n=>!iR.includes(n)),k7),e.fields=Do(e.fields??{},iR,v7)},draw(e){let o=e.render;e.render=t=>{let r=RC(t.gridSpan),a=NC(t.gridRowSpan),n=HC(t[Qm]),s=$C(t[Xp("gridSpan")]),l=zC(t[Xp("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[DC]=String(r)),a!=null&&(d[MC]=String(a)),s!=null&&(d[UC]=String(s)),l!=null&&(d[jC]=String(l));let f=n!=null?{[WC]:n}:void 0;return w7(ie,{className:"sf-grid-cell",style:f,...d,children:i})}}};function cR(e,o){let t=e.props?.id,r=o.appState?.data?.content;return!Array.isArray(r)||typeof t!="string"?!0:!r.some(a=>a?.props?.id===t)}var fi={not:{context:"heldByANode",is:!0}};function Jp(e,o){return"parent"in o?o.parent!=null:!!Ut(o.appState,e.props?.id)}function Ut(e,o){let t=e?.data?.content;if(!Array.isArray(t)||typeof o!="string")return;let r=(a,n)=>{for(let s of a){if(s?.props?.id===o)return n;for(let l of on(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var T7=new Set(["Text","Heading"]),O7=new Set(["h1","h2","h3","h4","h5","h6"]);function pR(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&O7.has(o.tag)?!0:Pr(o,"text").textStyle?.startsWith("heading-")===!0}var zr={not:{context:"blockOutsideBox",is:!0}},uR={all:[zr,{not:{context:"boxSharesWidth",is:!0}}]},mR={all:[zr,{not:{context:"boxSharesWidthPhone",is:!0}}]},xR={all:[zr,{not:{context:"boxSharesWidthTablet",is:!0}}]};function yR(e,o,t){return{any:[{field:pt(e),is:o},{all:[{field:pt(e),set:!1},t??{field:e,is:o}]}]}}function SR(e,o,t){return{any:[{field:vt(e),is:o},{all:[{field:vt(e),set:!1},t??{field:e,is:o}]}]}}var bR={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},E7=[[["_gBlockSize","minWidth",pt("minWidth"),vt("minWidth"),"maxWidth",pt("maxWidth"),vt("maxWidth")],zr],[["widthFit"],uR],[[pt("widthFit")],xR],[[vt("widthFit")],mR],[["width"],{all:[uR,{field:"widthFit",is:"fixed"}]}],[[pt("width")],{all:[xR,yR("widthFit","fixed")]}],[[vt("width")],{all:[mR,SR("widthFit","fixed")]}]],hR=yR("textFit","shrink",bR),IR=[[["_gText","textFit",pt("textFit"),vt("textFit")],zr],[["minFont"],{all:[zr,bR]}],[[pt("minFont")],{all:[zr,hR]}],[[vt("minFont")],{all:[zr,SR("textFit","shrink",hR)]}]],Zp=(e,o)=>Ut(o.appState,e.props?.id),Qp=e=>!!e&&typeof e.type=="string"&&td(e.type)!==null,Eg=e=>(e.type==="Flex"||e.type==="HeroGroup")&&vn(e.type,e.props?.direction)==="row",_g=e=>{let o=P7(e);return o!==void 0&&o!=="fit"},_7={blockOutsideBox:(e,o)=>!Qp(Zp(e,o)),boxSharesWidth:(e,o)=>{let t=Zp(e,o);return!Qp(t)||!Eg(t)?!1:_m({...t.props,direction:"row"})!==""?!0:Em(t.props?.share)!==""&&!_g(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=Zp(e,o);if(!Qp(t)||!Eg(t))return!1;if(qb(t.props?.[pt("columns")])!==""||_m({...t.props,direction:"row"})!=="")return!0;let r=Kb(t.props?.[pt("share")])??t.props?.share;return Em(r)!==""&&!_g(e.props?.[pt("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=Zp(e,o);if(!Qp(t)||!Eg(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!Vb(r,t.props?.[vt("share")])&&!_g(e.props?.[vt("widthFit")]??e.props?.widthFit)}},A7=e=>/^_[gds][A-Z]/.test(e);function F7(e,o,t){let r=Object.entries(e),a=r.findIndex(([s])=>s===o);if(a===-1)return null;let n=a+1;for(;n<r.length&&!A7(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function gR(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function B7(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return gR(o,r.indexOf("_dSize")+1,n)}return L7.has(e)&&r.includes("_gSpacing")?gR(o,r.indexOf("_gSpacing"),t):{...o,...t}}var L7=new Set(["Text","Heading"]);function R7(e,o){let{_gText:t,...r}=o;return F7(e,"_gText",r)??{...e,...o}}function D7(e){let o=new WeakMap;return t=>{if(!t||!("textFit"in t))return t;let r=o.get(t);if(!r){r={...t};for(let a of["textFit",pt("textFit"),vt("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var wR={name:"blockSize",applies:(e,o,t)=>Og(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=T7.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=B7(o,e.fields??{},Jo(n,E7));if(r){let l=Jo(a,IR);if(s=R7(s,l),o==="Text"){let i=Jo(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,IR),d=D7(i),f=e.resolveFields,x=(u,h)=>{let I=f?f(u,h):h.fields,w=T=>pR(o,u?.props??{})?d(T??h.fields):T;return I instanceof Promise?I.then(w):w(I)};e.resolveFields=x}}e.fields=s,Bt(e,{..._7,textWrapsByDefault:l=>!pR(o,l.props??{})})},draw(e,o){N7(e,o)}};function N7(e,o){let t=e.render;e.render=r=>{let a=Zc(r),n=tI(a),s=t(r),l=n&&tI(a,{atSectionLine:!0});return n===null?s:Ag(M7,{size:n,sectionSize:l??n,atEdge:o===G,canvasAttrs:r.editor?.isEditing?l1(a):CR,inCell:s1(a),fillsPhone:r1(a),widens:i1(a),children:s})}}var CR={};function M7({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=Yd(),d=Cr(t?"edge":"by-box"),f=d?e:o,x=f.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?Ag(QO,{children:l}):l;return Ag(kr,{className:[x,u?a:"",h?t1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==CR?{...f.attrs,...r}:f.attrs,children:I})}import{Fragment as X7,jsx as ru}from"react/jsx-runtime";import{jsx as Oo,Fragment as Rg}from"react/jsx-runtime";import{createContext as cs,useContext as Pt}from"react";var H7=new Set(["Flex","Grid"]);function Ur(e){return typeof e=="string"&&H7.has(e)}var Ra="contentWidth",Fg="full",Bg="content";function pi(e){let o=e?.[Ra];return o===Fg?!1:o===Bg?!0:void 0}function kR(e,o){return e&&!o}function eu(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!Bk(e)&&!wA(e.scrollDirection)}function ci(e,o){return Ur(e)&&eu(Qs(o,!1))?xn({}):xn(o)}function ou(e,o){return typeof e!="string"||!_d(e)||Us[e]==="rawMarkup"?ci(e,o).background??"full":ci(e,o).background??Ad(o).background}function tu(e){return e!=="full"}function vR(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,l,i)=>{for(let d of a){let f=d?.props??{};if(f.id===o)return n;let x=Ur(d?.type),u=(l?ci(d?.type,f).content:null)==="content"?!0:s,h=x&&(n.inBox?pi(f)??u:u),I={insideGutter:n.insideGutter||h||x&&eu(Qs(f,i)),inBox:n.inBox||x};for(let w of At({type:d?.type,props:f})){let T=f[w],O=r(T,I,u,!1,i||oa(d?.type,w));if(O!==void 0)return O}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var W7=" [--sf-edge-t:max(0px,calc(var(--sf-site-width,1600px)_-_100%_-_2_*_var(--sf-edge-g)))] [--sf-edge-al:min(var(--sf-edge-l),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-r))))] [--sf-edge-ar:min(var(--sf-edge-r),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-l))))]",$7="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",z7="[--sf-edge-l:var(--sf-edge-ld,0px)] [--sf-edge-r:var(--sf-edge-rd,0px)] max-view-desktop:[--sf-edge-l:var(--sf-edge-lt,var(--sf-edge-ld,0px))] max-view-desktop:[--sf-edge-r:var(--sf-edge-rt,var(--sf-edge-rd,0px))] max-view-wide:[--sf-edge-l:var(--sf-edge-lp,var(--sf-edge-lt,var(--sf-edge-ld,0px)))] max-view-wide:[--sf-edge-r:var(--sf-edge-rp,var(--sf-edge-rt,var(--sf-edge-rd,0px)))]",PR="max-w-[100vw]",U7=`ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar))] ${PR}`;function TR(e,o=!1){let t={},r=e.pad??{},a=ck({left:r.left,right:r.right},{left:r.leftPhone,right:r.rightPhone},{left:r.leftTablet,right:r.rightTablet},{left:r.left,right:r.right},{desktop:r.unit,tablet:r.unitTablet,phone:r.unitPhone},0,e.site?"site":"box"),n=a.style;for(let[f,x]of[["l","paddingLeft"],["r","paddingRight"]]){let u=n[x];u!==void 0&&(t[`--sf-edge-${f}d`]=typeof u=="number"?`${u}px`:String(u));let h=n[`--sf-pad-${f}-tablet`],I=n[`--sf-pad-${f}-phone`];h!==void 0&&(t[`--sf-edge-${f}t`]=String(h)),I!==void 0&&(t[`--sf-edge-${f}p`]=String(I))}let s=gr(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${W7}`:`${$7}${l?` ${s.className}`:""}`,d=o?` ${pC}${e.gutter?` ${uC}`:""}`:"";return{className:`${i} ${z7}${d}`,style:t}}function rTe(e,o=!1){let{className:t,style:r}=TR(e,o);return{className:`${t} ${U7}`,...Object.keys(r).length?{style:r}:{}}}var j7="[--sf-edge-bl:max(0px,min(calc(var(--sf-edge-beyond)_+_(var(--sf-edge-l)_-_var(--sf-edge-r))_/_2),calc(2_*_var(--sf-edge-beyond))))] [--sf-edge-br:max(0px,min(calc(var(--sf-edge-beyond)_+_(var(--sf-edge-r)_-_var(--sf-edge-l))_/_2),calc(2_*_var(--sf-edge-beyond))))]";var G7="--sf-edge-beyond";function OR(e){return`max(0px,calc((${e===null?zs:`min(${zs},${e})`} - ${No}) / 2))`}var K7=`${j7} ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-bl)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)_+_var(--sf-edge-br)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar)_+_var(--sf-edge-bl)_+_var(--sf-edge-br))] pl-[calc(var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-bl))] pr-[calc(var(--sf-edge-g)_+_var(--sf-edge-ar)_+_var(--sf-edge-br))] ${PR}`;function aTe(e){let{className:o,style:t}=TR(e);return{className:`${o} ${K7}`,style:{...t,[G7]:e.beyond??"0px"}}}var ui=cs(!1);function xTe(){return Pt(ui)}function hTe({children:e}){return Oo(ui.Provider,{value:!0,children:e})}var Lg=cs(!1);function Dg({children:e}){return Oo(Lg.Provider,{value:!0,children:e})}var ER=cs(null);function Ng({ground:e,children:o}){return Oo(ER.Provider,{value:e,children:o})}var Mg=cs(!1);function q7(){return Pt(Mg)}function _R({atTop:e,nested:o}){return Oo(Rg,{children:q7()?o:e})}var mi=cs(void 0);function AR({children:e}){return Oo(mi.Provider,{value:null,children:e})}function Hg(){return Pt(mi)===void 0&&!Pt(Mg)&&!Pt(ui)}function ps({own:e,followed:o}){return Oo(Rg,{children:Hg()?e():o()})}var FR=cs(null);function BR({value:e,children:o}){return Oo(FR.Provider,{value:e,children:o})}function LR({draw:e}){return Oo(Rg,{children:e(Pt(FR))})}function ITe(){return Pt(mi)??null}function RR({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:l,outerAttrs:i,box:d=!1,edge:f=!1,outerStyle:x,outerClass:u,bleed:h=!1,siteSide:I=!1,part:w,children:T}){let O=Pt(ui),F=wt(),k=F?` ${gr(I?"site":"box").onceFrame}`:"",y=Pt(Lg),b=kR(e,O),E=b&&!y,B=ot(),R=!!(l&&E),C=R?u:vo(u??"",B.className)||void 0,L=R||!B.className?i:{...i,...B.attrs},g=s?bn(s,E):null,P=g&&F?{root:g.root?{...g.root,className:Zo(g.root.className,!0)}:null,outer:g.outer?{...g.outer,className:Zo(g.outer.className,!0)}:null}:g,v=P?.root??null,S=l&&!E?l:null,N=d&&!h?F?`${qm} ${fC(I?"site":"box")}`:qm:null,H=[E?`${o}${k}`:t,E?N:null,v?.className,S?sk:null].filter(Boolean).join(" "),q=V7(h&&E,v||S?{...a,...v?.style,...S}:a),z=Pt(mi),ne=Pt(ER),ge=d&&f&&z===void 0?{gutter:b,...s?{pad:s.values}:{},beyond:b&&y?OR(ne):"0px",...I&&b?{site:!0}:{}}:null,J=d?Oo(Mg.Provider,{value:!0,children:Oo(mi.Provider,{value:ge,children:T})}):T,me=b?Oo(ui.Provider,{value:!0,children:J}):J,oe=P?.outer??null,xe=L&&Object.keys(L).length>0?L:null,ce=Oo("div",{...oe?null:xe,className:!oe&&C?H?`${H} ${C}`:C:H,style:oe||!x?q:{...q,...x},"data-tab-label":n,...oe?null:w,children:y?Oo(Lg.Provider,{value:!1,children:b&&!h?Oo("div",{className:N?`${r}${k} ${N}`:`${r}${k}`,children:me}):me}):me}),qe=oe?Oo("div",{...xe,className:C?`${oe.className} ${C}`:oe.className,style:x?{...oe.style,...x}:oe.style,...w,children:ce}):ce;return B.scope(l&&E?Oo("div",{className:vo(Wd,B.className),style:{display:"contents",...l},...B.attrs,children:qe}):qe)}function V7(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as Y7}from"react/jsx-runtime";function DR({children:e}){return Y7(ie,{className:kA,children:e})}function J7({side:e,children:o}){return Hg()?ru(DR,{children:ru(ie,{className:vA(e),children:o})}):ru(X7,{children:o})}var NR={name:"boxJoin",applies:(e,o,t)=>e===G&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=kp(t.join);return r?ru(J7,{side:r,children:o(t)}):o(t)}}};var MR=(e,o)=>e.fields?.[o]?.type==="slot",Z7=(e,o)=>MR(o,Pe)||Sd(e).some(t=>MR(o,t)),HR={name:"cardTemplateOnInsert",applies:(e,o,t)=>Z7(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?hd(o,n):s==="copy"?xd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as hi}from"react/jsx-runtime";import{Fragment as Da,jsx as He,jsxs as Wg}from"react/jsx-runtime";import{createContext as $g,useContext as jr,useId as aq}from"react";import{REPEAT_ATTRIBUTE as nq,REPEAT_INDEX_ATTRIBUTE as sq}from"efficient-easel/draw";import{jsx as DTe}from"react/jsx-runtime";import{createContext as oq,useContext as UR,useMemo as tq}from"react";var WR="title";function $R(e){return`${e}Alt`}function Q7(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function zR(e,o){let t={[WR]:typeof e.title=="string"?e.title:""};for(let{key:r,kind:a}of e.schema??[]){let n=e.fields?.[r];if(a==="text"&&typeof n=="string")t[r]=n;else if(a==="date"&&typeof n=="string")t[r]=n&&o?o(n):n;else if(a==="images"&&Array.isArray(n)){let{url:s,alt:l}=Q7(n);t[r]=s,t[$R(r)]=l}}return t}function eq(e,o){return typeof o!="string"?o.flatMap(t=>eq(e,t)):e===xf||!cP(e)?[]:o==="image"?Ix(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:$R(t.key)})):o!=="text"?[]:[{key:WR,label:c("Title")},...Ix(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var jR=oq(null);function rq(){return UR(jR)?.record??null}function WTe(e){let o=rq();return o!==null&&o.type===e?o:null}function GR(){let e=UR(jR);return tq(()=>e&&e.record.type!==xf?zR(e.record,e.dateWords):null,[e])}function QTe({props:e,editing:o,children:t}){let r=jr(xi);return!o&&Wm(e,r?.row)?null:He(Da,{children:t})}var nu=$g(null);function e0e({field:e,children:o}){let t=jr(nu);return He(Da,{children:o(t&&t.field===e?t.id:void 0)})}function lq(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Wm({[en]:r},o)))?.field??""}var xi=$g(null),au=$g(null),iq={label:"text-[length:var(--size-label,12px)]"},dq=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${iq.label} text-fg-dim`;function o0e({name:e,label:o,editing:t}){let r=jr(au)?.(e),a=qd()!=="";return r!=null&&r!==!1?a?He(ie,{className:"contents",children:r}):He(Da,{children:r}):t?He(ie,{className:dq,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function t0e(){return jr(xi)}function zg({type:e,props:o,children:t}){let r=jr(xi),a=GR(),n=r?.row??a;return He(Da,{children:t(yw(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function fq({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=aq(),{press:l,disabled:i}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return Wg("div",{...e,id:s,className:t&&!i?`${ph} ${fE}`:ph,children:[He("button",{type:"button",[uE]:"",className:i?hE:xE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),He(nu.Provider,{value:f,children:n})]})}function r0e({ownerId:e,ownerType:o,slot:t=Pe,Template:r,rows:a,items:n,fields:s,states:l,stateLine:i,actions:d,pressTitles:f,previewHover:x,fallback:u,copyAttrs:h,wrapCopy:I,rowKey:w,hostParts:T,children:O}){let F=jr(xi),k=jr(nu),y=jr(au);if(!r||(r.blockCount??0)<=0)return He(Da,{children:u});let b=F!==null,E=uw(o),B=x??F?.previewHover,R=r.blockCount===1?He(Ek,{children:He(r,{className:Sk})}):He(r,{}),C=new Set,L=(P,v)=>{if(!w)return v;let S=w(P,v);for(;C.has(S);)S=`${S}#${v}`;return C.add(S),S},g=a.map((P,v)=>{let S=l?.[v],N={row:P,index:v,ownerType:o,slot:t,item:n?.[v],nested:b,...s?{fields:s}:null,...S?{state:S}:null,...E?{linesBetween:E}:null,...B?{previewHover:B}:null},H=Nh(S)?Wg(Da,{children:[R,i==="under"?He("span",{"aria-hidden":"true",className:sE}):Dh(S)?Wg("span",{"aria-hidden":"true",className:lE,children:[He("span",{className:iE}),He("span",{className:dE})]}):He("span",{"aria-hidden":"true",className:nE})]}):R,q={[nq]:`${e}:${t}`,[sq]:v,...typeof h=="function"?h(N):h},z=d?.[v],ne=cE(S,i),ge=z?He(fq,{attrs:{...q,...ne},selected:S?.selected===!0,hover:i!=="under",action:z,titleField:lq(f,P),children:H}):k?He("div",{...q,...ne,children:He(nu.Provider,{value:null,children:H})}):He("div",{...q,...ne,children:H}),J=I?I(ge,N):ge;return He(xi.Provider,{value:N,children:T?He(au.Provider,{value:me=>T(N,me),children:J}):y?He(au.Provider,{value:null,children:J}):J},L(N,v))});return He(Da,{children:O(g)})}var KR={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==no&&e!==cn,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.partSizeCaps,s=r.render,l=t.inspector?.PartAnchors,i=(d,f)=>ev(a(),f,x=>Iw(o,d,x));r.render=d=>{let f=uv(d),x=CO(d);return d.editor?.isEditing&&l?hi(zg,{type:o,props:d,children:u=>hi(l,{needles:i(d,u),styles:f,motions:x,type:o,sizeCaps:n,children:hi(fL,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(x).length?s(d):hi(zg,{type:o,props:d,children:u=>hi(_O,{needles:i(d,u),styles:f,motions:x,type:o,atEdge:o===G,sizeCaps:n,children:s(d)})})}}};import{jsx as qR}from"react/jsx-runtime";var VR={name:"sectionCorners",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sectionShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=nk(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?qR(ie,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},Ug=["CollectionCard"],YR={name:"cardCorners",applies:(e,o,t)=>Ug.includes(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.cardShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=TP(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?qR(ie,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var XR={name:"emptyHeadings",applies:()=>!0,panel(e,o,t){let r=t.dropEmptyHeadings,a=e.resolveFields;e.resolveFields=a?(n,s)=>{let l=a(n,s);return l instanceof Promise?l.then(i=>r(i??s.fields)):r(l??s.fields)}:(n,s)=>r(s.fields)}};var JR={name:"showWhenRows",applies:()=>!0,panel(e,o,t){let r=t.rowsShownForNode,a=e.showWhenFacts??{},n=e.resolveFields;e.resolveFields=n?(s,l)=>{let i=n(s,l);return i instanceof Promise?i.then(d=>r(d??l.fields,s,l,a)):r(i??l.fields,s,l,a)}:(s,l)=>r(l.fields,s,l,a)}};import{jsx as ZR,jsxs as cq}from"react/jsx-runtime";var pq="Flex",QR=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,eD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>QR(t,Rl)?ZR(ie,{className:Ec,children:t[Rl]==="empty"?null:o(t)}):o(t)}},oD={name:"headBox",applies:(e,o,t)=>e===pq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>QR(t,Ll)?cq(ie,{className:_c,children:[ZR(Ac,{}),o(t)]}):o(t)}};import{createElement as uq}from"react";var tD={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===G?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(Qt(n))return null;let s=rl(n),l=Tk(s,Rv(n),{sectionClassName:rl(n,{atSectionLine:!0}),line:r});return uq(kk.Provider,{value:l},a(n))}}};import{jsx as Iq}from"react/jsx-runtime";import{createContext as aD,createElement as rD,useContext as mq}from"react";var nD=aD(null),xq=aD(!1),F0e=nD.Provider;function hq(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function sD({name:e,editing:o,children:t}){let r=mq(nD);return o||hq(e,r?.selected??null,r?.known??[])?t:rD("div",{hidden:!0,style:{display:"none"}},rD(xq.Provider,{value:!0},t))}var gq="Flex",lD={name:"showFor",applies:(e,o,t)=>e===gq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=LE(t[jn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return Iq(sD,{name:r,editing:a,children:o(t)})}}};var iD=If.mediaFields,yq=e=>SP(e)?e.src:e;function Sq(e,o){let t=o;for(let r of $(iD,e)??[])t=bP(t,r,yq);return t}var dD={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&($(iD,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(Sq(o,r))}};import{jsx as Ii,Fragment as fD,jsxs as cD}from"react/jsx-runtime";var bq="!grow-0 !shrink-0 !basis-0",wq=["[.sf-gap-zone>&]:w-0","[.sf-gap-zone>&]:h-0","[.sf-gap-zone>&]:-mb-[var(--sf-gap-len)]","[.sf-gap-zone>&]:-mr-[var(--sf-gap-len)]","[@media(min-width:800px)_and_(max-width:1099.98px)]:[.sf-gap-zone>&]:-mb-[var(--sf-gap-len-tablet,var(--sf-gap-len))]","[@media(min-width:800px)_and_(max-width:1099.98px)]:[.sf-gap-zone>&]:-mr-[var(--sf-gap-len-tablet,var(--sf-gap-len))]","[@media(max-width:799.98px)]:[.sf-gap-zone>&]:-mb-[var(--sf-gap-len-phone,calc(var(--sf-gap-len)/2))]","[@media(max-width:799.98px)]:[.sf-gap-zone>&]:-mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len)/2))]"].join(" "),Cq="flex flex-col w-full min-w-0 [&>*]:grow";function pD({anchor:e}){let o=sa(e),t=Cr(),r=qd();return o?Ii("span",{id:o,className:vo(t?`sf-section-anchor ${bq} ${wq}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function kq({anchor:e,copiesInBox:o,children:t}){let r=Yd()?.columnsRow===!0,a=Ok(),n=sa(e)!=="";return o?Ii(fD,{children:t}):r&&!a&&n?cD(ie,{className:Cq,children:[Ii(pD,{anchor:e}),t]}):cD(fD,{children:[Ii(pD,{anchor:e}),t]})}var uD={name:"sectionAnchor",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.anchorFields;e.fields={...e.fields,...r()}},draw(e,o){e.defaultProps={...e.defaultProps,anchor:""};let t=e.render;e.render=r=>Ii(kq,{anchor:r.anchor,copiesInBox:Vo(o,r),children:t(r)})}};import{jsx as vq}from"react/jsx-runtime";var mD=Object.fromEntries(Bb.map(e=>[e,"picture"])),Pq={[G]:"box",Ticker:"marquee",...Object.fromEntries(sd.map(e=>[e,"cards"])),...mD},xD=(e,o)=>!Dd.has(e)&&!!o&&typeof o.render=="function";function hD(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function ID(e,o){let t=e,r=t.render;t.render=a=>{let n=gn(a);return!n||Vo(o,a)?r(a):vq(hc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===G,children:r(a)})}}var gD={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&xD(e,t),panel:(e,o,t)=>hD(e,$(Pq,o)??"section",t,o),draw:(e,o)=>ID(e,o)},yD={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&xD(e,t),panel:(e,o,t)=>hD(e,$(mD,o)??"block",t,o),draw:(e,o)=>ID(e,o)};import{jsx as Tq}from"react/jsx-runtime";var SD=(e,o)=>!Dd.has(e)&&!!o&&typeof o.render=="function";function Oq(e){let o=gh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function bD(e,o){let t=e,r=t.render,a=Oq(o),n=e.drawsPictures===!0;t.render=s=>{let l=Wn(s);return!l||Vo(o,s)?r(s):Tq(Nc,{views:l,...a?{origins:bO(s,a)}:{},takesViewHide:!0,atEdge:o===G,zoomInside:n?"picture":"layer",children:r(s)})}}var wD={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&SD(e,t),draw:(e,o)=>bD(e,o)},CD={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&SD(e,t),draw:(e,o)=>bD(e,o)};import{jsx as Eq}from"react/jsx-runtime";import{createElement as _q}from"react";var jg=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function Aq(e,o){let t=e.props??{};return jg.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Ut(o.appState,t.id))?.type===G}var Gg={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!yk.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.heightFields;e.fields={...e.fields,...r()};let a=r({fill:!0}),n=new WeakMap,s=i=>{if(!i||!jg.some(f=>f in i))return i;let d=n.get(i);if(!d){d={...i};for(let f of jg)f in d&&(d[f]=a[f]);n.set(i,d)}return d},l=e.resolveFields;e.resolveFields=(i,d)=>{let f=l?l(i,d):d.fields,x=u=>Aq(i??{},d)?s(u??d.fields):u;return f instanceof Promise?f.then(x):x(f)}},draw(e,o){let t=e.render;e.render=r=>{if(Vo(o,r))return t(r);let a=Ck(r);return a?Eq(kr,{className:a.className,style:a.style,...o===G?{attrs:$b}:null,children:t(r)}):t(r)}}},kD={name:"sectionHeightFillRoot",applies:Gg.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Vo(o,r)?null:Pk(wk(r),bk(r).join(" "));return _q(vk.Provider,{value:a},t(r))}}};import{jsx as su}from"react/jsx-runtime";import{PIN_ATTR as vD,PIN_FRAME_ATTR as Fq}from"efficient-shell/format";var TD=ED("sectionSticky",(e,o,t)=>o.isSection(e)&&!tk.has(e)&&!!t&&typeof t.render=="function",!0),OD=ED("cardSticky",(e,o,t)=>Ug.includes(e)&&!!t&&typeof t.render=="function",!1);function ED(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=ox.has(a);r.fields=Lq(r.fields??{},Jo(n.stickFields({intro:s,screens:t,above:t}),Rq(s))),t&&Bt(r,{heldByANode:Jp})},draw(r,a){let n=r.render,s=ox.has(a);r.render=l=>{let i=rx(l,{atScreenTop:s,above:t});if(!i)return n(l);let d=x=>{let u=su(Jd,{children:n(l)});return su(ie,{...x.attrs,style:x.style,children:x.attrs[vD]===""?su("div",{[Fq]:"",children:u}):u})},f=t?rx(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[vD]!==""?d(i):su(ps,{own:()=>d(f),followed:()=>d(i)})}}}}var PD=[gt,ns],Bq="_gStick";function Lq(e,o){let t=Object.keys(e),r=e[Hn];if(!r){let O=t.findIndex(F=>PD.includes(F));return O<0?{...e,...o}:Object.fromEntries([...t.slice(0,O).map(F=>[F,e[F]]),...Object.entries(o),...t.slice(O).map(F=>[F,e[F]])])}let{[Bq]:a,...n}=o,s=O=>O.startsWith(yn),l=Object.entries(n).filter(([O])=>!s(O)),i=Object.entries(n).filter(([O])=>s(O)),d=[r.dot,a?.dot].filter(O=>!!O),f=t.indexOf(Hn),x=t.findIndex((O,F)=>F>f&&PD.includes(O)),u=x<0?t.length:x,h=t.indexOf(Ic),I=h>f&&h<u?h:u,w=O=>[O,O===Hn?{...r,dot:{any:d}}:e[O]],T=[...t.slice(0,I).map(w),...l,...t.slice(I,u).map(w),...i,...t.slice(u).map(w)];return Object.fromEntries(T)}function Rq(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},rk]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,fi,{not:{field:Xs,is:!0}}]}),[n,s,l]=QC;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Jt(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Jt(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Jt(["stickTopTablet","stickTop"],o,r))],[[l],a(Jt(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Hd],tx],[[Xs],tx]]}import{jsx as Dq}from"react/jsx-runtime";var _D={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(cc.has(o))return;let t=e.render;e.render=r=>{let a=dk(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,ik(r)),n=t(r);return a?Dq(ie,{className:Wd,style:{display:"contents",...a},children:n}):n}}};import{jsx as Kg}from"react/jsx-runtime";var AD={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!Zw.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=Gm.has(o);e.fields={...e.fields,...n?r(Pd,a):r()}},draw(e,o){let t=Gm.has(o),r=e.render;e.render=a=>{let n=eC(t?{...a,sectionAccent:Pd(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>Kg(kr,{className:n.className,style:d,children:s}),i=n.style;return Vo(o,a)?Kg("div",{className:n.className,style:{...i,display:"contents"},children:s}):ou(o,a)!=="content"?l(i):Kg(ps,{own:()=>l({...i,...$s(No)}),followed:()=>l(i)})}}},FD={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,o,t){let{sectionThemeFields:r,BLOCK_THEME_FOLLOW_LABEL:a}=t;e?.fields&&(e.fields={...e.fields,...r(Pd,a)})}};import{jsx as Ke}from"react/jsx-runtime";var BD=null;function qg(e){BD=e}function LD(){return BD}import{jsx as Nq}from"react/jsx-runtime";var Mq="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",RD=gr("box").frame,gi=`${Mq} ${RD}`,Hq=gr("site").frame,Wq=gr("none").frame;function XOe(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?Wq:o==="site"?Hq:RD}var $q="mx-auto w-full max-w-[1280px] px-[60px]",zq="max-[960px]:px-6",JOe=`${$q} ${zq}`;function ZOe({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return Nq(RR,{contained:e,framedClass:`${gi} ${o}`,fillClass:`${a} ${o}`,columnClass:gi,style:t,pad:r,part:n,children:s})}var us="--sf-sw-site",Uq="--sf-sw-content",jq="--sf-bg-cap",Gq="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",Vg=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",ND="contents view-wide:[--sf-site-width:100vw]",Yg=({held:e},o,t)=>e?t:Ke(ie,{className:o,children:t}),Kq=`contents view-wide:[--sf-site-width:100vw] ${$F} view-wide:[--sf-site-gutter:var(--intro-edge)]`,Xg=(e,o,t)=>o==="content"?`min(${un(e,t)},var(${us}))`:un(e,t);function yi({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?zs:null:o===null?null:Xg(o,r,t)}function Si(e,o){return o===null?e:Ke(ie,{className:"contents",style:{[us]:No},children:Ke(ie,{className:Gq,style:{[Uq]:o},children:e})})}var qq="--sf-content-cap",Vq="contents max-view-wide:[--sf-content-cap:none]";function Yq({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?Xg(o,r,t):r==="content"?null:`var(${us})`}function Xq(e,o){return o===null?e:Ke(ie,{className:"contents",style:{[us]:No},children:Ke(ie,{className:Vq,style:{[qq]:o},children:e})})}var MD=`var(${us},${No})`,Gr=(e,o,t="")=>e==="content"?Ke(ie,{className:t||void 0,style:$s(No),children:Ke(Ng,{ground:MD,children:o})}):o;function HD(e,o,t,r,a){if(Vg(t))return Gr(r,Yg(t,ND,Ke(Dg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Gr(r,e({...o,contained:!1}),a);let n=yi(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Gr(r,Si(Ke(Dg,{children:e({...o,contained:!0})}),n),a)}function Jq(e,o,t,r,a){if(t==="hero"){let l=Si(e(o),yi(r,r.band));return r.band==="full"?Ke(ie,{style:{[bC]:"none",[wC]:"initial",[CC]:"initial"},children:l}):r.band==="content"?Ke(ie,{style:Ed(!0),children:l}):l}let n=r.band??"full",s=br(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return Gr(n,e(o),s);let l=r.contentMax===null?No:Xg(r.contentMax,n,r.contentMaxUnit);return Ke(ie,{className:"contents",style:{[us]:No},children:Gr(n,Ke(ie,{className:s||void 0,style:$s(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=Vg(r)?Yg(r,Kq,e({...o,fullWidth:!1})):Si(e({...o,fullWidth:l}),l?null:yi(r,n));return n==="content"?Ke(ie,{className:"contents",style:{[jq]:No},children:i}):i}switch(t){case"both":return Gr(n,Xq(e(o),Yq(r,n)),s);case"contained":return HD(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let l=Vg(r),i=r.content==="full"&&!l?"full":"page",d=l?Yg(r,ND,e({...o,widthMode:i})):Si(e({...o,widthMode:i}),r.content==="full"?null:yi(r,n));return t==="productGrid"&&!r.own?n==="content"?Ke(Gf,{className:s?`${gi} ${s}`:gi,children:f=>Ke(ie,{className:f,children:d})}):d:Gr(n,d,s)}default:return Gr(n,Si(e(o),yi(r,n)),s)}}function DD(e,o,t,r,a){let n=a===G?"edge":"by-box",s=l=>Jq(e,o,t,r,l);return n==="edge"?s(!0):br(o)===br(o,{atSectionLine:!0})?s(!1):Ke(Vd,{line:n,draw:s})}function Zq(e,o){let t=$(Us,o);if(!t)return;let r=e.render;e.render=a=>{let n=Ad(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):Ke(LR,{draw:I=>I?.background==="content"?Ke(Ng,{ground:MD,children:i(I)}):i(I)}),i=I=>{let w=I?{...s,band:I.background==="content"?s.band:I.background??s.band,content:I.content??s.content,own:I.background==="full"||I.content!==null,held:!0,siteContent:s.content}:s,T=DD(r,a,t,w,o);if(!Ur(o))return T;let O=pi(a),F=O===void 0?w.content:O?"content":"full";return F===w.content?T:Ke(_R,{atTop:T,nested:HD(r,a,{...w,content:F,own:!1},w.band??"full",br(a))})},d=ci(o,a);if(!TC(d))return l();let f=t==="rawMarkup",x=ou(o,a),u=d.content??(f?"full":s.content),h={band:x,content:x==="content"?"content":u,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!f,siteContent:s.content};return Ke(ps,{own:()=>Ke(BR,{value:{background:h.band,content:h.content},children:DD(r,a,t,h,o)}),followed:l})}}var Qq={all:[fi,{not:{context:"runsEdgeToEdge",is:!0}}]},WD={name:"sectionWidth",applies:(e,o,t)=>_d(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:$(Us,o)==="rawMarkup"}),a=Ur(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Ur(o)?UD(o,e,n,[Ra]):n;Bt(e,{heldByANode:Jp}),Ur(o)&&Bt(e,{runsEdgeToEdge:(l,i)=>eu(Qs(l.props??{},bw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Do(s,[Bo.background,Bo.content],Ur(o)?Qq:fi)},draw(e,o){Zq(e,o)}};function e9(e,o){if(!e||!("widthMode"in e))return e;let t={...e},r=t.widthMode;return r&&(t.widthMode={...r,currentValue:o.mode,inherited:o.inherited}),t}var o9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),$D={name:"containedWidth",applies:(e,o,t)=>o9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=UD(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=Vm(n?.props??{},"page"),d=f=>e9(f,i);return l&&typeof l.then=="function"?l.then(d):d(l)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=Vm(t,"page");return o({...t,contained:r!=="full"})}}},t9={not:{context:"inHeroGroupRow",is:!0}},zD={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Do(o.fields??{},["align"],t9),Bt(o,{inHeroGroupRow:(t,r)=>{let a=Ut(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&vn("HeroGroup",a.props?.direction)==="row"}})}};function r9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var a9={any:[]},n9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},s9={not:{context:"widthCappedByParent",is:!0}};function UD(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Do(t,["_gWidth",...r],a9);if(r9(t)){let a=(n,s)=>vR(s.appState?.data?.content,n.props?.id,tu(LD()));return Bt(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Do(t,r,n9)}return Bt(o,{widthCappedByParent:(a,n)=>"parent"in n?rw(n.parent):cR({props:a.props??{}},n)}),Do(t,r,s9)}var l9=new Set(["Reviews","Cards","FAQ","Prose","ProductHero","SpecTable","ProductGrid","ParagraphsA","KeyFeatures","Integrations","Stats","StatsParagraph","Chart","Mockup","Testimonials","Logos","ContactRouting","ContactLocations","SubmitBuild","ReviewForm","Form","AppointmentBooking","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Collections","AlloyWheelsListing","CatalogFilterBar","FitmentFinder","GalleryB","DocMasthead","DocBody","DocMetaCards","Masthead","FeaturedCover","LongRead","Series","Events","ArticleBody","SectionHeader","Grid","Flex","Spacer","Divider","CustomHTML","Breadcrumb","CategoryBar","DocTabs","Hero","HeroSingle","IntroBleed","Manifesto","Timeline","TimelineTrack","Footprint","Banner","TitleWithButtons","Ticker","SubscribeBlogs","TyreSizes","TyreFitment","EuTyreLabel","SpecStrip","ProcessSteps","DetailRows","FitmentTable","CompatibleTyres","RelatedProducts","BundleOffer","Split","Gallery","Subscribe","Countdown"]),jD={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(l9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},i9=new Set(["HeroSlide","HeroGroup"]),GD={name:"blockGroups",applies:(e,o,t)=>i9.has(e)||!o.isSection(e)&&Cp in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as Jg}from"react/jsx-runtime";var d9=new Set(["Flex","Grid"]),KD=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),f9=(e,o)=>e.fields?.[o]?.ownPictures===!0,c9=["blockCount","blockIds"],p9=new WeakMap,u9=new WeakMap;function m9(e,o){let t=o?u9:p9,r=t.get(e);if(r)return r;let a=e,n=s=>Jg(AR,{children:Jg(Jd,{ownPictures:o,children:Jg(a,{...s})})});Object.assign(n,e);for(let s of c9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var qD={name:"slotsStartAfresh",applies:(e,o,t)=>!d9.has(e)&&typeof t?.render=="function"&&KD(t).length>0,draw(e){let o=KD(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=m9(s,f9(e,n)))}return t(a)}}};var x9=new Set(["Form","Stats","Logos"]);function VD(){return[...x9]}function Zg(e,o,t=[]){let r=new Set(e),a=tb.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!lf.includes(d)),s=new Set([...o,...od,...VD()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!gd(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var h9=[qD,dD,eD,sR,lR,J0,VR,_D,YR,Q0,yD,CD,fR,WD,$D,zD,Gg,F0,uD,AD,gD,wD,TD,OD,NR,FD,wR,jD,GD,JR,XR,KR,oD,lD,kD,tD,nR,HR];function YD(e,o,t){let r=o;for(let a of h9)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as Qg}from"react/jsx-runtime";import{ClockIcon as I9,DurationIcon as g9}from"efficient-easel/icons";import{MOTION_TIMING as XD}from"efficient-shell/format";import{useSelectedHost as y9}from"efficient-easel/easel";function ms(e){let{min:o,max:t,step:r,default:a}=XD[e].duration;return Or("Duration",Qg(g9,{}),o,t,r,a,"s")}function xs(e){let{min:o,max:t,step:r,default:a}=XD[e].delay;return Or("Delay",Qg(I9,{}),o,t,r,a,"s")}function hs(e,o){let t=e.render,r=a=>{let n=y9();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>Qg(r,{...a})}}function lu({readsSpeed:e}){return hs(ms("loop"),(o,t)=>wp({loopDuration:o,speed:e?t?.speed:void 0}))}function iu(){return hs(xs("loop"),e=>CA({loopDelay:e}))}import{jsx as lo}from"react/jsx-runtime";import{DirectionDownIcon as S9,DirectionIcon as b9,DirectionLeftIcon as w9,DirectionRightIcon as C9,DirectionUpIcon as k9,EntranceBounceIcon as v9,EntranceFadeIcon as P9,EntranceFlipIcon as T9,EntranceGlideIcon as O9,EntranceRevealIcon as E9,EntranceRiseIcon as _9,EntranceScaleIcon as A9,EntranceSpinIcon as F9,NoSymbolIcon as B9}from"efficient-easel/icons";import{NoControlMark as L9,noControlField as R9}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as D9,group as N9}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as M9,ENTRANCE_FROM_DEFAULT as ZD,ENTRANCE_KINDS as QD,ENTRANCE_KINDS_WITH_FROM as H9,entranceAttrs as W9,playEntrance as $9,readEntrance as z9}from"efficient-shell/format";var U9={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},j9={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},G9={top:()=>lo(S9,{}),bottom:()=>lo(k9,{}),left:()=>lo(C9,{}),right:()=>lo(w9,{})},eN="Entrance",oy=QD.filter(e=>e!=="none"),oN=e=>({any:[{field:Ko.kind,in:e},{all:[{field:Ko.kind,set:!1},{field:Ks,in:e}]}]}),JD=(e,o)=>Jt(Qo.slice(0,Qo.indexOf(e)+1).reverse().map(t=>et(Ko.kind,t)),t=>({field:t,set:!0}),t=>t===Ko.kind?oN(o):{field:t,in:o}),K9={any:[oN(oy),...Qo.slice(1).map(e=>({field:et(Ko.kind,e),in:oy}))]},q9=Qo.flatMap(e=>[[[et(Ko.from,e)],JD(e,H9)],[[et(Ko.duration,e),et(Ko.delay,e)],JD(e,oy)]]),V9={none:()=>lo(B9,{}),fade:()=>lo(P9,{}),rise:()=>lo(_9,{}),scale:()=>lo(A9,{}),glide:()=>lo(O9,{}),bounce:()=>lo(v9,{}),flip:()=>lo(T9,{}),reveal:()=>lo(E9,{}),spin:()=>lo(F9,{})},tN="data-entrance-tile";function Y9({kind:e}){let{attrs:o}=W9(z9(e,ZD));return lo("span",{className:"sf-entrance-stage",[tN]:e,children:lo("i",{...o,children:V9[e]()})})}var X9=(e,o)=>{let t=e.querySelector(`[${tN}="${o}"] > i`);t&&$9(t)},J9="Effect",Z9=()=>Tf(Ko.kind,{label:eN,tileWord:J9,values:QD,fallback:"none",word:e=>U9[e],picture:e=>lo(Y9,{kind:e}),read:(e,o)=>qs(e,o).kind,preview:X9}),ey=(e,o)=>Pf(Ko[e],o,(t,r)=>qs(t,r)[e]),Q9=M9.map(e=>({label:j9[e],value:e,picture:G9[e]()}));function Tt(){let e={[Cp]:N9(eN,{dot:K9}),...Z9(),[Ks]:R9({type:"custom",render:()=>lo(L9,{})},"always"),_cEntrance:D9(),...ey("from",Pn("From",lo(b9,{}),Q9,ZD)),...ey("duration",ms("entrance")),...ey("delay",xs("entrance"))};return Jo(e,q9)}import{jsx as ut}from"react/jsx-runtime";import{EntranceRevealIcon as eV,NoSymbolIcon as oV,PercentIcon as rN,ScrollFadeInIcon as tV,ScrollFadeOutIcon as rV,ScrollMoveDownIcon as aV,ScrollMoveUpIcon as nV,ScrollParallaxIcon as sV,ScrollZoomInIcon as lV,ScrollZoomOutIcon as iV,ZoomInIcon as dV}from"efficient-easel/icons";import{customize as fV,group as cV}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as nN,SCROLL_EFFECTS_WITH_ZOOM as pV,SCROLL_END as uV,SCROLL_START as mV,SCROLL_ZOOM as xV}from"efficient-shell/format";var sN="Scroll",hV={none:"None","zoom-in":"Zoom in","zoom-out":"Zoom out","fade-in":"Fade in","fade-out":"Fade out","move-up":"Move up","move-down":"Move down",reveal:"Reveal",parallax:"Parallax"},IV={none:()=>ut(oV,{}),"zoom-in":()=>ut(lV,{}),"zoom-out":()=>ut(iV,{}),"fade-in":()=>ut(tV,{}),"fade-out":()=>ut(rV,{}),"move-up":()=>ut(nV,{}),"move-down":()=>ut(aV,{}),reveal:()=>ut(eV,{}),parallax:()=>ut(sV,{})},gV="Effect",lN=nN.filter(e=>e!=="none"),aN=(e,o)=>Jt(Qo.slice(0,Qo.indexOf(e)+1).reverse().map(t=>et(ho.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),yV={any:Qo.map(e=>({field:et(ho.effect,e),in:lN}))},SV=Qo.flatMap(e=>[[[et(ho.zoom,e)],aN(e,pV)],[[et(ho.start,e),et(ho.end,e)],aN(e,lN)]]),bV=()=>Tf(ho.effect,{label:sN,tileWord:gV,values:nN,fallback:"none",word:e=>hV[e],picture:e=>IV[e](),read:(e,o)=>nr(e,o).effect}),ty=(e,o,t,r,a)=>Pf(e,Or(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>nr(n,s)[o]);function Na(){let e={[Hn]:cV(sN,{dot:yV}),...bV(),[Ic]:fV(),...ty(ho.zoom,"zoom","Zoom",ut(dV,{}),xV),...ty(ho.start,"start","Start",ut(rN,{}),mV),...ty(ho.end,"end","End",ut(rN,{}),uV)};return Jo(e,SV)}import{jsx as Lo}from"react/jsx-runtime";import{AccentIcon as wV,ContrastIcon as CV,EyeIcon as kV,ExpandIcon as vV,FinishIcon as PV,ImagesIcon as TV,NoSymbolIcon as dN,HoverLiftIcon as OV,HoverNextImageIcon as EV,HoverRotateIcon as _V,HoverZoomIcon as fN,OpacityIcon as AV}from"efficient-easel/icons";import{customize as FV,describedAs as cN,group as BV}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as pN}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as yo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as LV,noControlField as RV}from"efficient-easel/screen/lib/document/panel-no-control-mark";var du=e=>yo("desktop",BV("Hover",{dot:e})),uN=()=>yo("desktop",FV()),DV="What this does when a shopper points at it, or taps it on a phone.",NV="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",MV="What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",HV="What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",WV="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",$V="What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.",zV="Which of the product's pictures the card shows.",UV="Same finish shows the photos of the finish the card shows, else the first group.",jV="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",GV={none:()=>Lo(dN,{}),nextImage:()=>Lo(EV,{}),rotate:()=>Lo(_V,{}),zoom:()=>Lo(fN,{}),lift:()=>Lo(OV,{}),mono:()=>Lo(CV,{})};function ry(e,o){let t=pN({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(hm[r]),picture:GV[r]()})),fallback:o});return cN(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:hm[r]}))})}function mN(){return{[gt]:du({field:Xo,in:Sm.filter(e=>e!=="none")}),[Xo]:yo("desktop",{...ry(Sm,"none"),description:DV})}}function xN(e){let o=Ab(e),t=id(),r=AP(wb);return{[gt]:du({any:[o,t]}),[Ge.kind]:yo("desktop",{...hs(ry(yb,e),(a,n)=>Eb(n??{},e)),description:$V}),...ay(t),[Sb]:RV({type:"custom",render:()=>Lo(LV,{})},"always"),_cHover:uN(),[Ge.angle]:yo("desktop",Qe(hs(r,a=>_b(a)),o)),[Ge.duration]:yo("desktop",Qe(ms("hover"),o)),[Ge.delay]:yo("desktop",Qe(xs("hover"),o))}}function ay(e){let o=EP("Type",Lo(TV,{}),Cb.map(a=>({value:a,label:kb[a]})),ld.kind),t=Pn("Group",Lo(PV,{}),vb.map(a=>({value:a,label:Pb[a]})),ld.group),r=Pn("Covers",Lo(vV,{}),Tb.map(a=>({value:a,label:Ob[a]})),ld.cover);return{[Ge.mediaKind]:yo("desktop",Qe({...o,description:zV},e)),[Ge.mediaGroup]:yo("desktop",Qe({...t,description:UV},e)),[Ge.cover]:yo("desktop",Qe({...r,description:jV},e))}}function ny(e,o="",t=vm.includes(o)){let r=Pm(e),a=Mb(e);return{[gt]:du(r),[Ge.kind]:sy(Fb,e,NV),...vm.includes(o)?ay(id()):{},_cHover:uN(),...t?hN():{},[Ge.duration]:yo("desktop",Qe(ms("hover"),a)),[Ge.delay]:yo("desktop",Qe(xs("hover"),a))}}function hN(e=!1){let o=a=>e?a:Qe(a,Nb()),t=Or("Zoom",Lo(fN,{}),an.min,an.max,an.step,an.min,an.unit),r=Or("Darken on hover",Lo(AV,{}),wn.min,wn.max,wn.step,wn.fallback,wn.unit);return{[wm.zoom]:yo("desktop",o(t)),[wm.darken]:yo("desktop",o(r))}}function sy(e,o,t){let r=yo("desktop",{...hs(ry(e,o),a=>Rb({[Xo]:a},o,e)),description:t});return Object.assign(r,{[IN]:o})}var IN="sfPictureResting",iN=new WeakMap;function J_e(e,o,t){let r=e[Ge.kind],a=r?.[IN];if(!r||!a)return e;let n=o.props?.[Xo]==="nextImage",s=n?null:wd(t.appState,o.props?.id);if(!n&&!sd.includes(String(s?.type??"")))return e;let l=iN.get(e);return l||(l={...e,[Ge.kind]:sy(bm,a,MV)},iN.set(e,l)),l}var KV="What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.",qV={none:()=>Lo(dN,{}),[Im]:()=>Lo(wV,{})},Z_e=yo("desktop",{...cN(pN({label:c("Hover effect"),options:gm.map(e=>({value:e,label:c(ym[e]),picture:qV[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:gm.map(e=>({value:e,label:ym[e]}))}),description:KV}),VV=yo("desktop",{...Pn("Show",Lo(kV,{}),[{value:km,label:"Always"},{value:Cm,label:"On card hover"}],km),description:WV});function gN(){let e={any:[Pm("none"),{field:Xo,is:Im},{field:Zr,is:Cm}]},{[gt]:o,[Ge.kind]:t,...r}=ny("none","",!0);return{[gt]:du(e),[Ge.kind]:t,[Zr]:VV,...ay(id()),...r,...hN(!0)}}var Q_e=sy(bm,"none",HV);import{jsx as bi}from"react/jsx-runtime";import{isNodeList as ZV}from"efficient-easel/data";import{useEasel as QV}from"efficient-easel/easel";import{hiddenInView as eY,hiddenKeyOf as ly,hidePatch as oY,slotChildName as tY,slotChildRowName as rY}from"efficient-easel/draw";var YV=new Set(["BookingBox","SubmitBox"]);function XV(e){return typeof e=="string"&&YV.has(e)}var JV=HP(XV,ST);function fu(e,o){return JV(e)||eT(o)}var cu=(e,o,t)=>{if(o!=="block"||e.props?.fromProduct!==!0)return t;let r=e.props.product;return!r?.code||typeof r.name!="string"?t:r.name.trim()||t};import{deviceField as aY}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as nY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var yN="notCardOfTemplate",SN={not:{context:yN,is:!0}},iy={any:[fd,SN]},y1e={[yN]:(e,o)=>{let t=$m(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function pu(e){let o=e.props?.content;return ZV(o)?o:[]}var mu=(e,o)=>eY(e.props??{},o),sY=(e,o)=>e.props?.[ly(o)]!==void 0;function bN(e,o=()=>!1,t="desktop"){return pu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:pu(r).length&&!mu(r,t)?bN(r,o,t):o(r)?[]:[r])}function lY(e,o,t,r="desktop"){let a=bN(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:i})=>{let d=i;if(s.has(i)){let f=2;for(;n.has(`${i} ${f}`);)f+=1;d=`${i} ${f}`,n.add(d)}return s.add(i),{id:l.props.id,label:d,shown:!mu(l,r)}})}function uu(e,o,t){let r=a=>t==="desktop"?mu(a,t):sY(a,t);return pu(e).flatMap(a=>r(a)?o(a)?[]:[a,...uu(a,o,t)]:uu(a,o,t))}function iY(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===ly("desktop")&&a===!1?delete t[r]:t[r]=a;return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r])?e:t}function dy(e,o,t){let r=pu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=iY(s.props,t(s.props));i!==s.props&&(l={...s,props:i})}else l=dy(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function wN(e,o,t,r="desktop"){return dy(e,o,a=>r==="desktop"&&mu({props:a},r)===!t?{}:oY(a,r,!t))}function dY(e,o,t){return t==="desktop"?wN(e,o,!0,t):dy(e,o,()=>({[ly(t)]:void 0}))}function fY(e,o,t,r,a,n){return tY(e).trim()?t(e):xw({ownerType:o,owner:r,fields:a,slot:n},Lt(e.props))?.label??t(e)}var cY="This page is read-only.";function pY({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>rY(u,n,rn,void 0,cu),f=u=>fu(u.type,u),x=lY(e,u=>fY(u,o,d,t,r,a),f,i);return x.length?bi(_x,{parts:x,changed:uu(e,f,i).length>0,shown:u=>x.find(h=>h.id===u)?.shown??!0,disabledReason:l?cY:void 0,onPress:(u,h)=>s(I=>wN(I,u,h,i)),onReset:()=>s(u=>uu(u,f,i).reduce((h,I)=>dY(h,String(I.props.id),i),u))}):bi(nY,{})}function uY(){try{let e=QV(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=$m(e.appState,t.props?.id);return{labelOf:a=>o[a]?.label??a,card:t,ownerType:typeof r?.type=="string"?r.type:void 0,owner:r,fields:ww(e.appState,r),slot:Sw(e.appState,t.props?.id)??void 0}}catch{return null}}function mY({readOnly:e,view:o}){let t=uY(),r=sl();return t?bi(pY,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},l=a(s);return l===s?null:{content:l.props.content}})}}):bi(_x,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function S1e(e){return Qe(aY(e,{type:"custom",render:({readOnly:o})=>bi(mY,{readOnly:o,view:e})}),SN)}import{customize as kY}from"efficient-easel/screen/lib/document/box-fields";import{jsx as fy}from"react/jsx-runtime";import{DirectionIcon as xY,LoopMarqueeIcon as hY,NoSymbolIcon as IY}from"efficient-easel/icons";import{customize as gY,describedAs as yY,group as SY}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as bY}from"efficient-easel/screen/lib/document/effect-tiles";function cy(){return xT("Direction",OI,ni,"A marquee cannot run diagonally, so the corners are not answers.",fy(xY,{}),mT)}var py=e=>SY("Loop",e?{dot:e}:void 0),wY={none:()=>fy(IY,{}),scroll:()=>fy(hY,{})};function CY(){let e=bY({label:c("Loop"),options:bp.map(({value:o,label:t})=>({value:o,label:c(t),picture:wY[o]()})),fallback:TI});return yY(e,{type:"select",label:"Loop",options:bp.map(({value:o,label:t})=>({value:o,label:t}))})}function CN(){return{[ns]:py(ai),loop:CY(),_cLoop:gY(),scrollDirection:Qe(cy(),ai),loopDuration:Qe(lu({readsSpeed:!1}),ai),loopDelay:Qe(iu(),ai)}}var kN={field:Zr,set:!0};function vY(){let e=gN(),o=[gt,Xo],t=Do(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Zr),fd),r=Do(t,[Zr],kN),a=Do(r,[Xo],iy);return Do(a,[gt],{any:[iy,kN]})}function xu(e,o=""){switch(e){case"section":case"block":return{...Tt(),...Na()};case"box":return{...Tt(),...Na(),...CN(),...vY()};case"picture":return{...Tt(),...Na(),...ny(Lb(o),o)};case"textPart":return{...Tt(),...Na(),...mN()};case"cards":return{...Tt(),...Na(),...xN(bb(o))};case"marquee":return{...Tt(),...Na(),[ns]:py(),_cLoop:kY(),scrollDirection:cy(),loopDuration:lu({readsSpeed:!0}),loopDelay:iu()}}}import{blockSizeFieldSet as hX}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as IX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as vN,Fragment as PY,jsxs as TY}from"react/jsx-runtime";import{useSelectedHost as PN}from"efficient-easel/easel";import{VIEW_TIERS as OY,viewKeyAt as EY}from"efficient-easel/draw";var TN=e=>OY.find(o=>Object.values(ko).some(t=>EY(t,o)===e))??"desktop";function _Y(e,o,t){let r=e(o),a=TN(t);return{top:$d(r,"top",a),bottom:$d(r,"bottom",a)}}var AY=e=>e.startsWith(ko.bottom)?"bottom":"top";function FY(e,o,t,r){let a=AY(r);return o(t,$d(e(t),a,TN(r)),a)}function BY({frameOf:e,note:o,rowKey:t}){let r=PN()?.values,a=r?FY(e,o,r,t):null;return a?vN("p",{className:"es-field-hint",children:a}):null}var LY=new Set(Sn());function ON(e,o,t){let r=Er({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=PN()?.values;return n?_Y(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!LY.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>TY(PY,{children:[s(l),vN(BY,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as RY}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as DY,deviceMetaOf as AN}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as my,SETTINGS_BUCKETS as NY}from"efficient-easel/panel";import{BUCKET_KEY as So,DESIGN_GROUP_KEY as Is}from"efficient-easel/screen/lib/document/field-buckets";var wi=NY;var MY="Editor only \u2014 not shown live",xy={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content","Card list":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content",Display:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content",Source:"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Map:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Shadow:"Design",Texture:"Design",Overlay:"Design","Text style":"Design",Entrance:"Animation",Hover:"Animation",Loop:"Animation",Scroll:"Animation",Advanced:"Advanced",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell size":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[MY]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Placement:"Position",Nudge:"Position","Stick to top":"Position","Image gallery":"Layout",Grid:"Layout",Layout:"Layout",Padding:"Layout",Price:"Layout",Preview:"Layout",Setup:"Layout","Show / hide elements":"Layout","Show in the buy box":"Layout",Visibility:"Layout",Width:"Size",Size:"Size",Height:"Size"},FN={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},BN={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function EN(e,o,t){let r=`${e}.${o}`;return $(BN,r)??$(FN,r)??$(xy,t)}function HY(e){return e==="Animation"?[So.Animation]:[So.Design,Is[e]]}function hu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=AN(r),n=tr(a?a.inner:r),s=n?$(xy,n.label):void 0;if(s)for(let l of HY(s))o.includes(l)||o.push(l)}return o}var aAe=[...hu(Er({tablet:!0,siteSide:!0}),En("full"),_n(),An(),ll()),...Object.keys(Er({tablet:!0,siteSide:!0})),...Object.keys(En("full")),...Object.keys(_n()),...Object.keys(An()),...Object.keys(ll())],nAe=[...hu(Tn()),...Object.keys(Tn())],sAe=[...hu(On()),...Object.keys(On())],lAe=[...hu(Tt()),...Object.keys(Tt())],iAe=Object.keys(gT()),dAe=Object.keys(yT()),WY={"ImageBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","ButtonBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","HeroGroup._gContent":"duplicated the Content bucket header above it (2026-09-04)","HeroGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","Footer._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterLogo._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterLogo._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterMenu._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterMenu._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterText._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterText._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterSocial._gStyle":"duplicated the Style bucket header above it (born tabbed, 2026-09-17)","FooterSocial._gLayout":"duplicated the Layout bucket header above it (born tabbed, 2026-09-17)","MenuBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","MenuBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gLayout":"duplicated the Layout bucket header above it (born tabbed, H.1)","SearchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CartBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CountrySwitchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed with its Show as, 2026-10-17)","Split._gContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gVehicleContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gWheelContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gOthersContent":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gHeadCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gLeftCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gRightCopy":"duplicated the Content bucket header above it (2026-09-04)","CollectionCard._gContent":"duplicated the Content bucket header above it (A Card Sets Its Own Corners)","HeroSlide._gContent":"duplicated the Content bucket header above it (Hero Slide Tabs And Theme)","KeyFeatures._gContent":"duplicated the Content bucket header above it (66049)","KeyFeatures._gStyle":"duplicated the Style bucket header above it (66049)","ParagraphsA._gContent":"duplicated the Content bucket header above it (66049)","Chart._gContent":"duplicated the Content bucket header above it (66049)","Chart._gStyle":"duplicated the Style bucket header above it (66049)","Logos._gContent":"duplicated the Content bucket header above it (66049)","Logos._gStyle":"duplicated the Style bucket header above it (66049)","Mockup._gContent":"duplicated the Content bucket header above it (66049)","Mockup._gStyle":"duplicated the Style bucket header above it (66049)","Stats._gContent":"duplicated the Content bucket header above it (66049)","Stats._gStyle":"duplicated the Style bucket header above it (66049)","StatsParagraph._gContent":"duplicated the Content bucket header above it (66049)","StatsParagraph._gStyle":"duplicated the Style bucket header above it (66049)","Testimonials._gContent":"duplicated the Content bucket header above it (66049)","Testimonials._gStyle":"duplicated the Style bucket header above it (66049)","AppointmentBooking._gContent":"duplicated the Content bucket header above it (66050)","BookingBox._gContent":"duplicated the Content bucket header above it ([SPLIT] Booking Form Into Three Boxes) \u2014 the same fault its own section retired in 66050, one level down","FAQ._gContent":"duplicated the Content bucket header above it (66050, family sweep)","FAQ._gLayout":"duplicated the Layout bucket header above it (66050, family sweep)","Form._gContent":"duplicated the Content bucket header above it (66050)","ReviewForm._gContent":"duplicated the Content bucket header above it (66050)","SubmitBuild._gContent":"duplicated the Content bucket header above it (66050)","SubmitBox._gContent":"duplicated the Content bucket header above it ([SPLIT] SubmitBuild Keeps Its Two Columns) \u2014 the same fault its own section retired in 66050, one level down","CheckoutCTA._gContent":"duplicated the Content bucket header above it (66051)","CheckoutCTA._gLayout":"duplicated the Layout bucket header above it (66051)","DeliveryOptions._gContent":"duplicated the Content bucket header above it (66051)","DeliveryOptions._gLayout":"duplicated the Layout bucket header above it (66051)","OrderSummary._gContent":"duplicated the Content bucket header above it (66051)","OrderSummary._gLayout":"duplicated the Layout bucket header above it (66051)","PaymentBadges._gContent":"duplicated the Content bucket header above it (66051)","PaymentBadges._gLayout":"duplicated the Layout bucket header above it (66051)","Collections._gContent":"duplicated the Content bucket header above it (66052)","Collections._gLayout":"duplicated the Layout bucket header above it (66052)","DocMasthead._gContent":"duplicated the Content bucket header above it (66053)","Events._gContent":"duplicated the Content bucket header above it (66054)","Events._gLayout":"duplicated the Layout bucket header above it (66054)","FeaturedCover._gContent":"duplicated the Content bucket header above it (66054)","Series._gStyle":"duplicated the Style bucket header above it (66054)","Flex._gContent":"duplicated the Content bucket header above it (66055)","Flex._gLayout":"duplicated the Layout bucket header above it (66055)","Flex._gLink":"repeated the Link group heading above it (owner 2026-11-17)","LongRead._gLink":"repeated the Link group heading above it (decided 2026-11-17)","Flex._gJump":"repeated the Anchor group heading above it (owner 2026-11-17)","SectionHeader._gContent":"duplicated the Content bucket header above it (66055)","Breadcrumb._gContent":"duplicated the Content bucket header above it (66056)","CategoryBar._gStyle":"duplicated the Style bucket header above it (66056)","Hero._gContent":"duplicated the Content bucket header above it (66056)","Hero._gStyle":"duplicated the Style bucket header above it (66056)","HeroSingle._gStyle":"duplicated the Style bucket header above it (66056)","IntroBleed._gContent":"duplicated the Content bucket header above it (66056)","IntroBleed._gLayout":"duplicated the Layout bucket header above it (66056)","BundleOffer._gLayout":"duplicated the Layout bucket header above it (66059)","ProcessSteps._gContent":"duplicated the Content bucket header above it (66059)","Banner._gContent":"duplicated the Content bucket header above it (66060.1)","Banner._gLayout":"duplicated the Layout bucket header above it, and governed no controls (66060.1)","Manifesto._gContent":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gHeadCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gLeftCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gRightCopy":"duplicated the Content bucket header above it (66060.1)","Ticker._gContent":"duplicated the Content bucket header above it (66060.1)","Ticker._gStyle":"duplicated the Style bucket header above it (66060.1)","Timeline._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gStyle":"duplicated the Style bucket header above it (66060.1)","Cards._gContent":"duplicated the Content bucket header above it (66218)","Cards._gStyle":"duplicated the Style bucket header above it (66218)","Prose._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gStyle":"duplicated the Style bucket header above it (66218)"},LN={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},uy={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Er({tablet:!0,siteSide:!0}),...En("full"),..._n(),...An(),...Tn(),...On(),...Tt()};for(let o of Object.keys(uy)){let t=tr(e[o]),r=t?$(xy,t.label):void 0;if(!t||t.level!==2||!r||!LN[r].includes(t.label))throw new Error(`INJECTED_RETIRED (lib/document/field-groups.ts) lists "${o}", but no uniform builder makes a level-2 heading by that key whose label repeats its place's word. The heading was renamed, moved or removed and the row is stale \u2014 a list that quietly matches nothing is worse than no list.`)}}var $Y=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),zY=new Map([[So.Design,"Content"],[So.Animation,"Animation"],...my.map(e=>[Is[e],e])]);function UY(e){let o=`${e}.`;return Object.keys(WY).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function jY(e,o){let t=AN(e),r=RY(o);return t?DY(t.tier,r):r}function GY(e,o){let t=tr(o);return t?e==="Content"||e==="Animation"?sT(o,t.label):lT(o):o}function _N(e){return e==="Design"?my:["Animation"]}function Iu(e,o){let t=[],r=new Set(UY(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=tr(h);if($Y.has(u))throw new Error(`${o}.${u}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design \xB7 Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g\u2026\`), or open a Design group with its own key from efficient-easel's DESIGN_GROUP_KEY (\`[DESIGN_GROUP_KEY.Design]: section("Design")\`).`);let w=zY.get(u);if(w!==void 0){if(I?.level!==1)throw new Error(`${o}.${u}: that key is reserved for the ${w} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(u===So.Design||u===So.Animation)&&(n=!0),t.push(s={place:w,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([u,h]);continue}if(r.has(u)||xo(uy,u)){let O=EN(o,u,I.label);if(I.level!==2||!O||!LN[O].includes(I.label))throw new Error(`${o}.${u}: ${r.has(u)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${I.level} "${I.label}" header in the ${O??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(u)&&a.add(u),t.push(s={place:O,entries:[],uniform:xo(uy,u)});continue}let T=EN(o,u,I.label);if(!T)throw new Error(`${o}.${u}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...my,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:T,entries:[[u,I.level===2?h:jY(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>tr(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",BN],["KEY_GROUP",FN]]){let I=Object.keys(h).filter(w=>w.startsWith(`${o}.`)).filter(w=>!l.has(w.slice(o.length+1))&&!r.has(w.slice(o.length+1)));if(I.length)throw new Error(`${o}: ${u} (lib/document/field-groups.ts) lists ${JSON.stringify(I)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let i=n?[]:[...r].filter(u=>!a.has(u));if(i.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(i)}, but this section has no such fold header${i.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let d=new Set(t.filter(u=>u.entries.length>0).map(u=>u.place)),f=wi.filter(u=>_N(u).some(h=>d.has(h))),x={};for(let u of f){x[So[u]]=kf(u,u===f[0]?f:null);for(let h of _N(u)){if(!d.has(h))continue;let I=t.filter(O=>O.place===h),w=I.findIndex(O=>O.adopted);w>0&&I.unshift(...I.splice(w,1));let T=I.filter(O=>O.uniform);if(T.length>0){let O=I.filter(k=>!k.uniform),F=I[0]?.adopted?1:0;I.splice(0,I.length,...O.slice(0,F),...T,...O.slice(F))}u==="Design"&&(x[Is[h]]=vx(h));for(let O of I)for(let[F,k]of O.entries)x[F]=GY(h,k)}}return x}function RN(e){return So.Design in e?e:{[So.Design]:kf("Design",null),[Is.Content]:vx("Content"),...e}}function DN(e){return wi.some(o=>So[o]in e)}function gu(e){let o=wi.filter(r=>So[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[So[r]]=kf(r,r===o[0]?o:null);return t}import{jsx as yu}from"react/jsx-runtime";import{WidthIcon as KY}from"efficient-easel/icons";import{SettingsField as qY,SettingsSwitch as VY}from"efficient-easel/panel";import{group as YY,iconOf as XY,sharedStyleKinds as JY}from"efficient-easel/screen/lib/document/box-fields";var ZY="Gutter";function QY({value:e,onChange:o,labelId:t}){let r=tu(nl()),a=pi({[Ra]:e})??r,n=s=>o(s?r?void 0:Bg:Fg);return yu(qY,{label:c(ZY),labelId:t,icon:XY(yu(KY,{})),action:yu(VY,{checked:a,onChange:n,ariaLabelledBy:t})})}function NN(){return JY({_gWidth:YY(vf),[Ra]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>yu(QY,{value:e,onChange:o,labelId:`${t??r??Ra}-label`})}})}import{jsx as Iy}from"react/jsx-runtime";import{group as eX,sharedStyleKinds as HN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as oX}from"efficient-easel/screen/lib/document/device-fields";var tX="Content cannot be wider than the background.",hy=e=>c(e==="content"?"Content width":"Full width");function WN(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=Po(),n=ye(o)??mn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var rX={read:xn},aX={read:xn,drawsFullOnItsOwn:!0},nX={read:PC,clearOnContent:{fullWidth:void 0}};function sX({source:e}){let o=e.read(Ox()),t=sl(),r=WN(e);return Iy(wT,{value:o.background??r.background,changed:o.background!==null,detail:hy(r.background),onChange:a=>t(OC(a)),onReset:()=>t(Xm("background"))})}function lX({source:e}){let o=e.read(Ox()),t=sl(),r=i=>t({...i,...e.clearOnContent}),a=WN(e),n=(o.background??a.background)==="content",s=iT({row:Ym,label:bT,grid:{min:mn.min,max:n?a.px:mn.max,step:mn.step},valueKey:Bo.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return Iy(CT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:mn.max,changed:o.content!==null,detail:a.content==="full"?hy("full"):`${hy("content")} ${a.px}px`,fullClosed:n,hint:n?tX:void 0,onMode:i=>r(EC(i)),onPx:i=>r({..._C(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(Xm("content"))})}var MN=(e,o)=>oX("desktop",{type:"custom",render:()=>Iy(e,{source:o})}),$N=e=>({[Bo.background]:MN(sX,e),[Bo.content]:MN(lX,e),[Bo.contentMax]:Tx(),..._P(Ym,Bo.content)});function zN(e){let o=e?.drawsFullOnItsOwn?aX:rX;return HN({_gWidth:eX(vf),...$N(o)})}function AAe(){return HN({...$N(nX),fullWidth:Tx()})}import{deviceMetaOf as jN}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as iX}from"efficient-easel/screen/lib/document/panel-no-control-mark";function dX(e,o){let t=jN(o),r=t?t.inner:o;if(tr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=iX(r);return a==="always"?!1:a==="authored-copy"?Nk(e):!0}function UN(e){let o=jN(e),t=o?o.inner:e,r=tr(t);return r?nT(t)?0:r.level:null}function fX(e,o,t){return t?o===0&&e===So.Design||o===1&&e===Is.Content:!1}var cX=new WeakMap,pX=new WeakMap;function GN(e,o="section"){let t=o==="page"?pX:cX,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([x,u])=>({key:x,field:u,level:UN(u),draws:dX(x,u)||o==="page"&&UN(u)===null&&ix(x,u)})),n=o==="section"&&a.some(x=>ix(x.key,x.field)),s=new Set;for(let x=0;x<a.length;x++){let u=a[x].level;if(u===null)continue;let h=0;for(let I=x+1;I<a.length;I++){let w=a[I].level;if(w!==null&&w<=u)break;a[I].draws&&(h+=1)}h===0&&!fX(a[x].key,u,n)&&s.add(a[x].key)}let l=n&&DN(e),i=l&&!(So.Design in e);if(!s.size&&!i)return t.set(e,e),e;let d={};for(let x of a)s.has(x.key)||(d[x.key]=x.field);let f=gu(l?RN(d):d);return t.set(e,f),f}import{isShown as uX,showWhenFactReaders as mX}from"efficient-shell/format";var KN=new WeakMap,xX=new Set(Object.values(So));function qN(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=mX(r,o,t),l=yP(t,{...s,parentOffersPositions:()=>{let I=Ut(t.appState,n);return I===void 0?void 0:GC(I,n)},parentTileSlot:()=>{let I=Ut(t.appState,n);return I===void 0?void 0:KC(I,n)},heroGroupDepth:()=>Bd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,w]of Object.entries(e)){let T=ow(w);!T||gP(T,"device")||uX(T,a,l)||i.push(I)}if(i.length===0)return e;let d=KN.get(e);d||KN.set(e,d=new Map);let f=i.join("\0"),x=d.get(f);if(x)return x;let u=new Set(i),h={};for(let[I,w]of Object.entries(e))u.has(I)||(h[I]=w);return i.some(I=>xX.has(I))&&(h=gu(h)),d.set(f,h),h}var VN={spacingFields:pT,sidesPaddingFields:Er,ownPaddingFields:ON,sectionShapeFields:On,cardShapeFields:dT,cellWidthFields:fT,widthField:En,boxGutterFields:NN,sectionOwnWidthFields:zN,heightFields:_n,anchorFields:An,customCssFields:uT,stickFields:ll,sectionThemeFields:Tn,animationTabFields:xu,blockSizeFields:({tablet:e,...o}={})=>hX({...o,shorten:!0,say:OP,lengthUnits:gf,...e?{phone:IX}:{}}),assignSectionGroups:Iu,dropEmptyHeadings:GN,rowsShownForNode:qN,SECTION_THEME_FOLLOW_LABEL:JP,BLOCK_THEME_FOLLOW_LABEL:ZP,PartAnchors:OL};function Su(e,o,t){if(!e)return e;let r=!1,a={};for(let[n,s]of Object.entries(e)){let l=s;if(s&&typeof s=="object")if(s.type==="slot")if(s.allow){let i=s.allow.filter(o);i.length!==s.allow.length&&(l={...s,allow:i})}else{let i=new Set(s.disallow??[]),d=t.filter(f=>!i.has(f));d.length>0&&(l={...s,disallow:[...s.disallow??[],...d]})}else{let i=Su(s.arrayFields,o,t),d=Su(s.objectFields,o,t);(i!==s.arrayFields||d!==s.objectFields)&&(l={...s,...i?{arrayFields:i}:null,...d?{objectFields:d}:null})}l!==s&&(r=!0),a[n]=l}return r?a:e}function gX(e,o,t){let r={};for(let[l,i]of Object.entries(o.fields??{}))r[l]=i&&typeof i=="object"&&i.type==="slot"?{...i}:i;let a={...o,...o.fields?{fields:r}:null},n=YD(e,a,t),s=Object.keys(r).filter(l=>n.fields?.[l]!==r[l]);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host["${e}"] declares ${s.map(l=>`"${l}"`).join(", ")}, ${s.length===1?"a name":"names"} the editor gives every section a setting under. Give the block's own field another name.`);return n}function yX(e,o,t){let r=new Set([...Object.keys(e.components??{}),...o.map(([n])=>n)]),a=[...Object.entries(e.categories??{}).map(([n,s])=>({key:n,components:s?.components??[]})),...t];SX(e,o,a);for(let n of a){let s=n.components.filter(gd);if(s.length>0)throw new Error(`efficient-web-builder: the category "${n.key}" lists ${s.map(l=>`"${l}"`).join(", ")}, a block a card template declares. A card's block is added in its card only; take it out of the category.`)}for(let n of r){if(!yd(n))continue;let s=Id(n).filter(l=>!r.has(l.type)).map(l=>`"${l.type}"`);if(s.length>0)throw new Error(`efficient-web-builder: the card template of "${n}" declares ${s.join(", ")}, which the editor does not register. Register it in the registry or in blocks.host.`)}}function gy(e,o,t,r=""){let a=[];for(let[n,s]of Object.entries(t??{})){if(!s||typeof s!="object")continue;let l=`${r}${n}`;s.type==="slot"&&s.allow?.includes(e)&&a.push(`${o}.${l}`),a.push(...gy(e,o,s.arrayFields,`${l}.`),...gy(e,o,s.objectFields,`${l}.`))}return a}function SX(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${cn}". Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`)};for(let n of t)n.components.includes(cn)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let l=gy(cn,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function YN(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=vg(o);if(yX(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([x])=>x).filter(x=>x in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(x=>`"${x}"`).join(", ")}, which ${s.length===1?"is already a block":"are already blocks"} of the editor. Give a host's block a type of its own.`);let l=x=>a?a.offers(x):!0,i=Object.keys(n).filter(x=>!l(x)),d={};for(let[x,u]of Object.entries(n)){let h=a?Su(u?.fields,l,i):u?.fields;d[x]=h===u?.fields?u:{...u,fields:h}}if(t.length>0){let x=new Set(t.map(([I])=>I)),u=e.categories?.structure?.components??[],h={...Zg(Object.keys(n),u,x),isHostBlock:I=>x.has(I),inspector:VN};for(let[I,w]of t){let T=gX(I,w,h),O=Su(T.fields,l,i);d[I]=O===T.fields?T:{...T,fields:O}}}let f=[];for(let[x,u]of Object.entries(e.categories??{})){let h=u?.components??[],I=h.filter(l);I.length===h.length?f.push([x,u]):I.length>0&&f.push([x,{...u,components:I}])}for(let x of r){let u=x.components.filter(T=>T in d&&l(T));if(u.length===0)continue;let h=f.find(([T])=>T===x.key);if(h){let[,T]=h,O=new Set(T.components??[]);h[1]={...T,components:[...T.components??[],...u.filter(F=>!O.has(F))]};continue}let I=[x.key,{title:x.title,components:u}],w=x.before?f.findIndex(([T])=>T===x.before):-1;w===-1?f.push(I):f.splice(w,0,I)}return{...e,components:d,categories:Object.fromEntries(f)}}function XN(){let e=CX();return bX(()=>YN(wX(e),pn(e)),[e])}import{jsx as by,Fragment as UX,jsxs as jX}from"react/jsx-runtime";import{useContext as GX,useEffect as KX,useMemo as Pu,useRef as hM}from"react";import{EaselCanvas as qX,repeatCopyAt as VX,useEasel as YX}from"efficient-easel/easel";import{jsx as yy}from"react/jsx-runtime";import{useEffect as TX,useState as OX}from"react";import{Banner as EX}from"efficient-shell/ui";import{useSyncExternalStore as kX}from"react";import{useScreenDocument as vX}from"efficient-easel/screen/components/ScreenDocumentContext";var PX=()=>()=>{},JN=()=>null;function bu(e){return kX(e?e.subscribe:PX,e?e.state:JN,e?e.state:JN)}function wu(){let{adapter:e}=vX();return e?.pinnedChrome}var Cu={load:"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.",lock:"{name} is editing the header and footer. Nothing you change in them here is saved.",conflict:"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.",save:"The header and footer did not save. They are sent again with your next change."},_X={load:"{section} could not load. It stays on the page as it was. Reload to try again.",lock:"{name} is editing {section}. Nothing you change in it here is saved.",conflict:"{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest.",save:"{section} did not save. It is sent again with your next change."},AX=Cu.load,FX=Cu.lock,BX=Cu.conflict,LX=Cu.save;function RX(e){if(!e)return null;if(e.loadFailed)return c(AX);if(e.lockHolder)return c(FX,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(BX);if(e.saveFailed)return c(LX);let o=e.sections?.[0];if(!o)return null;let t=o.title||c("A shared section"),r=o.holder?.name||c("Somebody else");return c(_X[o.problem],{section:t,name:r})}function DX({report:e}){let o=RX(bu(e)),[t,r]=OX(null);return TX(()=>{o||r(null)},[o]),!o||t===o?null:yy("aside",{className:"sf-canvas-notice",children:yy(EX,{tone:"warning",onDismiss:()=>r(o),children:o})})}function ZN(){return yy(DX,{report:wu()})}import{jsx as vu}from"react/jsx-runtime";import{useState as mM}from"react";import{Banner as MX,Button as HX}from"efficient-shell/ui";import{UndoIcon as WX}from"efficient-shell/icons/efficient";import{useScreenDocument as $X}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as oM}from"react";var Ci=!1,gs=null,Sy=new Set;function vi(){for(let e of Sy)e()}function tM(e){return Sy.add(e),()=>{Sy.delete(e)}}function rM(){Ci||(Ci=!0,vi())}function aM(){Ci&&(Ci=!1,vi())}function QN(){return Ci}function nM(){return oM(tM,QN,QN)}function eM(){return gs}function ku(){gs&&(gs=null,vi())}function sM(){return oM(tM,eM,eM)}var ki=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function lM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new ki;let n=await e.restore(o,t);return bf(n.liveState),a(),n}async function iM({access:e,version:o,page:t,...r}){let a=await lM(e,o.id,t?{page:t.id}:{},r);gs={title:NX(o,t??null),undo:a.undo},vi()}async function dM({access:e,...o}){let t=gs?.undo;t&&(await lM(e,t,{},o),gs=null,vi())}function fM(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function NX(e,o){return e.kind==="draft_before_restore"?c("Your drafts from before the restore are back"):o?c("{page} from version {n} is now your draft",{page:o.name,n:e.number}):c("Version {n} is now your draft",{n:e.number})}function cM(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Rt("{n} page","{n} pages",o)]:[],...e.changes.filter(r=>r.kind!=="page").map(r=>r.name)];if(!t.length)return"";try{return new Intl.ListFormat(jm(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function pM(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function uM(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=jm(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return c("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return c("{day}, {time}",{day:n,time:a})}import{useSettledAction as zX}from"efficient-easel/easel";function xM(){let e=sM(),{adapter:o,flushSave:t,reloadFromServer:r}=$X(),a=o.siteVersions,[n,s]=mM(!1),[l,i]=mM(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await dM({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=zX({onPress:()=>{d()},busy:n});return e?vu("aside",{className:"sf-canvas-notice",children:vu(MX,{tone:l?"danger":"info",title:e.title,onDismiss:ku,action:a&&e.undo?vu(HX,{variant:"secondary",size:"sm",leftIcon:vu(WX,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:c("Undo")}):void 0,children:l?c("Undo did not work. Nothing changed. Try again."):c("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as XX,REPEAT_ATTRIBUTE as wy,REPEAT_INDEX_ATTRIBUTE as Cy}from"efficient-easel/draw";import{usePreviewParts as JX}from"efficient-easel/draw/client";import{ScreenDocumentContext as ZX}from"efficient-easel/screen/components/ScreenDocumentContext";function IM(e){let{mirrorHostStyles:o}=il(),t=HT(),r=ky(),a=nl(),n=GX(ZX),s=zP(n?.docId??null),l=YX(T=>T.appState.data),i=UP(s,l),d=JSON.stringify(i),f=Pu(()=>i,[d]),x=Pu(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);KX(()=>(qg(a),()=>qg(null)),[a]);let u=hM(null),h=QX(u),{onDocument:I}=e,w=T=>{u.current=T,I?.(T)};return jX(UX,{children:[by(xM,{}),by(ZN,{}),by(qX,{...e,onDocument:w,typing:h,metadata:x,height:"fill",mirrorStyles:o,frameWrapper:$f})]})}function ky(){let{sectionBackgroundWidth:e,themeFromDocument:o}=Po(),t=nl();return Pu(()=>AC(o?null:e,t),[e,t,o])}function QX(e){let o=Af(),t=JX(),r=hM({parts:t});return r.current={parts:t},Pu(()=>{let a=(n,s)=>{let l=Lf(n,o),i,d=null,f=s??(l?null:Vx(null,e.current,n)),x=!l&&f?VX(f):null,u=x?XX(n):null;if(x&&f&&u?.propKey){l=Df({...x,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let T=f.closest(`[${wy}][${Cy}]`),O=`[${wy}="${Rf(T?.getAttribute(wy)??"")}"][${Cy}="${Rf(T?.getAttribute(Cy)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(O)??null}if(!l)return null;let h=f,I=()=>(h=Vx(h,d?d():h?.ownerDocument??e.current,n),h),w=I();return w?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:i,toolbar:{offered:l.offered,colors:l.offered.length>0?Qd(ef(w)):void 0,colorNameOf:Zd}}:null};return{at:n=>{let s=n.closest(`[${$e}]`),l=s?.getAttribute($e);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>s0(n,o),copyValue:n=>n0(n,o),onChange:n=>{if(!n.typing){Yx(null);return}let s=n.element.closest(`[${$e}]`)?.getAttribute($e)??null;Yx(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Tu=[{key:"about",label:"About",slugs:["about"]},{key:"contact",label:"Contact",slugs:["contact"]},{key:"faq",label:"FAQ",slugs:["faq"]},{key:"gallery",label:"Gallery",slugs:["gallery"]},{key:"store-locator",label:"Store locator",slugs:["store-locator"]},{key:"policies",label:"Policies",slugs:["warranty","shipping-returns","privacy-policy","terms-and-conditions"]}],ys="all",Ou="template";function gM(e){for(let o=0;o<Tu.length;o++){let t=Tu[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function yM(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>gM(o.s.slug)-gM(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function vy(e){return e.filter(o=>o.source==="template")}function SM(e){let o=new Set(yM(e).map(t=>t.slug));return Tu.filter(t=>t.slugs.some(r=>o.has(r)))}function bM(e,o){if(e===Ou)return vy(o);let t=yM(o);if(e===ys)return t;let r=Tu.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var wM=3;function CM(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function TM({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=nJ(),{adapter:n,siteId:s,templateId:l}=aJ(),i=Fo(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=tJ(()=>s?{siteId:s}:{},[s]),x=XN(),u=ky(),[h,I]=Py(null),[w,T]=Py(ys),[O,F]=Py(null),k=rJ(null),y=oJ();eJ(()=>{if(!e)return;if(T(ys),!d){I([]);return}let v=!0;return I(null),i.starters(f).then(S=>v&&I(S),()=>{v&&(I([]),PM.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{v=!1}},[e,d,i,f]);let b=async(v,S)=>{if(!O){F(v);try{r(await S())}catch{PM.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{F(null)}}},E=()=>{if(!n.createPage)return;let v=c("New page");b("blank",()=>n.createPage({slug:vM(v,t),title:v,layout:{}}))},B=v=>{b(v.id,()=>i.createFromStarter(v.id,{title:v.title,slug:vM(v.slug,t),...f}))},R=h??[],C=SM(R),L=bM(w,R),g=CM(wM,L),P=kM("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Eo(Ty,{label:c("All pages"),active:w===ys,onClick:()=>T(ys)}),C.map(v=>Eo(Ty,{label:c(v.label),active:w===v.key,onClick:()=>T(v.key)},v.key)),vy(R).length>0?Eo("div",{className:"sf-add-page-group",children:Eo(Ty,{label:c("From your template"),active:w===Ou,onClick:()=>T(Ou)})}):null]});return Eo(iJ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:k,children:Eo(pJ,{sidebarTop:Eo("div",{className:"sf-add-page-blank",children:Eo(lJ,{variant:"secondary",size:"md",leftIcon:Eo(sJ,{"aria-hidden":!0}),onClick:E,disabled:!n.createPage||O!==null,children:c("Blank page")})}),sidebar:P,children:kM("div",{ref:k,tabIndex:-1,role:"region","aria-labelledby":y,className:"sf-add-page",children:[Eo(uJ,{id:y,level:2,as:"h3",children:c("Pages for your site")}),Eo(cJ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?Eo(fJ,{label:c("Loading\u2026")}):L.length===0?Eo(dJ,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Eo("div",{className:"sf-add-page-cards",children:g.map((v,S)=>Eo("div",{className:"sf-add-page-column",children:v.map(N=>Eo(jL,{starter:N,config:x,metadata:u,busy:O===N.id,onAdd:B},N.id))},S))})]})})})}import{jsx as mJ}from"react/jsx-runtime";import{createContext as xJ,useContext as OM,useEffect as hJ,useRef as EM}from"react";var Oy=xJ(null);function kBe({open:e,children:o}){let t=EM(!!e);return mJ(Oy.Provider,{value:t,children:o})}function _M(){let e=OM(Oy);return()=>e?.current?(e.current=!1,!0):!1}function AM(e){let o=OM(Oy),t=EM(e);t.current=e,hJ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var NM="sf-editor-pages-collapsed-groups";function LJ(){let e=_y(),{siteId:o,templateId:t}=MM(),r=Fo(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function HM({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=_y().chrome?.pageRows,n=AJ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=MM(),f=Fn(),{rows:x,reload:u,setRows:h,getRows:I}=cl(),[w,T]=Ma(""),[O,F]=Ma(!1),[k,y]=Ma(null),[b,E]=Ma(!1),B=!!Fo(_y()).pages.createFromStarter,R=LJ(),[C,L]=Ma(null),[g,P]=Ma(()=>{if(typeof window>"u")return new Set;try{let W=window.localStorage.getItem(NM);return new Set(W?JSON.parse(W):[])}catch{return new Set}});FM(()=>{try{window.localStorage.setItem(NM,JSON.stringify([...g]))}catch{}},[g]);let v=W=>P(he=>{let Ie=new Set(he);return Ie.has(W)?Ie.delete(W):Ie.add(W),Ie}),S=BM(()=>xP(x??[]),[x]),N=w.trim().toLowerCase(),H=W=>!N||W.toLowerCase().includes(N),q=W=>N?!0:!g.has(W),z=BM(()=>new Set((x??[]).map(W=>W.slug)),[x]),ne=()=>{if(l.pageCreationInAdminForm&&!B){n.send("storefront-editor:new-page");return}y(null),E(!0)},ge=_M();FM(()=>{ge()&&ne()},[]);let J=l.hasSiteSettings&&!!s.createPage,me=async()=>{if(!(!i||O||!s.createPage)){F(!0),y(null);try{let W=await s.createPage(oT(c("New popup"),z));await u(),e(W.slug)}catch{y(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{F(!1)}}},oe=yJ(null),[xe,ce]=Ma(null),qe=()=>{if(!J)return ne();if(xe)return ce(null);let W=oe.current?.getBoundingClientRect();W&&ce({top:W.bottom+6,right:Math.max(8,window.innerWidth-W.right)})},ro=W=>{let he=x??[],Ie=s.deletePage;if(!i||O||!Ie||he.length<=1)return;let Ze=he.findIndex(uo=>uo.id===W.id),_o=he.filter(uo=>uo.id!==W.id),Re=W.slug===d;Hf(W.id,!0),h(_o),y(null),Re&&_o[0]&&e(_o[0].slug);let Ue=()=>{Hf(W.id,!1);let uo=I()??[];if(uo.some(Gt=>Gt.id===W.id))return;let Ao=[...uo];Ao.splice(Math.max(0,Math.min(Ze,Ao.length)),0,W),h(Ao)};RM.undoable(c("Deleted \u201C{name}\u201D",{name:W.label}),{actionLabel:c("Undo"),commit:async uo=>{await Ie(W.id,uo),Hf(W.id,!1)},undo:()=>{Ue(),Re&&e(W.slug)},onFail:()=>{Ue(),RM.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},wo=W=>n.send("storefront-editor:open-page",{slug:W}),Je=W=>{if(!H(W.label))return null;let he=!t&&W.slug===d,Ie=l.canDeletePagesInline&&(x??[]).length>1,Ze=hf(W),_o=mP(W),Re=[...Ze?[{label:c("Dynamic"),tone:"info"}]:[],..._o?[{label:c("Lightbox"),tone:"success"}]:[],...W.draft?[{label:c("draft"),tone:"draft"}]:[]],Ue=Re.length>0?Re:void 0,uo=!!R&&FJ(W),Ao=uo||l.pageCreationInAdminForm||Ie?Eu(IJ,{children:[uo&&ve(_u,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:W.label}),disabled:O,onClick:()=>L(W),children:ve(TJ,{size:13})}),l.pageCreationInAdminForm&&ve(_u,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:W.label}),onClick:()=>wo(W.slug),children:ve(EJ,{size:13})}),Ie&&ve(_u,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:W.label}),disabled:O,onClick:()=>ro(W),children:ve(Ey,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ve(DM,{icon:ve(OJ,{size:14}),name:W.label,selected:he,onSelect:()=>e(W.slug),badge:Ue,actions:Ao,rowProps:{"data-page-slug":W.slug}},W.id)},co=(W,he,Ie)=>{let Ze=Ie.filter(Boolean);if(Ze.length===0)return null;let _o=q(W);return Eu(gJ,{children:[ve(vJ,{count:Ze.length,countLabel:Rt("{n} page","{n} pages",Ze.length),expanded:_o,onToggle:()=>v(W),children:he}),_o&&Ze]},W)},po=(a?.rows??[]).filter(W=>H(W.label)).map(W=>{let he=t===W.key;return ve(DM,{icon:W.icon,name:W.label,selected:he,onSelect:()=>r(W.key),badge:{label:c("Preview"),tone:"warning"},actions:ve(_u,{kind:"plain",label:c("Open the {name} in a new tab",{name:W.label}),onClick:()=>window.open(W.href,"_blank","noopener,noreferrer"),children:ve(Ey,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":W.key}},W.key)}),le=l.hasSiteSettings&&!!a,Le=(()=>{if(x===null)return null;let W=[],he=!1;for(let Ie of S){le&&!he&&Ie.key.startsWith("system:")&&(W.push(co("shop",a.title,po)),he=!0);let Ze=Ie.key===uP||Ie.label===pP?c(Ie.label):Ie.label;W.push(co(Ie.key,Ze,Ie.rows.map(Je)))}return le&&!he&&W.push(co("shop",a.title,po)),W})();return Eu("div",{className:"sf-pages",children:[ve(SJ,{icon:ve(_J,{}),title:c("Pages"),context:f,actions:ve(bJ,{buttonRef:oe,label:J?c("Add"):c("New page"),hasPopup:J?"menu":void 0,expanded:J?xe!==null:void 0,onClick:qe,children:ve(PJ,{size:15})})}),xe&&ve(CJ,{portal:!0,style:{top:xe.top,right:xe.right},onClose:()=>ce(null),children:Eu("div",{role:"menu","aria-label":c("Add"),children:[ve(LM,{role:"menuitem",onClick:()=>{ce(null),ne()},children:c("Page")}),ve(LM,{role:"menuitem",disabled:O,onClick:()=>{ce(null),me()},children:c("Popup")})]})}),ve("div",{className:"sf-pages-find",children:ve(wJ,{type:"search",leftIcon:ve(Ey,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:w,onChange:W=>T(W.target.value),"aria-label":c("Search all pages")})}),k&&!b&&ve("div",{className:"sf-note sf-note--error",role:"alert",children:k}),Le===null?ve("div",{className:"sf-note",children:c("Loading\u2026")}):Le.some(Boolean)?ve(kJ,{ariaLabel:c("Pages"),className:"sf-scroll",children:Le}):ve("div",{className:"sf-note",children:w.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),R&&C&&ve(BJ,{source:{title:C.label,slug:C.slug},taken:z,host:ff(),duplicate:W=>R(C,W),onClose:()=>L(null),onDuplicated:W=>{L(null),u(),e(W.slug)}},C.id),b?ve(TM,{open:!0,onClose:()=>E(!1),takenSlugs:z,onCreated:W=>{E(!1),u(),e(W.slug)}}):null]})}import{jsx as zM}from"react/jsx-runtime";import{createContext as MJ,useCallback as HJ,useContext as WJ,useMemo as $J,useState as zJ}from"react";import{CanvasChromeContext as UJ}from"efficient-easel/easel";import{useSelectHandler as jJ}from"efficient-easel/draw/client";import{parseHexColor as RJ,parseOption as DJ}from"efficient-shell/format";var Au=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],Ss=Au[0],NJ=["right","left"],Ha="right";function Fu(e){return Au.includes(e??"")?e:Ss}function WM(e){return DJ(NJ,Ha,e)}function $M(e){return e&&RJ(e)===e.toLowerCase()?e.toLowerCase():""}var UM="chat",Bu={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Ha,launcherLabel:"",showOnPhones:!0};function tLe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:$M(e.launcherColor),launcherIcon:e.launcherIcon?Fu(e.launcherIcon):"",launcherPosition:WM(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var jM=MJ({chat:Bu,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function rLe({children:e,chat:o=Bu,onChatChange:t}){let[r,a]=zJ(!1),n=HJ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=jJ(),i=$J(()=>({selected:()=>r?UM:null,select:d=>d===UM&&s()}),[r,s]);return zM(jM.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:zM(UJ.Provider,{value:i,children:e})})}var Lu=()=>WJ(jM);import{jsx as Ay}from"react/jsx-runtime";import{DesktopIcon as GJ,PhoneIcon as KJ,TabletIcon as qJ}from"efficient-easel/icons";import{VIEW_TIERS as VJ,VIEW_TIER_LABEL as YJ}from"efficient-easel/draw";var XJ={desktop:Ay(GJ,{}),tablet:Ay(qJ,{}),mobile:Ay(KJ,{})},GM=VJ.map(e=>({id:e,get label(){return c(YJ[e])},icon:XJ[e]}));import{PreviewDeviceContext as iae}from"efficient-easel/draw/client";import{jsx as JJ}from"react/jsx-runtime";import{createContext as ZJ,useCallback as KM,useContext as QJ,useMemo as eZ,useRef as oZ}from"react";var tZ=Object.fromEntries(Of.map(e=>[e,{value:"",error:null}])),qM=ZJ({links:vT,rows:tZ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function uLe({children:e,value:o}){let t=oZ(()=>{}),r=KM(()=>t.current(),[]),a=KM(s=>{t.current=s},[]),n=eZ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return JJ(qM.Provider,{value:n,children:e})}var Pi=()=>QJ(qM);import{jsx as rZ}from"react/jsx-runtime";import{createContext as aZ,useContext as nZ,useMemo as sZ,useState as lZ}from"react";var VM=aZ(null);function ILe({children:e}){let[o,t]=lZ(null),r=sZ(()=>({surface:o,setSurface:t}),[o]);return rZ(VM.Provider,{value:r,children:e})}function YM(){return nZ(VM)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as iZ}from"efficient-easel/draw/client";var{Provider:SLe,useSelection:Ru}=iZ("selectedHeroPart");import{jsx as we,jsxs as Kr,Fragment as fH}from"react/jsx-runtime";import{useEasel as Roe,useRootFields as Doe}from"efficient-easel/easel";import{EmptyState as Noe}from"efficient-shell/ui";function XM({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:hf({kind:e})?c("Template"):c("Page")}}import{headWords as mH,InspectorHead as Moe,InspectorIconButton as cH}from"efficient-easel/chrome";import{DuplicateIcon as Hoe,TrashIcon as Woe}from"efficient-easel/icons";import{panelFieldsOf as $oe}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as D,Fragment as pe,jsxs as ue}from"react/jsx-runtime";import{BlockBannerIcon as cZ,BlockBoxIcon as pZ,BlockButtonIcon as uZ,BlockDividerIcon as ZM,BlockFooterIcon as QM,BlockHeadingIcon as mZ,BlockProductIcon as xZ,BlockSocialIcon as hZ,BlockTextIcon as IZ,CardPaymentIcon as gZ,ChatIcon as yZ,AccountIcon as SZ,GlobeIcon as bZ,GridIcon as wZ,ImageIcon as By,MapIcon as CZ,MediaIcon as kZ,PageIcon as vZ}from"efficient-easel/icons";import{jsx as Fy,Fragment as dZ,jsxs as fZ}from"react/jsx-runtime";var JM=fZ(dZ,{children:[Fy("circle",{cx:"9",cy:"20",r:"1.3"}),Fy("circle",{cx:"18",cy:"20",r:"1.3"}),Fy("path",{d:"M2.5 3.5h3l2.3 11.3a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2L21 7H6"})]});var PZ={header:ue(pe,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M3 9.5h18"})]}),social:ue(pe,{children:[D("circle",{cx:"6",cy:"12",r:"2.5"}),D("circle",{cx:"18",cy:"6",r:"2.5"}),D("circle",{cx:"18",cy:"18",r:"2.5"}),D("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:ue(pe,{children:[D("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),D("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:ue(pe,{children:[D("path",{d:"M4 15.5h6M4 18h4"}),D("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:D("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:ue(pe,{children:[D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),D("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:D("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:ue(pe,{children:[D("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),D("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:ue(pe,{children:[D("circle",{cx:"11",cy:"11",r:"6"}),D("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:JM,CountrySwitchBlock:ue(pe,{children:[D("circle",{cx:"12",cy:"12",r:"8.5"}),D("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:ue(pe,{children:[D("circle",{cx:"12",cy:"12",r:"8.5"}),D("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:ue(pe,{children:[D("path",{d:"M3 9h18"}),D("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:ue(pe,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:ue(pe,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:ue(pe,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),D("path",{d:"M7 17h7"})]}),Collections:ue(pe,{children:[D("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),D("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),D("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:ue(pe,{children:[D("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),D("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:ue(pe,{children:[D("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),D("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:ue(pe,{children:[D("path",{d:"M3 7h9M15.5 7H21"}),D("circle",{cx:"13.5",cy:"7",r:"1.7"}),D("path",{d:"M3 12h4M10.5 12H21"}),D("circle",{cx:"8.5",cy:"12",r:"1.7"}),D("path",{d:"M3 17h9M15.5 17H21"}),D("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:ue(pe,{children:[D("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:ue(pe,{children:[D("path",{d:"M3 5h10"}),D("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),D("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),D("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:ue(pe,{children:[D("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),D("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),D("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:ue(pe,{children:[D("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:ue(pe,{children:[D("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),D("circle",{cx:"9",cy:"10",r:"1.6"}),D("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:ue(pe,{children:[D("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),D("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:ue(pe,{children:[D("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),D("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),D("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:ue(pe,{children:[D("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),D("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:ue(pe,{children:[D("path",{d:"M3.5 20h17"}),D("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:ue(pe,{children:[D("circle",{cx:"6",cy:"12",r:"2.6"}),D("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),D("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:ue(pe,{children:[D("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),D("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:ue(pe,{children:[D("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),D("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:ue(pe,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:ue(pe,{children:[D("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),D("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:ue(pe,{children:[D("path",{d:"M4 8.5h4.5M11 8.5h9"}),D("path",{d:"M4 14.5h16"})]}),HeroGroup:ue(pe,{children:[D("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),D("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:ue(pe,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M6.5 9h11M6.5 12.5h11"}),D("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:D(pe,{children:D("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:ue(pe,{children:[D("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),D("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:ue(pe,{children:[D("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),D("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),D("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),D("path",{d:"M4 13.5h11M4 17.5h7"}),D("path",{d:"M17 15l3 2-3 2"})]}),Contents:ue(pe,{children:[D("path",{d:"M4 7h2M4 12h2M4 17h2"}),D("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:ue(pe,{children:[D("path",{d:"M4 6h9M4 11h5M4 16h5"}),D("circle",{cx:"15",cy:"15",r:"4"}),D("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:D("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},TZ=D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),OZ={footer:QM,Footer:QM,Divider:ZM,FooterDivider:ZM,Banner:cZ,Flex:pZ,FooterSocial:hZ,FooterPayment:gZ,page:vZ,website:bZ,AccountBlock:SZ,chat:yZ,Heading:mZ,Text:IZ,ImageBlock:By,ButtonBlock:uZ,LocationMap:CZ,Grid:wZ,ProductRef:xZ,heroMedia:kZ,heroImage:By,heroImage2:By},EZ={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Wa({type:e,size:o=16,className:t}){let r=EZ[e]??e,a=OZ[r];return a?D(a,{size:o,className:t}):D("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:PZ[r]??TZ})}import{PanelHideButton as pH}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as zoe}from"efficient-easel/screen/lib/session-context";import{jsx as be,jsxs as Ti,Fragment as _Z}from"react/jsx-runtime";import{useEffect as AZ,useId as e2,useState as FZ}from"react";import{IconPicker as BZ}from"efficient-shell/ui";import{SettingsDefaultReset as LZ,SettingsField as Oi,SettingsSegmented as RZ,SettingsSwitch as o2}from"efficient-easel/panel";import{ButtonIcon as DZ,ButtonIconIcon as NZ,EyeIcon as MZ,PhoneIcon as HZ,PlacementIcon as WZ,TypeIcon as $Z}from"efficient-easel/icons";var zZ="Chat with us",UZ="We usually reply within a few minutes",jZ="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Du({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=FZ(o);AZ(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return be(Oi,{label:e,icon:be($Z,{}),changed:o!=="",action:be(Ei,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?be("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:i,"aria-label":e}):be("input",{type:"text",value:s,placeholder:t,onChange:d=>l(d.target.value),onBlur:i,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Ei({label:e,changed:o,onReset:t}){return be(LZ,{words:Vw()?.panel,label:e,changed:o,onReset:t})}function GZ({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=e2();return be(Oi,{label:e,labelId:s,icon:o,changed:t!==r,action:Ti("span",{className:"inline-flex items-center gap-2",children:[be(o2,{checked:t,onChange:a,ariaLabelledBy:s}),be(Ei,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var KZ=Au.map(e=>({value:e,icon:GP(e)}));function qZ(){let{theme:e}=Po(),o=Zt(e).themes[0];return Ow(o)??o?.accent??""}function t2(){let{chat:e,setChat:o}=Lu(),t=e2(),r=qZ(),a=e.launcherIcon?Fu(e.launcherIcon):Ss;return Ti(_Z,{children:[be(Oi,{label:c("Show the chat bubble"),labelId:t,icon:be(MZ,{}),changed:!e.enabled,action:Ti("span",{className:"inline-flex items-center gap-2",children:[be(o2,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),be(Ei,{label:c("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?c("The floating chat bubble shows in the corner of every page."):c("The chat bubble is hidden across the whole site.")}),Ti(Px,{title:c("Look"),children:[be(qP,{label:c("Button color"),icon:be(DZ,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:c("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),be(Oi,{label:c("Icon"),icon:be(NZ,{}),value:be(FP,{value:a}),changed:a!==Ss,action:be(Ei,{label:c("Icon"),changed:a!==Ss,onReset:()=>o({launcherIcon:""})}),children:be(BZ,{label:c("Icon"),value:a,options:KZ,onChange:n=>o({launcherIcon:n===Ss?"":n})})}),be(Oi,{label:c("Position"),icon:be(WZ,{}),changed:e.launcherPosition!==Ha,action:be(Ei,{label:c("Position"),changed:e.launcherPosition!==Ha,onReset:()=>o({launcherPosition:Ha})}),children:be(RZ,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),be(Du,{label:c("Label"),value:e.launcherLabel,placeholder:c("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:c("Shows when a visitor points at the button")}),be(GZ,{label:c("Show on phones"),icon:be(HZ,{}),checked:e.showOnPhones,fallback:Bu.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Ti(Px,{title:c("Wording"),children:[be(Du,{label:c("Title"),value:e.title,placeholder:zZ,onCommit:n=>o({title:n})}),be(Du,{label:c("Subtitle"),value:e.subtitle,placeholder:UZ,onCommit:n=>o({subtitle:n})}),be(Du,{label:c("Greeting message"),value:e.greeting,placeholder:jZ,onCommit:n=>o({greeting:n}),multiline:!0}),be("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as $a,Fragment as oS,jsxs as l2}from"react/jsx-runtime";import{useEffect as CQ,useId as n2,useState as s2}from"react";import{SettingsField as kQ}from"efficient-easel/panel";import{jsx as mQ}from"react/jsx-runtime";import{forwardRef as VZ,createElement as Ly}from"react";var r2={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var se=(e,o,t,r)=>{let a=VZ(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...x},u)=>Ly("svg",{ref:u,...r2[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,d].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...x},[i&&Ly("title",{key:"svg-title"},i),...r.map(([h,I])=>Ly(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var YZ=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],Ry=se("outline","brand-facebook","BrandFacebook",YZ);var XZ=[["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-0"}],["path",{d:"M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0",key:"svg-1"}],["path",{d:"M17 7v.01",key:"svg-2"}]],Dy=se("outline","brand-instagram","BrandInstagram",XZ);var JZ=[["path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01",key:"svg-0"}]],Ny=se("outline","brand-line","BrandLine",JZ);var ZZ=[["path",{d:"M8 11v5",key:"svg-0"}],["path",{d:"M8 8v.01",key:"svg-1"}],["path",{d:"M12 16v-5",key:"svg-2"}],["path",{d:"M16 16v-3a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-4"}]],My=se("outline","brand-linkedin","BrandLinkedin",ZZ);var QZ=[["path",{d:"M8 20l4 -9",key:"svg-0"}],["path",{d:"M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],Hy=se("outline","brand-pinterest","BrandPinterest",QZ);var eQ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Wy=se("outline","brand-telegram","BrandTelegram",eQ);var oQ=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],$y=se("outline","brand-tiktok","BrandTiktok",oQ);var tQ=[["path",{d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5",key:"svg-0"}],["path",{d:"M11.197 15.698c-.69 .196 -1.43 .302 -2.197 .302a8.008 8.008 0 0 1 -2.612 -.432l-2.388 1.432v-2.801c-1.237 -1.082 -2 -2.564 -2 -4.199c0 -3.314 3.134 -6 7 -6c3.782 0 6.863 2.57 7 5.785l0 .233",key:"svg-1"}],["path",{d:"M10 8h.01",key:"svg-2"}],["path",{d:"M7 8h.01",key:"svg-3"}],["path",{d:"M15 14h.01",key:"svg-4"}],["path",{d:"M18 14h.01",key:"svg-5"}]],zy=se("outline","brand-wechat","BrandWechat",tQ);var rQ=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],Uy=se("outline","brand-whatsapp","BrandWhatsapp",rQ);var aQ=[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]],jy=se("outline","brand-x","BrandX",aQ);var nQ=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3l0 -6",key:"svg-1"}]],Gy=se("outline","brand-youtube","BrandYoutube",nQ);var sQ=[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]],Ky=se("filled","brand-facebook-filled","BrandFacebookFilled",sQ);var lQ=[["path",{d:"M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],qy=se("filled","brand-instagram-filled","BrandInstagramFilled",lQ);var iQ=[["path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],Vy=se("filled","brand-linkedin-filled","BrandLinkedinFilled",iQ);var dQ=[["path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336",key:"svg-0"}]],Yy=se("filled","brand-pinterest-filled","BrandPinterestFilled",dQ);var fQ=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],Xy=se("filled","brand-tiktok-filled","BrandTiktokFilled",fQ);var cQ=[["path",{d:"M18.497 4.409a10 10 0 0 1 -10.36 16.828l-.223 -.098l-4.759 .849l-.11 .011a1 1 0 0 1 -.11 0l-.102 -.013l-.108 -.024l-.105 -.037l-.099 -.047l-.093 -.058l-.014 -.011l-.012 -.007l-.086 -.073l-.077 -.08l-.067 -.088l-.056 -.094l-.034 -.07l-.04 -.108l-.028 -.128l-.012 -.102a1 1 0 0 1 0 -.125l.012 -.1l.024 -.11l.045 -.122l1.433 -3.304l-.009 -.014a10 10 0 0 1 1.549 -12.454l.215 -.203a10 10 0 0 1 13.226 -.217m-8.997 3.09a1.5 1.5 0 0 0 -1.5 1.5v1a6 6 0 0 0 6 6h1a1.5 1.5 0 0 0 0 -3h-1l-.144 .007a1.5 1.5 0 0 0 -1.128 .697l-.042 .074l-.022 -.007a4.01 4.01 0 0 1 -2.435 -2.435l-.008 -.023l.075 -.041a1.5 1.5 0 0 0 .704 -1.272v-1a1.5 1.5 0 0 0 -1.5 -1.5",key:"svg-0"}]],Jy=se("filled","brand-whatsapp-filled","BrandWhatsappFilled",cQ);var pQ=[["path",{d:"M8.267 3a1 1 0 0 1 .73 .317l.076 .092l4.274 5.828l5.946 -5.944a1 1 0 0 1 1.497 1.32l-.083 .094l-6.163 6.162l6.262 8.54a1 1 0 0 1 -.697 1.585l-.109 .006h-4.267a1 1 0 0 1 -.73 -.317l-.076 -.092l-4.276 -5.829l-5.944 5.945a1 1 0 0 1 -1.497 -1.32l.083 -.094l6.161 -6.163l-6.26 -8.539a1 1 0 0 1 .697 -1.585l.109 -.006h4.267z",key:"svg-0"}]],Zy=se("filled","brand-x-filled","BrandXFilled",pQ);var uQ=[["path",{d:"M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z",key:"svg-0"}]],Qy=se("filled","brand-youtube-filled","BrandYoutubeFilled",uQ);var rDe="outline",Nu={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},xQ={},eS={fillRule:"evenodd"},hQ=[["path",{...Nu,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...eS,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],IQ=[["path",{...Nu,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}],["path",{...xQ,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}]],gQ=[["path",{...Nu,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z"].join("")}],["path",{...Nu,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"].join("")}],["path",{...eS,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0","a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}],["path",{...eS,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z","M14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14","a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}]],yQ=se("filled","brand-telegram-filled","BrandTelegramFilled",hQ),SQ=se("filled","brand-line-filled","BrandLineFilled",IQ),bQ=se("filled","brand-wechat-filled","BrandWechatFilled",gQ),wQ={instagram:{outline:Dy,solid:qy},facebook:{outline:Ry,solid:Ky},tiktok:{outline:$y,solid:Xy},youtube:{outline:Gy,solid:Qy},x:{outline:jy,solid:Zy},linkedin:{outline:My,solid:Vy},pinterest:{outline:Hy,solid:Yy},whatsapp:{outline:Uy,solid:Jy},telegram:{outline:Wy,solid:yQ},line:{outline:Ny,solid:SQ},wechat:{outline:zy,solid:bQ}};function a2({platform:e,iconStyle:o,size:t}){let r=wQ[e][o];return mQ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var vQ={instagram:"instagram.com/yourshop",facebook:"facebook.com/yourshop",tiktok:"tiktok.com/@yourshop",youtube:"youtube.com/@yourshop",x:"x.com/yourshop",linkedin:"linkedin.com/company/yourshop",pinterest:"pinterest.com/yourshop",whatsapp:"wa.me/61400000000",telegram:"t.me/yourshop",line:"line.me/ti/p/~yourshop",wechat:"u.wechat.com/your-qr-code-link"};function PQ({platform:e}){let{rows:o,saveLink:t}=Pi(),{value:r,error:a}=o[e],[n,s]=s2(r),[l,i]=s2(!1),d=n2(),f=n2();CQ(()=>s(r),[r]);let x=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=kT[e];return l2(oS,{children:[$a(kQ,{label:c(u),htmlFor:d,icon:$a(a2,{platform:e,iconStyle:"outline",size:18}),children:$a("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:vQ[e],onChange:h=>s(h.target.value),onBlur:()=>{x()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&$a("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function i2({unavailable:e}){let{canSave:o}=Pi();return!o&&e?$a(oS,{children:e}):l2(oS,{children:[$a("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Of.map(t=>$a(PQ,{platform:t},t))]})}import{jsx as ja,Fragment as ZQ,jsxs as QQ}from"react/jsx-runtime";import{useId as eee,useMemo as oee}from"react";import{useEasel as tee}from"efficient-easel/easel";import{SettingsField as ree,SettingsSwitch as aee}from"efficient-easel/panel";import{EyeIcon as nee}from"efficient-easel/icons";import{fieldShownInView as see}from"efficient-easel/fields";import{usePreviewDevice as lee}from"efficient-easel/draw/client";import{ROOT_ZONE as iee}from"efficient-easel/draw";import{jsx as Ua,Fragment as EQ}from"react/jsx-runtime";import{createContext as _Q,useContext as AQ,useLayoutEffect as FQ,useMemo as f2,useRef as BQ,useState as c2}from"react";import{useEasel as p2,useSelectedFields as LQ}from"efficient-easel/easel";import{fieldShownInView as RQ,Inspector as DQ,LEAD_BAND_KEY as NQ,planFields as u2}from"efficient-easel/fields";function d2({allTabs:e,remembered:o,inherited:t,buckets:r,hasText:a}){return o&&(e||r.includes(o))?o:t&&r.includes(t)?t:a?"Design":r[0]??"Design"}import{jsx as TQ}from"react/jsx-runtime";import{EmptyState as OQ}from"efficient-shell/ui";function za(){return TQ(OQ,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as MQ}from"efficient-easel/draw/client";import{deviceField as HQ}from"efficient-easel/screen/lib/document/device-fields";var WQ="Text",tS=new Map,Mu=new Set,$Q=Object.fromEntries(wi.map(e=>{let o=aT[e];return[e,Ua(o,{},e)]})),m2=_Q(null),zQ={_partBody:HQ("each",{type:"custom",render:()=>Ua(UQ,{})})};function UQ(){return Ua(EQ,{children:AQ(m2)})}function Ot({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:i,values:d,readOnly:f,onChange:x}=LQ(),u=f2(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(J,me)=>a?.keys.has(J)?a.onChange(J,me):x(J,me),I=MQ(),{appState:w,config:T}=p2(J=>J),O=IP(I,T,w.data.content??[],w.ui.itemSelector),F=n===void 0?YE(i,t):zQ,k=f2(()=>{let J=r?.length?Object.fromEntries(Object.entries(F).filter(([me])=>!r.includes(me))):F;return a?{...J,...a.fields}:J},[F,r,a?.fields]),y=gx(k,u,O),[b,E]=c2(()=>new Set(Mu)),B=RQ({},I),R={key:NQ,title:WQ},C=p2(J=>J.selectedItem)!==null,L=a?.part??t??"",g=`${l}:${L}:${String(I)}`,[P,v]=c2(()=>({tab:tS.get(g)})),S=`${l}:${L}`,N=BQ(null),H={...O,node:u},q=u2(y,{values:u,context:H}).buckets,z=d2({allTabs:C,remembered:tS.get(g),inherited:N.current?.panel===S?N.current.tab:P.tab,buckets:q,hasText:B&&o>0}),ne=!B&&!q.includes(z)&&(u2(gx(k,u,{...O,device:"desktop"}),{values:u,context:{...H,device:"desktop"}}).buckets.includes(z)||z==="Design"&&o>0);FQ(()=>{N.current={panel:S,tab:z}});let ge=z==="Design";return Ua(m2.Provider,{value:n??null,children:Ua(cT.Provider,{value:a?u:null,children:Ua(DQ,{fields:y,values:u,onChange:h,readOnly:f,allTabs:C,showWhenContext:H,context:{itemWord:s},tab:z,onTab:J=>{tS.set(g,J),v({tab:J})},tabIcons:$Q,idPrefix:l,ariaLabel:c("Section settings"),lead:ge?e:null,leadFold:R,closedFolds:b,onFold:(J,me)=>{me?Mu.delete(J):Mu.add(J),E(new Set(Mu))},children:ne&&Ua(za,{})})})})}import{useMemo as jQ}from"react";import{useEasel as GQ}from"efficient-easel/easel";import{useSectionOps as KQ}from"efficient-easel/screen/lib/document/use-section-ops";var x2=new Map,qQ=e=>{let o=x2.get(e);return o||x2.set(e,o=Iu(xu(e),`part:${e}`)),o},VQ=new Set(bh);function bs(e,o,t){let{getItemById:r,getSelectorForId:a}=GQ(f=>f),n=KQ(),s=r(e)?.props??{},l=ha(s,o),i=JSON.stringify(l),d=jQ(()=>Object.fromEntries(bh.map(f=>[f,l[f]])),[i]);return{part:o,fields:qQ(t),values:d,keys:VQ,onChange:(f,x)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=kO(h.props??{},o,f,x);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as YQ,createElement as XQ}from"react";import{deviceField as rS}from"efficient-easel/screen/lib/document/device-fields";var bo=()=>({type:"custom",render:()=>XQ(YQ)});var aS={words:bo(),sourceNote:bo(),style:bo(),font:bo(),italic:bo(),fontSize:rS("each",bo()),lineHeight:bo(),letterSpacing:bo(),paragraphSpacing:bo(),padding:bo(),align:rS("each",bo()),letterCase:bo(),fixedSizeHint:rS("each",bo()),regionNote:bo(),regionStyle:bo()},JQ=["fontSize","align"];function h2(e){return JQ.includes(e)}var I2={showTicker:bo(),items:bo()};function g2({heroId:e}){let{appState:o,dispatch:t}=tee(h=>h),r=o.data.content??[],a=r.findIndex(h=>h.props.id===e),n=a>=0?r[a]:null,s=n?n.props.showTicker??!0:!0,l=oee(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:R_.map(I=>({text:I}))},[n]),i=eee(),d=lee(),f=h=>see(I2[h],d),x=bs(e,D_,"block");if(!n)return ja("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:iee,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return ja(Ot,{motion:x,body:QQ(ZQ,{children:[!f("showTicker")&&!f("items")&&ja(za,{}),f("showTicker")&&ja(ree,{label:c("Show ticker"),labelId:i,icon:ja(nee,{}),action:ja(aee,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&ja(hT,{label:Ex.label,icon:Ex.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as Fi,jsxs as mt}from"react/jsx-runtime";import{useContext as wee,useEffect as nS,useRef as Cee,useState as E2}from"react";import{FieldSelect as kee,InspectorField as vee,fieldShownInView as Pee}from"efficient-easel/fields";import{InertHint as M2,SettingsField as Tee}from"efficient-easel/panel";import{InspectorUpLevel as ju}from"efficient-easel/chrome";import{StylesIcon as Oee,TypeIcon as Eee}from"efficient-easel/icons";import{useEasel as _ee}from"efficient-easel/easel";import{TextPartPanel as _2}from"efficient-easel/copy";import{Button as Aee,IconButton as Fee,Tooltip as Bee}from"efficient-shell/ui";import{jsx as b2,jsxs as dee}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as fee}from"efficient-easel/strings";import{COPY_CELLS as ws,COPY_CELL_LENGTHS as y2,CopyBox as cee,lengthCellUnits as pee}from"efficient-easel/copy";import{PaddingYIcon as uee}from"efficient-easel/icons";import{onDesktopWords as mee}from"efficient-easel/screen/lib/document/box-fields";var S2=fee.copy.cells,xee={kind:"spacing"},hee=["left","center","right","justify"];function Hu(e,o,t,r="desktop"){let a=xv(e),n=Iv(r),s=e[n]??e.size??o.sizePx,l=gv(e,r),i=(f,x,u,h,I)=>{let w=ol[u];return pee({preset:f,row:x,table:gf,unit:e[w],value:e[u],tier:r,styleValue:h,label:c(I),onPick:(T,O)=>t({[w]:T??null,[u]:O??null}),onChange:(T,O)=>t({...O?{[w]:O.unit??null}:{},[u]:T??null})})},d={key:"padding",name:c("Padding"),icon:b2(uee,{}),unit:"px",step:cv,shiftStep:10,min:dv,max:fv};return[{...ws.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(ws.fontSize,y2.fontSize,n,Math.round(o.sizePx),S2.fontSize),...n==="size"?{}:{reset:{detail:l?mee(f=>c(f),`${l.px}px`,l.view):void 0}}},{...ws.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...ws.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...ws.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...i(ws.paragraphSpacing,y2.paragraphSpacing,"paragraphSpacing",0,S2.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,xee,"padding",o.paddingPx,"Padding")}]}function w2({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:i,placeholder:d,ariaLabel:f,head:x,typedOnCanvas:u=!1}){let h=Hu(n,s,l),I=qx(r,t);return dee("div",{className:"sf-part-textbox",children:[x,b2(cee,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:ad,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:Zd,align:a?{value:n.align??s.align,allow:hee,onChange:w=>l({align:w})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:w=>l({case:w||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as A2}from"efficient-easel/draw/client";import{jsx as Wu,Fragment as Iee,jsxs as gee}from"react/jsx-runtime";import{Button as C2,Dialog as yee}from"efficient-shell/ui";function k2({styleName:e,onCancel:o,onConfirm:t}){return Wu(yee,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:gee(Iee,{children:[Wu(C2,{variant:"secondary",onClick:o,children:c("Cancel")}),Wu(C2,{variant:"primary",onClick:t,children:c("Update style")})]}),children:Wu("p",{children:c("Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.",{style:e})})})}import{ScreenDocumentContext as Lee}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as Ree}from"efficient-easel/draw/client";import{shownTier as zu}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as Dee,viewKeyAt as Nee}from"efficient-easel/draw";import{useSectionOps as Mee}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as Hee}from"efficient-easel/screen/lib/host";function See(e){let o=new Set([...Object.keys($(Rk,e)??{}),...$(Dk,e)??[]]);for(let[t,r]of Object.entries($(Mk,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var bee={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},v2={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},P2="Open",T2={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function Cs(e){let o=e?.source?.slug;return mo(o)}function _i(e){return $(bee,e)??null}function O2(e,o){let t=_i(e);return t&&See(e).includes(o)?t:null}function $u(e){let o=e?.menu?.id;return mo(o)}function sS(e){return e?c(e):null}function F2(e){return e.kind==="role"?xm[e.role]:e.kind==="custom"?"Custom":null}function Wee(e){let o=ib(e.role);return o?{kind:"role",role:o}:null}function $ee(e,o){if(!e)return{kind:"unread"};let{faceRole:t,base:r}=e;if(o[t]===r.fontKey)return{kind:"role",role:t};let a=Object.keys(o).filter(n=>o[n]===r.fontKey);return a.length===1?{kind:"role",role:a[0]}:{kind:"custom"}}function Uu(e,o,t,r){return Wee(Pr(e,o))??$ee(t,r)}function zee(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function B2(e){return[{value:Ai,label:c("No style"),description:c("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?rd(o.values.font)?.label:void 0}))]}var Ai="";function Uee({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:Ai,a=[{label:c("No style"),value:Ai},...lb.map(n=>({label:c(xm[n]),value:n}))];return Z(kee,{ariaLabel:c("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===Ai?null:n),renderOption:n=>n.value===Ai?mt(Fi,{children:[Z("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),Z("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):Z("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>Z("span",{style:{fontFamily:o?.fontKey?`var(${rd(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:sS(F2(e))}),valueText:n=>sS(F2(e))??n?.label??""})}var H2=["regionNote","regionStyle"],jee=Object.keys(aS).filter(e=>!H2.includes(e));function W2(e,o){return!e.some(o)}function Gee({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=mt(Fi,{children:[t,r,a]});return mt("div",{className:"sf-part-panel",children:[Z(ju,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function Gu({source:e,slug:o,menuId:t}){let r=Hee(),a=T2[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:mt(M2,{children:[c(v2[e]),n?mt(Fi,{children:[" ",Z(Aee,{type:"button",variant:"link",size:"sm",onClick:()=>{a.type==="storefront-editor:open-menus"?r.send(a.type,{menuId:t??null}):o&&r.send(a.type,{slug:o})},children:c(P2)})]}):null]})})}var L2=4,Kee=120;function R2(e){return c("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:c(e.label).toLowerCase()})}function D2({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:f}){let x=e.follows;return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c(e.label)})}),i("regionNote")&&!f&&Z("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(x),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(x)})}),d?mt(Fi,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:R2(e)})]}):a?i("regionStyle")?Z(Fi,{children:Z(Tee,{label:c("Style"),icon:Z(Oee,{}),hint:R2(e),children:Z(Uee,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&Z("p",{className:"es-field-hint",children:c("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&i("sourceNote")?Z(Gu,{source:n,slug:s}):null,W2([...H2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&Z(za,{}),Z(ju,{inline:!0,name:c("Page"),onSelect:l})]})}function qee({onBack:e}){return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part is no longer here.")})}),Z("p",{children:c("The section it belonged to has been changed or removed.")}),Z(ju,{inline:!0,name:c("Page"),onSelect:e})]})}function Vee({onBack:e,partId:o,why:t}){return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part's settings did not open.")})}),Z("p",{children:c("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),Z("p",{className:"sf-note-detail",children:mt("code",{children:[o," \u2014 ",t]})}),Z(ju,{inline:!0,name:c("Page"),onSelect:e})]})}function $2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=_ee(K=>K),l=Mee(),i=r0(),{partStyle:d}=is(),{fonts:f,textStyles:x}=Po(),u=wee(Lee),h=!u?.capabilities?.hasSiteTheme,{persist:I}=XP({themeFromDocument:h,tokenRef:u?.tokenRef,siteId:u?.siteId??null}),w=BT({themeFromDocument:h,persist:I}),[T,O]=E2(!1),F=Ree(),k=K=>(zu(F)!=="tablet"||h2(K))&&Pee(aS[K],F),y=Cee(null),b=a(e),E=n(e),B=b?s.components[b.type]:void 0,{key:R,row:C}=Nt(o),L=B?.fields?.[R],g=C?Ln(L,C):L,P=Mt(e,o),v=b?.props??{},S=of(g),N=Cf(g),H=Zk(g),q=b?_i(b.type):null,z=b?O2(b.type,R):null,ne=C?rf(v[R],C):v[R],ge=!!C&&!(Array.isArray(v[R])&&C.index<v[R].length);nS(()=>{t0(document)||y.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[P]);let[J,me]=E2(0);nS(()=>me(0),[P]);let oe=!!b&&!ge&&(!E||!g);nS(()=>{if(!oe||J>=L2)return;let K=setTimeout(()=>me(je=>je+1),Kee);return()=>clearTimeout(K)},[oe,J]);let xe=oe&&J<L2,ce=bs(e,ar(b?.type,o),"textPart");if(!b||ge)return Z(qee,{onBack:t});let qe=ds(b.type),ro=qe?Hs(qe,o):null;if(qe&&ro){let K=d?.partId===P?d:null,je=qe[ro],It=je.writable===!0&&!!E,mr=Yr=>{E&&l.replaceComponent(E.zone,E.index,{...b,props:ra(v,o,"role",Yr)})};if(It&&aw(je)){let Yr=Pr(v,o),jS=Xr=>{if(!E)return;let um=v;for(let[O4,E4]of Object.entries(Xr))um=ra(um,o,O4,E4??null);l.replaceComponent(E.zone,E.index,{...b,props:um})},v4=Fx(w.saved,w.old),P4=fx(Yr)??"",T4=Hu(Yr,K?.base??N2,jS,zu(F)).filter(Xr=>Xr.key==="fontSize"&&k(Xr.key));return Z(Ot,{motion:ce,body:Z(D2,{region:je,sizePx:K?.base.sizePx??null,face:Uu(v,o,K,f),base:K?.base??null,source:q,slug:Cs(v),onBack:t,shows:k,ownLook:Pv(Yr),sizedStyle:Z(_2,{style:k("style")?{value:P4,options:B2(v4),onChange:Xr=>jS(Xr?{textStyle:Xr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:T4})})})}return Z(Ot,{motion:ce,body:Z(D2,{region:je,sizePx:K?.base.sizePx??null,face:Uu(v,o,K,f),base:K?.base??null,onFollowStyle:It?mr:void 0,source:q,slug:Cs(v),onBack:t,shows:k})})}if(!E||!g)return xe?Z("div",{className:"sf-note","aria-busy":"true"}):Z(Vee,{onBack:t,partId:P,why:E?"no field":"no selector"});let wo=K=>{l.replaceComponent(E.zone,E.index,{...b,props:K})},Je=K=>{if(ia(K).hidden!==ia(ne).hidden||!S){let je=C?jk(v,R,C,K):{...v,[R]:K};je&&wo(je);return}Ff({node:b,propKey:o,kind:S,zone:E.zone,index:E.index},ia(K).text,l.replaceComponent)},co=ne,po=d?.partId===P?d:null,le=po?.styleOwner,Le=le?a(le.owner):null,W=le&&Le?n(le.owner):null,he=!!(le&&Le&&W),Ie=he?Le.props??{}:v,Ze=he?K=>l.replaceComponent(W.zone,W.index,{...Le,props:K}):wo,_o=he?le.kind:ar(b?.type,o),Re=Pr(Ie,_o),Ue=[{partKey:_o,face:Uu(Ie,_o,po,f),sizeGroup:po?.sizeGroup??null,base:po?.base??N2,style:Re}],uo=zee(Ue,K=>K.sizeGroup),Ao=Qd(po?.inks),Gt=(K,je)=>{let It=Ie;for(let mr of Ue)It=ra(It,mr.partKey,K,je);Ze(It)},pr=K=>K?Gt("textStyle",K):Va({textStyle:null,role:null}),Va=K=>{let je=Ie;for(let It of Ue)for(let[mr,Yr]of Object.entries(K))je=ra(je,It.partKey,mr,Yr??null);Ze(je)},Ya=S==="text"||S==="textarea",{text:Kt,hidden:ur}=ia(ne),Xa=g?.[Dee]?.label??o,Es=ur?c("Show {label} on the slide",{label:c(Xa)}):c("Hide {label} on the slide",{label:c(Xa)}),Ja=mt("div",{className:"sf-field-head",children:[Z(Eee,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:c(Xa)}),Ya&&Z(Bee,{content:Es,children:Z(Fee,{"aria-pressed":ur,"aria-label":Es,onClick:()=>Je({text:Kt,hidden:!ur}),children:ur?Z(A2,{name:"eye-off",size:14}):Z(A2,{name:"eye",size:14})})})]}),qr=!N&&H,_s=!!S&&(rT(g)||N||ur||!H),Vr=Uu(Ie,_o,po,f),Yi=Vr.kind==="role"?Vr.role:null,Za=fx(Re)??ET(Yi),As=Fx(w.saved,w.old),Xi=Object.entries(Re).filter(([K,je])=>K!=="role"&&K!=="textStyle"&&je!==void 0).length,Ji=()=>{let K=Ie;for(let je of Ue){let{role:It,textStyle:mr}=je.style;K=mv(K,je.partKey),It&&(K=ra(K,je.partKey,"role",It)),mr&&(K=ra(K,je.partKey,"textStyle",mr))}Ze(K)},ht=Za,w4=AT(Ue[0].style),C4=ht?As.find(K=>K.id===ht)?.name??ht:"",k4=()=>{O(!1),ht&&(w.write(FT({saved:w.saved,old:w.old,styleId:ht,values:_T(Ue[0].style)}),!0),Ji())};return mt(Gee,{sectionName:B?.label??b.type,onBack:t,tabs:K=>Z(Ot,{motion:ce,body:K}),textEditor:k("words")?Z("div",{ref:y,className:"sf-part-text",children:_s?Z(w2,{text:Kt,onTextChange:K=>Je(Ya?{text:K,hidden:ur}:K),multiline:tf(S),markup:S!=="plainText",styled:!1,style:Ue[0].style,base:Ue[0].base,setValue:Va,colors:Ao,placeholder:sS(Wk(g))??void 0,ariaLabel:c(Xa),head:Ja,typedOnCanvas:i===P}):S?Ya?Ja:null:Z(vee,{field:g,name:o,value:co,onChange:Je,id:`sf-part-${e}-${o}`})}):void 0,children:[z&&k("sourceNote")&&Z(Gu,{source:z,slug:Cs(v),menuId:$u(v)}),qr&&Z(_2,{style:k("style")?{value:Za??"",options:B2(As),onChange:K=>pr(K||null),changed:Xi>0,onEditStyles:r,onUpdateStyle:ht&&w4?()=>O(!0):void 0}:void 0,font:k("font")?{value:Re.font??"",styleValue:rd(Ue[0].base.fontKey)?.label,options:sb.map(K=>({label:K.label,value:K.key})),onChange:K=>Gt("font",K||null)}:void 0,italic:k("italic")?{value:Re.italic,styleValue:Xee(x,Za),onChange:K=>Gt("italic",K??null)}:void 0,cells:Hu(Ue[0].style,Ue[0].base,Va,zu(F)).filter(K=>k(K.key)),align:k("align")?Yee(Re,Ue[0].base.align,zu(F),Gt):void 0,letterCase:k("letterCase")?{value:Re.case??"",styleValue:Ue[0].base.case,onChange:K=>Gt("case",K||null)}:void 0}),T&&ht&&Z(k2,{styleName:C4,onCancel:()=>O(!1),onConfirm:k4}),qr&&uo===null&&k("fixedSizeHint")&&Z(M2,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),W2(jee,K=>k(K)&&(K==="words"||(K==="sourceNote"?!!z:K==="fixedSizeHint"?qr&&uo===null:qr)))&&Z(za,{})]})}function Yee(e,o,t,r){let a=Nee("align",t),n=hv(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Xee(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var N2={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Et,jsxs as pS,Fragment as roe}from"react/jsx-runtime";import{useCallback as aoe,useRef as noe,useState as Ri}from"react";import{InspectorIconButton as soe}from"efficient-easel/chrome";import{useEasel as loe}from"efficient-easel/easel";import{PopupMenu as ioe,PopupMenuItem as doe,PopupMenuLabel as Zu}from"efficient-shell/ui";import{CopyToPageIcon as foe}from"efficient-easel/icons";import{useEaselSession as coe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as poe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as uoe}from"efficient-easel/draw";import{newId as Qee}from"efficient-easel/data";import{isBackendError as ks}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as J2}from"efficient-easel/screen/lib/session";var Ku=BP(),lS=Ku.set;function qu(e,o){lS(e,o)}function Vu(e,o){let t=Ku.get(e);lS(e,o??(t==="live"?"changed":t))}function Yu(e,o){lS(e,o??"live")}function z2(e){return Ku.get(e)}function U2(e){return Ku.use(e)}function j2(e,o){return e==="live"&&o?"changed":e}function iS({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?c("Changes not live yet"):e==="never"?c("Never published"):r?c("Header and footer not live yet"):e==="live"?c("Everything is live"):null;return{label:c("Publish"),tooltip:e==="never"?c("Put this page on your site"):c("Put your changes on your site"),status:s,quiet:n?{label:c("Published"),reason:c("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function G2(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var K2="SharedSection",Jee=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Bi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Li=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function q2(e){if(e?.type!==K2)return null;let o=e.props?.section;return typeof o=="string"&&Jee.test(o)?o.toLowerCase():null}function V2(e){let o=[];for(let t of Bi(e)){let r=q2(t),a=Li(t);r&&a&&o.push({refId:a,section:r})}return o}function Xu(e){let o=Bi(e)[0];return o&&typeof o=="object"&&Li(o)?o:null}function Zee(e,o){return{type:K2,props:{id:e,section:o}}}function Y2(e,o){let t=new Map,r=new Set,a=!1,n=Bi(e).map(s=>{let l=q2(s),i=Li(s);if(!l||!i||r.has(l))return s;let d=Xu(o.get(l)),f=Li(d??void 0);return!d||!f||t.has(f)?s:(r.add(l),t.set(f,{section:l,refId:i,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function X2(e,o,t){let r=new Map,a=!1,n=Bi(e).map(s=>{let l=Li(s),i=l?o.get(l):void 0,d=i?t.get(i.section):void 0;if(!i||!d||r.has(i.section))return s;let f=Bi(d).slice(1),x=Xu(d);return r.set(i.section,x===s?d:{...d,content:[s,...f]}),a=!0,i.reference??Zee(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function cS(e){return!!(e?.publish&&e.liveState)}function eoe(e,o){if(!cS(e))return;let{versions:t,nameVersion:r,restoreVersion:a,previewVersion:n}=e;if(!(!t||!r||!a||!n))return{list:()=>t.call(e,o),name:(s,l)=>r.call(e,s,l,o),restore:(s,l)=>a.call(e,s,l??{},o),preview:s=>n.call(e,s,o)}}function ooe(e,o){return async(t,r)=>{try{await YP()}catch(a){throw new Error(c("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?bf({state:"live",changes:[]}):la(0),{version:r??null}}}function fS(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(qu(n.id,n.live),WP(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(Vu(a,i.live),$P(a,i.videoFrames),la(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:cS(t)?ooe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(Yu(a,s.live),s)):void 0,listPages:()=>e.list(r),createPage:e.create?a=>e.create({...a,...r}):void 0,deletePage:e.remove?(a,n)=>e.remove(a,n):void 0}}function toe(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,f=new Map,x=new Map,u={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let C=z2(n.id);return C==="changed"||C==="never"||C===void 0&&l},w=C=>{u={...u,...C,docId:n?.id??null,unpublished:I(),sections:[...f.values()],rootProps:NP(n?.layout)};for(let L of h)L()},T=(C,L,g)=>{L?f.set(C,{section:C,title:i.get(C)?.title??"",problem:L,holder:g}):f.delete(C)},O=C=>C&&typeof C=="object"&&!Array.isArray(C)?C:{},F=C=>s.has(C),k=()=>new Map([...i].map(([C,L])=>[C,L.layout])),y=()=>Qee("SharedSection"),b=(C,L,g,P)=>{let v=O(L);i.set(C,{layout:v,version:g,savedJson:JSON.stringify(v),title:P})},E={state:()=>u,subscribe:C=>(h.add(C),()=>{h.delete(C)})},B={sectionOf:C=>d.get(C)?.section??null,heldElsewhere:C=>{let L=d.get(C)?.section;return!!(L&&f.get(L)?.problem==="lock")},adopt:(C,L)=>{b(L.id,L.layout,L.layout_updated_at,L.title),d.set(C,{section:L.id,refId:y()}),x.set(L.id,L.used_on),w({})},place:C=>{if([...d.values()].some(P=>P.section===C.id))return null;let L=Xu(O(C.layout)),g=typeof L?.props?.id=="string"?L.props.id:null;return!L||!g||!L.type?null:(b(C.id,C.layout,C.layout_updated_at,C.title),d.set(g,{section:C.id,refId:y()}),x.set(C.id,C.used_on),L)},usedOn:C=>x.get(C)??null,learn:C=>{for(let L of C){x.set(L.id,L.used_on);let g=i.get(L.id);g&&(g.title=L.title);let P=f.get(L.id);P&&f.set(L.id,{...P,title:L.title})}w({})}},R=async(C,L)=>{for(let[g,P]of C){let v=i.get(g),S=JSON.stringify(P);if(!(!v||S===v.savedJson||f.get(g)?.problem==="lock"))try{let N=await e.save(g,{layout:P},{version:v.version,clientId:L??""});Vu(g,N.live),v.layout=P,v.version=N.version,v.savedJson=S,T(g,null)}catch(N){ks(N,"changed-elsewhere")?T(g,"conflict"):ks(N,"lock-taken")?T(g,"lock",N.holder??void 0):T(g,"save")}}C.size&&la(),w({})};return{resolve:async C=>{if(Ax(C===Tr?null:E),wx(C===Tr?null:B),i=new Map,d=new Map,f=new Map,x=new Map,C===Tr)return t.resolve(C);let L=!1,[g,P]=await Promise.all([t.resolve(C),e.load({slug:Tr,...o}).catch(()=>(L=!0,null))]);if(P&&!tT(g?.layout)){qu(P.id,P.live);let z=O(P.layout);n={id:P.id,layout:z,version:P.version,savedJson:""}}else n=null;if(l=!1,!g)return w({conflict:null,saveFailed:!1,loadFailed:L}),g;let v=O(g.layout),S=V2(v),N=await Promise.all(S.map(z=>e.load({id:z.section,...o}).catch(()=>null)));S.forEach((z,ne)=>{let ge=N[ne];ge?(qu(ge.id,ge.live),b(z.section,ge.layout,ge.version,"")):(i.delete(z.section),f.set(z.section,{section:z.section,title:"",problem:"load"}))});let H=Y2(v,k());if(d=H.held,!n)return d.size&&s.add(g.id),w({conflict:null,saveFailed:!1,loadFailed:L}),d.size?{...g,layout:H.working}:g;let q=MP(H.working,n.layout);return n.savedJson=JSON.stringify(bx(q,n.layout).chrome),s.add(g.id),w({conflict:null,saveFailed:!1,loadFailed:!1}),{...g,layout:q}},saveLayout:async(C,L,g,P)=>{if(!F(C))return t.saveLayout(C,L,g,P);let v=n,S=v?bx(L,v.layout):{page:L,chrome:null},N=X2(S.page,d,k()),H=await t.saveLayout(C,N.page,g,P);if(await R(N.docs,P),!v)return H;let q=JSON.stringify(S.chrome);if(!S.chrome||q===v.savedJson||u.lockHolder)return H;try{let z=await e.save(v.id,{layout:S.chrome},{version:v.version,clientId:P??""});Vu(v.id,z.live),la(),v.layout=S.chrome,v.version=z.version,v.savedJson=q,l=!0,w({conflict:null,saveFailed:!1})}catch(z){ks(z,"changed-elsewhere")?w({conflict:z.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):ks(z,"lock-taken")?w({lockHolder:z.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):w({saveFailed:!0})}return H},publish:t.publish?async(C,L)=>{let g=await t.publish(C,L),P=n;if(P&&F(C)&&!a&&e.publish&&I()&&!u.lockHolder){let v=await e.publish(P.id,P.version?{version:P.version}:void 0);Yu(P.id,v.live),v.version!==null&&(P.version=v.version),l=!1,w({})}if(F(C)&&!a&&e.publish)for(let[v,S]of i){if(f.get(v)?.problem==="lock")continue;let N=await e.publish(v,S.version?{version:S.version}:void 0);Yu(v,N.live),N.version!==null&&(S.version=N.version)}return g}:void 0,lock:r?{claim:async(C,L,g)=>{let P=await r.claim(C,L,g);if(!F(C))return P;let v=n;if(v)try{await r.claim(v.id,L,!1),u.lockHolder&&w({lockHolder:null})}catch(S){ks(S,"lock-taken")&&w({lockHolder:S.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let S of i.keys())try{await r.claim(S,L,!1),f.get(S)?.problem==="lock"&&T(S,null)}catch(N){ks(N,"lock-taken")&&T(S,"lock",N.holder??void 0)}return i.size&&w({}),P},release:async(C,L)=>{if(await r.release(C,L),!F(C))return;let g=n;g&&!u.lockHolder&&await r.release(g.id,L).catch(()=>{});for(let P of i.keys())f.get(P)?.problem!=="lock"&&await r.release(P,L).catch(()=>{})}}:void 0,pinnedChrome:E}}function Ju(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:UT(r.layout)}:r,a);return new Proxy(e,{get(t,r){if(r==="save")return o;let a=Reflect.get(t,r,t);return typeof a=="function"?a.bind(t):a}})}function DMe(e,o,t){return e.update(o,jT(t))}function NMe(e,o=Fo(),t=Cg(),r={}){let a=J2(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,i=a&&t.commerce&&t.service,d=!!r.editsPinnedInPlace&&i,f=cS(o.site)?o.site:void 0,x=Ju(o.pages),u=fS(x,e,f),h=d?toe(x,n,u,o.lock,!!f):null;return{capabilities:{canPublish:!!f||!!o.pages.publish,hasSiteSettings:a,hasSiteTheme:!!o.theme,placeholderFrames:!1,mediaEditing:!0,pageCreationInAdminForm:!o.pages.create,canDeletePagesInline:!!o.pages.remove,hasEditLock:!!o.lock,hasEditGuard:!0,hasPinnedChrome:i,editsPinnedInPlace:d,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...u,...Z2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:eoe(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function MMe(e,o=Fo(),t=Cg()){let r=J2(o),a=o.templates,n=a?Ju(a.pages(e)):{list:()=>Promise.reject(new Error(dS)),load:()=>Promise.reject(new Error(dS)),save:()=>Promise.reject(new Error(dS))};return{capabilities:{canPublish:!1,hasSiteSettings:!1,hasSiteTheme:!1,placeholderFrames:!0,mediaEditing:!1,pageCreationInAdminForm:!n.create,canDeletePagesInline:!!n.remove,hasEditLock:!1,hasEditGuard:!1,hasPinnedChrome:r&&t.commerce&&t.service,editsPinnedInPlace:!1,explainsSiteSettings:r,hasSiteRecord:!1,canEditSiteRecord:!1,hasPreviewLink:!1,hasCatalog:r&&t.commerce,hasForms:r&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...fS(n,void 0),...Z2(fS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function Z2(e){return{resolve:o=>(Ax(null),wx(null),e(o))}}var dS="This editor's backend has no website templates.";function moe(e,o,t){let r=poe(e,void 0,o);return t?.(r)??r}function Q2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Ri(!1),[i,d]=Ri(null),f=coe(),x=loe(B=>B.config.components),[u,h]=Ri(!1),[I,w]=Ri(null),T=noe(null),[O,F]=Ri(null),k=aoe(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{d(await Fo(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),y=()=>{if(s){l(!1);return}let B=T.current?.getBoundingClientRect();B&&F({top:B.bottom+6,right:Math.max(8,window.innerWidth-B.right)}),d(null),h(!1),k(),l(!0)},b=(i??[]).filter(B=>B.slug!==o),E=async B=>{if(I)return;w(B.slug);let R=moe(e,x,f.documentHooks?.storedNode),C=await a(()=>xoe(Fo(f).pages,B,R));w(null),l(!1),n?.(C?c("Duplicated to \u201C{name}\u201D",{name:B.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),C?"success":"error")};return pS(roe,{children:[Et("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Et(soe,{buttonRef:T,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:Et(foe,{size:15})})}),s&&O&&Et(ioe,{portal:!0,style:{top:O.top,right:O.right},onClose:()=>l(!1),children:pS("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Et(Zu,{children:c("Duplicate to page")}),u?Et(Zu,{children:c("Couldn\u2019t load pages")}):i===null?Et(Zu,{children:c("Loading\u2026")}):b.length===0?Et(Zu,{children:c("No other pages")}):b.map(B=>pS(doe,{role:"menuitem",disabled:I!==null,onClick:()=>{E(B)},children:[Et("span",{className:"min-w-0 flex-1 truncate",children:B.label}),I===B.slug?Et("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):B.draft&&Et("span",{className:"shrink-0 text-xs",children:c("draft")})]},B.id))]})})]})}async function xoe(e,o,t){let r=Ju(e),a=await r.load({id:o.id});if(!a)throw new Error(`Page "${o.slug}" no longer exists.`);let n=a.layout??{},s=Array.isArray(n.content)?[...n.content]:[],l=s.findIndex(i=>i?.type===uoe);s.splice(l===-1?s.length:l,0,LP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as Uoe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as joe}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as cHe,isSelectionMode as IS}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Goe}from"efficient-easel/draw/client";import{jsx as Di,jsxs as hoe}from"react/jsx-runtime";import{SettingsDrill as Ioe}from"efficient-easel/panel";import{UiIcon as goe}from"efficient-easel/draw/client";var yoe="Not shown on the page";function Soe({part:e,onOpen:o}){return Di(Ioe,{name:c(e.label),preview:e.offPage?c(yoe):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?Di("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:Di(goe,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function uS(e){return e.filter(o=>!o.identifier)}function eH({parts:e,onOpen:o,heading:t=!0}){let r=uS(e);return r.length?hoe("div",{className:"sf-entries",children:[t?Di("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>Di(Soe,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Koe,ROOT_ZONE as uH}from"efficient-easel/draw";import{newId as boe}from"efficient-easel/data";import{HEADER_TYPE as jo,FOOTER_TYPE as Be,newNodeId as woe}from"efficient-easel/draw";function Qu(){return{type:jo,props:{id:woe(jo)}}}var oH=[{type:"FooterLogo",label:"Logo"},{type:"FooterMenu",label:"Menu"},{type:"FooterText",label:"Text"},{type:"FooterEmailSignup",label:"Email Form"},{type:"FooterSocial",label:"Social Logos"},{type:"FooterPayment",label:"Payment Logos"},{type:"FooterGroup",label:"Footer Box"}],Coe=oH.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),koe="FooterGroup",tH="blocks";function rH(e){return e===Be?oH:e===koe?Coe:null}function em(){let e=(o,t)=>({type:o,props:{id:boe(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...Nv}),e("FooterPayment",{...sf})]}function mS(e){switch(e?.type){case Mo:case eo:return c("On every page");case jo:case Be:return c("On every page \xB7 old style");default:return null}}var aH=()=>null,nH=()=>c("Changed on every page");function om(e,o){let t=BC(e,o);if(t)return t;let r=Yv(e,o);if(!r)return null;let a=r.group===Mo;return r.why==="type"?a?c("The header cannot take another one of these"):c("The footer cannot take another one of these"):a?c("The header holds at most 3 sections"):c("The footer holds at most 6 sections")}import{jsx as tm,Fragment as Poe,jsxs as Toe}from"react/jsx-runtime";import{useState as Ooe}from"react";import{createNode as Eoe,newId as _oe}from"efficient-easel/data";import{useEasel as Aoe}from"efficient-easel/easel";import{Banner as Foe,Button as xS}from"efficient-shell/ui";import{useScreenDocument as Boe}from"efficient-easel/screen/components/ScreenDocumentContext";var voe=["FooterPayment"];function sH(e,o){let{id:t,...r}=e.props;for(let a of At(e))r[a]=r[a].map(n=>sH(n,o));return o(e.type,r)}var Ni=(e,o)=>{if(!voe.includes(e.type))return null;$p();let t=Lr(e.type);return t?va({type:e.type,props:{...e.props}},t).nodes.map(r=>sH(r,o)):null};function lH(){let{appState:e,dispatch:o,config:t}=Aoe(f=>f),{readOnly:r}=Boe(),[a,n]=Ooe(!1),s=e.data.content;if(r||s.some(f=>f.type===eo))return null;let l=s.find(f=>f.type===Be)??null,i=(f,x)=>Eoe(t,f,x),d=()=>{let f=ri(l,i,_oe(eo),Ni);o({type:"setData",data:x=>({...x,content:[...df(x.content,f)]}),recordHistory:!0}),n(!1)};return tm(Foe,{tone:"info",title:c("This footer uses the old layout"),action:a?Toe(Poe,{children:[tm(xS,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),tm(xS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):tm(xS,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:c("Switch to Box footer")}),children:c("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}import{jsx as hS,jsxs as Loe}from"react/jsx-runtime";import{InspectorUpLevel as iH}from"efficient-easel/chrome";function dH({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Ru(),n=bs(e,o,"picture");return Loe("div",{children:[o!=="media"?hS(iH,{inline:!0,name:c(ir.media),onSelect:()=>a(ba(e,"media"))}):hS(iH,{inline:!0,name:c(t),onSelect:r}),hS(Ot,{part:o,motion:n,itemWord:c(ir[o])})]})}import{HintsToggle as qoe,SettingsSwitch as Voe,hintsFoldClass as Yoe}from"efficient-easel/panel";import{useHints as Xoe}from"efficient-easel/screen/lib/hints";var xH={kind:"header"},yS={kind:"website"},hH={kind:"website",tab:Ef,revealPageGroup:!0},IH={kind:"chat"},gH={kind:"social"},Mi="Part";function Joe(e){return c("Part of {name}",{name:c(e)})}function Zoe(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Joe(r.label):c(Mi)}}function Qoe(e){switch(e){case"Header":return{title:c("Header settings belong to a website."),own:c("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:c("Appearance settings belong to a website."),own:c("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:c("Live chat settings belong to a website."),own:c("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:c("Social link settings belong to a website."),own:c("Each website created from this template sets its own social link afterwards.")};default:return{title:c("{what} settings belong to a website.",{what:e}),own:c("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function yH({what:e}){let o=Qoe(e);return Kr("div",{className:"sf-note",children:[we("p",{children:we("strong",{children:o.title})}),Kr("p",{children:[c("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function gS(e){let o=Hl[e];return{name:ir[e],kindLabel:Mi,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=mH({name:c(Mc(e,a.props)),tier:"part",of:c(a.label)},{partOf:({name:s})=>c("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?we(dH,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var ete={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?we(t,{placeholderMode:o.capabilities.placeholderFrames,tokenRef:o.tokenRef,siteId:o.siteId,websiteName:o.websiteName,onOpenWebsiteSettings:o.onOpenWebsiteSettings,onAuthExpired:()=>o.notifyParent("storefront-editor:auth-expired")}):null}},website:{name:"Appearance",kindLabel:"Site settings",icon:"website",render:(e,o)=>we(_f,{initialTab:e.tab,revealPageGroup:e.revealPageGroup,themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify},e.tab??"")},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>we(t2,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>we(i2,{unavailable:we(yH,{what:"Social link"})})},ticker:{name:La,kindLabel:Mi,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Zoe(o,e.heroId,c(La)):null,render:e=>we(g2,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:gS("media"),heroImage:gS("image"),heroImage2:gS("image2"),part:{name:Mi,kindLabel:Mi,icon:"Text",head:(e,o)=>{if(e.kind!=="part")return null;let t=o.describeNode(e.nodeId);if(!t)return null;let{key:r,row:a}=Nt(e.propKey),n=a?Ln(t.fields[r],a):t.fields[r],s=ds(t.type),l=s?Hs(s,e.propKey):null,i=s&&l?s[l].label:gO[e.propKey],d=i?c(i):Kk(c(nf(Qk(n??{},r))),a),f=mH({name:d,tier:"part",of:c(t.label)},{partOf:({name:x})=>c("Part of {name}",{name:x})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?we($2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},ote=new Set(["header","website","chat"]);function tte(e,o){if(e==="selection")return null;let t=ete[e];return ote.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>we(yH,{what:t.name})}:t}function SH({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:l,tokenRef:i,notifyParent:d,currentSlug:f,siteId:x,runAuthed:u,readOnly:h,navigate:I}=Uoe(),{rows:w}=cl(),T=w?.find(he=>he.slug===f)??null,O=Doe(),F=Object.keys(O.fields).some(he=>!he.startsWith("_")&&!Bx.includes(he)),{websiteName:k}=Po(),y=joe({readOnly:h}),{select:b}=Goe(),{selectedItem:E,getItemById:B,getSelectorForId:R,config:C,appState:L}=Roe(he=>he),g=$oe(C,E?{type:E.type,props:E.props}:null),P=E?tv(g??C.components[E.type]?.fields,E.props):[],v=he=>C.components[he]?.label??he,S=E?R(E.props.id):void 0,N=tte(e.kind,l),H=zoe(),q={capabilities:l,tokenRef:i,hostPanels:H.chrome?.panels,describeNode:he=>{let Ie=B(he);if(!Ie)return null;let Ze=C.components[Ie.type];return{type:Ie.type,label:Ze?.label??Ie.type,fields:Ze?.fields??{},props:Ie.props??{}}},siteId:x,websiteName:k??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},z=N?.head?.(e,q)??null,ne=XM({kind:T?.kind,pageName:T?.label}),ge=z?.name??(N?c(N.name):E?c(v(E.type)):ne.name),J=z?.kindLabel??(N?c(N.kindLabel):E?S&&S.zone!==uH?c("Block"):c("Section"):ne.kindLabel),me=N?N.icon:E?E.type:"page",oe=IS(e)&&E?_i(E.type):null,xe=!!E&&!!S&&S.zone===uH&&E.type!==Be&&E.type!==Koe,ce=om(L?.data,E),qe=()=>{ce||S&&y.duplicateComponent(S.zone,S.index)},ro=()=>{S&&(y.removeComponent(S.zone,S.index),y.select(null))},wo=E?C.components[E.type]?.defaultProps?.previewHover:void 0,Je=IS(e)&&!!E&&!!S&&wo!==void 0,co=Je&&E.props.previewHover===!0,po=()=>{!E||!S||y.replaceComponent(S.zone,S.index,{...E,props:{...E.props,previewHover:!co}})},{shown:le,setShown:Le}=Xoe(),W=!!(N||E||F);return Kr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Yoe(le)}`.trim(),children:[we(Moe,{icon:we(Wa,{type:me,size:15}),name:ge,kind:J,actions:!a&&IS(e)&&E&&E.type!==Be?Kr(fH,{children:[we(cH,{label:c("Duplicate section"),title:ce??void 0,disabled:ce!==null,onClick:qe,children:we(Hoe,{size:15})}),xe&&l.hasSiteSettings&&we(Q2,{node:E,currentSlug:f,siteId:x??void 0,tokenRef:i,runAuthed:u,onNotify:n}),we(cH,{label:c("Remove section"),danger:!0,onClick:ro,children:we(Woe,{size:15})}),s?we(pH,{side:"right",onHide:s,divider:!0}):null]}):s?we(pH,{side:"right",onHide:s}):void 0}),Je&&Kr("div",{className:"sf-preview-pin",children:[Kr("div",{className:"sf-preview-pin-text",children:[we("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),we("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),we(Voe,{checked:co,onChange:po,ariaLabel:c("Preview hover state")})]}),Kr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[N?N.render(e,q):E?Kr(fH,{children:[E.type===Be&&l.hasSiteSettings&&we(lH,{}),we(VP,{children:we(Ot,{entries:we(eH,{parts:P,heading:!1,onOpen:he=>b(Mt(E.props.id,he))}),entryCount:uS(P).length,itemWord:ge})}),oe&&we(Gu,{source:oe,slug:Cs(E?.props),menuId:$u(E?.props)})]}):F?we(Ot,{omit:Bx}):we(Noe,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),W&&we(qoe,{shown:le,onChange:Le,label:c("Show hints")})]})]})}import{jsx as p,jsxs as _,Fragment as vH}from"react/jsx-runtime";var to={dark:"var(--sf-thumb-bar-dark)",soft:"var(--sf-thumb-bar-light)",accent:"var(--sf-thumb-accent)",tint:"var(--sf-thumb-accent-tint)",block:"var(--sf-thumb-block)",line:"var(--sf-thumb-border)",card:"var(--sf-thumb-card)"},SS="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function j({w:e,h:o,tone:t="dark",r=2,style:a}){return p("div",{style:{width:e,height:o,borderRadius:r,background:to[t],flex:"none",...a}})}var rte={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},V={position:"absolute",inset:0},m={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},_e=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function cr({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return _("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[p("span",{style:r("8% 26% 30% 6%",m.mark1)}),p("span",{style:r("26% 6% 8% 30%",m.mark2,"multiply")})]})}function am({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:m.muted},children:e})}function bH({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return _(vH,{children:[e&&p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),p("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:l},children:t}),a&&p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:n,color:s},children:a})]})}function bS({name:e,price:o}){return _("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",..._e(m.paper,m.paper2,150)},children:p(cr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o})]})}function fr({k:e,v:o,ok:t}){return _("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${m.rule}`,fontSize:"3.98cqw",color:m.muted},children:[p("span",{children:e}),_("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("b",{style:{color:m.text,fontWeight:700},children:o}),t&&p("span",{style:{color:m.rust,fontWeight:700},children:"\u2713"})]})]})}function ke({title:e,children:o}){return _("div",{style:{...V,background:m.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(am,{children:e}),o]})}function wH({size:e=14}){return p("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${m.mark1},${m.mark2})`}})}function wS({filled:e=5,size:o=6}){return _("span",{style:{fontSize:o,letterSpacing:"0.06em",color:m.rust,lineHeight:1},children:["\u2605".repeat(e),p("span",{style:{color:m.mark1},children:"\u2605".repeat(5-e)})]})}function Hi({n:e,label:o,tone:t=m.text}){return _("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function Xe({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:m.muted,width:o,display:"block"},children:e})}function rm({label:e,w:o="100%",filled:t}){return _("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:e}),p("span",{style:{height:9,borderRadius:3,border:`1px solid ${m.rule}`,background:t?m.paper:m.card}})]})}function CH({children:e}){return p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.text,color:m.onInk},children:e})}var ate={wheelslisting:p(ke,{title:"All wheels",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>_("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",..._e(m.paper,m.paper2,150)},children:p(cr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("b",{style:{flex:1,fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:m.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:_("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[_("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>_("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:m.text,color:m.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,p("span",{style:{opacity:.6},children:"\u2715"})]},e)),p("span",{style:{fontSize:"3.65cqw",color:m.rust,fontWeight:700},children:"Clear"})]}),_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"128 results"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted,border:`1px solid ${m.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:_("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:m.onInk},children:"Will it fit your rig?"}),_("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>_("span",{style:{flex:1,fontSize:"3.65cqw",color:m.text,background:m.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",p("span",{style:{color:m.muted},children:"\u25BE"})]},e)),p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:m.warm,color:m.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:p(ke,{title:"Tyres that suit",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>_("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:m.ink},children:p("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${m.mark2}`,boxSizing:"border-box"}})}),p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:m.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),p("span",{style:{fontSize:"3.32cqw",color:m.muted},children:o})]},e))})}),tyresizes:p(ke,{title:"Available sizes",children:p("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>p("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?m.rust:m.rule}`,color:o===0?m.rust:m.text,background:o===0?m.paper:m.card},children:e},e))})}),tyrefitment:_(ke,{title:"Will it fit your car?",children:[p("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>_("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:m.muted,background:m.paper,border:`1px solid ${m.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",p("span",{style:{color:m.muted},children:"\u25BE"})]},e))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${m.rule}`,paddingTop:3},children:[p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?m.warm:m.muted},children:o})]},e))})]}),eutyrelabel:_("div",{style:{...V,background:m.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>_("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?m.rust:m.mark1}}),p("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?m.rust:m.muted},children:e})]},e))}),_("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[p("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:m.text},children:"72"}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:m.muted},children:"dB"})]})]}),bundleoffer:_("div",{style:{...V,background:m.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(am,{children:"Buy it with"}),_("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>p("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:m.card},children:p(cr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:m.muted},children:"+"}),_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[p("span",{style:{fontSize:"3.65cqw",color:m.muted,textDecoration:"line-through"},children:"$1,024"}),p("b",{style:{fontSize:"6.02cqw",color:m.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,..._e(m.ink,m.ink2)},children:[_("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:m.warm,fontWeight:700},children:"READY TO ORDER"}),p("b",{style:{fontSize:"6.63cqw",color:m.onInk,lineHeight:1},children:"$1,956"}),p("span",{style:{fontSize:"3.65cqw",color:m.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:m.warm,color:m.ink,flex:"none"},children:"CHECKOUT"})]}),contact:p(ke,{title:"Who do you need?",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>_("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p("b",{style:{flex:1,fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o}),p("span",{style:{fontSize:"4.64cqw",color:m.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:p(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>_("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.32cqw",color:m.muted},children:o}),p("span",{style:{fontSize:"3.32cqw",color:m.rust,fontWeight:700},children:t})]},e))})}),citypictures:p(ke,{title:"Our studios",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:m.muted},children:"A \xB7 AMERICAS"}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>_("div",{style:{position:"relative",minHeight:0},children:[p(j,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${m.scrim} 45%),${_e(m.ink,m.inkSoft2).background}`}}),p("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:m.onInk},children:e})]},e))})]})}),citymaps:p(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>_("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[p(j,{r:4,style:{...V,background:"none",border:`1px solid ${m.rule}`}}),p("b",{style:{position:"relative",fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{position:"relative",fontSize:"3.32cqw",color:m.muted},children:o}),_("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(j,{r:3,style:{...V,..._e(m.paper,m.paper2,150)}}),p(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:m.mark1,opacity:.75}}),p(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:m.rust}})]})]},e))})}),form:p(ke,{title:"Send us a message",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[_("div",{style:{display:"flex",gap:5},children:[p(rm,{label:"Name"}),p(rm,{label:"Email"})]}),p(rm,{label:"Message",filled:!0}),p(CH,{children:"SEND"})]})}),appointmentbooking:p(ke,{title:"Book a fitting",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?m.text:m.paper,color:o===2?m.onInk:m.muted},children:e},e))}),p("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?m.rust:m.rule}`,color:o===1?m.rust:m.muted,background:o===3?m.paper:m.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:p(ke,{title:"Leave a review",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(wS,{filled:4,size:14}),p(rm,{label:"Your review",filled:!0}),p(CH,{children:"POST"})]})}),submitbuild:p(ke,{title:"Show us your build",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${m.mark1}`,borderRadius:5,background:m.paper},children:[p("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:m.rust,fontWeight:300},children:"+"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"Drop a photo of your rig"})]})}),masthead:_("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[p("span",{style:{height:1.5,background:m.text}}),p("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:m.text,lineHeight:1},children:"THE TRACK"}),_("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:m.muted},children:[p("span",{children:"Issue 14"}),p("span",{children:"Spring 2026"})]}),p("span",{style:{height:1,background:m.rule}})]}),featuredcover:_("div",{style:{...V,overflow:"hidden",..._e(m.ink,m.inkSoft2)},children:[p(cr,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${m.scrim},transparent 62%)`}}),_("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.warm},children:"FEATURE"}),p("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:m.onInk},children:"Four days on the Madigan Line"})]})]}),longread:_("div",{style:{...V,background:m.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:m.rust},children:"12 MIN READ"}),p("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:m.text},children:"What breaks first, and why"}),p(Xe,{children:"Every failure starts in the same place:"}),p(Xe,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:_("div",{style:{...V,background:m.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[p("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:m.text},children:"Why offset beats width"}),p(Xe,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(Xe,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(Xe,{w:"80%",children:"Width follows from the space left."})]}),series:p(ke,{title:"Recurring columns",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>_("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:3,height:12,borderRadius:2,background:m.rust,flex:"none"}}),p("b",{style:{flex:1,fontSize:"4.64cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:o})]},e))})}),events:p(ke,{title:"Latest posts",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[m.inkSoft,m.inkSoft2,"Madigan Line, four days"],[m.rust,m.warm,"Why offset beats width"]].map(([e,o,t])=>_("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{width:24,height:18,borderRadius:3,flex:"none",..._e(e,o,150)}}),_("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:t}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:_("div",{style:{...V,background:m.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.muted},children:"POLICY"}),p("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:m.text,lineHeight:1.1},children:"Returns & refunds"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),p("span",{style:{height:2,width:26,background:m.rust,borderRadius:1}})]}),docbody:p("div",{style:{...V,background:m.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>_("div",{style:{display:"flex",gap:5},children:[p("b",{style:{fontSize:"3.98cqw",color:m.rust,flex:"none"},children:e}),p(Xe,{children:o})]},e))}),docmetacards:p(ke,{title:"At a glance",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>_("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"5.31cqw",color:m.text,lineHeight:1},children:e}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:o})]},o))})}),doctabs:_("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?m.text:m.muted,background:o===0?m.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?m.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),p("span",{style:{height:1,background:m.rule}}),_("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(Xe,{children:"Unfitted wheels come back within 30 days, no questions."}),p(Xe,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:_("div",{style:{...V,background:m.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[p("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:m.text},children:"The right wheel is the boring one."}),_("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Xe,{children:"Forged, correctly offset, rated for what you actually"}),p(Xe,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:p(ke,{title:"Key features",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>_("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{fontSize:"4.64cqw",color:m.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),p("span",{style:{fontSize:"4.31cqw",color:m.text},children:e})]},e))})}),statsparagraph:_("div",{style:{...V,background:m.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[_("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p(Hi,{n:"27k",label:"Rigs"}),p(Hi,{n:"4.9",label:"Rating"})]}),_("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Xe,{children:"Twelve years of fitting the same three questions, and the"}),p(Xe,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:_(ke,{title:"Load vs weight",children:[p("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>p("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?m.rust:m.mark1}},o))}),p("span",{style:{height:1,background:m.rule,marginTop:-4}})]}),mockup:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",..._e(m.inkSoft,m.ink)},children:_("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:m.card,boxShadow:`0 6px 14px ${m.scrim}`},children:[p("div",{style:{height:9,background:m.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>p("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:m.mark1}},e))}),_("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{height:4,width:"56%",borderRadius:1,background:m.mark2}}),p("span",{style:{height:14,borderRadius:2,..._e(m.paper,m.paper2,150)}}),p("span",{style:{height:3,width:"38%",borderRadius:1,background:m.rust}})]})]})}),manifesto:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",..._e(m.ink,m.ink2)},children:_("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:m.onInk},children:["We build for the ",p("span",{style:{color:m.warm},children:"last"})," ten percent of the track."]})}),timeline:p(ke,{title:"Our story",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>_("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&p("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:m.rule}}),p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:m.rust,zIndex:1}}),_("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:m.text},children:e}),p(Xe,{children:o})]})]},e))})}),timelinetrack:_("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"Milestones"}),_("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[p("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:m.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[p("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?m.warm:m.mark1}}),p("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?m.warm:m.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:_("div",{style:{...V,overflow:"hidden",..._e(m.paper,m.paper2,150)},children:[p("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:m.mark1,opacity:.75}}),p("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:m.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>p("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:m.rust}},e)),p("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:m.text},children:"3 fitting bays"})]}),banner:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:m.rust},children:[_("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("b",{style:{fontSize:"6.02cqw",color:m.onInk},children:"End of season \xB7 20% off"}),p("span",{style:{fontSize:"3.98cqw",color:m.onInk,opacity:.8},children:"Fitted free, this month only."})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.onInk,color:m.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:_("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[p("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:m.text},children:"Not sure what fits?"}),_("div",{style:{display:"flex",gap:5},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.text,color:m.onInk},children:"FIND MY FIT"}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${m.text}`,color:m.text},children:"CALL US"})]})]}),ticker:p("div",{style:{...V,overflow:"hidden",background:m.ink,display:"flex",alignItems:"center"},children:p("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:m.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:_("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",..._e(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:m.muted},children:"Back online in"}),p("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>_("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&p("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:m.warm},children:":"}),_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[p("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:m.onInk,fontVariantNumeric:"tabular-nums"},children:e}),p("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:m.onInk},children:o})]})]},o))})]}),breadcrumb:p("div",{style:{...V,background:m.card,display:"flex",alignItems:"center",padding:"0 13px"},children:_("span",{style:{fontSize:"4.64cqw",color:m.muted},children:["Home ",p("span",{style:{opacity:.5},children:"/"})," Wheels ",p("span",{style:{opacity:.5},children:"/"})," ",p("span",{style:{color:m.text,fontWeight:700},children:"20 inch"})]})}),categorybar:_("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?m.text:m.paper,color:o===0?m.onInk:m.muted},children:e},e))}),p("span",{style:{height:1,background:m.rule}})]}),intro:_("div",{style:{...V,overflow:"hidden",background:m.card},children:[p("div",{style:{position:"absolute",inset:0,..._e(m.ink,m.inkSoft2)}}),p(cr,{size:64,style:{right:8,top:6}}),_("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:m.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${m.scrim}`},children:[p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:m.text},children:"Since 1998"}),p(Xe,{children:"One shed, one lathe, one idea."}),p(Xe,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:p(ke,{title:"Photo gallery",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.inkSoft,m.ink],[m.paper2,m.mark2],[m.ink,m.inkSoft2],[m.warm,m.paper2],[m.mark2,m.inkSoft]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,140+t*22)}},t))})}),gallery:_(ke,{title:"Gallery",children:[p("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?m.text:m.muted,borderBottom:`1.5px solid ${o===0?m.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.ink,m.inkSoft],[m.paper2,m.mark2]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,150+t*20)}},t))})]}),ordersummary:_(ke,{title:"Order summary",children:[_("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[p("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",..._e(m.paper,m.paper2,150)},children:p(cr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),_("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),_("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(fr,{k:"Subtotal",v:"$1,956"}),p(fr,{k:"Fitting",v:"Free"}),_("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[p("b",{style:{color:m.text},children:"Total"}),p("b",{style:{color:m.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:p(ke,{title:"Delivery",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>_("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?m.rust:m.rule}`,background:r?m.paper:m.card},children:[p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?m.rust:m.mark1}`,background:r?m.rust:"transparent"}}),p("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:m.text},children:t})]},e))})}),paymentbadges:_("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(am,{children:"Ways to pay"}),p("div",{style:{display:"flex",gap:5},children:[["VISA",m.ink],["MC",m.rust],["AMEX",m.inkSoft],["PayPal",m.ink2]].map(([e,o])=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:m.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:_("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",..._e(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"By the numbers"}),_("div",{style:{display:"flex",gap:8},children:[p(Hi,{n:"27k",label:"Rigs fitted",tone:m.onInk}),p(Hi,{n:"12",label:"Years",tone:m.onInk}),p(Hi,{n:"4.9",label:"Avg rating",tone:m.warm})]})]}),testimonials:_("div",{style:{...V,overflow:"hidden",background:m.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[p("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:m.rust,opacity:.16},children:"\u201D"}),p(wS,{filled:5,size:7}),p("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:m.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),_("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p(wH,{}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:_(ke,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[m.inkSoft,m.inkSoft2],[m.rust,m.warm],[m.ink,m.inkSoft],[m.mark2,m.mark1]].map(([e,o],t)=>p("div",{style:{flex:1,borderRadius:3,..._e(e,o,140+t*15)}},t))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>_("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(wH,{size:12}),_("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[_("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[p("b",{style:{fontSize:"3.98cqw",color:m.text},children:e}),p(wS,{filled:o})]}),p(Xe,{children:t})]})]},e))})]}),logos:_("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"As fitted by"}),p("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>p("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:m.onInk,opacity:.82},children:e},e))})]}),prose:_("div",{style:{...V,background:m.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:m.text},children:"Why offset matters"}),_("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:m.rust,marginTop:1},children:"T"}),_("div",{style:{display:"flex",flexDirection:"column"},children:[p(Xe,{children:"he number on the back of your wheel decides whether the"}),p(Xe,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:p(ke,{title:"What you get",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>_("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:3,background:m.rust,opacity:.9}}),p("b",{style:{fontSize:"3.98cqw",color:m.text},children:e}),p(Xe,{children:o})]},e))})}),faq:p(ke,{title:"Questions",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>_("div",{style:{borderBottom:`1px solid ${m.rule}`,padding:"4px 2px"},children:[_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"4.64cqw",color:m.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&p(Xe,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:_("div",{style:{...V,overflow:"hidden",..._e(m.ink,m.ink2)},children:[p("div",{style:{...V,background:`linear-gradient(90deg,${m.scrim},transparent 70%)`}}),p("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:p(bH,{over:"NEW \xB7 SUMMER",overTone:m.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:m.warm,ctaFg:m.ink,tone:m.onInk})}),p(cr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:_("div",{style:{...V,display:"flex",background:m.paper,overflow:"hidden"},children:[p("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:p(bH,{over:"ALL-TERRAIN",overTone:m.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:m.text,ctaFg:m.onInk,tone:m.text})}),p("div",{style:{flex:1,position:"relative",..._e(m.inkSoft,m.inkSoft2)},children:p(cr,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(ke,{title:"Best sellers",children:_("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[p(bS,{name:"Ridge 19",price:"$365"}),p(bS,{name:"Ridge 29",price:"$410"}),p(bS,{name:"Ridge 39",price:"$455"})]})}),collections:p(ke,{title:"Shop by category",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",m.inkSoft,m.inkSoft2],["Tyres",m.rust,m.warm],["Lift kits",m.ink,m.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:m.onInk,..._e(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:_("div",{style:{...V,display:"flex",background:m.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",..._e(m.paper,m.paper2,150)},children:p(cr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),_("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.rust},children:"NITTO"}),p("b",{style:{fontSize:"6.29cqw",color:m.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:m.text},children:"$489"}),p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:m.text,color:m.onInk},children:"ADD TO CART"})]})]}),spectable:p(ke,{title:"Specifications",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(fr,{k:"Diameter",v:'20"'}),p(fr,{k:"Width",v:"9.0J"}),p(fr,{k:"Offset",v:"+12"}),p(fr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(ke,{title:"Will it fit?",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(fr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(fr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(fr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:_("div",{style:{...V,background:m.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(am,{children:"How it works"}),p("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:"50%",background:m.text,color:m.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),p("span",{style:{fontSize:"3.98cqw",color:m.text,fontWeight:600},children:e})]},e))})]}),detailrows:p("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=p("div",{style:{flex:1,..._e(t?m.rust:m.inkSoft,t?m.warm:m.inkSoft2)}},"art"),a=_("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[p("b",{style:{fontSize:"4.64cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:m.muted,lineHeight:1.3},children:o})]},"tx");return p("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:p("div",{style:{...V,background:m.ink,color:m.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[p("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},kH={subscribe:_("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[_("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[_("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p(j,{w:8,h:8,r:2,tone:"accent"}),p(j,{w:38,h:7,r:3,tone:"dark"}),p(j,{w:16,h:7,r:3,tone:"accent"})]}),p(j,{w:38,h:4,r:2,tone:"soft"})]}),p("div",{style:{height:1,background:to.line,marginBottom:10}}),_("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${to.line}`,borderRadius:7,padding:10},children:[_("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[p(j,{w:"46%",h:3,r:2,tone:"accent"}),p(j,{w:"84%",h:8,r:4,tone:"dark"}),p(j,{w:"56%",h:8,r:4,tone:"accent"}),p(j,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),_("div",{style:{display:"flex",gap:5,marginTop:4},children:[p("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${to.line}`,background:to.block}}),p(j,{w:34,h:13,r:5,tone:"accent"})]})]}),_("div",{style:{flex:1,background:to.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${to.line}`:"none",paddingTop:o?4:0},children:[p(j,{w:34,h:4,r:2,tone:"dark"}),p(j,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:_("div",{style:{...V,display:"flex"},children:[p("div",{style:{width:"44%",background:SS}}),_("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"44%",h:5,r:3,tone:"accent"}),p(j,{w:"88%",h:8,r:4,tone:"dark"}),p(j,{w:"70%",h:8,r:4,tone:"dark"}),p(j,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:_(vH,{children:[p(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[_("div",{style:{display:"flex",alignItems:"center",gap:9},children:[p(j,{w:16,h:16,r:4,tone:"accent"}),p(j,{w:"20%",h:9,r:4,tone:"dark"})]}),p(j,{w:"62%",h:10,r:5,tone:"dark"}),p(j,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:p("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:_("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(j,{w:"22%",h:12,r:4,tone:"dark"}),_("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:_("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[_("div",{style:{display:"flex",gap:14},children:[_("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"60%",h:9,r:4,tone:"dark"}),p(j,{w:"90%",h:5,r:2,tone:"soft"}),p(j,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"50%",h:6,r:3,tone:"dark"}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),p("div",{style:{height:1,background:to.line}}),_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"30%",h:5,r:2,tone:"soft"}),p(j,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:p("div",{style:{...V,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>p("div",{style:{borderRadius:6,background:to.block}},o))}),blanksection:p("div",{style:{...V,padding:14,display:"flex"},children:_("div",{style:{flex:1,border:`1px dashed ${to.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[p(j,{w:14,h:2,r:1,tone:"tint"}),p(j,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:_("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),p(j,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:SS},children:[p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),p(j,{w:16,h:10,r:3,tone:"accent"}),p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"64%",h:13,r:4,tone:"dark"})}),text:_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"96%",h:6,r:3,tone:"soft"}),p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"58%",h:6,r:3,tone:"soft"})]}),image:p("div",{style:{position:"absolute",inset:14,borderRadius:7,background:SS}}),button:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center"},children:p(j,{w:"34%",h:16,r:8,tone:"accent"})}),menu:_("div",{style:{...V,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"48%",h:7,r:3,tone:"dark"}),p(j,{w:"82%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"}),p(j,{w:"74%",h:5,r:2,tone:"soft"}),p(j,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(j,{w:"56%",h:8,r:3,tone:"dark"}),_("div",{style:{display:"flex",gap:6},children:[p("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${to.line}`}}),p(j,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>p(j,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p(j,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>p(j,{w:20,h:13,r:3,tone:"dark"},e))]}),search:p("div",{style:{...V,padding:"0 18%",display:"flex",alignItems:"center"},children:_("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${to.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[p("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${to.dark}`}}),p(j,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${to.dark}`}}),p("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${to.dark}`},children:p(j,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:_("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[_("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${to.line}`},children:[p(j,{w:22,h:6,r:2,tone:"dark"}),p(j,{w:6,h:4,r:1,tone:"soft"})]}),_("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${to.line}`},children:[p(j,{w:"80%",h:4,r:2,tone:"accent"}),p(j,{w:"64%",h:4,r:2,tone:"soft"}),p(j,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p("div",{style:{height:1,background:to.line}}),_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"38%",h:5,r:2,tone:"soft"}),_("div",{style:{display:"flex",gap:5},children:[p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:p("div",{style:{position:"absolute",inset:14,borderRadius:8,background:to.block}})};function PH({type:e}){let o=rte[e]??"",t=ate[o]??kH[o]??kH.fallback;return p("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as pm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as vs,jsxs as TH}from"react/jsx-runtime";import nte from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as ste}from"efficient-easel/rail";import{Tooltip as lte}from"efficient-shell/ui";import{HintsToggle as ite,hintsFoldClass as dte}from"efficient-easel/panel";import{useHints as fte}from"efficient-easel/screen/lib/hints";function OH({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Fn(),{shown:d,setShown:f}=fte();return TH("div",{className:`sf-styles ${dte(d)}`.trim(),children:[vs(nte,{icon:vs(ste,{}),title:c("Styles"),context:vs(lte,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:vs("span",{className:"sf-name-text",children:i})})}),TH("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[vs(_f,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),vs(ite,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as io,jsxs as Ka,Fragment as xte}from"react/jsx-runtime";import{Fragment as HH,useEffect as WH,useRef as OS}from"react";import{useTreeDrag as $H}from"efficient-easel/drag";import{GlobeIcon as hte,ImageIcon as Ite,LocationIcon as gte,MapIcon as yte,TextLinesIcon as Ste,TrashIcon as zH}from"efficient-easel/icons";import{Subtree as UH,TreeRow as $i,TreeRowAction as jH,TreeSeam as GH}from"efficient-easel/tree";import{useEaselStrings as bte}from"efficient-easel/strings";import{isSelectionMode as wte}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as cte}from"react";var pte={level:"groups"},_H=pte,CS=new Set;function _t(e){_H=e;for(let o of CS)o()}function ute(e){return CS.add(e),()=>{CS.delete(e)}}var EH=()=>_H;function AH(){return cte(ute,EH,EH)}var Wi=e=>String(e?.group??""),kS=new WeakMap,mte=0;function nm(e){let o=kS.get(e);return o||(o=`loc${++mte}`,kS.set(e,o)),o}var FH=(e,o)=>o||e||"Ungrouped",BH={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
337
- Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Ga(e){return ud(e,Wi,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var vS=e=>e.flatMap(o=>o.cards),LH=(e,o,t)=>Math.min(Math.max(e,o),t);function sm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Wi(e[a])===o){if(r===t)return a;r++}return-1}function PS(e,o,t){let r=Ga(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=LH(o<t?t-1:t,0,r.length);return r.splice(n,0,a),vS(r)}function TS(e,o,t,r,a){let n=Ga(e),s=n.find(x=>x.key===o),l=n.find(x=>x.key===r);if(!s||!l||t<0||t>=s.cards.length)return e;let[i]=s.cards.splice(t,1),d=o===r?i:{...i,group:l.key,groupName:l.name};d!==i&&kS.set(d,nm(i));let f=LH(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),vS(n)}function RH(e,o){let t=Ga(e),r=t.find(n=>n.key===o),a={...BH,group:o,groupName:r?.name??""};return r?(r.cards.push(a),vS(t)):[...e,a]}function DH(e){let o=new Set(Ga(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...BH,group:r,groupName:""}],key:r}}function NH(e,o){return e.filter(t=>Wi(t)!==o)}function MH(e,o,t){let r=sm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function UHe(e,o,t){let r=e.flatMap((s,l)=>Wi(s)===o?[l]:[]),a=e.slice();r.forEach((s,l)=>{a[s]=t[l]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function jHe(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Wi(n)===r);return a.length?a:t(r)})}var im="ContactLocations",lm=e=>({parentId:`locations-${e}`,slot:"groups"}),ES=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function KH(e,o){let{readOnly:t,selected:r}=o,a=bte().tree,n=o.data?.content??[],s=wte(e),l=OS(null);WH(()=>{let k=r?.type===im?String(r.props.id):null;k&&k!==l.current&&_t({level:"groups"}),l.current=k},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:f}=hL(),x=AH(),u=(k,y)=>{let b=n[k];b&&o.replace(k,{type:b.type,props:{...b.props,locations:y}})},h=k=>{let y=n[k]?.props?.locations;return Array.isArray(y)?y:[]},I=$H({keyOf:k=>`group:${k.si}:${k.index}`,readOnly:!!t,canDrop:(k,y)=>y.parentId===lm(k.si).parentId&&y.slot==="groups",onDrop:(k,y)=>{u(k.si,PS(h(k.si),k.index,y.index)),x.level==="city"&&_t({level:"groups"})},onStep:(k,y)=>{u(k.si,PS(h(k.si),k.index,y<0?k.index-1:k.index+2)),x.level==="city"&&_t({level:"groups"})}}),w=$H({keyOf:k=>`city:${k.si}:${k.group}:${k.index}`,readOnly:!!t,canDrop:(k,y)=>y.parentId===lm(k.si).parentId&&y.slot.startsWith("cities:"),onDrop:(k,y)=>{let b=y.slot.slice(7);u(k.si,TS(h(k.si),k.group,k.index,b,y.index)),_t({level:"group",key:b})},onStep:(k,y)=>{u(k.si,TS(h(k.si),k.group,k.index,k.group,y<0?k.index-1:k.index+2)),x.level==="city"&&_t({level:"group",key:k.group})}}),T=OS(n);T.current=n;let O=OS(()=>{});WH(()=>{f(k=>{let y=Kp(k);if(!y)return;let b=T.current.findIndex(E=>E.props?.id===y.nodeId);b<0||O.current(b,{level:y.part,index:y.index})})},[f]);let F=(k,y)=>{l.current=n[k]?.props?.id??null,o.select(k),_t(y),e.reveal();let b=n[k]?.props?.id;typeof b=="string"&&(y.level==="city"||y.level==="image"||y.level==="map")?d(Gp(b,y.index,y.level)):d(null),typeof b=="string"&&o.scrollTo(b)};return O.current=F,{renderLocationTree:(k,y,{rowClick:b,isCollapsed:E,toggleCollapse:B})=>{let R=h(y),C=Ga(R),L=String(k.props.id),g=s&&r?.props.id===L,P=S=>io(GH,{...t?{}:I.seam({place:{...lm(y),index:S}})},`seam:${L}:groups:${S}`),v=(S,N)=>io(GH,{...t?{}:w.seam({place:{...ES(y,S),index:N}})},`seam:${L}:cities:${S}:${N}`);return Ka(xte,{children:[io($i,{icon:io(Ste,{size:13}),name:c("Texts"),words:a,onSelect:()=>F(y,{level:"texts"}),selected:g&&x.level==="texts",rowProps:{onClick:b(()=>F(y,{level:"texts"}))}}),C.map((S,N)=>{let H=`${L}::grp::${S.key}`,q=E(H),z=g&&x.level==="group"&&x.key===S.key,ne=S.name||S.key?FH(S.key,S.name):c("Ungrouped"),ge={...ES(y,S.key),index:S.cards.length},J=w.row({item:{si:y,group:S.key,index:-1},place:ge,into:ge,canDrag:!1},{onClick:b(()=>F(y,{level:"group",key:S.key}))}),me=I.row({item:{si:y,index:N},place:{...lm(y),index:N}},J.rowProps);return Ka(HH,{children:[N===0&&P(0),io($i,{icon:io(hte,{size:13}),name:ne,words:a,onSelect:()=>F(y,{level:"group",key:S.key}),selected:z,draggable:me.draggable,dragging:me.dragging,drop:me.drop??J.drop,fold:{open:!q,label:c("group"),onToggle:()=>B(H)},actions:io(jH,{kind:"delete",label:Rt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",S.cards.length,{label:ne}),onClick:()=>{u(y,NH(R,S.key)),_t({level:"groups"})},children:io(zH,{size:15})}),rowProps:me.rowProps,count:S.cards.length,countLabel:Rt("{n} city","{n} cities",S.cards.length)}),!q&&Ka(UH,{children:[S.cards.map((oe,xe)=>{let ce=sm(R,S.key,xe),qe=g&&x.level==="city"&&x.index===ce,ro=String(oe?.name??"")||c("City"),wo=`${L}::city::${nm(oe)}`,Je=E(wo),{rowProps:co,...po}=w.row({item:{si:y,group:S.key,index:xe},place:{...ES(y,S.key),index:xe}},{onClick:b(()=>F(y,{level:"city",index:ce}))});return Ka(HH,{children:[xe===0&&v(S.key,0),io($i,{icon:io(gte,{size:13}),name:ro,words:a,onSelect:()=>F(y,{level:"city",index:ce}),selected:qe,...po,fold:{open:!Je,label:ro,onToggle:()=>B(wo)},actions:io(jH,{kind:"delete",label:c("Delete {name}",{name:ro}),onClick:()=>{u(y,MH(R,S.key,xe)),_t({level:"group",key:S.key})},children:io(zH,{size:15})}),rowProps:co}),!Je&&Ka(UH,{children:[io($i,{icon:io(Ite,{size:13}),name:c("Image"),words:a,onSelect:()=>F(y,{level:"image",index:ce}),selected:g&&x.level==="image"&&x.index===ce,rowProps:{onClick:b(()=>F(y,{level:"image",index:ce}))}}),io($i,{icon:io(yte,{size:13}),name:c("Map"),words:a,onSelect:()=>F(y,{level:"map",index:ce}),selected:g&&x.level==="map"&&x.index===ce,rowProps:{onClick:b(()=>F(y,{level:"map",index:ce}))}})]}),v(S.key,xe+1)]},nm(oe))}),Ka("button",{type:"button",className:"sf-add-card",onClick:()=>{let oe=RH(R,S.key);u(y,oe);let xe=Ga(oe).find(ce=>ce.key===S.key);_t(xe&&xe.cards.length?{level:"city",index:sm(oe,S.key,xe.cards.length-1)}:{level:"group",key:S.key})},children:[io("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),P(N+1)]},H)}),Ka("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:S,key:N}=DH(R);u(y,S),F(y,{level:"group",key:N})},children:[io("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:k=>{k?.type===im&&_t({level:"groups"})}}}import{useEffect as Pte,useRef as Tte}from"react";import{createNode as AS,newId as FS}from"efficient-easel/data";import{useEaselApi as Ote}from"efficient-easel/easel";import{useScreenDocument as Ete}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as _te}from"efficient-easel/screen/lib/session-context";import{useEffect as XH,useRef as Cte}from"react";import{useEasel as kte}from"efficient-easel/easel";import{ROOT_ZONE as _S}from"efficient-easel/draw";var zi={};function qH(e){return zi={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},zi}function VH(e){zi===e&&(zi={})}function Ps(){return zi}function YH(e){let o=r=>typeof r=="string"?r:null,t=e.theme_row===void 0?null:e.theme_row==="site";return{schema:String(e.schema),site:String(e.site),headingCase:o(e.heading_case),textStyles:typeof e.text_styles_is_null=="boolean"?!e.text_styles_is_null:null,textStylesList:Array.isArray(e.text_styles)?e.text_styles:null,ownThemeRow:t,deleted:e.site_deleted===!0,...Array.isArray(e.theme_presets)?{themePresets:e.theme_presets}:{},...typeof e.selected_preset=="number"?{selectedPreset:e.selected_preset}:{},...typeof e.site_gutter=="number"?{siteGutter:e.site_gutter}:{},...typeof e.site_gutter_phone=="number"?{siteGutterPhone:e.site_gutter_phone}:{},..."site_gutter_unit"in e?{siteGutterUnit:o(e.site_gutter_unit)}:{},..."site_gutter_phone_unit"in e?{siteGutterPhoneUnit:o(e.site_gutter_phone_unit)}:{}}}function ZH(e){let o=kte(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=Po(),i=Cte(new Set);XH(()=>{let d=JH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&vte(V_(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),XH(()=>{let d=qH(JH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>VH(d)},[t,r,a,n,s,l])}function JH(e){if(e.themeFromDocument||e.themeRow==="none")return{};if(e.themeRow!=="read")return null;let{siteGutter:o=null,siteGutterPhone:t=null,siteLengthUnits:r={}}=e;if(o===null&&t===null)return{theme:e.theme};let a=YH({schema:"",site:"",site_gutter:o,site_gutter_phone:t,site_gutter_unit:r.siteGutterUnit??null,site_gutter_phone_unit:r.siteGutterPhoneUnit??null});return{theme:e.theme,site:a}}function vte(e,o,t){for(let{index:r,nodes:a}of[...e].sort((n,s)=>s.index-n.index)){let n=String(a[0].props.id);t.has(n)||(t.add(n),o.replaceComponent(_S,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(_S,r+1+l,s),o.replaceComponent(_S,r+1+l,s)}))}}import{ROOT_ZONE as Ts,missingPinnedTypes as Ate,pinnedDuplicateIds as BS}from"efficient-easel/draw";function QH(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function e5(e,o){let t=e.some(l=>l?.type===eo),r=e[e.length-1],a=!t&&r?.type===Be?r:null,n=e.filter(l=>l?.type===Be&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===jo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Mo)}}async function o5(e){let o=e.blocks?.seeds?.siteHeader;if(!o)return!1;let t;try{t=await o({make:e.make,id:e.id,siteId:e.siteId,token:e.token})}catch{return!1}if(!t||t.type!==Mo||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Mo)?!1:(e.write(df(r,t)),!0)}function t5(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=Ete(),f=_te(),{hasSiteSettings:x,hasPinnedChrome:u}=r;ZH(e);let h=!!r.editsPinnedInPlace&&a!==Tr,I=a===Tr,w=Ote().getState,T=Tte(null);Pte(()=>{if(!QH({docId:n,saveStatus:l,seededDocId:T.current})||(T.current=n,!u))return;let O=w().appState.data,F=O.content,k=s?.content??[],y=(R,C)=>R.some(L=>L?.type===C);if(!x){let R=new Set(BS(F)),C=R.size?F.filter(g=>!R.has(g.props.id)):F;if(R.size&&e.setDocument({...O,content:C}),I)return;let L=Ate(C,k);if(L.includes(Be)){let g=C.length,P=e.insertSection(Be,g);e.replaceComponent(Ts,g,{type:Be,props:{id:P,blocks:em()}})}L.includes(jo)&&e.insertNode(Ts,0,Qu());return}if(I){let R=qv(F);if(R!==F&&e.setDocument({...O,content:[...R]}),!R.find(C=>C.type===Be)&&!y(k,Be)&&!y(R,eo)&&!y(k,eo)){let C=(g,P)=>AS(o,g,P),L={type:Be,props:{blocks:em()}};e.insertNode(Ts,R.length,ri(L,C,FS(eo),Ni))}return}if(h){let R=!!t?.pinnedChrome?.state().docId,C=e5(F,{hasChromeDoc:R}),L=new Set([...C.remove,...BS(F.filter(P=>!C.remove.includes(String(P.props.id))))]),g=L.size?F.filter(P=>!L.has(String(P.props.id))):F;if(g.length!==F.length&&e.setDocument({...O,content:g}),C.seedFooter&&!y(k,Be)&&!y(k,eo)){let P=(S,N)=>AS(o,S,N),v={type:Be,props:{blocks:em()}};e.insertNode(Ts,g.length,ri(v,P,FS(eo),Ni))}if(C.seedHeader&&!y(k,jo)){let P=g[0]?.type===Mo?1:0;e.insertNode(Ts,P,Qu())}if(C.seedSiteHeader&&!y(k,Mo)&&!y(k,Be)&&!y(k,eo)){let P=n;o5({blocks:pn(f),make:(v,S)=>AS(o,v,S),id:FS(Mo),siteId:i??null,token:d.current,latest:()=>w().appState.data.content,stillOpen:()=>T.current===P,write:v=>{let S=w().appState.data;e.setDocument({...S,content:[...v]})}})}return}let b=F.filter(R=>R.type!==Be),E=new Set(BS(b)),B=E.size?b.filter(R=>!E.has(R.props.id)):b;B.length!==F.length&&e.setDocument({...O,content:B}),!y(B,jo)&&!y(k,jo)&&e.insertNode(Ts,0,Qu())},[n,l,s,w,e,x,u,I,h,t,f,i,d])}import{useEffect as p5,useMemo as Mte,useRef as u5}from"react";import{useEasel as Hte}from"efficient-easel/easel";import{newId as Wte}from"efficient-easel/data";import{useEaselHost as $te}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Fte}from"efficient-easel/screen/lib/host";import{isNode as n5}from"efficient-easel/data";function Ui(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function Bte(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function LS(e,o,t,r){e.forEach((a,n)=>{if(n5(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of At(a))LS(a.props[s],a,s,r)}})}function Lte(e){let o=[];LS(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&LS(t,null,"",o);return o}function s5(e,o){return Lte(e).find(t=>String(t.node.props.id)===o)}function l5(e,o,t){if(!t)return null;let r=s5(o,t);if(!r)return null;let a=Ui(e,r.node.type),n=r.parent?`${Ui(e,r.parent.type)} \xB7 ${Bte(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var Rte=e=>e.filter(o=>!!o&&typeof o=="object"&&"value"in o).map(o=>typeof o.label=="string"?{value:o.value,label:o.label}:{value:o.value});function Dte(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Fte]:void 0,r={type:t?.type??o.type},a=t?.label??o.label;typeof a=="string"&&(r.label=a);let n=t?.options??o.options;Array.isArray(n)&&(r.options=Rte(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=i5(l))}return r}function i5(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Dte(r);a&&(o[t]=a)}return o}function d5(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Ui(e,t),fields:i5(r.fields),...f5(t)?{retired:!0}:{}});return o}function f5(e){return xo(ob,e)}function r5(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Nte(e,o){let t=e;for(let r of o?o.split("."):[]){let a=/^([A-Za-z_][A-Za-z0-9_]*)(?:\[(\d+)\])?$/.exec(r);if(!a||!t||typeof t!="object")return null;t=t[a[1]],a[2]!==void 0&&(t=Array.isArray(t)?t[Number(a[2])]:void 0)}return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function RS(e,o){return e.findIndex(t=>n5(t)&&String(t.props.id)===o)}function a5(e,o,t){let r=o||t;if(!r)return e.length;let a=RS(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function c5(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((l,i)=>{let d=f=>{throw new Error(`change ${i+1}: ${f}`)};switch(l.op){case"set_props":{let f=s5(n,l.block_id)??d(`there is no block ${l.block_id}`);"id"in l.props&&d("a block's id is never changed");let x=Nte(f.node.props,l.path)??d(`there is no ${l.path} in that block`);Object.assign(x,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??d(`there is no block type ${l.type}`),f5(l.type)&&d(`${Ui(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=fs(l.type),x=Object.keys(l.props??{}).filter(h=>h!=="id");f&&x.length&&d(`${Ui(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let u=f?f(h=>r5(e,h),r,a):{type:l.type,props:{...r5(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(a5(s,l.after,l.before),0,u);break}case"remove_block":{let f=RS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`),s.splice(f,1);break}case"move_block":{let f=RS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`);let[x]=s.splice(f,1);s.splice(a5(s,l.after,l.before),0,x);break}default:d(`"${l.op}" is not a change this editor makes`)}})}catch(l){return{ok:!1,reason:l instanceof Error?l.message:String(l)}}return{ok:!0,document:n}}var DS=e=>mo(e.requestId)??null;function m5(){let e=$te(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Hte(u=>u),s=n,l=u5({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=u5(new Map),d=t?.props?.id,f=Mte(()=>l5(s,o.data,d),[s,o.data,d]),x=f?JSON.stringify(f):"";p5(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,x]),p5(()=>e.subscribe(u=>{let{appState:h,dispatch:I,history:w,blockConfig:T}=l.current;switch(u.type){case"storefront-editor:request-document":{let O=DS(u);if(!O)return;e.send("storefront-editor:document",{requestId:O,document:h.data,blocks:d5(T)});return}case"storefront-editor:apply-page-edits":{let O=DS(u);if(!O)return;let F=Array.isArray(u.ops)?u.ops:[],k=F.length?c5(T,h.data,F,Wte,Ps()):{ok:!1,reason:"no changes"};k.ok&&(I({type:"setData",data:k.document,recordHistory:!0}),i.current.set(O,JSON.stringify(k.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:O,applied:k.ok,reason:k.ok?null:k.reason});return}case"storefront-editor:undo-page-edits":{let O=DS(u);if(!O)return;let F=i.current.get(O),k=F!==void 0&&F===JSON.stringify(h.data.content??[]);k&&w.hasPast&&(w.back(),i.current.delete(O)),e.send("storefront-editor:page-edits-result",{requestId:O,applied:k&&w.hasPast,reason:k?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof u.shown=="boolean"&&I({type:"setUi",ui:{rightSideBarVisible:u.shown}});return;default:return}}),[e])}import{useEffect as I5,useState as g5}from"react";var dm=new Map;async function zte(e,o){try{return(await Fo().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function x5(e,o){let t=dm.get(o);return t||(t=zte(e,o),dm.set(o,t),t.catch(()=>{dm.get(o)===t&&dm.delete(o)})),t}var Ute=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function NS(e){return!!e&&Ute.test(e)}function h5(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===KP?"/":`/${encodeURIComponent(o)}`;if(!NS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function y5(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=g5(null),[s,l]=g5(null),i=Zv();I5(()=>{try{l(new URL(Qv()).hostname)}catch{l(null)}},[i]),I5(()=>{if(!NS(s)||!t||!r){n(null);return}let f=!1;return x5(r,t).then(x=>{f||n(x)}),()=>{f=!0}},[s,t,r]);let d=h5({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as ji}from"react/jsx-runtime";import{useEffect as jte,useRef as S5,useState as Gte}from"react";import{ExternalIcon as b5}from"efficient-easel/icons";import{EaselIconButton as Kte}from"efficient-easel/chrome";import{Tooltip as qte,iconButtonClasses as Vte}from"efficient-shell/ui";import{useSettledPress as Yte}from"efficient-easel/easel";import{useScreenDocument as Xte}from"efficient-easel/screen/components/ScreenDocumentContext";async function Jte({pageId:e,liveHref:o,draftLink:t,ready:r=async()=>!0,win:a=window}){let n=a.open("","_blank");if(n)try{n.opener=null}catch{}let s=l=>{n&&!n.closed?n.location.href=l:a.open(l,"_blank","noopener,noreferrer")};try{await r()}catch{}return t(e).then(l=>s(l.url??o),()=>s(o))}function w5({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Xte(),a=S5(r);a.current=r;let n=Yte(),[s,l]=Gte(!1),i=S5(null);if(jte(()=>()=>i.current?.(),[]),t&&o){let d=()=>new Promise((x,u)=>{i.current=()=>x(!1),n.run(()=>{i.current=null,a.current().then(x,u)})}),f=()=>{s||n.waiting||(l(!0),Jte({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return ji(Kte,{label:c("Preview your saved draft in a new tab"),tip:c("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:ji(b5,{})})}return ji(qte,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:ji("a",{className:Vte({className:"es-iconbtn"}),href:e,...bl,"aria-label":c("Preview the live site in a new tab"),children:ji(b5,{})})})}import{createElement as Zte,useCallback as Qte,useEffect as C5,useRef as k5,useState as ere}from"react";import{ClockIcon as ore}from"efficient-shell/icons/efficient";import{useScreenDocument as tre}from"efficient-easel/screen/components/ScreenDocumentContext";function v5(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=tre(),s=j2(U2(o??null),r),l=bu(wu()),i=n.siteLiveState;C5(()=>{if(i)return kx(i),la(0),()=>kx(null)},[i]);let d=wf(),[f,x]=ere(!1),u=k5(e);u.current=e;let h=k5(!0);C5(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=Qte(()=>{x(!0),a(u.current).then(()=>{ku()}).finally(()=>{h.current&&x(!1)})},[a]);if(t.canPublish){if(i){let w=d===void 0?void 0:r||d.state==="changed"?"changed":"live",T=iS({live:w,onPress:I,busy:f,goingLive:G2(d?.changes??[])});return n.siteVersions?{...T,menuItems:rre()}:T}return iS({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function rre(){return[{key:"version-history",label:c("Version history"),icon:Zte(ore),onSelect:rM}]}import{jsx as ee,jsxs as Yo,Fragment as qi}from"react/jsx-runtime";import{useCallback as are,useEffect as nre,useId as O5,useRef as sre,useState as xt}from"react";import{useSettledAction as lre}from"efficient-easel/easel";import{Avatar as ire,Banner as Gi,Button as qa,ColoredBadge as MS,Dialog as WS,DropdownMenu as dre,FormField as E5,iconButtonClasses as fre,Inline as HS,Input as cre,ListRow as pre,Select as ure,SortableList as mre,Stack as Ki}from"efficient-shell/ui";import{EditIcon as xre,EyeIcon as P5,MenuIcon as hre,MoreIcon as Ire,PageIcon as _5,RevertIcon as T5,StylesIcon as gre}from"efficient-shell/icons/efficient";import{useScreenDocument as A5}from"efficient-easel/screen/components/ScreenDocumentContext";var yre={page:_5,menu:hre};function Sre(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function bre(e,o){let t=window.open("","_blank");if(t)try{t.opener=null}catch{}return e.preview(o).then(({url:r})=>{t&&!t.closed?t.location.href=r:window.open(r,"_blank","noopener,noreferrer")},r=>{throw t?.close(),r})}function wre({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=O5();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,x=cM(e),u=d?c("Put your drafts back?"):o?c("Restore {page} from version {n}?",{page:o.name,n:f}):c("Restore version {n}?",{n:f}),h=d?c("Your drafts go back to how they were before the restore."):o?c("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):x?c("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:x}):c("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return ee(WS,{open:!0,onClose:()=>{r||n()},size:"sm",title:u,footer:Yo(qi,{children:[ee(qa,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),ee(qa,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Yo(Ki,{gap:4,children:[o&&e.pages.length>1?ee(E5,{label:c("Page"),htmlFor:i,children:ee(ure,{id:i,value:o.id,options:e.pages.map(w=>({value:w.id,label:w.name})),onChange:l,disabled:r})}):null,ee("p",{children:h}),ee("p",{children:c("Your live website does not change until you press Publish.")}),I>0?ee(Gi,{tone:"warning",children:Rt("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",I)}):null,t?ee(Gi,{tone:"info",title:c("Your unpublished changes are kept"),children:c("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?ee(Gi,{tone:"danger",children:a}):null]})})}function Cre({version:e,onCancel:o,onSave:t}){let r=O5(),[a,n]=xt(null),[s,l]=xt(""),[i,d]=xt(!1),[f,x]=xt(null);if(e!==a&&(n(e),l(e?.name??""),x(null)),!e)return null;let u=s.trim()===e.name,h=async()=>{if(!(i||u)){d(!0),x(null);try{await t(s.trim())}catch{x(c("The name was not saved. Try again."))}finally{d(!1)}}};return ee(WS,{open:!0,onClose:()=>{i||o()},size:"sm",title:c("Name this version"),footer:Yo(qi,{children:[ee(qa,{variant:"secondary",onClick:o,disabled:i,children:c("Cancel")}),ee(qa,{onClick:()=>{h()},loading:i,disabled:i||u,children:c("Save")})]}),children:ee(E5,{label:c("Name"),htmlFor:r,hint:c("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:ee(cre,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function kre({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",i=!e.live,d=e.changes.length,f=[...l?[]:[{key:"preview",label:c("Preview"),icon:ee(P5,{}),onSelect:r}],...i?[{key:"restore",label:l?c("Put these drafts back"):c("Restore whole website"),icon:ee(T5,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:ee(_5,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:ee(xre,{}),onSelect:s}]];return ee(pre,{title:Yo("span",{className:"sf-version-title",children:[ee("span",{children:fM(e)}),e.live?ee(MS,{tone:"success",size:"xs",children:c("Live")}):null,e.name?ee(MS,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,l?ee(MS,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:ee(dre,{align:"end","aria-label":c("More"),items:f,triggerClassName:fre({variant:"ghost",size:"sm"}),trigger:ee(Ire,{})}),below:Yo(Ki,{gap:3,children:[Yo(HS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ee(ire,{name:e.createdBy,size:"xs"}),ee("span",{children:e.createdBy}),ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:uM(e.createdAt)}),d?Yo(qi,{children:[ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:Rt("{n} change","{n} changes",d)})]}):null]}),o?Yo(Ki,{gap:3,children:[d?ee(Ki,{gap:2,children:e.changes.map(x=>{let u=yre[x.kind]??gre;return Yo(HS,{gap:2,align:"center",children:[ee(u,{size:16}),ee("span",{children:pM(x)})]},`${x.kind}:${x.id}`)})}):null,Yo(HS,{gap:2,children:[l?null:ee(qa,{variant:"secondary",size:"sm",leftIcon:ee(P5,{}),onClick:r,children:c("Preview")}),i?ee(qa,{variant:"secondary",size:"sm",leftIcon:ee(T5,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function vre({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=A5(),[l,i]=xt(null),[d,f]=xt(!1),[x,u]=xt(null),[h,I]=xt(null),[w,T]=xt(!1),[O,F]=xt(null),[k,y]=xt(null),[b,E]=xt(!1),B=sre(0),R=are(()=>{let P=++B.current;f(!1),t.list().then(v=>{P===B.current&&i(v)},()=>{P===B.current&&f(!0)})},[t]);nre(()=>{e&&R()},[e,R]);let C=P=>{E(!1),bre(t,P.id).catch(()=>E(!0))},L=async()=>{if(!(!h||w)){T(!0),F(null);try{await iM({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(P){F(P instanceof ki?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{T(!1)}}},g=lre({onPress:()=>{L()},busy:w});return Yo(qi,{children:[ee(WS,{open:e,onClose:o,size:"xl",title:c("Version history"),description:Yo(qi,{children:[c("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",c("Products, prices and forms always show as they are now.")]}),footer:ee("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Yo(Ki,{gap:3,children:[b?ee(Gi,{tone:"danger",onDismiss:()=>E(!1),children:c("The preview did not open. Try again.")}):null,d?ee(Gi,{tone:"danger",action:ee(qa,{variant:"secondary",size:"sm",onClick:R,children:c("Try again")}),children:c("Version history did not load.")}):l===null?ee("p",{className:"sf-version-foot",children:c("Loading versions")}):l.length===0?ee("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):ee(mre,{"aria-label":c("Versions"),spacing:"comfortable",children:l.map(P=>ee(kre,{version:P,expanded:x===P.id,onToggle:()=>u(v=>v===P.id?null:P.id),onPreview:()=>C(P),onRestore:()=>{F(null),I({version:P,page:null})},onRestorePage:()=>{F(null),I({version:P,page:Sre(P,s)})},onName:()=>y(P)},P.id))})]})}),ee(wre,{version:h?.version??null,page:h?.page??null,waiting:r,busy:g.busy===!0,error:O,onCancel:()=>I(null),onConfirm:g.onPress,onPage:P=>I(v=>v&&{...v,page:v.version.pages.find(S=>S.id===P)??v.page})}),ee(Cre,{version:k,onCancel:()=>y(null),onSave:async P=>{await t.name(k.id,P),y(null),R()}})]})}function F5(){let{adapter:e,hasUnsavedEdits:o}=A5(),t=e.siteVersions,r=nM(),a=wf();return t?ee(vre,{open:r,onClose:aM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as I4}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as M4e,categoryLabel as H4e,paletteWithoutPinned as W4e,pinnedSection as $4e}from"efficient-easel/screen/lib/document/palette-sections";var Pre={openers:{label:"Hero & intros",icon:"image"},shop:{label:"Shop & galleries",icon:"bag"},product:{label:"Product page",icon:"box"},checkout:{label:"Checkout & ordering",icon:"bag"},about:{label:"About & brand story",icon:"book"},content:{label:"Text & content",icon:"type"},proof:{label:"Stats & social proof",icon:"star"},promo:{label:"Promotions & sign-ups",icon:"sparkles"},blog:{label:"Blog & journal",icon:"newspaper"},navigation:{label:"Navigation & wayfinding",icon:"bookmark"},legal:{label:"Legal & documents",icon:"file"},contact:{label:"Contact, FAQ & forms",icon:"mail"},structure:{label:"Layout, structure & embeds",icon:"grid"},layouts:{label:"Layouts",icon:"layers"}};function B5(e){return $(Pre,e)?.label}var L5=ab;function Tre(e){let o=Vp.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Xh.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Xh.sectionAccent}}}var Ore={Hero:{[jl]:{newChild:Tre,childLabel:Jr.Ticker}}},R5=Object.fromEntries(Object.entries(W_).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...$(Ore,e)?.[t]}]))]));function D5(e,o=0,t,r){let a=_re(Are(e,o,r),t),n=a?Pg():null;return a&&n?Ere(a,n):a}function Ere(e,o){if(e.spec)return o.offers(e.spec.childType)?e:null;let t=e.choices??[],r=t.filter(a=>o.offers(a.type));return r.length===t.length?e:r.length>0?{...e,choices:r}:null}function _re(e,o){if(!e||e.source!=="container"||!o||!cw())return e;let t=wd({data:o.data},o.id),r=typeof t?.type=="string"?Id(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(l=>l.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function Are(e,o,t){let r=t?$(R5,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=$(nt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=td(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=rH(e);return s?{source:"footer",slot:tH,choices:s,spec:null}:null}function N5(e,o=Sd(e.type)){return yd(e.type)?o.map(t=>{let r=mw(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as Fre}from"react";var $S=null,zS=new Set;function M5(e){if($S!==e){$S=e;for(let o of zS)o()}}function Bre(e){return zS.add(e),()=>{zS.delete(e)}}function f6e(){return Fre(Bre,()=>$S,()=>null)}function H5(e){return hP(e)?.ownerId??null}function W5(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||c("Menu")}if(e.type==="FooterText"){let r=typeof t.text=="string"?t.text.trim():"";return r?r.length>28?`${r.slice(0,28)}\u2026`:r:c("Text")}return e.type==="FooterEmailSignup"?t.heading||c("Email signup"):o(e.type)}import{parseOption as Lre}from"efficient-shell/format";var Rre=["pages","sections","styles"],$5="sf-editor-left-view";function z5(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem($5);return Lre(Rre,"pages",e)}catch{return"pages"}}function U5(e){if(!(typeof window>"u"))try{window.localStorage.setItem($5,e)}catch{}}function j5(e,o){return e==="styles"&&!o?"sections":e}function G5(e,o){return e?"sections":o}import{copyNode as Dre}from"efficient-easel/data";function K5(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=or(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?c("On 1 page"):c("On {count} pages",{count:a.length}):c("On other pages")}var q5={usedOn:e=>{let o=or(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>yf()?.openPage(e),adopt:(e,o)=>or()?.adopt(e.props.id,o),nodeOf:e=>or()?.place(e)??null,detach:e=>{let o=yf()?.config;return o?Dre(e,o):e},removed:()=>yf()?.reload()};import{sharedSectionsOf as dae}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as fae,scrollPreviewToTop as f4}from"efficient-easel/screen/lib/document/preview-dom";var Nre=If.mediaFields,Mre=/video|poster|focal|phone/i;function Hre(e){return($(Nre,e)??[]).find(o=>!o.includes("[]")&&!Mre.test(o))??null}function Wre(e){let o=Hre(e.type);return e.type!==G?o&&bd(e.type,e.props,o)?{fromData:!0}:o:Lk(e.props)?{fromData:!0}:o}var V5={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:Wre,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var Y5={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it \u2014 a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker \u2014 make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"A wall of your photos or your products' pictures, with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip \u2014 small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero \u2014 image beside price, bullets and a buy button.",SpecTable:"A spec sheet \u2014 labeled rows of product specifications.",ProcessSteps:"A heading over columns, or alternating rows, of image, title, blurb and specs.",DetailRows:"Repeating full-width rows \u2014 eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table \u2014 per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres \u2014 image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row \u2014 the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel \u2014 items, totals and a note.",DeliveryOptions:"Delivery tiers as cards \u2014 name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart \u2014 bars, line or donut \u2014 drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card \u2014 spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section \u2014 eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones \u2014 company history or roadmap.",Footprint:"A world map of your locations with a legend \u2014 designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid \u2014 the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal\u2026).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article \u2014 big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A page header: eyebrow, title, details and a deck.",DocTabs:"A sticky tab bar that marks the page you are on.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};import{jsx as fm}from"react/jsx-runtime";import{useState as $re}from"react";import{Button as zre,Tooltip as Ure,toast as X5}from"efficient-shell/ui";import{TemplateIcon as jre}from"efficient-easel/icons";import{useSettledAction as Gre}from"efficient-easel/easel";import{useScreenDocument as Kre}from"efficient-easel/screen/components/ScreenDocumentContext";function Z5({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=Kre(),[a,n]=$re(!1),s=async()=>{if(!a){n(!0);try{await r()?t():X5.error(c(J5))}catch{X5.error(c(J5))}finally{n(!1)}}},l=Gre({onPress:()=>{s()},busy:a});return fm(Ure,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:fm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:fm(zre,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:fm(jre,{size:15}),children:c("Save as Template")})})})}var J5="Your last changes did not save, so the template was not made. Try again.";var qre="Save your page changes first";function Q5(e){return e.hasTrustedConsole?e.canCreatePlatformTemplate?!e.capabilities.canPublish||!e.capabilities.hasSiteSettings?{visible:!1,hiddenReason:"not-a-site-page"}:e.siteId?e.hasUnsavedEdits?{visible:!0,enabled:!1,disabledReason:qre}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var e4="storefront-editor:save-as-template";import{phoneKey as Vre,tabletKey as Yre}from"efficient-easel/draw";var Xre=[ko.top,Yre(ko.top),Vre(ko.top)],cm="ContactLocations",o4="ContactRouting",t4="CityPictures",r4="CityMaps",Jre=[{key:t4,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:r4,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function a4(e=ka,o=WI){let t=eb.find(r=>r.sections.some(a=>a.type===o4))?.key;return!e.includes(cm)||!t?[]:Jre.filter(r=>!(o&&r.key===t4)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:o4,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Lr(cm);if(!i)return null;let d=Ps(),f=di(cm,i,s)(l.nodeDefaults,l.newNodeId,d);if(!f||!(o&&r===r4))return f;let x=di(cm,i,0)(l.nodeDefaults,h=>`${h}-above`,d),u=Object.fromEntries(Xre.filter(h=>x?.props[h]!==void 0).map(h=>[h,x.props[h]]));return{...f,props:{...f.props,...u}}}}))}function n4(e=ka,o){return[...a4(e,o)]}function l4(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=fs(e);if(n)return n(o,t,Ps());if(tw(e)&&a(G)&&a(ln)){let l=$(St,e);return{type:G,props:{...o(G),id:t(G),direction:"column",name:`${r(e)} section`,content:[{type:ln,props:{...o(ln),id:t(ln),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...Cl(e)!==Cl(ln)?{eyebrowLook:Cl(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...s4(e,t)}}]}}}if($(nt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=s4(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function s4(e,o){return e==="Cards"?{template:Zb(t=>o(t))}:e===Qb?{template:ew(t=>o(t))}:{}}import{useEffect as Zre,useState as Qre}from"react";import{useEaselSession as eae}from"efficient-easel/screen/lib/session-context";function i4(){let e=eae().chrome?.products?.list,[o,t]=Qre(null);return Zre(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function g4({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=uL(),a=h4().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Os(i=>{i&&(o({kind:"ticker",heroId:i}),fae(i))},[o]);return jt(()=>{t(s)},[s,t]),jt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let f=String(i.props.id);return i.type==="Hero"&&Jh(i.props)&&fo(m4,{icon:fo(Wa,{type:"ticker",size:13}),name:c(La),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function y4({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Ru(),a=h4().tree,{appState:n,config:s}=x4(u=>u),l=oae({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=Sa.find(u=>Hl[u]===i.kind),f=d&&"nodeId"in i?ba(String(i.nodeId),d):null,x=Os(u=>{let h=Hc(u);if(!h)return;let{data:I,config:w}=l.current,T=lae(I,w,{kind:"node",id:h.nodeId});if(!T)return;let O={kind:Hl[h.part],nodeId:h.nodeId};o({index:T.index,zone:T.zone},O)},[o]);return jt(()=>{t(f)},[f,t]),jt(()=>{r(x)},[r,x]),{partRows:(u,{rowClick:h})=>{let I=String(u.props.id),w=XE(u);if(w.length===0)return null;let T=k=>{let y=ba(I,k.part);return fo(m4,{icon:fo(Wa,{type:k.part==="media"?"heroMedia":"heroImage",size:13}),name:c(k.label),onSelect:()=>x(y),selected:f===y,rowProps:{onClick:h(()=>x(y))},words:a},y)},[O,...F]=w;return Vi(u4,{children:[T(O),F.length>0&&fo(sae,{children:F.map(T)})]})}}}function S4(e,o){return{partRows:(t,r)=>Vi(u4,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function cae(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=pm(),{hasPreviewLink:f}=t,x=Fo(I4()).preview?.draftLink,u=v5(e.data),h=Q5({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Os(()=>{!a||!r||i(e4,{siteId:a,slug:r})},[i,a,r]),w=y5({pageSlug:r,siteId:a,token:d}),T=o.previewHref?.(r)??w;return{barLead:()=>h.visible&&fo(Z5,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&fo(w5,{liveHref:T,pageId:n??null,draftLink:x}),mainAction:u}}function pae(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=pm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=k=>o.setView(k),[f,x]=d4(RT[0].id),[u,h]=d4(!1),{surface:I,setSurface:w}=YM(),T=()=>{if(l){d("styles"),o.reveal(),f4();return}e.show(yS),e.reveal(),f4()},O={id:"pages",label:c("Pages"),icon:fo(rae,{}),panel:({onHide:k})=>fo(HM,{activeSurface:I,onPreviewSurface:w,onNavigate:y=>{w(null),s(r?{kind:"template",id:r,pageSlug:y}:{kind:"page",slug:y,siteId:a??void 0})},onClose:k})},F=[];return!l&&i&&F.push({id:"appearance",label:c("Appearance"),icon:fo(nae,{}),active:e.kind==="website",onSelect:T}),l&&F.push({id:"styles",label:c("Styles"),icon:fo(aae,{}),panel:({onHide:k,notify:y})=>fo(OH,{tokenRef:n,siteId:a??void 0,onClose:k,onNotify:y,tab:f,onTabChange:x,revealPageGroup:u,onPageGroupRevealed:()=>h(!1)})}),{railLead:[O],railTrail:F,resolveLeftView:k=>j5(k,l),openSettings:T,openStyles:()=>{x(LT),d("styles")},openPageStyles:l?()=>{x(Ef),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(hH),e.reveal()}:void 0}}function uae(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=pm(),a=x4(s=>s.config),n=I4();jt(()=>(Cx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Cx(null)),[e,o,t,a]),jt(()=>{let s=or();if(!s||!r)return;let l=!1;return dae(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function b4(){let e=Af();return Os(o=>{l0(o,e)},[e])}function mae(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;jt(()=>{M5(s?.type==="BookingBox"&&s.props.region==="confirm"?H5(l(String(s.props.id))):null)},[s?.props.id]);let i=KH(e,o),{capabilities:{hasSiteSettings:d}}=pm();uae();let{chat:f,setChat:x,setSelected:u,setSelectHandler:h}=Lu(),I=Os(()=>n(IH),[n]),w=a==="chat";jt(()=>{u(w)},[w,u]),jt(()=>{h(I)},[h,I]);let{setOpenHandler:T}=Pi(),O=Os(()=>n(gH),[n]);jt(()=>{T(O)},[T,O]);let F=S4(g4(e),y4(e)),k=cae(o),y=pae(e,r);AM(r);let b=t.device,E=b4();return{...F,...k,...y,hasOwnRows:B=>B.type===im,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:E,wrap:B=>fo(Dx.Provider,{value:!0,children:Vi(iae.Provider,{value:b,children:[B,fo(F5,{})]})}),addPanelRow:B=>d?Vi("div",{className:"sf-addside-sitewide",children:[fo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:fo(Wa,{type:"chat",size:16})}),Vi("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{B(),I()},children:[c("Live chat"),fo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),fo(tae,{checked:f.enabled,onChange:R=>x({enabled:R}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var c4=null,US=new WeakMap;function xae(e){let o=Yw();if(!e||!o)return e;c4!==o&&(c4=o,US=new WeakMap);let t=US.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:c(r.label)})):null,spec:e.spec?{...e.spec,addLabel:c(e.spec.addLabel),...e.spec.childLabel?{childLabel:c(e.spec.childLabel)}:{}}:null},US.set(e,t)),t}var hae={isLockedBlock:(e,o)=>fu(e,o)||!!(o&&or()?.heldElsewhere(o.props.id)),duplicateBlocked:om,nestDepth:(e,o,t)=>o===Fd?Bd(e,t):0,newSectionNode:l4,canAddTo:(e,o,t,r)=>xae(D5(e,o,r,t)),blockIsOffered:aR,slotsOf:N5,resolveOnInsert:!0},Iae=new Proxy(Y5,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),gae={labelAtLevel:(e,o,t)=>c(mm(e,o,t)),descriptions:Iae,categoryLabel:e=>{let o=B5(e);return o===void 0?void 0:c(o)},firstSection:L5,blockRowName:W5,rowName:cu,plainText:rn,Icon:Wa,Thumbnail:PH,useProducts:i4,presets:n4()},yae={desktop:2e3,tablet:800,mobile:390},p4="desktop",Sae={options:GM,initial:p4,fluid:p4,fluidMin:Hb,widths:yae,hidesPerView:!0},bae={read:z5,write:e=>U5(e),forSelection:(e,o)=>G5(e,o)},wae={first:jo,last:Be,firstGroup:Mo,lastGroup:eo,isSectionGroup:jv,sectionGroupZone:Gv,panelOf:e=>e===jo?xH:null,get sharedReach(){return da()?kae:void 0},get shared(){return or()?q5:void 0},get groupTab(){return da()?aH:void 0},get groupBadge(){return da()?mS({type:eo})??void 0:void 0},get changeNotice(){return da()?nH():void 0},get band(){return da()?Cae:void 0},get groupAccepts(){return da()?Vv:void 0}},Cae={foldable:!0},kae=e=>mS(e)??K5(e);function vae(e){return{...S4(g4(e),y4(e)),onCopyItem:b4(),openSettings:()=>e.show(yS)}}function Pae(e,o){t5(e,o),m5()}var bWe={useOwnerName:Fn,useDocumentLabel:p0,useBridges:mae,useStandaloneBridges:vae,useDocumentPass:Pae,blockRules:hae,blockLook:gae,devices:Sae,leftView:bae,pinned:wae,Canvas:IM,canvasDrag:{media:V5},Inspector:SH};export{wg as a,Wt as b,$t as c,oo as d,Yue as e,Qh as f,Yhe as g,ai as h,ni as i,bA as j,wA as k,wp as l,Xhe as m,kj as n,CA as o,Jhe as p,GL as q,Bve as r,KL as s,Dve as t,ml as u,pa as v,tI as w,tme as x,Zc as y,yO as z,SO as A,d1 as B,R0 as C,wt as D,Gf as E,D0 as F,eh as G,vse as H,Pse as I,Tse as J,N0 as K,Ose as L,Kf as M,$0 as N,Fse as O,Bse as P,z0 as Q,Lse as R,Kse as S,q0 as T,Vo as U,Nn as V,so as W,Oa as X,Y,Yn as Z,Q as _,X as $,re as aa,ae as ba,de as ca,Dme as da,fe as ea,Jn as fa,Zn as ga,Yl as ha,Xl as ia,m1 as ja,Wme as ka,nU as la,x1 as ma,Ume as na,jme as oa,h1 as pa,Ih as qa,pO as ra,B3 as sa,Cl as ta,uO as ua,Jle as va,aI as wa,Vme as xa,Yme as ya,Xme as za,Jme as Aa,Zme as Ba,Qme as Ca,yle as Da,mc as Ea,bl as Fa,Sle as Ga,ble as Ha,tO as Ia,ph as Ja,p3 as Ka,u3 as La,wle as Ma,m3 as Na,Cle as Oa,rE as Pa,gfe as Qa,pE as Ra,yfe as Sa,Sfe as Ta,bfe as Ua,lp as Va,iI as Wa,S1 as Xa,ip as Ya,fxe as Za,gU as _a,yU as $a,SU as ab,cxe as bb,zo as cb,Fa as db,rs as eb,Jxe as fb,Zxe as gb,Qxe as hb,SE as ib,Bc as jb,GW as kb,Efe as lb,oA as mb,tA as nb,rA as ob,ghe as pb,sA as qb,oIe as rb,tIe as sb,kp as tb,vA as ub,Pl as vb,hO as wb,IO as xb,Sh as yb,ha as zb,AO as Ab,Lie as Bb,Rie as Cb,Die as Db,_l as Eb,rt as Fb,Uie as Gb,Ple as Hb,Hle as Ib,mh as Jb,Wle as Kb,ma as Lb,xc as Mb,Ye as Nb,ede as Ob,NO as Pb,HO as Qb,WO as Rb,vp as Sb,BA as Tb,gIe as Ub,Pp as Vb,LA as Wb,CIe as Xb,GA as Yb,Zj as Zb,Ap as _b,bge as $b,Dc as ac,r$ as bc,Hh as cc,dG as dc,Dge as ec,IF as fc,gF as gc,Nge as hc,Mge as ic,Hx as jc,Y4 as kc,Wx as lc,GT as mc,Qge as nc,FF as oc,BF as pc,LF as qc,vye as rc,Nye as sc,Mye as tc,Hye as uc,eg as vc,$F as wc,BG as xc,LG as yc,Lp as zc,zye as Ac,Uye as Bc,hSe as Cc,dB as Dc,ISe as Ec,fB as Fc,ySe as Gc,IB as Hc,gB as Ic,m8 as Jc,bB as Kc,NSe as Lc,Mp as Mc,qSe as Nc,li as Oc,XSe as Pc,vB as Qc,ZSe as Rc,PB as Sc,TB as Tc,obe as Uc,wl as Vc,F3 as Wc,dr as Xc,sbe as Yc,Hp as Zc,fbe as _c,$p as $c,Ule as ad,jle as bd,xa as cd,Gle as dd,Zx as ed,jf as fd,y0 as gd,_r as hd,Ml as id,Nce as jd,Mce as kd,Hce as ld,Wce as md,k$ as nd,$ce as od,Hc as pd,Wl as qd,Gce as rd,Gh as sd,t_ as td,r_ as ud,zh as vd,A$ as wd,Kce as xd,Wc as yd,$l as zd,zc as Ad,qce as Bd,Vce as Cd,$c as Dd,Yce as Ed,Xce as Fd,l_ as Gd,zl as Hd,Ul as Id,jc as Jd,d_ as Kd,qn as Ld,f_ as Md,Gc as Nd,Kc as Od,qc as Pd,c_ as Qd,p_ as Rd,u_ as Sd,m_ as Td,x_ as Ud,y_ as Vd,S_ as Wd,Tpe as Xd,Ope as Yd,Epe as Zd,_pe as _d,Ape as $d,ez as ae,oz as be,Fpe as ce,Bpe as de,Lpe as ee,w_ as fe,Rpe as ge,Dpe as he,rz as ie,T_ as je,sz as ke,E_ as le,__ as me,Pc as ne,xz as oe,fue as pe,D_ as qe,Iue as re,Eue as se,_ue as te,_de as ue,Al as ve,Rde as we,Dde as xe,QO as ye,fi as ze,Ut as Ae,kR as Be,eu as Ce,rTe as De,aTe as Ee,xTe as Fe,hTe as Ge,q7 as He,Hg as Ie,BR as Je,ITe as Ke,RR as Le,DR as Me,$R as Ne,eq as Oe,rq as Pe,WTe as Qe,QTe as Re,e0e as Se,xi as Te,o0e as Ue,t0e as Ve,zg as We,r0e as Xe,gCe as Ye,Bl as Ze,Bh as _e,Ac as $e,F0e as af,jn as bf,Vfe as cf,Yfe as df,LE as ef,Mq as ff,RD as gf,gi as hf,XOe as if,ZOe as jf,Zg as kf,YD as lf,jp as mf,CCe as nf,PCe as of,uL as pf,dg as qf,mL as rf,xL as sf,ECe as tf,hL as uf,Kp as vf,NCe as wf,gL as xf,bL as yf,yL as zf,J_e as Af,Z_e as Bf,Q_e as Cf,cu as Df,SN as Ef,iy as Ff,y1e as Gf,S1e as Hf,MY as If,HY as Jf,aAe as Kf,nAe as Lf,sAe as Mf,lAe as Nf,Iu as Of,gu as Pf,AAe as Qf,GN as Rf,VN as Sf,YN as Tf,XN as Uf,kBe as Vf,Twe as Wf,bu as Xf,Fu as Yf,WM as Zf,$M as _f,UM as $f,Bu as ag,tLe as bg,rLe as cg,Lu as dg,tZ as eg,uLe as fg,Pi as gg,ILe as hg,YM as ig,Bn as jg,K4 as kg,Kae as lg,qae as mg,DMe as ng,NMe as og,MMe as pg,U_ as qg,SLe as rg,Ru as sg,Dae as tg,X4 as ug,J4 as vg,Z4 as wg,VT as xg,pne as yg,Wf as zg,y6 as Ag,S6 as Bg,$ne as Cg,Eae as Dg,W6 as Eg,eO as Fg,ple as Gg,ule as Hg,f3 as Ig,mle as Jg,xle as Kg,uc as Lg,hle as Mg,zn as Ng,UO as Og,jO as Pg,oE as Qg,ufe as Rg,yE as Sg,vfe as Tg,bE as Ug,Wh as Vg,s$ as Wg,f$ as Xg,sce as Yg,xwe as Zg,Fwe as _g,Dwe as $g,YB as ah,$we as bh,zwe as ch,eCe as dh,oCe as eh,mCe as fh,ii as gh,WK as hh,xke as ih,Cke as jh,Wke as kh,$ke as lh,mve as mh,ML as nh,Bae as oh,rDe as ph,a2 as qh,Be as rh,em as sh,_t as th,AH as uh,Wi as vh,FH as wh,BH as xh,UHe as yh,jHe as zh,x5 as Ah,NS as Bh,h5 as Ch,D5 as Dh,f6e as Eh,bWe as Fh};