efficient-storefront-blocks 0.124.1 → 0.125.0

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 (88) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/chunks/{CustomHtmlCodeWindow-6QU56I6L.js → CustomHtmlCodeWindow-ROUI64CY.js} +3 -3
  3. package/dist/chunks/{EditorPreviewCheckout-TRX42H6I.js → EditorPreviewCheckout-F2HXHGBN.js} +1 -1
  4. package/dist/chunks/SiteEditorProvider-B7766ULW.js +1 -0
  5. package/dist/chunks/{chunk-S5N6H2MP.js → chunk-2KEZPQPW.js} +1 -1
  6. package/dist/chunks/{chunk-ESQTNC7T.js → chunk-ESVLXH7T.js} +3 -3
  7. package/dist/chunks/chunk-KFZLLS45.js +2 -0
  8. package/dist/chunks/chunk-MU65AZLZ.js +96 -0
  9. package/dist/chunks/{chunk-CDKQFBBA.js → chunk-O3YXHDC6.js} +1 -1
  10. package/dist/chunks/chunk-SEA3MICI.js +7 -0
  11. package/dist/chunks/{chunk-YCL4MPLF.js → chunk-T2LZCAFH.js} +1 -1
  12. package/dist/chunks/chunk-WWQ5LOLU.js +337 -0
  13. package/dist/chunks/{fitment-data-MXT6XIW5.js → fitment-data-X7PIIXMU.js} +1 -1
  14. package/dist/chunks/section-css-style-Q23EN42Q.js +1 -0
  15. package/dist/editor/lib/document/blocks/commerce/ProductGallery/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/commerce/ProductHero/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/commerce/ProductSku/fields.d.ts +2 -0
  18. package/dist/editor/lib/document/blocks/commerce/ProductSku/fields.js +1 -0
  19. package/dist/editor/lib/document/blocks/commerce/SpecTable/fields.js +1 -1
  20. package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
  21. package/dist/editor/lib/document/blocks/commerce/index.js +1 -1
  22. package/dist/editor/lib/document/config.js +1 -1
  23. package/dist/editor/lib/document/section-text-regions.js +1 -1
  24. package/dist/editor/lib/storefront-editor-words.d.ts +5 -0
  25. package/dist/editor/lib/storefront-editor-words.js +1 -1
  26. package/dist/editor.css +1 -1
  27. package/dist/index.js +38 -29
  28. package/dist/render/built-with.json +1 -1
  29. package/dist/render/components/GalleryGrid.js +3 -3
  30. package/dist/render/components/GalleryItem.d.ts +6 -0
  31. package/dist/render/components/GalleryItem.js +1 -1
  32. package/dist/render/components/LinkedProductHero.d.ts +1 -0
  33. package/dist/render/components/ProductGallery.d.ts +1 -1
  34. package/dist/render/components/ProductGallery.js +1 -1
  35. package/dist/render/components/ProductHeroPanel.d.ts +2 -1
  36. package/dist/render/components/ProductHeroPanel.js +1 -1
  37. package/dist/render/components/card-pieces/HeadlineName.js +1 -1
  38. package/dist/render/components/card-pieces/ProductCardState.d.ts +1 -0
  39. package/dist/render/components/pdp-dynamic/DynamicProductHero.d.ts +1 -0
  40. package/dist/render/components/pdp-dynamic/DynamicSpecTable.d.ts +1 -0
  41. package/dist/render/components/pdp-dynamic/DynamicSpecTable.js +1 -1
  42. package/dist/render/components/product-hero/hero-view.d.ts +1 -0
  43. package/dist/render/components/product-hero/hero-view.js +1 -1
  44. package/dist/render/components/useStickyColumns.d.ts +2 -0
  45. package/dist/render/components/useStickyColumns.js +1 -0
  46. package/dist/render/lib/catalog/from-wheel.js +1 -1
  47. package/dist/render/lib/catalog/part-skus.d.ts +2 -0
  48. package/dist/render/lib/catalog/part-skus.js +1 -0
  49. package/dist/render/lib/content/hero-seed.d.ts +1 -1
  50. package/dist/render/lib/content/hero-seed.js +1 -1
  51. package/dist/render/lib/content/product-card-seed.d.ts +1 -0
  52. package/dist/render/lib/content/product-card-seed.js +1 -1
  53. package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
  54. package/dist/render/lib/document/blocks/commerce/ProductName/meta.js +1 -1
  55. package/dist/render/lib/document/blocks/commerce/ProductSku/meta.d.ts +2 -0
  56. package/dist/render/lib/document/blocks/commerce/ProductSku/meta.js +1 -0
  57. package/dist/render/lib/document/blocks/commerce/ProductSku/render.d.ts +2 -0
  58. package/dist/render/lib/document/blocks/commerce/ProductSku/render.js +1 -0
  59. package/dist/render/lib/document/blocks/commerce/SpecTable/render.js +1 -1
  60. package/dist/render/lib/document/blocks/commerce/metas.d.ts +1 -0
  61. package/dist/render/lib/document/blocks/commerce/metas.js +1 -1
  62. package/dist/render/lib/document/blocks/commerce/renders.d.ts +1 -0
  63. package/dist/render/lib/document/blocks/commerce/renders.js +1 -1
  64. package/dist/render/lib/document/card-templates.js +1 -1
  65. package/dist/render/lib/document/lazy-draws.js +1 -1
  66. package/dist/render/lib/sections/hero-gallery.d.ts +2 -2
  67. package/dist/render/lib/sections/hero-gallery.js +1 -1
  68. package/dist/render/lib/sections/hero-sticky.d.ts +4 -0
  69. package/dist/render/lib/sections/hero-sticky.js +1 -0
  70. package/dist/render/lib/sections/product-card-text-regions.d.ts +1 -0
  71. package/dist/render/lib/sections/product-card-text-regions.js +1 -1
  72. package/dist/render/lib/wheels/spec-sheet.d.ts +19 -0
  73. package/dist/render/lib/wheels/spec-sheet.js +1 -1
  74. package/dist/routine-index.json +1 -1
  75. package/dist/value-index.json +1 -1
  76. package/dist/words.d.ts +10 -0
  77. package/dist/words.js +4 -4
  78. package/package.json +3 -3
  79. package/dist/chunks/SiteEditorProvider-IBJ5A5V3.js +0 -1
  80. package/dist/chunks/chunk-EKCLPISP.js +0 -96
  81. package/dist/chunks/chunk-MC6E4ZLD.js +0 -339
  82. package/dist/chunks/chunk-O5WPKRAC.js +0 -2
  83. package/dist/chunks/chunk-T7CS442T.js +0 -4
  84. package/dist/chunks/section-css-style-ZZ3ZOGPR.js +0 -1
  85. /package/dist/chunks/{chunk-27GSFHNV.js → chunk-AUQZLQEO.js} +0 -0
  86. /package/dist/chunks/{chunk-ESQTNC7T.js.LEGAL.txt → chunk-ESVLXH7T.js.LEGAL.txt} +0 -0
  87. /package/dist/chunks/{chunk-JJ5MCDPE.js → chunk-NMB6BD73.js} +0 -0
  88. /package/dist/chunks/{chunk-MC6E4ZLD.js.LEGAL.txt → chunk-WWQ5LOLU.js.LEGAL.txt} +0 -0
@@ -1,339 +0,0 @@
1
- import{$ as ie,D as wC,E as CC,F as _d,G as kC,I as Fd,J as hr,K as Bd,O as _C,P as Ad,Q as Ir,R as FC,S as Ld,T as BC,U as gr,V as AC,W as LC,X as RC,Y as Jo,Z as Rd,_ as wo,a as zo,b as Ds,ba as Uk,c as wd,d as sn,e as Ns,f as tC,fa as ov,g as ln,h as Cd,ha as tv,ia as pf,ja as CP,ka as kP,r as Us}from"./chunk-CDKQFBBA.js";import{a as sv,d as Vd,e as Zo,f as Yd,g as Xd,h as ef,l as Zm}from"./chunk-JJ5MCDPE.js";import{$ as Mw,$b as jC,$c as kk,$d as Gd,$e as wv,$f as tf,$j as Xm,A as Pw,Ac as sk,Ad as $k,Ae as pv,Af as of,Ah as oP,B as Tw,Ba as Qw,Bc as Om,Bd as Qr,Be as uv,Bf as wr,Bh as tP,Ca as kd,Cc as lk,Cd as zk,Ce as mv,Cf as Av,D as Ow,Da as Ms,Dc as Em,De as Zd,E as Ew,Ea as vd,Eb as cn,Ed as jd,Ef as xn,F as _w,Fa as rC,Fc as ik,Fd as Sr,Fe as xv,G as hd,Gc as dk,Gj as Vm,H as Fw,Hb as NC,Hc as fk,I as Bw,Ib as MC,Ic as ck,Ie as Dm,Ig as Um,Ii as aP,Ij as hP,Ja as aC,Jb as HC,Jc as pk,Jg as af,Jj as IP,Ka as nC,Kb as js,Kc as Xr,Kg as ea,Kj as gP,La as Hs,Lc as uk,Lg as nf,Li as nP,Mc as _m,Mi as lf,Mj as yP,N as xm,Na as dn,Nc as mk,Ne as hv,Nf as Cr,Ng as Yv,Ni as jm,Oa as sC,Oc as xk,Od as jk,Oe as Iv,Of as Lv,Og as Xv,Oi as sP,Oj as Ym,P as As,Pa as Pd,Pc as hk,Pe as Qd,Pf as Rv,Pg as Jv,Pi as lP,Q as Id,Qa as lC,Qc as Ik,Qe as gv,Qf as Dv,Qg as Zv,Qi as Gm,R as Oo,Ra as Ws,Rc as gk,Rd as Gk,Re as yv,S as hm,Sa as iC,Sc as br,Sd as Kk,Si as hn,T as an,Ta as wm,Tc as Ks,Td as qk,Ti as iP,U as Aw,Ua as dC,Uc as Jr,Uf as Nv,Uj as ff,V as Lw,Va as Cm,Vb as pn,Vc as yk,Vf as Mv,Vj as cf,W as Rw,Wa as fC,Wb as At,Wc as qs,Wf as Wm,Wi as Km,Wj as bP,X as Dw,Xa as km,Xb as WC,Xc as bk,Xf as Hv,Xi as Js,Xj as SP,Y as Nw,Yb as $C,Yc as Sk,Yd as Ro,Ye as bv,Yf as $m,Yj as wP,Z as Im,Za as cC,Zb as zC,Zc as wk,Zd as eo,Ze as Nm,Zf as Yt,_a as pC,_b as UC,_c as Ck,_e as Sv,_f as zm,_i as In,_j as vP,a as To,aa as gd,ab as Td,ac as Hd,ae as Vk,af as Cv,ag as Wv,aj as dP,b as on,bb as uC,bc as Wd,bd as vk,be as Yk,bf as kv,bg as $v,bk as PP,cb as mC,cc as GC,cd as Pk,ce as Xk,cg as zv,ck as TP,d as sw,db as xC,dd as Tk,de as Jk,df as vv,dg as Uv,dk as OP,e as pm,eb as hC,ec as KC,ed as Ok,ee as Kd,eg as jv,ek as EP,f as lw,fb as IC,fc as qC,fd as Fm,fe as Zk,fk as _P,g as f,gc as VC,gd as Ek,ge as Qk,gk as FP,h as Bt,hc as $d,hd as _k,he as Ys,hg as Gv,hj as fP,i as rn,ib as gC,ic as YC,id as Fk,ig as Kv,ij as qm,j as _s,jb as ur,jc as XC,jd as Bk,jj as cP,k as Lo,kb as Od,kc as JC,kd as Ak,kf as Pv,kj as pP,kk as Jm,l as Fs,lb as Ed,lc as ZC,ld as Bm,le as nv,lf as Tv,li as oa,mb as yC,mc as Lt,md as Lk,me as Lm,mf as Ov,mj as df,n as xw,na as zw,nb as mr,nc as We,nd as Am,ne as lv,nf as Mm,ni as Xt,nj as gn,o as hw,oa as Uw,ob as vm,oc as yr,od as Rk,of as Ev,oj as yn,ok as BP,p as Iw,pa as jw,pb as bC,pc as Tm,pd as Dk,pf as _v,ph as Qv,pj as Zs,pk as AP,q as gw,qa as Gw,qb as fn,qc as QC,qd as Nk,qf as Hm,qg as rf,qh as eP,qj as bn,qk as uf,r as yw,ra as bm,rb as $s,rc as ek,rd as Rt,rj as uP,rk as LP,s as Bs,sa as Kw,sb as zs,sc as ok,sd as Mk,ta as qw,tc as zd,td as Zr,tk as Sn,u as bw,ua as Vw,ub as SC,uc as Gs,ud as Hk,ue as iv,uf as Vt,ui as sf,uk as mf,v as Sw,va as Yw,vb as Dd,vc as tk,vd as un,ve as dv,w as ww,wa as Xw,wb as DC,wc as rk,we as Jd,wf as mn,wg as qv,wi as rP,x as Cw,xa as Jw,xb as Nd,xc as ak,xd as qt,xe as fv,y as kw,ya as pr,yb as Pm,yc as Ud,yd as Wk,ye as Rm,yf as Fv,yg as Vv,yj as mP,z as vw,za as Zw,zb as Md,zc as nk,zd as Vs,ze as cv,zf as Bv,zj as xP}from"./chunk-T7CS442T.js";import{a as uw,b as xd,c as mw,d as ev}from"./chunk-O5WPKRAC.js";import{$ as Ui,$a as Wb,$c as lS,$d as bS,$e as ES,$f as US,A as Ga,Ab as Qb,Ba as ye,Bd as uS,Be as sm,C as ws,Cd as Qi,D as Wi,Dg as ZS,E as Ot,Eb as Xi,Ed as Vo,Ef as DS,Eg as QS,F as Ka,Fa as qo,Fc as nS,Fd as Ao,Fe as rd,Fg as ew,G as He,Ga as mt,Gd as Qe,Ge as ad,Gg as ow,H as Ke,Ha as Nu,Hc as Ju,Hd as _t,He as CS,Hf as Kt,Hh as Sm,I as qa,Ia as Mu,Id as Gt,Ie as nd,Ih as nn,J as $i,Jb as eS,Jd as It,Je as sd,Jg as tw,Jh as eC,K as W,Ka as Hu,Kd as Za,Ke as kS,Kh as Yo,L as uo,La as Wu,Ld as mS,Le as vS,Lh as Xo,M as pb,Md as ed,Me as ld,Mg as rw,Mh as Sd,N as ub,Nd as xS,Ne as id,Nf as NS,Ng as aw,Nh as oC,Ob as Ji,Oc as sS,Oe as Yr,Oh as Rs,P as mb,Pa as $u,Pe as PS,Pg as nw,Q as zi,Qa as Fb,R as xb,Ra as Bb,Rb as oS,Rd as Vr,Rg as iw,S as Gr,Sa as je,Sb as tS,Sd as hS,Sg as dw,T as hb,Ta as Ab,Td as IS,Te as TS,Tf as MS,U as Ib,Ua as qi,Ub as rS,Ud as Qa,Uf as HS,Ug as cr,V as Cs,Va as Lb,Vc as z,Vd as Ts,Vf as WS,Vh as vC,W as Ru,Wa as Rb,Wb as Vu,Wc as oe,Wd as Os,We as Ft,Wf as $S,Wg as fw,X as Ce,Xa as Db,Xc as Zu,Xd as rm,Xe as Es,Xg as um,Y as j,Ya as Nb,Yc as A,Ye as lm,Yg as cw,Z as gb,Za as Mb,Zc as So,Zd as gS,Ze as im,Zg as mm,_a as Hb,_c as Ut,_d as yS,_e as OS,_f as zS,_g as md,a as ja,aa as yb,ab as $b,ad as M,af as dd,ah as pw,ai as PC,b as po,ba as ji,bb as Vi,bd as Zi,be as SS,bf as _S,bg as jS,bi as xr,c as ro,ca as bb,cb as Yi,cd as Bo,ce as am,cg as GS,d as zt,da as Sb,db as zb,dc as Yu,dd as iS,de as od,dg as pd,di as TC,ea as Du,eb as Ub,ed as ht,ef as FS,eg as KS,ei as OC,f as $o,fa as wb,fd as Et,fe as td,ff as fd,fg as ud,fi as EC,g as Ss,ga as Cb,gb as jb,gd as Qu,gf as BS,gg as cm,h as ab,ha as kb,hb as Gb,hd as dr,hf as dm,i as nb,ib as zu,id as jt,if as AS,j as sb,jb as Kb,jd as dS,jf as LS,jg as qS,ji as Co,k as lb,ka as vb,kb as qb,kf as cd,kg as VS,la as Pb,lb as Uu,ld as Fe,lf as en,ma as Tb,mb as Ya,md as qr,mf as tn,n as ib,nb as Kr,nd as Ps,nf as fr,ni as Xs,oa as Ob,ob as ju,od as Xa,og as YS,oh as gm,pb as Gu,pd as fS,pg as XS,ph as yd,qa as Eb,qb as Ku,qd as em,qh as Hw,r as db,ra as Gi,rb as Vb,rd as Ja,rf as RS,rh as ym,sa as _b,sb as Yb,sc as Xu,sd as om,sg as JS,sh as Ww,t as Le,ta as Ki,tb as Xb,u as fb,ub as qu,uc as aS,uh as bd,v as Hi,vb as Jb,vh as $w,w as cb,wb as xt,wd as cS,wh as Ls,xa as ks,xb as Zb,xd as pS,xf as fm,y as Pe,ya as Va,ye as nm,z as ao,zb as vs,zd as tm,ze as wS}from"./chunk-EKCLPISP.js";import{c as rv,d as av,e as qd}from"./chunk-27GSFHNV.js";import{jsx as Qm,Fragment as S5,jsxs as w5}from"react/jsx-runtime";import{createContext as C5,useContext as k5}from"react";var v5={mirrorHostStyles:!0,css:null,fontHrefs:[]},RP=C5(v5);function ere({value:e,children:o}){return Qm(RP.Provider,{value:e,children:o})}function Qs(){return k5(RP)}function DP(){let{css:e,fontHrefs:o}=Qs();return w5(S5,{children:[o.map(t=>Qm("link",{rel:"stylesheet",href:t},t)),e?Qm("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as P5}from"react/jsx-runtime";import{createContext as T5,useContext as O5}from"react";var NP=T5(void 0);function are({metadata:e,children:o}){return P5(NP.Provider,{value:e,children:o})}var MP=()=>O5(NP);import{jsx as io,Fragment as a5,jsxs as Li}from"react/jsx-runtime";import{useCallback as hs,useEffect as Wt,useRef as Pte,useState as e5}from"react";import{SettingsSwitch as Tte}from"efficient-easel/panel";import{PagesIcon as Ote,StylesIcon as Ete}from"efficient-easel/rail";import{PaletteIcon as _te}from"efficient-shell/icons/efficient";import{Subtree as Fte,TreeRow as n5}from"efficient-easel/tree";import{useEasel as s5}from"efficient-easel/easel";import{toItemSelector as Bte}from"efficient-easel/node-ops";import{useEaselStrings as l5}from"efficient-easel/strings";import{createContext as E5,useContext as _5}from"react";var ex=E5(!1),lre=()=>_5(ex);import{useMemo as F5,useRef as B5}from"react";import{useEaselApi as A5}from"efficient-easel/easel";import{useSectionOps as L5}from"efficient-easel/screen/lib/document/use-section-ops";function xf(){let e=A5(),o=L5(),t=B5(o);return t.current=o,F5(()=>({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 o4}from"efficient-easel/draw";import{insertAt as t4,moveTo as r4,removeAt as a4}from"efficient-easel/fields";import{useSyncExternalStore as V5}from"react";import{isNodeList as HP}from"efficient-easel/data";var WP="Flex";function wn(e,o){return Ft(e)?typeof e?.[$o]=="string"?ox(o?.[$o]):"":ox(e?.[$o])}var ox=e=>typeof e=="string"?e.trim():"",R5=e=>e.type===ao&&Array.isArray(e.props?.[sm])&&e.props[sm].some(o=>ox(o?.[$o])!==""),D5=new Intl.NumberFormat("en-US");function N5(e){return/^\d+$/.test(e)?D5.format(Number(e)):e}function Ire(e,o){let t=o?o.find(r=>r.key===e)?.value:db(Ss).find(r=>r.key===e)?.value;return t===void 0?null:N5(t)}var M5={[$o]:"any"};function tx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(wn(t)!==""||o&&wn(t,M5)!==""),a=o||R5(e),n=Ke(e,l=>He(l,i=>{let d=tx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==WP)return{node:n===t?e:{...e,props:n},names:r};let s=Le(n);if(r&&!s&&(n={...n,[ro]:Ss}),!r&&s===Ss){let{[ro]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function $P(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of Ka(r??{})){let n=$P(a,o,r.type===WP?r:t);if(n!==void 0)return n}}}function gre(e,o){if(!HP(e))return!0;let t=$P(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Le(t.props);return!r||r===Ss}function zP(e){let o=e?.content;if(!HP(o))return e;let t=o.map(r=>tx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function UP(e){return tx(e).node}import{decodePartId as Y5}from"efficient-easel/draw";function Cn(e,o){let t=qC(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?IP(t,o.index):null:VC(e)?.[o.rowKey]??null}function hf(e,o,t){let r=e.node.props,{key:a,row:n}=At(e.propKey),s=n?XC(r,a,n,e.kind,o):KC(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as KP}from"efficient-easel/draw";import{parseOption as H5}from"efficient-shell/format";var rx=e=>String(e+1).padStart(2,"0"),W5=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],ax="two-digit",jP=e=>H5(W5,ax,e),If=(e,o)=>e==="plain"?`${o+1}.`:rx(o);var lx="Contents",nx="Flex",GP="Text",$5="numberForm",z5="_contentsEntries",U5="_kickerNumber",qP="data-sf-kicker-number",j5=e=>KP(e).text.trim(),VP=e=>Qr(e?.anchor),sx=e=>String(e.props?.id??""),G5=e=>!KP(e.props?.text).hidden&&!wn(e.props)&&!Ft(e.props),el=e=>Ka(e);function YP(e){for(let o of el(e))for(let t of o){if(qt(t.props??{}))continue;if(t.type===GP&&G5(t))return t;if(t.type===GP)continue;let r=YP(t);if(r)return r}}function XP(e){return el(e).some(o=>o.some(t=>t&&!qt(t.props??{})&&(t.type===lx||XP(t))))}var JP=e=>e.type===nx&&mn(nx,e.props?.direction)==="row";function ZP(e){return el(e).some(o=>o.some(t=>t&&!qt(t.props??{})&&(t.type===lx||!JP(t)&&ZP(t))))}function K5(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||qt(n.props??{}))continue;if(n.type===lx){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(JP(n)&&ZP(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of el(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===nx&&VP(n.props)&&s&&!XP(n)){s.push({box:n,kicker:YP(n)});continue}for(let l of el(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function q5(e){return e.map(o=>({label:o.kicker?Va(j5(o.kicker.props?.text)):"",anchor:VP(o.box.props)}))}function ix(e){let o=e?.length?K5(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=sx(a.contents);n&&t.set(n,q5(a.sections));let s=jP(a.contents.props?.[$5]);a.sections.forEach((l,i)=>{let d=l.kicker?sx(l.kicker):"";d&&r.set(d,If(s,i))})}return{entries:t,numbers:r}}var Nre=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function QP(e){let o=e;if(!o?.content?.length)return e;let t=ix(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=Ke(s,h=>He(h,n)),i=l.props??{},d=l!==s,c=sx(s),x=c?r.get(c):void 0;x&&(i={...i,[z5]:x},d=!0);let m=c?a.get(c):void 0;return m&&(i={...i,[U5]:m},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var X5=`[${qP}]`,J5=["bold","italic","underline","strike","link","sup","sub"],Z5=["bullet","number"];function cx(e,o){return e?[...J5,...o?Z5:[]]:[]}function e0(e,o){let t=Y5(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}=At(a),d=o.components[n.type]?.fields?.[l],c=i?Cn(d,i):d,x=Hd(c);if(!x)return null;let m=n.props??{};if(Qv(m)!==null||!i&&dd(n.type,m,l)||n.type==="Text"&&l==="text"&&wn(m)||i&&!(Array.isArray(m[l])&&i.index<m[l].length))return null;let h=i?$d(m[l],i):m[l];return{node:n,selector:s,propKey:a,kind:x,stored:h,offPage:sf(c),panelOnly:jC(c)}}function gf(e,o){let t=e0(e,o);if(!t)return null;let{text:r,hidden:a}=oa(t.stored);if(!sk({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=Wd(t.kind);return{partId:e,value:r,rules:Gi,multiline:n,skip:X5,offered:cx(t.kind!=="plainText",n),write:s=>{let l=e0(e,o);l&&hf({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function px(e,o,t){return e?.isConnected&&e.getAttribute(We)===t?e:o?.querySelector(`[${We}="${yf(t)}"]`)??null}function yf(e){return e.replace(/["\\]/g,"\\$&")}function o0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var dx=null,fx=new Set;function Q5(){return dx}function ux(e){if(e!==dx){dx=e;for(let o of fx)o()}}function e4(e){return fx.add(e),()=>{fx.delete(e)}}function t0(){return V5(e4,Q5,()=>null)}function r0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=kS(t.type);return!r||Le(t.props)?null:{node:t,rows:r}}function n4(e,o){let t=r0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=_S(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:o4(e.ownerId,pn(t.rows,{index:e.index,rowKey:a}))}function bf(e,o){let t=n4(e,o);return t?gf(t,o):null}function a0(e,o){return bf(e,o)?.value}function n0(e,o){let t=bf(e,o);return t?(t.write(e.text),!0):!1}function s0(e,o){let t=r0(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=t4(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=r4(n,s,i);break}case"delete":l=a4(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 $Y,jsxs as Xp}from"react/jsx-runtime";import{Fragment as zY,useEffect as wN,useMemo as CN,useRef as UY,useState as _a}from"react";import{useScreenDocument as ON}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Ug}from"efficient-easel/draw/client";import jY from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as GY}from"efficient-easel/chrome";import{Input as KY,PopupMenu as qY,PopupMenuItem as kN,toast as vN}from"efficient-shell/ui";import{LayersTree as VY,TreeGroupLabel as YY,TreeRow as PN,TreeRowAction as Jp}from"efficient-easel/tree";import{AddIcon as XY,DuplicateIcon as JY,PageIcon as ZY,SettingsIcon as QY}from"efficient-easel/icons";import{PagesIcon as eX}from"efficient-easel/rail";import{useEaselHost as oX}from"efficient-easel/screen/lib/host";import{useEaselSession as jg}from"efficient-easel/screen/lib/session-context";import{useCallback as Sf,useEffect as s4,useSyncExternalStore as l4}from"react";import{useScreenDocument as f0}from"efficient-easel/screen/components/ScreenDocumentContext";var l0=new WeakMap;function ol(e){let o=l0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},l0.set(e,o)),o}function mx(e,o){e.rows=o;for(let t of e.listeners)t()}var wf=new Set;function Cf(e,o){o?wf.add(e):wf.delete(e)}function i0(e){let o=ol(e),t=e.listPages().then(r=>mx(o,wf.size?r.filter(a=>!wf.has(a.id)):r),()=>mx(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var d0=()=>null,i4=()=>()=>{};function tl(){let{adapter:e,ready:o}=f0(),t=Sf(l=>{let{listeners:i}=ol(e);return i.add(l),()=>i.delete(l)},[e]),r=Sf(()=>ol(e).rows,[e]),a=l4(o?t:i4,o?r:d0,d0);s4(()=>{if(!o)return;let l=ol(e);l.rows===null&&!l.loading&&i0(e)},[e,o]);let n=Sf(()=>o?i0(e):Promise.resolve(),[e,o]),s=Sf(l=>mx(ol(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function d4(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function c0(){let{currentSlug:e}=f0(),{rows:o}=tl();return d4(o,e)}import{canDuplicatePage as tX,DuplicatePageDialog as rX}from"efficient-easel/page-copy";import{jsx as Go,jsxs as Hg}from"react/jsx-runtime";import{useEffect as CY,useId as kY,useMemo as vY,useRef as PY,useState as Wg}from"react";import{useScreenDocument as TY}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as OY}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as xN}from"efficient-easel/page-copy";import{AddIcon as EY}from"efficient-easel/icons";import{Dialog as _Y,EmptyState as FY,Grid as BY,LoadingSpinner as AY,Paragraph as LY,SidebarActionButton as RY,SidebarLayout as DY,SidebarNavItem as $g,Title as NY,toast as hN}from"efficient-shell/ui";import{jsx as bt,jsxs as HA}from"react/jsx-runtime";import{useMemo as T8,useState as O8}from"react";import{CanvasFrame as E8}from"efficient-easel/easel";import{Button as _8,Card as F8,FitFrame as B8,Text as A8}from"efficient-shell/ui";import{jsx as h0,Fragment as S4,jsxs as w4}from"react/jsx-runtime";import{useEffect as I0,useLayoutEffect as C4}from"react";var kf="data-theme",p0="light";function f4(e){return e.getAttribute(kf)===p0?"light":"dark"}function c4(e,o){return f4(e)===o?!1:(o==="light"?e.setAttribute(kf,p0):e.removeAttribute(kf),!0)}function p4(e){return Zm(e).getItem(fm)}function pae(e,o){Zm(e).setItem(fm,o)}function u4(e,o,t=new Date().getHours()){return DS({mode:o.mode,override:p4(e),switchShown:o.switchShown,hour:t})}function u0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>c4(t,u4(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[kf]}),()=>n.disconnect()}var m4="style";function x4(e,o){let t=ud(o),r=!1;for(let a of KS){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function m0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>x4(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[m4]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as h4,VIEW_TABLET_MIN as I4}from"efficient-easel/screen/lib/content/view-tiers";var Jt={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"},Uo=Jt,g4=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),y4=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(g4([Uo.fit,Uo.fitTablet,Uo.fitPhone]))};
8
- var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
9
- var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${xt};
10
- var TABLET_MIN = ${I4}, DESKTOP_MIN = ${h4};
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(Uo.fitTablet)}, ${JSON.stringify(Uo.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(Uo.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(Uo.fit)}, ${JSON.stringify(Uo.fitTablet)}, ${JSON.stringify(Uo.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(Uo.min)}, ${JSON.stringify(Uo.minTablet)}, ${JSON.stringify(Uo.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(Uo))},
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);`,b4="storefront-fit-words";function x0(e){let o=e.createElement("script");return o.id=b4,o.textContent=y4,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var k4=`
303
- [${We}][${We}] { cursor: text; }
304
- `;function vf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=Co(),n=Kt(t);return I0(()=>{if(o)return u0(o,{mode:r,switchShown:a})},[o,r,a]),I0(()=>{if(o)return m0(o,n)},[o,n]),C4(()=>{if(o)return x0(o)},[o]),w4(S4,{children:[h0(DP,{}),h0("style",{children:k4}),e]})}import{jsx as zB}from"react/jsx-runtime";import{memo as xG}from"react";import{Render as hG}from"efficient-easel/render";import{jsx as kn}from"react/jsx-runtime";import{createContext as v4,useContext as P4,useMemo as T4}from"react";var xx=v4(null);function O4({children:e}){return kn(xx.Provider,{value:"first",children:e})}function Tf({children:e}){return kn(xx.Provider,{value:"below",children:e})}function rl(){return P4(xx)}function hx(){return rl()==="below"?{loading:"lazy"}:{}}function Of(e){let o=hx();return kn("img",{...e,...o})}var g0="laterSlideIds",E4=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function y0(e){return Jd(e?.filter(o=>!o?.type||!E4.has(o.type)))}function Pf(e,o=[]){if(Array.isArray(e))for(let t of e)Pf(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))Pf(r,o)}return o}function b0(e,o){let t=o?.type,r=o?.props?.id;return T4(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?kn(O4,{children:kn(n,{...l})}):kn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function S0(e){return e.props?Ke(e,o=>{let t=He(o,S0),r=e.type===$w&&t.every(a=>a.type===yd)?Hw(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function w0(e){return $i(e,o=>He(o,S0))}var _4="Flex",C0="ListSearch",k0=["FAQ"],F4="listKey";function v0(e,o){let t={search:e.type===C0,list:k0.includes(String(e.type))};return Ke(e,r=>{for(let a of r){let n=v0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===_4&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function P0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=Ke(e,n=>He(n,s=>P0(s,o,r)));return r&&(e.type===C0||k0.includes(String(e.type)))?{...a,props:{...a.props,[F4]:r}}:a}function T0(e){return qa(e,o=>{let t=new Set;for(let r of o)v0(r,t);return t.size?He(o,r=>P0(r,t,"")):o})}import{isNode as v3,isNodeList as nO}from"efficient-easel/data";import{jsx as Oe,Fragment as u3,jsxs as or}from"react/jsx-runtime";import{jsx as _0}from"react/jsx-runtime";import{SITE_SIDE as B4}from"efficient-easel/screen/lib/content/length-units";var O0="sideSpace",ta=B4,Dae=[{value:"box",label:"Box"},{value:ta,label:"Site"}],Nae="box",Mae="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. It has no effect when Content is Full width.";function E0(e){return e===ta?ta:"box"}function Hae(e){return e===ta?ta:void 0}import{isNodeList as A4}from"efficient-easel/data";var Ix=new Set(["FAQ"]);function jo(e,o){if(!Ix.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:A4(t)}var B0={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}},A0=new Set(Object.keys(B0));function gx(e,o){return o?.innerPadding??W(B0,e)}var vn=e=>gx(e)??{};var Ef=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),L4=new Set(["Divider"]),R4=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),F0=new Set(["ProductGrid"]);function yx(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=IC({...bC(a,mr,t),sideSpace:E0(a.sideSpace)}),s=r(a);if(!n)return s;let l=c=>_0(ie,{className:c?`${n.className} ${c}`:n.className,style:n.style,children:s}),i=xr(a,{atSectionLine:!0}),d=xr(a);return i===d?l(i):_0(Fd,{line:"by-box",draw:c=>l(c?d:i)})}}var L0={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!R4.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=gx(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:ur,unitKey:Od,fallback:r,tablet:!0,siteSide:!0})};return}if(F0.has(o))return;let a=[ur.top,ur.bottom].filter(n=>e.fields!=null&&n 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`);e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!gx(o,e)){if(F0.has(o)){yx(e);return}Ef.has(o)||L4.has(o)||yx(e,o==="Flex"?t=>NC(t.bgImage):Ix.has(o)?t=>jo(o,t):void 0,!0)}}},D4=["Heading","Text","ImageBlock","ButtonBlock"],N4=["LogoBlock"],M4={Text:e=>br(e,"text").textStyle?.startsWith("heading-")?zs.heading:zs.text,Heading:()=>zs.heading,ButtonBlock:()=>zs.text},H4={ButtonBlock:"Outer padding"};function W4(e,o){let t=e[fn],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=$s().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{[fn]:s,...l}=e;return n.length?{...l,[fn]:n}:l}function $4(e,o){if(o<=0)return null;let t=Array.isArray(e[fn])?e[fn]:[];return $s().some(r=>typeof e[r]=="number"&&!t.includes(r))?f("plus {n} px (older setting)",{n:o}):null}var R0={name:"blockPadding",applies:(e,o,t)=>(D4.includes(e)||N4.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=W(M4,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}e.fields={...e.fields,...t.ownPaddingFields?.(r,$4,W(H4,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?W4(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}},draw(e,o){Ef.has(o)||yx(e,void 0,!0)}};import{createContext as bx,useContext as _f}from"react";var D0=bx(null);function tne(){return _f(D0)===!0}function rne(){return _f(D0)!==null}var z4=bx(!1);function ane(){return _f(z4)}function nne(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 Ff=bx(null);function sne(){return _f(Ff)}import{jsx as ra}from"react/jsx-runtime";import{Component as X4,createContext as J4,lazy as wne,Suspense as Cne,useContext as Z4,useSyncExternalStore as Q4}from"react";function U4(e,o){let t=e.trim();if(!Bf(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 dne(e){return e.startsWith("/")||Bf(e)}function Bf(e){return/^(?:https?:)?\/\//i.test(e.trim())}var al=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function N0(e,o){return U4(e,o)?{...al}:{}}function fne(e){return typeof e=="string"?e.trim():""}var cne="data-sf-box-link",M0="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",Sx="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",j4="data-sf-box-jump";function G4(e){return`sf-box-jump-${e}`}function pne(e,o){return e===!0?Qr(o):""}function K4({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 une(e){let o=`[${j4}="${e}"]`,t=`.${G4(e)}`,r=`[id="${e}"]:target`;return K4({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 q4="hrefRewrite";function V4(){return ja("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function Y4(){return typeof process<"u"&&!0}function hne(e){let o=e?.[q4];return typeof o=="string"?o.trim():""}function H0(e){if(!e)return null;let o=V4(),t=o.rewrites.get(e);return!t&&!Y4()&&o.missed.add(e),t??null}var e6={Link:tv,Image:ov},W0=J4(e6);function Ene({runtime:e,children:o}){return ra(W0.Provider,{value:e,children:o})}function Cx(){return Z4(W0)}function _ne(){return Cx().pagePath??null}var o6=()=>()=>{},t6=()=>qd()||null,r6=()=>null;function a6(){return Q4(o6,t6,r6)}function aa({hrefRewrite:e,newTab:o,...t}){let{Link:r}=Cx(),a=a6(),n=o===!0?{...t,...al}:o==="auto"?{...t,...N0(t.href,a)}:t,s=H0(e);return s?ra(wx,{name:s.name,href:n.href,fallback:ra(r,{...n}),children:ra(n6,{Link:r,rewrite:s.rewrite,...n})},s.key):ra(r,{...n})}function n6({Link:e,rewrite:o,...t}){let r=po(o(t.href)),a=r&&Eb(r)?r:t.href;return ra(e,{...t,href:a})}var wx=class extends X4{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 Af(e){let{Image:o}=Cx();return ra(o,{...e})}import{jsx as t3}from"react/jsx-runtime";import{jsx as be,jsxs as ko,Fragment as Z6}from"react/jsx-runtime";import{imageCopyUrl as U0,imageSrcSet as s6}from"efficient-shell/image-copies";var $0;function kx(){return $0===void 0?{}:{host:$0}}var Ane="(max-width: 800px) 100vw, min(100vw, 1600px)",Lne="(max-width: 960px) 100vw, 50vw";function na(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=s6(e,{...kx(),...t===void 0?{}:{maxWidth:t}});return r?{src:U0(e,o,kx()),srcSet:r}:{src:e}}var l6=/[\s"'()\\;]/,i6={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function z0(e){return e.replace(/[\\"\n\r\f]/g,o=>i6[o]??o)}function Rne(e){let o=U0(e,1920,kx());return o===e?l6.test(e)?`url("${z0(e)}")`:`url(${e})`:`url("${z0(o)}")`}import{parseOption as d6}from"efficient-shell/format";var nl="solid",f6=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function j0(e){return d6(f6,nl,e)}var vx="sf-secnum-outline",G0="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",K0=`@supports (-webkit-text-stroke: 1px currentColor){.${vx}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as q0}from"efficient-shell/format";var Px="plain",V0=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],c6="line",p6={KeyFeatures:"filled"};function sl(e){return W(p6,e)??Px}function Y0(e,o){return q0(V0,sl(o),e)}function $ne(e){return q0(V0,c6,e)}import{jsxs as ia,jsx as Re}from"react/jsx-runtime";import{Fragment as Nx}from"react";import{Fragment as M6,jsx as Lx}from"react/jsx-runtime";import{Fragment as iT,jsx as cl,jsxs as _6}from"react/jsx-runtime";import{createContext as Ax,useContext as pl,useEffect as F6,useId as B6,useMemo as A6,useRef as L6}from"react";import{armEntrance as R6}from"efficient-shell/format";import{jsx as u6}from"react/jsx-runtime";import{useEffect as J0,useRef as X0,useState as m6}from"react";import{armEntrance as x6,entranceAttrs as h6,playEntrance as I6}from"efficient-shell/format";function Lf({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=X0(null),d=Ad(),c=Jo(),x=n?c:gr,m=ll(i,!0,s),{attrs:h,style:g}=h6(e[m]),k=X0(Pn.seed(e)),O=JSON.stringify(e);return J0(()=>{let T=i.current;if(T){if(o){let L=Pn.next(k.current,e,m);k.current=L.seen,L.play&&I6(T);return}return x6(T)}},[O,m,o]),x.scope(u6("div",{ref:i,className:wo(`${sn}${d.fill}${t?` ${t}`:""}`,x.className),...r,...x.attrs,...h,...Object.keys(g).length||a?{style:{...a,...g}}:{},children:d.inner(l)}))}var Pn={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Pn.seed(o);return{play:r[t]!==e[t],seen:r}}};function ll(e,o=!0,t=!1){return il(e,o,t)??"desktop"}function il(e,o=!0,t=!1){let[r,a]=m6(void 0),n=hr(t?"edge":"by-box"),{phone:s,tablet:l}=Rk(n);return J0(()=>{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),c=i.matchMedia(l),x=()=>a(d.matches?"phone":c.matches?"tablet":"desktop");return x(),d.addEventListener("change",x),c.addEventListener("change",x),()=>{d.removeEventListener("change",x),c.removeEventListener("change",x)}},[e,o,s,l]),r}var dl="@name",Z0="@body",Q0="@value",eT={[dl]:"Name",[Z0]:"Body",[Q0]:"Value"},g6={TimelineTrack:{"entries.date":dl,"entries.title":dl,"entries.blurb":Z0},Footprint:{"offices.city":dl},Stats:{"items.label":dl,"items.value":Q0}};function y6(e){let{key:o,row:t}=At(e);return t?`${o}.${t.rowKey}`:null}function Zt(e,o){if(!e)return o;let t=y6(o);return t?W(g6,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as v6,entranceAttrs as P6,scrollAttrs as T6}from"efficient-shell/format";import{parseFocal as w6,formatFocal as C6,readScroll as k6}from"efficient-shell/format";import{phoneKey as b6,tabletKey as S6}from"efficient-easel/screen/lib/content/view-tiers";var Tx=[{block:"HeroSlide",upload:"mediaImage",focus:Ms.image},{block:"HeroSlide",upload:"mediaImage2",focus:Ms.image2},{block:"HeroSingle",upload:"mediaImage",focus:Ms.image},{block:"HeroSingle",upload:"mediaImage2",focus:Ms.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],oT=e=>[e,S6(e),b6(e)],tse=[...new Set(Tx.flatMap(e=>oT(e.focus)))].sort();function tT(e,o){let[t,r,a]=oT(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var mo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},Tn="_gScroll",Rf="_cScroll",Df=Sd(Object.values(mo));function Qt(e,o){return k6(Rs(e,mo.effect,o),Rs(e,mo.zoom,o),Rs(e,mo.start,o),Rs(e,mo.end,o))}function On(e){let o={desktop:Qt(e,"desktop"),tablet:Qt(e,"tablet"),phone:Qt(e,"phone")};return Yo.every(t=>o[t].effect==="none")?null:o}function Ox(e){let o=oC(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=w6(a);return C6(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function rT(e,o){return Ox(tT(e,o))}var Nf={},Ex="_partMotion",_x=[...wd,qo,je.duration,je.delay,...Df];function nT(e){return ik(e,Ex)}function sa(e,o){return dk(e,Ex,o)}var O6=new Set([zo.kind,qo,mo.effect]);function sT(e,o,t,r){let{[t]:a,...n}=sa(e,o),s=r==null||r===""||r==="none"&&O6.has(t)?n:{...n,[t]:r};return fk(e,Ex,o,Object.keys(s).length?s:null)}function fl(e){return{entrance:ln(e),hover:Fb(e),scroll:On(e)}}function lT(e){let o=fl(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Mf(e,o){let{attrs:t,style:r}=P6(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(v6)}}function Hf(e,o){let{attrs:t,style:r}=T6(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 E6=4;function En(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&E6)&&(o=t);return o}var Fx="data-sf-part-host";function Wf(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Fx)&&!t.classList.contains(sn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var la="data-sf-part-lift",aT="sf-part-lift";function $f(e){if(e.getElementById(aT))return;let o=e.createElement("style");o.id=aT,o.textContent=Ik(`[${la}]`).join(`
317
- `),e.head.appendChild(o)}var zf=Ax(null),fT=Ax(null),cT=Ax(null);function pT({needles:e,styles:o,motions:t=Nf,type:r,atEdge:a=!1,children:n}){let s=B6(),l=hr(a?"edge":"by-box"),i=JSON.stringify([s,e,o,t,r]),d=A6(()=>{let x=Object.keys(t).filter(m=>lT(t[m]));return Lk(e,o,s,m=>Zt(r,m),m=>qs(r,m),m=>x.includes(m)?fl(t[m]):null,x)},[i]);if(!d)return cl(iT,{children:n});let c=Dk(d,{inBox:l});return _6(iT,{children:[c&&cl("style",{href:`${D6}${s}-${N6(c)}`,precedence:mT,dangerouslySetInnerHTML:{__html:ev(c)}}),cl(zf.Provider,{value:d,children:n})]})}var Bx=new WeakMap;function dT(e,o){let t=En(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:En(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)?($f(e.ownerDocument),e.setAttribute(la,"")):e.removeAttribute(la)}function uT(e){let o=L6(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=ll(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 F6(()=>{let d=o.current,c=Wf(d?.parentElement??null);if(!t&&!r&&!a||!d||!c)return;let x=s?()=>{let g=Mf(c,s),k=R6(c);return()=>{k?.(),g()}}:null,m=Bx.get(c)??[];Bx.set(c,m);let h={element:d,arm:x,entering:s!==null&&s.kind!=="none",scroll:l?()=>Hf(c,l):null,lift:a};return m.push(h),dT(c,m),()=>{let g=m.indexOf(h);g<0||(m.splice(g,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,dT(c,m),m.length||Bx.delete(c))}},[i,a]),o}var mT="sf-part-styles",D6=`${mT}-`;function N6(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 xT(e){let o=pl(zf),t=pl(fT),r=Nk(o,e);return r&&r.stamp!==t?r:null}function kse(e){return Am(pl(zf),e)}function hT({stamp:e,children:o}){return cl(fT.Provider,{value:e,children:o})}function vse({children:e}){let o=pl(zf);return cl(cT.Provider,{value:o,children:e})}function Pse(e){return Am(pl(cT),e)}function ul({value:e,children:o}){let t=xT(e),r=uT(t);return t?Lx(hT,{stamp:t.stamp,children:Lx("span",{ref:r,[pk]:t.stamp,...t.textStyle?{[Xr]:t.textStyle}:{},children:o})}):Lx(M6,{children:o})}import{jsx as Rx,Fragment as H6}from"react/jsx-runtime";function IT({className:e=""}){return Rx("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function Qo(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(Rx(IT,{},`r${a}`))}),Rx(H6,{children:t})}var Ase=IT;function qe(e,o=!1,t){let r=K6(o),a=Ki(e);if(a.length===1){let[s]=a,l=_b(s),i=l?j6(l,s.children):s.children;return ia(ul,{value:e,children:[t,Uf(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(Re("span",{"data-sf-bullet":"",className:W6,children:Uf(s.children,r)},l));return}if(s.number!=null){n.push(ia("span",{"data-sf-number":s.number,className:$6,children:[ia("span",{className:z6,children:[s.number,"."]}),Uf(s.children,r)]},l));return}l>0&&!U6(a[l-1])&&n.push(Re("br",{},`br${l}`)),n.push(Re(Nx,{children:Uf(s.children,r)},l))}),ia(ul,{value:e,children:[t,n]})}var W6="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",$6="relative block pl-[2em]",z6="absolute left-0 w-[1.6em] text-right tabular-nums";function U6(e){return e.bullet||e.number!=null}var gT="text-accent underline underline-offset-[0.18em]";function j6(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function G6(e){return DC(e)||void 0}function Uf(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(Re("span",{children:Qo(a.text)},n)),r=!0;return}r||t.push(Re("span",{},`e${n}`)),t.push(bT(a,n,o)),r=!1}),r||t.push(Re("span",{},"end")),t}function Dx(e,o){return e.length===1&&e[0].kind==="text"?Qo(e[0].text):e.map((t,r)=>t.kind==="text"?Re(Nx,{children:Qo(t.text)},r):bT(t,r,o))}function K6(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function jse(e){return yT(e)}function yT(e,o){let t=e.split(`
318
- `);return ia(ul,{value:e,children:[o,t.map((r,a)=>ia(Nx,{children:[a>0?Re("br",{}):null,Re("span",{children:r})]},a))]})}function bT(e,o,t){if(e.kind==="link")return Bf(e.href)?Re(aa,{newTab:"auto",href:e.href,className:gT,children:Dx(e.children,t)},o):Re("a",{href:e.href,className:gT,children:Dx(e.children,t)},o);let r=Dx(e.children,t),a=Pb[e.kind];if(a)return Re("span",{[Tb]:a,children:r},o);switch(e.kind){case"underline":return Re("u",{children:r},o);case"sup":return Re("sup",{children:r},o);case"sub":return Re("sub",{children:r},o);case"color":{let n=G6(e.color);return n?Re("span",{style:{color:n},children:r},o):Re("span",{children:r},o)}case"accent":case"highlight":return Re("em",{className:t,children:r},o);case"bold":return Re("strong",{className:"font-semibold",children:r},o);case"italic":return Re("em",{className:"italic",children:r},o);case"strike":return Re("s",{className:"line-through",children:r},o);default:return Re("span",{children:r},o)}}function ST(e,o=!0,t=!1){let r=e.split(`
319
- `);return Re(ul,{value:e,children:r.map((a,n)=>ia("span",{children:[t?yT(a):qe(a,o),n<r.length-1?Re("br",{}):null]},n))})}function wT(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Mx,jsxs as V6}from"react/jsx-runtime";import{jsx as q6}from"react/jsx-runtime";function CT(){return q6("span",{className:"block h-px w-[30px] bg-current"})}var Hx={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 Y6(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var X6=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Hx.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,J6=`flex items-center gap-3.5 font-mono ${Hx.labelLarge} uppercase tracking-[0.3em] opacity-80 ${Hx.labelUpTo800} max-view-wide:tracking-[0.25em]`;function _n({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let l=Jo(),i=s?l:gr;if(o==="line")return i.scope(V6("div",{className:wo([a,J6,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Mx(CT,{}),Mx("span",{children:qe(e)})]}));let d=o==="filled"?X6:Y6(t,r);return i.scope(Mx("span",{className:wo([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:qe(e)}))}var Te={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)]"},kT=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Te.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Te.shelfHeading1} ${Te.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Te.shelfHeading2} ${Te.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Te.shelfHeading3} ${Te.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Te.shelfHeading4} ${Te.shelfHeadingUpTo800Xl}`}],Q6="lg";function e3(e){return(kT.find(o=>o.value===e)??kT.find(o=>o.value===Q6)).cls}var Fn=(e,o=!1)=>typeof e=="string"?ST(e,o):e,er=(e,o=!1)=>typeof e=="string"?qe(e,o):e;function vT({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=nl,look:i="standard",titleAccent:d,accentTracking:c="-0.02em",spaceBelow:x,rowGap:m,descriptionSize:h,className:g="",eyebrowLook:k=Px,titleSize:O,count:T,capped:L=!1}){let P=x??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?ko("div",{className:`${dv} 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 ${L?"":"-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))]"}`,children:[ko("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&&be("span",{className:`font-mono ${Te.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:er(e)}),o&&be("h2",{className:`${e3(O)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:Fn(o)})]}),(a||t||T)&&ko("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&be("span",{className:`max-w-[340px] truncate font-display ${Te.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:er(a)}),t&&ko(aa,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Te.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[er(t.text),be("span",{"aria-hidden":!0,children:"\u2192"})]}),T&&be("span",{className:`whitespace-nowrap font-mono ${Te.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:T})]})]}):null;if(i==="editorial"){let b=!!o||!!d;return ko("header",{className:`${P} 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 ${g}`.trim(),children:[e&&(typeof e=="string"?be(_n,{text:e,className:"pb-2"}):be("span",{className:"pb-2",children:e})),b&&ko("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&&ko(Z6,{children:[" ",be("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:c},children:d})]})]}),a&&be("p",{className:`max-w-[360px] pb-1 text-right font-display ${Te.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(i==="simple"){let b=`${P} ${g}`.trim();return ko("div",{className:b||void 0,children:[e&&(typeof e=="string"?be(_n,{text:e,look:k,className:"mb-4 block"}):be("span",{className:"mb-4 block",children:e})),o&&be("h2",{className:`font-heading2 ${Te.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Te.headingMediumUpTo800Small}`,children:Fn(o)})]})}if(i==="statement"){let b=`${P} ${g}`.trim();return ko("div",{className:b||void 0,children:[e&&(typeof e=="string"?be(_n,{text:e,look:k,className:"mb-4 block"}):be("span",{className:"mb-4 block",children:e})),o&&be("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:Fn(o,!0)})]})}if(i==="natural"){let b=`flex max-w-[680px] flex-col ${m??"gap-5"} ${P} ${g}`.replace(/\s+/g," ").trim();return ko("div",{className:b,children:[e&&(typeof e=="string"?be(_n,{text:e,look:k}):be("span",{children:e})),o&&be("h2",{className:`font-heading2 ${Te.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Te.headingMediumUpTo800Small}`,children:Fn(o)}),a&&be("p",{className:`${h??`${Te.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let b=`${P} ${g}`.trim();return ko("div",{className:b||void 0,children:[e&&(typeof e=="string"?be(_n,{text:e,look:k,className:"mb-4 block"}):be("span",{className:"mb-4 block",children:e})),o&&be("h2",{className:`font-heading2 ${Te.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 ${Te.headingSmallUpTo800}`,children:Fn(o)})]})}let I=!!a||!!t,C=!!o,E=j0(l)==="outlined",B=`font-mono ${Te.label} uppercase tracking-[0.3em]`,R=null;if(e)if(E)R=be("span",{className:`${G0} text-fg-dim ${vx}`,children:er(e)});else if(s&&!n&&typeof e=="string"){let b=e.indexOf("/"),F=b===-1?e:e.slice(0,b),y=b===-1?"":e.slice(b);R=ko("span",{className:B,children:[be("span",{className:"text-accent",children:er(F)}),y&&be("span",{className:"text-fg-dim",children:er(y)})]})}else R=be("span",{className:`${B} ${n?"text-accent":"text-fg-dim"}`,children:er(e)});return ko("div",{className:"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:[E&&e&&be("style",{children:K0}),ko("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&be(kC,{children:be(Of,{...o3(sv(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),R]}),C&&be("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 ${Te.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 ${Te.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:Fn(o)}),I&&ko("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&be("p",{className:`max-w-[340px] font-display ${Te.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:er(a)}),t&&ko(aa,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Te.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[er(t.text),be("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function o3(e){let o=na(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function PT({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return t3(vT,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as xl,jsxs as d3}from"react/jsx-runtime";import{useEffect as f3,useState as DT}from"react";import{jsx as r3}from"react/jsx-runtime";var TT="sf-photo-hover";function jf({sheet:e,name:o=TT}){return e?r3("style",{href:o,precedence:TT,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as AT,Fragment as s3}from"react/jsx-runtime";import{createContext as l3,useContext as Kf}from"react";var a3=Zb["view-desktop"];function n3(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var Wx=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,Gf=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function gle(e,o){return{phone:Wx(e.phone*Gf(o?.phone)),tablet:Wx(e.tablet*Gf(o?.tablet)),desktop:Wx(e.desktop*Gf(o?.desktop))}}function $x(e){if([e.phone,e.tablet,e.desktop].every(r=>Gf(r)>=1))return;let o=[{below:xt,slot:e.phone},{below:a3,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return n3(t,e.desktop)}function OT(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 ET=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,_T=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function FT(e,o){if(e===o)return e;let t=[..._T(e),..._T(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 BT(e,o){if(!o)return e;let t=OT(e),r=OT(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:FT(ET(t,s),ET(r,s))})),n=FT(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 i3={hasWidth:!1},ml=l3(i3);function Cle(){return Kf(ml).hasWidth}function kle(e){let{bound:o}=Kf(ml);return o&&$x(o)||e}function LT(e){let{bound:o}=Kf(ml);return BT(e,o&&$x(o))}function RT({children:e}){let o=Kf(ml);return o.bound?AT(ml.Provider,{value:{hasWidth:o.hasWidth},children:e}):AT(s3,{children:e})}function NT({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:c=!0,treatment:x}){let m=hx(),h=LT(s),g=l?h:s,[k,O]=DT(!1),[T,L]=DT(!1),P=t||"";f3(()=>{O(!1),L(!1)},[P]);let I=Vd(P),C=I&&!T?na(P):{src:P},E=!P||k;return d3("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[xl("div",{className:"absolute inset-0 flex items-center justify-center",style:c?{background:"var(--site-surface)"}:void 0,children:E?e:null}),xl(_d,{fill:Us,children:P&&(I?xl("img",{src:C.src,alt:r,...C.srcSet?{srcSet:C.srcSet,sizes:g}:{},decoding:"async",...d?{loading:"lazy"}:m,className:`absolute inset-0 h-full w-full${x?.className?` ${x.className}`:""}`,style:{display:k?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>C.srcSet?L(!0):O(!0)}):xl(Af,{src:P,alt:r,fill:!0,sizes:g,priority:i,...x?.className?{className:x.className}:{},style:{display:k?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>O(!0)}))}),xl(jf,{sheet:x?.sheet})]})}import{jsx as c3}from"react/jsx-runtime";var hl="sf-empty-hides",zx="sf-empty-else",qf="sf-head-core",Vf="sf-head-box",Il="holdsHeadCore",gl="isHeadCore",p3=`.${hl}:empty{display:none}.${hl}:not(:empty)~.${zx}{display:none}.${Vf},.${qf}{display:contents}.${Vf}:not(:has(.${qf}:not(:empty))){display:none}`;function Yf(){return c3("style",{children:p3})}var Do={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)]"},MT={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"},Ux="sf-itc-boxes",m3="sf-itc-steps";function jx(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 eie({num:e,title:o,description:t,boxes:r,steps:a,columns:n=3,cta:s,padTop:l,padBottom:i,bandPad:d,editing:c=!1,omitHead:x=!1,cardImage:m,cardImageUnit:h,cardText:g,rows:k,copies:O}){let T=O!==void 0,L=k&&(T||(r?.blockCount??0)>0)?k:null,P=d??yC({padTop:l,padBottom:i},vn("ProcessSteps")),I=T?[]:jx(a),C=I.length>0?I:c&&!r&&!T?[1,2,3].map(F=>({tag:f("Column {n}",{n:F})})):[],E=MT[n]??MT[3],B=L?"grid-cols-1":E,R=L?"":" [&>*]:min-h-[560px]",b=g==="on-image";return Oe(ie,{as:"section",className:["relative z-[2] border-b border-line bg-bg",P.className].filter(Boolean).join(" "),style:{...P.style,...jv(m,h)},children:or("div",{className:Sw,children:[x?null:Oe(PT,{num:e,title:o?.trim()?qe(o,!0):void 0,desc:t?.trim()?qe(t,!1):void 0}),r&&!T?or(u3,{children:[Oe(Yf,{}),L?Oe(Ff.Provider,{value:{hand:L,ids:r.blockIds??[],boxes:[]},children:Oe(r,{className:`${Ux} ${hl} sf-card grid ${B} gap-[2px] border border-line bg-line${R} [&>*]:bg-bg`,minEmptyHeight:260})}):Oe(r,{className:`${Ux} ${hl} sf-card grid ${B} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,T&&O?Oe("div",{className:`${Ux} sf-card grid ${B} gap-[2px] border border-line bg-line${R} [&>*]:bg-bg`,children:L?Oe(Ff.Provider,{value:{hand:L,copies:!0},children:O}):O}):null,C.length>0&&Oe("div",{className:`${m3} ${zx} sf-card grid ${E} gap-[2px] border border-line bg-line`,children:C.map((F,y)=>{let w=(F.specs??[]).filter(S=>(S?.label??"").trim()||(S?.value??"").trim());return or("article",{className:b?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[or("div",{className:b?"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:[Oe(NT,{label:F.tag?.trim()||F.title?.trim()||`column-${y+1}`,src:F.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),Oe("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${Ls(.55)} 0%, transparent 30%, transparent 70%, ${Ls(.65)} 100%)`}}),b&&Oe("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%, ${Ls(.73)} 55%, ${Ls(.92)} 100%)`}}),F.tag?.trim()&&Oe("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${Do.label} uppercase tracking-[0.3em] text-accent`,children:Qo(F.tag)}),F.meta?.trim()&&Oe("span",{className:b?`absolute right-5 top-[18px] z-[2] font-mono ${Do.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${Do.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:Qo(F.meta)}),b&&(F.title?.trim()||F.copy?.trim())&&or("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:[F.title?.trim()&&Oe("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${Do.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${Do.headingSmallUpTo700Small}`,children:qe(F.title,!0)}),F.copy?.trim()&&Oe("p",{className:`min-h-[3em] font-display ${Do.bodySmall} leading-[1.5] text-overlay-fg/85`,children:qe(F.copy,!1)})]})]}),b?w.length>0&&Oe("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:w.map((S,v)=>or("div",{className:"flex flex-col gap-1",children:[S.label?.trim()&&Oe("span",{className:`font-mono ${Do.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:Qo(S.label)}),S.value?.trim()&&Oe("span",{className:`font-display ${Do.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:Qo(S.value)})]},v))}):or("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[F.title?.trim()&&Oe("h3",{className:`font-heading3 ${Do.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${Do.headingSmallUpTo700Large}`,children:qe(F.title,!0)}),F.copy?.trim()&&Oe("p",{className:`font-display ${Do.bodySmall} leading-[1.55] text-fg-dim`,children:qe(F.copy,!1)}),w.length>0&&Oe("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:w.map((S,v)=>or("div",{className:"flex flex-col gap-1",children:[S.label?.trim()&&Oe("span",{className:`font-mono ${Do.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:Qo(S.label)}),S.value?.trim()&&Oe("span",{className:`font-display ${Do.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:Qo(S.value)})]},v))})]})]},y)})}),s?.text&&Oe("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:or(aa,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${Do.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[Qo(s.text),Oe("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var x3=["selected","highlighted"],HT="data-sf-card-state",$T="pointer-events-none absolute inset-0 border border-accent",zT="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",UT="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",jT="absolute inset-y-0 left-0 w-[3px] bg-accent",GT="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",KT="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",WT=e=>{let o=iw.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},h3={[WT("muted")]:`var(${WT("fg")})`};function Gx(e){return e?.selected===!0}function Kx(e){return e?x3.filter(o=>e[o]===!0).join(" "):""}function qT(e,o="frame"){let t=Kx(e);return t?o==="frame"&&Gx(e)?{[HT]:t,className:"relative isolate",style:{...h3}}:{[HT]:t,className:"relative"}:{}}var I3={highlighted:!0},g3={},Xf="badge";function nie(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Es(t,r)}))}function VT(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===Xf||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function sie(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,[Xf]:s===a?t:""})),states:e.map((n,s)=>s===a?I3:g3)}}function lie(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function iie(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 YT="data-sf-card-press",XT=`${M0} appearance-none bg-transparent border-0 p-0 m-0`,JT=`${XT} cursor-pointer`,ZT=XT;import{paymentMarkItems as y3,paymentMarks as b3}from"efficient-shell/icons/payment";var S3=[ab,nb],QT=e=>S3.includes(e),eO=e=>y3({name:e.label,kind:e.kind}),w3=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function oO(e){return b3(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>eO(t).some(r=>w3(r,o)))?.kind??""}))}function pie(e){return eO(e)[0]??null}var tO={heading:"Trusted by *teams worldwide*"},Jf=()=>[{src:"",alt:f("Logo one")},{src:"",alt:f("Logo two")},{src:"",alt:f("Logo three")},{src:"",alt:f("Logo four")},{src:"",alt:f("Logo five")}],C3=Wi.Logos,hie={label:"Logos",drawsPictures:!0,fields:C3,defaultProps:{items:[],contained:!0}};var k3=()=>Jf().map(e=>({label:e.alt}));function rO(e,o){let t=Hi(e,o,k3()).rows.filter(r=>r.label);return QT(Le(e))?oO(t):t}var yl="Flex",P3="Text",bl=e=>Object.values(e??{}).filter(nO),T3=e=>e.type===ao&&Le(e.props)!=="",sO=e=>{if(e.type!==yl)return!1;let o=bl(e.props).flat();return o.length>0&&o.every(T3)},Zf=e=>ed(e.props?.headPlacement)==="own-box"||sO(e),qx=e=>e===void 0||Array.isArray(e)&&e.length===0;function lO(e){return e.type===P3?!0:e.type===yl&&bl(e.props).every(o=>o.every(lO))}var iO={ProcessSteps:e=>qx(e.boxes)&&jx(e.steps).length===0,Logos:e=>Le(e)?O3(e):qx(e.logos)&&qx(e.items)};function O3(e){return fb(e)!==null&&rO(e,!1).length===0}function E3(e){return bl(e.props).flat().every(o=>!Hi(o.props,!1).rows.some(VT))}function Qf(e){let o=bl(e.props).flat();return o.some(Zf)&&o.every(t=>Zf(t)||lO(t))}function _3(e){if(!v3(e)||!Zf(e))return e;let o=sO(e)?E3(e):W(iO,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[gl]:o?"empty":!0}}}function aO(e){return Ke(e,o=>He(o,_3))}function dO(e){let o=Object.entries(e.props??{}).filter(([,r])=>nO(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===yl&&t.props?{key:o[0][0],inner:t}:null}function fO(e){if(e?.type!==yl||!e.props)return e;if(Qf(e)){let t=aO(e);return{...t,props:{...t.props,[Il]:!0}}}let o=dO(e);return!o||!Qf(o.inner)?e:{...e,props:{...e.props,[o.key]:[aO(o.inner)],[Il]:!0}}}function cO(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=fO(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var F3=e=>W(iO,String(e.type))?.(e.props??{})===!0;function B3(e){if(e.type!==yl||!e.props)return!1;let o=Qf(e)?null:dO(e),t=o?o.inner:e;if(!Qf(t))return!1;let r=bl(t.props).flat().filter(Zf);return r.some(a=>Le(a.props)!=="")&&r.every(F3)}function pO(e){return Ke(e,o=>A3(o))}function A3(e){let o=!1,t=[];for(let r of e){if(B3(r)){o=!0;continue}let a=pO(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function uO(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(fO(a)!==a)return a;let n=pO(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var L3=["DocMasthead","AlloyWheelsListing"],ec="titleLevel",R3=e=>e===2?"h2":"h1",Vx=e=>R3(e?.[ec])==="h2";function mO(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>L3.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[ec]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as $3}from"efficient-easel/draw";var Bn="showFor";function xO(){return ja("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var D3=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Rie(){return xO().choices}function Die(){return xO().revision}function hO(e){return D3(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as N3}from"efficient-easel/draw";var Yx="_wallLabelId",M3="_wallLabelledBy",Xx=e=>e.props?.id==null?"":String(e.props.id);function H3(e){if(!e||e.type!=="Text"||!Xx(e))return!1;let o=N3(e.props?.text);return!o.hidden&&o.text.trim()!==""}var W3=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Xx(e)!=="",IO=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function gO(e){let o=He(e,r=>Ke(r,gO)),t=null;for(let r=1;r<o.length;r++){if(!W3(o[r])||!H3(o[r-1]))continue;let a=`sf-wall-label-${Xx(o[r-1])}`;t??=o.slice(),t[r-1]=IO(t[r-1],Yx,a),t[r]=IO(t[r],M3,a)}return t??o}function yO(e){return qa(e,gO)}var bO="_cardPressTitles",z3="_cardPressTitle";function qie(e,o){let t=e?.[bO],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var SO=(e,o)=>({...e,props:{...e.props,...o}});function U3(e){let o=e.props??{};return e.type!=="Text"||$3(o.text).hidden||typeof o[$o]=="string"||typeof o[Yx]=="string"?"":Ft(o)}function wO(e,o,t,r){return He(e,a=>{let n=U3(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),SO(a,{[z3]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Bn]))return a;let s=a.props?.[Ga],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return Ke(a,(i,d)=>Yr(a.type,d)?i:wO(i,l,t,r))})}function CO(e){let o,t=Ke(e,(r,a)=>{let n=He(r,CO);if(!Yr(e.type,a))return n;let s=[],l=wO(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?SO(t,{[bO]:o}):t}function kO(e){return qa(e,o=>He(o,CO))}import{pinnedDuplicateIndices as ZW}from"efficient-easel/draw";import{jsx as et,jsxs as uE}from"react/jsx-runtime";import{createContext as UW,useContext as jW,useEffect as GW,useRef as KW,useState as mE}from"react";import{jsx as vr,jsxs as OO}from"react/jsx-runtime";import{useEffect as An,useRef as EO,useState as da}from"react";import{jsx as vO,Fragment as j3,jsxs as G3}from"react/jsx-runtime";import{useEffect as K3,useRef as PO,useState as q3}from"react";var V3="#t=0.001",Y3=2;function X3(e,o){if(e.readyState<Y3||!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 TO({src:e,objectPosition:o="50% 50%",onError:t}){let r=PO(null),a=PO(null),[n,s]=q3(!1);return K3(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{X3(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),G3(j3,{children:[vO("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&&vO("video",{ref:r,src:`${e}${V3}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var J3="data-part",Zie=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 kr(e){return{[J3]:e}}var Z3=.5;function Sl({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=Z3,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:c,quiet:x=!1,slideShown:m,laterSlide:h=!1,laterOfLead:g=!1}){let k=lv(d,c),O=rl(),[T,L]=da(!1),P=O==="below"&&!T,I=O==="first",C=a||"",E=n||"",B=EO(null),R=il(B,!0,!0),b=R===void 0?void 0:R==="phone",F=Xd({video:e,av1:o,videoPhone:t,av1Phone:r},b===!0),y=F.video||"",w=Yd(y,F.av1),[S,v]=da(!1),[N,$]=da(!1),[V,K]=da(!1),[ae,ne]=da(!1),J=m??!0,[me,ue]=da(!1),Ie=O!=="first"&&!g,[ge,Po]=da(!1),bo=EO(null);An(()=>{if(!Ie)return;if(document.readyState==="complete"){Po(!0);return}let le=()=>Po(!0);return window.addEventListener("load",le,{once:!0}),()=>window.removeEventListener("load",le)},[Ie]),An(()=>{v(!1),$(!1),K(!1),ne(!1)},[y,C,E]),An(()=>{J&&ue(!0)},[J]),An(()=>{let le=bo.current;le&&(J?le.play()?.catch(()=>{}):le.pause())},[J,me,ge]),An(()=>{if(!h||Ie&&!ge)return;let le=()=>L(!0);if(typeof window.requestIdleCallback=="function"){let H=window.requestIdleCallback(le,{timeout:2e3});return()=>window.cancelIdleCallback(H)}let Me=setTimeout(le,800);return()=>clearTimeout(Me)},[h,Ie,ge]),An(()=>{let le=bo.current;if(!le)return;let Me=()=>{le.playbackRate=l};return Me(),le.addEventListener("loadedmetadata",Me),()=>le.removeEventListener("loadedmetadata",Me)},[y,l]);let _o=Vd(C),Xe=C&&(_o||E)&&!N?na(C):{src:C},fo=E&&!N?na(E):{src:E},Je=E&&!P&&!T?[{sized:fo,media:Em},...C?[{sized:Xe,media:vs}]:[]]:[];return OO("div",{ref:B,className:"absolute inset-0 z-[1]",...kr("hero-media"),children:[vr("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),Je.map(({sized:le,media:Me})=>vr("link",{rel:"preload",as:"image",href:le.src,media:Me,fetchPriority:"high",...le.srcSet?{imageSrcSet:le.srcSet,imageSizes:"100vw"}:{}},Me)),(C||E)&&(_o||E?(()=>{let le=vr("img",{...C?{src:Xe.src}:{},...Xe.srcSet?{srcSet:Xe.srcSet,sizes:"100vw"}:{},alt:"",...P?{loading:"lazy"}:{},...I?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${k.className}`.trim(),style:{display:S?"none":"block",objectPosition:i,...k.style},onError:Me=>{Me.currentTarget.currentSrc&&(Xe.srcSet||fo.srcSet?$(!0):v(!0))}},E?void 0:C);return E?OO("picture",{children:[vr("source",{media:Em,srcSet:fo.srcSet||fo.src,sizes:"100vw"}),le]},`${C} ${E}`):le})():vr(Af,{src:C,alt:"",fill:!0,...P?{}:T?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${k.className}`.trim(),style:{display:S?"none":"block",objectPosition:i,...k.style},onError:()=>v(!0)},C)),s&&!x&&y&&b!==void 0&&me&&(!Ie||ge)&&!V&&vr("video",{ref:bo,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:()=>K(!0),children:w.map(le=>vr("source",{src:le.src,type:le.type},le.src))},y),s&&x&&y&&b!==void 0&&me&&(!Ie||ge)&&!ae&&(!C||S)&&vr(TO,{src:y,objectPosition:i,onError:()=>ne(!0)},y)]})}import{jsx as xo,Fragment as zO,jsxs as oh}from"react/jsx-runtime";import{jsx as Ln}from"react/jsx-runtime";import{useRef as Q3}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as eW,scrollAttrs as oW}from"efficient-shell/format";function oc({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:i,children:d}){let c=Q3(null),x=Ad(),m=Jo(),h=n?m:gr,g=ll(c,!0,s),{attrs:k,style:O}=oW(e[g],o[g]),T=eW.includes(e[g].effect),L=wo(`${sn}${x.fill}${t?` ${t}`:""}`,h.className);if(T&&l==="picture")return h.scope(Ln("div",{ref:c,className:L,...r,...h.attrs,...a?{style:a}:{},children:Ln(wC,{attrs:k,style:O,children:x.inner(d)})}));let P=Ln(CC,{children:x.inner(d)});if(T){let C=i??(x.fill?"h-full":void 0);return h.scope(Ln("div",{ref:c,className:L,...r,...h.attrs,style:{...a,overflow:"clip"},children:Ln("div",{...C?{className:C}:{},...k,style:O,children:P})}))}let I=Object.keys(O).length||a?{style:{...a,...O}}:{};return h.scope(Ln("div",{ref:c,className:L,...r,...h.attrs,...k,...I,children:P}))}var fa=["media","image","image2"],tr={media:"Media",image:"Image",image2:"Image 2"},wl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function tc(e,o){return e==="image"&&Hs(o)>1?"Image 1":tr[e]}var kde="Video file",vde="Upload a video file",Pde="AV1 file",Tde="Upload an AV1 file";function tW(e,o){return Qi("mediaType",kd,o,[e])}var rW=new Set(Object.keys(vd)),_O="heroPart";function aW(e,o){return{...o,[_O]:e}}function Ode(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...kd.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 kd)for(let i of t[l])n[i]=Qe(n[i],tW(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=Qe(n[l],i));for(let l of fa)for(let i of o[l]??[])n[i]=aW(l,n[i]);return n}function nW(e){let o=e?.[_O];return fa.includes(o)?o:null}function FO(e,o){let t={};for(let[r,a]of Object.entries(e))nW(a)===o&&(t[r]=a);return t}function BO(e){if(!rW.has(e.type))return[];let o=[{part:"media",label:tr.media,depth:0}];return rC(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:tc("image",e.props),depth:1}),Hs(e.props)>1&&o.push({part:"image2",label:tc("image2",e.props),depth:1})),o}function ca(e,o){return`${e}::${o}`}function rc(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return fa.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var Cl="data-sf-hero-part";import{MOTION_TIMING as sW}from"efficient-shell/format";var DO="grayscale(1) contrast(1.03)",Bde="Black and white";function lW(e){return e===!0?{filter:DO}:{}}function iW(e){let{filter:o}=lW(e);return o?{style:{filter:o}}:{}}var pa="sf-photo-grayscale",eh="data-sf-photo-host",AO={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},lc=`@media (hover:hover){.${pa}{filter:${DO};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))}.${pa}:hover,[data-sf-photo-host]:hover .${pa}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${pa}{transition:none}}`;function NO(e){let o=sW.hover,t={...e.duration!==o.duration.default?{[AO.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[AO.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function MO(e,o,t){if(e===!0)return iW(!0);if(t?.kind==="mono"){let r=NO(t);return{className:pa,sheet:lc,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:pa}:{}}var HO="data-sf-repeat",Jx="sf-photo-zoom",dW="--sf-photo-zoom",Ade="sf-photo-wash",ac="sf-photo-wash-rest",kl="sf-photo-wash-hover",sc="sf-photo-frame",WO=(e,o)=>`:not([${HO}]:not(${o}) .${e})`,Qx=(e,o)=>`[${HO}]${o} .${e}${WO(e,o)}`,Zx=(e,o)=>`${o},${Qx(e,":hover")},[${eh}]:hover .${e}${WO(e,":hover")}`,LO=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))`,fW=`.${kl}{opacity:0}@media (hover:hover){.${ac},.${kl}{transition:${LO("opacity")}}${Zx(kl,`.${sc}:hover .${kl}`)}{opacity:1}${Zx(ac,`.${sc}:hover .${ac}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Jx}{transition:${LO("transform")}}${Zx(Jx,`.${sc}:hover .${Jx}`)}{transform:scale(var(${dW}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${ac},.${kl}{transition:none}}`,Lde="sf-photo-move";function Rde(e){if(!e||!e.zoom&&!e.darken)return null;let o=NO(e);return{className:sc,sheet:fW,...o?{style:o}:{}}}function $O(e){return e===!0?{[pa]:lc}:{}}var nc="sf-box-reveal",Dde="sf-box-reveal",cW=8,RO=.3,Nde=`@media ${vs}{.${nc}{opacity:0;transform:translateY(${cW}px);transition:opacity ${RO}s ease-out,transform ${RO}s ease-out}${Qx(nc,":hover")},${Qx(nc,":focus-within")}{opacity:1;transform:none}}@media ${vs} and (prefers-reduced-motion:reduce){.${nc}{transition:none;transform:none}}`;import{hidableText as pW}from"efficient-easel/draw";var uW={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"},mW={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 UO(e){let o=e.isVideo&&Pv(e.videoSource)==="youtube",t=e.isVideo&&Tv(e.videoPlayback)==="click",r=o?Ov(pW(e.youtubeUrl)):null,a=aC(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:nC(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Hs(e)>1}}function vl(e,o){return ln(sa({_partMotion:e},o))}function Pl(e,o){return On(sa({_partMotion:e},o))}var ic=e=>Ox({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),jO=Us.img;function GO({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?xo(Lf,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?xo(oc,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:i}):xo("div",{className:a,...n,...s?{style:s}:{},children:i})}function Rn(e,o){return MO(void 0,void 0,Yb(sa({_partMotion:e},o)))}function KO(e){return fa.some(o=>Rn(e,o).className)?{hostAttrs:{[eh]:""},sheet:lc}:{}}function dc({treatment:e,children:o}){return e.className?xo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):xo(zO,{children:o})}function fc({color:e,opacity:o,passClicks:t=!0}){return o>0?xo("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},...kr("tint")}):null}function cc({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let i=o&&t?{[Cl]:e}:void 0;return xo(GO,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:jO,children:l})}function qO({partMotion:e,editing:o,children:t}){let r=vl(e,"media"),a=Pl(e,"media"),n=Rn(e,"media"),s=xo(_d,{fill:Us,children:t}),l=n.className?xo("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?xo(GO,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:jO,children:l}):xo(zO,{children:l})}function VO({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return oh("div",{className:`absolute inset-0 z-[1] grid ${uW[o]} ${mW[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[xo(cc,{part:"image",editing:t,marked:r,entrance:vl(a,"image"),scroll:Pl(a,"image"),origins:ic(n),className:"relative overflow-hidden",children:oh(dc,{treatment:Rn(a,"image"),children:[xo(Sl,{posterSrc:Zo(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),xo(fc,{color:n.tintColor,opacity:n.tintOpacity})]})}),xo(cc,{part:"image2",editing:t,marked:r,entrance:vl(a,"image2"),scroll:Pl(a,"image2"),origins:ic(s),className:`relative overflow-hidden ${Hk({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:oh(dc,{treatment:Rn(a,"image2"),children:[xo(Sl,{posterSrc:Zo(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),xo(fc,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Pr,Fragment as xW,jsxs as hW}from"react/jsx-runtime";import{useEffect as IW,useRef as gW,useState as yW}from"react";import{PlaySolidIcon as bW}from"efficient-shell/icons/efficient-looks";function YO({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=yW("large");return IW(()=>n("large"),[e]),e?hW(xW,{children:[!o&&a!=="none"&&Pr(Of,{src:a==="large"?Ev(e):_v(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&&Pr("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Pr("iframe",{src:Mm(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 XO({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=gW(null),d=il(i,!0,!0)==="phone";if(!e&&!o)return null;let c=Xd({video:o,av1:t,videoPhone:r,av1Phone:a},d),x=Yd(c.video,c.av1);return n&&!l?e?Pr("iframe",{src:Mm(e,"click"),title:Hm,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"}):Pr("video",{ref:m=>{i.current=m},...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(m=>Pr("source",{src:m.src,type:m.type},m.src))},c.video):Pr("button",{ref:m=>{i.current=m},type:"button","aria-label":Hm,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:Pr(bW,{size:28})})}function JO(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 ZO}from"efficient-shell/format";var QO=["top","middle","bottom"],eE=["left","center","right"],oE="bottom",tE="left",SW={top:"Top",middle:"Middle",bottom:"Bottom"},wW={left:"Left",center:"Center",right:"Right"},mfe="Up and down",xfe="Sideways",CW={top:"flex-start",middle:"center",bottom:"flex-end"},kW={left:"flex-start",center:"center",right:"flex-end"},vW="--sf-hero-phone-y",PW="--sf-hero-phone-x";function TW(e){return ZO(QO,oE,e)}function OW(e){return ZO(eE,tE,e)}function rE(e,o){let t=TW(e),r=OW(o),a={};return t!==oE&&(a[vW]=CW[t]),r!==tE&&(a[PW]=kW[r]),a}var EW="--sf-hero-phone-words-top",_W="--sf-hero-phone-words-bottom",FW="--sf-hero-phone-box-gap",hfe=100,Ife=90,gfe=28,BW=0,AW=200,yfe="Words space top",bfe="Words space bottom",Sfe="Space between boxes";function th(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(AW,Math.max(BW,Math.round(e)))}function aE(e,o,t){let r={},a=th(e),n=th(o),s=th(t);return a!==void 0&&(r[EW]=`${a}px`),n!==void 0&&(r[_W]=`${n}px`),s!==void 0&&(r[FW]=`${s}px`),r}function wfe(){return QO.map(e=>({label:SW[e],value:e}))}function Cfe(){return eE.map(e=>({label:wW[e],value:e}))}import{hexToRgb as LW}from"efficient-shell/format";var RW=!0;var DW=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function nE(e){let o=LW(e);return o?`${o.r},${o.g},${o.b}`:null}function sE(e){return e==null?RW:e!==!1}function lE(e){let o=(e?nE(e):null)??nE(Vt);return`linear-gradient(180deg, ${DW.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as iE,parseOption as NW}from"efficient-shell/format";var dE="bottom";var MW=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],HW={bottom:180,top:0,left:270,right:90},WW=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],$W=[[null,33],[.6,67],[.94,100]];function zW(e,o){let{r:t,g:r,b:a}=iE(e)??iE(Vt);return`rgba(${t},${r},${a},${o})`}function fE(e){return NW(MW,dE,e)}function cE(e=Vt,o=dE){let t=fE(o),r=(t==="top"||t==="bottom"?WW:$W).map(([a,n])=>`${a===null?"transparent":zW(e,a)} ${n}%`);return`linear-gradient(${HW[t]}deg, ${r.join(", ")})`}function pE(e,o){let t=po(e.overlayColor),r=po(e.overlayPosition),a=po(o)??Vt;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:fE(r)}}var qW=UW({});function Yfe({name:e,process:o,mediaType:t=vd.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:c,objectPositionPhone:x,objectPositionTablet:m,tintColor:h=Vt,tintOpacity:g=0,groups:k,editing:O=!1,themeClassName:T,themeStyle:L,overlayColor:P,overlayPosition:I,mediaLayout:C,mediaLayoutPhone:E,mediaImage2:B,objectPosition2:R,objectPosition2Phone:b,objectPosition2Tablet:F,tintColor2:y=Vt,tintOpacity2:w=0,videoSource:S,youtubeUrl:v,videoPlayback:N,partMotion:$,laterSlide:V=!1}){let K=Jo(),{alignment:ae="left",textureOpacity:ne,textureOn:J,textureColor:me,quietVideo:ue,phoneUpDown:Ie,phoneSideways:ge,phoneWordsTop:Po,phoneWordsBottom:bo,phoneBoxGap:_o,holdReel:Xe,reelHeld:fo,shownSlide:Je,ratioMin:le}=jW(qW),Me=rl(),H=V&&Me==="first",xe=KW(null),[he,Ze]=mE(Je===void 0?void 0:!1);GW(()=>{let bs=xe.current;Ze(Je===void 0||!bs?void 0:JO(bs.closest(".hero-track"),"data-slide-name")[Je]===bs)});let Ae=t==="video",co=Ae?Zo(r):void 0,Ge=Ae?Zo(n):Zo(r)??Zo(n),ze=Ae?{av1:Zo(s),phone:Zo(l),av1Phone:Zo(i),poster:Zo(d)}:{},$t=typeof a=="number"?a/100:1,{fromYouTube:Fo,onClick:Ri,youTubeId:Wa,backgroundFile:Tt,desktopLayout:Di,phoneLayout:sr,twoPictures:$r}=UO({isVideo:Ae,videoSource:S,videoPlayback:N,youtubeUrl:v,mediaLayout:C,mediaLayoutPhone:E}),[$a,Is]=mE(!1);$a&&fo===!1&&Is(!1);let lr=!$a,za=pE({overlayColor:P,overlayPosition:I},me),gs=Ae?null:vl($,"image"),Ni=Ae?null:Pl($,"image"),Ua=KO($),ys=et(dc,{treatment:Ae?{}:Rn($,"image"),children:et(Sl,{videoSrc:Tt?co:void 0,videoAv1Src:Tt?ze.av1:void 0,videoSrcPhone:Tt?ze.phone:void 0,videoAv1SrcPhone:Tt?ze.av1Phone:void 0,posterSrc:Ge,posterSrcPhone:ze.poster,showVideo:Tt,playbackRate:$t,objectPosition:c,objectPositionPhone:Ae?void 0:x,objectPositionTablet:Ae?void 0:m,quiet:ue,slideShown:he,laterSlide:V,laterOfLead:H})}),Mi=uE("section",{ref:xe,className:wo(`${le?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${T?` ${T}`:""}`,K.className),...K.attrs,style:L,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Tt&&co?"video":"still",...Ua.hostAttrs,...kr("slide"),children:[et(jf,{sheet:Ua.sheet}),et(qO,{partMotion:$,editing:O,children:$r?et(VO,{laterSlide:V,desktopLayout:Di,phoneLayout:sr,editing:O,partMotion:$,first:{src:r,objectPosition:c,objectPositionPhone:x,objectPositionTablet:m,tintColor:h,tintOpacity:g},second:{src:B,objectPosition:R,objectPositionPhone:b,objectPositionTablet:F,tintColor:y,tintOpacity:w}}):Fo||gs||Ni?uE(cc,{part:Ae?"media":"image",editing:O,entrance:gs,scroll:Ni,origins:ic({objectPosition:c,objectPositionTablet:m,objectPositionPhone:x}),className:"absolute inset-0 z-[1]",children:[ys,Fo&&et(YO,{youTubeId:Wa,ownPoster:!!Ge,background:!Ri,editing:O})]}):ys}),Ri&&et(XO,{youTubeId:Wa,fileSrc:Fo?void 0:co,fileAv1Src:Fo?void 0:ze.av1,fileSrcPhone:Fo?void 0:ze.phone,fileAv1SrcPhone:Fo?void 0:ze.av1Phone,playing:$a,onPlay:()=>{Is(!0),Xe?.()},editing:O}),lr&&!$r&&et(fc,{color:h,opacity:g,passClicks:!1}),lr&&sE(J)&&et("div",{className:"absolute inset-0 z-[2]",style:{background:za.own?cE(za.color,za.position??void 0):lE(za.color),...ne!==void 0?{opacity:ne/100}:null},...kr("overlay")}),lr&&et("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",O?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...dw,...rE(Ie,ge),...aE(Po,bo,_o)},...kr("hero-content"),children:k&&et(k,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return K.scope(H?et(Tf,{children:Mi}):Mi)}var xE=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as bE}from"efficient-easel/draw";import{isNodeList as YW}from"efficient-easel/data";var rh=3,ah=()=>({type:j,props:{direction:"column"},slots:{[Ce]:[{type:"ImageBlock"},{type:j,props:{direction:"column"},slots:{[Ce]:[{type:"Text",props:dr()},{type:"Text"}]}}]}}),hE=()=>Array.from({length:rh},ah);var IE=["","","","","",""],gE="#ticker",Tl="strip",nh={sectionAccent:cr,line:!1};function VW(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function sh(e){return VW(e).length>0}function tce(e){return e.showTicker!==!1&&sh(e)}var SE=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,YW(r)?r.map(a=>SE(a,o)):r]))}}),XW=e=>{let[o]=Et([ah()],a=>bE(a)),{id:t,...r}=SE(o,e).props;return r},ot={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>xE.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Cs.toLowerCase()}`,seeds:()=>[],addBlocked:gm,notice:ym},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Cs.toLowerCase()}`,seeds:()=>[],addBlocked:gm,notice:ym},ProcessSteps:{slot:ws,childType:j,addLabel:`Add ${Cs.toLowerCase()}`,seeds:e=>Array.from({length:rh},()=>XW(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},yE=1,JW={slot:Tl,childType:j,addLabel:`Add ${Cs.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=yE?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>yE?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},wE={Hero:{[Tl]:JW}};function mce(e){for(let[o,t]of Object.entries(e)){if(uo(ot,o)&&W(ot,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);ot[o]=t}}function xce(e,o){let t=W(ot,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:bE(t.childType),...r}}))}:null}var QW=["GalleryB"];function CE(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!QW.includes(l))return s;let i=W(ot,l);if(!i?.legacy)return s;let d=s.props??{},c=d[i.slot];if(Array.isArray(c)&&c.length>0)return s;let x=i.legacy(d);if(!x.length)return s;t=!0;let m=String(d.id??l),h=x.map((g,k)=>({type:i.childType,props:{id:`${i.childType}-${m}-${k}`,...g}}));return{...s,props:{...d,[i.slot]:h}}}),a=new Set(ZW(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var e$={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},o$={"Footprint.source":"typed"};function kE(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(e$)){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(o$)){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],ib(l)&&l!==a&&!Le(i)&&(i[ro]=l),o=i,t=!0}if(e.type&&o){let r=rd(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=Ke({props:o},a=>He(a,kE));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function vE(e){return $i(e,o=>He(o,kE))}import{readHidable as t$}from"efficient-easel/draw";var Dt=j,Nt=Ce;function ua(e){if(e.theme)return Kt(e.theme);let o=e.site?.themePresets;return o?Kt({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function r$(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var TE=new Set(["id"]),Tr={},Ol=[],a$={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"]},n$=Object.keys(a$),ma=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...n$,"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(uo(Tr,o)&&W(Tr,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Tr[o]=t}}function Or(e){return W(Tr,e)}function s$(e){return uo(Tr,e)&&Ol.includes(e)}function OE(e,o=ma){return uo(Tr,e)&&(o.includes(e)||s$(e))}function Lce(e){let o=W(It,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 lh=e=>t$(e),De=e=>lh(e).text.trim()!=="";function l$(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 i$=e=>e==="heading"?dr():e==="eyebrow"?jt():{};function d$(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 f$(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?W(e.map,t):void 0)??e.fallback}}function PE(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 c=d?d(t[l],t,a):t[l];c===void 0?delete n[i]:n[i]=c,r(l,i,c===void 0)}return n}function c$(e){let o=new Set([...TE,"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 ih=e=>ed(e.headPlacement)==="own-box";function p$(e){return ih(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function u$(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 m$(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 x$(e,o,t){if(!t.press)for(let r of m$(e)){let a=u$(o,r);if(a!==void 0)return a}}function xa(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:p$(r))??x$(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=(I,C)=>{s.push({key:I,home:C}),i.add(I)},c=r._partStyles??{},x=c$(o),m=0,h=(I,C)=>({type:I,props:{...C,id:`${n}~${I}-${++m}`}}),g=(I,C,E,B,R,b,F)=>{if(R){for(let w of I??[]){let S=typeof w=="string"?w:w[0];E[S]!==void 0&&F(S,`nothing \u2014 the ${B} has no parts, so it is not drawn`)}return}let y=typeof C=="function"?C(r,t):C??{};return PE(I??[],y,E,(w,S,v)=>F(w,v?`nothing \u2014 the old value draws nothing (${B}: no ${S})`:`${b}${B}: ${S}`),t)},k=I=>Et(I,C=>`${n}~${C}-${++m}`),O=(I,C,E)=>{let B=I.of?I.of(C):Array.isArray(C[I.key])?C[I.key]:[],R=typeof I.props=="function"?I.props(r,t):I.props??{},b=B.map((v,N)=>{let $=v??{},V=I.item?.($,N,r)??{},K=T(V.reverse?[...I.parts].reverse():I.parts,$,!1,`item ${N+1}: `);return I.flat?V.props?K.map(ae=>({...ae,props:{...ae.props,...V.props,id:ae.props.id}})):K:[h(Dt,{name:`${I.name} ${N+1}`,...R,...V.props??{},[Nt]:K})]});if(I.groups){let v=I.groups;return E(I.key,B.length?`one Box per item (${B.length}), in a Box per group`:"nothing \u2014 the list is empty"),od(B.map(N=>N??{}),v.of,v.of).map((N,$)=>{let V=N.items.map(ue=>ue.item),K=v.parts?T(v.parts,v.head?.(V,r)??{},!1,`group ${$+1}: `):[],ae=N.items.map(ue=>b[ue.index]),ne=v.perRow?.(V.length,r),J=Number.isInteger(ne)&&ne>=1?ne:1,me=[];if(v.perRow&&J<ae.length)for(let ue=0;ue*J<ae.length;ue++)me.push(ae.slice(ue*J,(ue+1)*J).flat());return h(Dt,{name:`${v.name} ${$+1}`,...v.props??{},[Nt]:[...K,h(Dt,{name:`${v.itemsName} ${$+1}`,...v.itemsProps?.(V.length,r)??{},[Nt]:me.length?me.map((ue,Ie)=>h(Dt,{name:`${v.rowName??`${v.itemsName} row`} ${Ie+1}`,...v.rowProps??{},[Nt]:ue})):ae.flat()})]})})}let F=I.perRow?.(r),y=I.perRow?Number.isInteger(F)&&F>=1?F:1:0;if(E(I.key,(B.length?I.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")+(y&&B.length?`, in rows of ${y}`:"")),!y)return b.flat();let w=typeof I.rowProps=="function"?I.rowProps(r,t):I.rowProps??{},S=[];for(let v=0;v*y<b.length;v++){let N=b.slice(v*y,(v+1)*y).flat(),$=I.rowFiller?y-b.slice(v*y,(v+1)*y).length:0;S.push(h(Dt,{name:`${I.rowName??`${I.name} row`} ${v+1}`,...w,[Nt]:[...N,...Array.from({length:$},(V,K)=>h(Dt,{name:`Empty ${K+1}`,...I.rowFiller,[Nt]:[]}))]}))}return S},T=(I,C,E,B)=>{let R=[],b=(y,w)=>E?d(y,w):void 0,F=y=>E?c[y]:void 0;for(let y of I)if(!(y.when&&!y.when(r,E?void 0:C)))switch(y.kind){case"text":{let w=lh(C[y.key]);if(!w.text.trim()&&!(E&&t.press&&o.pressKeepsEmpty?.includes(y.key))){b(y.key,"nothing \u2014 empty words draw nothing, so no block");break}let S=i$(y.role??"body"),{_partStyles:v,...N}=S,$=d$(S,y.styleFrom?{...y.style,...y.styleFrom(r,t)}:y.style,F(y.key),y.props?.align);R.push(h("Text",{text:y.mark==="accentLead"?l$(w.text):y.mark==="accentItalic"?ks(w.text):w.text,...N,...y.props??{},...$,...w.hidden?{_hidden:!0}:{}})),b(y.key,`${B}Text block: its words${w.hidden?", hidden":""}`);break}case"button":{let w=lh(C[y.key]);if(!w.text.trim()){b(y.key,"nothing \u2014 no words, no button"),b(y.href,"nothing \u2014 no button to link"),typeof y.variant=="object"&&b(y.variant.key,"nothing \u2014 no button to style");break}let S=typeof C[y.href]=="string"&&C[y.href]?C[y.href]:"#",v={...y.style??{},...F(y.key)??{}};R.push(h("ButtonBlock",{label:w.text,href:S,...typeof y.props=="function"?y.props(C,t):y.props??{},...f$(y.variant,C),...Object.keys(v).length?{_partStyles:{label:v}}:{},...w.hidden?{_hidden:!0}:{}})),b(y.key,`${B}Button block: its words`),b(y.href,`${B}Button block: its link`),typeof y.variant=="object"&&b(y.variant.key,`${B}Button block: its Style`);break}case"image":{let w=C[y.key];if(typeof w!="string"||!w){b(y.key,"nothing \u2014 no picture, no block"),y.alt&&b(y.alt,"nothing \u2014 no picture to describe");break}let S=y.alt&&typeof C[y.alt]=="string"?C[y.alt]:"";R.push(h("ImageBlock",{src:w,alt:S,...y.props??{}})),b(y.key,`${B}Image block: its picture`),y.alt&&b(y.alt,`${B}Image block: its alt text`);break}case"list":{R.push(...O(y,C,b));break}case"group":{let w=T(y.parts,C,E,B),S=g(y.box,y.props,C,`${y.name} Box`,!w.length&&!y.keepEmpty,B,b);S&&R.push(h(Dt,{name:y.name,...S,[Nt]:w}));break}case"block":{let w=y.parts?T(y.parts,C,E,B):[],S=g(y.box,y.props,C,`${y.type} block`,!!y.parts&&!w.length&&!y.keepEmpty,B,b);S&&R.push(h(y.type,{...S,...y.slot?{[y.slot]:w}:{}}));break}case"core":{let w=y.as??e.type,S={...y.headless?{}:{headPlacement:"own-box"},...y.props??{}},v=y.keep==="rest"?Object.keys(C).filter($=>!x.has($)&&!($ in S)):y.keep;for(let $ of v)C[$]!==void 0&&(S[$]=C[$],b($,`the ${w} block inside the Box`));if(y.keep==="rest"){for(let V of Object.keys(y.props??{}))C[V]!==void 0&&!x.has(V)&&b(V,`nothing \u2014 the ${w} block inside the Box has the row's own value`);C.headPlacement!==void 0&&b("headPlacement",`the ${w} block inside the Box: own-box`);let $=Object.fromEntries(Object.entries(c).filter(([V])=>!x.has(V)));Object.keys($).length&&(S._partStyles=$)}for(let[$,V]of Object.entries(y.rename??{}))C[$]!==void 0&&(S[V]=C[$],b($,`the ${w} block inside the Box: ${V}`));if(y.derive){Object.assign(S,y.derive.props(C,t));for(let $ of y.derive.reads)C[$]!==void 0&&b($,`the ${w} block inside the Box`)}let N=typeof y.slots=="function"?y.slots(C,t):y.slots??{};for(let[$,V]of Object.entries(N))S[$]=V.flatMap(K=>"kind"in K?O(K,C,b):k([K]));R.push(h(w,S));break}}return R},L=(I,C)=>{let E=C===0?"Box":`${I.name} Box`,B=T(I.parts,r,!0,C===0?"":`${E}: `),R=typeof I.boxProps=="function"?I.boxProps(r,t):I.boxProps??{},b=PE(I.box??[],R,r,(F,y,w)=>d(F,w?`nothing \u2014 the old value draws nothing (${E}: no ${y})`:`${E}: ${y}`),t);return{type:Dt,props:{name:I.name,...b,[Nt]:B,id:r$(n,C)}}},P=[o,...o.also??[]].map(L);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[I,C]of Object.entries(o.reads??{}))r[I]!==void 0&&d(I,C);for(let[I,C]of Object.entries(o.drop??{}))I in r&&(l.push({key:I,why:C}),i.add(I));for(let I of Object.keys(r))TE.has(I)||i.has(I)||l.push({key:I,why:"not in the row \u2014 not carried"});return{node:P[0],nodes:P,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function EE(e,o=Ol,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)?W(Tr,s.type):void 0;if(!l)return[s];let i=xa(s,l,t);return i.skipped!==void 0?[s]:(a=!0,i.nodes)});return a?{...e,content:n}:e}function _E(e,o=Ol,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?W(Tr,a.type):void 0;if(!s)return;let l=xa(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as h$,BLOCK_SIZE_KEYS as I$,parseBlockWidthFit as uc,phoneKey as FE,parseTextFit as pc,tabletKey as BE,viewKeyAt as AE}from"efficient-easel/draw";import{sideLengthAt as g$}from"efficient-easel/screen/lib/content/length-units";var y$="sf-block-size",El=["width","minWidth","maxWidth"],mc=e=>`${e}Unit`,Er=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,b$={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"}},NE={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"}},S$={desktop:NE.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"}},w$={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},ME="max-view-wide:grow!";function HE(e){return xc(e).mode.phone==="fill"}var C$={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},k$={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},v$="data-sf-min-width",LE={two:{desktop:"wide",phone:Sm.phone},three:Sm},P$={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)]"]}},dh={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)]"]}},T$={minWidth:{desktop:dh.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:dh.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)]"]}},O$=["widthFit",...El],RE={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},fh={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!"},E$={desktop:fh.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!"},WE={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"},_$={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:WE.phone},$E={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},DE={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:$E.phone};function zE(e){let o=xc(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>w$[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function UE(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=xc(e),n=d=>o?LE.three[d]:LE.two[d],s={fill:[],fixed:[],min:[]},l=a("minWidth");for(let d of t){let c=r[d];(c==="fill"||c==="fixed")&&s[c].push(n(d)),l[d]!==void 0&&s.min.push(n(d))}let i={};for(let d of["fill","fixed"])s[d].length&&(i[k$[d]]=s[d].join(" "));return s.min.length&&(i[v$]=s.min.join(" ")),i}function xc(e){let o=O$.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?uc(n)!==void 0:Er(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=mc(a),s={};for(let i of t)s[AE(a,nn(i))]=Er(e[a]?.[i]),s[AE(n,nn(i))]=e.units?.[a]?.[i];let l=i=>g$(s,{length:a},n,nn(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(uc,e.widthFit)}}function ch(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(w=>pc(e.textFit?.[w])==="ellipsis"),r=o&&!t,a=r?S$:NE,n=r?T$:dh,s=r?E$:fh,l=[],i={},d={},{three:c,sides:x,lengthPerSide:m,mode:h}=xc(e),g=m("width");for(let w of x){let S=h[w];!S||S==="fit"||(l.push(c?a[w][S]:b$[w][S]),S==="fixed"&&(i[C$[w]]=tn(g[w]?.value??h$.fallback,g[w]?.unit)))}for(let w of El.filter(S=>S!=="width")){let S=m(w);for(let v of x){let N=S[v];if(N===void 0)continue;let[$,V]=c?n[w][v]:P$[w][v];i[$]=tn(N.value,N.unit),l.push(V)}}let k=pc(e.textFit?.desktop),O=pc(e.textFit?.phone),T=w=>{let S=Er(e.minFont?.[w]);return S===void 0?void 0:e.units?.minFont?.[w]==="vw"?`${S}vw`:String(S)},L=T("desktop"),P=T("phone"),I=pc(e.textFit?.tablet),C=I!==k||O!==void 0?I:void 0,E=T("tablet"),B=E!==L||P!==void 0?E:void 0,R=Er(e.maxWidth?.desktop),b=Er(e.maxWidth?.tablet)??R,F={desktop:R!==void 0,tablet:b!==void 0,phone:(Er(e.maxWidth?.phone)??b)!==void 0},y=(w,S,v)=>{if(S!=="line"&&S!=="ellipsis")return;let N=w==="tablet"?void 0:w,$=(V,K)=>v||!N?V[w]:K[N];if(S==="line"){l.push($(s,RE));return}if(l.push($(fh,RE)),l.push($(_$,WE)),c&&!v&&w==="desktop")for(let V of["desktop","tablet"])F[V]||l.push(DE[V]);else F[w]||l.push($(DE,$E))};return C?(y("desktop",k,!0),y("tablet",C,!0),y("phone",O??C,!0)):(y("desktop",k,!1),y("phone",O??k,!1)),k&&(d[Jt.fit]=k),C&&(d[Jt.fitTablet]=C),O&&(d[Jt.fitPhone]=O),L!==void 0&&(d[Jt.min]=L),B!==void 0&&(d[Jt.minTablet]=B),P!==void 0&&(d[Jt.minPhone]=P),!r&&(C||B!==void 0)&&(d[Jt.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[y$,...l].join(" "),style:i,attrs:d}}function $ce(e){if(Er(e.maxWidth?.desktop)!==void 0)return!0;let o=uc(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function jE(e){return["desktop","tablet","phone"].some(o=>{let t=uc(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Er(e.minWidth?.[o])!==void 0})}function hc(e){let o={};for(let t of I$){let r=e[t],a=e[BE(t)],n=e[FE(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=mc(t),l={desktop:e[s],tablet:e[BE(s)],phone:e[FE(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var GE={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as F$}from"efficient-shell/format";import{convertLength as B$}from"efficient-easel/screen/lib/content/length-units";var Mt=(e,o,t,r)=>o===t?e:B$(e,o,t,r,{min:0,max:200,step:4}),ha={textFit:"line",textFitPhone:"wrap"},Ia={...z,[$o]:""},{label:gpe,href:ype,...A$}=GE.defaultProps,no=A$,ga={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...Zu,sectionAccent:0},Nn={sectionAccent:-1},Q=[...pr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",cC.unitKey,...mC,...iC,"anchor",Ds,...un,xd,...wd,...Df,...Sd(["widthFit",...El,...El.map(mc)]),...Object.values(Oo)],Dn="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:Dn,fullWidth:Dn,pageWidth:Dn,backgroundWidth:Dn,contentWidth:Dn,contentMax:Dn},te=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)"]));function re(e,o){let t=ye(e.sectionPaddingTop)??0,r=ye(e.sectionPaddingBottom)??0,a=ye(e.sectionPaddingTopTablet),n=ye(e.sectionPaddingBottomTablet),s=fr(e.sectionPaddingUnit),l=fr(e.sectionPaddingUnitTablet),i=fr(e.sectionPaddingUnitPhone),d=(x,m,h,g)=>{let k=ye(x);if(k!==void 0)return k+Mt(g,"px",i,"mobile");let O=m===void 0?{n:h,unit:s}:{n:m,unit:l};return Mt(O.n,O.unit,i,"mobile")+Mt(g,"px",i,"mobile")},c=(x,m,h,g,k)=>m!==void 0?{[x]:m+Mt(k??g,"px",l,"tablet")}:k===void 0?{}:{[x]:Mt(h,s,l,"tablet")+Mt(k,"px",l,"tablet")};return{sectionPaddingTop:t+Mt(o.top,"px",s,"desktop"),sectionPaddingBottom:r+Mt(o.bottom,"px",s,"desktop"),...c("sectionPaddingTopTablet",a,t,o.top,o.topTablet),...c("sectionPaddingBottomTablet",n,r,o.bottom,o.bottomTablet),sectionPaddingTopPhone:d(e.sectionPaddingTopPhone,a,t,o.topPhone),sectionPaddingBottomPhone:d(e.sectionPaddingBottomPhone,n,r,o.bottomPhone)}}var de=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>re(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function tt(e,o){let t={};for(let[a,n]of vm)e[a]!==void 0&&(t[n]=e[a]);let r=Ed(e,vn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var _r=e=>[...vm.map(([o,t])=>[o,t,(r,a)=>tt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>tt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>tt(t,e).sectionPaddingBottom]],L$={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},bpe=e=>o=>De(o.props[e])?[L$]:[],fe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:z,...o?{style:o}:{}}),Mn=e=>({kind:"group",name:"Chip",props:{...A,...Ut("main"),...So(6,14)},parts:[fe(e,{color:"background",...M("label",12),weight:600,letterSpacing:.16})]}),KE=e=>e.background!=="transparent",R$=(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},_l={align:"right",alignPhone:"left"},D$=(e,o,t)=>{let r=a=>R$(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}},Fl=(e,o,t,r={})=>D$(e,o,{...Ia,..._l,...r,_partStyles:{text:{...Bo,color:"labels",...t,case:Bo.case,..._l}}}),Hn=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:ua(o)?.selected??0,qE="var(--site-surface-2)",Ic=(e,o)=>ua(o)?.themes[Hn(e.sectionAccent??0,o)],No=(e,o)=>(t,r)=>{if(!o?.(t,r))return Ut(e);let a=Ic(t,r)?.[e];return a?{fillColor:a}:{}},gc=(e,o)=>Fr(e,o)>=0,VE=e=>e.startsWith("#")&&F$(e)!==null,yc=(e,o,t)=>{let r=e?.trim();if(r&&VE(r))return{fillColor:r};let a=Pm(r);if(a)return Ut(a);let n=r===qE?Ic(o,t):void 0;return n?{fillColor:US(n)}:{}},bc=e=>{let o=e?.trim();return!o||o==="transparent"||o===Rt||Pm(o)||o===qE||VE(o)?void 0:"it paints a colour that no Box Fill can hold"},Fr=(e,o)=>{let t=ua(o)?.themes;return t&&KE(e)?jS(t,Hn(e.sectionAccent,o)):-1},Br=(e,o,t)=>{let r=Fr(o,t);return r>=0?r:e},Wn=(e,o)=>{let t=ua(o)?.themes,r=t?GS(t,Hn(e,o)):-1;return r>=0?r:e},ya=(e,o)=>{let t=Fr(e,o);return t>=0?{sectionAccent:t}:{}},Ar=(e,o)=>KE(e.props)&&Fr(e.props,o)<0?[{kind:"band-preset",page:Hn(e.props.sectionAccent,o)}]:[],$n=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=nn(o),d=(x,m,h)=>{let g=fr(m),k=RS(x,g,"spacing",h);return k===null?null:Mt(k,g,"px",i)},c=o==="desktop"?d(a,n,hw)??ww(a):d(s,l,Iw)??kw(s)??Tw(a,n);return Mt(Math.min(r,c),"px",t,i)},Bl=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),Al=e=>({top:0,right:0,bottom:0,left:0,...e}),ph=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...A,...Bl,...No("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],je.kind,je.duration,je.delay],parts:r});import{phoneKey as Ph,readHidable as Th}from"efficient-easel/draw";import{isNodeList as iz,newId as dz}from"efficient-easel/data";function YE(e){return Math.min(4,Math.max(2,e??3))}var kpe={eyebrow:"Label",title:"Section *heading.*"},N$=Wi.Cards,XE={label:"Cards",fields:N$,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Tpe={eyebrow:"Highlight",title:"Key *features.*"},Ope=()=>[{label:f("Feature label one")},{label:f("Feature label two")},{label:f("Feature label three")},{label:f("Feature label four")},{label:f("Feature label five")},{label:f("Feature label six")}],JE={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as M$}from"efficient-shell/format";var uh="cardPlace",H$=["","top-line"];function Bpe(e){return M$(H$,"",e[uh])}var Ape="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",Lpe="data-sf-top-line",W$=new Set(["Cards",ao]);function Rpe(e){return typeof e=="string"&&W$.has(e)}var $$=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 Dpe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:$$(e)?{...e,top:0}:e}var Npe="outsideFramedCard";var Sc={sectionBorder:{top:0,right:1,bottom:1,left:0},...Ut("background")},z$={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},ba=e=>({direction:"row",columns:e,columnsTablet:e,...z$}),ZE=(e={})=>Fe(Xf,{...z,tag:"p",[uh]:"top-line"},e,!0),zn=(e=qr)=>{let o=Xa(e);return{...o,props:{...Sc,...o.props},slots:{[Ce]:[...o.slots?.[Ce]??[],ZE()]}}},mh=(e=!1)=>{let o=Ja(e);return{...o,props:{...Sc,...o.props}}},U$={name:"name",time:"time",note:"note",price:"price"},j$={textStyle:"body-1",...M("body",16),weight:500,lineHeight:1.5},G$={...Bo,...M("label",12),letterSpacing:.18,lineHeight:1.5},K$={textStyle:"body-1",...M("body",14),lineHeight:1.6},q$={textStyle:"body-1",fontRole:"heading",...M("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},V$={...M("label",11),letterSpacing:.25},Y$={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},wc=e=>({direction:"row",columns:e,...Y$}),xh=[...new Set([...Object.keys(ba(1)),...Object.keys(wc(1))])],hh=()=>{let e=U$,o={tag:"p",widthFit:"fill"};return{type:j,props:{...A,name:"Card",justify:"between",gap:16,gapPhone:16,...So(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Ut("surface"),shadow:!0},slots:{[Ce]:[ZE(V$),{type:j,props:{...A,name:"Words",gap:8,gapPhone:8},slots:{[Ce]:[Fe(e.name,{...z,...o},j$),Fe(e.time,{...oe,...o},G$),Fe(e.note,{...oe,...o},K$)]}},Fe(e.price,{...z,...o},q$)]}}};import{tabletKey as t_}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Cc}from"efficient-easel/draw";var kc=xt,Ih=Cc,QE=960,e_=xt,o_={min:kc,max:1600,step:10},vc="stackBelow";function Vpe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<o_.min||e>o_.max))return Math.round(e)}var X$=e=>`sf-stack-${e}`,J$=e=>`sf-stack-${e}-gutter`,Z$=e=>`sf-stack-${e}-outer`,Un=e=>`${e-.02}px`;function Ype(e,o={}){let t=o.gutter!==!1,r=`.${X$(e)}`,a=`.${J$(e)}`,n=`.${Z$(e)}`,s=[];if(e>kc){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,Cc);s.push(`@media (min-width:${kc}px) and (max-width:${Un(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:${kc}px) and (max-width:${Un(i)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>Cc&&s.push(`@media (min-width:${Cc}px) and (max-width:${Un(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${Un(e)}){${a}${a}{padding-inline:${yw.frame}}}`),t&&e<QE&&s.push(`@media (min-width:${e}px) and (max-width:${Un(QE)}){${a}${a}{padding-inline:${gw}}}`),e>e_&&s.push(`@media (min-width:${e_}px) and (max-width:${Un(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 Q$}from"efficient-shell/format";var ez=["standard","editorial","simple","essay"];function Sa(e){if(e==="ProductGrid")return"shelf";let o=W(It,e)?.headStyle;return Q$(ez,"standard",o)}var Ll={standard:64,editorial:60,simple:36,essay:28,shelf:20},oz={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function tz(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=W(It,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 Tc(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=Pc.get(r);if(a)return a;let n=s_({num:e,title:o,description:t,link:!1});return Pc.set(r,n),n}var Mo={[vc]:Ih},yh={top:0,right:0,bottom:1,left:0},Ho=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Oc=(e,o,t={})=>fe(e,{...M("label",o),...t}),Ec=(e,o)=>({kind:"text",key:e,role:"heading",props:z,style:{textStyle:"heading-2",...o}}),bh=xt,rz=Ih,Sh=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...oe,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:bh}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...M("body",o),...r,...a}}),n_={...no,align:"right",alignPhone:"left",...ga},gh=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:n_,style:{...ht(e),color:"labels"}}),r_=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...z,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?az(jt()):{},...t.style}}}}},az=e=>e._partStyles.text??{},jn={widthFitPhone:"fill"};function wh(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),...jn}):{...o,...jn}}}return{...e,parts:e.parts.map(wh)}}function nz(e,o){let t=W(oz,e),r=t==="accent",a=Oc(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=Ec(o.title,r?{...Ho("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:yh,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...A,...jn,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...A,...jn,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[r_(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...A,...jn},parts:[s,...l?[r_(o.title,`Three ranges,
320
- one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...A,...jn,gap:12,maxWidth:340,maxWidthPhone:bh},parts:[...o.description?[Sh(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[gh(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...n_,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:gh(14).style}}}]:[]]}]}}function _c(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>_c(t,o))}:e}function s_(e){let o=Ec(e.title,{...Ho("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:yh,sectionPaddingBottom:32,...Mo},parts:[{kind:"group",name:"Title",props:{...A,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...Mo},parts:[{kind:"group",name:"Number",props:{...A,sectionPaddingBottom:8},parts:[{...Oc(e.num,13),props:{...z,...ha}}]},_c(o,[e.title])]},{kind:"group",name:"Words",props:{...A,sectionPaddingBottom:4,maxWidth:360,[t_("maxWidth")]:rz,maxWidthPhone:bh},parts:e.description?[Sh(e.description,14,void 0,{lineHeight:1.5},{[t_("align")]:"left"})]:[]}]}}function a_(e,o){return{kind:"group",name:"Header",props:{...A,gap:16,gapPhone:16},parts:[Oc(e.num,13),Ec(e.title,o)]}}var l_=[["para",{...ht(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}]],sz=e=>l_.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function lz(e){return{kind:"group",name:"Header",props:{...A,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:yh,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...A,direction:"row",align:"end",gap:24,share:"content"},parts:[Oc(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...l_.map(([o,t])=>({...Ec(e.title,t),when:r=>sz(r)===o}))]},{kind:"group",name:"Words",props:{...A,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[Sh(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[gh(13)]:[]]}]}}function Fc(e){return Sa(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 Pc=new Map,Ch={...M("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function rt(e){let o=Pc.get(e);if(o)return o;let t=tz(e),r=Sa(e),a=r==="editorial"?s_(t):r==="simple"?a_(t,Ch):r==="essay"?a_(t,{...M("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?lz(t):nz(e,t);return Pc.set(e,a),a}var wa={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Rt,Stats:void 0};var Rl=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),b_=e=>o=>YE(ye(o.columns)??ye(e.columns)),fz="inline is the head the row draws; an own-box node is skipped (`skip`)",cz={kind:"text",key:"title",role:"heading",props:z,style:{textStyle:"heading-3",...Ch}},i_={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Ac=e=>{let o=Zr(typeof e.background=="string"?e.background:void 0,wa.Series);return o&&o!=="transparent"?o:void 0},Bc=e=>Ac(e)===Rt,pz={...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},d_={...A,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[Ph("share")]:"content"},uz=e=>{let o=Ac(e)?1:2;return{...A,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},kh={...ht(12),letterSpacing:.22,lineHeight:1.5},f_=e=>De(e.viewLabel)&&!Th(e.viewLabel).hidden,at=e=>Th(e).text?.trim?.()??"",Lc=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>po(o)!==void 0)),Oh=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),mz=Oh([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),xz=Oh([["label","Label"],["value","Value"],["body","Card body",!0]]),Dl=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:ao,headless:!0,keep:s,derive:{reads:n,props:l=>cd(r(l),t)},slots:(l,i)=>({[Pe]:[a(l,i)]})}]}),S_=e=>Array.isArray(e.cards)?e.cards:[],c_={top:76,bottom:76,topPhone:76,bottomPhone:76},w_=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Lc({title:at(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Es(lm(o),t),...o})),hz=e=>w_(e).some(o=>po(o.href)!==void 0),C_=[{key:em.label,label:"Feature label"},{key:em.href,label:"Link",kind:"link"}],p_=e=>Y0(e.eyebrowLook,"KeyFeatures")==="filled",Iz={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...No("surface")(e,o),...Rl(1,0,1,0),...re(e,c_)}),box:[...Q,...de(c_)],parts:[{kind:"group",name:"Heading",props:{...A,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[Ph("share")]:"content"},parts:[{...Mn("eyebrow"),when:p_},{...fe("eyebrow"),when:e=>!p_(e)},cz]},Dl("Cards",e=>({...A,...ba(b_(JE.defaultProps)(e))}),C_,w_,e=>mh(hz(e)),{reads:["items"]})],drop:{...X,...te,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"}},u_={top:72,bottom:72,topPhone:72,bottomPhone:72},m_=(e,o)=>({...Sc,...No("background")(e,o)}),x_=e=>{let o=b_(XE.defaultProps)(e);return{...A,...ba(o)}},gz=Oh([["title","Card title"],["body","Card body",!0]]),k_=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Es(lm(o),t),title:at(o?.title),body:at(o?.body)})),v_=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(iz(a)?t[r]=a.map(v_):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},h_=(e,o)=>{let t=vh(e)?mh(yz(e)):zn(),r=Array.isArray(e.template)?e.template.map(v_):[t],[a]=r;return r.length===1&&a.type===j?{...a,props:{...m_(e,o),...a.props}}:{type:j,props:{...A,...m_(e,o),name:"Card"},slots:{[Ce]:r}}},vh=e=>e.cardStyle==="label-only",P_=e=>k_(e).map((o,t)=>{let r=e.items[t]?.href;return Lc({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),yz=e=>P_(e).some(o=>po(o.href)!==void 0),I_=e=>Array.isArray(e.template)&&e.template.length===0,g_=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function T_(){let e=t=>({key:dz("card"),title:f(t),body:f("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:f("Label"),title:f("Section *heading.*"),items:o}}var bz={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...No("surface")(e,o),...re(e,u_)}),box:[...Q,...de(u_)],parts:[{...rt("Cards"),when:e=>!ih(e)},{...Dl("Cards",x_,gz,k_,h_,{reads:["items"],keep:g_}),when:e=>!I_(e)&&!vh(e)},{...Dl("Cards",x_,C_,P_,h_,{reads:["items"],keep:g_}),when:e=>!I_(e)&&vh(e)}],drop:{...X,...te,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)"}},Sz={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...Rl(0,0,1,0),...Mo,...Bc(e)?ya(e,o):{},...yc(Ac(e),e,o),...re(e,i_)}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Bc(o)?Br(e,o,t):e],...de(i_)],skip:e=>bc(Ac(e)),site:(e,o)=>Bc(e.props)?Ar(e,o):[],parts:[rt("Series"),Dl("Cards",uz,mz,e=>S_(e).map(o=>Lc({num:at(o.num),since:at(o.since),title:at(o.title),body:at(o.desc),count:at(o.entries),countLabel:at(o.entriesLabel)})),(e,o)=>({type:j,props:{...pz,...No("background",(t,r)=>Bc(t)&&gc(t,r))(e,o),name:"Card"},slots:{[Ce]:[{type:j,props:{...A,name:"Words",gap:16,gapPhone:16},slots:{[Ce]:[{type:j,props:{...d_,name:"Top"},slots:{[Ce]:[Fe("num",z,M("label",13),!0),Fe("since",z,M("label",13),!0)]}},Fe("title",{...z,tag:"h3"},{textStyle:"heading-3",...M("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Fe("body",oe,{textStyle:"body-5",fontRole:"heading",...M("body",14),lineHeight:1.6})]}},{type:j,props:{...d_,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...Rl(1,0,0,0),...f_(e)?{}:{[Ga]:["count","countLabel"]}},slots:{[Ce]:[{type:j,props:{...A,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[Ph("share")]:"content"},slots:{[Ce]:[Fe("count",z,kh),Fe("countLabel",oe,kh)]}},...f_(e)?[{type:j,props:{...A,name:"View",maxWidthPhone:266},slots:{[Ce]:[{type:"Text",props:{...z,text:Th(e.viewLabel).text,_partStyles:{text:{...jt()._partStyles.text,...kh}}}}]}}]:[]]}}]}}))],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,...te,headPlacement:fz}},y_={top:60,bottom:60,topPhone:40,bottomPhone:40},wz={...A,direction:"row",columns:3,gap:40,gapPhone:16},Cz={...A,gap:8,gapPhone:8,...So(24),...Rl(1,1,1,1)},kz={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...Rl(0,0,1,0),...re(e,y_)}),box:[...Q,...de(y_)],parts:[Dl("Cards",wz,xz,e=>S_(e).map(o=>Lc({label:at(o.label),value:at(o.value),body:at(o.desc)})),(e,o)=>({type:j,props:{...Cz,...No("surface")(e,o),name:"Card"},slots:{[Ce]:[Fe("label",z,{...M("label",12),lineHeight:1.5},!0),{type:j,props:{...A,name:"Words",gap:14,gapPhone:14},slots:{[Ce]:[Fe("value",z,{textStyle:"heading-3",...M("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Fe("body",oe,{textStyle:"body-5",fontRole:"accent",...M("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...X,...te}},O_={Cards:bz,KeyFeatures:Iz,Series:Sz,DocMetaCards:kz};import{phoneKey as Oz}from"efficient-easel/draw";import{newId as Ez}from"efficient-easel/data";import{phoneKey as vz}from"efficient-easel/draw";import{isNode as Nl}from"efficient-easel/data";var Gn="cardStyle";function E_(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var Rc={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[vz("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}}}},nt={table:{...Rc.table,listCard:E_(Rc.table.card)},list:{...Rc.list,listCard:E_(Rc.list.card)}},Lue=[{label:"Table",value:"table"},{label:"List",value:"list"}],Rue=e=>e==="table"||e==="list",Pz=e=>[...new Set([...Object.keys(nt.table[e]),...Object.keys(nt.list[e])])];function Ml(e,o,t){let r={...e};for(let a of Pz(o))delete r[a];return{...r,...structuredClone(nt[t][o])}}function Tz(e,o,t){let r=e.props??{},a=Array.isArray(r[Pe])?r[Pe]:[],n=a.findIndex(i=>Nl(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:Ml(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Pe]:l}}}function Due(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>Nl(s)&&s.type===ao)){let s=a.map(l=>Nl(l)&&l.type===ao?Tz(l,o,t):l);return{...Ml(e,"items",o),[Gn]:o,[r]:s}}let n=a.map(s=>{if(!Nl(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>Nl(d)&&d.type===t?{...d,props:Ml(d.props??{},"card",o)}:d);return{...s,props:{...Ml(l,"row",o),[r]:i}}});return{...Ml(e,"grid",o),[Gn]:o,[r]:n}}var Eh=e=>typeof e=="string"?e.trim():"";function __(e){let o=`${Eh(e.prefix)}${Eh(e.value)}`,t=Eh(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var A_={textStyle:"heading-2",...Ho("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},_h={kind:"block",type:"Text",props:{...Ia,_partStyles:{text:A_}},box:[["value","text",(e,o)=>__(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&__(o)!==""},F_=e=>De(e?.supSuffix),L_={textStyle:"body-1",fontRole:"heading",...M("body",16),lineHeight:1.5,letterSpacing:-.01},R_={color:"labels",...M("label",12),lineHeight:1.5,letterSpacing:.24},D_={...A,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[Oz("share")]:"content"},N_={textStyle:"body-5",...M("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},Fh=e=>Zr(e.background,wa.StatsParagraph),Hl=e=>Fh(e)===Rt,Dc=e=>({...e,sectionAccent:e.sectionAccent??0}),_z=(e,o)=>Hl(e)?No("background",(t,r)=>gc(Dc(t),r))(e,o):{},Fz={name:"Stats with Text",skip:e=>Fh(e)&&Fh(e)!=="transparent"&&!Hl(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},...Mo,...tt(e,"StatsParagraph"),...Hl(e)?ya(Dc(e),o):{}}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Hl(o)?Br(e,Dc(o),t):e],..._r("StatsParagraph")],site:(e,o)=>Hl(e.props)?Ar({props:Dc(e.props)},o):[],parts:[rt("StatsParagraph"),{kind:"group",name:"Stats",props:{...A,...nt.table.grid,[Gn]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...A,direction:"row",share:"equal",phoneRow:2,...nt.table.row},props:(e,o)=>({...A,...nt.table.card,..._z(e,o)}),parts:[{..._h,when:(e,o)=>!F_(o)&&_h.when(e,o)},{kind:"group",name:"Figure",props:D_,when:(e,o)=>F_(o),parts:[_h,{kind:"text",key:"supSuffix",props:z,style:N_}]},{kind:"group",name:"Words",props:{...A,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:z,style:L_},fe("sub",R_)]}]}]}],drop:{...X,...te,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"}},Bz=new Set(["value","label",$o]),B_={top:48,bottom:48,topPhone:48,bottomPhone:48},Az=e=>{let o=Zr(typeof e.background=="string"?e.background:void 0,wa.Stats);return!!o&&o!=="transparent"},Lz={name:"Stats",skip:e=>Az(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":De(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>De(o?.[$o]))?"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=>!Bz.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,...re(e,B_)}),box:[...Q,...de(B_)],parts:[fe("heading",{color:"labels",...M("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...A,...nt.list.grid,[Gn]:"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,...nt.list.row},props:{...A,...nt.list.card},parts:[{kind:"text",key:"value",props:Ia,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,...te,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"}},M_={StatsParagraph:Fz,Stats:Lz};function H_(){return{eyebrow:f("By the numbers"),title:f("What we count."),desc:f("A few numbers that matter to us."),stats:[],background:"transparent"}}var Rz=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function W_(){let e=(o,t,r,a="")=>({key:Ez("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",f("Years in business"),f("Privately held since day one. Same two founders.")),e("==_8_==",f("Operating footprint"),f("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."),f("cities")),e("\u221221==_%_==",f("Avg. weight saving"),f("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",f("Finish steps"),f("Specified in California to a 14-step protocol. No two sets are identical."))]}function Dz(e){return{type:j,props:{...A,name:"Card",...structuredClone(nt[e].listCard)},slots:{[Ce]:[{type:j,props:{...D_,name:"Figure"},slots:{[Ce]:[Fe("figure",Ia,A_),Fe("superscript",z,N_)]}},{type:j,props:{...A,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Fe("label",{...z,widthFit:"fill"},L_),Fe("body",{...z,widthFit:"fill"},R_,!0)]}}]}}}function Bh(e,o,t=4){return{type:j,props:{...A,name:"Stats",direction:"row",columns:t,...structuredClone(nt[o].items),[Gn]:o},slots:{[Ce]:[{type:ao,props:cd(e,Rz),slots:{[Pe]:[Dz(o)]}}]}}}var $_={heading:"Ways to pay"},z_=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],U_=()=>[{text:f("Secure encrypted checkout")},{text:f("30-day returns")}],eme={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as Nz}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as G_}from"efficient-shell/format";var Nc="Flex",Mz={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},Hz={FooterPayment:"PaymentLogosBlock"},Wz=e=>{let{id:o,...t}=e;return t},j_=e=>typeof e=="string"?e:"",Kn={sm:12,md:13,lg:15},K_={sm:{mark:16,words:Kn.sm},md:{mark:20,words:Kn.md}},$z="md",q_=1.5,zz={size:13,lineHeight:q_,width:280},Uz=14,jz=40,Gz=e=>G_(["left","center","right"],"left",e);function Kz(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 qz(e,o,t){let r=t(e,Wz(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:V_(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=ad(e,r.props);return a===r.props?r:{...r,props:a}}function V_(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Ot(r))a[n]=V_(a[n],o,t);return{...r,props:a}})}function Y_(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=W(Mz,e.type)??W(Hz,e.type);if(n)return[qz(n,r,o)];switch(e.type){case"FooterLogo":{let s=Gz(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(Uk*((ye(r.widthPct)??100)/100)),href:"/",align:s,...Kz(r)}),i=j_(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...zz}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&uo(Kn,r.size)?r.size:$z;return[o("Text",{text:j_(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:Kn[s],lineHeight:q_}}})]}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?{[Nz("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Nc,{direction:r.direction==="horizontal"?"row":"column",gap:jk("FooterGroup",r.gap),align:G_(["start","center","end","stretch"],"start",r.align),...Yu,content:s.flatMap(l=>Y_(l,o,t))})]}default:return[]}}function Wl(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=c=>o(Nc,{direction:"row",wrap:!0,share:"equal",gap:jz,content:c}),s=[],l=[];for(let c of a){let x=Y_(c,o,r);if(c.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...x);continue}x.length<=1?l.push(...x):l.push(o(Nc,{direction:"column",gap:Uz,align:"stretch",...Yu,content:x}))}(l.length||!s.length)&&s.push(n(l));let i=o(Nc,{direction:"column",content:[o("LegalLineBlock")]}),d=Xk(eo,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as Lh,readHidable as Vz}from"efficient-easel/draw";import{parseOption as Yz}from"efficient-shell/format";var Rh={contained:!1},Dh=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>De(r?.src)||De(r?.[o])}]}]}),Ah=e=>{let o=ye(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},Xz={...fe("heading",{color:"labels",letterSpacing:.2}),props:{...z,align:"center"}},Jz={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...re(e,Ah(e))}),box:[...Q,...de(Ah),["bandPadding","sectionPaddingTop",(e,o)=>re(o,Ah(o)).sectionPaddingTop]],parts:[Xz,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:Rh,slots:Dh("items","alt")}],drop:{...X,...te,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"}},Zz={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:lS(4,"main",{sectionCorners:2})},X_={top:24,bottom:24,topPhone:24,bottomPhone:24},Qz={name:"Payment Methods",boxProps:e=>({...Y,direction:"column",...re(e,X_)}),box:[...Q,...de(X_)],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:{...z,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[ro,zt],props:e=>De(e[ro])?{[ro]:e[ro],...e[zt]!==void 0?{[zt]:e[zt]}:{}}:{}},props:{...Rh,look:"cards",grayscale:!1},slots:e=>({...Dh("badges","label"),...De(e[ro])?{[Pe]:[tm()]}:{}})},{kind:"group",name:"Reassurance",props:{...A,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[Lh("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>De(o?.text)),props:{...A,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[Lh("share")]:"content"},item:e=>Vz(e.text).hidden?{props:{_hidden:!0}}:{},parts:[Zz,{kind:"text",key:"text",props:{...z,align:"center"},style:{...M("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...X,...te,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},J_=e=>eS(e.align)??"left",Z_=e=>Yz(["sm","md"],"sm",e.size),Q_=12,e1={name:"Payment logos",boxProps:e=>({...A,direction:"row",wrap:!0,align:"center",justify:Xi[J_(e)],gap:Q_,gapPhone:Q_,phoneRow:2,[Lh("share")]:"content"}),box:[...pr],parts:[{kind:"text",key:"lead",props:oe,styleFrom:e=>({size:Kn[Z_(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[ro,zt],props:e=>({logoHeight:K_[Z_(e)].mark,align:J_(e),...De(e[ro])?{[ro]:e[ro],...e[zt]!==void 0?{[zt]:e[zt]}:{}}:{}})},props:{...Rh,look:"marks",grayscale:!1,sectionAccent:cr},slots:e=>({...Dh("methods","label"),...De(e[ro])?{[Pe]:[tm()]}:{}})}],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"}},o1={Logos:Jz,PaymentBadges:Qz,FooterPayment:e1,PaymentLogosBlock:e1},t1=()=>({heading:tO.heading,items:Jf()}),r1=()=>({heading:$_.heading,badges:z_(),assurances:U_()}),a1=()=>({...jd,methods:[]});import{mixHex as aU}from"efficient-shell/format";import{MOTION_EASING as eU,MOTION_TIMING as n1,motionSeconds as s1,parseOption as l1}from"efficient-shell/format";var Nh="none",Mc=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function Fme(e){return l1(Mc,Nh,e)}var qn="_gLoop",$l={field:"loop",is:"scroll"},zl="left",Mh=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],oU={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function i1(e){return l1(Mh,zl,e)}function d1(e){return e==="up"||e==="down"}function Hc(e){return s1("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var Bme=n1.loop.duration.default,tU=n1.loop.delay.default;function f1(e){return s1("loop","delay",e.loopDelay)}function Ame(e,o,t=tU){return`${oU[e]} ${o}s ${eU.loop}${t?` ${t}s`:""} infinite`}var Wc="_gEntrance";var Nme="none",Mme=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function $c(e){return e==="above"||e==="below"?e:null}var c1="sf-ticker-join";function rU(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function p1(e){return`absolute inset-x-0 ${rU(e)}`}var Ca={direction:"row",share:"content",align:"center"},Ul={top:14,bottom:14,topPhone:12,bottomPhone:12},zc={wrap:"nowrap",loop:"scroll",sectionAccent:cw,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},u1={gap:120,gapPhone:64},Uc={...Bo,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},m1={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},jl={top:16,bottom:16,topPhone:12,bottomPhone:12},Gl={justify:"between",wrap:"wrap",gap:32,separator:"none"},Kl={...Bo,letterSpacing:.1,lineHeight:1.5};var x1=e=>e.size==="display",nU=(e,o)=>{let t=Ic(e,o),r=e.tone!=="plain"&&t?.text&&t.background?aU(t.text,t.background,.3):null;return r?{color:r}:{}},sU=(e,o)=>e.tone!=="plain"&&mm(e.sectionAccent)===null?No("background")(e,o):{},h1=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:oe,style:e,styleFrom:nU}]}),lU={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...Ca,...zc,...rS[Vu(e.separator)]===""?u1:{},...re(e,Ul),...sU(e,o)}),box:[["scrollDirection","scrollDirection",e=>i1(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=>Vu(e)],["join","join",e=>$c(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...Q,["tone","sectionAccent",(e,o)=>mm(o.sectionAccent)??cr],...de(Ul)],parts:[h1(Uc,e=>!x1(e)),h1(m1,x1)],drop:{...X,...te,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},I1=e=>e?.tone==="muted",g1=e=>pd(ua(e)),iU={name:"Spec Strip",boxProps:(e,o)=>({...Y,...Ca,...Gl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:g1(o)},...re(e,jl)}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:g1(t)],...de(jl)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:z,style:Kl,when:(e,o)=>!I1(o)},{kind:"text",key:"text",props:oe,style:Kl,when:(e,o)=>I1(o)}]}],drop:{...X,...te,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"}},y1={Ticker:lU,SpecStrip:iU};import{tabletKey as b1}from"efficient-easel/screen/lib/content/view-tiers";var S1={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[b1("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[b1("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},Hh={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as dU}from"efficient-easel/draw";var $e={text:"Button label",href:"#"},gt=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),Ee={eyebrow:"Eyebrow",heading:"Main heading",accent:"Highlight line",body:"Add a sentence or two of supporting copy.",button:"Button label",link:"#",sectionHeading:"Section heading",slideName:"Slide name",boxName:"Box name",headingAccent:"Section heading *here.*",sectionNumber:"Section number",imageCaption:"Image caption",bookingConfirmation:"Thanks \u2014 we'll email you to confirm.",imageMeta:"Image meta",label:"Label",value:"Value",viewAll:"View all",date:"Month DD, YYYY",category:"Category"};var jc={eyebrow:Ee.eyebrow,title:`Section heading
321
- *Highlight line*`,intro:Ee.body,imageCaption:Ee.imageCaption,imageMeta:Ee.imageMeta,cta:$e.text},w1=()=>[{date:f("Year"),title:f("Milestone title."),body:f("Describe what happened, in a sentence or two.")},{date:f("Year"),title:f("Milestone title."),body:f("Describe what happened, in a sentence or two.")},{date:f("Year"),title:f("Milestone title."),body:f("Describe what happened, in a sentence or two.")}],axe={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Gc={eyebrow:Ee.eyebrow,title:Ee.headingAccent,intro:Ee.body,cta:$e.text},C1=()=>[{date:f("Year"),title:f("Milestone"),blurb:f("A short line about this milestone."),future:!1},{date:f("Year"),title:f("Milestone"),blurb:f("A short line about this milestone."),future:!1},{date:f("Year"),title:f("Milestone"),blurb:f("A short line about this milestone."),future:!1},{date:f("Year \u2192"),title:f("Upcoming"),blurb:f("A milestone still to come."),future:!0}],dxe={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Mk,padTop:120,padBottom:120}};var E1={buttonBorder:{width:0}},Vc=(e,o,t={})=>({textStyle:"body-5",...M("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),Vn=(e,o,t={})=>({...Vc(e,o),...Bo,...t}),Yc=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),ql=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),st=(e,o,t={})=>({kind:"text",key:e,props:z,style:o,...t}),k1=(e,o)=>o?.future===!0,Kc=e=>wT(typeof e?.body=="string"?e.body:""),jh=e=>Zr(typeof e.background=="string"?e.background:void 0,wa.TimelineTrack),Wh=e=>jh(e)===Rt?e:{...e,background:"transparent"},fU={name:"Milestone Timeline",skip:e=>bc(jh(e)),boxProps:(e,o)=>{let t=Fr(Wh(e),o);return{...Y,direction:"column",gap:60,[dU("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...Mo,...tt(e,"TimelineTrack"),...yc(jh(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Br(e,Wh(o),t)],..._r("TimelineTrack")],parts:[wh(_c(Tc("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,...Mo},parts:[{kind:"list",key:"entries",name:"Year",props:{...A,...S1},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:Hh.name,props:{...A,...Hh},parts:[st("date",Vc(13,.22,{color:"accent"}),{when:(e,o)=>!k1(e,o)}),st("date",Vc(13,.22,{color:"labels"}),{when:k1}),st("title",{textStyle:"heading-3",...Yc(M("headingSmall",20),-.02,1.1)},{role:"heading"})]},st("blurb",ql(M("body",13),1.55),{props:oe,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:{...no,align:"right",...E1},style:Vn(13,.3)}]}]}],site:(e,o)=>Ar({props:Wh(e.props)},o),drop:{...X,...te,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"}},Kh=e=>typeof e.layout=="string"?e.layout:"split",qc=e=>Kh(e)==="split",Gh=e=>!qc(e),_1=e=>Kh(e)==="spine",cU=e=>Gh(e)&&!_1(e),v1=(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",...So(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:[st("imageCaption",Vn(11,.24,{color:"text"})),st("imageMeta",Vn(11,.24,{color:"accent"}),{props:{...z,align:"right"}})]}]}),P1=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...no,...e,...E1},style:Vn(13,.3)}),$h=()=>[st("title",{textStyle:"heading-3",...Yc(M("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...z,_partStyles:{text:ql(M("body",17,16),1.6)}},box:[["body","text",(e,o)=>ks(Kc(o)[0]??"")]],when:(e,o)=>Kc(o).length>0},{kind:"block",type:"Text",props:{...oe,_partStyles:{text:ql(M("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>ks(Kc(o).slice(1).join(`
322
-
323
- `))]],when:(e,o)=>Kc(o).length>1}],zh=()=>st("date",Vc(13,.24,{color:"accent"})),Uh=(e,o,t={})=>st(e,o,{...t,props:{...z,...t.props??{},align:"center"}}),T1=Ho("headingMedium",40,5,76),O1={sectionBorder:{bottom:1}},pU={name:"Story Timeline",skip:e=>Kh(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>qc(e)?{...Y,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...O1,...tt(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...O1,...tt(e,"Timeline")},box:[...Q,..._r("Timeline")],parts:[{kind:"group",name:"Heading",props:{...A,gap:24,gapPhone:24},when:qc,parts:[st("eyebrow",Vn(12,.3,{color:"accent"}),{role:"eyebrow"}),st("title",{textStyle:"heading-2",...Yc(T1,-.03,.94)},{role:"heading",mark:"accentItalic"}),st("intro",ql(M("body",14),1.6),{props:{...oe,maxWidth:360},mark:"accentItalic"}),v1(667,419,{},()=>!0),P1()]},{kind:"group",name:"Chapters",props:{...A,gap:48,gapPhone:48,line:!1},when:qc,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...A,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[zh(),{kind:"group",name:"Words",props:{...A,gap:14,gapPhone:14},parts:$h()}]}]},{kind:"group",name:"Heading",props:{...A,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:Gh,parts:[Uh("eyebrow",Vn(12,.3,{color:"accent"}),{role:"eyebrow"}),Uh("title",{textStyle:"heading-2",...Yc(T1,-.03,.94)},{role:"heading",mark:"accentItalic"}),Uh("intro",ql(M("body",14),1.6),{props:{...oe,maxWidth:520},mark:"accentItalic"}),P1({align:"center"})]},v1(506,192,{maxWidth:900,widthFit:"fill"},Gh),{kind:"group",name:"Chapters",props:{...A,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:_1,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...A,gap:8,gapPhone:8},parts:[zh(),{kind:"group",name:"Words",props:{...A,gap:14,gapPhone:14},parts:$h()}]}]},{kind:"group",name:"Chapters",props:{...A,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:cU,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:[zh(),{kind:"group",name:"Words",props:{...A,gap:14,gapPhone:14},parts:$h()}]},{kind:"group",name:"Spacer",props:{...A},keepEmpty:!0,parts:[]}]}]}],drop:{...X,...te,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},F1=()=>({eyebrow:jc.eyebrow,title:gt(jc.title),intro:jc.intro,ctaText:$e.text,ctaHref:$e.href,entries:w1()}),B1=()=>({eyebrow:Gc.eyebrow,title:gt(Gc.title),intro:Gc.intro,ctaText:$e.text,ctaHref:$e.href,entries:C1()}),A1={TimelineTrack:fU,Timeline:pU};import{tabletKey as hU}from"efficient-easel/draw";var uU=["tall","square","wide"],mU="tall";function L1(e){return uU.includes(String(e??""))?String(e):mU}var vxe={sectionNumber:"\xB7 Locations",heading:"Our *locations.*",tagline:"Visit us in person \u2014 find your nearest studio below.",galleryKicker:"Gallery",galleryHint:"Hover to see in colour \xB7 click to jump",mapTheme:"auto"},Pxe=[{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
324
- Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""},{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
325
- Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""}],xU=/^https?:\/\//i;function Txe(e){let o=(e.mapsUrl??"").trim();return{photo:"",group:"",groupName:"",name:e.name??"",state:e.state??"",country:e.country??"",timezone:"",address:e.address??"",phone:e.phone??"",hours:e.hours??"",lat:am(e.lat),lng:am(e.lng),mapsUrl:xU.test(o)?o:""}}function qh(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var Oxe="other",Exe={routingNumber:"02 \xB7 Routing",routingTagline:"What can we help you with?",groups:[{id:"fitment",eyebrow:"A \xB7 Label",title:"Group one",copy:"Short description of this routing group.",response:"< 48h"},{id:"trade",eyebrow:"B \xB7 Label",title:"Group two",copy:"Short description of this routing group.",response:"< 24h"},{id:"press",eyebrow:"C \xB7 Label",title:"Group three",copy:"Short description of this routing group.",response:"< 48h"},{id:"order",eyebrow:"D \xB7 Label",title:"Group four",copy:"Short description of this routing group.",response:"< 24h"}],formNumber:"03 \xB7 Message",formHeading:"Send *a note.*",metaLines:["Encrypted in transit","Stored 12 months"],showOther:!0,otherLabel:"Other",otherNoteTitle:"No matching team",otherNoteBody:"Tell us what you need in the message field below \u2014 we'll route it to whoever can help.",buttonText:"Send Message \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties.",channels:[{label:"Team one",value:"team-one@email.com",href:"mailto:team-one@email.com",sub:"Detail \xB7 Detail",groupId:"fitment"},{label:"Team two",value:"team-two@email.com",href:"mailto:team-two@email.com",sub:"Detail \xB7 Detail",groupId:"trade"},{label:"Team three",value:"team-three@email.com",href:"mailto:team-three@email.com",sub:"Detail \xB7 Detail",groupId:"press"},{label:"Team four",value:"team-four@email.com",href:"mailto:team-four@email.com",sub:"Detail \xB7 Detail",groupId:"order"},{label:"Phone",value:"+1 (000) 000-0000",href:"tel:+10000000000",sub:"Mon\u2013Fri \xB7 9:00\u201318:00"}]};function R1(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var lt=e=>typeof e=="string"?e:e==null?"":String(e),Yh=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],Yn=e=>lt(e.group),j1=e=>`loc-${e}`,G1=e=>lt(e.state).trim()||qh(lt(e.region)).state,K1=e=>lt(e.country).trim()||qh(lt(e.region)).country,D1=e=>[G1(e),K1(e)].filter(Boolean).join(" \xB7 "),IU=e=>Yh(e).some(o=>lt(o.photo).trim()!==""),gU=e=>Yh(e).some(o=>SS(Number(o.lat),Number(o.lng))),yU=(e,o)=>Yh(e).filter(t=>Yn(t)===Yn(o)).length,bU=(e,o)=>yU(e,o)===1?"wide":L1(e.imageShape),Vh={top:100,bottom:100,topPhone:60,bottomPhone:60},N1=48,yt=(e,o={})=>({...ht(e),...o}),Xh={top:1,right:1,bottom:1,left:1},Jh={...A,direction:"row",share:"equal",gap:0},SU=e=>o=>o>td(o)?{...A,gap:0}:{...Jh,...o>1?{phoneRow:e}:{}},Zh=!0,wU={kind:"group",name:"Gallery",props:{...A,gap:20,...Zh?{_hidden:!0}:{}},when:IU,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",yt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...oe,align:"right",alignPhone:"left"},style:yt(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:Xh,...So(12,12)},item:(e,o,t)=>({props:{...lt(e.photo).trim()?{bgImage:lt(e.photo),hover:"mono"}:{},link:`#${j1(o)}`,boxShape:bU(t,e)}}),parts:[{kind:"text",key:"name",props:z,style:yt(11,{letterSpacing:.22,color:"text"})}],groups:{of:Yn,name:"Group",props:{...A,gap:10},head:e=>({label:Yn(e[0]??{})}),parts:[fe("label",yt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:SU(2),perRow:td,rowName:"Row",rowProps:{...Jh,phoneRow:2}}}]}]},CU={kind:"group",name:"Words",props:{...A,gap:12,gapPhone:12,...So(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:z,style:{textStyle:"heading-3",...M("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...z,_partStyles:{text:yt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>D1(t)]),when:(e,o)=>D1(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...A,sectionBorder:Xh,...So(6,10)},parts:[{kind:"text",key:"timezone",props:{...oe,textFit:"line"},style:yt(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:oe,style:{textStyle:"body-5",fontRole:"heading",...M("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...no,...ga,variant:"ghost",arrow:!1,_partStyles:{label:yt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>R1(lt(e))??"#"]],when:(e,o)=>lt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:oe,style:yt(12,{letterSpacing:.18,lineHeight:1.7})}]},kU={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)=>G1(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>K1(t)])]},vU={kind:"group",name:"Map",props:{...A,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[kU]},PU={kind:"list",key:"locations",name:"City",props:(e,o)=>({...A,gap:0,justify:"between",sectionBorder:Xh,jumpHighlight:!0,sectionAccent:Fr(e,o)>=0?Hn(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:j1(o)}}),parts:[CU,vU],groups:{of:Yn,name:"Group",props:{...A,gap:20},head:e=>{let o=e[0]??{};return{key:Yn(o),groupName:lt(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)=>lt(o?.key).trim()!=="",parts:[fe("key",yt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:z,style:{textStyle:"heading-3",...M("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:oe,style:yt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...Jh,columns:td(e),[hU("columns")]:1})}},M1=yt(10,{letterSpacing:.25}),TU={kind:"block",type:Dt,props:{...A,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:gU,slot:Nt,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...oe,text:"Location coordinates \xA9",_partStyles:{text:M1}}},{kind:"block",type:"ButtonBlock",props:{...no,...ga,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...M1,color:"labels"}}}}]},H1=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),W1=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],$1=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],z1=e=>e.map(o=>[o,o,(t,r)=>re(r,Vh)[o]]),U1=["sectionAccent","sectionAccent",Br],OU=[...pr,...un,...Object.values(Oo)],EU={name:"City pictures",skip:e=>Le(e)?`fed by the data source "${Le(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",...Mo,...H1(re(e,Vh),W1),sectionPaddingBottom:N1,sectionPaddingBottomPhone:N1,...ya(e,o)}),box:[...Q.filter(e=>e!=="sectionAccent"&&e!=="anchor"),U1,["anchor","anchor",e=>$k(e).trim()?e:"studios"],...z1(W1)],parts:[Tc("sectionNumber","heading","tagline"),wU],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...Mo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...H1(re(e,Vh),$1),...ya(e,o)}),box:[...OU,U1,...z1($1)],parts:[PU,TU]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:Ar,drop:{...X,...te,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)"}},q1={ContactLocations:EU};import{SITE_SIDE as V1,sideLengthAt as _U}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as Qh}from"efficient-easel/draw";var FU=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var Lr=(e,o)=>()=>({top:e,topPhone:o}),Y1=e=>o=>{let t=vn(e),r={...o,[ur.top]:Ed(o,t).top},a=i=>{let d=_U(r,ur,Od,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>ye(o[Qh(ur.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}:{}}},BU={Collections:Lr(120,70),Events:Lr(120,70),FAQ:Lr(120,70),GalleryB:Lr(120,70),FitmentTable:Lr(120,80),SpecTable:Lr(120,80),LongRead:Lr(120,80),RelatedProducts:Lr(0,0),Footprint:Y1("Footprint"),ProcessSteps:Y1("ProcessSteps"),ProductGrid:e=>({top:ye(e.padTop)??120,topPhone:0})};function AU(e,o={}){let t=W(It,e),r=W(BU,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=rt(e),s=Fc(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:W(Gr,e)??e,boxProps:(d,c)=>{let x=r(d),m=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(d,c):o.boxProps??{},g=Sa(e)==="editorial"?Mo:{};return{...Y,direction:"column",gap:Ll[Sa(e)],sectionPaddingTop:x.top,...x.topTablet!==void 0?{sectionPaddingTopTablet:x.topTablet}:{},...x.topPhone!==void 0?{sectionPaddingTopPhone:x.topPhone}:{},...g,...m,...h}},box:[...Q,...a?[[a,"sectionPaddingTop",(d,c)=>r(c).top]]:[]],parts:[n,...(()=>{let d=a&&A0.has(e)?{[Qh(a,"tablet")]:0,[Qh(a,"mobile")]:0}:{},c={...a?{[a]:0}:{},...d,...o.coreProps},x={kind:"core",keep:"rest",...Object.keys(c).length?{props:c}:{},...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 LU={...A,direction:"accordion",rowStyle:"numbered"},RU={sectionPaddingLeft:V1,sectionPaddingRight:V1},DU={Footprint:{slots:{[Pe]:[wS()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[ws]:hE().map(t=>({...t,props:{...t.props,...RU}}))}:{},boxProps:{gapPhone:Ll.editorial}},FAQ:{slots:{[Pe]:[bS()]},pressHeading:!0,coreBox:{name:"Questions",props:LU},coreProps:{sectionAccent:cr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[O0]:ta},skip:e=>{let o=e._partStyles??{},t=yS().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}}},X1=Object.fromEntries(FU.map(e=>[e,AU(e,W(DU,e))]));import{BLOCK_WIDTH_LIMIT as NU}from"efficient-easel/draw";var Xc={eyebrow:Ee.eyebrow,title:Ee.headingAccent,deck:"Add a sentence or two introducing this document."},phe={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var aF={minWidth:NU.min},J1=(e,o,t)=>({...fe(e,{...o,..._l}),props:{...z,align:"right",...ha,...t}}),nF={top:1,bottom:0},oI=(e,o,t,r)=>({kind:"group",name:e,props:{...A,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),Z1={widthFit:"fill",...aF},Q1={top:100,bottom:60,topPhone:60,bottomPhone:40},MU={...M("label",13),letterSpacing:.22,lineHeight:1.8},eF={textStyle:"heading-1",...Ho("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},HU=()=>({name:"Page Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,Q1)}),box:[...Q,...de(Q1)],parts:[{kind:"group",name:"Header",props:{...A,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[oI("Eyebrow",12,0,{...fe("eyebrow",M("label",13)),props:{...z,...ha}}),{kind:"text",key:"title",role:"heading",props:{...z,tag:"h1",...Z1},style:eF,mark:"accentItalic",when:e=>!Vx(e)},{kind:"text",key:"title",role:"heading",props:{...z,tag:"h2",...Z1},style:eF,mark:"accentItalic",when:Vx},{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:[Fl("label","value",MU,ha)]}]}]},{kind:"group",name:"Deck",props:{...A,maxWidth:760,sectionBorder:nF,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:oe,style:{textStyle:"body-1",fontRole:"accent",...M("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...X,...te,[ec]:"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"}}),sF=()=>({eyebrow:Xc.eyebrow,title:gt(Xc.title),deck:Xc.deck,meta:[{label:Ee.label,value:Ee.value},{label:Ee.label,value:Ee.value}]}),oF={top:80,bottom:40,topPhone:60,bottomPhone:32},WU={...M("label",13),letterSpacing:.18,lineHeight:1.8},tF={...M("label",13),letterSpacing:.22,lineHeight:1.9},$U=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,oF)}),box:[...Q,...de(oF)],parts:[{kind:"group",name:"Top",props:{...A,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[oI("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:[Fl("lead","rest",WU)]}]}]},{kind:"group",name:"Bottom",props:{...A,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:nF,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...z,maxWidth:720,...aF},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:[oI("Heading",6,6,{kind:"text",key:"issueHeading",props:{...z,align:"right",...ha},style:{textStyle:"body-1",fontRole:"heading",...M("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,..._l}}),{kind:"group",name:"Lines",props:{...A,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[J1("text",{color:"labels",...tF})]}]},J1("issueTotal",tF)]}]}],drop:{...X,...te}}),rF={top:24,bottom:24,topPhone:16,bottomPhone:16},eI={color:"labels",...M("label",13),letterSpacing:.2},lF=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),tI=(e,o)=>o!==void 0&&lF(e).at(-1)===o,iF=(e,o)=>o!==void 0&&lF(e).includes(o),zU=(e,o)=>iF(e,o)&&!tI(e,o)&&De(o?.href),UU=()=>({name:"Breadcrumb",skip:e=>De(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Y,...Ca,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...re(e,rF)}),box:[...Q,...de(rF)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:zU,props:{...no,...ga,icon:"none"},style:eI},{...fe("label",eI),when:(e,o)=>iF(e,o)&&!tI(e,o)&&!De(o?.href)},{...fe("label",{...eI,color:"text"}),when:tI}]}],drop:{...X,...te,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),dF={DocMasthead:HU(),Masthead:$U(),Breadcrumb:UU()};import{BLOCK_WIDTH_LIMIT as GU,hiddenKeyOf as KU}from"efficient-easel/draw";import{readHidable as rI}from"efficient-easel/draw";function jU(e,o,t){return e||(t?.isEditing?f(o):void 0)}function Phe(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function fF(e,o,t){let r=rI(e);if(!r.hidden)return jU(r.text,o,t)}function cF(e){if(e==null)return;let o=rI(e);return o.hidden?"":o.text}function The(e,o,t){return rI(e).hidden?"":fF(e,o,t)}function Ohe(e,o,t){return{text:fF(e,$e.text,t),href:o||$e.href}}var xF="MenuBlock",aI=e=>(Array.isArray(e)?e:[]).filter(o=>o&&De(o.label)),pF=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(cF(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},uF={top:0,bottom:0,topPhone:0,bottomPhone:0},qU={...Bo,color:"labels",...M("label",12),letterSpacing:.24},VU={kind:"group",name:"Note",props:{...A,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[KU("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>pF(e)!=="",props:e=>({...z,textFit:"line",text:pF(e),[ck]:{text:qU}})}]},hF=()=>({tabs:[],metaLabel:Ee.label,metaValue:Ee.value}),mF="the note Text inside the Box (the label, then the value in the accent); no words, no Text",IF={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:GU.min},gF=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[dn]:0,[Ws]:!0,sectionBorder:{bottom:1},...re(o,uF)}),box:[...Q,...de(uF)]}),YU=()=>gF({name:"Tab Bar",skip:e=>aI(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:mF,metaValue:mF},parts:[{kind:"block",type:xF,props:IF},VU],drop:{...X,...te,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"}}),XU=()=>gF({name:"Category Bar",skip:e=>{if(aI(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(aI(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:xF,props:{...IF,[ro]:lb}}],drop:{...X,...te,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"}}),yF={DocTabs:YU(),CategoryBar:XU()};import{jsx as ka,jsxs as sI}from"react/jsx-runtime";import{slugify as JU}from"efficient-shell/format";import{jsx as nI,jsxs as bF}from"react/jsx-runtime";var Whe="sticky top-[120px]";var Jc={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var SF=(e,o)=>e?{[Vr]:o}:{},wF=(e,o)=>IS(e?.[Ts(o)]?.role,Jc[o],wb),CF=120;function kF({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=ax,takesViewHide:l=!1}){let i=s==="plain",d=Jo(),c=l?d:gr;return c.scope(bF("aside",{className:wo(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,c.className),style:r?{top:t}:void 0,...c.attrs,children:[e&&nI("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:qe(e)}),o.map((x,m)=>{let h=nI("span",{...SF(a,"number"),style:wF(n,"number"),className:"text-accent",children:If(s,m)});return bF("a",{href:`#${x.anchor}`,className:`flex items-center ${i?"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${m===0?" border-t":""}`,children:[i&&h,nI("span",{...SF(a,"entry"),style:wF(n,"entry"),children:qe(x.label||"Section")}),!i&&h]},`${m}-${x.anchor}`)})]}))}function ZU(e,o){return JU(e)||`section-${o+1}`}var lI=e=>typeof e=="string"&&e.trim()!=="";function iI(e){return(e??[]).filter(o=>lI(o.heading)||lI(o.label)||lI(o.body))}function dI(e){let o=new Set;return e.map((t,r)=>{let a=ZU(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function fI(e){let o=[];for(let t of e.replace(/\r\n?/g,`
326
- `).split(/\n[ \t]*\n/))t.split(`
327
- `).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=Ki(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+=`
328
- ${r}`:o.push({type:"p",text:r})});return o}var QU=()=>[{label:f("First section"),heading:f("Your *first* section."),body:f(`Write the opening paragraph here.
329
-
330
- - Start a line with a dash for a bullet.
331
- - Add as many as you like.`)},{label:f("Second section"),heading:f("Your *second* section."),body:f("Leave a blank line between paragraphs to start a new one.")}],ej=CF;function sIe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=ej}){let a=iI(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?QU():a,s=dI(n);return ka(ie,{as:"section",className:"relative z-[2] bg-bg",children:sI("div",{className:"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]",children:[ka(kF,{title:e,entries:n.map((l,i)=>({label:l.label||"Section",anchor:s[i]})),stickyTop:r}),ka("div",{className:"flex flex-col gap-16",children:n.map((l,i)=>sI("article",{id:s[i],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[sI("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[rx(i)," \xB7 ",qe(l.label||"Section")]}),l.heading&&ka("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:qe(l.heading)}),fI(l.body??"").map((d,c)=>d.type==="ul"?ka("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:d.items.map((x,m)=>ka("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:qe(x)},m))},c):ka("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:qe(d.text)},c))]},s[i]))})]})})}var vF={top:80,bottom:80,topPhone:60,bottomPhone:60},PF=18,TF=18,OF=8,oj=10,cI=e=>typeof e=="string"&&e.trim()!=="",EF=e=>iI(e.sections),tj=e=>fI(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
332
- `)}:{kind:"p",text:o.text}),pI={...ht(12),letterSpacing:.3,color:"accent",lineHeight:1.5},_F={textStyle:"body-1",fontRole:"accent",...M("body",17)},rj=[fe("label",pI),{...fe("title",pI),when:(e,o)=>!cI(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!cI(o?.label)&&!cI(o?.title),props:{...z,text:"Section",_partStyles:{text:pI}}},{kind:"group",name:"Heading",props:{...A,sectionPaddingBottom:OF,sectionPaddingBottomPhone:OF},parts:[{kind:"group",name:"Heading line",props:{...A,sectionBorder:{bottom:1},sectionPaddingBottom:TF,sectionPaddingBottomPhone:TF},parts:[{kind:"text",key:"heading",role:"heading",props:z,style:{textStyle:"heading-2",...Ho("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:tj,parts:[{kind:"text",key:"text",props:oe,style:{..._F,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:oe,style:{..._F,lineHeight:1.65,paragraphSpacing:oj},when:(e,o)=>o?.kind==="ul"}]}],aj=900,nj={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[vc]:aj,sectionBorder:{bottom:1},...re(e,vF)}),box:["anchor","sectionAccent",...pr,...un,...Object.values(Oo),...de(vF)],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=>EF(e),props:{...A,gap:PF,gapPhone:PF},item:(e,o,t)=>({props:{anchor:dI(EF(t))[o]??`section-${o+1}`}}),parts:rj}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},FF={DocBody:nj};import{phoneKey as dj}from"efficient-easel/draw";import{SITE_SIDE as fj}from"efficient-easel/screen/lib/content/length-units";var IIe={eyebrow:"\u2014 Label",title:`Section headline *here.*
333
- *Highlight line*`,body:"Describe this section in a sentence or two."},gIe={text:"Learn more"},yIe={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 uI(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}import{parseOption as sj}from"efficient-shell/format";var BF="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",lj="overlay",ij=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Zc(e){return sj(ij,lj,e)}var wIe={desktop:40,mobile:45,min:20,max:80,step:5};function CIe(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as cj}from"efficient-shell/format";var AF=(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(Ks.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(Ks.sizePhone,t?.phone)}}},pj=e=>Zc(e.layout)==="stacked",LF=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),Qc=e=>ye(e)??100,uj={textStyle:"heading-1",sizeToken:{...Ho("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},mj=[fe("eyebrow",M("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:z,style:{...uj,case:e?"upper":"none"},styleFrom:o=>{let t=Lm(o);return AF(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...oe,maxWidth:560},style:{textStyle:"body-1",...M("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=Lm(e);return AF(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:no}]}],RF=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)`,xj=()=>({name:"Scroll-Over Text",skip:e=>pj(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",...Bl,placement:"left",darken:LF(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Qc(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Qc(e.heightMobile),[Pd]:lC}),box:[...Q.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>LF(o)],["heightDesktop","sectionHeightValue",e=>Qc(e)],["heightMobile","sectionHeightValuePhone",e=>Qc(e)]],parts:mj,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(nv.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:RF("Button color"),buttonTextColor:RF("Button text color"),...X}}),MF={textStyle:"heading-2",...M("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},hj={textStyle:"body-1",...M("body",16),lineHeight:1.7},HF=e=>({kind:"text",key:"body",props:{...oe,maxWidth:520},style:{...hj,paragraphSpacing:e}}),op={top:0,bottom:0,topPhone:0,bottomPhone:0},mI=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},Ij=(e,o)=>{let t=mI(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"}},WF={boxShapePhone:"landscape"},$F="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)",gj=(e,o)=>({[e]:o,[dj(e)]:o}),yj={textStyle:"heading-2",...M("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},DF=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),bj=()=>({name:"Brand Text",boxProps:(e,o)=>({...Y,...No("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,op),...mI(e,100)}),box:[...Q,...de(op)],parts:[{kind:"group",name:"Words",props:()=>({...A,justify:"center",gap:28,gapPhone:28,sectionBorder:Al({right:1}),sectionBorderPhone:Al({}),...Bl,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:fj}),parts:[fe("eyebrow",M("label",14)),{kind:"text",key:"heading",role:"heading",props:z,style:{...MF,case:"none"},mark:"accentItalic"},HF(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(DF(e).length,1),3),...gj("sectionBorder",Al({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:DF,props:{...A,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Ia,style:yj},fe("label",{...M("label",13),color:"labels",letterSpacing:.2})]}]}]}]},ph("Picture","imageSrc",WF)],drop:{...X,grayscale:$F,...te}}),ep=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}},Sj=e=>e.textAlign==="center"||e.textAlign==="right"?Xi[e.textAlign]:"stretch",wj=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),zF=e=>typeof e=="string"&&e.trim()!=="",Cj={...no,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},NF=e=>({...ph("Picture","imageSrc",(o,t)=>({...zF(o.imageSrc)&&uI(o.imageOverlay)>0?{darken:uI(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...WF,sectionBorder:Al(e?{left:1}:{right:1}),...UF(e?"left":"right",$n(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:Cj,style:{...ht(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),UF=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},kj={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...A,justify:"center",align:Sj(e),placement:cj(["left","center","right"],"left",e.textAlign),...Ij(e,72),gap:24,gapPhone:24,...zF(e.textBgSrc)?{darken:wj(e),darkenStyle:"even"}:{},...Bl,sectionPaddingTop:100,sectionPaddingBottom:100,...UF(t?"right":"left",$n(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...fe("eyebrow",M("label",14)),styleFrom:ep},{kind:"text",key:"title",role:"heading",props:z,style:MF,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...ep(e)})},{...HF(24),styleFrom:ep},{kind:"group",name:"Button",props:{...A,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=ep(e);return{...no,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},vj=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Y,...No("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,op),...mI(e,72)}),box:[...Q,...de(op)],parts:[NF(!1),kj,NF(!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:$F,...X,...te}}),jF={IntroBleed:xj(),Manifesto:bj(),Split:vj()};var qF={headPlacement:void 0},GF={top:0,bottom:0,topPhone:0,bottomPhone:0},Pj=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...re(e,GF)}),box:[...Q,...de(GF)],parts:[{kind:"core",keep:"rest",props:qF}],drop:{...X,...te}}),KF={top:120,bottom:120,topPhone:60,bottomPhone:60},Tj=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...re(e,KF)}),box:[...Q,...de(KF)],parts:[fe("eyebrow"),{kind:"text",key:"title",role:"heading",props:z,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:oe},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:qF}],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,...te,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'}}),VF={Form:Pj(),SubmitBuild:Tj()};import{phoneKey as YF}from"efficient-easel/draw";var JF=1.5,XF={textStyle:"body-1",...M("body",15),lineHeight:JF},Oj={...Bo,...M("label",12),letterSpacing:.12,lineHeight:JF},ZF=()=>({type:j,props:{...A,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[YF("share")]:"content",[YF("wrap")]:"nowrap",...So(12,0),sectionBorder:{top:1},name:"Item"},slots:{[Ce]:[{type:j,props:{...A,gap:0,gapPhone:0,name:"Item words"},slots:{[Ce]:[Fe("label",{...z,tag:"p"},XF),Fe("meta",{...oe,tag:"p"},Oj)]}},Fe("amount",{...z,tag:"p"},XF)]}});var Ej=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...Q],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Pe]:[ZF()]}}],drop:{...X}}),QF={OrderSummary:Ej()};import{phoneKey as _j}from"efficient-easel/draw";var XIe={eyebrow:"By the numbers",title:`A picture worth
334
- *a thousand rows.*`},eB=["eyebrow","title","body","caption"],JIe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var oB=["eyebrow","title","body"],QIe={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 aB={top:76,bottom:76,topPhone:76,bottomPhone:76},nB=()=>({kind:"group",name:"Words",props:{...A,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...A,direction:"row",phoneRow:2,[_j("share")]:"content"},parts:[Mn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:z,style:{textStyle:"heading-2",...M("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...oe,maxWidth:435},style:Zi(16)}]}),sB=e=>(o,t)=>({...Y,sectionAccent:Wn(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...re(o,aB)}),lB=[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Wn(e,t)],...de(aB)],Fj=()=>({name:"Chart",boxProps:sB([42]),box:lB,parts:[nB(),{kind:"group",name:"Chart",props:{...A,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Nn},fe("caption",{color:"muted",...M("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...eB],drop:{...X,...te}}),tB=e=>e.align==="left",rB={kind:"group",name:"Card",keepEmpty:!0,props:A,parts:[{kind:"core",keep:"rest",props:Nn}]},Bj=()=>({name:"Mockup Card",boxProps:sB("equal"),box:lB,parts:[{...rB,when:tB},nB(),{...rB,when:e=>!tB(e)}],pressKeepsEmpty:[...oB],drop:{...X,...te}}),iB={Chart:Fj(),Mockup:Bj()};import{phoneKey as Lj}from"efficient-easel/draw";function dB(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function fB(e){return Math.max(e*6,30)}var cB={top:76,bottom:76,topPhone:76,bottomPhone:76},Rj=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),xI=e=>dB(Rj(e)),Dj=e=>Hc({loopDuration:fB(e)}),Nj={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,[Lj("share")]:"content"},parts:[Mn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...z,align:"center"},style:{textStyle:"heading-2",...M("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...oe,align:"center",maxWidth:568},style:Zi(16)}]},Mj=e=>({kind:"group",name:`Row ${e+1}`,when:o=>xI(o)[e].length>0,props:o=>({...A,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:Dj(xI(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=>xI(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),Hj={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:{...z,align:"center"},style:{textStyle:"heading-1",...M("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...z,align:"center"},style:{textStyle:"heading-3",...M("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...z,align:"center",maxWidth:428},style:{textStyle:"body-1",...M("label",14),lineHeight:1.625,color:"muted"}}]},Wj=[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Wn(e,t)],...de(cB)],$j={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:Wn(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...re(e,cB)}),box:Wj,parts:[Nj,{kind:"group",name:"Rows",props:{...A,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>Mj(o))},Hj],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...te}},pB={Integrations:$j},uB=()=>({eyebrow:f("Integrations"),title:f(`Plays well with
335
- *your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});var zj={title:"Back online in",zeroText:"Almost done. Back very soon."},mB=["title"],xge={label:"Countdown",defaultProps:{...zj,endsAt:"",showUnits:!0}};var xB={top:48,bottom:48,topPhone:48,bottomPhone:48},Uj={...fe("title",{...iS(12),color:"muted"}),props:{...z,align:"center"}},jj=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...re(e,xB)}),box:[...Q,...de(xB)],parts:[Uj,{kind:"core",keep:"rest",props:Nn}],pressKeepsEmpty:[...mB],drop:{...X,...te}}),hB={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},Gj=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...re(e,hB)}),box:[...Q,...de(hB)],parts:[{kind:"core",keep:"rest",props:Nn}],drop:{...X,...te}}),IB={Countdown:jj(),FeaturedCover:Gj()};var gB={top:80,bottom:80,topPhone:60,bottomPhone:60},Kj=()=>{let e=Fc("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:Ll[Sa("FitmentFinder")],...re(o,gB)}),box:[...Q,...de(gB)],parts:[rt("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,...te,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},yB={FitmentFinder:Kj()};var tp={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},kge={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var Vl={eyebrow:Ee.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"},Tge={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var bB={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},Ege={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var SB={title:`Section heading
336
- *Highlight line*`},wB=[{label:$e.text,href:$e.href,variant:"primary"},{label:$e.text,href:$e.href,variant:"outline"}],Bge={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};import{parseOption as gI}from"efficient-shell/format";var rp="standard",PB=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],II=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],hI=[...II,"description"],CB={standard:["eyebrowLook"],editorial:[...II,"eyebrowLook"],simple:hI,statement:hI,natural:II,essay:hI},kB=["gap-5","gap-3"],vB=["text-[length:var(--size-body,16px)]","text-[15px]"];function Dge(e){return gI(kB,kB[0],e)}function Nge(e){return gI(vB,vB[0],e)}function Mge(e){return gI(PB,rp,e)}function Hge(e){let o=PB.map(r=>r.value),t=[...new Set(Object.values(CB).flat())];return Vo(e,t.map(r=>[[r],Qi("headStyle",o,rp,o.filter(a=>!CB[a].includes(r)))]))}var rr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ee.viewAll},jge={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:rp,num:rr.num,numStyle:nl,title:rr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var ap={eyebrow:"\u2014 Label",title:`Section headline
337
- *Highlight line*`,body:"A sentence or two of supporting copy."},Vge={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:Ys,bodySizeDesktop:Ys,titleSizeMobile:Ys,bodySizeMobile:Ys,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[dn]:0,uppercase:!1}};var TB={top:72,bottom:72,topPhone:72,bottomPhone:72},qj={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...re(e,TB)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...Q,...de(TB)],parts:[rt("Prose"),{kind:"text",key:"body",props:oe,style:{textStyle:"body-1",...M("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...X,...te,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)"}},OB={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},EB=(e,o)=>o?.variant==="primary",_B=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:EB,variant:"primary",style:{letterSpacing:.3},props:{...no,...OB,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!EB(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...no,...OB,...o}}]}),np=e=>De(e.title),Vj={name:"Call-to-Action Heading",boxProps:e=>({...Y,direction:"row",align:"center",justify:np(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...tt(e,"TitleWithButtons")}),box:[...Q,..._r("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...A,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:z,style:{textStyle:"heading-1",...Ho("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",...np(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[_B(np,{widthFit:"fill",iconPosition:"end"}),_B(e=>!np(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 Yj(e,o){let t=$n(o,{to:fr(e.sectionPaddingUnit)}),r=$n(o,{view:"phone",to:fr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var FB={top:40,bottom:64,topPhone:24,bottomPhone:36},Xj={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...re(e,FB),...Yj(e,o)}),box:[...Q,...de(FB)],parts:[rt("SectionHeader")],drop:{...X,...te,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"}},BB={...A,direction:"row",share:[67],gap:32},AB={...A,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},LB=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),Jj={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...tt(e,"ParagraphsA")}),box:[...Q,..._r("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...BB,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:{...AB,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[Fl("value","label",{...M("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...BB,gapPhone:28},parts:[{kind:"group",name:"Lead",props:A,parts:[{kind:"group",name:"Measure",props:{...A,maxWidth:780},parts:[{kind:"text",key:"lead",props:z,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:{...AB,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...A,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:z,style:{textStyle:"body-1",fontRole:"heading",...M("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:oe,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}},RB={top:24,bottom:24,topPhone:24,bottomPhone:24},Zj={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...re(e,RB)}),box:[...Q,"contained",...de(RB)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...A,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Ut("surface"),...So(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:{...z,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...M("headingMedium",44,32)}},{kind:"text",key:"body",props:{...z,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...M("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:no}]}],drop:{...X,...te}},yI={Prose:qj,TitleWithButtons:Vj,SectionHeader:Xj,ParagraphsA:Jj,Banner:Zj},DB={Prose:()=>({eyebrow:tp.eyebrow,title:gt(tp.title),body:tp.body}),TitleWithButtons:()=>({title:gt(SB.title),buttons:wB.map(e=>({...e}))}),SectionHeader:()=>({num:rr.num,title:gt(rr.title),description:rr.description,linkText:rr.linkText,linkHref:$e.href}),ParagraphsA:()=>({eyebrow:Vl.eyebrow,lead:Ee.body,foundersHeading:Vl.foundersHeading,foundersBody:Vl.foundersBody,attribution:Vl.attribution}),Banner:()=>({...bB,ctaText:$e.text,ctaHref:$e.href}),ProcessSteps:()=>({num:rr.num,title:gt(rr.title)}),IntroBleed:()=>({eyebrow:ap.eyebrow,title:gt(ap.title),body:ap.body,ctaText:$e.text,ctaHref:$e.href})};function sp(){oo(yI),oo(M_),oo(o1),oo(O_),oo(y1),oo(A1),oo(q1),oo(X1),oo(dF),oo(yF),oo(FF),oo(jF),oo(VF),oo(QF),oo(yB),oo(iB),oo(pB),oo(IB)}var Qj=[{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=>CE(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=>vE(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})=>(sp(),EE(e,Ol,{theme:nw(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=>w0(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=>mO(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=>uO(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=>cO(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=>T0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>QP(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=>yO(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=>kO(e)}];function eG(e,o,t){let r=e;for(let a of Qj)(!t||a.chrome)&&(r=a.run(r,o));return r}function NB(e,o){return eG(e,{metadata:o},!1)}import{useRef as oG}from"react";import{createRenderKeep as tG}from"efficient-easel/render";function MB(){let e=oG(null);return e.current??=tG(),e.current}import{isNode as rG,isNodeList as aG}from"efficient-easel/data";import{hidableText as nG,readHidable as sG}from"efficient-easel/draw";var WB="slotCounts",bI=e=>!sG(e).hidden&&nG(e).trim()!=="",lG=e=>typeof e=="string"&&e.trim()!=="",iG={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>lG(e.src),Text:e=>bI(e.text),Heading:e=>bI(e.text),Eyebrow:e=>bI(e.eyebrow)},dG=["widthFit","width","minWidth"],HB=e=>aG(e);function fG(e){if(Array.isArray(e.content))return HB(e.content)?e.content:null;let o=Object.values(e).filter(HB);return o.length===1?o[0]:null}function cG(e,o){return[...new Set([cb,...Object.values(W(OS,e)??{})])].some(t=>Ft(o,t)!=="")}function pG(e){let o=e.props??{},t=W(iG,e.type);if(!t||!t(o)||cG(e.type,o)||Vs(o))return!1;let r=o[Bn];if(r!=null&&r!=="")return!1;let a=hc(o);return!dG.some(n=>a[n]!==void 0)}function uG(e){let o=0;for(let t of e)if(!qt(t.props??{})){if(!pG(t))return;o+=1}return o>0?o:void 0}function mG(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!rG(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:fG(l.props);if(typeof i=="string"&&d){let c=uG(d);c!==void 0&&(o[i]=c)}for(let c of Ot(l))a(l.props[c],s||Yr(l.type,c))}};a(e,!1);for(let n of r)delete o[n];return o}function $B(e,o){return{...e??{},[WB]:mG(o)}}function Jye(e){let o=e.editor?.metadata?.[WB],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 IG({config:e,data:o,metadata:t}){let r=NB(o,t),a=MB(),n=b0(e,y0(r.content)),s=Pf(r.content),l=s.length>0?{...t,[g0]:s}:t;return zB(Tf,{children:zB(hG,{config:n,metadata:$B(l,r.content),keep:a,data:r})})}var UB=xG(IG);import{jsx as it,Fragment as S8,jsxs as BA}from"react/jsx-runtime";import{jsx as gG,jsxs as yG}from"react/jsx-runtime";import{createContext as bG,useContext as SG}from"react";var jB=bG(!1);function fbe(){return SG(jB)}function GB({grayscale:e,children:o}){let t=e===!0;return yG(jB.Provider,{value:t,children:[Object.entries($O(e)).map(([r,a])=>gG("style",{children:a},r)),o]})}import{jsx as wG}from"react/jsx-runtime";import{createContext as CG,useContext as kG}from"react";var KB=CG(null);function mbe(){return kG(KB)}function qB({ink:e,children:o}){return wG(KB.Provider,{value:e??null,children:o})}import{parseOption as vG}from"efficient-shell/format";var VB="data-lead-ink",ybe="data-header-ink",PG=["auto","light","dark"],TG="auto";function OG(e){return e.type==="IntroBleed"?Zc(e.props?.layout)!=="stacked":!0}function YB(e){let o=Jd(e);return o&&fv(e)&&OG(o)?"light":null}function bbe(e){return vG(PG,TG,e)}import{useEasel as w8}from"efficient-easel/easel";import{useEffect as WG}from"react";import{useEaselApi as $G}from"efficient-easel/easel";import{find as EG,walk as XB}from"efficient-easel/data";var _G=()=>"",FG=e=>nm(Et([e],_G));function QB(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(FG))])),a=nm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var BG=()=>({press:[zn(qr),zn(Ps)],delivery:[hh()]}),AG={},SI=e=>QB(e,BG,AG),LG=e=>Le(e)===sb?"delivery":"press";function Bbe(e,o){if(!o||Le(e)===Le(o))return e;let t=SI(e[Pe]),r=LG(e);if(!t||t===r)return e;let a=Qu(e,ao),n=r==="delivery"?hh():zn(Le(e)?Ps:qr),s=Et([n],om(a));return{...e,[Pe]:s}}var RG=()=>({cards:[Xa(qr),Xa(Ps)],label:[Ja(!1),Ja(!0)]}),DG={},NG=e=>QB(e,RG,DG);function Abe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=NG(e[Pe]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=Qu(e,dS),n=Array.isArray(e.items)&&e.items.some(i=>po(i?.href)!==void 0),s=r==="label"?Ja(n):Xa(Le(e)?Ps:qr),l=Et([s],om(a));return{...e,[Pe]:l}}var JB=(e,o)=>xh.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function ZB(e,o){let t={...e};for(let r of xh)delete t[r];return{...t,...structuredClone(o)}}function wI(e){let o=e?.[Ce];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===ao&&t.props?t:null}function MG(e,o){let t=wI(e),r=wI(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||Le(t.props)===Le(r.props))return e;let a=SI(t.props[Pe]);if(!a||a===SI(r.props[Pe]))return e;let n=ye(e.columns);return n===void 0?e:a==="delivery"&&JB(e,ba(n))?ZB(e,wc(n)):a==="press"&&JB(e,wc(n))?ZB(e,ba(n)):e}function eA(e){let o=lp.get(e);o?o.count+=1:lp.set(e,{count:1,stop:HG(e)});let t=!1;return()=>{let r=lp.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),lp.delete(e)))}}var lp=new WeakMap;function HG(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;XB(t,e.config,n=>{if(n.type!==j||!wI(n.props))return;let s=EG(r,e.config,n.props.id);if(!s||s.node===n)return;let l=MG(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>XB(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function oA(){let e=zG();WG(()=>e?eA(e):void 0,[e])}function zG(){try{return $G()}catch{return null}}import{jsx as ip}from"react/jsx-runtime";import{useEffect as UG}from"react";import{armScrollProgress as jG}from"efficient-shell/format";function tA({armed:e,children:o}){return UG(()=>e?jG():void 0,[e]),o}function CI(){return{style:{"--sf-page-width":Lo}}}function GG({children:e}){return ip("div",{style:CI().style,children:e})}function Kbe({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return ip("div",{style:{...o?{}:rf(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:ip(tA,{armed:!t,children:ip(GG,{children:r})})})}import{jsx as rA,Fragment as KG}from"react/jsx-runtime";import{createContext as qG,useContext as VG}from"react";var aA=qG({}),nA=aA.Provider;function Xbe(e){let{SectionTextParts:o}=VG(aA);return o?rA(o,{...e}):rA(KG,{children:e.children})}import{jsx as u8}from"react/jsx-runtime";import{useEffect as m8,useRef as x8}from"react";var sA="data-easel-overlay-portal";function dp(e){return e.setAttribute(sA,"true"),()=>{e.removeAttribute(sA)}}import{jsx as n8}from"react/jsx-runtime";import{useEffect as s8,useRef as SA}from"react";import{usePreviewParts as l8}from"efficient-easel/draw/client";import{jsx as YG}from"react/jsx-runtime";import{createContext as XG,useContext as JG,useMemo as ZG,useState as QG}from"react";var e8={partStyle:null,setPartStyle:()=>{}},lA=XG(e8);function oSe({children:e}){let[o,t]=QG(null),r=ZG(()=>({partStyle:o,setPartStyle:t}),[o]);return YG(lA.Provider,{value:r,children:e})}function Xn(){return JG(lA)}import{usePreviewDevice as i8}from"efficient-easel/draw/client";import{shownTier as d8}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as wA,encodePartId as f8}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as c8}from"efficient-easel/canvas";import{createPreviewSelectionContext as o8}from"efficient-easel/draw/client";var va="Scrolling Bar",{Provider:aSe,useSelection:iA}=o8("selectedHeroId"),kI="data-sf-hero-ticker";function dA(e){return`${e}::ticker`}function fA(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as Rr}from"efficient-easel/canvas";import{createPreviewSelectionContext as t8}from"efficient-easel/draw/client";var{Provider:lSe,useSelection:cA}=t8("selectedLocationPartId");function fp(e,o,t){return`${e}::${o}::${t}`}function cp(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 PI="data-sf-part-label";function TI(e,o){return e.closest(`[${Rr}]`)?.getAttribute(Rr)===o}function pA(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(I=>[I.key,Ud(I.label)])),n=[],s=new Set;for(let I=0;I<r.length;I+=1){let C=r[I];if(!TI(C,o))continue;let E=C.getAttribute(ek);if(!E)continue;let B=a.get(E);n.push({element:C,partId:Lt(o,E),...B?{label:B}:{}}),s.add(C)}let l=[],i=new Set;for(let I=0;I<r.length;I+=1){let C=r[I];if(!TI(C,o)||s.has(C))continue;let E=tk(C.textContent??"");if(!E)continue;let B=C.closest(`[${Tm}]`)?.getAttribute(Tm)||null;B&&i.add(B.replace(/\[\d+\]$/u,"")),l.push({element:C,text:E,row:B})}let d=I=>l.filter(C=>C.row===QC(I.key,I.row.index)),c=l.filter(I=>I.row===null),x=I=>I.row&&i.has(I.key)?d(I):i.size?c:l,m=new Map,h=[],g=I=>I.row?`${I.key}.${I.row.rowKey}`:null,k=new Map;for(let I of t){let C=g(I);if(!C||i.has(I.key))continue;let E=k.get(C);E?E.push(I):k.set(C,[I])}let O=new Set;for(let[I,C]of k){if(C.length<2)continue;let E=C.flatMap(b=>b.texts);if(new Set(E).size===E.length)continue;let B=x(C[0]).filter(b=>E.includes(b.text));if(B.length!==C.length)continue;let R=[...C].sort((b,F)=>(b.row?.index??0)-(F.row?.index??0));for(let b=0;b<R.length;b+=1){let F=R[b],y=B[b].element,w={key:F.key,partKey:pn(F.key,F.row),exact:!0},S=m.get(y);S?S.push(w):(m.set(y,[w]),h.push(y))}O.add(I)}let T=new Map;for(let I of t){if(O.has(g(I)??""))continue;let C=pn(I.key,I.row);for(let E of I.texts)for(let B of x(I)){if(B.text!==E)continue;let R=T.get(B.element);R?R.add(C):T.set(B.element,new Set([C]))}}let L=(I,C)=>[...T].some(([E,B])=>E!==I&&!B.has(C)&&E.contains(I));for(let I of t){if(O.has(g(I)??""))continue;let C=pn(I.key,I.row);for(let E of I.texts){let B=[],R=null;for(let y of x(I))y.text===E?L(y.element,C)||B.push(y.element):!B.length&&y.text.includes(E)&&(!R||y.text.length<=R.length)&&(R={element:y.element,length:y.text.length});let b=B.length?B:R?[R.element]:[],F=b.filter(y=>!b.some(w=>w!==y&&y.contains(w)));for(let y of F){let w={key:I.key,partKey:C,exact:B.length>0},S=m.get(y);S?S.push(w):(m.set(y,[w]),h.push(y))}}}let P=[...n];for(let I of h){let C=m.get(I)??[],E=C.some(B=>B.exact)?C.filter(B=>B.exact):C;if(new Set(E.map(B=>B.partKey)).size===1){let B=a.get(E[0].key);P.push({element:I,partId:Lt(o,E[0].partKey),...B?{label:B}:{}});continue}new Set(E.map(B=>B.key)).size===1&&P.push({element:I,partId:Lt(o,E[0].key)})}return P}function vI(e,o,t){let r=e.querySelectorAll(`[${We}]`);for(let n=0;n<r.length;n+=1){let s=r[n];TI(s,o)&&(s.removeAttribute(We),s.removeAttribute(PI))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute(We,s),l&&n.setAttribute(PI,l),a.push(n);return a}function xA(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let c=t(),x=c?.getAttribute(Rr)??null;if(!c||!x)return!1;s=x;let m=pA(e,x,o);return a(c,x,vI(e,x,m)),i=n(()=>{let h=pA(e,x,o);r8(m,h)||(m=h,a(c,x,vI(e,x,h)))}),!0};return d()||(l=r(()=>{(s||d())&&(l?.(),l=null)})),()=>{l?.(),l=null,i?.(),i=null,s&&vI(e,s,[])}}function r8(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function xSe(e,o){let t=e?.closest?.(`[${We}],[${yr}]`),r=t?.getAttribute(We)??t?.getAttribute(yr),a=r?ZC(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:mA(t,r),label:uA(t,r)};let n=e?.closest?.(IA.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${Rr}]`)?.getAttribute(Rr)===o?gA(n,o):null;return s?{id:s,element:n,whole:mA(n,s),label:uA(n,s)}:null}function uA(e,o){let t=cp(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=rc(o);return r?tr[r.part]:fA(o)?va:e.getAttribute(PI)??void 0}var hA="data-loc-pick",IA=[We,yr,Cl,kI,hA];function gA(e,o){let t=e.getAttribute(We)??e.getAttribute(yr);if(t)return t;let r=e.getAttribute(Cl);if(r)return ca(o,r);if(e.getAttribute(kI)!==null)return dA(o);let a=e.getAttribute(hA)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?fp(o,Number(a[0]),a[1]):null}function mA(e,o){let t=e.closest?.(`[${Rr}]`),r=t?.getAttribute(Rr);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(IA.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${Rr}]`)!==t)continue;let s=gA(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as yA,playEntrance as a8}from"efficient-shell/format";var OI=new WeakMap;function bA(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 c=o(d)??{},x=tC(c),m=r.get(d),h=m?Pn.next(m,x,a):null;r.set(d,h?h.seen:Pn.seed(x)),s.set(d,h?.play??!1)}let l=new Map,i=e.filter(d=>!e.some(c=>c!==d&&c.partKey===d.partKey&&c.element.contains(d.element)));for(let d of i){let c=Wf(d.element);c&&l.set(c,[...l.get(c)??[],d])}for(let[d,c]of l){let x=g=>fl(o(g.partKey)??{}),m=En(c.filter(g=>x(g).entrance));if(m){let g=o(m.partKey)??{};n.push(Mf(d,Ns(g,a)));let k=OI.get(d);OI.set(d,m.partKey),(s.get(m.partKey)||k!==void 0&&k!==m.partKey)&&d.hasAttribute(yA)&&a8(d)}else OI.delete(d);let h=d.hasAttribute(yA)?void 0:En(c.filter(g=>Qt(o(g.partKey)??{},a).effect!=="none"));h&&n.push(Hf(d,Qt(o(h.partKey)??{},a))),c.some(g=>x(g).hover==="lift")&&($f(d.ownerDocument),d.setAttribute(la,""),n.push(()=>d.removeAttribute(la)))}return()=>n.forEach(d=>d())}function EI(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=Cb(a),t??=cm(a)}return{faceRole:o??"body",sizeGroup:t}}function pp(e,o={}){let t=e.style,r={};for(let l of Bm)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=vk({fontSize:a.fontSize,fontWeight:a.fontWeight,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,textAlign:a.textAlign,textTransform:a.textTransform,paddingTop:a.paddingTop},Pk(a.fontFamily,l=>n.getPropertyValue(l)));for(let l of Bm)t[l]=r[l];return s}function CA({needles:e,styles:o,motions:t=Nf,type:r,children:a}){let n=SA(null),{selectedPartId:s}=l8(),{setPartStyle:l}=Xn(),i=d8(i8()),d=JSON.stringify(e),c=JSON.stringify(o),x=JSON.stringify(t),m=SA(new Map);return s8(()=>{let h=n.current;if(!h)return;let g=[],k=()=>h.parentElement,O=B=>{let R=k();if(!R)return null;let b=new MutationObserver(B);return b.observe(R,{attributes:!0,attributeFilter:[c8]}),()=>b.disconnect()},T=B=>{let R=new MutationObserver(B);return R.observe(h,{childList:!0,subtree:!0,characterData:!0}),()=>R.disconnect()},L=[];g.push(()=>{for(let B of L)B();L=[]});let P=JSON.parse(d),I=JSON.parse(c),C=JSON.parse(x),E=xA(h,P,k,O,(B,R,b)=>{for(let S of L)S();L=[];let F=[];for(let S of b){let v=S,N=dp(v);N&&L.push(N),v.getAttribute(We)===s&&F.push(v)}let y=Tk(R,s,F,S=>kb(S)!==null||cm(S)!==null);if(y&&s){let S=y,v=wA(s)?.propKey??"",N=Gs(S)?{}:kk(Ok(I,Zt(r,v)),i,{blockDrawsStyle:qs(r,v)});l({partId:s,...EI(S),base:pp(S,N),inks:Md(S),...(()=>{let $=Gs(S);return $?{styleOwner:$}:{}})()})}Fm(b.filter(S=>!Gs(S)).map(S=>({element:S,partId:S.getAttribute(We)??""})),I,S=>pp(S),S=>Zt(r,S),void 0,i,S=>qs(r,S));let w=[...h.querySelectorAll(`[${ok}="${CSS.escape(R)}"][${zd}]`)];w.length&&Fm(w.map(S=>({element:S,partId:f8(R,S.getAttribute(zd)??"")})),I,void 0,S=>S,void 0,i),L.push(bA([...b.filter(S=>!Gs(S)).map(S=>{let v=S,N=wA(v.getAttribute(We)??"")?.propKey??"";return{element:v,partKey:Zt(r,N)}}),...w.map(S=>({element:S,partKey:S.getAttribute(zd)??""}))],S=>C[S],eC(i),m.current))},T);return()=>{E();for(let B of g)B()}},[d,c,x,s,l,i,r]),n8("div",{ref:n,[Fx]:"",style:{display:"contents"},children:a})}import{shownTier as h8}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as I8,usePreviewParts as g8}from"efficient-easel/draw/client";var Yl={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)]"},p8={tag:{label:"Tag",follows:"Labels",builtIn:Qa(Yl.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:Qa(Yl.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:Qa(Yl.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:Qa(Yl.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:Qa(Yl.link),writable:!0}},kA=p8;var qSe=Vr,vA={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 PA={SpecTable:vA,FAQ:gS,Collections:kA,Contents:Jc};function TA(){return ja("efficient.section-text-regions",()=>new Map)}function owe(e){let o=TA();for(let[t,r]of Object.entries(e)){if(uo(PA,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 Jn(e){return e?W(PA,e)??TA().get(e)??null:null}function OA({nodeId:e,sectionType:o,partStyles:t,children:r}){let a=x8(null),{selectedPartId:n}=g8(),{setPartStyle:s}=Xn(),l=h8(I8()),i=JSON.stringify(t??null);return m8(()=>{let d=a.current,c=Jn(o);if(!d||!e||!c)return;let x=[],m=Array.from(d.querySelectorAll(`[${Vr}]`));for(let h of m){let g=rm(c,h.getAttribute(Vr));if(!g)continue;let k=dp(h);k&&x.push(k);let O=Ts(g),T=Lt(e,O);h.setAttribute(yr,T);let L=t?.[O];if(c[g].sized&&Ek(L)){let P=_k(L,l),I={fontFamily:h.style.fontFamily,fontSize:h.style.fontSize},C=h.getAttribute(Xr);P.fontFamily&&(h.style.fontFamily=P.fontFamily),P.fontSize&&(h.style.fontSize=P.fontSize);let E={fontFamily:P.fontFamily?h.style.fontFamily:void 0,fontSize:P.fontSize?h.style.fontSize:void 0},B=L?.textStyle;uk(B)&&h.setAttribute(Xr,B),x.push(()=>{Ak(h.style,I,E),C===null?h.removeAttribute(Xr):h.setAttribute(Xr,C)})}if(T===n){let P=pp(h,Bk(L,c[g],l));s({partId:T,...EI(h),base:P})}}return()=>{for(let h of x)h();for(let h of m)h.removeAttribute(yr)}},[e,o,n,s,l,i]),u8("div",{ref:a,style:{display:"contents"},children:r})}import{jsx as _I,Fragment as EA}from"react/jsx-runtime";import{createContext as y8,useContext as _A,useMemo as b8}from"react";var FI=y8(null),FA=e=>e==null||e===""?void 0:String(e);function BI({content:e,children:o}){let t=b8(()=>ix(e),[e]);return _I(FI.Provider,{value:t,children:o})}function gwe({id:e,children:o}){let t=_A(FI),r=FA(e);return _I(EA,{children:o(r?t?.entries.get(r):void 0)})}function ywe({id:e,children:o}){let t=_A(FI),r=FA(e);return _I(EA,{children:o(r?t?.numbers.get(r):void 0)})}var C8={SectionTextParts:OA},k8="color-mix(in oklab, var(--bg) 40%, #ffffff)",v8="12vh";function P8({style:e,children:o}){let{appState:t}=w8(m=>m),r=t.data.content,a=t.data.root;if(cv(r))return it("div",{className:"sf-themed-content",style:{...e,background:k8,minHeight:"100vh",paddingBottom:v8},children:it("div",{style:{background:"var(--bg)"},children:it(BI,{content:r,children:o})})});let n=Rm(r)&&uv(a,r),s=Rm(r)?mv(a,r):null,l=s?{[pv]:s}:null,i=Bw(a?.widthChoice),d=i?{[Fw]:i}:null,c=n?null:YB(r),x=c?{[VB]:c}:null;return it("div",{className:`sf-themed-content${n?` ${iv}`:""}`,style:e,...x,...l,...d,children:it("div",{style:{background:"var(--bg)",minHeight:"100%"},children:it(BI,{content:r,children:o})})})}function Wwe({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:c,children:x}){return oA(),it(AI,{propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,body:m=>BA(S8,{children:[it(P8,{style:m,children:x}),d,c]})})}function AI({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,body:d}){let{theme:c,fonts:x,sizes:m,cornerRadiusPx:h,cardShadow:g,shadowColor:k,cardGap:O,hoverEffect:T,headingCompression:L,siteWidth:P,siteGutter:I,siteGutterPhone:C,blockGap:E,blockGapPhone:B,siteLengthUnits:R,headingTypography:b,heroBackgroundFollowsWidth:F,photographyGrayscale:y,textStyles:w,wordStyles:S,themeFromDocument:v}=Co(),N=v?e:c,$=v?o:x,V=v?void 0:m,K=v?r===void 0?YS[VS(t)]:XS(r):h,ae=v?{}:R,ne=v?a:L,J=v?n:b,me=[PP(vP(v?void 0:w)),TP(rw(J).italicStrong)].filter(Boolean).join(`
338
- `),ue=CI(),Ie={...MS(N),...qS(V),...aw(J),...ue.style,...l?{}:rf(s)};return BA("div",{className:`sf-theme-surfaces sf-theme-accent ${[Pw(v?void 0:C),qk(v?void 0:B)].filter(Boolean).join(" ")}`.trim(),style:{...vb($),...Ob(v?null:S),...HS(N),...$S(N),...zS(N),...ud(N),...JS(K,ae.cornerRadiusUnit),...ow(v?void 0:g,v?void 0:k,v?void 0:T),...xw(v?void 0:P,ae.siteWidthUnit),...Cw(v?void 0:I,ae.siteGutterUnit),...vw(v?void 0:C,ae.siteGutterPhoneUnit),...Gk(v?void 0:E,ae.blockGapUnit),...Kk(v?void 0:B,ae.blockGapPhoneUnit),...hd(v?void 0:F)},"data-sf-headings":tw(ne),"data-sf-card-shadow":v?void 0:ZS(g),"data-sf-card-gap":v?void 0:QS(O),"data-sf-card-hover":v?void 0:ew(T),onClickCapture:i,children:[me?it("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:me}}):null,it(GB,{grayscale:v?void 0:y,children:it(nA,{value:C8,children:it(qB,{ink:NS(N),children:d(Ie)})})})]})}var AA=e=>{e.target?.closest?.("a")&&e.preventDefault()};var up=[{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"]}],Zn="all",mp="template";function LA(e){for(let o=0;o<up.length;o++){let t=up[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function RA(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>LA(o.s.slug)-LA(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function LI(e){return e.filter(o=>o.source==="template")}function DA(e){let o=new Set(RA(e).map(t=>t.slug));return up.filter(t=>t.slugs.some(r=>o.has(r)))}function NA(e,o){if(e===mp)return LI(o);let t=RA(o);if(e===Zn)return t;let r=up.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}function MA(e){let o=e.content;return Array.isArray(o)&&o.length>0?o[0]:null}var L8=1440,R8=1080;function WA({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=Qs(),[s,l]=O8(null),i=T8(()=>{let d=MA(e.layout),c=e.layout.zones;return{root:{props:{}},content:d?[d]:[],zones:c??{}}},[e.layout]);return HA("div",{className:"sf-starter",children:[HA(F8,{padding:"none",className:"sf-starter-picture",children:[bt("div",{inert:!0,className:"sf-starter-frame",children:bt(B8,{width:L8,height:R8,children:bt(E8,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:bt(vf,{document:s??void 0,children:bt(AI,{onClickCapture:AA,body:d=>bt("div",{className:"sf-themed-content",style:d,children:bt("div",{style:{background:"var(--bg)"},children:bt(UB,{config:o,data:i,metadata:t})})})})})})})}),bt("div",{className:"sf-starter-add",children:bt(_8,{onClick:()=>a(e),loading:r,"aria-label":f("Add \u201C{name}\u201D",{name:e.title}),children:f("Add page")})})]}),bt(A8,{size:"sm",children:e.title})]})}import{useMemo as jV}from"react";import{sessionRegistry as GV}from"efficient-easel/screen/lib/session";import{useEaselSession as KV}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as D8}from"efficient-easel/screen/lib/session";var N8={general:!0,commerce:!0,service:!0};function RI(e){let o=e?.sets;return o?Object.fromEntries(pb.map(t=>[t,o.includes(t)])):N8}function DI(e=D8()){return RI(e.blocks)}import{currentEaselSession as QA}from"efficient-easel/screen/lib/session";import{SITE_SIDE as UA}from"efficient-easel/screen/lib/content/length-units";var $A=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],nCe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:oS,separator:tS,scrollDirection:zl}};var zA=()=>[{text:f("Spec label"),tone:"normal"},{text:f("Spec value"),tone:"muted"},{text:f("Spec label"),tone:"normal"},{text:f("Spec value"),tone:"muted"}],iCe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function ho(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function jA(e,o,t){return ho(j,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var xp={Manifesto:(e,o)=>({type:j,props:{...e(j),id:o(j),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[ho(j,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:UA,sectionPaddingRight:UA,content:[ho("Text",e,o,jt()),ho("Text",e,o,dr()),ho("Text",e,o),ho("Stats",e,o)]}),jA(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:j,props:{...e(j),id:o(j),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[ho(j,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[ho("Text",e,o,jt()),ho("Text",e,o,dr()),ho("Text",e,o),ho("ButtonBlock",e,o)]}),jA(e,o,{direction:"column",name:"Image",content:[ho("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:j,props:{...e(j),id:o(j),direction:"column",name:"Subscribe",content:[ho("Text",e,o,dr()),ho("Text",e,o),ho("Form",e,o)]}}),Ticker:(e,o)=>GA("Scrolling Bar",zc,Ul,$A.map(t=>({text:t.text,style:Uc,muted:!0})),e,o),SpecStrip:(e,o,t)=>GA("Spec Strip",t?.theme?{...Gl,sectionAccent:pd(Kt(t.theme))}:{...Gl,sectionBorder:{top:1}},jl,zA().map(r=>({text:r.text??"",style:Kl,muted:r.tone==="muted"})),e,o)};function GA(e,o,t,r,a,n){return ho(j,a,n,{...Ca,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>ho("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function KA(e){return W(xp,e)??null}import{isNodeList as NI}from"efficient-easel/data";var ACe=Object.keys(yI),M8={Logos:t1,DocMasthead:sF,DocTabs:hF,Timeline:F1,TimelineTrack:B1},H8={PaymentBadges:r1,PaymentLogosBlock:a1,Integrations:uB};function hp(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]=NI(n)?n.map(s=>hp(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var qA=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Xl(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=xa({type:e,props:{...a(e),...r(),id:n(e)}},o,qA(s));return hp(l[t],a,n)}}var W8={Stats:z8,Cards:$8};function $8(){let e=Or("Cards");if(!e)return null;let o=Xl("Cards",e,0,T_);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function z8(){let e=Or("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=xa({type:"StatsParagraph",props:{...o("StatsParagraph"),...H_(),id:t("StatsParagraph")}},e,qA(r)),n=a[0],s=NI(n.props.content)?n.props.content.filter(c=>c.props?.cardStyle===void 0):[],l=YA(Bh(W_(),"table")),i=s.map(VA),d=hp({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function VA(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:NI(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(VA)}}:e}var YA=e=>Et([e],(o,t)=>`${o}-seed-${t}`)[0];function U8(e,o){if(!OE(e,o))return null;let t=W(W8,e);if(t)return t();let r=Or(e);return r?Xl(e,r,0,W(M8,e)??W(DB,e)??W(H8,e)):null}function j8(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=hp(YA(Bh([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=Ke(n,l=>He(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function Qn(e,o=ma){let t=KA(e);return t?j8(t):U8(e,o)}import{blockTypesIn as XA}from"efficient-easel/screen/lib/document/block-types-in";var JA=()=>({}),ZA=new Map;function G8(e){let o=ZA.get(e);if(o)return o;let t=new Set,r=W(ot,e);if(r)for(let s of r.seeds(JA))for(let l of XA({type:r.childType,props:s}))t.add(l);let a=Qn(e);if(a){let s=0;for(let l of XA(a(JA,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return ZA.set(e,n),n}function MI(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=RI(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=hb(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 c=n(i)&&G8(i).every(l);return s.set(i,c),c};return{sets:o,offers:l}}var K8="block-offer";function HI(e=QA()){return e.cache(K8,()=>MI(on(e)))}function eL(e,o=QA()){let t=HI(o);return t?t.offers(e):!0}var oL={name:"catalogueLabel",applies:e=>uo(Gr,e),draw(e,o){e.label=W(Gr,o)}};import{jsx as jI}from"react/jsx-runtime";import{parseBlockWidthFit as J8,phoneKey as St,tabletKey as dt}from"efficient-easel/draw";import{jsx as q8}from"react/jsx-runtime";import{phoneKey as Ip}from"efficient-easel/draw";var tL={name:"sectionGroupAllow",applies:e=>Gd.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},WI=new Set(Object.keys(It)),rL={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=>!WI.has(i)):a;s.disallow=Array.from(new Set([...s.disallow??[],...l]))}}};var nL=Array.from(new Set([...gb.map(e=>e.type),...WI]));function $I(e,o){return nL.includes(e)||o?.sitsInBox===!0}var V8=Array.from(new Set([...nL,...zi,"GalleryItem"])),Y8={not:{context:"parentOffersPositions",is:!1}},X8={not:{context:"parentTileSlot",is:!1}},aL=[bm,Ip("gridSpan"),Ip("gridRowSpan")],sL={name:"cellWidth",applies:(e,o,t)=>(V8.includes(e)||$I(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=Ao(e.fields??{},a.filter(n=>!aL.includes(n)),Y8),e.fields=Ao(e.fields??{},aL,X8)},draw(e){let o=e.render;e.render=t=>{let r=zw(t.gridSpan),a=jw(t.gridRowSpan),n=Kw(t[bm]),s=Vw(t[Ip("gridSpan")]),l=Yw(t[Ip("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[Uw]=String(r)),a!=null&&(d[Gw]=String(a)),s!=null&&(d[Xw]=String(s)),l!=null&&(d[Jw]=String(l));let c=n!=null?{[qw]:n}:void 0;return q8(ie,{className:"sf-grid-cell",style:c,...d,children:i})}}};function lL(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 Jl={not:{context:"heldByANode",is:!0}};function gp(e,o){return"parent"in o?o.parent!=null:!!Ht(o.appState,e.props?.id)}function Ht(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 Ka(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var Z8=new Set(["Text","Heading"]),Q8=new Set(["h1","h2","h3","h4","h5","h6"]);function iL(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&Q8.has(o.tag)?!0:br(o,"text").textStyle?.startsWith("heading-")===!0}var Dr={not:{context:"blockOutsideBox",is:!0}},dL={all:[Dr,{not:{context:"boxSharesWidth",is:!0}}]},fL={all:[Dr,{not:{context:"boxSharesWidthPhone",is:!0}}]},cL={all:[Dr,{not:{context:"boxSharesWidthTablet",is:!0}}]};function xL(e,o,t){return{any:[{field:dt(e),is:o},{all:[{field:dt(e),set:!1},t??{field:e,is:o}]}]}}function hL(e,o,t){return{any:[{field:St(e),is:o},{all:[{field:St(e),set:!1},t??{field:e,is:o}]}]}}var IL={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},eK=[[["_gBlockSize","minWidth",dt("minWidth"),St("minWidth"),"maxWidth",dt("maxWidth"),St("maxWidth")],Dr],[["widthFit"],dL],[[dt("widthFit")],cL],[[St("widthFit")],fL],[["width"],{all:[dL,{field:"widthFit",is:"fixed"}]}],[[dt("width")],{all:[cL,xL("widthFit","fixed")]}],[[St("width")],{all:[fL,hL("widthFit","fixed")]}]],pL=xL("textFit","shrink",IL),uL=[[["_gText","textFit",dt("textFit"),St("textFit")],Dr],[["minFont"],{all:[Dr,IL]}],[[dt("minFont")],{all:[Dr,pL]}],[[St("minFont")],{all:[Dr,hL("textFit","shrink",pL)]}]],yp=(e,o)=>Ht(o.appState,e.props?.id),bp=e=>!!e&&typeof e.type=="string"&&Ui(e.type)!==null,zI=e=>(e.type==="Flex"||e.type==="HeroGroup")&&mn(e.type,e.props?.direction)==="row",UI=e=>{let o=J8(e);return o!==void 0&&o!=="fit"},oK={blockOutsideBox:(e,o)=>!bp(yp(e,o)),boxSharesWidth:(e,o)=>{let t=yp(e,o);return!bp(t)||!zI(t)?!1:Ju({...t.props,direction:"row"})!==""?!0:Xu(t.props?.share)!==""&&!UI(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=yp(e,o);if(!bp(t)||!zI(t))return!1;if(nS(t.props?.[dt("columns")])!==""||Ju({...t.props,direction:"row"})!=="")return!0;let r=aS(t.props?.[dt("share")])??t.props?.share;return Xu(r)!==""&&!UI(e.props?.[dt("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=yp(e,o);if(!bp(t)||!zI(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!sS(r,t.props?.[St("share")])&&!UI(e.props?.[St("widthFit")]??e.props?.widthFit)}},tK=e=>/^_[gds][A-Z]/.test(e);function rK(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&&!tK(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function mL(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function aK(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return mL(o,r.indexOf("_dSize")+1,n)}return nK.has(e)&&r.includes("_gSpacing")?mL(o,r.indexOf("_gSpacing"),t):{...o,...t}}var nK=new Set(["Text","Heading"]);function sK(e,o){let{_gText:t,...r}=o;return rK(e,"_gText",r)??{...e,...o}}function lK(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",dt("textFit"),St("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var gL={name:"blockSize",applies:(e,o,t)=>$I(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=Z8.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=aK(o,e.fields??{},Vo(n,eK));if(r){let l=Vo(a,uL);if(s=sK(s,l),o==="Text"){let i=Vo(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,uL),d=lK(i),c=e.resolveFields,x=(m,h)=>{let g=c?c(m,h):h.fields,k=O=>iL(o,m?.props??{})?d(O??h.fields):O;return g instanceof Promise?g.then(k):k(g)};e.resolveFields=x}}e.fields=s,_t(e,{...oK,textWrapsByDefault:l=>!iL(o,l.props??{})})},draw(e,o){iK(e,o)}};function iK(e,o){let t=e.render;e.render=r=>{let a=hc(r),n=ch(a),s=t(r),l=n&&ch(a,{atSectionLine:!0});return n===null?s:jI(dK,{size:n,sectionSize:l??n,atEdge:o===j,canvasAttrs:r.editor?.isEditing?UE(a):yL,inCell:zE(a),fillsPhone:HE(a),widens:jE(a),children:s})}}var yL={};function dK({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=Bd(),d=hr(t?"edge":"by-box"),c=d?e:o,x=c.className,m=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,g=s?jI(RT,{children:l}):l;return jI(Ir,{className:[x,m?a:"",h?ME:""].filter(Boolean).join(" "),...Object.keys(c.style).length?{style:c.style}:{},attrs:d&&r!==yL?{...c.attrs,...r}:c.attrs,children:g})}import{Fragment as SK,jsx as kp}from"react/jsx-runtime";import{jsx as vo,Fragment as VI}from"react/jsx-runtime";import{createContext as es,useContext as wt}from"react";var fK=new Set(["Flex","Grid"]);function Nr(e){return typeof e=="string"&&fK.has(e)}var Pa="contentWidth",GI="full",KI="content";function Ql(e){let o=e?.[Pa];return o===GI?!1:o===KI?!0:void 0}function bL(e,o){return e&&!o}function Sp(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!MC(e)&&!d1(e.scrollDirection)}function Zl(e,o){return Nr(e)&&Sp(js(o,!1))?an({}):an(o)}function wp(e,o){return typeof e!="string"||!Id(e)||As[e]==="rawMarkup"?Zl(e,o).background??"full":Zl(e,o).background??gd(o).background}function Cp(e){return e!=="full"}function SL(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,l,i)=>{for(let d of a){let c=d?.props??{};if(c.id===o)return n;let x=Nr(d?.type),m=(l?Zl(d?.type,c).content:null)==="content"?!0:s,h=x&&(n.inBox?Ql(c)??m:m),g={insideGutter:n.insideGutter||h||x&&Sp(js(c,i)),inBox:n.inBox||x};for(let k of Ot({type:d?.type,props:c})){let O=c[k],T=r(O,g,m,!1,i||Yr(d?.type,k));if(T!==void 0)return T}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var cK=" [--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))))]",pK="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",uK="[--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)))]",wL="max-w-[100vw]",mK=`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))] ${wL}`;function CL(e){let o={},t=e.pad??{},r=gC({left:t.left,right:t.right},{left:t.leftPhone,right:t.rightPhone},{left:t.leftTablet,right:t.rightTablet},{left:t.left,right:t.right},{desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},0,e.site?"site":"box"),a=r.style;for(let[l,i]of[["l","paddingLeft"],["r","paddingRight"]]){let d=a[i];d!==void 0&&(o[`--sf-edge-${l}d`]=typeof d=="number"?`${d}px`:String(d));let c=a[`--sf-pad-${l}-tablet`],x=a[`--sf-pad-${l}-phone`];c!==void 0&&(o[`--sf-edge-${l}t`]=String(c)),x!==void 0&&(o[`--sf-edge-${l}p`]=String(x))}let n=Bs(e.site?"site":"box"),s=r.classes.includes(n.className.split(" ")[0]);return{className:`${e.gutter?`${n.className} ${n.edge}${cK}`:`${pK}${s?` ${n.className}`:""}`} ${uK}`,style:o}}function Eke(e){let{className:o,style:t}=CL(e);return{className:`${o} ${mK}`,...Object.keys(t).length?{style:t}:{}}}var xK="[--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 hK="--sf-edge-beyond";function kL(e){return`max(0px,calc((${e===null?Fs:`min(${Fs},${e})`} - ${Lo}) / 2))`}var IK=`${xK} 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))] ${wL}`;function _ke(e){let{className:o,style:t}=CL(e);return{className:`${o} ${IK}`,style:{...t,[hK]:e.beyond??"0px"}}}var ei=es(!1);function Wke(){return wt(ei)}function $ke({children:e}){return vo(ei.Provider,{value:!0,children:e})}var qI=es(!1);function YI({children:e}){return vo(qI.Provider,{value:!0,children:e})}var vL=es(null);function XI({ground:e,children:o}){return vo(vL.Provider,{value:e,children:o})}var JI=es(!1);function gK(){return wt(JI)}function PL({atTop:e,nested:o}){return vo(VI,{children:gK()?o:e})}var oi=es(void 0);function TL({children:e}){return vo(oi.Provider,{value:null,children:e})}function ZI(){return wt(oi)===void 0&&!wt(JI)&&!wt(ei)}function os({own:e,followed:o}){return vo(VI,{children:ZI()?e():o()})}var OL=es(null);function EL({value:e,children:o}){return vo(OL.Provider,{value:e,children:o})}function _L({draw:e}){return vo(VI,{children:e(wt(OL))})}function zke(){return wt(oi)??null}function FL({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:l,outerAttrs:i,box:d=!1,edge:c=!1,outerStyle:x,outerClass:m,bleed:h=!1,siteSide:g=!1,part:k,children:O}){let T=wt(ei),L=wt(qI),P=bL(e,T),I=P&&!L,C=Jo(),E=!!(l&&I),B=E?m:wo(m??"",C.className)||void 0,R=E||!C.className?i:{...i,...C.attrs},b=s?SC(s,I):null,F=b?.root??null,y=l&&!I?l:null,w=d&&!h?bw:null,S=[I?o:t,I?w:null,F?.className,y?uC:null].filter(Boolean).join(" "),v=yK(h&&I,F||y?{...a,...F?.style,...y}:a),N=wt(oi),$=wt(vL),V=d&&c&&N===void 0?{gutter:P,...s?{pad:s.values}:{},beyond:P&&L?kL($):"0px",...g&&P?{site:!0}:{}}:null,K=d?vo(JI.Provider,{value:!0,children:vo(oi.Provider,{value:V,children:O})}):O,ae=P?vo(ei.Provider,{value:!0,children:K}):K,ne=b?.outer??null,J=R&&Object.keys(R).length>0?R:null,me=vo("div",{...ne?null:J,className:!ne&&B?S?`${S} ${B}`:B:S,style:ne||!x?v:{...v,...x},"data-tab-label":n,...ne?null:k,children:L?vo(qI.Provider,{value:!1,children:P&&!h?vo("div",{className:w?`${r} ${w}`:r,children:ae}):ae}):ae}),ue=ne?vo("div",{...J,className:B?`${ne.className} ${B}`:ne.className,style:x?{...ne.style,...x}:ne.style,...k,children:me}):me;return C.scope(l&&I?vo("div",{className:wo(Td,C.className),style:{display:"contents",...l},...C.attrs,children:ue}):ue)}function yK(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as bK}from"react/jsx-runtime";function BL({children:e}){return bK(ie,{className:c1,children:e})}function wK({side:e,children:o}){return ZI()?kp(BL,{children:kp(ie,{className:p1(e),children:o})}):kp(SK,{children:o})}var AL={name:"boxJoin",applies:(e,o,t)=>e===j&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=$c(t.join);return r?kp(wK,{side:r,children:o(t)}):o(t)}}};var LL=(e,o)=>e.fields?.[o]?.type==="slot",CK=(e,o)=>LL(o,Pe)||id(e).some(t=>LL(o,t)),RL={name:"cardTemplateOnInsert",applies:(e,o,t)=>CK(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?ad(o,n):s==="copy"?rd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as Tp}from"react/jsx-runtime";import{Fragment as Ta,jsx as Ne,jsxs as QI}from"react/jsx-runtime";import{createContext as eg,useContext as Mr,useId as EK}from"react";import{REPEAT_ATTRIBUTE as _K,REPEAT_INDEX_ATTRIBUTE as FK}from"efficient-easel/draw";import{jsx as lve}from"react/jsx-runtime";import{createContext as PK,useContext as HL,useMemo as TK}from"react";var DL="title";function NL(e){return`${e}Alt`}function kK(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function ML(e,o){let t={[DL]: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}=kK(n);t[r]=s,t[NL(r)]=l}}return t}function vK(e,o){return typeof o!="string"?o.flatMap(t=>vK(e,t)):e===Zd||!xv(e)?[]:o==="image"?Dm(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:NL(t.key)})):o!=="text"?[]:[{key:DL,label:f("Title")},...Dm(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var WL=PK(null);function OK(){return HL(WL)?.record??null}function cve(e){let o=OK();return o!==null&&o.type===e?o:null}function $L(){let e=HL(WL);return TK(()=>e&&e.record.type!==Zd?ML(e.record,e.dateWords):null,[e])}function kve({props:e,editing:o,children:t}){let r=Mr(ti);return!o&&im(e,r?.row)?null:Ne(Ta,{children:t})}var Pp=eg(null);function vve({field:e,children:o}){let t=Mr(Pp);return Ne(Ta,{children:o(t&&t.field===e?t.id:void 0)})}function BK(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>im({[Ga]:r},o)))?.field??""}var ti=eg(null),vp=eg(null),AK={label:"text-[length:var(--size-label,12px)]"},LK=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${AK.label} text-fg-dim`;function Pve({name:e,label:o,editing:t}){let r=Mr(vp)?.(e),a=Rd()!=="";return r!=null&&r!==!1?a?Ne(ie,{className:"contents",children:r}):Ne(Ta,{children:r}):t?Ne(ie,{className:LK,children:f("Shown by the section: {name}",{name:o?.trim()||e})}):null}function Tve(){return Mr(ti)}function og({type:e,props:o,children:t}){let r=Mr(ti),a=$L(),n=r?.row??a;return Ne(Ta,{children:t(FS(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function RK({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=EK(),{press:l,disabled:i}=r,d=r.label?.trim(),c=!d&&a?{id:`${s}-title`,field:a}:null;return QI("div",{...e,id:s,className:t&&!i?`${Sx} ${KT}`:Sx,children:[Ne("button",{type:"button",[YT]:"",className:i?ZT:JT,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":c?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),Ne(Pp.Provider,{value:c,children:n})]})}function Ove({ownerId:e,ownerType:o,slot:t=Pe,Template:r,rows:a,items:n,fields:s,states:l,stateLine:i,actions:d,pressTitles:c,previewHover:x,fallback:m,copyAttrs:h,wrapCopy:g,rowKey:k,hostParts:O,children:T}){let L=Mr(ti),P=Mr(Pp),I=Mr(vp);if(!r||(r.blockCount??0)<=0)return Ne(Ta,{children:m});let C=L!==null,E=vS(o),B=x??L?.previewHover,R=r.blockCount===1?Ne(FC,{children:Ne(r,{className:PC})}):Ne(r,{}),b=new Set,F=(w,S)=>{if(!k)return S;let v=k(w,S);for(;b.has(v);)v=`${v}#${S}`;return b.add(v),v},y=a.map((w,S)=>{let v=l?.[S],N={row:w,index:S,ownerType:o,slot:t,item:n?.[S],nested:C,...s?{fields:s}:null,...v?{state:v}:null,...E?{linesBetween:E}:null,...B?{previewHover:B}:null},$=Kx(v)?QI(Ta,{children:[R,i==="under"?Ne("span",{"aria-hidden":"true",className:zT}):Gx(v)?QI("span",{"aria-hidden":"true",className:UT,children:[Ne("span",{className:jT}),Ne("span",{className:GT})]}):Ne("span",{"aria-hidden":"true",className:$T})]}):R,V={[_K]:`${e}:${t}`,[FK]:S,...typeof h=="function"?h(N):h},K=d?.[S],ae=qT(v,i),ne=K?Ne(RK,{attrs:{...V,...ae},selected:v?.selected===!0,hover:i!=="under",action:K,titleField:BK(c,w),children:$}):P?Ne("div",{...V,...ae,children:Ne(Pp.Provider,{value:null,children:$})}):Ne("div",{...V,...ae,children:$}),J=g?g(ne,N):ne;return Ne(ti.Provider,{value:N,children:O?Ne(vp.Provider,{value:me=>O(N,me),children:J}):I?Ne(vp.Provider,{value:null,children:J}):J},F(N,S))});return Ne(Ta,{children:T(y)})}var zL={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==ao&&e!==en,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.render,s=t.inspector?.PartAnchors,l=(i,d)=>nk(a(),d,c=>ES(o,i,c));r.render=i=>{let d=gk(i),c=nT(i);return i.editor?.isEditing&&s?Tp(og,{type:o,props:i,children:x=>Tp(s,{needles:l(i,x),styles:d,motions:c,type:o,children:n(i)})}):!Object.keys(d).length&&!Object.keys(c).length?n(i):Tp(og,{type:o,props:i,children:x=>Tp(pT,{needles:l(i,x),styles:d,motions:c,type:o,atEdge:o===j,children:n(i)})})}}};import{jsx as UL}from"react/jsx-runtime";var jL={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=pC(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?UL(ie,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},tg=["CollectionCard"],GL={name:"cardCorners",applies:(e,o,t)=>tg.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=Fv(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?UL(ie,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var KL={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 qL={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 VL,jsxs as DK}from"react/jsx-runtime";var NK="Flex",YL=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,XL={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>YL(t,gl)?VL(ie,{className:qf,children:t[gl]==="empty"?null:o(t)}):o(t)}},JL={name:"headBox",applies:(e,o,t)=>e===NK&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>YL(t,Il)?DK(ie,{className:Vf,children:[VL(Yf,{}),o(t)]}):o(t)}};import{createElement as MK}from"react";var ZL={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===j?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(qt(n))return null;let s=Vs(n),l=RC(s,Wk(n),{sectionClassName:Vs(n,{atSectionLine:!0}),line:r});return MK(BC.Provider,{value:l},a(n))}}};import{jsx as zK}from"react/jsx-runtime";import{createContext as eR,createElement as QL,useContext as HK}from"react";var oR=eR(null),WK=eR(!1),tPe=oR.Provider;function $K(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function tR({name:e,editing:o,children:t}){let r=HK(oR);return o||$K(e,r?.selected??null,r?.known??[])?t:QL("div",{hidden:!0,style:{display:"none"}},QL(WK.Provider,{value:!0},t))}var UK="Flex",rR={name:"showFor",applies:(e,o,t)=>e===UK&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=hO(t[Bn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return zK(tR,{name:r,editing:a,children:o(t)})}}};var aR=ef.mediaFields,jK=e=>kv(e)?e.src:e;function GK(e,o){let t=o;for(let r of W(aR,e)??[])t=vv(t,r,jK);return t}var nR={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(W(aR,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(GK(o,r))}};import{jsx as ri,Fragment as sR,jsxs as lR}from"react/jsx-runtime";var KK="!grow-0 !shrink-0 !basis-0",qK=["[.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(" "),VK="flex flex-col w-full min-w-0 [&>*]:grow";function iR({anchor:e}){let o=Qr(e),t=hr(),r=Rd();return o?ri("span",{id:o,className:wo(t?`sf-section-anchor ${KK} ${qK}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function YK({anchor:e,copiesInBox:o,children:t}){let r=Bd()?.columnsRow===!0,a=_C(),n=Qr(e)!=="";return o?ri(sR,{children:t}):r&&!a&&n?lR(ie,{className:VK,children:[ri(iR,{anchor:e}),t]}):lR(sR,{children:[ri(iR,{anchor:e}),t]})}var dR={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=>ri(YK,{anchor:r.anchor,copiesInBox:jo(o,r),children:t(r)})}};import{jsx as XK,jsxs as JK}from"react/jsx-runtime";import{lazy as ZK}from"react";var QK=ZK(()=>import("./section-css-style-ZZ3ZOGPR.js")),fR={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,[xd]:""};let o=e.render;e.render=t=>{let r=mw(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):JK(Ir,{className:"sf-section-css",attrs:{[uw]:a},children:[XK(QK,{css:r,id:a}),o(t)]})}}};import{jsx as e7}from"react/jsx-runtime";var cR=Object.fromEntries(Kb.map(e=>[e,"picture"])),o7={[j]:"box",Ticker:"marquee",...Object.fromEntries(qi.map(e=>[e,"cards"])),...cR},pR=(e,o)=>!Cd.has(e)&&!!o&&typeof o.render=="function";function uR(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function mR(e,o){let t=e,r=t.render;t.render=a=>{let n=ln(a);return!n||jo(o,a)?r(a):e7(Lf,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===j,children:r(a)})}}var xR={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&pR(e,t),panel:(e,o,t)=>uR(e,W(o7,o)??"section",t,o),draw:(e,o)=>mR(e,o)},hR={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&pR(e,t),panel:(e,o,t)=>uR(e,W(cR,o)??"block",t,o),draw:(e,o)=>mR(e,o)};import{jsx as t7}from"react/jsx-runtime";var IR=(e,o)=>!Cd.has(e)&&!!o&&typeof o.render=="function";function r7(e){let o=Tx.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function gR(e,o){let t=e,r=t.render,a=r7(o),n=e.drawsPictures===!0;t.render=s=>{let l=On(s);return!l||jo(o,s)?r(s):t7(oc,{views:l,...a?{origins:rT(s,a)}:{},takesViewHide:!0,atEdge:o===j,zoomInside:n?"picture":"layer",children:r(s)})}}var yR={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&IR(e,t),draw:(e,o)=>gR(e,o)},bR={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&IR(e,t),draw:(e,o)=>gR(e,o)};import{jsx as a7}from"react/jsx-runtime";import{createElement as n7}from"react";var rg=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function s7(e,o){let t=e.props??{};return rg.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Ht(o.appState,t.id))?.type===j}var ag={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!vC.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||!rg.some(c=>c in i))return i;let d=n.get(i);if(!d){d={...i};for(let c of rg)c in d&&(d[c]=a[c]);n.set(i,d)}return d},l=e.resolveFields;e.resolveFields=(i,d)=>{let c=l?l(i,d):d.fields,x=m=>s7(i??{},d)?s(m??d.fields):m;return c instanceof Promise?c.then(x):x(c)}},draw(e,o){let t=e.render;e.render=r=>{if(jo(o,r))return t(r);let a=EC(r);return a?a7(Ir,{className:a.className,style:a.style,...o===j?{attrs:Qb}:null,children:t(r)}):t(r)}}},SR={name:"sectionHeightFillRoot",applies:ag.applies,draw(e,o){let t=e.render;e.render=r=>{let a=jo(o,r)?null:LC(OC(r),TC(r).join(" "));return n7(AC.Provider,{value:a},t(r))}}};import{jsx as Op}from"react/jsx-runtime";import{PIN_ATTR as wR,PIN_FRAME_ATTR as l7}from"efficient-shell/format";var kR=PR("sectionSticky",(e,o,t)=>o.isSection(e)&&!dC.has(e)&&!!t&&typeof t.render=="function",!0),vR=PR("cardSticky",(e,o,t)=>tg.includes(e)&&!!t&&typeof t.render=="function",!1);function PR(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=wm.has(a);r.fields=d7(r.fields??{},Vo(n.stickFields({intro:s,screens:t,above:t}),f7(s))),t&&_t(r,{heldByANode:gp})},draw(r,a){let n=r.render,s=wm.has(a);r.render=l=>{let i=km(l,{atScreenTop:s,above:t});if(!i)return n(l);let d=x=>{let m=Op(Ld,{children:n(l)});return Op(ie,{...x.attrs,style:x.style,children:x.attrs[wR]===""?Op("div",{[l7]:"",children:m}):m})},c=t?km(l,{atScreenTop:s,track:t,above:!0}):i;return!c||c.attrs[wR]!==""?d(i):Op(os,{own:()=>d(c),followed:()=>d(i)})}}}}var CR=[mt,qn],i7="_gStick";function d7(e,o){let t=Object.keys(e),r=e[Tn];if(!r){let T=t.findIndex(L=>CR.includes(L));return T<0?{...e,...o}:Object.fromEntries([...t.slice(0,T).map(L=>[L,e[L]]),...Object.entries(o),...t.slice(T).map(L=>[L,e[L]])])}let{[i7]:a,...n}=o,s=T=>T.startsWith(dn),l=Object.entries(n).filter(([T])=>!s(T)),i=Object.entries(n).filter(([T])=>s(T)),d=[r.dot,a?.dot].filter(T=>!!T),c=t.indexOf(Tn),x=t.findIndex((T,L)=>L>c&&CR.includes(T)),m=x<0?t.length:x,h=t.indexOf(Rf),g=h>c&&h<m?h:m,k=T=>[T,T===Tn?{...r,dot:{any:d}}:e[T]],O=[...t.slice(0,g).map(k),...l,...t.slice(g,m).map(k),...i,...t.slice(m).map(k)];return Object.fromEntries(O)}function f7(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},fC]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,Jl,{not:{field:Ws,is:!0}}]}),[n,s,l]=sC;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Gt(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Gt(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Gt(["stickTopTablet","stickTop"],o,r))],[[l],a(Gt(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Pd],Cm],[[Ws],Cm]]}import{jsx as c7}from"react/jsx-runtime";var TR={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(Ef.has(o))return;let t=e.render;e.render=r=>{let a=hC(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,xC(r)),n=t(r);return a?c7(ie,{className:Td,style:{display:"contents",...a},children:n}):n}}};import{jsx as ng}from"react/jsx-runtime";var OR={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!fw.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=um.has(o);e.fields={...e.fields,...n?r(md,a):r()}},draw(e,o){let t=um.has(o),r=e.render;e.render=a=>{let n=pw(t?{...a,sectionAccent:md(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>ng(Ir,{className:n.className,style:d,children:s}),i=n.style;return jo(o,a)?ng("div",{className:n.className,style:{...i,display:"contents"},children:s}):wp(o,a)!=="content"?l(i):ng(os,{own:()=>l({...i,..._s(Lo)}),followed:()=>l(i)})}}},ER={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(md,a)})}};import{jsx as Ve}from"react/jsx-runtime";var _R=null;function sg(e){_R=e}function FR(){return _R}import{jsx as p7}from"react/jsx-runtime";var u7="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",BR=Bs("box").frame,ai=`${u7} ${BR}`,m7=Bs("site").frame;function v0e(e){return e?m7:BR}var x7="mx-auto w-full max-w-[1280px] px-[60px]",h7="max-[960px]:px-6",P0e=`${x7} ${h7}`;function T0e({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return p7(FL,{contained:e,framedClass:`${ai} ${o}`,fillClass:`${a} ${o}`,columnClass:ai,style:t,pad:r,part:n,children:s})}var ts="--sf-sw-site",I7="--sf-sw-content",g7="--sf-bg-cap",y7="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",lg=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",LR="contents view-wide:[--sf-site-width:100vw]",ig=({held:e},o,t)=>e?t:Ve(ie,{className:o,children:t}),b7=`contents view-wide:[--sf-site-width:100vw] ${BF} view-wide:[--sf-site-gutter:var(--intro-edge)]`,dg=(e,o,t)=>o==="content"?`min(${tn(e,t)},var(${ts}))`:tn(e,t);function ni({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Fs:null:o===null?null:dg(o,r,t)}function si(e,o){return o===null?e:Ve(ie,{className:"contents",style:{[ts]:Lo},children:Ve(ie,{className:y7,style:{[I7]:o},children:e})})}var S7="--sf-content-cap",w7="contents max-view-wide:[--sf-content-cap:none]";function C7({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?dg(o,r,t):r==="content"?null:`var(${ts})`}function k7(e,o){return o===null?e:Ve(ie,{className:"contents",style:{[ts]:Lo},children:Ve(ie,{className:w7,style:{[S7]:o},children:e})})}var RR=`var(${ts},${Lo})`,Hr=(e,o,t="")=>e==="content"?Ve(ie,{className:t||void 0,style:_s(Lo),children:Ve(XI,{ground:RR,children:o})}):o;function DR(e,o,t,r,a){if(lg(t))return Hr(r,ig(t,LR,Ve(YI,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Hr(r,e({...o,contained:!1}),a);let n=ni(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Hr(r,si(Ve(YI,{children:e({...o,contained:!0})}),n),a)}function v7(e,o,t,r,a){if(t==="hero"){let l=si(e(o),ni(r,r.band));return r.band==="full"?Ve(ie,{style:{[Ow]:"none",[Ew]:"initial",[_w]:"initial"},children:l}):r.band==="content"?Ve(ie,{style:hd(!0),children:l}):l}let n=r.band??"full",s=xr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return Hr(n,e(o),s);let l=r.contentMax===null?Lo:dg(r.contentMax,n,r.contentMaxUnit);return Ve(ie,{className:"contents",style:{[ts]:Lo},children:Hr(n,Ve(ie,{className:s||void 0,style:_s(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=lg(r)?ig(r,b7,e({...o,fullWidth:!1})):si(e({...o,fullWidth:l}),l?null:ni(r,n));return n==="content"?Ve(ie,{className:"contents",style:{[g7]:Lo},children:i}):i}switch(t){case"both":return Hr(n,k7(e(o),C7(r,n)),s);case"contained":return DR(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let l=lg(r),i=r.content==="full"&&!l?"full":"page",d=l?ig(r,LR,e({...o,widthMode:i})):si(e({...o,widthMode:i}),r.content==="full"?null:ni(r,n));return t==="productGrid"&&!r.own?n==="content"?Ve(ie,{className:s?`${ai} ${s}`:ai,children:d}):d:Hr(n,d,s)}default:return Hr(n,si(e(o),ni(r,n)),s)}}function AR(e,o,t,r,a){let n=a===j?"edge":"by-box",s=l=>v7(e,o,t,r,l);return n==="edge"?s(!0):xr(o)===xr(o,{atSectionLine:!0})?s(!1):Ve(Fd,{line:n,draw:s})}function P7(e,o){let t=W(As,o);if(!t)return;let r=e.render;e.render=a=>{let n=gd(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):Ve(_L,{draw:g=>g?.background==="content"?Ve(XI,{ground:RR,children:i(g)}):i(g)}),i=g=>{let k=g?{...s,band:g.background==="content"?s.band:g.background??s.band,content:g.content??s.content,own:g.background==="full"||g.content!==null,held:!0,siteContent:s.content}:s,O=AR(r,a,t,k,o);if(!Nr(o))return O;let T=Ql(a),L=T===void 0?k.content:T?"content":"full";return L===k.content?O:Ve(PL,{atTop:O,nested:DR(r,a,{...k,content:L,own:!1},k.band??"full",xr(a))})},d=Zl(o,a);if(!Lw(d))return l();let c=t==="rawMarkup",x=wp(o,a),m=d.content??(c?"full":s.content),h={band:x,content:x==="content"?"content":m,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!c,siteContent:s.content};return Ve(os,{own:()=>Ve(EL,{value:{background:h.band,content:h.content},children:AR(r,a,t,h,o)}),followed:l})}}var T7={all:[Jl,{not:{context:"runsEdgeToEdge",is:!0}}]},NR={name:"sectionWidth",applies:(e,o,t)=>Id(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:W(As,o)==="rawMarkup"}),a=Nr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Nr(o)?WR(o,e,n,[Pa]):n;_t(e,{heldByANode:gp}),Nr(o)&&_t(e,{runsEdgeToEdge:(l,i)=>Sp(js(l.props??{},AS(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Ao(s,[Oo.background,Oo.content],Nr(o)?T7:Jl)},draw(e,o){P7(e,o)}};function O7(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 E7=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),MR={name:"containedWidth",applies:(e,o,t)=>E7.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=WR(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=xm(n?.props??{},"page"),d=c=>O7(c,i);return l&&typeof l.then=="function"?l.then(d):d(l)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=xm(t,"page");return o({...t,contained:r!=="full"})}}},_7={not:{context:"inHeroGroupRow",is:!0}},HR={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Ao(o.fields??{},["align"],_7),_t(o,{inHeroGroupRow:(t,r)=>{let a=Ht(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&mn("HeroGroup",a.props?.direction)==="row"}})}};function F7(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var B7={any:[]},A7={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},L7={not:{context:"widthCappedByParent",is:!0}};function WR(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Ao(t,["_gWidth",...r],B7);if(F7(t)){let a=(n,s)=>SL(s.appState?.data?.content,n.props?.id,Cp(FR()));return _t(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Ao(t,r,A7)}return _t(o,{widthCappedByParent:(a,n)=>"parent"in n?xS(n.parent):lL({props:a.props??{}},n)}),Ao(t,r,L7)}var R7=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"]),$R={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(R7.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},D7=new Set(["HeroSlide","HeroGroup"]),zR={name:"blockGroups",applies:(e,o,t)=>D7.has(e)||!o.isSection(e)&&Wc in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as fg}from"react/jsx-runtime";var N7=new Set(["Flex","Grid"]),UR=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),M7=(e,o)=>e.fields?.[o]?.ownPictures===!0,H7=["blockCount","blockIds"],W7=new WeakMap,$7=new WeakMap;function z7(e,o){let t=o?$7:W7,r=t.get(e);if(r)return r;let a=e,n=s=>fg(TL,{children:fg(Ld,{ownPictures:o,children:fg(a,{...s})})});Object.assign(n,e);for(let s of H7)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var jR={name:"slotsStartAfresh",applies:(e,o,t)=>!N7.has(e)&&typeof t?.render=="function"&&UR(t).length>0,draw(e){let o=UR(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=z7(s,M7(e,n)))}return t(a)}}};var U7=new Set(["Form","Stats","Logos"]);function GR(){return[...U7]}function cg(e,o,t=[]){let r=new Set(e),a=xb.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!Gd.includes(d)),s=new Set([...o,...zi,...GR()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!sd(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var j7=[jR,nR,XL,tL,rL,L0,jL,TR,GL,R0,hR,bR,sL,NR,MR,HR,ag,fR,dR,OR,xR,yR,kR,vR,AL,ER,gL,$R,zR,qL,KL,zL,JL,rR,SR,ZL,oL,RL];function KR(e,o,t){let r=o;for(let a of j7)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as pg}from"react/jsx-runtime";import{ClockIcon as G7,DurationIcon as K7}from"efficient-easel/icons";import{MOTION_TIMING as qR}from"efficient-shell/format";import{useSelectedHost as q7}from"efficient-easel/easel";function rs(e){let{min:o,max:t,step:r,default:a}=qR[e].duration;return wr("Duration",pg(K7,{}),o,t,r,a,"s")}function as(e){let{min:o,max:t,step:r,default:a}=qR[e].delay;return wr("Delay",pg(G7,{}),o,t,r,a,"s")}function ns(e,o){let t=e.render,r=a=>{let n=q7();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>pg(r,{...a})}}function Ep({readsSpeed:e}){return ns(rs("loop"),(o,t)=>Hc({loopDuration:o,speed:e?t?.speed:void 0}))}function _p(){return ns(as("loop"),e=>f1({loopDelay:e}))}import{jsx as so}from"react/jsx-runtime";import{DirectionDownIcon as V7,DirectionIcon as Y7,DirectionLeftIcon as X7,DirectionRightIcon as J7,DirectionUpIcon as Z7,EntranceBounceIcon as Q7,EntranceFadeIcon as eq,EntranceFlipIcon as oq,EntranceGlideIcon as tq,EntranceRevealIcon as rq,EntranceRiseIcon as aq,EntranceScaleIcon as nq,EntranceSpinIcon as sq,NoSymbolIcon as lq}from"efficient-easel/icons";import{NoControlMark as iq,noControlField as dq}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as fq,group as cq}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as pq,ENTRANCE_FROM_DEFAULT as YR,ENTRANCE_KINDS as XR,ENTRANCE_KINDS_WITH_FROM as uq,entranceAttrs as mq,playEntrance as xq,readEntrance as hq}from"efficient-shell/format";var Iq={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},gq={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},yq={top:()=>so(V7,{}),bottom:()=>so(Z7,{}),left:()=>so(J7,{}),right:()=>so(X7,{})},JR="Entrance",mg=XR.filter(e=>e!=="none"),ZR=e=>({any:[{field:zo.kind,in:e},{all:[{field:zo.kind,set:!1},{field:Ds,in:e}]}]}),VR=(e,o)=>Gt(Yo.slice(0,Yo.indexOf(e)+1).reverse().map(t=>Xo(zo.kind,t)),t=>({field:t,set:!0}),t=>t===zo.kind?ZR(o):{field:t,in:o}),bq={any:[ZR(mg),...Yo.slice(1).map(e=>({field:Xo(zo.kind,e),in:mg}))]},Sq=Yo.flatMap(e=>[[[Xo(zo.from,e)],VR(e,uq)],[[Xo(zo.duration,e),Xo(zo.delay,e)],VR(e,mg)]]),wq={none:()=>so(lq,{}),fade:()=>so(eq,{}),rise:()=>so(aq,{}),scale:()=>so(nq,{}),glide:()=>so(tq,{}),bounce:()=>so(Q7,{}),flip:()=>so(oq,{}),reveal:()=>so(rq,{}),spin:()=>so(sq,{})},QR="data-entrance-tile";function Cq({kind:e}){let{attrs:o}=mq(hq(e,YR));return so("span",{className:"sf-entrance-stage",[QR]:e,children:so("i",{...o,children:wq[e]()})})}var kq=(e,o)=>{let t=e.querySelector(`[${QR}="${o}"] > i`);t&&xq(t)},vq="Effect",Pq=()=>cf(zo.kind,{label:JR,tileWord:vq,values:XR,fallback:"none",word:e=>Iq[e],picture:e=>so(Cq,{kind:e}),read:(e,o)=>Ns(e,o).kind,preview:kq}),ug=(e,o)=>ff(zo[e],o,(t,r)=>Ns(t,r)[e]),Tq=pq.map(e=>({label:gq[e],value:e,picture:yq[e]()}));function Ct(){let e={[Wc]:cq(JR,{dot:bq}),...Pq(),[Ds]:dq({type:"custom",render:()=>so(iq,{})},"always"),_cEntrance:fq(),...ug("from",xn("From",so(Y7,{}),Tq,YR)),...ug("duration",rs("entrance")),...ug("delay",as("entrance"))};return Vo(e,Sq)}import{jsx as ft}from"react/jsx-runtime";import{EntranceRevealIcon as Oq,NoSymbolIcon as Eq,PercentIcon as eD,ScrollFadeInIcon as _q,ScrollFadeOutIcon as Fq,ScrollMoveDownIcon as Bq,ScrollMoveUpIcon as Aq,ScrollParallaxIcon as Lq,ScrollZoomInIcon as Rq,ScrollZoomOutIcon as Dq,ZoomInIcon as Nq}from"efficient-easel/icons";import{customize as Mq,group as Hq}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as tD,SCROLL_EFFECTS_WITH_ZOOM as Wq,SCROLL_END as $q,SCROLL_START as zq,SCROLL_ZOOM as Uq}from"efficient-shell/format";var rD="Scroll",jq={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"},Gq={none:()=>ft(Eq,{}),"zoom-in":()=>ft(Rq,{}),"zoom-out":()=>ft(Dq,{}),"fade-in":()=>ft(_q,{}),"fade-out":()=>ft(Fq,{}),"move-up":()=>ft(Aq,{}),"move-down":()=>ft(Bq,{}),reveal:()=>ft(Oq,{}),parallax:()=>ft(Lq,{})},Kq="Effect",aD=tD.filter(e=>e!=="none"),oD=(e,o)=>Gt(Yo.slice(0,Yo.indexOf(e)+1).reverse().map(t=>Xo(mo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),qq={any:Yo.map(e=>({field:Xo(mo.effect,e),in:aD}))},Vq=Yo.flatMap(e=>[[[Xo(mo.zoom,e)],oD(e,Wq)],[[Xo(mo.start,e),Xo(mo.end,e)],oD(e,aD)]]),Yq=()=>cf(mo.effect,{label:rD,tileWord:Kq,values:tD,fallback:"none",word:e=>jq[e],picture:e=>Gq[e](),read:(e,o)=>Qt(e,o).effect}),xg=(e,o,t,r,a)=>ff(e,wr(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Qt(n,s)[o]);function Oa(){let e={[Tn]:Hq(rD,{dot:qq}),...Yq(),[Rf]:Mq(),...xg(mo.zoom,"zoom","Zoom",ft(Nq,{}),Uq),...xg(mo.start,"start","Start",ft(eD,{}),zq),...xg(mo.end,"end","End",ft(eD,{}),$q)};return Vo(e,Vq)}import{jsx as Eo}from"react/jsx-runtime";import{AccentIcon as Xq,ContrastIcon as Jq,EyeIcon as Zq,ExpandIcon as Qq,FinishIcon as e9,ImagesIcon as o9,NoSymbolIcon as sD,HoverLiftIcon as t9,HoverNextImageIcon as r9,HoverRotateIcon as a9,HoverZoomIcon as lD,OpacityIcon as n9}from"efficient-easel/icons";import{customize as s9,describedAs as iD,group as l9}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as dD}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Io}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as i9,noControlField as d9}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Fp=e=>Io("desktop",l9("Hover",{dot:e})),fD=()=>Io("desktop",s9()),f9="What this does when a shopper points at it, or taps it on a phone.",c9="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",p9="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.",u9="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.",m9="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",x9="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.",h9="Which of the product's pictures the card shows.",I9="Same finish shows the photos of the finish the card shows, else the first group.",g9="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",y9={none:()=>Eo(sD,{}),nextImage:()=>Eo(r9,{}),rotate:()=>Eo(a9,{}),zoom:()=>Eo(lD,{}),lift:()=>Eo(t9,{}),mono:()=>Eo(Jq,{})};function hg(e,o){let t=dD({label:f("Hover effect"),options:e.map(r=>({value:r,label:f(Nu[r]),picture:y9[r]()})),fallback:o});return iD(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Nu[r]}))})}function cD(){return{[mt]:Fp({field:qo,in:$u.filter(e=>e!=="none")}),[qo]:Io("desktop",{...hg($u,"none"),description:f9})}}function pD(e){let o=jb(e),t=Yi(),r=Rv(Rb);return{[mt]:Fp({any:[o,t]}),[je.kind]:Io("desktop",{...ns(hg(Bb,e),(a,n)=>zb(n??{},e)),description:x9}),...Ig(t),[Ab]:d9({type:"custom",render:()=>Eo(i9,{})},"always"),_cHover:fD(),[je.angle]:Io("desktop",Qe(ns(r,a=>Ub(a)),o)),[je.duration]:Io("desktop",Qe(rs("hover"),o)),[je.delay]:Io("desktop",Qe(as("hover"),o))}}function Ig(e){let o=Av("Type",Eo(o9,{}),Db.map(a=>({value:a,label:Nb[a]})),Vi.kind),t=xn("Group",Eo(e9,{}),Mb.map(a=>({value:a,label:Hb[a]})),Vi.group),r=xn("Covers",Eo(Qq,{}),Wb.map(a=>({value:a,label:$b[a]})),Vi.cover);return{[je.mediaKind]:Io("desktop",Qe({...o,description:h9},e)),[je.mediaGroup]:Io("desktop",Qe({...t,description:I9},e)),[je.cover]:Io("desktop",Qe({...r,description:g9},e))}}function gg(e,o="",t=Ku.includes(o)){let r=qu(e),a=Jb(e);return{[mt]:Fp(r),[je.kind]:yg(Gb,e,c9),...Ku.includes(o)?Ig(Yi()):{},_cHover:fD(),...t?uD():{},[je.duration]:Io("desktop",Qe(rs("hover"),a)),[je.delay]:Io("desktop",Qe(as("hover"),a))}}function uD(e=!1){let o=a=>e?a:Qe(a,Xb()),t=wr("Zoom",Eo(lD,{}),Ya.min,Ya.max,Ya.step,Ya.min,Ya.unit),r=wr("Darken on hover",Eo(n9,{}),cn.min,cn.max,cn.step,cn.fallback,cn.unit);return{[Uu.zoom]:Io("desktop",o(t)),[Uu.darken]:Io("desktop",o(r))}}function yg(e,o,t){let r=Io("desktop",{...ns(hg(e,o),a=>Vb({[qo]:a},o,e)),description:t});return Object.assign(r,{[mD]:o})}var mD="sfPictureResting",nD=new WeakMap;function vOe(e,o,t){let r=e[je.kind],a=r?.[mD];if(!r||!a)return e;let n=o.props?.[qo]==="nextImage",s=n?null:fd(t.appState,o.props?.id);if(!n&&!qi.includes(String(s?.type??"")))return e;let l=nD.get(e);return l||(l={...e,[je.kind]:yg(zu,a,p9)},nD.set(e,l)),l}var b9="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.",S9={none:()=>Eo(sD,{}),[Mu]:()=>Eo(Xq,{})},POe=Io("desktop",{...iD(dD({label:f("Hover effect"),options:Hu.map(e=>({value:e,label:f(Wu[e]),picture:S9[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Hu.map(e=>({value:e,label:Wu[e]}))}),description:b9}),w9=Io("desktop",{...xn("Show",Eo(Zq,{}),[{value:Gu,label:"Always"},{value:ju,label:"On card hover"}],Gu),description:m9});function xD(){let e={any:[qu("none"),{field:qo,is:Mu},{field:Kr,is:ju}]},{[mt]:o,[je.kind]:t,...r}=gg("none","",!0);return{[mt]:Fp(e),[je.kind]:t,[Kr]:w9,...Ig(Yi()),...r,...uD(!0)}}var TOe=yg(zu,"none",u9);import{jsx as li}from"react/jsx-runtime";import{isNodeList as P9}from"efficient-easel/data";import{useEasel as T9}from"efficient-easel/easel";import{hiddenInView as O9,hiddenKeyOf as Sg,hidePatch as E9,slotChildName as _9,slotChildRowName as F9}from"efficient-easel/draw";var Bp=null;function bg(e){Bp=e}function hD(){return!!(Bp&&Bp.state().lockHolder)}function Ea(){return Bp!==null}var C9=new Set(["BookingBox","SubmitBox"]);function k9(e){return typeof e=="string"&&C9.has(e)}var v9=Hv(k9,hD);function Ap(e,o){return v9(e)||eP(o)}var Lp=(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 B9}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as A9}from"efficient-easel/screen/lib/document/panel-no-control-mark";var ID="notCardOfTemplate",gD={not:{context:ID,is:!0}},wg={any:[Ji,gD]},VOe={[ID]:(e,o)=>{let t=dm(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Rp(e){let o=e.props?.content;return P9(o)?o:[]}var Np=(e,o)=>O9(e.props??{},o),L9=(e,o)=>e.props?.[Sg(o)]!==void 0;function yD(e,o=()=>!1,t="desktop"){return Rp(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Rp(r).length&&!Np(r,t)?yD(r,o,t):o(r)?[]:[r])}function R9(e,o,t,r="desktop"){let a=yD(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 c=2;for(;n.has(`${i} ${c}`);)c+=1;d=`${i} ${c}`,n.add(d)}return s.add(i),{id:l.props.id,label:d,shown:!Np(l,r)}})}function Dp(e,o,t){let r=a=>t==="desktop"?Np(a,t):L9(a,t);return Rp(e).flatMap(a=>r(a)?o(a)?[]:[a,...Dp(a,o,t)]:Dp(a,o,t))}function D9(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===Sg("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 Cg(e,o,t){let r=Rp(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=D9(s.props,t(s.props));i!==s.props&&(l={...s,props:i})}else l=Cg(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function bD(e,o,t,r="desktop"){return Cg(e,o,a=>r==="desktop"&&Np({props:a},r)===!t?{}:E9(a,r,!t))}function N9(e,o,t){return t==="desktop"?bD(e,o,!0,t):Cg(e,o,()=>({[Sg(t)]:void 0}))}function M9(e,o,t,r,a,n){return _9(e).trim()?t(e):TS({ownerType:o,owner:r,fields:a,slot:n},Ft(e.props))?.label??t(e)}var H9="This page is read-only.";function W9({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=m=>F9(m,n,Va,void 0,Lp),c=m=>Ap(m.type,m),x=R9(e,m=>M9(m,o,d,t,r,a),c,i);return x.length?li(Ym,{parts:x,changed:Dp(e,c,i).length>0,shown:m=>x.find(h=>h.id===m)?.shown??!0,disabledReason:l?H9:void 0,onPress:(m,h)=>s(g=>bD(g,m,h,i)),onReset:()=>s(m=>Dp(m,c,i).reduce((h,g)=>N9(h,String(g.props.id),i),m))}):li(A9,{})}function $9(){try{let e=T9(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=dm(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:LS(e.appState,r),slot:BS(e.appState,t.props?.id)??void 0}}catch{return null}}function z9({readOnly:e,view:o}){let t=$9(),r=Js();return t?li(W9,{...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}})}}):li(Ym,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function YOe(e){return Qe(B9(e,{type:"custom",render:({readOnly:o})=>li(z9,{readOnly:o,view:e})}),gD)}import{customize as Z9}from"efficient-easel/screen/lib/document/box-fields";import{jsx as kg}from"react/jsx-runtime";import{DirectionIcon as U9,LoopMarqueeIcon as j9,NoSymbolIcon as G9}from"efficient-easel/icons";import{customize as K9,describedAs as q9,group as V9}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as Y9}from"efficient-easel/screen/lib/document/effect-tiles";function vg(){return xP("Direction",Mh,zl,"A marquee cannot run diagonally, so the corners are not answers.",kg(U9,{}),mP)}var Pg=e=>V9("Loop",e?{dot:e}:void 0),X9={none:()=>kg(G9,{}),scroll:()=>kg(j9,{})};function J9(){let e=Y9({label:f("Loop"),options:Mc.map(({value:o,label:t})=>({value:o,label:f(t),picture:X9[o]()})),fallback:Nh});return q9(e,{type:"select",label:"Loop",options:Mc.map(({value:o,label:t})=>({value:o,label:t}))})}function SD(){return{[qn]:Pg($l),loop:J9(),_cLoop:K9(),scrollDirection:Qe(vg(),$l),loopDuration:Qe(Ep({readsSpeed:!1}),$l),loopDelay:Qe(_p(),$l)}}var wD={field:Kr,set:!0};function Q9(){let e=xD(),o=[mt,qo],t=Ao(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Kr),Ji),r=Ao(t,[Kr],wD),a=Ao(r,[qo],wg);return Ao(a,[mt],{any:[wg,wD]})}function Mp(e,o=""){switch(e){case"section":case"block":return{...Ct(),...Oa()};case"box":return{...Ct(),...Oa(),...SD(),...Q9()};case"picture":return{...Ct(),...Oa(),...gg(qb(o),o)};case"textPart":return{...Ct(),...Oa(),...cD()};case"cards":return{...Ct(),...Oa(),...pD(Lb(o))};case"marquee":return{...Ct(),...Oa(),[qn]:Pg(),_cLoop:Z9(),scrollDirection:vg(),loopDuration:Ep({readsSpeed:!0}),loopDelay:_p()}}}import{blockSizeFieldSet as HV}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as WV}from"efficient-easel/screen/lib/document/box-fields";import{jsx as CD,Fragment as eV,jsxs as oV}from"react/jsx-runtime";import{useSelectedHost as kD}from"efficient-easel/easel";function tV({frameOf:e,note:o}){let t=kD()?.values,r=t?o(t,e(t)):null;return r?CD("p",{className:"es-field-hint",children:r}):null}var rV=new Set($s().filter(e=>e.startsWith(mr.top)));function vD(e,o,t){let r=Cr({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:()=>{let a=kD()?.values,n=a?e(a):0;return{top:n,bottom:n}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!rV.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>oV(eV,{children:[s(l),CD(tV,{frameOf:e,note:o})]})}]}))}import{group as aV}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as nV,deviceMetaOf as OD}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as Og,SETTINGS_BUCKETS as sV}from"efficient-easel/panel";import{BUCKET_KEY as go,DESIGN_GROUP_KEY as ss}from"efficient-easel/screen/lib/document/field-buckets";var ii=sV;var lV="Editor only \u2014 not shown live",Eg={"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",[lV]:"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"},ED={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},_D={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function PD(e,o,t){let r=`${e}.${o}`;return W(_D,r)??W(ED,r)??W(Eg,t)}function iV(e){return e==="Animation"?[go.Animation]:[go.Design,ss[e]]}function Hp(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=OD(r),n=Xt(a?a.inner:r),s=n?W(Eg,n.label):void 0;if(s)for(let l of iV(s))o.includes(l)||o.push(l)}return o}var BEe=[...Hp(Cr({tablet:!0,siteSide:!0}),gn("full"),yn(),bn(),Zs()),...Object.keys(Cr({tablet:!0,siteSide:!0})),...Object.keys(gn("full")),...Object.keys(yn()),...Object.keys(bn()),...Object.keys(Zs())],AEe=[...Hp(hn()),...Object.keys(hn())],LEe=[...Hp(In()),...Object.keys(In())],REe=[...Hp(Ct()),...Object.keys(Ct())],DEe=Object.keys(gP()),NEe=Object.keys(yP()),dV={"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)"},FD={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},Tg={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Cr({tablet:!0,siteSide:!0}),...gn("full"),...yn(),...bn(),...hn(),...In(),...Ct()};for(let o of Object.keys(Tg)){let t=Xt(e[o]),r=t?W(Eg,t.label):void 0;if(!t||t.level!==2||!r||!FD[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 fV=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),cV=new Map([[go.Design,"Content"],[go.Animation,"Animation"],...Og.map(e=>[ss[e],e])]);function pV(e){let o=`${e}.`;return Object.keys(dV).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function uV(e,o){let t=OD(e),r=aV(o);return t?nV(t.tier,r):r}function mV(e,o){let t=Xt(o);return t?e==="Content"||e==="Animation"?sP(o,t.label):lP(o):o}function TD(e){return e==="Design"?Og:["Animation"]}function Wp(e,o){let t=[],r=new Set(pV(o)),a=new Set,n=!1,s=null;for(let[m,h]of Object.entries(e)){let g=Xt(h);if(fV.has(m))throw new Error(`${o}.${m}: 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 k=cV.get(m);if(k!==void 0){if(g?.level!==1)throw new Error(`${o}.${m}: that key is reserved for the ${k} heading of the settings panel, but this field is ${g?`a level-${g.level} "${g.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(m===go.Design||m===go.Animation)&&(n=!0),t.push(s={place:k,entries:[],adopted:!0});continue}if(!g){s||t.push(s={place:"Content",entries:[]}),s.entries.push([m,h]);continue}if(r.has(m)||uo(Tg,m)){let T=PD(o,m,g.label);if(g.level!==2||!T||!FD[T].includes(g.label))throw new Error(`${o}.${m}: ${r.has(m)?"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-${g.level} "${g.label}" header in the ${T??"(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(m)&&a.add(m),t.push(s={place:T,entries:[],uniform:uo(Tg,m)});continue}let O=PD(o,m,g.label);if(!O)throw new Error(`${o}.${m}: the inspector group "${g.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...Og,"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:O,entries:[[m,g.level===2?h:uV(h,g.label)]]})}let l=new Set(Object.entries(e).filter(([,m])=>Xt(m)).map(([m])=>m));for(let[m,h]of[["BLOCK_KEY_GROUP",_D],["KEY_GROUP",ED]]){let g=Object.keys(h).filter(k=>k.startsWith(`${o}.`)).filter(k=>!l.has(k.slice(o.length+1))&&!r.has(k.slice(o.length+1)));if(g.length)throw new Error(`${o}: ${m} (lib/document/field-groups.ts) lists ${JSON.stringify(g)}, 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(m=>!a.has(m));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(m=>m.entries.length>0).map(m=>m.place)),c=ii.filter(m=>TD(m).some(h=>d.has(h))),x={};for(let m of c){x[go[m]]=lf(m,m===c[0]?c:null);for(let h of TD(m)){if(!d.has(h))continue;let g=t.filter(T=>T.place===h),k=g.findIndex(T=>T.adopted);k>0&&g.unshift(...g.splice(k,1));let O=g.filter(T=>T.uniform);if(O.length>0){let T=g.filter(P=>!P.uniform),L=g[0]?.adopted?1:0;g.splice(0,g.length,...T.slice(0,L),...O,...T.slice(L))}m==="Design"&&(x[ss[h]]=jm(h));for(let T of g)for(let[L,P]of T.entries)x[L]=mV(h,P)}}return x}function BD(e){return go.Design in e?e:{[go.Design]:lf("Design",null),[ss.Content]:jm("Content"),...e}}function AD(e){return ii.some(o=>go[o]in e)}function $p(e){let o=ii.filter(r=>go[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[go[r]]=lf(r,r===o[0]?o:null);return t}import{jsx as zp}from"react/jsx-runtime";import{WidthIcon as xV}from"efficient-easel/icons";import{SettingsField as hV,SettingsSwitch as IV}from"efficient-easel/panel";import{group as gV,iconOf as yV,sharedStyleKinds as bV}from"efficient-easel/screen/lib/document/box-fields";var SV="Gutter";function wV({value:e,onChange:o,labelId:t}){let r=Cp(Xs()),a=Ql({[Pa]:e})??r,n=s=>o(s?r?void 0:KI:GI);return zp(hV,{label:f(SV),labelId:t,icon:yV(zp(xV,{})),action:zp(IV,{checked:a,onChange:n,ariaLabelledBy:t})})}function LD(){return bV({_gWidth:gV(df),[Pa]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>zp(wV,{value:e,onChange:o,labelId:`${t??r??Pa}-label`})}})}import{jsx as Fg}from"react/jsx-runtime";import{group as CV,sharedStyleKinds as DD}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as kV}from"efficient-easel/screen/lib/document/device-fields";var vV="Content cannot be wider than the background.",_g=e=>f(e==="content"?"Content width":"Full width");function ND(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=Co(),n=ye(o)??rn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var PV={read:an},TV={read:an,drawsFullOnItsOwn:!0},OV={read:Aw,clearOnContent:{fullWidth:void 0}};function EV({source:e}){let o=e.read(qm()),t=Js(),r=ND(e);return Fg(SP,{value:o.background??r.background,changed:o.background!==null,detail:_g(r.background),onChange:a=>t(Rw(a)),onReset:()=>t(Im("background"))})}function _V({source:e}){let o=e.read(qm()),t=Js(),r=i=>t({...i,...e.clearOnContent}),a=ND(e),n=(o.background??a.background)==="content",s=iP({row:hm,label:bP,grid:{min:rn.min,max:n?a.px:rn.max,step:rn.step},valueKey:Oo.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return Fg(wP,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:rn.max,changed:o.content!==null,detail:a.content==="full"?_g("full"):`${_g("content")} ${a.px}px`,fullClosed:n,hint:n?vV:void 0,onMode:i=>r(Dw(i)),onPx:i=>r({...Nw(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(Im("content"))})}var RD=(e,o)=>kV("desktop",{type:"custom",render:()=>Fg(e,{source:o})}),MD=e=>({[Oo.background]:RD(EV,e),[Oo.content]:RD(_V,e),[Oo.contentMax]:Km(),...Lv(hm,Oo.content)});function HD(e){let o=e?.drawsFullOnItsOwn?TV:PV;return DD({_gWidth:CV(df),...MD(o)})}function n_e(){return DD({...MD(OV),fullWidth:Km()})}import{deviceMetaOf as $D}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as FV}from"efficient-easel/screen/lib/document/panel-no-control-mark";function BV(e,o){let t=$D(o),r=t?t.inner:o;if(Xt(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=FV(r);return a==="always"?!1:a==="authored-copy"?zC(e):!0}function WD(e){let o=$D(e),t=o?o.inner:e,r=Xt(t);return r?nP(t)?0:r.level:null}function AV(e,o,t){return t?o===0&&e===go.Design||o===1&&e===ss.Content:!1}var LV=new WeakMap,RV=new WeakMap;function zD(e,o="section"){let t=o==="page"?RV:LV,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([x,m])=>({key:x,field:m,level:WD(m),draws:BV(x,m)||o==="page"&&WD(m)===null&&Om(x,m)})),n=o==="section"&&a.some(x=>Om(x.key,x.field)),s=new Set;for(let x=0;x<a.length;x++){let m=a[x].level;if(m===null)continue;let h=0;for(let g=x+1;g<a.length;g++){let k=a[g].level;if(k!==null&&k<=m)break;a[g].draws&&(h+=1)}h===0&&!AV(a[x].key,m,n)&&s.add(a[x].key)}let l=n&&AD(e),i=l&&!(go.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 c=$p(l?BD(d):d);return t.set(e,c),c}import{isShown as DV,showWhenFactReaders as NV}from"efficient-shell/format";var UD=new WeakMap,MV=new Set(Object.values(go));function jD(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=NV(r,o,t),l=Cv(t,{...s,parentOffersPositions:()=>{let g=Ht(t.appState,n);return g===void 0?void 0:Zw(g,n)},parentTileSlot:()=>{let g=Ht(t.appState,n);return g===void 0?void 0:Qw(g,n)},heroGroupDepth:()=>bd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[g,k]of Object.entries(e)){let O=uS(k);!O||wv(O,"device")||DV(O,a,l)||i.push(g)}if(i.length===0)return e;let d=UD.get(e);d||UD.set(e,d=new Map);let c=i.join("\0"),x=d.get(c);if(x)return x;let m=new Set(i),h={};for(let[g,k]of Object.entries(e))m.has(g)||(h[g]=k);return i.some(g=>MV.has(g))&&(h=$p(h)),d.set(c,h),h}var GD={spacingFields:pP,sidesPaddingFields:Cr,ownPaddingFields:vD,sectionShapeFields:In,cardShapeFields:dP,cellWidthFields:fP,widthField:gn,boxGutterFields:LD,sectionOwnWidthFields:HD,heightFields:yn,anchorFields:bn,customCssFields:uP,stickFields:Zs,sectionThemeFields:hn,animationTabFields:Mp,blockSizeFields:({tablet:e,...o}={})=>HV({...o,shorten:!0,say:Bv,lengthUnits:of,...e?{phone:WV}:{}}),assignSectionGroups:Wp,dropEmptyHeadings:zD,rowsShownForNode:jD,SECTION_THEME_FOLLOW_LABEL:Jv,BLOCK_THEME_FOLLOW_LABEL:Zv,PartAnchors:CA};function Up(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(c=>!i.has(c));d.length>0&&(l={...s,disallow:[...s.disallow??[],...d]})}else{let i=Up(s.arrayFields,o,t),d=Up(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 $V(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=KR(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 zV(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];UV(e,o,a);for(let n of a){let s=n.components.filter(sd);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(!ld(n))continue;let s=nd(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 Bg(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(...Bg(e,o,s.arrayFields,`${l}.`),...Bg(e,o,s.objectFields,`${l}.`))}return a}function UV(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${en}". 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(en)&&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=Bg(en,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function KD(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=MI(o);if(zV(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,m]of Object.entries(n)){let h=a?Up(m?.fields,l,i):m?.fields;d[x]=h===m?.fields?m:{...m,fields:h}}if(t.length>0){let x=new Set(t.map(([g])=>g)),m=e.categories?.structure?.components??[],h={...cg(Object.keys(n),m,x),isHostBlock:g=>x.has(g),inspector:GD};for(let[g,k]of t){let O=$V(g,k,h),T=Up(O.fields,l,i);d[g]=T===O.fields?O:{...O,fields:T}}}let c=[];for(let[x,m]of Object.entries(e.categories??{})){let h=m?.components??[],g=h.filter(l);g.length===h.length?c.push([x,m]):g.length>0&&c.push([x,{...m,components:g}])}for(let x of r){let m=x.components.filter(O=>O in d&&l(O));if(m.length===0)continue;let h=c.find(([O])=>O===x.key);if(h){let[,O]=h,T=new Set(O.components??[]);h[1]={...O,components:[...O.components??[],...m.filter(L=>!T.has(L))]};continue}let g=[x.key,{title:x.title,components:m}],k=x.before?c.findIndex(([O])=>O===x.before):-1;k===-1?c.push(g):c.splice(k,0,g)}return{...e,components:d,categories:Object.fromEntries(c)}}function qD(){let e=KV();return jV(()=>KD(GV(e),on(e)),[e])}import{jsx as Rg,Fragment as pY,jsxs as uY}from"react/jsx-runtime";import{useContext as mY,useEffect as xY,useMemo as Yp,useRef as uN}from"react";import{EaselCanvas as hY,repeatCopyAt as IY,useEasel as gY}from"efficient-easel/easel";import{jsx as Ag}from"react/jsx-runtime";import{useEffect as XV,useState as JV}from"react";import{Banner as ZV}from"efficient-shell/ui";import{useSyncExternalStore as qV}from"react";import{useScreenDocument as VV}from"efficient-easel/screen/components/ScreenDocumentContext";var YV=()=>()=>{},VD=()=>null;function jp(e){return qV(e?e.subscribe:YV,e?e.state:VD,e?e.state:VD)}function Gp(){let{adapter:e}=VV();return e?.pinnedChrome}var Kp={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."},QV={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."},eY=Kp.load,oY=Kp.lock,tY=Kp.conflict,rY=Kp.save;function aY(e){if(!e)return null;if(e.loadFailed)return f(eY);if(e.lockHolder)return f(oY,{name:e.lockHolder.name||f("Somebody else")});if(e.conflict)return f(tY);if(e.saveFailed)return f(rY);let o=e.sections?.[0];if(!o)return null;let t=o.title||f("A shared section"),r=o.holder?.name||f("Somebody else");return f(QV[o.problem],{section:t,name:r})}function nY({report:e}){let o=aY(jp(e)),[t,r]=JV(null);return XV(()=>{o||r(null)},[o]),!o||t===o?null:Ag("aside",{className:"sf-canvas-notice",children:Ag(ZV,{tone:"warning",onDismiss:()=>r(o),children:o})})}function YD(){return Ag(nY,{report:Gp()})}import{jsx as Vp}from"react/jsx-runtime";import{useState as cN}from"react";import{Banner as lY,Button as iY}from"efficient-shell/ui";import{UndoIcon as dY}from"efficient-shell/icons/efficient";import{useScreenDocument as fY}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as ZD}from"react";var di=!1,ls=null,Lg=new Set;function ci(){for(let e of Lg)e()}function QD(e){return Lg.add(e),()=>{Lg.delete(e)}}function eN(){di||(di=!0,ci())}function oN(){di&&(di=!1,ci())}function XD(){return di}function tN(){return ZD(QD,XD,XD)}function JD(){return ls}function qp(){ls&&(ls=null,ci())}function rN(){return ZD(QD,JD,JD)}var fi=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function aN(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new fi;let n=await e.restore(o,t);return af(n.liveState),a(),n}async function nN({access:e,version:o,page:t,...r}){let a=await aN(e,o.id,t?{page:t.id}:{},r);ls={title:sY(o,t??null),undo:a.undo},ci()}async function sN({access:e,...o}){let t=ls?.undo;t&&(await aN(e,t,{},o),ls=null,ci())}function lN(e){return e.name?e.name:e.kind==="draft_before_restore"?f("Draft before restore"):f("Version {n}",{n:e.number})}function sY(e,o){return e.kind==="draft_before_restore"?f("Your drafts from before the restore are back"):o?f("{page} from version {n} is now your draft",{page:o.name,n:e.number}):f("Version {n} is now your draft",{n:e.number})}function iN(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Bt("{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(pm(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function dN(e){return e.change==="take_down"?f("{name} (taken down)",{name:e.name}):e.name}function fN(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=pm(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return f("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return f("{day}, {time}",{day:n,time:a})}import{useSettledAction as cY}from"efficient-easel/easel";function pN(){let e=rN(),{adapter:o,flushSave:t,reloadFromServer:r}=fY(),a=o.siteVersions,[n,s]=cN(!1),[l,i]=cN(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await sN({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},c=cY({onPress:()=>{d()},busy:n});return e?Vp("aside",{className:"sf-canvas-notice",children:Vp(lY,{tone:l?"danger":"info",title:e.title,onDismiss:qp,action:a&&e.undo?Vp(iY,{variant:"secondary",size:"sm",leftIcon:Vp(dY,{}),loading:c.busy,disabled:c.busy,onClick:c.onPress,children:f("Undo")}):void 0,children:l?f("Undo did not work. Nothing changed. Try again."):f("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as yY,REPEAT_ATTRIBUTE as Dg,REPEAT_INDEX_ATTRIBUTE as Ng}from"efficient-easel/draw";import{usePreviewParts as bY}from"efficient-easel/draw/client";import{ScreenDocumentContext as SY}from"efficient-easel/screen/components/ScreenDocumentContext";function mN(e){let{mirrorHostStyles:o}=Qs(),t=MP(),r=Mg(),a=Xs(),n=mY(SY),s=zv(n?.docId??null),l=gY(O=>O.appState.data),i=Uv(s,l),d=JSON.stringify(i),c=Yp(()=>i,[d]),x=Yp(()=>({...e.metadata??t??{},...r,...c}),[e.metadata,t,r,c]);xY(()=>(sg(a),()=>sg(null)),[a]);let m=uN(null),h=wY(m),{onDocument:g}=e,k=O=>{m.current=O,g?.(O)};return uY(pY,{children:[Rg(pN,{}),Rg(YD,{}),Rg(hY,{...e,onDocument:k,typing:h,metadata:x,height:"fill",mirrorStyles:o,frameWrapper:vf})]})}function Mg(){let{sectionBackgroundWidth:e,themeFromDocument:o}=Co(),t=Xs();return Yp(()=>Mw(o?null:e,t),[e,t,o])}function wY(e){let o=xf(),t=bY(),r=uN({parts:t});return r.current={parts:t},Yp(()=>{let a=(n,s)=>{let l=gf(n,o),i,d=null,c=s??(l?null:px(null,e.current,n)),x=!l&&c?IY(c):null,m=x?yY(n):null;if(x&&c&&m?.propKey){l=bf({...x,nodeId:m.nodeId,key:m.propKey},o),i=m.propKey;let O=c.closest(`[${Dg}][${Ng}]`),T=`[${Dg}="${yf(O?.getAttribute(Dg)??"")}"][${Ng}="${yf(O?.getAttribute(Ng)??"")}"]`;d=()=>(c.ownerDocument??e.current)?.querySelector(T)??null}if(!l)return null;let h=c,g=()=>(h=px(h,d?d():h?.ownerDocument??e.current,n),h),k=g();return k?{element:g,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?Nd(Md(k)):void 0,colorNameOf:Dd}}:null};return{at:n=>{let s=n.closest(`[${We}]`),l=s?.getAttribute(We);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>n0(n,o),copyValue:n=>a0(n,o),onChange:n=>{if(!n.typing){ux(null);return}let s=n.element.closest(`[${We}]`)?.getAttribute(We)??null;ux(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}function IN({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=OY(),{adapter:n,siteId:s,templateId:l}=TY(),i=To(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),c=vY(()=>s?{siteId:s}:{},[s]),x=qD(),m=Mg(),[h,g]=Wg(null),[k,O]=Wg(Zn),[T,L]=Wg(null),P=PY(null),I=kY();CY(()=>{if(!e)return;if(O(Zn),!d){g([]);return}let w=!0;return g(null),i.starters(c).then(S=>w&&g(S),()=>{w&&(g([]),hN.error(f("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{w=!1}},[e,d,i,c]);let C=async(w,S)=>{if(!T){L(w);try{r(await S())}catch{hN.error(f("Couldn\u2019t add the page \u2014 please retry."))}finally{L(null)}}},E=()=>{if(!n.createPage)return;let w=f("New page");C("blank",()=>n.createPage({slug:xN(w,t),title:w,layout:{}}))},B=w=>{C(w.id,()=>i.createFromStarter(w.id,{title:w.title,slug:xN(w.slug,t),...c}))},R=h??[],b=DA(R),F=NA(k,R),y=Hg("nav",{"aria-label":f("Pages"),className:"sf-add-page-nav",children:[Go($g,{label:f("All pages"),active:k===Zn,onClick:()=>O(Zn)}),b.map(w=>Go($g,{label:f(w.label),active:k===w.key,onClick:()=>O(w.key)},w.key)),LI(R).length>0?Go("div",{className:"sf-add-page-group",children:Go($g,{label:f("From your template"),active:k===mp,onClick:()=>O(mp)})}):null]});return Go(_Y,{open:e,onClose:o,size:"full",title:f("Add page"),initialFocus:P,children:Go(DY,{sidebarTop:Hg(RY,{onClick:E,disabled:!n.createPage||T!==null,children:[Go(EY,{"aria-hidden":!0}),f("Blank page")]}),sidebar:y,children:Hg("div",{ref:P,tabIndex:-1,role:"region","aria-labelledby":I,className:"sf-add-page",children:[Go(NY,{id:I,level:2,as:"h3",children:f("Pages for your site")}),Go(LY,{tone:"default",className:"sf-add-page-sub",children:f("Choose a page and change the text, images and more.")}),h===null?Go(AY,{label:f("Loading\u2026")}):F.length===0?Go(FY,{title:f("No pages to start from"),description:f("Start with a blank page, then add sections.")}):Go(BY,{cols:1,smCols:2,lgCols:3,gap:8,children:F.map(w=>Go(WA,{starter:w,config:x,metadata:m,busy:T===w.id,onAdd:B},w.id))})]})})})}import{jsx as MY}from"react/jsx-runtime";import{createContext as HY,useContext as gN,useEffect as WY,useRef as yN}from"react";var zg=HY(null);function J1e({open:e,children:o}){let t=yN(!!e);return MY(zg.Provider,{value:t,children:o})}function bN(){let e=gN(zg);return()=>e?.current?(e.current=!1,!0):!1}function SN(e){let o=gN(zg),t=yN(e);t.current=e,WY(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var TN="sf-editor-pages-collapsed-groups";function aX(){let e=jg(),{siteId:o,templateId:t}=ON(),r=To(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function EN({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=jg().chrome?.pageRows,n=oX(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=ON(),c=Sn(),{rows:x,reload:m,setRows:h,getRows:g}=tl(),[k,O]=_a(""),[T,L]=_a(!1),[P,I]=_a(null),[C,E]=_a(!1),B=!!To(jg()).pages.createFromStarter,R=aX(),[b,F]=_a(null),[y,w]=_a(()=>{if(typeof window>"u")return new Set;try{let H=window.localStorage.getItem(TN);return new Set(H?JSON.parse(H):[])}catch{return new Set}});wN(()=>{try{window.localStorage.setItem(TN,JSON.stringify([...y]))}catch{}},[y]);let S=H=>w(xe=>{let he=new Set(xe);return he.has(H)?he.delete(H):he.add(H),he}),v=CN(()=>yv(x??[]),[x]),N=k.trim().toLowerCase(),$=H=>!N||H.toLowerCase().includes(N),V=H=>N?!0:!y.has(H),K=CN(()=>new Set((x??[]).map(H=>H.slug)),[x]),ae=()=>{if(l.pageCreationInAdminForm&&!B){n.send("storefront-editor:new-page");return}I(null),E(!0)},ne=bN();wN(()=>{ne()&&ae()},[]);let J=l.hasSiteSettings&&!!s.createPage,me=async()=>{if(!(!i||T||!s.createPage)){L(!0),I(null);try{let H=await s.createPage(oP(f("New popup"),K));await m(),e(H.slug)}catch{I(f("Couldn\u2019t add the popup \u2014 please retry."))}finally{L(!1)}}},ue=UY(null),[Ie,ge]=_a(null),Po=()=>{if(!J)return ae();if(Ie)return ge(null);let H=ue.current?.getBoundingClientRect();H&&ge({top:H.bottom+6,right:Math.max(8,window.innerWidth-H.right)})},bo=H=>{let xe=x??[],he=s.deletePage;if(!i||T||!he||xe.length<=1)return;let Ze=xe.findIndex(ze=>ze.id===H.id),Ae=xe.filter(ze=>ze.id!==H.id),co=H.slug===d;Cf(H.id,!0),h(Ae),I(null),co&&Ae[0]&&e(Ae[0].slug);let Ge=()=>{Cf(H.id,!1);let ze=g()??[];if(ze.some(Fo=>Fo.id===H.id))return;let $t=[...ze];$t.splice(Math.max(0,Math.min(Ze,$t.length)),0,H),h($t)};vN.undoable(f("Deleted \u201C{name}\u201D",{name:H.label}),{actionLabel:f("Undo"),commit:async ze=>{await he(H.id,ze),Cf(H.id,!1)},undo:()=>{Ge(),co&&e(H.slug)},onFail:()=>{Ge(),vN.error(f("Couldn\u2019t delete the page \u2014 please retry."))}})},_o=H=>n.send("storefront-editor:open-page",{slug:H}),Xe=H=>{if(!$(H.label))return null;let xe=!t&&H.slug===d,he=l.canDeletePagesInline&&(x??[]).length>1,Ze=Qd(H),Ae=gv(H),co=[...Ze?[{label:f("Dynamic"),tone:"info"}]:[],...Ae?[{label:f("Lightbox"),tone:"success"}]:[],...H.draft?[{label:f("draft"),tone:"draft"}]:[]],Ge=co.length>0?co:void 0,ze=!!R&&tX(H),$t=ze||l.pageCreationInAdminForm||he?Xp($Y,{children:[ze&&ve(Jp,{kind:"plain",label:f("Duplicate \u201C{name}\u201D",{name:H.label}),disabled:T,onClick:()=>F(H),children:ve(JY,{size:13})}),l.pageCreationInAdminForm&&ve(Jp,{kind:"plain",label:f("Page settings for \u201C{name}\u201D",{name:H.label}),onClick:()=>_o(H.slug),children:ve(QY,{size:13})}),he&&ve(Jp,{kind:"delete",label:f("Delete \u201C{name}\u201D",{name:H.label}),disabled:T,onClick:()=>bo(H),children:ve(Ug,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ve(PN,{icon:ve(ZY,{size:14}),name:H.label,selected:xe,onSelect:()=>e(H.slug),badge:Ge,actions:$t,rowProps:{"data-page-slug":H.slug}},H.id)},fo=(H,xe,he)=>{let Ze=he.filter(Boolean);if(Ze.length===0)return null;let Ae=V(H);return Xp(zY,{children:[ve(YY,{count:Ze.length,countLabel:Bt("{n} page","{n} pages",Ze.length),expanded:Ae,onToggle:()=>S(H),children:xe}),Ae&&Ze]},H)},Je=(a?.rows??[]).filter(H=>$(H.label)).map(H=>{let xe=t===H.key;return ve(PN,{icon:H.icon,name:H.label,selected:xe,onSelect:()=>r(H.key),badge:{label:f("Preview"),tone:"warning"},actions:ve(Jp,{kind:"plain",label:f("Open the {name} in a new tab",{name:H.label}),onClick:()=>window.open(H.href,"_blank","noopener,noreferrer"),children:ve(Ug,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":H.key}},H.key)}),le=l.hasSiteSettings&&!!a,Me=(()=>{if(x===null)return null;let H=[],xe=!1;for(let he of v){le&&!xe&&he.key.startsWith("system:")&&(H.push(fo("shop",a.title,Je)),xe=!0);let Ze=he.key===Iv||he.label===hv?f(he.label):he.label;H.push(fo(he.key,Ze,he.rows.map(Xe)))}return le&&!xe&&H.push(fo("shop",a.title,Je)),H})();return Xp("div",{className:"sf-pages",children:[ve(jY,{icon:ve(eX,{}),title:f("Pages"),context:c,actions:ve(GY,{buttonRef:ue,label:J?f("Add"):f("New page"),hasPopup:J?"menu":void 0,expanded:J?Ie!==null:void 0,onClick:Po,children:ve(XY,{size:15})})}),Ie&&ve(qY,{portal:!0,style:{top:Ie.top,right:Ie.right},onClose:()=>ge(null),children:Xp("div",{role:"menu","aria-label":f("Add"),children:[ve(kN,{role:"menuitem",onClick:()=>{ge(null),ae()},children:f("Page")}),ve(kN,{role:"menuitem",disabled:T,onClick:()=>{ge(null),me()},children:f("Popup")})]})}),ve("div",{className:"sf-pages-find",children:ve(KY,{type:"search",leftIcon:ve(Ug,{name:"search",size:14,rounded:!0}),placeholder:f("Search all pages\u2026"),value:k,onChange:H=>O(H.target.value),"aria-label":f("Search all pages")})}),P&&!C&&ve("div",{className:"sf-note sf-note--error",role:"alert",children:P}),Me===null?ve("div",{className:"sf-note",children:f("Loading\u2026")}):Me.some(Boolean)?ve(VY,{ariaLabel:f("Pages"),className:"sf-scroll",children:Me}):ve("div",{className:"sf-note",children:k.trim()?f("No pages match your search"):f("No pages yet. Add one with + above.")}),R&&b&&ve(rX,{source:{title:b.label,slug:b.slug},taken:K,host:qd(),duplicate:H=>R(b,H),onClose:()=>F(null),onDuplicated:H=>{F(null),m(),e(H.slug)}},b.id),C?ve(IN,{open:!0,onClose:()=>E(!1),takenSlugs:K,onCreated:H=>{E(!1),m(),e(H.slug)}}):null]})}import{jsx as BN}from"react/jsx-runtime";import{createContext as iX,useCallback as dX,useContext as fX,useMemo as cX,useState as pX}from"react";import{CanvasChromeContext as uX}from"efficient-easel/easel";import{useSelectHandler as mX}from"efficient-easel/draw/client";import{parseHexColor as nX,parseOption as sX}from"efficient-shell/format";var Zp=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],is=Zp[0],lX=["right","left"],Fa="right";function Qp(e){return Zp.includes(e??"")?e:is}function _N(e){return sX(lX,Fa,e)}function FN(e){return e&&nX(e)===e.toLowerCase()?e.toLowerCase():""}var AN="chat",eu={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Fa,launcherLabel:"",showOnPhones:!0};function EFe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:FN(e.launcherColor),launcherIcon:e.launcherIcon?Qp(e.launcherIcon):"",launcherPosition:_N(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var LN=iX({chat:eu,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function _Fe({children:e,chat:o=eu,onChatChange:t}){let[r,a]=pX(!1),n=dX(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=mX(),i=cX(()=>({selected:()=>r?AN:null,select:d=>d===AN&&s()}),[r,s]);return BN(LN.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:BN(uX.Provider,{value:i,children:e})})}var ou=()=>fX(LN);import{jsx as Gg}from"react/jsx-runtime";import{DesktopIcon as xX,PhoneIcon as hX,TabletIcon as IX}from"efficient-easel/icons";import{VIEW_TIERS as gX,VIEW_TIER_LABEL as yX}from"efficient-easel/draw";var bX={desktop:Gg(xX,{}),tablet:Gg(IX,{}),mobile:Gg(hX,{})},RN=gX.map(e=>({id:e,get label(){return f(yX[e])},icon:bX[e]}));import{PreviewDeviceContext as Ate}from"efficient-easel/draw/client";import{jsx as SX}from"react/jsx-runtime";import{createContext as wX,useCallback as DN,useContext as CX,useMemo as kX,useRef as vX}from"react";var PX=Object.fromEntries(pf.map(e=>[e,{value:"",error:null}])),NN=wX({links:kP,rows:PX,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function WFe({children:e,value:o}){let t=vX(()=>{}),r=DN(()=>t.current(),[]),a=DN(s=>{t.current=s},[]),n=kX(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return SX(NN.Provider,{value:n,children:e})}var pi=()=>CX(NN);import{jsx as TX}from"react/jsx-runtime";import{createContext as OX,useContext as EX,useMemo as _X,useState as FX}from"react";var MN=OX(null);function jFe({children:e}){let[o,t]=FX(null),r=_X(()=>({surface:o,setSurface:t}),[o]);return TX(MN.Provider,{value:r,children:e})}function HN(){return EX(MN)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as BX}from"efficient-easel/draw/client";var{Provider:qFe,useSelection:tu}=BX("selectedHeroPart");import{jsx as we,jsxs as Wr,Fragment as e2}from"react/jsx-runtime";import{useEasel as nee,useRootFields as see}from"efficient-easel/easel";import{EmptyState as lee}from"efficient-shell/ui";function WN({kind:e,pageName:o}){return{name:o?.trim()||f("This page"),kindLabel:Qd({kind:e})?f("Template"):f("Page")}}import{headWords as a2,InspectorHead as iee,InspectorIconButton as o2}from"efficient-easel/chrome";import{DuplicateIcon as dee,TrashIcon as fee}from"efficient-easel/icons";import{panelFieldsOf as cee}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as D,Fragment as ce,jsxs as pe}from"react/jsx-runtime";import{BlockBannerIcon as RX,BlockBoxIcon as DX,BlockButtonIcon as NX,BlockDividerIcon as zN,BlockFooterIcon as UN,BlockHeadingIcon as MX,BlockProductIcon as HX,BlockSocialIcon as WX,BlockTextIcon as $X,CardPaymentIcon as zX,ChatIcon as UX,AccountIcon as jX,GlobeIcon as GX,GridIcon as KX,ImageIcon as qg,MapIcon as qX,MediaIcon as VX,PageIcon as YX}from"efficient-easel/icons";import{jsx as Kg,Fragment as AX,jsxs as LX}from"react/jsx-runtime";var $N=LX(AX,{children:[Kg("circle",{cx:"9",cy:"20",r:"1.3"}),Kg("circle",{cx:"18",cy:"20",r:"1.3"}),Kg("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 XX={header:pe(ce,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M3 9.5h18"})]}),social:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{children:[D("circle",{cx:"11",cy:"11",r:"6"}),D("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:$N,CountrySwitchBlock:pe(ce,{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:pe(ce,{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:pe(ce,{children:[D("path",{d:"M3 9h18"}),D("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:pe(ce,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{children:[D("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),D("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{children:[D("path",{d:"M3.5 20h17"}),D("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:pe(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:pe(ce,{children:[D("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),D("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:pe(ce,{children:[D("path",{d:"M4 8.5h4.5M11 8.5h9"}),D("path",{d:"M4 14.5h16"})]}),HeroGroup:pe(ce,{children:[D("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),D("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:pe(ce,{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(ce,{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:pe(ce,{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:pe(ce,{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:pe(ce,{children:[D("path",{d:"M4 7h2M4 12h2M4 17h2"}),D("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:pe(ce,{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"})},JX=D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),ZX={footer:UN,Footer:UN,Divider:zN,FooterDivider:zN,Banner:RX,Flex:DX,FooterSocial:WX,FooterPayment:zX,page:YX,website:GX,AccountBlock:jX,chat:UX,Heading:MX,Text:$X,ImageBlock:qg,ButtonBlock:NX,LocationMap:qX,Grid:KX,ProductRef:HX,heroMedia:VX,heroImage:qg,heroImage2:qg},QX={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Ba({type:e,size:o=16,className:t}){let r=QX[e]??e,a=ZX[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:XX[r]??JX})}import{PanelHideButton as t2}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as pee}from"efficient-easel/screen/lib/session-context";import{jsx as Se,jsxs as ui,Fragment as eJ}from"react/jsx-runtime";import{useEffect as oJ,useId as jN,useState as tJ}from"react";import{IconPicker as rJ}from"efficient-shell/ui";import{SettingsDefaultReset as aJ,SettingsField as mi,SettingsSegmented as nJ,SettingsSwitch as GN}from"efficient-easel/panel";import{ButtonIcon as sJ,ButtonIconIcon as lJ,EyeIcon as iJ,PhoneIcon as dJ,PlacementIcon as fJ,TypeIcon as cJ}from"efficient-easel/icons";var pJ="Chat with us",uJ="We usually reply within a few minutes",mJ="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function ru({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=tJ(o);oJ(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return Se(mi,{label:e,icon:Se(cJ,{}),changed:o!=="",action:Se(xi,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Se("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:i,"aria-label":e}):Se("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 xi({label:e,changed:o,onReset:t}){return Se(aJ,{words:sw()?.panel,label:e,changed:o,onReset:t})}function xJ({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=jN();return Se(mi,{label:e,labelId:s,icon:o,changed:t!==r,action:ui("span",{className:"inline-flex items-center gap-2",children:[Se(GN,{checked:t,onChange:a,ariaLabelledBy:s}),Se(xi,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var hJ=Zp.map(e=>({value:e,icon:Gv(e)}));function IJ(){let{theme:e}=Co(),o=Kt(e).themes[0];return WS(o)??o?.accent??""}function KN(){let{chat:e,setChat:o}=ou(),t=jN(),r=IJ(),a=e.launcherIcon?Qp(e.launcherIcon):is;return ui(eJ,{children:[Se(mi,{label:f("Show the chat bubble"),labelId:t,icon:Se(iJ,{}),changed:!e.enabled,action:ui("span",{className:"inline-flex items-center gap-2",children:[Se(GN,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Se(xi,{label:f("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?f("The floating chat bubble shows in the corner of every page."):f("The chat bubble is hidden across the whole site.")}),ui(Gm,{title:f("Look"),children:[Se(qv,{label:f("Button color"),icon:Se(sJ,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:f("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),Se(mi,{label:f("Icon"),icon:Se(lJ,{}),value:Se(Dv,{value:a}),changed:a!==is,action:Se(xi,{label:f("Icon"),changed:a!==is,onReset:()=>o({launcherIcon:""})}),children:Se(rJ,{label:f("Icon"),value:a,options:hJ,onChange:n=>o({launcherIcon:n===is?"":n})})}),Se(mi,{label:f("Position"),icon:Se(fJ,{}),changed:e.launcherPosition!==Fa,action:Se(xi,{label:f("Position"),changed:e.launcherPosition!==Fa,onReset:()=>o({launcherPosition:Fa})}),children:Se(nJ,{options:[{label:f("Right"),id:"right"},{label:f("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:f("Position"),onChange:n=>o({launcherPosition:n})})}),Se(ru,{label:f("Label"),value:e.launcherLabel,placeholder:f("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:f("Shows when a visitor points at the button")}),Se(xJ,{label:f("Show on phones"),icon:Se(dJ,{}),checked:e.showOnPhones,fallback:eu.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),ui(Gm,{title:f("Wording"),children:[Se(ru,{label:f("Title"),value:e.title,placeholder:pJ,onCommit:n=>o({title:n})}),Se(ru,{label:f("Subtitle"),value:e.subtitle,placeholder:uJ,onCommit:n=>o({subtitle:n})}),Se(ru,{label:f("Greeting message"),value:e.greeting,placeholder:mJ,onCommit:n=>o({greeting:n}),multiline:!0}),Se("p",{className:"es-field-hint",children:f("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as Aa,Fragment as xy,jsxs as JN}from"react/jsx-runtime";import{useEffect as qJ,useId as YN,useState as XN}from"react";import{SettingsField as VJ}from"efficient-easel/panel";import{jsx as MJ}from"react/jsx-runtime";import{forwardRef as gJ,createElement as Vg}from"react";var qN={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=gJ(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:c,...x},m)=>Vg("svg",{ref:m,...qN[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&&Vg("title",{key:"svg-title"},i),...r.map(([h,g])=>Vg(h,g)),...Array.isArray(c)?c:[c]]));return a.displayName=`${t}`,a};var yJ=[["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"}]],Yg=se("outline","brand-facebook","BrandFacebook",yJ);var bJ=[["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"}]],Xg=se("outline","brand-instagram","BrandInstagram",bJ);var SJ=[["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"}]],Jg=se("outline","brand-line","BrandLine",SJ);var wJ=[["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"}]],Zg=se("outline","brand-linkedin","BrandLinkedin",wJ);var CJ=[["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"}]],Qg=se("outline","brand-pinterest","BrandPinterest",CJ);var kJ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],ey=se("outline","brand-telegram","BrandTelegram",kJ);var vJ=[["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"}]],oy=se("outline","brand-tiktok","BrandTiktok",vJ);var PJ=[["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"}]],ty=se("outline","brand-wechat","BrandWechat",PJ);var TJ=[["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"}]],ry=se("outline","brand-whatsapp","BrandWhatsapp",TJ);var OJ=[["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"}]],ay=se("outline","brand-x","BrandX",OJ);var EJ=[["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"}]],ny=se("outline","brand-youtube","BrandYoutube",EJ);var _J=[["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"}]],sy=se("filled","brand-facebook-filled","BrandFacebookFilled",_J);var FJ=[["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"}]],ly=se("filled","brand-instagram-filled","BrandInstagramFilled",FJ);var BJ=[["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"}]],iy=se("filled","brand-linkedin-filled","BrandLinkedinFilled",BJ);var AJ=[["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"}]],dy=se("filled","brand-pinterest-filled","BrandPinterestFilled",AJ);var LJ=[["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"}]],fy=se("filled","brand-tiktok-filled","BrandTiktokFilled",LJ);var RJ=[["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"}]],cy=se("filled","brand-whatsapp-filled","BrandWhatsappFilled",RJ);var DJ=[["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"}]],py=se("filled","brand-x-filled","BrandXFilled",DJ);var NJ=[["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"}]],uy=se("filled","brand-youtube-filled","BrandYoutubeFilled",NJ);var _Ae="outline",au={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},HJ={},my={fillRule:"evenodd"},WJ=[["path",{...au,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...my,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],$J=[["path",{...au,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",{...HJ,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("")}]],zJ=[["path",{...au,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",{...au,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",{...my,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",{...my,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("")}]],UJ=se("filled","brand-telegram-filled","BrandTelegramFilled",WJ),jJ=se("filled","brand-line-filled","BrandLineFilled",$J),GJ=se("filled","brand-wechat-filled","BrandWechatFilled",zJ),KJ={instagram:{outline:Xg,solid:ly},facebook:{outline:Yg,solid:sy},tiktok:{outline:oy,solid:fy},youtube:{outline:ny,solid:uy},x:{outline:ay,solid:py},linkedin:{outline:Zg,solid:iy},pinterest:{outline:Qg,solid:dy},whatsapp:{outline:ry,solid:cy},telegram:{outline:ey,solid:UJ},line:{outline:Jg,solid:jJ},wechat:{outline:ty,solid:GJ}};function VN({platform:e,iconStyle:o,size:t}){let r=KJ[e][o];return MJ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var YJ={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 XJ({platform:e}){let{rows:o,saveLink:t}=pi(),{value:r,error:a}=o[e],[n,s]=XN(r),[l,i]=XN(!1),d=YN(),c=YN();qJ(()=>s(r),[r]);let x=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},m=CP[e];return JN(xy,{children:[Aa(VJ,{label:f(m),htmlFor:d,icon:Aa(VN,{platform:e,iconStyle:"outline",size:18}),children:Aa("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:YJ[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?c:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&Aa("p",{id:c,className:"sf-note sf-note--error",role:"alert",children:a})]})}function ZN({unavailable:e}){let{canSave:o}=pi();return!o&&e?Aa(xy,{children:e}):JN(xy,{children:[Aa("p",{className:"es-field-hint",children:f("Paste a link to each profile. A platform left empty shows nothing on the site.")}),pf.map(t=>Aa(XJ,{platform:t},t))]})}import{jsx as Da,Fragment as wZ,jsxs as CZ}from"react/jsx-runtime";import{useId as kZ,useMemo as vZ}from"react";import{useEasel as PZ}from"efficient-easel/easel";import{SettingsField as TZ,SettingsSwitch as OZ}from"efficient-easel/panel";import{EyeIcon as EZ}from"efficient-easel/icons";import{fieldShownInView as _Z}from"efficient-easel/fields";import{usePreviewDevice as FZ}from"efficient-easel/draw/client";import{ROOT_ZONE as BZ}from"efficient-easel/draw";import{jsx as Ra,Fragment as QJ}from"react/jsx-runtime";import{createContext as eZ,useContext as oZ,useLayoutEffect as tZ,useMemo as eM,useRef as rZ,useState as oM}from"react";import{useEasel as tM,useSelectedFields as aZ}from"efficient-easel/easel";import{fieldShownInView as nZ,Inspector as sZ,LEAD_BAND_KEY as lZ,planFields as rM}from"efficient-easel/fields";function QN({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 JJ}from"react/jsx-runtime";import{EmptyState as ZJ}from"efficient-shell/ui";function La(){return JJ(ZJ,{variant:"none",icon:!1,message:f("These settings apply to every view.")})}import{usePreviewDevice as iZ}from"efficient-easel/draw/client";import{deviceField as dZ}from"efficient-easel/screen/lib/document/device-fields";var fZ="Text",hy=new Map,nu=new Set,cZ=Object.fromEntries(ii.map(e=>{let o=aP[e];return[e,Ra(o,{},e)]})),aM=eZ(null),pZ={_partBody:dZ("each",{type:"custom",render:()=>Ra(uZ,{})})};function uZ(){return Ra(QJ,{children:oZ(aM)})}function kt({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:i,values:d,readOnly:c,onChange:x}=aZ(),m=eM(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(J,me)=>a?.keys.has(J)?a.onChange(J,me):x(J,me),g=iZ(),{appState:k,config:O}=tM(J=>J),T=Sv(g,O,k.data.content??[],k.ui.itemSelector),L=n===void 0?FO(i,t):pZ,P=eM(()=>{let J=r?.length?Object.fromEntries(Object.entries(L).filter(([me])=>!r.includes(me))):L;return a?{...J,...a.fields}:J},[L,r,a?.fields]),I=Nm(P,m,T),[C,E]=oM(()=>new Set(nu)),B=nZ({},g),R={key:lZ,title:fZ},b=tM(J=>J.selectedItem)!==null,F=a?.part??t??"",y=`${l}:${F}:${String(g)}`,[w,S]=oM(()=>({tab:hy.get(y)})),v=`${l}:${F}`,N=rZ(null),$={...T,node:m},V=rM(I,{values:m,context:$}).buckets,K=QN({allTabs:b,remembered:hy.get(y),inherited:N.current?.panel===v?N.current.tab:w.tab,buckets:V,hasText:B&&o>0}),ae=!B&&!V.includes(K)&&(rM(Nm(P,m,{...T,device:"desktop"}),{values:m,context:{...$,device:"desktop"}}).buckets.includes(K)||K==="Design"&&o>0);tZ(()=>{N.current={panel:v,tab:K}});let ne=K==="Design";return Ra(aM.Provider,{value:n??null,children:Ra(cP.Provider,{value:a?m:null,children:Ra(sZ,{fields:I,values:m,onChange:h,readOnly:c,allTabs:b,showWhenContext:$,context:{itemWord:s},tab:K,onTab:J=>{hy.set(y,J),S({tab:J})},tabIcons:cZ,idPrefix:l,ariaLabel:f("Section settings"),lead:ne?e:null,leadFold:R,closedFolds:C,onFold:(J,me)=>{me?nu.delete(J):nu.add(J),E(new Set(nu))},children:ae&&Ra(La,{})})})})}import{useMemo as mZ}from"react";import{useEasel as xZ}from"efficient-easel/easel";import{useSectionOps as hZ}from"efficient-easel/screen/lib/document/use-section-ops";var nM=new Map,IZ=e=>{let o=nM.get(e);return o||nM.set(e,o=Wp(Mp(e),`part:${e}`)),o},gZ=new Set(_x);function ds(e,o,t){let{getItemById:r,getSelectorForId:a}=xZ(c=>c),n=hZ(),s=r(e)?.props??{},l=sa(s,o),i=JSON.stringify(l),d=mZ(()=>Object.fromEntries(_x.map(c=>[c,l[c]])),[i]);return{part:o,fields:IZ(t),values:d,keys:gZ,onChange:(c,x)=>{let m=a(e),h=r(e);if(!m||!h)return;let g=sT(h.props??{},o,c,x);n.replaceComponent(m.zone,m.index,{...h,props:g})}}}import{Fragment as yZ,createElement as bZ}from"react";import{deviceField as Iy}from"efficient-easel/screen/lib/document/device-fields";var yo=()=>({type:"custom",render:()=>bZ(yZ)});var gy={words:yo(),sourceNote:yo(),style:yo(),font:yo(),italic:yo(),fontSize:Iy("each",yo()),lineHeight:yo(),letterSpacing:yo(),paragraphSpacing:yo(),padding:yo(),align:Iy("each",yo()),letterCase:yo(),fixedSizeHint:Iy("each",yo()),regionNote:yo(),regionStyle:yo()},SZ=["fontSize","align"];function sM(e){return SZ.includes(e)}var lM={showTicker:yo(),items:yo()};function iM({heroId:e}){let{appState:o,dispatch:t}=PZ(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=vZ(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:IE.map(g=>({text:g}))},[n]),i=kZ(),d=FZ(),c=h=>_Z(lM[h],d),x=ds(e,gE,"block");if(!n)return Da("p",{className:"sf-note",children:f("This ticker\u2019s hero is no longer on the page.")});let m=h=>t({type:"replace",destinationZone:BZ,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return Da(kt,{motion:x,body:CZ(wZ,{children:[!c("showTicker")&&!c("items")&&Da(La,{}),c("showTicker")&&Da(TZ,{label:f("Show ticker"),labelId:i,icon:Da(EZ,{}),action:Da(OZ,{checked:s,onChange:h=>m({showTicker:h}),ariaLabelledBy:i})}),c("items")&&Da(hP,{label:Vm.label,icon:Vm.icon,items:l,placeholder:"item",onChange:h=>m({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as gi,jsxs as ct}from"react/jsx-runtime";import{useContext as KZ,useEffect as yy,useRef as qZ,useState as yM}from"react";import{FieldSelect as VZ,InspectorField as YZ,fieldShownInView as XZ}from"efficient-easel/fields";import{InertHint as OM,SettingsField as JZ}from"efficient-easel/panel";import{InspectorUpLevel as cu}from"efficient-easel/chrome";import{StylesIcon as ZZ,TypeIcon as QZ}from"efficient-easel/icons";import{useEasel as eQ}from"efficient-easel/easel";import{TextPartPanel as bM}from"efficient-easel/copy";import{Button as oQ,IconButton as tQ,Tooltip as rQ}from"efficient-shell/ui";import{jsx as cM,jsxs as AZ}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as LZ}from"efficient-easel/strings";import{COPY_CELLS as fs,COPY_CELL_LENGTHS as dM,CopyBox as RZ,lengthCellUnits as DZ}from"efficient-easel/copy";import{PaddingYIcon as NZ}from"efficient-easel/icons";import{onDesktopWords as MZ}from"efficient-easel/screen/lib/document/box-fields";var fM=LZ.copy.cells,HZ={kind:"spacing"},WZ=["left","center","right","justify"];function su(e,o,t,r="desktop"){let a=bk(e),n=wk(r),s=e[n]??e.size??o.sizePx,l=Ck(e,r),i=(c,x,m,h,g)=>{let k=Ks[m];return DZ({preset:c,row:x,table:of,unit:e[k],value:e[m],tier:r,styleValue:h,label:f(g),onPick:(O,T)=>t({[k]:O??null,[m]:T??null}),onChange:(O,T)=>t({...T?{[k]:T.unit??null}:{},[m]:O??null})})},d={key:"padding",name:f("Padding"),icon:cM(NZ,{}),unit:"px",step:hk,shiftStep:10,min:mk,max:xk};return[{...fs.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:c=>t({[n]:c??null}),...i(fs.fontSize,dM.fontSize,n,Math.round(o.sizePx),fM.fontSize),...n==="size"?{}:{reset:{detail:l?MZ(c=>f(c),`${l.px}px`,l.view):void 0}}},{...fs.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:c=>t(c===void 0?{lineHeight:null,line:null}:{lineHeight:c})},{...fs.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:c=>t(c===void 0?{letterSpacing:null,letter:null}:{letterSpacing:c})},{...fs.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:c=>t({paragraphSpacing:c??null}),...i(fs.paragraphSpacing,dM.paragraphSpacing,"paragraphSpacing",0,fM.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:c=>t({padding:c??null}),...i(d,HZ,"padding",o.paddingPx,"Padding")}]}function pM({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:i,placeholder:d,ariaLabel:c,head:x,typedOnCanvas:m=!1}){let h=su(n,s,l),g=cx(r,t);return AZ("div",{className:"sf-part-textbox",children:[x,cM(RZ,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:c,rules:Gi,tools:g,barShows:m?"focus":"always",colors:r?i:[],colorNameOf:Dd,align:a?{value:n.align??s.align,allow:WZ,onChange:k=>l({align:k})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:k=>l({case:k||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as SM}from"efficient-easel/draw/client";import{jsx as lu,Fragment as $Z,jsxs as zZ}from"react/jsx-runtime";import{Button as uM,Dialog as UZ}from"efficient-shell/ui";function mM({styleName:e,onCancel:o,onConfirm:t}){return lu(UZ,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:f("Update {style}?",{style:e}),footer:zZ($Z,{children:[lu(uM,{variant:"secondary",onClick:o,children:f("Cancel")}),lu(uM,{variant:"primary",onClick:t,children:f("Update style")})]}),children:lu("p",{children:f("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 aQ}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as nQ}from"efficient-easel/draw/client";import{shownTier as du}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as sQ,viewKeyAt as lQ}from"efficient-easel/draw";import{useSectionOps as iQ}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as dQ}from"efficient-easel/screen/lib/host";function jZ(e){let o=new Set([...Object.keys(W(WC,e)??{}),...W($C,e)??[]]);for(let[t,r]of Object.entries(W(UC,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var GZ={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},xM={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},hM="Open",IM={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 po(o)}function hi(e){return W(GZ,e)??null}function gM(e,o){let t=hi(e);return t&&jZ(e).includes(o)?t:null}function iu(e){let o=e?.menu?.id;return po(o)}function by(e){return e?f(e):null}function wM(e){return e.kind==="role"?Du[e.role]:e.kind==="custom"?"Custom":null}function fQ(e){let o=Sb(e.role);return o?{kind:"role",role:o}:null}function cQ(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 fu(e,o,t,r){return fQ(br(e,o))??cQ(t,r)}function pQ(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function CM(e){return[{value:Ii,label:f("No style"),description:f("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?ji(o.values.font)?.label:void 0}))]}var Ii="";function uQ({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:Ii,a=[{label:f("No style"),value:Ii},...bb.map(n=>({label:f(Du[n]),value:n}))];return Z(VZ,{ariaLabel:f("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===Ii?null:n),renderOption:n=>n.value===Ii?ct(gi,{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:f("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(${ji(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:by(wM(e))}),valueText:n=>by(wM(e))??n?.label??""})}var EM=["regionNote","regionStyle"],mQ=Object.keys(gy).filter(e=>!EM.includes(e));function _M(e,o){return!e.some(o)}function xQ({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=ct(gi,{children:[t,r,a]});return ct("div",{className:"sf-part-panel",children:[Z(cu,{inline:!0,name:f(e),onSelect:o}),n?n(s):s]})}function pu({source:e,slug:o,menuId:t}){let r=dQ(),a=IM[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:ct(OM,{children:[f(xM[e]),n?ct(gi,{children:[" ",Z(oQ,{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:f(hM)})]}):null]})})}var kM=4,hQ=120;function vM(e){return f("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:f(e.label).toLowerCase()})}function PM({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:c}){let x=e.follows;return ct("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:f(e.label)})}),i("regionNote")&&!c&&Z("p",{children:o?f("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:f(x),px:Math.round(o)}):f("Its size follows Styles \u25B8 {follows}.",{follows:f(x)})}),d?ct(gi,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:vM(e)})]}):a?i("regionStyle")?Z(gi,{children:Z(JZ,{label:f("Style"),icon:Z(ZZ,{}),hint:vM(e),children:Z(uQ,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&Z("p",{className:"es-field-hint",children:f("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&i("sourceNote")?Z(pu,{source:n,slug:s}):null,_M([...EM,"sourceNote",...d?["fontSize"]:[]],m=>i(m)&&(m!=="sourceNote"||!!n))&&Z(La,{}),Z(cu,{inline:!0,name:f("Page"),onSelect:l})]})}function IQ({onBack:e}){return ct("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:f("This part is no longer here.")})}),Z("p",{children:f("The section it belonged to has been changed or removed.")}),Z(cu,{inline:!0,name:f("Page"),onSelect:e})]})}function gQ({onBack:e,partId:o,why:t}){return ct("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:f("This part's settings did not open.")})}),Z("p",{children:f("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:ct("code",{children:[o," \u2014 ",t]})}),Z(cu,{inline:!0,name:f("Page"),onSelect:e})]})}function FM({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=eQ(G=>G),l=iQ(),i=t0(),{partStyle:d}=Xn(),{fonts:c,textStyles:x}=Co(),m=KZ(aQ),h=!m?.capabilities?.hasSiteTheme,{persist:g}=Xv({themeFromDocument:h,tokenRef:m?.tokenRef,siteId:m?.siteId??null}),k=BP({themeFromDocument:h,persist:g}),[O,T]=yM(!1),L=nQ(),P=G=>(du(L)!=="tablet"||sM(G))&&XZ(gy[G],L),I=qZ(null),C=a(e),E=n(e),B=C?s.components[C.type]:void 0,{key:R,row:b}=At(o),F=B?.fields?.[R],y=b?Cn(F,b):F,w=Lt(e,o),S=C?.props??{},v=Hd(y),N=sf(y),$=rk(y),V=C?hi(C.type):null,K=C?gM(C.type,R):null,ae=b?$d(S[R],b):S[R],ne=!!b&&!(Array.isArray(S[R])&&b.index<S[R].length);yy(()=>{o0(document)||I.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[w]);let[J,me]=yM(0);yy(()=>me(0),[w]);let ue=!!C&&!ne&&(!E||!y);yy(()=>{if(!ue||J>=kM)return;let G=setTimeout(()=>me(Ue=>Ue+1),hQ);return()=>clearTimeout(G)},[ue,J]);let Ie=ue&&J<kM,ge=ds(e,Zt(C?.type,o),"textPart");if(!C||ne)return Z(IQ,{onBack:t});let Po=Jn(C.type),bo=Po?Os(Po,o):null;if(Po&&bo){let G=d?.partId===w?d:null,Ue=Po[bo],ut=Ue.writable===!0&&!!E,ir=Ur=>{E&&l.replaceComponent(E.zone,E.index,{...C,props:Jr(S,o,"role",Ur)})};if(ut&&hS(Ue)){let Ur=br(S,o),rb=jr=>{if(!E)return;let Lu=S;for(let[y5,b5]of Object.entries(jr))Lu=Jr(Lu,o,y5,b5??null);l.replaceComponent(E.zone,E.index,{...C,props:Lu})},h5=Xm(k.saved,k.old),I5=_m(Ur)??"",g5=su(Ur,G?.base??TM,rb,du(L)).filter(jr=>jr.key==="fontSize"&&P(jr.key));return Z(kt,{motion:ge,body:Z(PM,{region:Ue,sizePx:G?.base.sizePx??null,face:fu(S,o,G,c),base:G?.base??null,source:V,slug:cs(S),onBack:t,shows:P,ownLook:Fk(Ur),sizedStyle:Z(bM,{style:P("style")?{value:I5,options:CM(h5),onChange:jr=>rb(jr?{textStyle:jr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:g5})})})}return Z(kt,{motion:ge,body:Z(PM,{region:Ue,sizePx:G?.base.sizePx??null,face:fu(S,o,G,c),base:G?.base??null,onFollowStyle:ut?ir:void 0,source:V,slug:cs(S),onBack:t,shows:P})})}if(!E||!y)return Ie?Z("div",{className:"sf-note","aria-busy":"true"}):Z(gQ,{onBack:t,partId:w,why:E?"no field":"no selector"});let _o=G=>{l.replaceComponent(E.zone,E.index,{...C,props:G})},Xe=G=>{if(oa(G).hidden!==oa(ae).hidden||!v){let Ue=b?YC(S,R,b,G):{...S,[R]:G};Ue&&_o(Ue);return}hf({node:C,propKey:o,kind:v,zone:E.zone,index:E.index},oa(G).text,l.replaceComponent)},fo=ae,Je=d?.partId===w?d:null,le=Je?.styleOwner,Me=le?a(le.owner):null,H=le&&Me?n(le.owner):null,xe=!!(le&&Me&&H),he=xe?Me.props??{}:S,Ze=xe?G=>l.replaceComponent(H.zone,H.index,{...Me,props:G}):_o,Ae=xe?le.kind:Zt(C?.type,o),co=br(he,Ae),Ge=[{partKey:Ae,face:fu(he,Ae,Je,c),sizeGroup:Je?.sizeGroup??null,base:Je?.base??TM,style:co}],ze=pQ(Ge,G=>G.sizeGroup),$t=Nd(Je?.inks),Fo=(G,Ue)=>{let ut=he;for(let ir of Ge)ut=Jr(ut,ir.partKey,G,Ue);Ze(ut)},Ri=G=>G?Fo("textStyle",G):Wa({textStyle:null,role:null}),Wa=G=>{let Ue=he;for(let ut of Ge)for(let[ir,Ur]of Object.entries(G))Ue=Jr(Ue,ut.partKey,ir,Ur??null);Ze(Ue)},Tt=v==="text"||v==="textarea",{text:Di,hidden:sr}=oa(ae),$r=y?.[sQ]?.label??o,$a=sr?f("Show {label} on the slide",{label:f($r)}):f("Hide {label} on the slide",{label:f($r)}),Is=ct("div",{className:"sf-field-head",children:[Z(QZ,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:f($r)}),Tt&&Z(rQ,{content:$a,children:Z(tQ,{"aria-pressed":sr,"aria-label":$a,onClick:()=>Xe({text:Di,hidden:!sr}),children:sr?Z(SM,{name:"eye-off",size:14}):Z(SM,{name:"eye",size:14})})})]}),lr=!N&&$,za=!!v&&(rP(y)||N||sr||!$),gs=fu(he,Ae,Je,c),Ni=gs.kind==="role"?gs.role:null,Ua=_m(co)??OP(Ni),ys=Xm(k.saved,k.old),Mi=Object.entries(co).filter(([G,Ue])=>G!=="role"&&G!=="textStyle"&&Ue!==void 0).length,bs=()=>{let G=he;for(let Ue of Ge){let{role:ut,textStyle:ir}=Ue.style;G=yk(G,Ue.partKey),ut&&(G=Jr(G,Ue.partKey,"role",ut)),ir&&(G=Jr(G,Ue.partKey,"textStyle",ir))}Ze(G)},zr=Ua,u5=_P(Ge[0].style),m5=zr?ys.find(G=>G.id===zr)?.name??zr:"",x5=()=>{T(!1),zr&&(k.write(FP({saved:k.saved,old:k.old,styleId:zr,values:EP(Ge[0].style)}),!0),bs())};return ct(xQ,{sectionName:B?.label??C.type,onBack:t,tabs:G=>Z(kt,{motion:ge,body:G}),textEditor:P("words")?Z("div",{ref:I,className:"sf-part-text",children:za?Z(pM,{text:Di,onTextChange:G=>Xe(Tt?{text:G,hidden:sr}:G),multiline:Wd(v),markup:v!=="plainText",styled:!1,style:Ge[0].style,base:Ge[0].base,setValue:Wa,colors:$t,placeholder:by(GC(y))??void 0,ariaLabel:f($r),head:Is,typedOnCanvas:i===w}):v?Tt?Is:null:Z(YZ,{field:y,name:o,value:fo,onChange:Xe,id:`sf-part-${e}-${o}`})}):void 0,children:[K&&P("sourceNote")&&Z(pu,{source:K,slug:cs(S),menuId:iu(S)}),lr&&Z(bM,{style:P("style")?{value:Ua??"",options:CM(ys),onChange:G=>Ri(G||null),changed:Mi>0,onEditStyles:r,onUpdateStyle:zr&&u5?()=>T(!0):void 0}:void 0,font:P("font")?{value:co.font??"",styleValue:ji(Ge[0].base.fontKey)?.label,options:yb.map(G=>({label:G.label,value:G.key})),onChange:G=>Fo("font",G||null)}:void 0,italic:P("italic")?{value:co.italic,styleValue:bQ(x,Ua),onChange:G=>Fo("italic",G??null)}:void 0,cells:su(Ge[0].style,Ge[0].base,Wa,du(L)).filter(G=>P(G.key)),align:P("align")?yQ(co,Ge[0].base.align,du(L),Fo):void 0,letterCase:P("letterCase")?{value:co.case??"",styleValue:Ge[0].base.case,onChange:G=>Fo("case",G||null)}:void 0}),O&&zr&&Z(mM,{styleName:m5,onCancel:()=>T(!1),onConfirm:x5}),lr&&ze===null&&P("fixedSizeHint")&&Z(OM,{children:f("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),_M(mQ,G=>P(G)&&(G==="words"||(G==="sourceNote"?!!K:G==="fixedSizeHint"?lr&&ze===null:lr)))&&Z(La,{})]})}function yQ(e,o,t,r){let a=lQ("align",t),n=Sk(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function bQ(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var TM={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as vt,jsxs as Py,Fragment as TQ}from"react/jsx-runtime";import{useCallback as OQ,useRef as EQ,useState as Si}from"react";import{InspectorIconButton as _Q}from"efficient-easel/chrome";import{useEasel as FQ}from"efficient-easel/easel";import{PopupMenu as BQ,PopupMenuItem as AQ,PopupMenuLabel as yu}from"efficient-shell/ui";import{CopyToPageIcon as LQ}from"efficient-easel/icons";import{useEaselSession as RQ}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as DQ}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as NQ}from"efficient-easel/draw";import{newId as CQ}from"efficient-easel/data";import{isBackendError as ps}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as $M}from"efficient-easel/screen/lib/session";var uu=Nv(),Sy=uu.set;function mu(e,o){Sy(e,o)}function xu(e,o){let t=uu.get(e);Sy(e,o??(t==="live"?"changed":t))}function hu(e,o){Sy(e,o??"live")}function BM(e){return uu.get(e)}function AM(e){return uu.use(e)}function LM(e,o){return e==="live"&&o?"changed":e}function wy({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?f("Changes not live yet"):e==="never"?f("Never published"):r?f("Header and footer not live yet"):e==="live"?f("Everything is live"):null;return{label:f("Publish"),tooltip:e==="never"?f("Put this page on your site"):f("Put your changes on your site"),status:s,quiet:n?{label:f("Published"),reason:f("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function RM(e){return e.map(o=>o.change==="take_down"?f("{name} (taken down)",{name:o.name}):o.name)}var DM="SharedSection",SQ=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,yi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},bi=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function NM(e){if(e?.type!==DM)return null;let o=e.props?.section;return typeof o=="string"&&SQ.test(o)?o.toLowerCase():null}function MM(e){let o=[];for(let t of yi(e)){let r=NM(t),a=bi(t);r&&a&&o.push({refId:a,section:r})}return o}function Iu(e){let o=yi(e)[0];return o&&typeof o=="object"&&bi(o)?o:null}function wQ(e,o){return{type:DM,props:{id:e,section:o}}}function HM(e,o){let t=new Map,r=new Set,a=!1,n=yi(e).map(s=>{let l=NM(s),i=bi(s);if(!l||!i||r.has(l))return s;let d=Iu(o.get(l)),c=bi(d??void 0);return!d||!c||t.has(c)?s:(r.add(l),t.set(c,{section:l,refId:i,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function WM(e,o,t){let r=new Map,a=!1,n=yi(e).map(s=>{let l=bi(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 c=yi(d).slice(1),x=Iu(d);return r.set(i.section,x===s?d:{...d,content:[s,...c]}),a=!0,i.reference??wQ(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function vy(e){return!!(e?.publish&&e.liveState)}function kQ(e,o){if(!vy(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 vQ(e,o){return async(t,r)=>{try{await Yv()}catch(a){throw new Error(f("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?af({state:"live",changes:[]}):ea(0),{version:r??null}}}function ky(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(mu(n.id,n.live),Wv(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(xu(a,i.live),$v(a,i.videoFrames),ea(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:vy(t)?vQ(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(hu(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 PQ(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,c=new Map,x=new Map,m={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,g=()=>{if(!n)return!1;let b=BM(n.id);return b==="changed"||b==="never"||b===void 0&&l},k=b=>{m={...m,...b,docId:n?.id??null,unpublished:g(),sections:[...c.values()]};for(let F of h)F()},O=(b,F,y)=>{F?c.set(b,{section:b,title:i.get(b)?.title??"",problem:F,holder:y}):c.delete(b)},T=b=>b&&typeof b=="object"&&!Array.isArray(b)?b:{},L=b=>s.has(b),P=()=>new Map([...i].map(([b,F])=>[b,F.layout])),I=()=>CQ("SharedSection"),C=(b,F,y,w)=>{let S=T(F);i.set(b,{layout:S,version:y,savedJson:JSON.stringify(S),title:w})},E={state:()=>m,subscribe:b=>(h.add(b),()=>{h.delete(b)})},B={sectionOf:b=>d.get(b)?.section??null,heldElsewhere:b=>{let F=d.get(b)?.section;return!!(F&&c.get(F)?.problem==="lock")},adopt:(b,F)=>{C(F.id,F.layout,F.layout_updated_at,F.title),d.set(b,{section:F.id,refId:I()}),x.set(F.id,F.used_on),k({})},place:b=>{if([...d.values()].some(w=>w.section===b.id))return null;let F=Iu(T(b.layout)),y=typeof F?.props?.id=="string"?F.props.id:null;return!F||!y||!F.type?null:(C(b.id,b.layout,b.layout_updated_at,b.title),d.set(y,{section:b.id,refId:I()}),x.set(b.id,b.used_on),F)},usedOn:b=>x.get(b)??null,learn:b=>{for(let F of b){x.set(F.id,F.used_on);let y=i.get(F.id);y&&(y.title=F.title);let w=c.get(F.id);w&&c.set(F.id,{...w,title:F.title})}k({})}},R=async(b,F)=>{for(let[y,w]of b){let S=i.get(y),v=JSON.stringify(w);if(!(!S||v===S.savedJson||c.get(y)?.problem==="lock"))try{let N=await e.save(y,{layout:w},{version:S.version,clientId:F??""});xu(y,N.live),S.layout=w,S.version=N.version,S.savedJson=v,O(y,null)}catch(N){ps(N,"changed-elsewhere")?O(y,"conflict"):ps(N,"lock-taken")?O(y,"lock",N.holder??void 0):O(y,"save")}}b.size&&ea(),k({})};return{resolve:async b=>{if(bg(b===Sr?null:E),$m(b===Sr?null:B),i=new Map,d=new Map,c=new Map,x=new Map,b===Sr)return t.resolve(b);let F=!1,[y,w]=await Promise.all([t.resolve(b),e.load({slug:Sr,...o}).catch(()=>(F=!0,null))]);if(w&&!tP(y?.layout)){mu(w.id,w.live);let K=T(w.layout);n={id:w.id,layout:K,version:w.version,savedJson:""}}else n=null;if(l=!1,!y)return k({conflict:null,saveFailed:!1,loadFailed:F}),y;let S=T(y.layout),v=MM(S),N=await Promise.all(v.map(K=>e.load({id:K.section,...o}).catch(()=>null)));v.forEach((K,ae)=>{let ne=N[ae];ne?(mu(ne.id,ne.live),C(K.section,ne.layout,ne.version,"")):(i.delete(K.section),c.set(K.section,{section:K.section,title:"",problem:"load"}))});let $=HM(S,P());if(d=$.held,!n)return d.size&&s.add(y.id),k({conflict:null,saveFailed:!1,loadFailed:F}),d.size?{...y,layout:$.working}:y;let V=Mv($.working,n.layout);return n.savedJson=JSON.stringify(Wm(V,n.layout).chrome),s.add(y.id),k({conflict:null,saveFailed:!1,loadFailed:!1}),{...y,layout:V}},saveLayout:async(b,F,y,w)=>{if(!L(b))return t.saveLayout(b,F,y,w);let S=n,v=S?Wm(F,S.layout):{page:F,chrome:null},N=WM(v.page,d,P()),$=await t.saveLayout(b,N.page,y,w);if(await R(N.docs,w),!S)return $;let V=JSON.stringify(v.chrome);if(!v.chrome||V===S.savedJson||m.lockHolder)return $;try{let K=await e.save(S.id,{layout:v.chrome},{version:S.version,clientId:w??""});xu(S.id,K.live),ea(),S.layout=v.chrome,S.version=K.version,S.savedJson=V,l=!0,k({conflict:null,saveFailed:!1})}catch(K){ps(K,"changed-elsewhere")?k({conflict:K.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):ps(K,"lock-taken")?k({lockHolder:K.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):k({saveFailed:!0})}return $},publish:t.publish?async(b,F)=>{let y=await t.publish(b,F),w=n;if(w&&L(b)&&!a&&e.publish&&g()&&!m.lockHolder){let S=await e.publish(w.id,w.version?{version:w.version}:void 0);hu(w.id,S.live),S.version!==null&&(w.version=S.version),l=!1,k({})}if(L(b)&&!a&&e.publish)for(let[S,v]of i){if(c.get(S)?.problem==="lock")continue;let N=await e.publish(S,v.version?{version:v.version}:void 0);hu(S,N.live),N.version!==null&&(v.version=N.version)}return y}:void 0,lock:r?{claim:async(b,F,y)=>{let w=await r.claim(b,F,y);if(!L(b))return w;let S=n;if(S)try{await r.claim(S.id,F,!1),m.lockHolder&&k({lockHolder:null})}catch(v){ps(v,"lock-taken")&&k({lockHolder:v.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let v of i.keys())try{await r.claim(v,F,!1),c.get(v)?.problem==="lock"&&O(v,null)}catch(N){ps(N,"lock-taken")&&O(v,"lock",N.holder??void 0)}return i.size&&k({}),w},release:async(b,F)=>{if(await r.release(b,F),!L(b))return;let y=n;y&&!m.lockHolder&&await r.release(y.id,F).catch(()=>{});for(let w of i.keys())c.get(w)?.problem!=="lock"&&await r.release(w,F).catch(()=>{})}}:void 0,pinnedChrome:E}}function gu(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:zP(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 dDe(e,o,t){return e.update(o,UP(t))}function fDe(e,o=To(),t=DI(),r={}){let a=$M(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,c=vy(o.site)?o.site:void 0,x=gu(o.pages),m=ky(x,e,c),h=d?PQ(x,n,m,o.lock,!!c):null;return{capabilities:{canPublish:!!c||!!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},...m,...zM(m.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:c?()=>c.liveState(n):void 0,siteVersions:kQ(c,n),updateSite:s&&l?g=>l(g,n):void 0,previewHref:o.preview?g=>o.preview.href(g):void 0}}function cDe(e,o=To(),t=DI()){let r=$M(o),a=o.templates,n=a?gu(a.pages(e)):{list:()=>Promise.reject(new Error(Cy)),load:()=>Promise.reject(new Error(Cy)),save:()=>Promise.reject(new Error(Cy))};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},...ky(n,void 0),...zM(ky(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function zM(e){return{resolve:o=>(bg(null),$m(null),e(o))}}var Cy="This editor's backend has no website templates.";function MQ(e,o,t){let r=DQ(e,void 0,o);return t?.(r)??r}function UM({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Si(!1),[i,d]=Si(null),c=RQ(),x=FQ(B=>B.config.components),[m,h]=Si(!1),[g,k]=Si(null),O=EQ(null),[T,L]=Si(null),P=OQ(async()=>{if(c.usesBridgedToken&&!r.current){h(!0);return}try{d(await To(c).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,c]),I=()=>{if(s){l(!1);return}let B=O.current?.getBoundingClientRect();B&&L({top:B.bottom+6,right:Math.max(8,window.innerWidth-B.right)}),d(null),h(!1),P(),l(!0)},C=(i??[]).filter(B=>B.slug!==o),E=async B=>{if(g)return;k(B.slug);let R=MQ(e,x,c.documentHooks?.storedNode),b=await a(()=>HQ(To(c).pages,B,R));k(null),l(!1),n?.(b?f("Duplicated to \u201C{name}\u201D",{name:B.label}):f("Couldn\u2019t duplicate the section \u2014 please retry"),b?"success":"error")};return Py(TQ,{children:[vt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:vt(_Q,{buttonRef:O,label:f("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:I,children:vt(LQ,{size:15})})}),s&&T&&vt(BQ,{portal:!0,style:{top:T.top,right:T.right},onClose:()=>l(!1),children:Py("div",{role:"menu","aria-label":f("Duplicate to page"),children:[vt(yu,{children:f("Duplicate to page")}),m?vt(yu,{children:f("Couldn\u2019t load pages")}):i===null?vt(yu,{children:f("Loading\u2026")}):C.length===0?vt(yu,{children:f("No other pages")}):C.map(B=>Py(AQ,{role:"menuitem",disabled:g!==null,onClick:()=>{E(B)},children:[vt("span",{className:"min-w-0 flex-1 truncate",children:B.label}),g===B.slug?vt("span",{className:"shrink-0 text-xs",children:f("Copying\u2026")}):B.draft&&vt("span",{className:"shrink-0 text-xs",children:f("draft")})]},B.id))]})})]})}async function HQ(e,o,t){let r=gu(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===NQ);s.splice(l===-1?s.length:l,0,t),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as uee}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as mee}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as NNe,isSelectionMode as Fy}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as xee}from"efficient-easel/draw/client";import{jsx as wi,jsxs as WQ}from"react/jsx-runtime";import{SettingsDrill as $Q}from"efficient-easel/panel";import{UiIcon as zQ}from"efficient-easel/draw/client";var UQ="Not shown on the page";function jQ({part:e,onOpen:o}){return wi($Q,{name:f(e.label),preview:e.offPage?f(UQ):e.preview||f("Empty"),offPage:e.offPage,status:e.hidden?wi("span",{className:"sf-entry-eye",role:"img","aria-label":f("Hidden on the page"),children:wi(zQ,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function Ty(e){return e.filter(o=>!o.identifier)}function jM({parts:e,onOpen:o,heading:t=!0}){let r=Ty(e);return r.length?WQ("div",{className:"sf-entries",children:[t?wi("h3",{className:"sf-entries-head",children:f("Text")}):null,r.map(a=>wi(jQ,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as hee,ROOT_ZONE as r2}from"efficient-easel/draw";import{newId as GQ}from"efficient-easel/data";import{HEADER_TYPE as Wo,FOOTER_TYPE as Be,newNodeId as KQ}from"efficient-easel/draw";function bu(){return{type:Wo,props:{id:KQ(Wo)}}}var GM=[{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"}],qQ=GM.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),VQ="FooterGroup",KM="blocks";function qM(e){return e===Be?GM:e===VQ?qQ:null}function Su(){let e=(o,t)=>({type:o,props:{id:GQ(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...zk}),e("FooterPayment",{...jd})]}function Oy(e){switch(e?.type){case Ro:case eo:return f("On every page");case Wo:case Be:return f("On every page \xB7 old style");default:return null}}var VM=()=>null,YM=()=>f("Changed on every page");function wu(e,o){let t=Ww(e,o);if(t)return t;let r=Qk(e,o);if(!r)return null;let a=r.group===Ro;return r.why==="type"?a?f("The header cannot take another one of these"):f("The footer cannot take another one of these"):a?f("The header holds at most 3 sections"):f("The footer holds at most 6 sections")}import{jsx as Cu,Fragment as XQ,jsxs as JQ}from"react/jsx-runtime";import{useState as ZQ}from"react";import{createNode as QQ,newId as eee}from"efficient-easel/data";import{useEasel as oee}from"efficient-easel/easel";import{Banner as tee,Button as Ey}from"efficient-shell/ui";import{useScreenDocument as ree}from"efficient-easel/screen/components/ScreenDocumentContext";var YQ=["FooterPayment"];function XM(e,o){let{id:t,...r}=e.props;for(let a of Ot(e))r[a]=r[a].map(n=>XM(n,o));return o(e.type,r)}var Ci=(e,o)=>{if(!YQ.includes(e.type))return null;sp();let t=Or(e.type);return t?xa({type:e.type,props:{...e.props}},t).nodes.map(r=>XM(r,o)):null};function JM(){let{appState:e,dispatch:o,config:t}=oee(c=>c),{readOnly:r}=ree(),[a,n]=ZQ(!1),s=e.data.content;if(r||s.some(c=>c.type===eo))return null;let l=s.find(c=>c.type===Be)??null,i=(c,x)=>QQ(t,c,x),d=()=>{let c=Wl(l,i,eee(eo),Ci);o({type:"setData",data:x=>({...x,content:[...Kd(x.content,c)]}),recordHistory:!0}),n(!1)};return Cu(tee,{tone:"info",title:f("This footer uses the old layout"),action:a?JQ(XQ,{children:[Cu(Ey,{variant:"primary",size:"sm",onClick:d,children:f("Switch now")}),Cu(Ey,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:f("Cancel")})]}):Cu(Ey,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:f("Switch to Box footer")}),children:f("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 _y,jsxs as aee}from"react/jsx-runtime";import{InspectorUpLevel as ZM}from"efficient-easel/chrome";function QM({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=tu(),n=ds(e,o,"picture");return aee("div",{children:[o!=="media"?_y(ZM,{inline:!0,name:f(tr.media),onSelect:()=>a(ca(e,"media"))}):_y(ZM,{inline:!0,name:f(t),onSelect:r}),_y(kt,{part:o,motion:n,itemWord:f(tr[o])})]})}import{HintsToggle as Iee,SettingsSwitch as gee,hintsFoldClass as yee}from"efficient-easel/panel";import{useHints as bee}from"efficient-easel/screen/lib/hints";var n2={kind:"header"},Ay={kind:"website"},s2={kind:"website",tab:uf,revealPageGroup:!0},l2={kind:"chat"},i2={kind:"social"},ki="Part";function See(e){return f("Part of {name}",{name:f(e)})}function wee(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?See(r.label):f(ki)}}function Cee(e){switch(e){case"Header":return{title:f("Header settings belong to a website."),own:f("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:f("Appearance settings belong to a website."),own:f("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:f("Live chat settings belong to a website."),own:f("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:f("Social link settings belong to a website."),own:f("Each website created from this template sets its own social link afterwards.")};default:return{title:f("{what} settings belong to a website.",{what:e}),own:f("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function d2({what:e}){let o=Cee(e);return Wr("div",{className:"sf-note",children:[we("p",{children:we("strong",{children:o.title})}),Wr("p",{children:[f("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function By(e){let o=wl[e];return{name:tr[e],kindLabel:ki,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=a2({name:f(tc(e,a.props)),tier:"part",of:f(a.label)},{partOf:({name:s})=>f("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?we(QM,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var kee={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(mf,{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(KN,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>we(ZN,{unavailable:we(d2,{what:"Social link"})})},ticker:{name:va,kindLabel:ki,icon:"ticker",head:(e,o)=>e.kind==="ticker"?wee(o,e.heroId,f(va)):null,render:e=>we(iM,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:By("media"),heroImage:By("image"),heroImage2:By("image2"),part:{name:ki,kindLabel:ki,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}=At(e.propKey),n=a?Cn(t.fields[r],a):t.fields[r],s=Jn(t.type),l=s?Os(s,e.propKey):null,i=s&&l?s[l].label:eT[e.propKey],d=i?f(i):JC(f(Ud(ak(n??{},r))),a),c=a2({name:d,tier:"part",of:f(t.label)},{partOf:({name:x})=>f("Part of {name}",{name:x})});return{name:c.name,kindLabel:c.kind}},render:(e,o)=>e.kind==="part"?we(FM,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},vee=new Set(["header","website","chat"]);function Pee(e,o){if(e==="selection")return null;let t=kee[e];return vee.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>we(d2,{what:t.name})}:t}function f2({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:l,tokenRef:i,notifyParent:d,currentSlug:c,siteId:x,runAuthed:m,readOnly:h,navigate:g}=uee(),{rows:k}=tl(),O=k?.find(xe=>xe.slug===c)??null,T=see(),L=Object.keys(T.fields).some(xe=>!xe.startsWith("_")&&!Jm.includes(xe)),{websiteName:P}=Co(),I=mee({readOnly:h}),{select:C}=xee(),{selectedItem:E,getItemById:B,getSelectorForId:R,config:b,appState:F}=nee(xe=>xe),y=cee(b,E?{type:E.type,props:E.props}:null),w=E?lk(y??b.components[E.type]?.fields,E.props):[],S=xe=>b.components[xe]?.label??xe,v=E?R(E.props.id):void 0,N=Pee(e.kind,l),$=pee(),V={capabilities:l,tokenRef:i,hostPanels:$.chrome?.panels,describeNode:xe=>{let he=B(xe);if(!he)return null;let Ze=b.components[he.type];return{type:he.type,label:Ze?.label??he.type,fields:Ze?.fields??{},props:he.props??{}}},siteId:x,websiteName:P??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},K=N?.head?.(e,V)??null,ae=WN({kind:O?.kind,pageName:O?.label}),ne=K?.name??(N?f(N.name):E?f(S(E.type)):ae.name),J=K?.kindLabel??(N?f(N.kindLabel):E?v&&v.zone!==r2?f("Block"):f("Section"):ae.kindLabel),me=N?N.icon:E?E.type:"page",ue=Fy(e)&&E?hi(E.type):null,Ie=!!E&&!!v&&v.zone===r2&&E.type!==Be&&E.type!==hee,ge=wu(F?.data,E),Po=()=>{ge||v&&I.duplicateComponent(v.zone,v.index)},bo=()=>{v&&(I.removeComponent(v.zone,v.index),I.select(null))},_o=E?b.components[E.type]?.defaultProps?.previewHover:void 0,Xe=Fy(e)&&!!E&&!!v&&_o!==void 0,fo=Xe&&E.props.previewHover===!0,Je=()=>{!E||!v||I.replaceComponent(v.zone,v.index,{...E,props:{...E.props,previewHover:!fo}})},{shown:le,setShown:Me}=bee(),H=!!(N||E||L);return Wr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${yee(le)}`.trim(),children:[we(iee,{icon:we(Ba,{type:me,size:15}),name:ne,kind:J,actions:!a&&Fy(e)&&E&&E.type!==Be?Wr(e2,{children:[we(o2,{label:f("Duplicate section"),title:ge??void 0,disabled:ge!==null,onClick:Po,children:we(dee,{size:15})}),Ie&&l.hasSiteSettings&&we(UM,{node:E,currentSlug:c,siteId:x??void 0,tokenRef:i,runAuthed:m,onNotify:n}),we(o2,{label:f("Remove section"),danger:!0,onClick:bo,children:we(fee,{size:15})}),s?we(t2,{side:"right",onHide:s,divider:!0}):null]}):s?we(t2,{side:"right",onHide:s}):void 0}),Xe&&Wr("div",{className:"sf-preview-pin",children:[Wr("div",{className:"sf-preview-pin-text",children:[we("span",{className:"sf-preview-pin-label",children:f("Preview hover state")}),we("span",{className:"sf-preview-pin-hint",children:f("not shown live")})]}),we(gee,{checked:fo,onChange:Je,ariaLabel:f("Preview hover state")})]}),Wr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[N?N.render(e,V):E?Wr(e2,{children:[E.type===Be&&l.hasSiteSettings&&we(JM,{}),we(Vv,{children:we(kt,{entries:we(jM,{parts:w,heading:!1,onOpen:xe=>C(Lt(E.props.id,xe))}),entryCount:Ty(w).length,itemWord:ne})}),ue&&we(pu,{source:ue,slug:cs(E?.props),menuId:iu(E?.props)})]}):L?we(kt,{omit:Jm}):we(lee,{variant:"none",icon:!1,message:f("Select a section or block to edit it.")}),H&&we(Iee,{shown:le,onChange:Me,label:f("Show hints")})]})]})}import{jsx as p,jsxs as _,Fragment as x2}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)"},Ly="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 U({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 Tee={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"},q={position:"absolute",inset:0},u={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 nr({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%",u.mark1)}),p("span",{style:r("26% 6% 8% 30%",u.mark2,"multiply")})]})}function vu({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:u.muted},children:e})}function c2({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return _(x2,{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 Ry({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(u.paper,u.paper2,150)},children:p(nr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:u.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:o})]})}function ar({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 ${u.rule}`,fontSize:"3.98cqw",color:u.muted},children:[p("span",{children:e}),_("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("b",{style:{color:u.text,fontWeight:700},children:o}),t&&p("span",{style:{color:u.rust,fontWeight:700},children:"\u2713"})]})]})}function ke({title:e,children:o}){return _("div",{style:{...q,background:u.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(vu,{children:e}),o]})}function p2({size:e=14}){return p("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${u.mark1},${u.mark2})`}})}function Dy({filled:e=5,size:o=6}){return _("span",{style:{fontSize:o,letterSpacing:"0.06em",color:u.rust,lineHeight:1},children:["\u2605".repeat(e),p("span",{style:{color:u.mark1},children:"\u2605".repeat(5-e)})]})}function vi({n:e,label:o,tone:t=u.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 Ye({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:u.muted,width:o,display:"block"},children:e})}function ku({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:u.muted},children:e}),p("span",{style:{height:9,borderRadius:3,border:`1px solid ${u.rule}`,background:t?u.paper:u.card}})]})}function u2({children:e}){return p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:u.text,color:u.onInk},children:e})}var Oee={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(u.paper,u.paper2,150)},children:p(nr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("b",{style:{flex:1,fontSize:"4.31cqw",color:u.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:u.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:_("div",{style:{...q,background:u.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:u.text,color:u.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,p("span",{style:{opacity:.6},children:"\u2715"})]},e)),p("span",{style:{fontSize:"3.65cqw",color:u.rust,fontWeight:700},children:"Clear"})]}),_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:"128 results"}),p("span",{style:{fontSize:"3.65cqw",color:u.muted,border:`1px solid ${u.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:_("div",{style:{...q,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",..._e(u.ink,u.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:u.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:u.text,background:u.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",p("span",{style:{color:u.muted},children:"\u25BE"})]},e)),p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:u.warm,color:u.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:u.ink},children:p("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${u.mark2}`,boxSizing:"border-box"}})}),p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:u.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),p("span",{style:{fontSize:"3.32cqw",color:u.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?u.rust:u.rule}`,color:o===0?u.rust:u.text,background:o===0?u.paper:u.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:u.muted,background:u.paper,border:`1px solid ${u.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",p("span",{style:{color:u.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 ${u.rule}`,paddingTop:3},children:[p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:u.text},children:e}),p("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?u.warm:u.muted},children:o})]},e))})]}),eutyrelabel:_("div",{style:{...q,background:u.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?u.rust:u.mark1}}),p("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?u.rust:u.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:u.text},children:"72"}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:u.muted},children:"dB"})]})]}),bundleoffer:_("div",{style:{...q,background:u.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(vu,{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:u.card},children:p(nr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:u.muted},children:"+"}),_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[p("span",{style:{fontSize:"3.65cqw",color:u.muted,textDecoration:"line-through"},children:"$1,024"}),p("b",{style:{fontSize:"6.02cqw",color:u.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:_("div",{style:{...q,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,..._e(u.ink,u.ink2)},children:[_("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:u.warm,fontWeight:700},children:"READY TO ORDER"}),p("b",{style:{fontSize:"6.63cqw",color:u.onInk,lineHeight:1},children:"$1,956"}),p("span",{style:{fontSize:"3.65cqw",color:u.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:u.warm,color:u.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:u.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:o}),p("span",{style:{fontSize:"4.64cqw",color:u.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 ${u.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"4.31cqw",color:u.text},children:e}),p("span",{style:{fontSize:"3.32cqw",color:u.muted},children:o}),p("span",{style:{fontSize:"3.32cqw",color:u.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:u.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(U,{r:3,style:{...q,background:`linear-gradient(transparent 45%,${u.scrim} 45%),${_e(u.ink,u.inkSoft2).background}`}}),p("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:u.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(U,{r:4,style:{...q,background:"none",border:`1px solid ${u.rule}`}}),p("b",{style:{position:"relative",fontSize:"4.31cqw",color:u.text},children:e}),p("span",{style:{position:"relative",fontSize:"3.32cqw",color:u.muted},children:o}),_("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(U,{r:3,style:{...q,..._e(u.paper,u.paper2,150)}}),p(U,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:u.mark1,opacity:.75}}),p(U,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:u.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(ku,{label:"Name"}),p(ku,{label:"Email"})]}),p(ku,{label:"Message",filled:!0}),p(u2,{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?u.text:u.paper,color:o===2?u.onInk:u.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?u.rust:u.rule}`,color:o===1?u.rust:u.muted,background:o===3?u.paper:u.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(Dy,{filled:4,size:14}),p(ku,{label:"Your review",filled:!0}),p(u2,{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 ${u.mark1}`,borderRadius:5,background:u.paper},children:[p("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:u.rust,fontWeight:300},children:"+"}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:"Drop a photo of your rig"})]})}),masthead:_("div",{style:{...q,background:u.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[p("span",{style:{height:1.5,background:u.text}}),p("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:u.text,lineHeight:1},children:"THE TRACK"}),_("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:u.muted},children:[p("span",{children:"Issue 14"}),p("span",{children:"Spring 2026"})]}),p("span",{style:{height:1,background:u.rule}})]}),featuredcover:_("div",{style:{...q,overflow:"hidden",..._e(u.ink,u.inkSoft2)},children:[p(nr,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${u.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:u.warm},children:"FEATURE"}),p("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:u.onInk},children:"Four days on the Madigan Line"})]})]}),longread:_("div",{style:{...q,background:u.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:u.rust},children:"12 MIN READ"}),p("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:u.text},children:"What breaks first, and why"}),p(Ye,{children:"Every failure starts in the same place:"}),p(Ye,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:_("div",{style:{...q,background:u.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:u.text},children:"Why offset beats width"}),p(Ye,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(Ye,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(Ye,{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:u.rust,flex:"none"}}),p("b",{style:{flex:1,fontSize:"4.64cqw",color:u.text},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:u.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:[[u.inkSoft,u.inkSoft2,"Madigan Line, four days"],[u.rust,u.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:u.text},children:t}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:_("div",{style:{...q,background:u.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:u.muted},children:"POLICY"}),p("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:u.text,lineHeight:1.1},children:"Returns & refunds"}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),p("span",{style:{height:2,width:26,background:u.rust,borderRadius:1}})]}),docbody:p("div",{style:{...q,background:u.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:u.rust,flex:"none"},children:e}),p(Ye,{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 ${u.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"5.31cqw",color:u.text,lineHeight:1},children:e}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:u.muted},children:o})]},o))})}),doctabs:_("div",{style:{...q,background:u.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?u.text:u.muted,background:o===0?u.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?u.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),p("span",{style:{height:1,background:u.rule}}),_("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(Ye,{children:"Unfitted wheels come back within 30 days, no questions."}),p(Ye,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:_("div",{style:{...q,background:u.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:u.text},children:"The right wheel is the boring one."}),_("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Ye,{children:"Forged, correctly offset, rated for what you actually"}),p(Ye,{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:u.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),p("span",{style:{fontSize:"4.31cqw",color:u.text},children:e})]},e))})}),statsparagraph:_("div",{style:{...q,background:u.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[_("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p(vi,{n:"27k",label:"Rigs"}),p(vi,{n:"4.9",label:"Rating"})]}),_("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Ye,{children:"Twelve years of fitting the same three questions, and the"}),p(Ye,{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?u.rust:u.mark1}},o))}),p("span",{style:{height:1,background:u.rule,marginTop:-4}})]}),mockup:p("div",{style:{...q,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",..._e(u.inkSoft,u.ink)},children:_("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:u.card,boxShadow:`0 6px 14px ${u.scrim}`},children:[p("div",{style:{height:9,background:u.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:u.mark1}},e))}),_("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{height:4,width:"56%",borderRadius:1,background:u.mark2}}),p("span",{style:{height:14,borderRadius:2,..._e(u.paper,u.paper2,150)}}),p("span",{style:{height:3,width:"38%",borderRadius:1,background:u.rust}})]})]})}),manifesto:p("div",{style:{...q,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",..._e(u.ink,u.ink2)},children:_("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:u.onInk},children:["We build for the ",p("span",{style:{color:u.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:u.rule}}),p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:u.rust,zIndex:1}}),_("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:u.text},children:e}),p(Ye,{children:o})]})]},e))})}),timelinetrack:_("div",{style:{...q,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",..._e(u.ink,u.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:u.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:u.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?u.warm:u.mark1}}),p("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?u.warm:u.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:_("div",{style:{...q,overflow:"hidden",..._e(u.paper,u.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:u.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:u.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:u.rust}},e)),p("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:u.text},children:"3 fitting bays"})]}),banner:_("div",{style:{...q,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:u.rust},children:[_("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("b",{style:{fontSize:"6.02cqw",color:u.onInk},children:"End of season \xB7 20% off"}),p("span",{style:{fontSize:"3.98cqw",color:u.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:u.onInk,color:u.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:_("div",{style:{...q,background:u.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:u.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:u.text,color:u.onInk},children:"FIND MY FIT"}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${u.text}`,color:u.text},children:"CALL US"})]})]}),ticker:p("div",{style:{...q,overflow:"hidden",background:u.ink,display:"flex",alignItems:"center"},children:p("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:u.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:_("div",{style:{...q,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",..._e(u.ink,u.ink2)},children:[p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:u.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:u.warm},children:":"}),_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[p("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:u.onInk,fontVariantNumeric:"tabular-nums"},children:e}),p("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:u.onInk},children:o})]})]},o))})]}),breadcrumb:p("div",{style:{...q,background:u.card,display:"flex",alignItems:"center",padding:"0 13px"},children:_("span",{style:{fontSize:"4.64cqw",color:u.muted},children:["Home ",p("span",{style:{opacity:.5},children:"/"})," Wheels ",p("span",{style:{opacity:.5},children:"/"})," ",p("span",{style:{color:u.text,fontWeight:700},children:"20 inch"})]})}),categorybar:_("div",{style:{...q,background:u.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?u.text:u.paper,color:o===0?u.onInk:u.muted},children:e},e))}),p("span",{style:{height:1,background:u.rule}})]}),intro:_("div",{style:{...q,overflow:"hidden",background:u.card},children:[p("div",{style:{position:"absolute",inset:0,..._e(u.ink,u.inkSoft2)}}),p(nr,{size:64,style:{right:8,top:6}}),_("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:u.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${u.scrim}`},children:[p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:u.text},children:"Since 1998"}),p(Ye,{children:"One shed, one lathe, one idea."}),p(Ye,{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:[[u.rust,u.warm],[u.inkSoft,u.ink],[u.paper2,u.mark2],[u.ink,u.inkSoft2],[u.warm,u.paper2],[u.mark2,u.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?u.text:u.muted,borderBottom:`1.5px solid ${o===0?u.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[u.rust,u.warm],[u.ink,u.inkSoft],[u.paper2,u.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(u.paper,u.paper2,150)},children:p(nr,{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:u.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"3.65cqw",color:u.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),_("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(ar,{k:"Subtotal",v:"$1,956"}),p(ar,{k:"Fitting",v:"Free"}),_("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[p("b",{style:{color:u.text},children:"Total"}),p("b",{style:{color:u.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?u.rust:u.rule}`,background:r?u.paper:u.card},children:[p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?u.rust:u.mark1}`,background:r?u.rust:"transparent"}}),p("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:u.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:u.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:u.text},children:t})]},e))})}),paymentbadges:_("div",{style:{...q,background:u.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(vu,{children:"Ways to pay"}),p("div",{style:{display:"flex",gap:5},children:[["VISA",u.ink],["MC",u.rust],["AMEX",u.inkSoft],["PayPal",u.ink2]].map(([e,o])=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:u.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:_("div",{style:{...q,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",..._e(u.ink,u.ink2)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:u.warm},children:"By the numbers"}),_("div",{style:{display:"flex",gap:8},children:[p(vi,{n:"27k",label:"Rigs fitted",tone:u.onInk}),p(vi,{n:"12",label:"Years",tone:u.onInk}),p(vi,{n:"4.9",label:"Avg rating",tone:u.warm})]})]}),testimonials:_("div",{style:{...q,overflow:"hidden",background:u.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:u.rust,opacity:.16},children:"\u201D"}),p(Dy,{filled:5,size:7}),p("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:u.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(p2,{}),p("span",{style:{fontSize:"3.98cqw",color:u.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:_(ke,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[u.inkSoft,u.inkSoft2],[u.rust,u.warm],[u.ink,u.inkSoft],[u.mark2,u.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(p2,{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:u.text},children:e}),p(Dy,{filled:o})]}),p(Ye,{children:t})]})]},e))})]}),logos:_("div",{style:{...q,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",..._e(u.ink,u.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:u.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:u.onInk,opacity:.82},children:e},e))})]}),prose:_("div",{style:{...q,background:u.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:u.text},children:"Why offset matters"}),_("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:u.rust,marginTop:1},children:"T"}),_("div",{style:{display:"flex",flexDirection:"column"},children:[p(Ye,{children:"he number on the back of your wheel decides whether the"}),p(Ye,{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 ${u.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:3,background:u.rust,opacity:.9}}),p("b",{style:{fontSize:"3.98cqw",color:u.text},children:e}),p(Ye,{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 ${u.rule}`,padding:"4px 2px"},children:[_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[p("b",{style:{fontSize:"4.31cqw",color:u.text},children:e}),p("span",{style:{fontSize:"4.64cqw",color:u.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&p(Ye,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:_("div",{style:{...q,overflow:"hidden",..._e(u.ink,u.ink2)},children:[p("div",{style:{...q,background:`linear-gradient(90deg,${u.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(c2,{over:"NEW \xB7 SUMMER",overTone:u.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:u.warm,ctaFg:u.ink,tone:u.onInk})}),p(nr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:_("div",{style:{...q,display:"flex",background:u.paper,overflow:"hidden"},children:[p("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:p(c2,{over:"ALL-TERRAIN",overTone:u.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:u.text,ctaFg:u.onInk,tone:u.text})}),p("div",{style:{flex:1,position:"relative",..._e(u.inkSoft,u.inkSoft2)},children:p(nr,{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(Ry,{name:"Ridge 19",price:"$365"}),p(Ry,{name:"Ridge 29",price:"$410"}),p(Ry,{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",u.inkSoft,u.inkSoft2],["Tyres",u.rust,u.warm],["Lift kits",u.ink,u.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:u.onInk,..._e(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:_("div",{style:{...q,display:"flex",background:u.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",..._e(u.paper,u.paper2,150)},children:p(nr,{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:u.rust},children:"NITTO"}),p("b",{style:{fontSize:"6.29cqw",color:u.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:u.text},children:"$489"}),p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:u.text,color:u.onInk},children:"ADD TO CART"})]})]}),spectable:p(ke,{title:"Specifications",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(ar,{k:"Diameter",v:'20"'}),p(ar,{k:"Width",v:"9.0J"}),p(ar,{k:"Offset",v:"+12"}),p(ar,{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(ar,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(ar,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(ar,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:_("div",{style:{...q,background:u.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(vu,{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:u.text,color:u.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),p("span",{style:{fontSize:"3.98cqw",color:u.text,fontWeight:600},children:e})]},e))})]}),detailrows:p("div",{style:{...q,background:u.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?u.rust:u.inkSoft,t?u.warm:u.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:u.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:u.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:{...q,background:u.ink,color:u.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:u.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},m2={subscribe:_("div",{style:{...q,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(U,{w:8,h:8,r:2,tone:"accent"}),p(U,{w:38,h:7,r:3,tone:"dark"}),p(U,{w:16,h:7,r:3,tone:"accent"})]}),p(U,{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(U,{w:"46%",h:3,r:2,tone:"accent"}),p(U,{w:"84%",h:8,r:4,tone:"dark"}),p(U,{w:"56%",h:8,r:4,tone:"accent"}),p(U,{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(U,{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(U,{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(U,{w:34,h:4,r:2,tone:"dark"}),p(U,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:_("div",{style:{...q,display:"flex"},children:[p("div",{style:{width:"44%",background:Ly}}),_("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(U,{w:"44%",h:5,r:3,tone:"accent"}),p(U,{w:"88%",h:8,r:4,tone:"dark"}),p(U,{w:"70%",h:8,r:4,tone:"dark"}),p(U,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),p(U,{w:"80%",h:5,r:2,tone:"soft"}),p(U,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:_(x2,{children:[p(U,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),_("div",{style:{...q,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[_("div",{style:{display:"flex",alignItems:"center",gap:9},children:[p(U,{w:16,h:16,r:4,tone:"accent"}),p(U,{w:"20%",h:9,r:4,tone:"dark"})]}),p(U,{w:"62%",h:10,r:5,tone:"dark"}),p(U,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:p("div",{style:{...q,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:_("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(U,{w:"22%",h:12,r:4,tone:"dark"}),_("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[p(U,{w:26,h:6,r:3,tone:"soft"}),p(U,{w:26,h:6,r:3,tone:"soft"}),p(U,{w:26,h:6,r:3,tone:"soft"}),p(U,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:_("div",{style:{...q,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(U,{w:"60%",h:9,r:4,tone:"dark"}),p(U,{w:"90%",h:5,r:2,tone:"soft"}),p(U,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[p(U,{w:"50%",h:6,r:3,tone:"dark"}),p(U,{w:"80%",h:5,r:2,tone:"soft"}),p(U,{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(U,{w:"30%",h:5,r:2,tone:"soft"}),p(U,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:p("div",{style:{...q,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:{...q,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(U,{w:14,h:2,r:1,tone:"tint"}),p(U,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:_("div",{style:{...q,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[p(U,{w:"100%",h:6,r:3,tone:"soft"}),p(U,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),p(U,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:p("div",{style:{...q,padding:14,display:"flex",alignItems:"center"},children:p(U,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:_("div",{style:{...q,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:Ly},children:[p(U,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),p(U,{w:16,h:10,r:3,tone:"accent"}),p(U,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:p("div",{style:{...q,padding:14,display:"flex",alignItems:"center"},children:p(U,{w:"64%",h:13,r:4,tone:"dark"})}),text:_("div",{style:{...q,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(U,{w:"100%",h:6,r:3,tone:"soft"}),p(U,{w:"96%",h:6,r:3,tone:"soft"}),p(U,{w:"100%",h:6,r:3,tone:"soft"}),p(U,{w:"58%",h:6,r:3,tone:"soft"})]}),image:p("div",{style:{position:"absolute",inset:14,borderRadius:7,background:Ly}}),button:p("div",{style:{...q,display:"flex",alignItems:"center",justifyContent:"center"},children:p(U,{w:"34%",h:16,r:8,tone:"accent"})}),menu:_("div",{style:{...q,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(U,{w:"48%",h:7,r:3,tone:"dark"}),p(U,{w:"82%",h:5,r:2,tone:"soft"}),p(U,{w:"66%",h:5,r:2,tone:"soft"}),p(U,{w:"74%",h:5,r:2,tone:"soft"}),p(U,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:_("div",{style:{...q,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(U,{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(U,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:p("div",{style:{...q,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>p(U,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:_("div",{style:{...q,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p(U,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>p(U,{w:20,h:13,r:3,tone:"dark"},e))]}),search:p("div",{style:{...q,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(U,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:_("div",{style:{...q,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(U,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:_("div",{style:{...q,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(U,{w:22,h:6,r:2,tone:"dark"}),p(U,{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(U,{w:"80%",h:4,r:2,tone:"accent"}),p(U,{w:"64%",h:4,r:2,tone:"soft"}),p(U,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:_("div",{style:{...q,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(U,{w:"38%",h:5,r:2,tone:"soft"}),_("div",{style:{display:"flex",gap:5},children:[p(U,{w:14,h:5,r:2,tone:"soft"}),p(U,{w:14,h:5,r:2,tone:"soft"}),p(U,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:p("div",{style:{position:"absolute",inset:14,borderRadius:8,background:to.block}})};function h2({type:e}){let o=Tee[e]??"",t=Oee[o]??m2[o]??m2.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 Au}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as us,jsxs as I2}from"react/jsx-runtime";import Eee from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as _ee}from"efficient-easel/rail";import{Tooltip as Fee}from"efficient-shell/ui";import{HintsToggle as Bee,hintsFoldClass as Aee}from"efficient-easel/panel";import{useHints as Lee}from"efficient-easel/screen/lib/hints";function g2({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Sn(),{shown:d,setShown:c}=Lee();return I2("div",{className:`sf-styles ${Aee(d)}`.trim(),children:[us(Eee,{icon:us(_ee,{}),title:f("Styles"),context:us(Fee,{content:f("{name} \u2014 renamed in the Console: {place}.",{name:i,place:f("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:us("span",{className:"sf-name-text",children:i})})}),I2("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[us(mf,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),us(Bee,{shown:d,onChange:c,label:f("Show hints")})]})]})}import{jsx as lo,jsxs as Ma,Fragment as Hee}from"react/jsx-runtime";import{Fragment as E2,useEffect as _2,useRef as zy}from"react";import{useTreeDrag as F2}from"efficient-easel/drag";import{GlobeIcon as Wee,ImageIcon as $ee,LocationIcon as zee,MapIcon as Uee,TextLinesIcon as jee,TrashIcon as B2}from"efficient-easel/icons";import{Subtree as A2,TreeRow as Ti,TreeRowAction as L2,TreeSeam as R2}from"efficient-easel/tree";import{useEaselStrings as Gee}from"efficient-easel/strings";import{isSelectionMode as Kee}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Ree}from"react";var Dee={level:"groups"},b2=Dee,Ny=new Set;function Pt(e){b2=e;for(let o of Ny)o()}function Nee(e){return Ny.add(e),()=>{Ny.delete(e)}}var y2=()=>b2;function S2(){return Ree(Nee,y2,y2)}var Pi=e=>String(e?.group??""),My=new WeakMap,Mee=0;function Pu(e){let o=My.get(e);return o||(o=`loc${++Mee}`,My.set(e,o)),o}var w2=(e,o)=>o||e||"Ungrouped",C2={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
339
- Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Na(e){return od(e,Pi,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var Hy=e=>e.flatMap(o=>o.cards),k2=(e,o,t)=>Math.min(Math.max(e,o),t);function Tu(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Pi(e[a])===o){if(r===t)return a;r++}return-1}function Wy(e,o,t){let r=Na(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=k2(o<t?t-1:t,0,r.length);return r.splice(n,0,a),Hy(r)}function $y(e,o,t,r,a){let n=Na(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&&My.set(d,Pu(i));let c=k2(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(c,0,d),Hy(n)}function v2(e,o){let t=Na(e),r=t.find(n=>n.key===o),a={...C2,group:o,groupName:r?.name??""};return r?(r.cards.push(a),Hy(t)):[...e,a]}function P2(e){let o=new Set(Na(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...C2,group:r,groupName:""}],key:r}}function T2(e,o){return e.filter(t=>Pi(t)!==o)}function O2(e,o,t){let r=Tu(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function xMe(e,o,t){let r=e.flatMap((s,l)=>Pi(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 hMe(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Pi(n)===r);return a.length?a:t(r)})}var Eu="ContactLocations",Ou=e=>({parentId:`locations-${e}`,slot:"groups"}),Uy=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function D2(e,o){let{readOnly:t,selected:r}=o,a=Gee().tree,n=o.data?.content??[],s=Kee(e),l=zy(null);_2(()=>{let P=r?.type===Eu?String(r.props.id):null;P&&P!==l.current&&Pt({level:"groups"}),l.current=P},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:c}=cA(),x=S2(),m=(P,I)=>{let C=n[P];C&&o.replace(P,{type:C.type,props:{...C.props,locations:I}})},h=P=>{let I=n[P]?.props?.locations;return Array.isArray(I)?I:[]},g=F2({keyOf:P=>`group:${P.si}:${P.index}`,readOnly:!!t,canDrop:(P,I)=>I.parentId===Ou(P.si).parentId&&I.slot==="groups",onDrop:(P,I)=>{m(P.si,Wy(h(P.si),P.index,I.index)),x.level==="city"&&Pt({level:"groups"})},onStep:(P,I)=>{m(P.si,Wy(h(P.si),P.index,I<0?P.index-1:P.index+2)),x.level==="city"&&Pt({level:"groups"})}}),k=F2({keyOf:P=>`city:${P.si}:${P.group}:${P.index}`,readOnly:!!t,canDrop:(P,I)=>I.parentId===Ou(P.si).parentId&&I.slot.startsWith("cities:"),onDrop:(P,I)=>{let C=I.slot.slice(7);m(P.si,$y(h(P.si),P.group,P.index,C,I.index)),Pt({level:"group",key:C})},onStep:(P,I)=>{m(P.si,$y(h(P.si),P.group,P.index,P.group,I<0?P.index-1:P.index+2)),x.level==="city"&&Pt({level:"group",key:P.group})}}),O=zy(n);O.current=n;let T=zy(()=>{});_2(()=>{c(P=>{let I=cp(P);if(!I)return;let C=O.current.findIndex(E=>E.props?.id===I.nodeId);C<0||T.current(C,{level:I.part,index:I.index})})},[c]);let L=(P,I)=>{l.current=n[P]?.props?.id??null,o.select(P),Pt(I),e.reveal();let C=n[P]?.props?.id;typeof C=="string"&&(I.level==="city"||I.level==="image"||I.level==="map")?d(fp(C,I.index,I.level)):d(null),typeof C=="string"&&o.scrollTo(C)};return T.current=L,{renderLocationTree:(P,I,{rowClick:C,isCollapsed:E,toggleCollapse:B})=>{let R=h(I),b=Na(R),F=String(P.props.id),y=s&&r?.props.id===F,w=v=>lo(R2,{...t?{}:g.seam({place:{...Ou(I),index:v}})},`seam:${F}:groups:${v}`),S=(v,N)=>lo(R2,{...t?{}:k.seam({place:{...Uy(I,v),index:N}})},`seam:${F}:cities:${v}:${N}`);return Ma(Hee,{children:[lo(Ti,{icon:lo(jee,{size:13}),name:f("Texts"),words:a,onSelect:()=>L(I,{level:"texts"}),selected:y&&x.level==="texts",rowProps:{onClick:C(()=>L(I,{level:"texts"}))}}),b.map((v,N)=>{let $=`${F}::grp::${v.key}`,V=E($),K=y&&x.level==="group"&&x.key===v.key,ae=v.name||v.key?w2(v.key,v.name):f("Ungrouped"),ne={...Uy(I,v.key),index:v.cards.length},J=k.row({item:{si:I,group:v.key,index:-1},place:ne,into:ne,canDrag:!1},{onClick:C(()=>L(I,{level:"group",key:v.key}))}),me=g.row({item:{si:I,index:N},place:{...Ou(I),index:N}},J.rowProps);return Ma(E2,{children:[N===0&&w(0),lo(Ti,{icon:lo(Wee,{size:13}),name:ae,words:a,onSelect:()=>L(I,{level:"group",key:v.key}),selected:K,draggable:me.draggable,dragging:me.dragging,drop:me.drop??J.drop,fold:{open:!V,label:f("group"),onToggle:()=>B($)},actions:lo(L2,{kind:"delete",label:Bt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",v.cards.length,{label:ae}),onClick:()=>{m(I,T2(R,v.key)),Pt({level:"groups"})},children:lo(B2,{size:15})}),rowProps:me.rowProps,count:v.cards.length,countLabel:Bt("{n} city","{n} cities",v.cards.length)}),!V&&Ma(A2,{children:[v.cards.map((ue,Ie)=>{let ge=Tu(R,v.key,Ie),Po=y&&x.level==="city"&&x.index===ge,bo=String(ue?.name??"")||f("City"),_o=`${F}::city::${Pu(ue)}`,Xe=E(_o),{rowProps:fo,...Je}=k.row({item:{si:I,group:v.key,index:Ie},place:{...Uy(I,v.key),index:Ie}},{onClick:C(()=>L(I,{level:"city",index:ge}))});return Ma(E2,{children:[Ie===0&&S(v.key,0),lo(Ti,{icon:lo(zee,{size:13}),name:bo,words:a,onSelect:()=>L(I,{level:"city",index:ge}),selected:Po,...Je,fold:{open:!Xe,label:bo,onToggle:()=>B(_o)},actions:lo(L2,{kind:"delete",label:f("Delete {name}",{name:bo}),onClick:()=>{m(I,O2(R,v.key,Ie)),Pt({level:"group",key:v.key})},children:lo(B2,{size:15})}),rowProps:fo}),!Xe&&Ma(A2,{children:[lo(Ti,{icon:lo($ee,{size:13}),name:f("Image"),words:a,onSelect:()=>L(I,{level:"image",index:ge}),selected:y&&x.level==="image"&&x.index===ge,rowProps:{onClick:C(()=>L(I,{level:"image",index:ge}))}}),lo(Ti,{icon:lo(Uee,{size:13}),name:f("Map"),words:a,onSelect:()=>L(I,{level:"map",index:ge}),selected:y&&x.level==="map"&&x.index===ge,rowProps:{onClick:C(()=>L(I,{level:"map",index:ge}))}})]}),S(v.key,Ie+1)]},Pu(ue))}),Ma("button",{type:"button",className:"sf-add-card",onClick:()=>{let ue=v2(R,v.key);m(I,ue);let Ie=Na(ue).find(ge=>ge.key===v.key);Pt(Ie&&Ie.cards.length?{level:"city",index:Tu(ue,v.key,Ie.cards.length-1)}:{level:"group",key:v.key})},children:[lo("span",{className:"sf-plus sf-plus--sm",children:"+"}),f("Add city")]})]}),w(N+1)]},$)}),Ma("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:v,key:N}=P2(R);m(I,v),L(I,{level:"group",key:N})},children:[lo("span",{className:"sf-plus sf-plus--sm",children:"+"}),f("Add group")]})]})},sectionPressed:P=>{P?.type===Eu&&Pt({level:"groups"})}}}import{useEffect as Xee,useRef as Jee}from"react";import{createNode as Gy,newId as Ky}from"efficient-easel/data";import{useEaselApi as Zee}from"efficient-easel/easel";import{useScreenDocument as Qee}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as eoe}from"efficient-easel/screen/lib/session-context";import{useEffect as W2,useRef as qee}from"react";import{useEasel as Vee}from"efficient-easel/easel";import{ROOT_ZONE as jy}from"efficient-easel/draw";var Oi={};function N2(e){return Oi={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Oi}function M2(e){Oi===e&&(Oi={})}function ms(){return Oi}function H2(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 z2(e){let o=Vee(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=Co(),i=qee(new Set);W2(()=>{let d=$2({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&Yee(_E(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),W2(()=>{let d=N2($2({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>M2(d)},[t,r,a,n,s,l])}function $2(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=H2({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 Yee(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(jy,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(jy,r+1+l,s),o.replaceComponent(jy,r+1+l,s)}))}}import{ROOT_ZONE as xs,missingPinnedTypes as ooe,pinnedDuplicateIds as qy}from"efficient-easel/draw";function U2(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function j2(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===Wo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Ro)}}async function G2(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!==Ro||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Ro)?!1:(e.write(Kd(r,t)),!0)}function K2(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=Qee(),c=eoe(),{hasSiteSettings:x,hasPinnedChrome:m}=r;z2(e);let h=!!r.editsPinnedInPlace&&a!==Sr,g=a===Sr,k=Zee().getState,O=Jee(null);Xee(()=>{if(!U2({docId:n,saveStatus:l,seededDocId:O.current})||(O.current=n,!m))return;let T=k().appState.data,L=T.content,P=s?.content??[],I=(R,b)=>R.some(F=>F?.type===b);if(!x){let R=new Set(qy(L)),b=R.size?L.filter(y=>!R.has(y.props.id)):L;if(R.size&&e.setDocument({...T,content:b}),g)return;let F=ooe(b,P);if(F.includes(Be)){let y=b.length,w=e.insertSection(Be,y);e.replaceComponent(xs,y,{type:Be,props:{id:w,blocks:Su()}})}F.includes(Wo)&&e.insertNode(xs,0,bu());return}if(g){let R=Jk(L);if(R!==L&&e.setDocument({...T,content:[...R]}),!R.find(b=>b.type===Be)&&!I(P,Be)&&!I(R,eo)&&!I(P,eo)){let b=(y,w)=>Gy(o,y,w),F={type:Be,props:{blocks:Su()}};e.insertNode(xs,R.length,Wl(F,b,Ky(eo),Ci))}return}if(h){let R=!!t?.pinnedChrome?.state().docId,b=j2(L,{hasChromeDoc:R}),F=new Set([...b.remove,...qy(L.filter(w=>!b.remove.includes(String(w.props.id))))]),y=F.size?L.filter(w=>!F.has(String(w.props.id))):L;if(y.length!==L.length&&e.setDocument({...T,content:y}),b.seedFooter&&!I(P,Be)&&!I(P,eo)){let w=(v,N)=>Gy(o,v,N),S={type:Be,props:{blocks:Su()}};e.insertNode(xs,y.length,Wl(S,w,Ky(eo),Ci))}if(b.seedHeader&&!I(P,Wo)){let w=y[0]?.type===Ro?1:0;e.insertNode(xs,w,bu())}if(b.seedSiteHeader&&!I(P,Ro)&&!I(P,Be)&&!I(P,eo)){let w=n;G2({blocks:on(c),make:(S,v)=>Gy(o,S,v),id:Ky(Ro),siteId:i??null,token:d.current,latest:()=>k().appState.data.content,stillOpen:()=>O.current===w,write:S=>{let v=k().appState.data;e.setDocument({...v,content:[...S]})}})}return}let C=L.filter(R=>R.type!==Be),E=new Set(qy(C)),B=E.size?C.filter(R=>!E.has(R.props.id)):C;B.length!==L.length&&e.setDocument({...T,content:B}),!I(B,Wo)&&!I(P,Wo)&&e.insertNode(xs,0,bu())},[n,l,s,k,e,x,m,g,h,t,c,i,d])}import{useEffect as tH,useMemo as ioe,useRef as rH}from"react";import{useEasel as doe}from"efficient-easel/easel";import{newId as foe}from"efficient-easel/data";import{useEaselHost as coe}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as toe}from"efficient-easel/screen/lib/host";import{isNode as Y2}from"efficient-easel/data";function Ei(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function roe(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function Vy(e,o,t,r){e.forEach((a,n)=>{if(Y2(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Ot(a))Vy(a.props[s],a,s,r)}})}function aoe(e){let o=[];Vy(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&Vy(t,null,"",o);return o}function X2(e,o){return aoe(e).find(t=>String(t.node.props.id)===o)}function J2(e,o,t){if(!t)return null;let r=X2(o,t);if(!r)return null;let a=Ei(e,r.node.type),n=r.parent?`${Ei(e,r.parent.type)} \xB7 ${roe(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var noe=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 soe(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[toe]: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=noe(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=Z2(l))}return r}function Z2(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=soe(r);a&&(o[t]=a)}return o}function Q2(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Ei(e,t),fields:Z2(r.fields),...eH(t)?{retired:!0}:{}});return o}function eH(e){return uo(mb,e)}function q2(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function loe(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 Yy(e,o){return e.findIndex(t=>Y2(t)&&String(t.props.id)===o)}function V2(e,o,t){let r=o||t;if(!r)return e.length;let a=Yy(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function oH(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=c=>{throw new Error(`change ${i+1}: ${c}`)};switch(l.op){case"set_props":{let c=X2(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=loe(c.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}`),eH(l.type)&&d(`${Ei(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let c=Qn(l.type),x=Object.keys(l.props??{}).filter(h=>h!=="id");c&&x.length&&d(`${Ei(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let m=c?c(h=>q2(e,h),r,a):{type:l.type,props:{...q2(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(V2(s,l.after,l.before),0,m);break}case"remove_block":{let c=Yy(s,l.block_id);c<0&&d(`there is no top-level block ${l.block_id}`),s.splice(c,1);break}case"move_block":{let c=Yy(s,l.block_id);c<0&&d(`there is no top-level block ${l.block_id}`);let[x]=s.splice(c,1);s.splice(V2(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 Xy=e=>po(e.requestId)??null;function aH(){let e=coe(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=doe(m=>m),s=n,l=rH({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=rH(new Map),d=t?.props?.id,c=ioe(()=>J2(s,o.data,d),[s,o.data,d]),x=c?JSON.stringify(c):"";tH(()=>{e.connected&&e.send("storefront-editor:selection",{selection:c})},[e,x]),tH(()=>e.subscribe(m=>{let{appState:h,dispatch:g,history:k,blockConfig:O}=l.current;switch(m.type){case"storefront-editor:request-document":{let T=Xy(m);if(!T)return;e.send("storefront-editor:document",{requestId:T,document:h.data,blocks:Q2(O)});return}case"storefront-editor:apply-page-edits":{let T=Xy(m);if(!T)return;let L=Array.isArray(m.ops)?m.ops:[],P=L.length?oH(O,h.data,L,foe,ms()):{ok:!1,reason:"no changes"};P.ok&&(g({type:"setData",data:P.document,recordHistory:!0}),i.current.set(T,JSON.stringify(P.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:T,applied:P.ok,reason:P.ok?null:P.reason});return}case"storefront-editor:undo-page-edits":{let T=Xy(m);if(!T)return;let L=i.current.get(T),P=L!==void 0&&L===JSON.stringify(h.data.content??[]);P&&k.hasPast&&(k.back(),i.current.delete(T)),e.send("storefront-editor:page-edits-result",{requestId:T,applied:P&&k.hasPast,reason:P?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof m.shown=="boolean"&&g({type:"setUi",ui:{rightSideBarVisible:m.shown}});return;default:return}}),[e])}import{useEffect as lH,useState as iH}from"react";var _u=new Map;async function poe(e,o){try{return(await To().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function nH(e,o){let t=_u.get(o);return t||(t=poe(e,o),_u.set(o,t),t.catch(()=>{_u.get(o)===t&&_u.delete(o)})),t}var uoe=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function Jy(e){return!!e&&uoe.test(e)}function sH(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Kv?"/":`/${encodeURIComponent(o)}`;if(!Jy(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function dH(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=iH(null),[s,l]=iH(null),i=rv();lH(()=>{try{l(new URL(av()).hostname)}catch{l(null)}},[i]),lH(()=>{if(!Jy(s)||!t||!r){n(null);return}let c=!1;return nH(r,t).then(x=>{c||n(x)}),()=>{c=!0}},[s,t,r]);let d=sH({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as _i}from"react/jsx-runtime";import{useEffect as moe,useRef as fH,useState as xoe}from"react";import{ExternalIcon as cH}from"efficient-easel/icons";import{EaselIconButton as hoe}from"efficient-easel/chrome";import{Tooltip as Ioe,iconButtonClasses as goe}from"efficient-shell/ui";import{useSettledPress as yoe}from"efficient-easel/easel";import{useScreenDocument as boe}from"efficient-easel/screen/components/ScreenDocumentContext";async function Soe({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 pH({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=boe(),a=fH(r);a.current=r;let n=yoe(),[s,l]=xoe(!1),i=fH(null);if(moe(()=>()=>i.current?.(),[]),t&&o){let d=()=>new Promise((x,m)=>{i.current=()=>x(!1),n.run(()=>{i.current=null,a.current().then(x,m)})}),c=()=>{s||n.waiting||(l(!0),Soe({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return _i(hoe,{label:f("Preview your saved draft in a new tab"),tip:f("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:c,children:_i(cH,{})})}return _i(Ioe,{content:f("Preview the live site (opens in a new tab)"),side:"bottom",children:_i("a",{className:goe({className:"es-iconbtn"}),href:e,...al,"aria-label":f("Preview the live site in a new tab"),children:_i(cH,{})})})}import{createElement as woe,useCallback as Coe,useEffect as uH,useRef as mH,useState as koe}from"react";import{ClockIcon as voe}from"efficient-shell/icons/efficient";import{useScreenDocument as Poe}from"efficient-easel/screen/components/ScreenDocumentContext";function xH(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Poe(),s=LM(AM(o??null),r),l=jp(Gp()),i=n.siteLiveState;uH(()=>{if(i)return Um(i),ea(0),()=>Um(null)},[i]);let d=nf(),[c,x]=koe(!1),m=mH(e);m.current=e;let h=mH(!0);uH(()=>(h.current=!0,()=>{h.current=!1}),[]);let g=Coe(()=>{x(!0),a(m.current).then(()=>{qp()}).finally(()=>{h.current&&x(!1)})},[a]);if(t.canPublish){if(i){let k=d===void 0?void 0:r||d.state==="changed"?"changed":"live",O=wy({live:k,onPress:g,busy:c,goingLive:RM(d?.changes??[])});return n.siteVersions?{...O,menuItems:Toe()}:O}return wy({live:s,onPress:g,busy:c,pinnedUnpublished:l?.unpublished??!1})}}function Toe(){return[{key:"version-history",label:f("Version history"),icon:woe(voe),onSelect:eN}]}import{jsx as ee,jsxs as Ko,Fragment as Ai}from"react/jsx-runtime";import{useCallback as Ooe,useEffect as Eoe,useId as gH,useRef as _oe,useState as pt}from"react";import{useSettledAction as Foe}from"efficient-easel/easel";import{Avatar as Boe,Banner as Fi,Button as Ha,ColoredBadge as Zy,Dialog as yH,Drawer as Aoe,DropdownMenu as Loe,FormField as bH,iconButtonClasses as Roe,Inline as Qy,Input as Doe,ListRow as Noe,Select as Moe,SortableList as Hoe,Stack as Bi}from"efficient-shell/ui";import{EditIcon as Woe,EyeIcon as hH,MenuIcon as $oe,MoreIcon as zoe,PageIcon as SH,RevertIcon as IH,StylesIcon as Uoe}from"efficient-shell/icons/efficient";import{useScreenDocument as wH}from"efficient-easel/screen/components/ScreenDocumentContext";var joe={page:SH,menu:$oe};function Goe(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function Koe(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 qoe({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=gH();if(!e)return null;let d=e.kind==="draft_before_restore",c=e.number,x=iN(e),m=d?f("Put your drafts back?"):o?f("Restore {page} from version {n}?",{page:o.name,n:c}):f("Restore version {n}?",{n:c}),h=d?f("Your drafts go back to how they were before the restore."):o?f("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:c}):x?f("The whole website goes back to version {n} as a draft: {what}.",{n:c,what:x}):f("The whole website goes back to version {n} as a draft.",{n:c}),g=e.deletedPictures??0;return ee(yH,{open:!0,onClose:()=>{r||n()},size:"sm",title:m,footer:Ko(Ai,{children:[ee(Ha,{variant:"secondary",onClick:n,disabled:r,children:f("Cancel")}),ee(Ha,{onClick:s,loading:r,disabled:r,children:f("Restore as draft")})]}),children:Ko(Bi,{gap:4,children:[o&&e.pages.length>1?ee(bH,{label:f("Page"),htmlFor:i,children:ee(Moe,{id:i,value:o.id,options:e.pages.map(k=>({value:k.id,label:k.name})),onChange:l,disabled:r})}):null,ee("p",{children:h}),ee("p",{children:f("Your live website does not change until you press Publish.")}),g>0?ee(Fi,{tone:"warning",children:Bt("{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.",g)}):null,t?ee(Fi,{tone:"info",title:f("Your unpublished changes are kept"),children:f("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?ee(Fi,{tone:"danger",children:a}):null]})})}function Voe({version:e,onCancel:o,onSave:t}){let r=gH(),[a,n]=pt(null),[s,l]=pt(""),[i,d]=pt(!1),[c,x]=pt(null);if(e!==a&&(n(e),l(e?.name??""),x(null)),!e)return null;let m=s.trim()===e.name,h=async()=>{if(!(i||m)){d(!0),x(null);try{await t(s.trim())}catch{x(f("The name was not saved. Try again."))}finally{d(!1)}}};return ee(yH,{open:!0,onClose:()=>{i||o()},size:"sm",title:f("Name this version"),footer:Ko(Ai,{children:[ee(Ha,{variant:"secondary",onClick:o,disabled:i,children:f("Cancel")}),ee(Ha,{onClick:()=>{h()},loading:i,disabled:i||m,children:f("Save")})]}),children:ee(bH,{label:f("Name"),htmlFor:r,hint:f("Named versions are always kept. Leave it empty to take the name away."),error:c??void 0,children:ee(Doe,{id:r,value:s,invalid:!!c,onChange:g=>l(g.target.value),onKeyDown:g=>{g.key==="Enter"&&h()}})})})}function Yoe({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,c=[...l?[]:[{key:"preview",label:f("Preview"),icon:ee(hH,{}),onSelect:r}],...i?[{key:"restore",label:l?f("Put these drafts back"):f("Restore whole website"),icon:ee(IH,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:f("Restore one page only"),icon:ee(SH,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:f("Name this version"),icon:ee(Woe,{}),onSelect:s}]];return ee(Noe,{title:Ko("span",{className:"sf-version-title",children:[ee("span",{children:lN(e)}),e.live?ee(Zy,{tone:"success",size:"xs",children:f("Live")}):null,e.name?ee(Zy,{tone:"neutral",size:"xs",children:f("Version {n}",{n:e.number})}):null,l?ee(Zy,{tone:"warning",size:"xs",children:f("Not published")}):null]}),expanded:o,onToggle:t,actions:ee(Loe,{align:"end","aria-label":f("More"),items:c,triggerClassName:Roe({variant:"ghost",size:"sm"}),trigger:ee(zoe,{})}),below:Ko(Bi,{gap:3,children:[Ko(Qy,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ee(Boe,{name:e.createdBy,size:"xs"}),ee("span",{children:e.createdBy}),ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:fN(e.createdAt)}),d?Ko(Ai,{children:[ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:Bt("{n} change","{n} changes",d)})]}):null]}),o?Ko(Bi,{gap:3,children:[d?ee(Bi,{gap:2,children:e.changes.map(x=>{let m=joe[x.kind]??Uoe;return Ko(Qy,{gap:2,align:"center",children:[ee(m,{size:16}),ee("span",{children:dN(x)})]},`${x.kind}:${x.id}`)})}):null,Ko(Qy,{gap:2,children:[l?null:ee(Ha,{variant:"secondary",size:"sm",leftIcon:ee(hH,{}),onClick:r,children:f("Preview")}),i?ee(Ha,{variant:"secondary",size:"sm",leftIcon:ee(IH,{}),onClick:a,children:f("Restore")}):null]})]}):null]})})}function Xoe({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=wH(),[l,i]=pt(null),[d,c]=pt(!1),[x,m]=pt(null),[h,g]=pt(null),[k,O]=pt(!1),[T,L]=pt(null),[P,I]=pt(null),[C,E]=pt(!1),B=_oe(0),R=Ooe(()=>{let w=++B.current;c(!1),t.list().then(S=>{w===B.current&&i(S)},()=>{w===B.current&&c(!0)})},[t]);Eoe(()=>{e&&R()},[e,R]);let b=w=>{E(!1),Koe(t,w.id).catch(()=>E(!0))},F=async()=>{if(!(!h||k)){O(!0),L(null);try{await nN({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),g(null),o()}catch(w){L(w instanceof fi?f("Your last changes did not save, so nothing was restored. Try again."):f("The version was not restored. Nothing changed. Try again."))}finally{O(!1)}}},y=Foe({onPress:()=>{F()},busy:k});return Ko(Ai,{children:[ee(Aoe,{open:e,onClose:o,side:"right",size:"md",title:f("Version history"),description:Ko(Ai,{children:[f("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",f("Products, prices and forms always show as they are now.")]}),footer:ee("span",{className:"sf-version-foot",children:f("The newest 30 are kept. Named versions are always kept.")}),children:Ko(Bi,{gap:3,children:[C?ee(Fi,{tone:"danger",onDismiss:()=>E(!1),children:f("The preview did not open. Try again.")}):null,d?ee(Fi,{tone:"danger",action:ee(Ha,{variant:"secondary",size:"sm",onClick:R,children:f("Try again")}),children:f("Version history did not load.")}):l===null?ee("p",{className:"sf-version-foot",children:f("Loading versions")}):l.length===0?ee("p",{className:"sf-version-foot",children:f("No versions yet. Every Publish from now on keeps one.")}):ee(Hoe,{"aria-label":f("Versions"),spacing:"comfortable",children:l.map(w=>ee(Yoe,{version:w,expanded:x===w.id,onToggle:()=>m(S=>S===w.id?null:w.id),onPreview:()=>b(w),onRestore:()=>{L(null),g({version:w,page:null})},onRestorePage:()=>{L(null),g({version:w,page:Goe(w,s)})},onName:()=>I(w)},w.id))})]})}),ee(qoe,{version:h?.version??null,page:h?.page??null,waiting:r,busy:y.busy===!0,error:T,onCancel:()=>g(null),onConfirm:y.onPress,onPage:w=>g(S=>S&&{...S,page:S.version.pages.find(v=>v.id===w)??S.page})}),ee(Voe,{version:P,onCancel:()=>I(null),onSave:async w=>{await t.name(P.id,w),I(null),R()}})]})}function CH(){let{adapter:e,hasUnsavedEdits:o}=wH(),t=e.siteVersions,r=tN(),a=nf();return t?ee(Xoe,{open:r,onClose:oN,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as i5}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as fHe,categoryLabel as cHe,paletteWithoutPinned as pHe,pinnedSection as uHe}from"efficient-easel/screen/lib/document/palette-sections";var Joe={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 kH(e){return W(Joe,e)?.label}var vH=Ib;function Zoe(e){let o=xp.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=nh.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:nh.sectionAccent}}}var Qoe={Hero:{[Tl]:{newChild:Zoe,childLabel:Gr.Ticker}}},PH=Object.fromEntries(Object.entries(wE).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...W(Qoe,e)?.[t]}]))]));function TH(e,o=0,t,r){let a=ote(tte(e,o,r),t),n=a?HI():null;return a&&n?ete(a,n):a}function ete(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 ote(e,o){if(!e||e.source!=="container"||!o||!CS())return e;let t=fd({data:o.data},o.id),r=typeof t?.type=="string"?nd(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 tte(e,o,t){let r=t?W(PH,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=W(ot,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=Ui(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=qM(e);return s?{source:"footer",slot:KM,choices:s,spec:null}:null}function OH(e,o=id(e.type)){return ld(e.type)?o.map(t=>{let r=PS(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:f(r),rung:!0}}):null}import{useSyncExternalStore as rte}from"react";var eb=null,ob=new Set;function EH(e){if(eb!==e){eb=e;for(let o of ob)o()}}function ate(e){return ob.add(e),()=>{ob.delete(e)}}function DHe(){return rte(ate,()=>eb,()=>null)}function _H(e){return bv(e)?.ownerId??null}function FH(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||f("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:f("Text")}return e.type==="FooterEmailSignup"?t.heading||f("Email signup"):o(e.type)}import{parseOption as nte}from"efficient-shell/format";var ste=["pages","sections","styles"],BH="sf-editor-left-view";function AH(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(BH);return nte(ste,"pages",e)}catch{return"pages"}}function LH(e){if(!(typeof window>"u"))try{window.localStorage.setItem(BH,e)}catch{}}function RH(e,o){return e==="styles"&&!o?"sections":e}function DH(e,o){return e?"sections":o}import{copyNode as lte}from"efficient-easel/data";function NH(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=Yt(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?f("On 1 page"):f("On {count} pages",{count:a.length}):f("On other pages")}var MH={usedOn:e=>{let o=Yt(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>tf()?.openPage(e),adopt:(e,o)=>Yt()?.adopt(e.props.id,o),nodeOf:e=>Yt()?.place(e)??null,detach:e=>{let o=tf()?.config;return o?lte(e,o):e},removed:()=>tf()?.reload()};import{sharedSectionsOf as Lte}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Rte,scrollPreviewToTop as o5}from"efficient-easel/screen/lib/document/preview-dom";var ite=ef.mediaFields,dte=/video|poster|focal|phone/i;function fte(e){return(W(ite,e)??[]).find(o=>!o.includes("[]")&&!dte.test(o))??null}function cte(e){let o=fte(e.type);return e.type!==j?o&&dd(e.type,e.props,o)?{fromData:!0}:o:HC(e.props)?{fromData:!0}:o}var HH={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:cte,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var WH={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 Fu}from"react/jsx-runtime";import{useState as pte}from"react";import{Button as ute,Tooltip as mte,toast as $H}from"efficient-shell/ui";import{TemplateIcon as xte}from"efficient-easel/icons";import{useSettledAction as hte}from"efficient-easel/easel";import{useScreenDocument as Ite}from"efficient-easel/screen/components/ScreenDocumentContext";function UH({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=Ite(),[a,n]=pte(!1),s=async()=>{if(!a){n(!0);try{await r()?t():$H.error(f(zH))}catch{$H.error(f(zH))}finally{n(!1)}}},l=hte({onPress:()=>{s()},busy:a});return Fu(mte,{side:"bottom",content:e?f("Save this website as a platform template"):f(o),children:Fu("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:Fu(ute,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:Fu(xte,{size:15}),children:f("Save as Template")})})})}var zH="Your last changes did not save, so the template was not made. Try again.";var gte="Save your page changes first";function jH(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:gte}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var GH="storefront-editor:save-as-template";import{phoneKey as yte,tabletKey as bte}from"efficient-easel/draw";var Ste=[mr.top,bte(mr.top),yte(mr.top)],Bu="ContactLocations",KH="ContactRouting",qH="CityPictures",VH="CityMaps",wte=[{key:qH,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:VH,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function YH(e=ma,o=Zh){let t=ub.find(r=>r.sections.some(a=>a.type===KH))?.key;return!e.includes(Bu)||!t?[]:wte.filter(r=>!(o&&r.key===qH)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:KH,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Or(Bu);if(!i)return null;let d=ms(),c=Xl(Bu,i,s)(l.nodeDefaults,l.newNodeId,d);if(!c||!(o&&r===VH))return c;let x=Xl(Bu,i,0)(l.nodeDefaults,h=>`${h}-above`,d),m=Object.fromEntries(Ste.filter(h=>x?.props[h]!==void 0).map(h=>[h,x.props[h]]));return{...c,props:{...c.props,...m}}}}))}function XH(e=ma,o){return[...YH(e,o)]}function ZH(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Qn(e);if(n)return n(o,t,ms());if(mS(e)&&a(j)&&a(Za)){let l=W(It,e);return{type:j,props:{...o(j),id:t(j),direction:"column",name:`${r(e)} section`,content:[{type:Za,props:{...o(Za),id:t(Za),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...sl(e)!==sl(Za)?{eyebrowLook:sl(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...JH(e,t)}}]}}}if(W(ot,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=JH(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function JH(e,o){return e==="Cards"?{template:fS(t=>o(t))}:e===cS?{template:pS(t=>o(t))}:{}}import{useEffect as Cte,useState as kte}from"react";import{useEaselSession as vte}from"efficient-easel/screen/lib/session-context";function QH(){let e=vte().chrome?.products?.list,[o,t]=kte(null);return Cte(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function d5({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=iA(),a=l5().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=hs(i=>{i&&(o({kind:"ticker",heroId:i}),Rte(i))},[o]);return Wt(()=>{t(s)},[s,t]),Wt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let c=String(i.props.id);return i.type==="Hero"&&sh(i.props)&&io(n5,{icon:io(Ba,{type:"ticker",size:13}),name:f(va),onSelect:()=>l(c),selected:s===c,rowProps:{onClick:d(()=>l(c))},words:a})}}}function f5({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=tu(),a=l5().tree,{appState:n,config:s}=s5(m=>m),l=Pte({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=fa.find(m=>wl[m]===i.kind),c=d&&"nodeId"in i?ca(String(i.nodeId),d):null,x=hs(m=>{let h=rc(m);if(!h)return;let{data:g,config:k}=l.current,O=Bte(g,k,{kind:"node",id:h.nodeId});if(!O)return;let T={kind:wl[h.part],nodeId:h.nodeId};o({index:O.index,zone:O.zone},T)},[o]);return Wt(()=>{t(c)},[c,t]),Wt(()=>{r(x)},[r,x]),{partRows:(m,{rowClick:h})=>{let g=String(m.props.id),k=BO(m);if(k.length===0)return null;let O=P=>{let I=ca(g,P.part);return io(n5,{icon:io(Ba,{type:P.part==="media"?"heroMedia":"heroImage",size:13}),name:f(P.label),onSelect:()=>x(I),selected:c===I,rowProps:{onClick:h(()=>x(I))},words:a},I)},[T,...L]=k;return Li(a5,{children:[O(T),L.length>0&&io(Fte,{children:L.map(O)})]})}}}function c5(e,o){return{partRows:(t,r)=>Li(a5,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Dte(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=Au(),{hasPreviewLink:c}=t,x=To(i5()).preview?.draftLink,m=xH(e.data),h=jH({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),g=hs(()=>{!a||!r||i(GH,{siteId:a,slug:r})},[i,a,r]),k=dH({pageSlug:r,siteId:a,token:d}),O=o.previewHref?.(r)??k;return{barLead:()=>h.visible&&io(UH,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:g}),barView:()=>c&&r&&io(pH,{liveHref:O,pageId:n??null,draftLink:x}),mainAction:m}}function Nte(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=Au(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=P=>o.setView(P),[c,x]=e5(LP[0].id),[m,h]=e5(!1),{surface:g,setSurface:k}=HN(),O=()=>{if(l){d("styles"),o.reveal(),o5();return}e.show(Ay),e.reveal(),o5()},T={id:"pages",label:f("Pages"),icon:io(Ote,{}),panel:({onHide:P})=>io(EN,{activeSurface:g,onPreviewSurface:k,onNavigate:I=>{k(null),s(r?{kind:"template",id:r,pageSlug:I}:{kind:"page",slug:I,siteId:a??void 0})},onClose:P})},L=[];return!l&&i&&L.push({id:"appearance",label:f("Appearance"),icon:io(_te,{}),active:e.kind==="website",onSelect:O}),l&&L.push({id:"styles",label:f("Styles"),icon:io(Ete,{}),panel:({onHide:P,notify:I})=>io(g2,{tokenRef:n,siteId:a??void 0,onClose:P,onNotify:I,tab:c,onTabChange:x,revealPageGroup:m,onPageGroupRevealed:()=>h(!1)})}),{railLead:[T],railTrail:L,resolveLeftView:P=>RH(P,l),openSettings:O,openStyles:()=>{x(AP),d("styles")},openPageStyles:l?()=>{x(uf),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(s2),e.reveal()}:void 0}}function Mte(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=Au(),a=s5(s=>s.config),n=i5();Wt(()=>(zm({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>zm(null)),[e,o,t,a]),Wt(()=>{let s=Yt();if(!s||!r)return;let l=!1;return Lte(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function p5(){let e=xf();return hs(o=>{s0(o,e)},[e])}function Hte(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;Wt(()=>{EH(s?.type==="BookingBox"&&s.props.region==="confirm"?_H(l(String(s.props.id))):null)},[s?.props.id]);let i=D2(e,o),{capabilities:{hasSiteSettings:d}}=Au();Mte();let{chat:c,setChat:x,setSelected:m,setSelectHandler:h}=ou(),g=hs(()=>n(l2),[n]),k=a==="chat";Wt(()=>{m(k)},[k,m]),Wt(()=>{h(g)},[h,g]);let{setOpenHandler:O}=pi(),T=hs(()=>n(i2),[n]);Wt(()=>{O(T)},[O,T]);let L=c5(d5(e),f5(e)),P=Dte(o),I=Nte(e,r);SN(r);let C=t.device,E=p5();return{...L,...P,...I,hasOwnRows:B=>B.type===Eu,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:E,wrap:B=>io(ex.Provider,{value:!0,children:Li(Ate.Provider,{value:C,children:[B,io(CH,{})]})}),addPanelRow:B=>d?Li("div",{className:"sf-addside-sitewide",children:[io("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:io(Ba,{type:"chat",size:16})}),Li("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{B(),g()},children:[f("Live chat"),io("span",{className:"sf-addside-sitewide-desc",children:f("A chat bubble on every page")})]}),io(Tte,{checked:c.enabled,onChange:R=>x({enabled:R}),ariaLabel:f("Show the chat bubble on the whole site")})]}):void 0}}var t5=null,tb=new WeakMap;function Wte(e){let o=lw();if(!e||!o)return e;t5!==o&&(t5=o,tb=new WeakMap);let t=tb.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:f(r.label)})):null,spec:e.spec?{...e.spec,addLabel:f(e.spec.addLabel),...e.spec.childLabel?{childLabel:f(e.spec.childLabel)}:{}}:null},tb.set(e,t)),t}var $te={isLockedBlock:(e,o)=>Ap(e,o)||!!(o&&Yt()?.heldElsewhere(o.props.id)),duplicateBlocked:wu,nestDepth:(e,o,t)=>o===yd?bd(e,t):0,newSectionNode:ZH,canAddTo:(e,o,t,r)=>Wte(TH(e,o,r,t)),blockIsOffered:eL,slotsOf:OH,resolveOnInsert:!0},zte=new Proxy(WH,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?f(t):t}}),Ute={labelAtLevel:(e,o,t)=>f(Ru(e,o,t)),descriptions:zte,categoryLabel:e=>{let o=kH(e);return o===void 0?void 0:f(o)},firstSection:vH,blockRowName:FH,rowName:Lp,plainText:Va,Icon:Ba,Thumbnail:h2,useProducts:QH,presets:XH()},jte={desktop:2e3,tablet:800,mobile:390},r5="desktop",Gte={options:RN,initial:r5,fluid:r5,fluidMin:xt,widths:jte,hidesPerView:!0},Kte={read:AH,write:e=>LH(e),forSelection:(e,o)=>DH(e,o)},qte={first:Wo,last:Be,firstGroup:Ro,lastGroup:eo,isSectionGroup:Vk,sectionGroupZone:Yk,panelOf:e=>e===Wo?n2:null,get sharedReach(){return Ea()?Yte:void 0},get shared(){return Yt()?MH:void 0},get groupTab(){return Ea()?VM:void 0},get groupBadge(){return Ea()?Oy({type:eo})??void 0:void 0},get changeNotice(){return Ea()?YM():void 0},get band(){return Ea()?Vte:void 0},get groupAccepts(){return Ea()?Zk:void 0}},Vte={foldable:!0},Yte=e=>Oy(e)??NH(e);function Xte(e){return{...c5(d5(e),f5(e)),onCopyItem:p5(),openSettings:()=>e.show(Ay)}}function Jte(e,o){K2(e,o),aH()}var q4e={useOwnerName:Sn,useDocumentLabel:c0,useBridges:Hte,useStandaloneBridges:Xte,useDocumentPass:Jte,blockRules:$te,blockLook:Ute,devices:Gte,leftView:Kte,pinned:qte,Canvas:mN,canvasDrag:{media:HH},Inspector:f2};export{RI as a,Dt as b,Nt as c,oo as d,Lce as e,ih as f,Fme as g,$l as h,zl as i,i1 as j,d1 as k,Hc as l,Bme as m,tU as n,f1 as o,Ame as p,$A as q,nCe as r,zA as s,iCe as t,ch as u,$ce as v,hc as w,oT as x,tT as y,GE as z,O0 as A,ta as B,Dae as C,Nae as D,Mae as E,E0 as F,Hae as G,jo as H,vn as I,no as J,ga as K,Y as L,Nn as M,Q as N,X as O,te as P,re as Q,de as R,bpe as S,fe as T,Hn as U,Wn as V,Bl as W,Al as X,YE as Y,kpe as Z,N$ as _,XE as $,Tpe as aa,Ope as ba,JE as ca,Px as da,V0 as ea,c6 as fa,sl as ga,Y0 as ha,$ne as ia,uh as ja,Bpe as ka,Ape as la,Lpe as ma,Rpe as na,Dpe as oa,Npe as pa,dne as qa,Bf as ra,al as sa,fne as ta,cne as ua,M0 as va,Sx as wa,j4 as xa,G4 as ya,pne as za,K4 as Aa,une as Ba,HT as Ca,nie as Da,VT as Ea,sie as Fa,lie as Ga,iie as Ha,kc as Ia,Ih as Ja,o_ as Ka,vc as La,Vpe as Ma,X$ as Na,J$ as Oa,Z$ as Pa,Ype as Qa,Ho as Ra,wa as Sa,Gn as Ta,Lue as Ua,Rue as Va,Due as Wa,tO as Xa,Jf as Ya,C3 as Za,hie as _a,$_ as $a,z_ as ab,U_ as bb,eme as cb,K_ as db,Nme as eb,Mme as fb,$c as gb,p1 as hb,dl as ib,Z0 as jb,Q0 as kb,Ex as lb,sa as mb,uT as nb,kse as ob,vse as pb,Pse as qb,ul as rb,Qo as sb,Ase as tb,hne as ub,Ene as vb,Cx as wb,_ne as xb,aa as yb,Af as zb,qe as Ab,jse as Bb,yT as Cb,ST as Db,wT as Eb,$e as Fb,Ee as Gb,jc as Hb,w1 as Ib,axe as Jb,Gc as Kb,C1 as Lb,dxe as Mb,L1 as Nb,vxe as Ob,Pxe as Pb,Txe as Qb,qh as Rb,Oxe as Sb,Exe as Tb,R1 as Ub,AU as Vb,Xc as Wb,phe as Xb,ec as Yb,R3 as Zb,Vx as _b,jU as $b,Phe as ac,fF as bc,cF as cc,The as dc,Ohe as ec,rx as fc,W5 as gc,ax as hc,jP as ic,Whe as jc,CF as kc,kF as lc,sIe as mc,IIe as nc,gIe as oc,yIe as pc,uI as qc,BF as rc,lj as sc,ij as tc,Zc as uc,wIe as vc,CIe as wc,XIe as xc,eB as yc,JIe as zc,oB as Ac,QIe as Bc,dB as Cc,fB as Dc,zj as Ec,mB as Fc,xge as Gc,tp as Hc,kge as Ic,Vl as Jc,Tge as Kc,bB as Lc,Ege as Mc,SB as Nc,wB as Oc,Bge as Pc,nl as Qc,f6 as Rc,rp as Sc,PB as Tc,Dge as Uc,Nge as Vc,Mge as Wc,Hge as Xc,rr as Yc,jge as Zc,ap as _c,Vge as $c,sp as ad,Ane as bd,Lne as cd,na as dd,Rne as ed,hx as fd,Of as gd,g0 as hd,kr as id,Sl as jd,kde as kd,vde as ld,Pde as md,Tde as nd,tW as od,Ode as pd,rc as qd,Cl as rd,Bde as sd,eh as td,MO as ud,HO as vd,Jx as wd,dW as xd,Ade as yd,ac as zd,kl as Ad,sc as Bd,Lde as Cd,Rde as Dd,nc as Ed,Dde as Fd,Nde as Gd,UO as Hd,vl as Id,Pl as Jd,ic as Kd,GO as Ld,Rn as Md,KO as Nd,dc as Od,fc as Pd,cc as Qd,qO as Rd,VO as Sd,YO as Td,XO as Ud,JO as Vd,oE as Wd,tE as Xd,mfe as Yd,xfe as Zd,hfe as _d,Ife as $d,gfe as ae,BW as be,AW as ce,yfe as de,bfe as ee,Sfe as fe,aE as ge,wfe as he,Cfe as ie,RW as je,dE as ke,MW as le,cE as me,pE as ne,jf as oe,qW as pe,Yfe as qe,gE as re,tce as se,mce as te,xce as ue,gle as ve,ml as we,Cle as xe,kle as ye,RT as ze,Jl as Ae,Ht as Be,bL as Ce,Sp as De,Eke as Ee,_ke as Fe,Wke as Ge,$ke as He,gK as Ie,ZI as Je,EL as Ke,zke as Le,FL as Me,BL as Ne,NL as Oe,vK as Pe,OK as Qe,cve as Re,kve as Se,vve as Te,ti as Ue,Pve as Ve,Tve as We,og as Xe,Ove as Ye,hl as Ze,zx as _e,Yf as $e,tPe as af,Bn as bf,Rie as cf,Die as df,hO as ef,u7 as ff,BR as gf,ai as hf,v0e as if,T0e as jf,cg as kf,KR as lf,dp as mf,oSe as nf,aSe as of,iA as pf,kI as qf,dA as rf,fA as sf,lSe as tf,cA as uf,cp as vf,xSe as wf,uA as xf,hA as yf,mA as zf,vOe as Af,POe as Bf,TOe as Cf,Lp as Df,gD as Ef,wg as Ff,VOe as Gf,YOe as Hf,lV as If,iV as Jf,BEe as Kf,AEe as Lf,LEe as Mf,REe as Nf,Wp as Of,$p as Pf,n_e as Qf,zD as Rf,GD as Sf,KD as Tf,qD as Uf,J1e as Vf,Qp as Wf,_N as Xf,FN as Yf,AN as Zf,eu as _f,EFe as $f,_Fe as ag,ou as bg,PX as cg,WFe as dg,pi as eg,jFe as fg,HN as gg,wn as hg,N5 as ig,Ire as jg,gre as kg,dDe as lg,fDe as mg,cDe as ng,vE as og,qFe as pg,tu as qg,lre as rg,$5 as sg,z5 as tg,U5 as ug,qP as vg,Nre as wg,kf as xg,f4 as yg,c4 as zg,pae as Ag,ere as Bg,F4 as Cg,D0 as Dg,tne as Eg,rne as Fg,z4 as Gg,ane as Hg,nne as Ig,Ff as Jg,sne as Kg,_n as Lg,vT as Mg,PT as Ng,NT as Og,eie as Pg,oO as Qg,pie as Rg,rO as Sg,Yx as Tg,M3 as Ug,z3 as Vg,qie as Wg,Jye as Xg,fbe as Yg,mbe as Zg,VB as _g,ybe as $g,bbe as ah,Bbe as bh,Abe as ch,Kbe as dh,Xbe as eh,Yl as fh,p8 as gh,qSe as hh,owe as ih,gwe as jh,ywe as kh,Wwe as lh,AA as mh,are as nh,_Ae as oh,VN as ph,Be as qh,Su as rh,Pt as sh,S2 as th,Pi as uh,w2 as vh,C2 as wh,xMe as xh,hMe as yh,nH as zh,Jy as Ah,sH as Bh,TH as Ch,DHe as Dh,q4e as Eh};