efficient-storefront-blocks 0.125.6 → 0.125.8

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 (40) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/chunks/{CustomHtmlCodeWindow-KAHNIUZO.js → CustomHtmlCodeWindow-ZSVS5DI6.js} +1 -1
  3. package/dist/chunks/{EditorPreviewCheckout-M5LLO3H2.js → EditorPreviewCheckout-NDZUORUC.js} +1 -1
  4. package/dist/chunks/SiteEditorProvider-CIZSA67M.js +1 -0
  5. package/dist/chunks/{chunk-UREPZPIT.js → chunk-3LWDFU5Y.js} +1 -1
  6. package/dist/chunks/{chunk-FD3ICZTF.js → chunk-HOKKFWPX.js} +1 -1
  7. package/dist/chunks/{chunk-L6MXM22Q.js → chunk-ICWPUDN3.js} +1 -1
  8. package/dist/chunks/{chunk-SQ6D33WV.js → chunk-R3WKYZOZ.js} +1 -1
  9. package/dist/chunks/{chunk-7ARO3R4C.js → chunk-RCOLM57Z.js} +1 -1
  10. package/dist/chunks/chunk-SPLS5ZLA.js +337 -0
  11. package/dist/chunks/{chunk-COR5IL6E.js → chunk-Y7DFVCVM.js} +1 -1
  12. package/dist/chunks/{chunk-4SIPG47B.js → chunk-YU4MIT6K.js} +1 -1
  13. package/dist/chunks/{fitment-data-BQFU5HN3.js → fitment-data-ANJWNG4T.js} +1 -1
  14. package/dist/chunks/{section-css-style-VF2FOE3B.js → section-css-style-7ROA6NKG.js} +1 -1
  15. package/dist/editor/lib/document/blocks/service/SiteHeader/fields.js +1 -1
  16. package/dist/editor/lib/storefront-editor-words.d.ts +2 -0
  17. package/dist/editor/lib/storefront-editor-words.js +1 -1
  18. package/dist/index.js +26 -26
  19. package/dist/render/app/globals.css +12 -0
  20. package/dist/render/built-with.json +1 -1
  21. package/dist/render/components/BoxHeaderBar.d.ts +3 -1
  22. package/dist/render/components/BoxHeaderBar.js +1 -1
  23. package/dist/render/components/PublishedHeader.js +1 -1
  24. package/dist/render/lib/content/header-bar.d.ts +8 -0
  25. package/dist/render/lib/content/header-bar.js +1 -1
  26. package/dist/render/lib/document/blocks/service/SiteHeader/render.js +1 -1
  27. package/dist/render/lib/document/published-header-bar.d.ts +2 -0
  28. package/dist/render/lib/document/published-header-bar.js +1 -1
  29. package/dist/routine-index.json +1 -1
  30. package/dist/value-index.json +1 -1
  31. package/dist/words.d.ts +2 -0
  32. package/dist/words.js +1 -1
  33. package/package.json +2 -2
  34. package/dist/chunks/SiteEditorProvider-6P7LYLL2.js +0 -1
  35. package/dist/chunks/chunk-7SLHEYYR.js +0 -337
  36. /package/dist/chunks/{chunk-ECMYL3O7.js → chunk-3DDOV7FZ.js} +0 -0
  37. /package/dist/chunks/{chunk-UREPZPIT.js.LEGAL.txt → chunk-3LWDFU5Y.js.LEGAL.txt} +0 -0
  38. /package/dist/chunks/{chunk-SB3V6PTJ.js → chunk-RJM55KDO.js} +0 -0
  39. /package/dist/chunks/{chunk-7SLHEYYR.js.LEGAL.txt → chunk-SPLS5ZLA.js.LEGAL.txt} +0 -0
  40. /package/dist/chunks/{chunk-VYXOE5FY.js → chunk-SRHU2S3G.js} +0 -0
@@ -1,337 +0,0 @@
1
- import{$ as Qd,D as yk,E as Sk,F as Vd,G as bk,H as Tk,I as wr,J as Ok,K as Ek,L as _k,M as tt,N as Yd,O as vo,P as de,R as Xd,S as Cr,T as Zd,X as Ak,Y as Jd,Z as kr,_ as Fk,a as Go,b as qs,ba as Uv,c as Md,d as In,e as Vs,f as JC,fa as eP,g as gn,h as Hd,ha as oP,ia as _f,ja as OT,ka as ET,r as el}from"./chunk-L6MXM22Q.js";import{a as sP,d as uf,e as rt,f as mf,g as xf,h as yf,l as Nx}from"./chunk-VYXOE5FY.js";import{$ as xn,$a as rx,$c as ux,$e as hf,$f as kn,$h as rT,$j as En,A as xC,Aa as zC,Ab as Sn,Ac as Zk,Ad as _v,Ae as bt,Ah as tT,Aj as Ex,B as hC,Ba as UC,Bb as Qs,Bc as Wt,Bd as Av,Bf as SP,Bg as MP,C as Qo,Ca as jC,Cc as $e,Cd as Fv,Ce as ze,Cf as bx,Cg as HP,Cj as Pn,D as IC,Da as GC,Dc as vr,Dd as xx,De as wt,Df as bP,Dg as WP,Dj as pT,E as gC,Ea as KC,Eb as lx,Ec as fx,Ed as Bv,Ee,Ef as wP,Eg as $P,F as yC,Fa as qC,Fb as ta,Fc as Jk,Fd as hx,Fe as aP,Ff as CP,Fg as zP,Fk as Of,G as SC,Ga as yr,Gb as qd,Gc as Qk,Gd as Lv,Gf as kP,Gg as kx,Gj as _x,Gk as Ef,H as bC,Ha as VC,Hb as hk,Hc as ev,Hd as Rv,Hg as UP,Hj as il,Hk as Lx,I as wC,Ib as Ik,Ic as sf,Id as Dv,If as vP,Ig as vx,Ik as kT,J as CC,Ja as YC,Jb as gk,Jc as tl,Jd as $t,Je as Ix,Jg as or,Jk as fa,Ka as Wd,Kb as ef,Kc as ov,Kd as Nv,Kg as Px,Kj as Tn,Kk as vT,L as kC,La as Ys,Lb as Rk,Lc as tv,Ld as sa,Lg as bf,Lk as PT,M as vC,Ma as $d,Mb as of,Mc as rv,Md as Mv,Me as sl,Mg as jP,Mj as uT,Mk as TT,N as PC,Na as QC,Nb as dx,Nc as lf,Nd as Cn,Ng as GP,O as Fd,Ob as tf,Oc as av,Og as KP,Ok as _T,P as TC,Pc as nv,Pd as Qt,Pf as PP,Pg as qP,Pk as Rx,Q as OC,Qc as cx,Qd as Hv,Qe as nP,Qf as TP,Qg as VP,Ra as ek,Rc as sv,Rd as nl,Re as gx,Rf as OP,Rk as AT,Sa as ok,Sc as px,Sd as Wv,Se as lP,Sf as wx,Sk as FT,Ta as Xs,Tb as bn,Td as la,Tf as EP,Tg as YP,Tk as BT,Uc as lv,Ud as $v,Uf as _P,Ug as XP,Uj as mT,Uk as LT,V as Xm,Va as yn,Vc as iv,Vf as Cx,Vj as Ax,Vk as RT,Wa as tk,Wb as Dk,Wc as dv,Wd as df,Wj as xT,Wk as DT,X as js,Xa as zd,Xb as Nk,Xc as fv,Xd as Tr,Xi as da,Xj as hT,Y as Bd,Ya as rk,Yb as Mk,Yc as cv,Yd as zv,Z as Ao,Za as Zs,Zb as ol,Zc as ra,Ze as iP,Zf as er,Zi as tr,Zj as Tf,_ as Zm,_a as ak,_c as pv,_e as dP,_j as On,a as _o,aa as EC,ab as nk,ad as uv,af as fP,ah as wf,ai as aT,ak as dl,b as pn,ba as _C,bb as ax,bd as mv,bf as yx,bg as AP,bk as _n,ca as AC,cb as sk,cd as xv,cf as cP,cg as FP,ck as IT,d as Zw,da as FC,db as nx,dd as hv,df as pP,dg as Sf,e as Km,ea as BC,ed as Iv,ee as jv,ef as uP,eg as Or,ej as vf,f as Jw,fa as Jm,fb as lk,fd as Pr,ff as mP,fg as BP,g as c,gb as ik,gd as rl,gf as If,gh as ZP,gj as lT,h as Nt,ha as LC,hd as aa,he as Gv,hg as vn,i as mn,ia as Ld,ib as Ud,ic as wn,id as gv,ie as Kv,if as xP,ih as JP,j as zs,jb as dk,jc as Ht,je as qv,jk as gT,k as Do,kb as fk,kc as Hk,kd as na,ki as nT,kk as yT,l as Us,lb as ck,lc as Wk,ld as al,lf as Sx,li as sT,ll as Dx,mb as pk,mc as $k,md as yv,n as sC,nb as jd,nc as zk,nd as Sv,o as lC,ob as uk,oc as Uk,oe as No,p as iC,pc as rf,pd as bv,pe as to,q as dC,qc as af,qd as wv,qf as hP,qg as Er,r as fC,rb as mk,rc as jk,rd as Cv,re as ff,rf as IP,rg as LP,rk as Fx,s as cC,sb as Sr,se as Vv,sf as gf,sg as RP,sh as Tx,sj as iT,t as pC,tb as Gd,tc as Gk,td as kv,te as Yv,tf as gP,tg as DP,th as Cf,tk as ST,tl as NT,u as Ad,ub as Kd,uc as Kk,ud as vv,ue as Xv,uf as yP,uh as ia,uk as bT,ul as MT,v as gr,va as MC,vb as xk,vc as qk,vd as Pv,ve as Zv,vh as kf,vj as dT,vk as wT,vl as Af,wa as HC,wb as mo,wc as nf,wd as Tv,we as cf,wj as Pf,wl as HT,x as Ym,xa as WC,xb as sx,xc as Vk,xd as mx,xe as Jv,xg as NP,xh as QP,xj as Ox,xk as CT,y as uC,ya as $C,yb as Js,yc as Yk,yd as Ov,ye as Qv,yh as eT,yj as fT,yl as An,z as mC,za as ox,zb as Mt,zc as Xk,zd as Ev,zh as oT,zj as cT,zk as Bx,zl as Ff}from"./chunk-7ARO3R4C.js";import{a as aC,b as _d,c as nC,g as Bk,h as ix,i as Lk}from"./chunk-COR5IL6E.js";import{$ as ib,$a as Eb,$c as ko,$d as dw,$e as zm,$g as Vm,A as so,Ae as Hm,Af as jm,B as en,Bb as Ns,Bd as Nm,Be as uw,Ca as ye,Cb as jb,D as Ls,Dd as aw,De as Wm,E as td,Ed as xd,F as Bt,Fg as Uw,G as on,Ga as Zo,Gb as pd,Gd as Jo,Gg as jw,H as We,Ha as gt,Hc as Xb,Hd as Ro,He as gd,Hf as Tw,Hg as Gw,I as Ye,Ia as gm,Id as oo,Ie as yd,Ig as Kw,J as tn,Ja as ym,Jc as Fm,Jd as Rt,Je as mw,Jh as tx,K as rd,Kd as Zt,Ke as Sd,Kf as Jt,Kh as hn,L as ob,La as Sm,Lb as Gb,Ld as St,Le as bd,Lg as qw,Lh as XC,M as tb,Ma as bm,Md as ln,Me as xw,Mh as et,Nd as nw,Ne as hw,Nh as ot,O as rb,Od as dn,Oe as wd,Og as Vw,Oh as Nd,P as ad,Pd as sw,Pe as Cd,Pg as Yw,Ph as ZC,Q as ab,Qa as wm,Qb as ud,Qc as Zb,Qe as oa,Qf as Ow,Qh as Ks,R as Zr,Ra as bb,Re as Iw,Rg as Xw,S as nb,Sa as wb,T as sb,Ta as Ge,Tb as Kb,Td as ea,Tg as Qw,U as Rs,Ua as Cb,Ub as qb,Ud as lw,Ug as eC,V as hm,Va as dd,Vd as iw,Ve as gw,W as Ce,Wa as kb,Wb as Vb,Wd as fn,Wf as Ew,Wg as Ir,X as G,Xa as vb,Xc as U,Xd as Hs,Xf as _w,Xh as wk,Y as lb,Ya as Pb,Yb as Em,Yc as oe,Yd as Ws,Ye as Dt,Yf as Aw,Yg as oC,Za as Tb,Zc as Bm,Zd as Mm,Ze as $s,Zf as Fw,Zg as qm,_ as nd,_a as Ob,_c as L,_e as $m,_g as tC,a as Qa,ab as _b,ad as Yt,ae as fw,af as yw,ah as Ed,b as po,ba as db,bb as Ab,bd as Jb,be as cw,bf as Sw,bg as Bw,c as no,ca as sd,cb as fd,cd as M,cf as kd,cg as Lw,ch as rC,ci as Ck,d as qt,da as fb,db as cd,dd as md,de as pw,df as bw,di as br,ea as cb,eb as Fb,ed as Lo,eg as Rw,f as jo,fa as Im,fb as Bb,fc as _m,fd as Qb,fe as hd,fg as Dw,fi as kk,g as Bs,ga as pb,gd as yt,gf as ww,gg as Td,gi as vk,h as qS,ha as ub,hb as Lb,hd as Lt,he as Id,hf as vd,hg as Nw,hi as Pk,i as VS,ia as mb,ib as Rb,id as Lm,if as Cw,ig as Od,j as YS,jb as Cm,jd as xr,jf as Um,jg as Gm,k as XS,kb as Db,kd as Xt,kf as kw,la as xb,lb as Nb,ld as ew,lf as vw,li as Po,ma as hb,mb as km,mf as Pd,mg as Mw,na as Ib,nb as an,nd as Be,nf as cn,ng as Hw,o as ZS,ob as Jr,od as Qr,of as un,pa as gb,pb as vm,pd as Ms,pf as hr,pi as ll,qb as Pm,qd as nn,qg as Ww,qh as Qm,ra as yb,rb as Tm,rd as ow,rg as $w,rh as Rd,s as JS,sa as ld,sb as Mb,sd as Rm,sh as RC,ta as Sb,tb as Hb,td as sn,tf as Pw,th as ex,u as De,ua as id,ub as Wb,uc as Am,ud as Dm,ug as zw,uh as DC,v as QS,vb as Om,w as od,wb as $b,wc as Yb,wh as Dd,x as eb,xb as Vt,xh as NC,ya as Ds,yb as zb,yd as tw,yh as Gs,z as Te,za as rn,zb as Ub,zd as rw}from"./chunk-SQ6D33WV.js";import{a as z,b as uo}from"./chunk-SB3V6PTJ.js";import{c as tP,d as rP,e as pf}from"./chunk-ECMYL3O7.js";import{jsx as Mx,Fragment as D4,jsxs as N4}from"react/jsx-runtime";import{createContext as M4,useContext as H4}from"react";var W4={mirrorHostStyles:!0,css:null,fontHrefs:[]},WT=M4(W4);function Mae({value:e,children:o}){return Mx(WT.Provider,{value:e,children:o})}function fl(){return H4(WT)}function $T(){let{css:e,fontHrefs:o}=fl();return N4(D4,{children:[o.map(t=>Mx("link",{rel:"stylesheet",href:t},t)),e?Mx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as $4}from"react/jsx-runtime";import{createContext as z4,useContext as U4}from"react";var zT=z4(void 0);function zae({metadata:e,children:o}){return $4(zT.Provider,{value:e,children:o})}var UT=()=>U4(zT);import{jsx as co,Fragment as y4,jsxs as Xi}from"react/jsx-runtime";import{useCallback as Ts,useEffect as Kt,useRef as fae,useState as x4}from"react";import{SettingsSwitch as cae}from"efficient-easel/panel";import{PagesIcon as pae,StylesIcon as uae}from"efficient-easel/rail";import{PaletteIcon as mae}from"efficient-shell/icons/efficient";import{Subtree as xae,TreeRow as S4}from"efficient-easel/tree";import{useEasel as b4}from"efficient-easel/easel";import{toItemSelector as hae}from"efficient-easel/node-ops";import{useEaselStrings as w4}from"efficient-easel/strings";import{createContext as j4,useContext as G4}from"react";var Hx=j4(!1),Gae=()=>G4(Hx);import{useMemo as K4,useRef as q4}from"react";import{useEaselApi as V4}from"efficient-easel/easel";import{useSectionOps as Y4}from"efficient-easel/screen/lib/document/use-section-ops";function Bf(){let e=V4(),o=Y4(),t=q4(o);return t.current=o,K4(()=>({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 h6}from"efficient-easel/draw";import{insertAt as I6,moveTo as g6,removeAt as y6}from"efficient-easel/fields";import{useSyncExternalStore as d6}from"react";import{isNodeList as jT}from"efficient-easel/data";var GT="Flex";function Fn(e,o){return Dt(e)?typeof e?.[jo]=="string"?Wx(o?.[jo]):"":Wx(e?.[jo])}var Wx=e=>typeof e=="string"?e.trim():"",X4=e=>e.type===so&&Array.isArray(e.props?.[Wm])&&e.props[Wm].some(o=>Wx(o?.[jo])!==""),Z4=new Intl.NumberFormat("en-US");function J4(e){return/^\d+$/.test(e)?Z4.format(Number(e)):e}function one(e,o){let t=o?o.find(r=>r.key===e)?.value:JS(Bs).find(r=>r.key===e)?.value;return t===void 0?null:J4(t)}var Q4={[jo]:"any"};function $x(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Fn(t)!==""||o&&Fn(t,Q4)!==""),a=o||X4(e),n=Ye(e,l=>We(l,i=>{let d=$x(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==GT)return{node:n===t?e:{...e,props:n},names:r};let s=De(n);if(r&&!s&&(n={...n,[no]:Bs}),!r&&s===Bs){let{[no]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function KT(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of on(r??{})){let n=KT(a,o,r.type===GT?r:t);if(n!==void 0)return n}}}function tne(e,o){if(!jT(e))return!0;let t=KT(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=De(t.props);return!r||r===Bs}function qT(e){let o=e?.content;if(!jT(o))return e;let t=o.map(r=>$x(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function VT(e){return $x(e).node}import{decodePartId as f6}from"efficient-easel/draw";function Bn(e,o){let t=Kk(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?bT(t,o.index):null:qk(e)?.[o.rowKey]??null}function Lf(e,o,t){let r=e.node.props,{key:a,row:n}=Ht(e.propKey),s=n?Yk(r,a,n,e.kind,o):Gk(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as ZT}from"efficient-easel/draw";import{parseOption as e6}from"efficient-shell/format";var zx=e=>String(e+1).padStart(2,"0"),o6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Ux="two-digit",YT=e=>e6(o6,Ux,e),Rf=(e,o)=>e==="plain"?`${o+1}.`:zx(o);var Kx="Contents",jx="Flex",XT="Text",t6="numberForm",r6="_contentsEntries",a6="_kickerNumber",JT="data-sf-kicker-number",n6=e=>ZT(e).text.trim(),QT=e=>la(e?.anchor),Gx=e=>String(e.props?.id??""),s6=e=>!ZT(e.props?.text).hidden&&!Fn(e.props)&&!Dt(e.props),cl=e=>on(e);function e0(e){for(let o of cl(e))for(let t of o){if(Qt(t.props??{}))continue;if(t.type===XT&&s6(t))return t;if(t.type===XT)continue;let r=e0(t);if(r)return r}}function o0(e){return cl(e).some(o=>o.some(t=>t&&!Qt(t.props??{})&&(t.type===Kx||o0(t))))}var t0=e=>e.type===jx&&kn(jx,e.props?.direction)==="row";function r0(e){return cl(e).some(o=>o.some(t=>t&&!Qt(t.props??{})&&(t.type===Kx||!t0(t)&&r0(t))))}function l6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||Qt(n.props??{}))continue;if(n.type===Kx){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(t0(n)&&r0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of cl(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===jx&&QT(n.props)&&s&&!o0(n)){s.push({box:n,kicker:e0(n)});continue}for(let l of cl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function i6(e){return e.map(o=>({label:o.kicker?rn(n6(o.kicker.props?.text)):"",anchor:QT(o.box.props)}))}function qx(e){let o=e?.length?l6(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=Gx(a.contents);n&&t.set(n,i6(a.sections));let s=YT(a.contents.props?.[t6]);a.sections.forEach((l,i)=>{let d=l.kicker?Gx(l.kicker):"";d&&r.set(d,Rf(s,i))})}return{entries:t,numbers:r}}var bne=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function a0(e){let o=e;if(!o?.content?.length)return e;let t=qx(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=Ye(s,h=>We(h,n)),i=l.props??{},d=l!==s,f=Gx(s),x=f?r.get(f):void 0;x&&(i={...i,[r6]:x},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[a6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var c6=`[${JT}]`,p6=["bold","italic","underline","strike","link","sup","sub"],u6=["bullet","number"];function Xx(e,o){return e?[...p6,...o?u6:[]]:[]}function n0(e,o){let t=f6(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}=Ht(a),d=o.components[n.type]?.fields?.[l],f=i?Bn(d,i):d,x=rf(f);if(!x)return null;let u=n.props??{};if(rT(u)!==null||!i&&kd(n.type,u,l)||n.type==="Text"&&l==="text"&&Fn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?nf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:x,stored:h,offPage:vf(f),panelOnly:Uk(f)}}function Df(e,o){let t=n0(e,o);if(!t)return null;let{text:r,hidden:a}=da(t.stored);if(!nv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=af(t.kind);return{partId:e,value:r,rules:ld,multiline:n,skip:c6,offered:Xx(t.kind!=="plainText",n),write:s=>{let l=n0(e,o);l&&Lf({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function Zx(e,o,t){return e?.isConnected&&e.getAttribute($e)===t?e:o?.querySelector(`[${$e}="${Nf(t)}"]`)??null}function Nf(e){return e.replace(/["\\]/g,"\\$&")}function s0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Vx=null,Yx=new Set;function m6(){return Vx}function Jx(e){if(e!==Vx){Vx=e;for(let o of Yx)o()}}function x6(e){return Yx.add(e),()=>{Yx.delete(e)}}function l0(){return d6(x6,m6,()=>null)}function i0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=xw(t.type);return!r||De(t.props)?null:{node:t,rows:r}}function S6(e,o){let t=i0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=bw(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:h6(e.ownerId,wn(t.rows,{index:e.index,rowKey:a}))}function Mf(e,o){let t=S6(e,o);return t?Df(t,o):null}function d0(e,o){return Mf(e,o)?.value}function f0(e,o){let t=Mf(e,o);return t?(t.write(e.text),!0):!1}function c0(e,o){let t=i0(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=I6(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=g6(n,s,i);break}case"delete":l=y6(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as Pe,Fragment as kZ,jsxs as Fu}from"react/jsx-runtime";import{Fragment as vZ,useEffect as MM,useMemo as HM,useRef as PZ,useState as Ha}from"react";import{useScreenDocument as jM}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as _y}from"efficient-easel/draw/client";import TZ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as OZ}from"efficient-easel/chrome";import{Input as EZ,LoadingSpinner as _Z,PopupMenu as AZ,PopupMenuItem as WM,toast as $M}from"efficient-shell/ui";import{LayersTree as FZ,TreeGroupLabel as BZ,TreeRow as zM,TreeRowAction as Bu}from"efficient-easel/tree";import{AddIcon as LZ,DuplicateIcon as RZ,PageIcon as DZ,SettingsIcon as NZ}from"efficient-easel/icons";import{PagesIcon as MZ}from"efficient-easel/rail";import{useEaselHost as HZ}from"efficient-easel/screen/lib/host";import{useEaselSession as Ay}from"efficient-easel/screen/lib/session-context";import{useCallback as Hf,useEffect as b6,useSyncExternalStore as w6}from"react";import{useScreenDocument as x0}from"efficient-easel/screen/components/ScreenDocumentContext";var p0=new WeakMap;function pl(e){let o=p0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},p0.set(e,o)),o}function Qx(e,o){e.rows=o;for(let t of e.listeners)t()}var Wf=new Set;function $f(e,o){o?Wf.add(e):Wf.delete(e)}function u0(e){let o=pl(e),t=e.listPages().then(r=>Qx(o,Wf.size?r.filter(a=>!Wf.has(a.id)):r),()=>Qx(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var m0=()=>null,C6=()=>()=>{};function ul(){let{adapter:e,ready:o}=x0(),t=Hf(l=>{let{listeners:i}=pl(e);return i.add(l),()=>i.delete(l)},[e]),r=Hf(()=>pl(e).rows,[e]),a=w6(o?t:C6,o?r:m0,m0);b6(()=>{if(!o)return;let l=pl(e);l.rows===null&&!l.loading&&u0(e)},[e,o]);let n=Hf(()=>o?u0(e):Promise.resolve(),[e,o]),s=Hf(l=>Qx(pl(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function k6(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function h0(){let{currentSlug:e}=x0(),{rows:o}=ul();return k6(o,e)}import{canDuplicatePage as WZ,DuplicatePageDialog as $Z}from"efficient-easel/page-copy";import{jsx as Eo,jsxs as _M}from"react/jsx-runtime";import{useEffect as lZ,useId as iZ,useMemo as dZ,useRef as fZ,useState as Ty}from"react";import{useScreenDocument as cZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as pZ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as AM}from"efficient-easel/page-copy";import{AddIcon as uZ}from"efficient-easel/icons";import{Button as mZ,Dialog as xZ,EmptyState as hZ,LoadingSpinner as IZ,Paragraph as gZ,SidebarLayout as yZ,SidebarNavItem as Oy,Title as SZ,toast as FM}from"efficient-shell/ui";import{jsx as vt,jsxs as YL}from"react/jsx-runtime";import{useEffect as c7,useState as bg}from"react";import{CanvasFrame as p7}from"efficient-easel/easel";import{Button as u7,Card as m7,FitFrame as x7,Text as h7}from"efficient-shell/ui";import{jsx as b0,Fragment as D6,jsxs as N6}from"react/jsx-runtime";import{useEffect as w0,useLayoutEffect as M6}from"react";var zf="data-theme",I0="light";function v6(e){return e.getAttribute(zf)===I0?"light":"dark"}function P6(e,o){return v6(e)===o?!1:(o==="light"?e.setAttribute(zf,I0):e.removeAttribute(zf),!0)}function T6(e){return Nx(e).getItem(jm)}function Xne(e,o){Nx(e).setItem(jm,o)}function O6(e,o,t=new Date().getHours()){return Tw({mode:o.mode,override:T6(e),switchShown:o.switchShown,hour:t})}function g0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>P6(t,O6(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[zf]}),()=>n.disconnect()}var E6="style";function _6(e,o){let t=Od(o),r=!1;for(let a of Nw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function y0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>_6(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[E6]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as A6,VIEW_TABLET_MIN as F6}from"efficient-easel/screen/lib/content/view-tiers";var rr={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},Ko=rr,B6=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),L6=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(B6([Ko.fit,Ko.fitTablet,Ko.fitPhone]))};
8
- var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
9
- var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Vt};
10
- var TABLET_MIN = ${F6}, DESKTOP_MIN = ${A6};
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(Ko.fitTablet)}, ${JSON.stringify(Ko.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(Ko.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(Ko.fit)}, ${JSON.stringify(Ko.fitTablet)}, ${JSON.stringify(Ko.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(Ko.min)}, ${JSON.stringify(Ko.minTablet)}, ${JSON.stringify(Ko.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(Ko))},
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);`,R6="storefront-fit-words";function S0(e){let o=e.createElement("script");return o.id=R6,o.textContent=L6,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var H6=`
303
- [${$e}][${$e}] { cursor: text; }
304
- `;function Uf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=Po(),n=Jt(t);return w0(()=>{if(o)return g0(o,{mode:r,switchShown:a})},[o,r,a]),w0(()=>{if(o)return y0(o,n)},[o,n]),M6(()=>{if(o)return S0(o)},[o]),N6(D6,{children:[b0($T,{}),b0("style",{children:H6}),e]})}import{jsx as qB}from"react/jsx-runtime";import{memo as V8}from"react";import{Render as Y8}from"efficient-easel/render";import{jsx as Ln}from"react/jsx-runtime";import{createContext as W6,useContext as $6,useMemo as z6}from"react";var eh=W6(null);function U6({children:e}){return Ln(eh.Provider,{value:"first",children:e})}function Gf({children:e}){return Ln(eh.Provider,{value:"below",children:e})}function ml(){return $6(eh)}function oh(){return ml()==="below"?{loading:"lazy"}:{}}function Kf(e){let o=oh();return Ln("img",{...e,...o})}var C0="laterSlideIds",j6=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function k0(e){return hf(e?.filter(o=>!o?.type||!j6.has(o.type)))}function jf(e,o=[]){if(Array.isArray(e))for(let t of e)jf(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))jf(r,o)}return o}function v0(e,o){let t=o?.type,r=o?.props?.id;return z6(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Ln(U6,{children:Ln(n,{...l})}):Ln(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function P0(e){return e.props?Ye(e,o=>{let t=We(o,P0),r=e.type===NC&&t.every(a=>a.type===Rd)?RC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function T0(e){return rd(e,o=>We(o,P0))}var G6="Flex",O0="ListSearch",E0=["FAQ"],K6="listKey";function _0(e,o){let t={search:e.type===O0,list:E0.includes(String(e.type))};return Ye(e,r=>{for(let a of r){let n=_0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===G6&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function A0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=Ye(e,n=>We(n,s=>A0(s,o,r)));return r&&(e.type===O0||E0.includes(String(e.type)))?{...a,props:{...a.props,[K6]:r}}:a}function F0(e){return tn(e,o=>{let t=new Set;for(let r of o)_0(r,t);return t.size?We(o,r=>A0(r,t,"")):o})}import{isNode as e$,isNodeList as EE}from"efficient-easel/data";import{jsx as Ae,Fragment as zW,jsxs as lr}from"react/jsx-runtime";import{jsx as dh}from"react/jsx-runtime";import{Fragment as J6,jsx as Q6}from"react/jsx-runtime";import{jsx as th}from"react/jsx-runtime";import{createContext as Y6,Fragment as X6,useContext as Z6}from"react";import{jsx as B0,jsxs as q6}from"react/jsx-runtime";import{lazy as V6}from"react";var L0=V6(()=>import("./section-css-style-VF2FOE3B.js"));function R0({css:e,id:o,attr:t}){return B0(L0,{css:e,id:o,attr:t})}var D0={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,[_d]:""};let o=e.render;e.render=t=>{let r=nC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):q6(kr,{className:"sf-section-css",attrs:{[aC]:a},children:[B0(L0,{css:r,id:a}),o(t)]})}}};var N0=Y6(null);function M0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=Ik(t),a=th(X6,{children:o},"page");return th(N0.Provider,{value:t,children:r?[th(R0,{css:r,id:hk,attr:qd},"css"),a]:a})}function H0(){return Z6(N0)}function Ct(){return Ad(H0())===pC}function qf({className:e,children:o}){let t=Ct();return Q6(J6,{children:o(Qo(e,t))})}import{SITE_SIDE as e3}from"efficient-easel/screen/lib/content/length-units";var W0="sideSpace",xl=e3,rh="none",Lse=[{value:"box",label:"Box"},{value:xl,label:"Site"},{value:rh,label:"None"}],Rse="box",Dse="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.";function $0(e){return e===xl||e===rh?e:"box"}function Nse(e){return e===xl||e===rh?e:void 0}import{parseOption as sh}from"efficient-shell/format";var Vf="standard",G0=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],nh=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],ah=[...nh,"description"],z0={standard:["eyebrowLook"],editorial:[...nh,"eyebrowLook"],simple:ah,statement:ah,natural:nh,essay:ah},U0=["gap-5","gap-3"],j0=["text-[length:var(--size-body,16px)]","text-[15px]"];function $se(e){return sh(U0,U0[0],e)}function zse(e){return sh(j0,j0[0],e)}function K0(e){return sh(G0,Vf,e)}function Use(e){let o=G0.map(r=>r.value),t=[...new Set(Object.values(z0).flat())];return Jo(e,t.map(r=>[[r],xd("headStyle",o,Vf,o.filter(a=>!z0[a].includes(r)))]))}import{readHidable as o3,VIEW_TIERS as t3,viewKeyAt as r3}from"efficient-easel/draw";var ca={direction:"row",share:"content",align:"center"},pa={top:14,bottom:14,topPhone:12,bottomPhone:12},Yf={wrap:"nowrap",loop:"scroll",sectionAccent:tC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},q0={gap:120,gapPhone:64},Xf={...Lo,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},V0={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},hl={top:24,bottom:24,topPhone:16,bottomPhone:16},ua={top:16,bottom:16,topPhone:12,bottomPhone:12},Il={justify:"between",wrap:"wrap",gap:32,separator:"none"},gl={...Lo,letterSpacing:.1,lineHeight:1.5};var Zf={top:24,bottom:24,topPhone:24,bottomPhone:24},Jf={top:72,bottom:72,topPhone:72,bottomPhone:72},Rn={top:100,bottom:100,topPhone:60,bottomPhone:60},Qf={top:120,bottom:120,topPhone:70,bottomPhone:70},a3={top:24,bottom:24,topPhone:24,bottomPhone:24},n3=40,ec={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},s3={top:24,bottom:24,topPhone:24,bottomPhone:24},oc={top:24,bottom:24,topPhone:24,bottomPhone:24},l3={top:84,bottom:84,topPhone:84,bottomPhone:84},tc={top:48,bottom:48,topPhone:48,bottomPhone:48},rc={top:80,bottom:80,topPhone:60,bottomPhone:60},ac={top:100,bottom:60,topPhone:60,bottomPhone:40},nc={top:60,bottom:60,topPhone:40,bottomPhone:40},sc={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},lc={top:76,bottom:76,topPhone:76,bottomPhone:76},ic={top:76,bottom:76,topPhone:76,bottomPhone:76},Sl={top:80,bottom:40,topPhone:60,bottomPhone:32},bl={top:76,bottom:76,topPhone:76,bottomPhone:76},dc={top:72,bottom:72,topPhone:72,bottomPhone:72},fc={top:40,bottom:64,topPhone:24,bottomPhone:36},cc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},pc={top:48,bottom:48,topPhone:48,bottomPhone:48},wl=e=>{let o=ye(e.bandPadding)??n3;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},Y0=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),lh=e=>dn(e.headPlacement)==="own-box",Le=(e,o)=>({top:Y0(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:Y0(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),X0=e=>({top:e.topPhone,bottom:e.bottomPhone}),yl=e=>o=>lh(o)?{top:0,bottom:e.bottom}:e,i3=(e,o)=>{let t=o3(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},uc={Banner:{frame:()=>Le(Zf)},Cards:{frame:yl(Le(Jf))},Chart:{frame:()=>Le(bl)},ContactLocations:{frame:()=>Le(Rn,X0(Rn))},Countdown:{frame:()=>Le(tc)},DocBody:{frame:()=>Le(rc)},DocMasthead:{frame:()=>Le(ac)},DocMetaCards:{frame:()=>Le(nc)},FAQ:{frame:e=>{let o=lh(e)||!["num","title","linkText"].some(r=>i3(e,r)),t=Le(Qf);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Le(sc)},Grid:{frame:()=>Le(a3)},Integrations:{frame:()=>Le(lc)},KeyFeatures:{frame:()=>Le(ic)},Logos:{frame:e=>lh(e)?0:Le(wl(e))},LongRead:{frame:yl(Le(ec))},Masthead:{frame:()=>Le(Sl,X0(Sl))},Mockup:{frame:()=>Le(bl)},OrderSummary:{frame:()=>Le(s3)},PaymentBadges:{frame:()=>Le(oc)},Prose:{frame:yl(Le(dc))},SectionHeader:{frame:e=>{let o=Le(fc);return K0(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:yl(Le(cc))},Stats:{frame:()=>Le(pc)},Testimonials:{frame:yl(Le(l3))},Ticker:{frame:()=>Le(pa),edge:!0}};function ole(e,o,t){let r=z(uc,e)??t;return r?ta({values:Js(o,mo,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var Z0=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function d3(e,o){let t={...e};for(let r of t3)delete t[r3(o,r)];return t}function tle(e,o,t,r){let a=z(uc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=Js(o,mo,!0),l=(i,d)=>ta({values:d3(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:Z0(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:Z0(n,"bottom")})}}var f3=/^(?:[^\s]*:)?p[ytb]-/;function J0(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!f3.test(n)),a={...t,...o.style};return{className:[...r,o.className].filter(Boolean).join(" "),...Object.keys(a).length?{style:a}:{},...o.attrs}}import{isNodeList as c3}from"efficient-easel/data";var ih=new Set(["FAQ"]);function qo(e,o){if(!ih.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:c3(t)}var oO={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}},tO=new Set(Object.keys(oO));function fh(e,o){return o?.innerPadding??z(oO,e)}var Dn=e=>fh(e)??{};var mc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),p3=new Set(["Divider"]),u3=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),Q0=new Set(["ProductGrid"]);function ch(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...Js(n,mo,t),sideSpace:$0(n.sideSpace)},l=r?ta({values:s,frame:r(n)},!0).outer:uk(s),i=a(n);if(!l)return i;let d=u=>dh(qf,{className:u?`${l.className} ${u}`:l.className,children:h=>dh(de,{className:h,style:l.style,children:i})}),f=br(n,{atSectionLine:!0}),x=br(n);return f===x?d(f):dh(Xd,{line:"by-box",draw:u=>d(u?x:f)})}}var rO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!u3.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=fh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:Sr,unitKey:Gd,fallback:r,tablet:!0,siteSide:!0})};return}if(Q0.has(o))return;let a=[Sr.top,Sr.bottom].filter(s=>e.fields!=null&&s in e.fields);if(a.length)throw new Error(`section-padding: ${o} declares its own ${a.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);let n=eO(o,e);if(n){nO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!fh(o,e)){if(Q0.has(o)){ch(e);return}mc.has(o)||p3.has(o)||ch(e,o==="Flex"?t=>Dk(t.bgImage):ih.has(o)?t=>qo(o,t):void 0,!0,eO(o,e))}}},m3=["Heading","Text","ImageBlock","ButtonBlock"],x3=["LogoBlock"],aO={Text:e=>Pr(e,"text").textStyle?.startsWith("heading-")?Qs.heading:Qs.text,Heading:()=>Qs.heading,ButtonBlock:()=>Qs.text,Breadcrumb:()=>lx(hl),SpecStrip:()=>lx(ua),...Object.fromEntries(Object.entries(uc).map(([e,o])=>[e,o.frame]))};function eO(e,o){return z(aO,e)??o?.ownPad?.frame}var h3={ButtonBlock:"Outer padding"};function I3(e,o){let t=e[Mt],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=Sn().filter(i=>o?.[i]);if(!a.length)return e;let n=[...r.filter(i=>!a.includes(i)),...a.filter(i=>typeof e[i]=="number")];if(n.length===r.length&&n.every((i,d)=>i===r[d]))return e;let{[Mt]:s,...l}=e;return n.length?{...l,[Mt]:n}:l}function g3(e,o,t){if(o<=0)return null;let r=Array.isArray(e[Mt])?e[Mt]:[];return(t?Sn().filter(a=>a.startsWith(mo[t])):Sn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function nO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,g3,z(h3,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?I3(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var sO={name:"blockPadding",applies:(e,o,t)=>(m3.includes(e)||x3.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(aO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}nO(e,o,t,r)},draw(e,o){mc.has(o)||ch(e,void 0,!0)}};import{createContext as ph,useContext as xc}from"react";var lO=ph(null);function wle(){return xc(lO)===!0}function Cle(){return xc(lO)!==null}var y3=ph(!1);function kle(){return xc(y3)}function vle(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 hc=ph(null);function Ple(){return xc(hc)}import{jsx as ma}from"react/jsx-runtime";import{Component as T3,createContext as O3,lazy as zle,Suspense as Ule,useContext as E3,useSyncExternalStore as _3}from"react";function S3(e,o){let t=e.trim();if(!Ic(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 Ele(e){return e.startsWith("/")||Ic(e)}function Ic(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Cl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function iO(e,o){return S3(e,o)?{...Cl}:{}}function _le(e){return typeof e=="string"?e.trim():""}var Ale="data-sf-box-link",dO="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",uh="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",b3="data-sf-box-jump";function w3(e){return`sf-box-jump-${e}`}function Fle(e,o){return e===!0?la(o):""}function C3({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 Ble(e){let o=`[${b3}="${e}"]`,t=`.${w3(e)}`,r=`[id="${e}"]:target`;return C3({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 k3="hrefRewrite";function v3(){return Qa("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function P3(){return typeof process<"u"&&!0}function Dle(e){let o=e?.[k3];return typeof o=="string"?o.trim():""}function fO(e){if(!e)return null;let o=v3(),t=o.rewrites.get(e);return!t&&!P3()&&o.missed.add(e),t??null}var A3={Link:oP,Image:eP},cO=O3(A3);function Yle({runtime:e,children:o}){return ma(cO.Provider,{value:e,children:o})}function xh(){return E3(cO)}function Xle(){return xh().pagePath??null}var F3=()=>()=>{},B3=()=>pf()||null,L3=()=>null;function R3(){return _3(F3,B3,L3)}function xa({hrefRewrite:e,newTab:o,...t}){let{Link:r}=xh(),a=R3(),n=o===!0?{...t,...Cl}:o==="auto"?{...t,...iO(t.href,a)}:t,s=fO(e);return s?ma(mh,{name:s.name,href:n.href,fallback:ma(r,{...n}),children:ma(D3,{Link:r,rewrite:s.rewrite,...n})},s.key):ma(r,{...n})}function D3({Link:e,rewrite:o,...t}){let r=po(o(t.href)),a=r&&yb(r)?r:t.href;return ma(e,{...t,href:a})}var mh=class extends T3{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 gc(e){let{Image:o}=xh();return ma(o,{...e})}import{jsx as AW}from"react/jsx-runtime";import{jsx as Se,jsxs as To,Fragment as TW}from"react/jsx-runtime";import{imageCopyUrl as uO,imageSrcSet as N3}from"efficient-shell/image-copies";var pO;function hh(){return pO===void 0?{}:{host:pO}}var eie="(max-width: 800px) 100vw, min(100vw, 1600px)",oie="(max-width: 960px) 100vw, 50vw";function ha(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=N3(e,{...hh(),...t===void 0?{}:{maxWidth:t}});return r?{src:uO(e,o,hh()),srcSet:r}:{src:e}}var M3=/[\s"'()\\;]/;function tie(e){let o=uO(e,1920,hh());return o===e?M3.test(e)?`url("${ix(e)}")`:`url(${e})`:`url("${ix(o)}")`}import{parseOption as H3}from"efficient-shell/format";var kl="solid",W3=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function mO(e){return H3(W3,kl,e)}var Ih="sf-secnum-outline",xO="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",hO=`@supports (-webkit-text-stroke: 1px currentColor){.${Ih}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as IO}from"efficient-shell/format";var gh="plain",gO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],$3="line",z3={KeyFeatures:"filled"};function vl(e){return z(z3,e)??gh}function yO(e,o){return IO(gO,vl(o),e)}function iie(e){return IO(gO,$3,e)}import{jsxs as ya,jsx as Ne}from"react/jsx-runtime";import{Fragment as Eh}from"react";import{Fragment as uW,jsx as Ph}from"react/jsx-runtime";import{Fragment as FO,jsx as _l,jsxs as sW}from"react/jsx-runtime";import{createContext as vh,useContext as Al,useEffect as lW,useId as iW,useMemo as dW,useRef as fW}from"react";import{armEntrance as cW}from"efficient-shell/format";import{jsx as U3}from"react/jsx-runtime";import{useEffect as bO,useRef as SO,useState as j3}from"react";import{armEntrance as G3,entranceAttrs as K3,playEntrance as q3}from"efficient-shell/format";function yc({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=SO(null),d=Jd(),f=tt(),x=n?f:wr,u=Pl(i,!0,s),{attrs:h,style:g}=K3(e[u]),S=SO(Nn.seed(e)),v=JSON.stringify(e);return bO(()=>{let E=i.current;if(E){if(o){let R=Nn.next(S.current,e,u);S.current=R.seen,R.play&&q3(E);return}return G3(E)}},[v,u,o]),x.scope(U3("div",{ref:i,className:vo(`${In}${d.fill}${t?` ${t}`:""}`,x.className),...r,...x.attrs,...h,...Object.keys(g).length||a?{style:{...a,...g}}:{},children:d.inner(l)}))}var Nn={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Nn.seed(o);return{play:r[t]!==e[t],seen:r}}};function Pl(e,o=!0,t=!1){return Tl(e,o,t)??"desktop"}function Tl(e,o=!0,t=!1){let[r,a]=j3(void 0),n=Cr(t?"edge":"by-box"),{phone:s,tablet:l}=Lv(n);return bO(()=>{if(!o)return;let i=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!i?.matchMedia){a("desktop");return}let d=i.matchMedia(s),f=i.matchMedia(l),x=()=>a(d.matches?"phone":f.matches?"tablet":"desktop");return x(),d.addEventListener("change",x),f.addEventListener("change",x),()=>{d.removeEventListener("change",x),f.removeEventListener("change",x)}},[e,o,s,l]),r}var Ol="@name",wO="@body",CO="@value",kO={[Ol]:"Name",[wO]:"Body",[CO]:"Value"},V3={TimelineTrack:{"entries.date":Ol,"entries.title":Ol,"entries.blurb":wO},Footprint:{"offices.city":Ol},Stats:{"items.label":Ol,"items.value":CO}};function Y3(e){let{key:o,row:t}=Ht(e);return t?`${o}.${t.rowKey}`:null}function ar(e,o){if(!e)return o;let t=Y3(o);return t?z(V3,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as oW,entranceAttrs as tW,scrollAttrs as rW}from"efficient-shell/format";import{parseFocal as J3,formatFocal as Q3,readScroll as eW}from"efficient-shell/format";import{phoneKey as X3,tabletKey as Z3}from"efficient-easel/screen/lib/content/view-tiers";var yh=[{block:"HeroSlide",upload:"mediaImage",focus:Ys.image},{block:"HeroSlide",upload:"mediaImage2",focus:Ys.image2},{block:"HeroSingle",upload:"mediaImage",focus:Ys.image},{block:"HeroSingle",upload:"mediaImage2",focus:Ys.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],vO=e=>[e,Z3(e),X3(e)],Cie=[...new Set(yh.flatMap(e=>vO(e.focus)))].sort();function PO(e,o){let[t,r,a]=vO(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var xo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},Mn="_gScroll",Sc="_cScroll",bc=Nd(Object.values(xo));function nr(e,o){return eW(Ks(e,xo.effect,o),Ks(e,xo.zoom,o),Ks(e,xo.start,o),Ks(e,xo.end,o))}function Hn(e){let o={desktop:nr(e,"desktop"),tablet:nr(e,"tablet"),phone:nr(e,"phone")};return et.every(t=>o[t].effect==="none")?null:o}function Sh(e){let o=ZC(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=J3(a);return Q3(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function TO(e,o){return Sh(PO(e,o))}var wc={},bh="_partMotion",wh=[...Md,Zo,Ge.duration,Ge.delay,...bc];function EO(e){return lv(e,bh)}function Ia(e,o){return iv(e,bh,o)}var aW=new Set([Go.kind,Zo,xo.effect]);function _O(e,o,t,r){let{[t]:a,...n}=Ia(e,o),s=r==null||r===""||r==="none"&&aW.has(t)?n:{...n,[t]:r};return dv(e,bh,o,Object.keys(s).length?s:null)}function El(e){return{entrance:gn(e),hover:bb(e),scroll:Hn(e)}}function AO(e){let o=El(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Cc(e,o){let{attrs:t,style:r}=tW(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(oW)}}function kc(e,o){let{attrs:t,style:r}=rW(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 nW=4;function Wn(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&nW)&&(o=t);return o}var Ch="data-sf-part-host";function vc(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Ch)&&!t.classList.contains(In);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var ga="data-sf-part-lift",OO="sf-part-lift";function Pc(e){if(e.getElementById(OO))return;let o=e.createElement("style");o.id=OO,o.textContent=hv(`[${ga}]`).join(`
317
- `),e.head.appendChild(o)}var Tc=vh(null),LO=vh(null),RO=vh(null);function DO({needles:e,styles:o,motions:t=wc,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=iW(),i=Cr(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),f=bt(),x=dW(()=>{let h=Object.keys(t).filter(g=>AO(t[g]));return Bv(e,o,l,g=>ar(r,g),g=>al(r,g),g=>h.includes(g)?El(t[g]):null,h,g=>na(n,g),f)},[d,f]);if(!x)return _l(FO,{children:s});let u=Rv(x,{inBox:i});return sW(FO,{children:[u&&_l("style",{href:`${pW}${l}-${Lk(u)}`,precedence:MO,dangerouslySetInnerHTML:{__html:Bk(u)}}),_l(Tc.Provider,{value:x,children:s})]})}var kh=new WeakMap;function BO(e,o){let t=Wn(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Wn(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)?(Pc(e.ownerDocument),e.setAttribute(ga,"")):e.removeAttribute(ga)}function NO(e){let o=fW(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Pl(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 lW(()=>{let d=o.current,f=vc(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let x=s?()=>{let g=Cc(f,s),S=cW(f);return()=>{S?.(),g()}}:null,u=kh.get(f)??[];kh.set(f,u);let h={element:d,arm:x,entering:s!==null&&s.kind!=="none",scroll:l?()=>kc(f,l):null,lift:a};return u.push(h),BO(f,u),()=>{let g=u.indexOf(h);g<0||(u.splice(g,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,BO(f,u),u.length||kh.delete(f))}},[i,a]),o}var MO="sf-part-styles",pW=`${MO}-`;function HO(e){let o=Al(Tc),t=Al(LO),r=Dv(o,e);return r&&r.stamp!==t?r:null}function Kie(e){return hx(Al(Tc),e)}function WO({stamp:e,children:o}){return _l(LO.Provider,{value:e,children:o})}function qie({children:e}){let o=Al(Tc);return _l(RO.Provider,{value:o,children:e})}function Vie(e){return hx(Al(RO),e)}function Fl({value:e,children:o}){let t=HO(e),r=NO(t);return t?Ph(WO,{stamp:t.stamp,children:Ph("span",{ref:r,[cv]:t.stamp,...t.textStyle?{[ra]:t.textStyle}:{},children:o})}):Ph(uW,{children:o})}import{jsx as Th,Fragment as mW}from"react/jsx-runtime";function $O({className:e=""}){return Th("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function at(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(Th($O,{},`r${a}`))}),Th(mW,{children:t})}var ode=$O;function Xe(e,o=!1,t){let r=bW(o),a=id(e);if(a.length===1){let[s]=a,l=Sb(s),i=l?yW(l,s.children):s.children;return ya(Fl,{value:e,children:[t,Oc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(Ne("span",{"data-sf-bullet":"",className:xW,children:Oc(s.children,r)},l));return}if(s.number!=null){n.push(ya("span",{"data-sf-number":s.number,className:hW,children:[ya("span",{className:IW,children:[s.number,"."]}),Oc(s.children,r)]},l));return}l>0&&!gW(a[l-1])&&n.push(Ne("br",{},`br${l}`)),n.push(Ne(Eh,{children:Oc(s.children,r)},l))}),ya(Fl,{value:e,children:[t,n]})}var xW="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",hW="relative block pl-[2em]",IW="absolute left-0 w-[1.6em] text-right tabular-nums";function gW(e){return e.bullet||e.number!=null}var zO="text-accent underline underline-offset-[0.18em]";function yW(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function SW(e){return Rk(e)||void 0}function Oc(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(Ne("span",{children:at(a.text)},n)),r=!0;return}r||t.push(Ne("span",{},`e${n}`)),t.push(jO(a,n,o)),r=!1}),r||t.push(Ne("span",{},"end")),t}function Oh(e,o){return e.length===1&&e[0].kind==="text"?at(e[0].text):e.map((t,r)=>t.kind==="text"?Ne(Eh,{children:at(t.text)},r):jO(t,r,o))}function bW(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function pde(e){return UO(e)}function UO(e,o){let t=e.split(`
318
- `);return ya(Fl,{value:e,children:[o,t.map((r,a)=>ya(Eh,{children:[a>0?Ne("br",{}):null,Ne("span",{children:r})]},a))]})}function jO(e,o,t){if(e.kind==="link")return Ic(e.href)?Ne(xa,{newTab:"auto",href:e.href,className:zO,children:Oh(e.children,t)},o):Ne("a",{href:e.href,className:zO,children:Oh(e.children,t)},o);let r=Oh(e.children,t),a=hb[e.kind];if(a)return Ne("span",{[Ib]:a,children:r},o);switch(e.kind){case"underline":return Ne("u",{children:r},o);case"sup":return Ne("sup",{children:r},o);case"sub":return Ne("sub",{children:r},o);case"color":{let n=SW(e.color);return n?Ne("span",{style:{color:n},children:r},o):Ne("span",{children:r},o)}case"accent":case"highlight":return Ne("em",{className:t,children:r},o);case"bold":return Ne("strong",{className:"font-semibold",children:r},o);case"italic":return Ne("em",{className:"italic",children:r},o);case"strike":return Ne("s",{className:"line-through",children:r},o);default:return Ne("span",{children:r},o)}}function GO(e,o=!0,t=!1){let r=e.split(`
319
- `);return Ne(Fl,{value:e,children:r.map((a,n)=>ya("span",{children:[t?UO(a):Xe(a,o),n<r.length-1?Ne("br",{}):null]},n))})}function KO(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as _h,jsxs as CW}from"react/jsx-runtime";import{jsx as wW}from"react/jsx-runtime";function qO(){return wW("span",{className:"block h-px w-[30px] bg-current"})}var Ah={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 kW(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var vW=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Ah.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,PW=`flex items-center gap-3.5 font-mono ${Ah.labelLarge} uppercase tracking-[0.3em] opacity-80 ${Ah.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=tt(),i=s?l:wr;if(o==="line")return i.scope(CW("div",{className:vo([a,PW,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[_h(qO,{}),_h("span",{children:Xe(e)})]}));let d=o==="filled"?vW:kW(t,r);return i.scope(_h("span",{className:vo([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Xe(e)}))}var _e={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)]"},VO=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${_e.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${_e.shelfHeading1} ${_e.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${_e.shelfHeading2} ${_e.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${_e.shelfHeading3} ${_e.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${_e.shelfHeading4} ${_e.shelfHeadingUpTo800Xl}`}],OW="lg";function EW(e){return(VO.find(o=>o.value===e)??VO.find(o=>o.value===OW)).cls}var zn=(e,o=!1)=>typeof e=="string"?GO(e,o):e,sr=(e,o=!1)=>typeof e=="string"?Xe(e,o):e;function YO({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=kl,look:i="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:x,rowGap:u,descriptionSize:h,className:g="",eyebrowLook:S=gh,titleSize:v,count:E,capped:R=!1,rootPadsBottom:P=!1}){let I=Ct(),b=x??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?To("div",{className:Qo(`${dP} 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 ${R?"":"-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))]"}`,I),children:[To("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Se("span",{className:`font-mono ${_e.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:sr(e)}),o&&Se("h2",{className:`${EW(v)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:zn(o)})]}),(a||t||E)&&To("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&Se("span",{className:`max-w-[340px] truncate font-display ${_e.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:sr(a)}),t&&To(xa,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${_e.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[sr(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]}),E&&Se("span",{className:`whitespace-nowrap font-mono ${_e.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:E})]})]}):null;if(i==="editorial"){let y=!!o||!!d;return To("header",{className:`${b} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${g}`.trim(),children:[e&&(typeof e=="string"?Se($n,{text:e,className:"pb-2"}):Se("span",{className:"pb-2",children:e})),y&&To("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5.5vw,80px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em]",children:[o,d&&To(TW,{children:[" ",Se("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:f},children:d})]})]}),a&&Se("p",{className:`max-w-[360px] pb-1 text-right font-display ${_e.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(i==="simple"){let y=`${b} ${g}`.trim();return To("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se($n,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${_e.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${_e.headingMediumUpTo800Small}`,children:zn(o)})]})}if(i==="statement"){let y=`${b} ${g}`.trim();return To("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se($n,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:zn(o,!0)})]})}if(i==="natural"){let y=`flex max-w-[680px] flex-col ${u??"gap-5"} ${b} ${g}`.replace(/\s+/g," ").trim();return To("div",{className:y,children:[e&&(typeof e=="string"?Se($n,{text:e,look:S}):Se("span",{children:e})),o&&Se("h2",{className:`font-heading2 ${_e.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${_e.headingMediumUpTo800Small}`,children:zn(o)}),a&&Se("p",{className:`${h??`${_e.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let y=`${b} ${g}`.trim();return To("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se($n,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${_e.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 ${_e.headingSmallUpTo800}`,children:zn(o)})]})}let O=!!a||!!t,_=!!o,N=mO(l)==="outlined",w=`font-mono ${_e.label} uppercase tracking-[0.3em]`,F=null;if(e)if(N)F=Se("span",{className:`${xO} text-fg-dim ${Ih}`,children:sr(e)});else if(s&&!n&&typeof e=="string"){let y=e.indexOf("/"),k=y===-1?e:e.slice(0,y),T=y===-1?"":e.slice(y);F=To("span",{className:w,children:[Se("span",{className:"text-accent",children:sr(k)}),T&&Se("span",{className:"text-fg-dim",children:sr(T)})]})}else F=Se("span",{className:`${w} ${n?"text-accent":"text-fg-dim"}`,children:sr(e)});return To("div",{className:P?"grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5":"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[N&&e&&Se("style",{children:hO}),To("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Se(bk,{children:Se(Kf,{..._W(sP(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),F]}),_&&Se("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${_e.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 ${_e.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:zn(o)}),O&&To("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Se("p",{className:`max-w-[340px] font-display ${_e.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:sr(a)}),t&&To(xa,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${_e.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[sr(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function _W(e){let o=ha(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function XO({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return AW(YO,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Ll,jsxs as MW}from"react/jsx-runtime";import{useEffect as HW,useState as sE}from"react";import{jsx as FW}from"react/jsx-runtime";var ZO="sf-photo-hover";function Ec({sheet:e,name:o=ZO}){return e?FW("style",{href:o,precedence:ZO,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as rE,Fragment as RW}from"react/jsx-runtime";import{createContext as DW,useContext as Ac}from"react";var BW=Ub["view-desktop"];function LW(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var Fh=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,_c=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function zde(e,o){return{phone:Fh(e.phone*_c(o?.phone)),tablet:Fh(e.tablet*_c(o?.tablet)),desktop:Fh(e.desktop*_c(o?.desktop))}}function Bh(e){if([e.phone,e.tablet,e.desktop].every(r=>_c(r)>=1))return;let o=[{below:Vt,slot:e.phone},{below:BW,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return LW(t,e.desktop)}function JO(e){let o=e.split(/,\s*(?![^()]*\))/).map(a=>a.trim()),t=[];for(let a of o.slice(0,-1)){let n=/^\(max-width:\s*([\d.]+)px\)\s+(.+)$/.exec(a);if(!n)return null;let s=Number(n[1]);if(t.length&&s<=t[t.length-1].edge)return null;t.push({edge:s,slot:n[2]})}let r=o[o.length-1];return!r||r.startsWith("(")?null:{steps:t,last:r}}var QO=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,eE=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function oE(e,o){if(e===o)return e;let t=[...eE(e),...eE(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 tE(e,o){if(!o)return e;let t=JO(e),r=JO(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:oE(QO(t,s),QO(r,s))})),n=oE(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 NW={hasWidth:!1},Bl=DW(NW);function qde(){return Ac(Bl).hasWidth}function Vde(e){let{bound:o}=Ac(Bl);return o&&Bh(o)||e}function aE(e){let{bound:o}=Ac(Bl);return tE(e,o&&Bh(o))}function nE({children:e}){let o=Ac(Bl);return o.bound?rE(Bl.Provider,{value:{hasWidth:o.hasWidth},children:e}):rE(RW,{children:e})}function lE({fallback:e,className:o,src:t,alt:r="",objectPosition:a,objectFit:n="cover",sizes:s="100vw",sizesFromCell:l=!1,priority:i=!1,deferFetch:d=!1,showBackground:f=!0,treatment:x}){let u=oh(),h=aE(s),g=l?h:s,[S,v]=sE(!1),[E,R]=sE(!1),P=t||"";HW(()=>{v(!1),R(!1)},[P]);let I=uf(P),b=I&&!E?ha(P):{src:P},O=!P||S;return MW("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Ll("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:O?e:null}),Ll(Vd,{fill:el,children:P&&(I?Ll("img",{src:b.src,alt:r,...b.srcSet?{srcSet:b.srcSet,sizes:g}:{},decoding:"async",...d?{loading:"lazy"}:u,className:`absolute inset-0 h-full w-full${x?.className?` ${x.className}`:""}`,style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>b.srcSet?R(!0):v(!0)}):Ll(gc,{src:P,alt:r,fill:!0,sizes:g,priority:i,...x?.className?{className:x.className}:{},style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>v(!0)}))}),Ll(Ec,{sheet:x?.sheet})]})}import{jsx as WW}from"react/jsx-runtime";var Rl="sf-empty-hides",Lh="sf-empty-else",Fc="sf-head-core",Bc="sf-head-box",Dl="holdsHeadCore",Nl="isHeadCore",$W=`.${Rl}:empty{display:none}.${Rl}:not(:empty)~.${Lh}{display:none}.${Bc},.${Fc}{display:contents}.${Bc}:not(:has(.${Fc}:not(:empty))){display:none}`;function Lc(){return WW("style",{children:$W})}var Mo={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)]"},iE={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"},Rh="sf-itc-boxes",UW="sf-itc-steps";function Dh(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 vfe({num:e,title:o,description:t,boxes:r,steps:a,columns:n=3,cta:s,padTop:l,padBottom:i,bandPad:d,editing:f=!1,omitHead:x=!1,cardImage:u,cardImageUnit:h,cardText:g,rows:S,copies:v}){let E=Ct(),R=v!==void 0,P=S&&(R||(r?.blockCount??0)>0)?S:null,I=d??xk({padTop:l,padBottom:i},Dn("ProcessSteps")),b=R?[]:Dh(a),O=b.length>0?b:f&&!r&&!R?[1,2,3].map(y=>({tag:c("Column {n}",{n:y})})):[],_=iE[n]??iE[3],N=P?"grid-cols-1":_,w=P?"":" [&>*]:min-h-[560px]",F=g==="on-image";return Ae(de,{as:"section",className:Qo(["relative z-[2] border-b border-line bg-bg",I.className].filter(Boolean).join(" "),E),style:{...I.style,...VP(u,h)},children:lr("div",{className:Qo(IC,E),children:[x?null:Ae(XO,{num:e,title:o?.trim()?Xe(o,!0):void 0,desc:t?.trim()?Xe(t,!1):void 0}),r&&!R?lr(zW,{children:[Ae(Lc,{}),P?Ae(hc.Provider,{value:{hand:P,ids:r.blockIds??[],boxes:[]},children:Ae(r,{className:`${Rh} ${Rl} sf-card grid ${N} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,minEmptyHeight:260})}):Ae(r,{className:`${Rh} ${Rl} sf-card grid ${N} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,R&&v?Ae("div",{className:`${Rh} sf-card grid ${N} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,children:P?Ae(hc.Provider,{value:{hand:P,copies:!0},children:v}):v}):null,O.length>0&&Ae("div",{className:`${UW} ${Lh} sf-card grid ${_} gap-[2px] border border-line bg-line`,children:O.map((y,k)=>{let T=(y.specs??[]).filter(C=>(C?.label??"").trim()||(C?.value??"").trim());return lr("article",{className:F?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[lr("div",{className:F?"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:[Ae(lE,{label:y.tag?.trim()||y.title?.trim()||`column-${k+1}`,src:y.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),Ae("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${Gs(.55)} 0%, transparent 30%, transparent 70%, ${Gs(.65)} 100%)`}}),F&&Ae("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%, ${Gs(.73)} 55%, ${Gs(.92)} 100%)`}}),y.tag?.trim()&&Ae("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${Mo.label} uppercase tracking-[0.3em] text-accent`,children:at(y.tag)}),y.meta?.trim()&&Ae("span",{className:F?`absolute right-5 top-[18px] z-[2] font-mono ${Mo.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${Mo.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:at(y.meta)}),F&&(y.title?.trim()||y.copy?.trim())&&lr("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[y.title?.trim()&&Ae("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${Mo.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${Mo.headingSmallUpTo700Small}`,children:Xe(y.title,!0)}),y.copy?.trim()&&Ae("p",{className:`min-h-[3em] font-display ${Mo.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Xe(y.copy,!1)})]})]}),F?T.length>0&&Ae("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:T.map((C,B)=>lr("div",{className:"flex flex-col gap-1",children:[C.label?.trim()&&Ae("span",{className:`font-mono ${Mo.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:at(C.label)}),C.value?.trim()&&Ae("span",{className:`font-display ${Mo.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:at(C.value)})]},B))}):lr("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[y.title?.trim()&&Ae("h3",{className:`font-heading3 ${Mo.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${Mo.headingSmallUpTo700Large}`,children:Xe(y.title,!0)}),y.copy?.trim()&&Ae("p",{className:`font-display ${Mo.bodySmall} leading-[1.55] text-fg-dim`,children:Xe(y.copy,!1)}),T.length>0&&Ae("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:T.map((C,B)=>lr("div",{className:"flex flex-col gap-1",children:[C.label?.trim()&&Ae("span",{className:`font-mono ${Mo.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:at(C.label)}),C.value?.trim()&&Ae("span",{className:`font-display ${Mo.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:at(C.value)})]},B))})]})]},k)})}),s?.text&&Ae("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:lr(xa,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${Mo.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[at(s.text),Ae("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var jW=["selected","highlighted"],dE="data-sf-card-state",cE="pointer-events-none absolute inset-0 border border-accent",pE="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",uE="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",mE="absolute inset-y-0 left-0 w-[3px] bg-accent",xE="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",hE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",fE=e=>{let o=Qw.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},GW={[fE("muted")]:`var(${fE("fg")})`};function Nh(e){return e?.selected===!0}function Mh(e){return e?jW.filter(o=>e[o]===!0).join(" "):""}function IE(e,o="frame"){let t=Mh(e);return t?o==="frame"&&Nh(e)?{[dE]:t,className:"relative isolate",style:{...GW}}:{[dE]:t,className:"relative"}:{}}var KW={highlighted:!0},qW={},Rc="badge";function _fe(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||$s(t,r)}))}function gE(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===Rc||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function Afe(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,[Rc]:s===a?t:""})),states:e.map((n,s)=>s===a?KW:qW)}}function Ffe(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function Bfe(e){if(!e||typeof e!="object")return;let{press:o,pressLabel:t,pressDisabled:r}=e;if(typeof o=="function")return{press:o,...typeof t=="string"&&t.trim()!==""?{label:t}:null,...r===!0?{disabled:!0}:null}}var yE="data-sf-card-press",SE=`${dO} appearance-none bg-transparent border-0 p-0 m-0`,bE=`${SE} cursor-pointer`,wE=SE;import{paymentMarkItems as VW,paymentMarks as YW}from"efficient-shell/icons/payment";var XW=[qS,VS],CE=e=>XW.includes(e),kE=e=>VW({name:e.label,kind:e.kind}),ZW=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function vE(e){return YW(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>kE(t).some(r=>ZW(r,o)))?.kind??""}))}function Nfe(e){return kE(e)[0]??null}var PE={heading:"Trusted by *teams worldwide*"},Dc=()=>[{src:"",alt:c("Logo one")},{src:"",alt:c("Logo two")},{src:"",alt:c("Logo three")},{src:"",alt:c("Logo four")},{src:"",alt:c("Logo five")}],JW=td.Logos,$fe={label:"Logos",drawsPictures:!0,fields:JW,defaultProps:{items:[],contained:!0}};var QW=()=>Dc().map(e=>({label:e.alt}));function TE(e,o){let t=od(e,o,QW()).rows.filter(r=>r.label);return CE(De(e))?vE(t):t}var Ml="Flex",o$="Text",Hl=e=>Object.values(e??{}).filter(EE),t$=e=>e.type===so&&De(e.props)!=="",_E=e=>{if(e.type!==Ml)return!1;let o=Hl(e.props).flat();return o.length>0&&o.every(t$)},Nc=e=>dn(e.props?.headPlacement)==="own-box"||_E(e),Hh=e=>e===void 0||Array.isArray(e)&&e.length===0;function AE(e){return e.type===o$?!0:e.type===Ml&&Hl(e.props).every(o=>o.every(AE))}var FE={ProcessSteps:e=>Hh(e.boxes)&&Dh(e.steps).length===0,Logos:e=>De(e)?r$(e):Hh(e.logos)&&Hh(e.items)};function r$(e){return QS(e)!==null&&TE(e,!1).length===0}function a$(e){return Hl(e.props).flat().every(o=>!od(o.props,!1).rows.some(gE))}function Mc(e){let o=Hl(e.props).flat();return o.some(Nc)&&o.every(t=>Nc(t)||AE(t))}function n$(e){if(!e$(e)||!Nc(e))return e;let o=_E(e)?a$(e):z(FE,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Nl]:o?"empty":!0}}}function OE(e){return Ye(e,o=>We(o,n$))}function BE(e){let o=Object.entries(e.props??{}).filter(([,r])=>EE(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===Ml&&t.props?{key:o[0][0],inner:t}:null}function LE(e){if(e?.type!==Ml||!e.props)return e;if(Mc(e)){let t=OE(e);return{...t,props:{...t.props,[Dl]:!0}}}let o=BE(e);return!o||!Mc(o.inner)?e:{...e,props:{...e.props,[o.key]:[OE(o.inner)],[Dl]:!0}}}function RE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=LE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var s$=e=>z(FE,String(e.type))?.(e.props??{})===!0;function l$(e){if(e.type!==Ml||!e.props)return!1;let o=Mc(e)?null:BE(e),t=o?o.inner:e;if(!Mc(t))return!1;let r=Hl(t.props).flat().filter(Nc);return r.some(a=>De(a.props)!=="")&&r.every(s$)}function DE(e){return Ye(e,o=>i$(o))}function i$(e){let o=!1,t=[];for(let r of e){if(l$(r)){o=!0;continue}let a=DE(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function NE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(LE(a)!==a)return a;let n=DE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var d$=["DocMasthead","AlloyWheelsListing"],Hc="titleLevel",f$=e=>e===2?"h2":"h1",Wh=e=>f$(e?.[Hc])==="h2";function ME(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>d$.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[Hc]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as h$}from"efficient-easel/draw";var Un="showFor";function HE(){return Qa("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var c$=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function sce(){return HE().choices}function lce(){return HE().revision}function WE(e){return c$(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as p$}from"efficient-easel/draw";var $h="_wallLabelId",u$="_wallLabelledBy",zh=e=>e.props?.id==null?"":String(e.props.id);function m$(e){if(!e||e.type!=="Text"||!zh(e))return!1;let o=p$(e.props?.text);return!o.hidden&&o.text.trim()!==""}var x$=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&zh(e)!=="",$E=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function zE(e){let o=We(e,r=>Ye(r,zE)),t=null;for(let r=1;r<o.length;r++){if(!x$(o[r])||!m$(o[r-1]))continue;let a=`sf-wall-label-${zh(o[r-1])}`;t??=o.slice(),t[r-1]=$E(t[r-1],$h,a),t[r]=$E(t[r],u$,a)}return t??o}function UE(e){return tn(e,zE)}var jE="_cardPressTitles",I$="_cardPressTitle";function gce(e,o){let t=e?.[jE],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var GE=(e,o)=>({...e,props:{...e.props,...o}});function g$(e){let o=e.props??{};return e.type!=="Text"||h$(o.text).hidden||typeof o[jo]=="string"||typeof o[$h]=="string"?"":Dt(o)}function KE(e,o,t,r){return We(e,a=>{let n=g$(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),GE(a,{[I$]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Un]))return a;let s=a.props?.[en],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return Ye(a,(i,d)=>oa(a.type,d)?i:KE(i,l,t,r))})}function qE(e){let o,t=Ye(e,(r,a)=>{let n=We(r,qE);if(!oa(e.type,a))return n;let s=[],l=KE(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?GE(t,{[jE]:o}):t}function VE(e){return tn(e,o=>We(o,qE))}import{pinnedDuplicateIndices as Tz}from"efficient-easel/draw";import{jsx as nt,jsxs as N_}from"react/jsx-runtime";import{createContext as gz,useContext as yz,useEffect as Sz,useRef as bz,useState as M_}from"react";import{jsx as Ar,jsxs as JE}from"react/jsx-runtime";import{useEffect as jn,useRef as QE,useState as Sa}from"react";import{jsx as YE,Fragment as y$,jsxs as S$}from"react/jsx-runtime";import{useEffect as b$,useRef as XE,useState as w$}from"react";var C$="#t=0.001",k$=2;function v$(e,o){if(e.readyState<k$||!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 ZE({src:e,objectPosition:o="50% 50%",onError:t}){let r=XE(null),a=XE(null),[n,s]=w$(!1);return b$(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{v$(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),S$(y$,{children:[YE("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&&YE("video",{ref:r,src:`${e}${C$}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var P$="data-part",Cce=Object.freeze({Flex:Object.freeze(["box","card","card-content"]),Grid:Object.freeze(["grid"]),Hero:Object.freeze(["hero","arrows","arrow","dots","dot","strip"]),HeroSlide:Object.freeze(["slide","hero-media","tint","overlay","hero-content"]),HeroSingle:Object.freeze(["hero","hero-media","tint","overlay","hero-content"]),ImageBlock:Object.freeze(["image-block","image-frame","image"]),ButtonBlock:Object.freeze(["button-block","button","button-icon"]),Text:Object.freeze(["text-block","text"]),Heading:Object.freeze(["heading-block","heading"]),LogoBlock:Object.freeze(["logo"]),MenuBlock:Object.freeze(["menu-block","heading","menu","menu-item","menu-link","menu-button"]),SiteHeader:Object.freeze(["header","header-content"]),SiteFooter:Object.freeze(["footer"]),FooterSection:Object.freeze(["footer-block","grid","legal-line","copyright"]),FooterLogo:Object.freeze(["logo-block","logo-link","tagline"]),FooterSocial:Object.freeze(["social-block","social-item","social-link"]),ProductGrid:Object.freeze(["product-grid-block","grid-head","grid-number","heading","description","view-all","count","grid","grid-empty"]),ProductCard:Object.freeze(["card","card-link","card-content","image-block","image-frame","image-plate","image","card-number","badges","badge","eyebrow","product-name","pattern","specs","price","price-note","swatches","swatch","sizes","size","buy","button","page-label"])});function _r(e){return{[P$]:e}}var T$=.5;function Wl({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=T$,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:x=!1,slideShown:u,laterSlide:h=!1,laterOfLead:g=!1}){let S=lP(d,f),v=ml(),[E,R]=Sa(!1),P=v==="below"&&!E,I=v==="first",b=a||"",O=n||"",_=QE(null),N=Tl(_,!0,!0),w=N===void 0?void 0:N==="phone",F=xf({video:e,av1:o,videoPhone:t,av1Phone:r},w===!0),y=F.video||"",k=mf(y,F.av1),[T,C]=Sa(!1),[B,H]=Sa(!1),[K,$]=Sa(!1),[le,pe]=Sa(!1),J=u??!0,[xe,ae]=Sa(!1),ne=v!=="first"&&!g,[he,Ze]=Sa(!1),qe=QE(null);jn(()=>{if(!ne)return;if(document.readyState==="complete"){Ze(!0);return}let ie=()=>Ze(!0);return window.addEventListener("load",ie,{once:!0}),()=>window.removeEventListener("load",ie)},[ne]),jn(()=>{C(!1),H(!1),$(!1),pe(!1)},[y,b,O]),jn(()=>{J&&ae(!0)},[J]),jn(()=>{let ie=qe.current;ie&&(J?ie.play()?.catch(()=>{}):ie.pause())},[J,xe,he]),jn(()=>{if(!h||ne&&!he)return;let ie=()=>R(!0);if(typeof window.requestIdleCallback=="function"){let W=window.requestIdleCallback(ie,{timeout:2e3});return()=>window.cancelIdleCallback(W)}let Oe=setTimeout(ie,800);return()=>clearTimeout(Oe)},[h,ne,he]),jn(()=>{let ie=qe.current;if(!ie)return;let Oe=()=>{ie.playbackRate=l};return Oe(),ie.addEventListener("loadedmetadata",Oe),()=>ie.removeEventListener("loadedmetadata",Oe)},[y,l]);let bo=uf(b),Je=b&&(bo||O)&&!B?ha(b):{src:b},eo=O&&!B?ha(O):{src:O},Yo=O&&!P&&!E?[{sized:eo,media:px},...b?[{sized:Je,media:Ns}]:[]]:[];return JE("div",{ref:_,className:"absolute inset-0 z-[1]",..._r("hero-media"),children:[Ar("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),Yo.map(({sized:ie,media:Oe})=>Ar("link",{rel:"preload",as:"image",href:ie.src,media:Oe,fetchPriority:"high",...ie.srcSet?{imageSrcSet:ie.srcSet,imageSizes:"100vw"}:{}},Oe)),(b||O)&&(bo||O?(()=>{let ie=Ar("img",{...b?{src:Je.src}:{},...Je.srcSet?{srcSet:Je.srcSet,sizes:"100vw"}:{},alt:"",...P?{loading:"lazy"}:{},...I?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${S.className}`.trim(),style:{display:T?"none":"block",objectPosition:i,...S.style},onError:Oe=>{Oe.currentTarget.currentSrc&&(Je.srcSet||eo.srcSet?H(!0):C(!0))}},O?void 0:b);return O?JE("picture",{children:[Ar("source",{media:px,srcSet:eo.srcSet||eo.src,sizes:"100vw"}),ie]},`${b} ${O}`):ie})():Ar(gc,{src:b,alt:"",fill:!0,...P?{}:E?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${S.className}`.trim(),style:{display:T?"none":"block",objectPosition:i,...S.style},onError:()=>C(!0)},b)),s&&!x&&y&&w!==void 0&&xe&&(!ne||he)&&!K&&Ar("video",{ref:qe,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:()=>$(!0),children:k.map(ie=>Ar("source",{src:ie.src,type:ie.type},ie.src))},y),s&&x&&y&&w!==void 0&&xe&&(!ne||he)&&!le&&(!b||T)&&Ar(ZE,{src:y,objectPosition:i,onError:()=>pe(!0)},y)]})}import{jsx as ho,Fragment as p_,jsxs as qh}from"react/jsx-runtime";import{jsx as Gn}from"react/jsx-runtime";import{useRef as O$}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as E$,scrollAttrs as _$}from"efficient-shell/format";function Wc({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:i,children:d}){let f=O$(null),x=Jd(),u=tt(),h=n?u:wr,g=Pl(f,!0,s),{attrs:S,style:v}=_$(e[g],o[g]),E=E$.includes(e[g].effect),R=vo(`${In}${x.fill}${t?` ${t}`:""}`,h.className);if(E&&l==="picture")return h.scope(Gn("div",{ref:f,className:R,...r,...h.attrs,...a?{style:a}:{},children:Gn(yk,{attrs:S,style:v,children:x.inner(d)})}));let P=Gn(Sk,{children:x.inner(d)});if(E){let b=i??(x.fill?"h-full":void 0);return h.scope(Gn("div",{ref:f,className:R,...r,...h.attrs,style:{...a,overflow:"clip"},children:Gn("div",{...b?{className:b}:{},...S,style:v,children:P})}))}let I=Object.keys(v).length||a?{style:{...a,...v}}:{};return h.scope(Gn("div",{ref:f,className:R,...r,...h.attrs,...S,...I,children:P}))}var ba=["media","image","image2"],ir={media:"Media",image:"Image",image2:"Image 2"},$l={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function $c(e,o){return e==="image"&&Xs(o)>1?"Image 1":ir[e]}var Yce="Video file",Xce="Upload a video file",Zce="AV1 file",Jce="Upload an AV1 file";function A$(e,o){return xd("mediaType",Wd,o,[e])}var F$=new Set(Object.keys($d)),e_="heroPart";function B$(e,o){return{...o,[e_]:e}}function Qce(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Wd.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 Wd)for(let i of t[l])n[i]=oo(n[i],A$(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=oo(n[l],i));for(let l of ba)for(let i of o[l]??[])n[i]=B$(l,n[i]);return n}function L$(e){let o=e?.[e_];return ba.includes(o)?o:null}function o_(e,o){let t={};for(let[r,a]of Object.entries(e))L$(a)===o&&(t[r]=a);return t}function t_(e){if(!F$.has(e.type))return[];let o=[{part:"media",label:ir.media,depth:0}];return QC(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:$c("image",e.props),depth:1}),Xs(e.props)>1&&o.push({part:"image2",label:$c("image2",e.props),depth:1})),o}function wa(e,o){return`${e}::${o}`}function zc(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return ba.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var zl="data-sf-hero-part";import{MOTION_TIMING as R$}from"efficient-shell/format";var s_="grayscale(1) contrast(1.03)",rpe="Black and white";function D$(e){return e===!0?{filter:s_}:{}}function N$(e){let{filter:o}=D$(e);return o?{style:{filter:o}}:{}}var Ca="sf-photo-grayscale",Kh="data-sf-photo-host",r_={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Kc=`@media (hover:hover){.${Ca}{filter:${s_};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))}.${Ca}:hover,[data-sf-photo-host]:hover .${Ca}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Ca}{transition:none}}`;function l_(e){let o=R$.hover,t={...e.duration!==o.duration.default?{[r_.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[r_.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function i_(e,o,t){if(e===!0)return N$(!0);if(t?.kind==="mono"){let r=l_(t);return{className:Ca,sheet:Kc,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Ca}:{}}var d_="data-sf-repeat",Uh="sf-photo-zoom",M$="--sf-photo-zoom",ape="sf-photo-wash",Uc="sf-photo-wash-rest",Ul="sf-photo-wash-hover",Gc="sf-photo-frame",f_=(e,o)=>`:not([${d_}]:not(${o}) .${e})`,Gh=(e,o)=>`[${d_}]${o} .${e}${f_(e,o)}`,jh=(e,o)=>`${o},${Gh(e,":hover")},[${Kh}]:hover .${e}${f_(e,":hover")}`,a_=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))`,H$=`.${Ul}{opacity:0}@media (hover:hover){.${Uc},.${Ul}{transition:${a_("opacity")}}${jh(Ul,`.${Gc}:hover .${Ul}`)}{opacity:1}${jh(Uc,`.${Gc}:hover .${Uc}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Uh}{transition:${a_("transform")}}${jh(Uh,`.${Gc}:hover .${Uh}`)}{transform:scale(var(${M$}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Uc},.${Ul}{transition:none}}`,npe="sf-photo-move";function spe(e){if(!e||!e.zoom&&!e.darken)return null;let o=l_(e);return{className:Gc,sheet:H$,...o?{style:o}:{}}}function c_(e){return e===!0?{[Ca]:Kc}:{}}var jc="sf-box-reveal",lpe="sf-box-reveal",W$=8,n_=.3,ipe=`@media ${Ns}{.${jc}{opacity:0;transform:translateY(${W$}px);transition:opacity ${n_}s ease-out,transform ${n_}s ease-out}${Gh(jc,":hover")},${Gh(jc,":focus-within")}{opacity:1;transform:none}}@media ${Ns} and (prefers-reduced-motion:reduce){.${jc}{transition:none;transform:none}}`;import{hidableText as $$}from"efficient-easel/draw";var z$={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"},U$={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 u_(e){let o=e.isVideo&&PP(e.videoSource)==="youtube",t=e.isVideo&&TP(e.videoPlayback)==="click",r=o?OP($$(e.youtubeUrl)):null,a=ek(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:ok(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Xs(e)>1}}function jl(e,o){return gn(Ia({_partMotion:e},o))}function Gl(e,o){return Hn(Ia({_partMotion:e},o))}var qc=e=>Sh({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),m_=el.img;function x_({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?ho(yc,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?ho(Wc,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:i}):ho("div",{className:a,...n,...s?{style:s}:{},children:i})}function Kn(e,o){return i_(void 0,void 0,Hb(Ia({_partMotion:e},o)))}function h_(e){return ba.some(o=>Kn(e,o).className)?{hostAttrs:{[Kh]:""},sheet:Kc}:{}}function Vc({treatment:e,children:o}){return e.className?ho("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):ho(p_,{children:o})}function Yc({color:e,opacity:o,passClicks:t=!0}){return o>0?ho("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100},..._r("tint")}):null}function Xc({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let i=o&&t?{[zl]:e}:void 0;return ho(x_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:m_,children:l})}function I_({partMotion:e,editing:o,children:t}){let r=jl(e,"media"),a=Gl(e,"media"),n=Kn(e,"media"),s=ho(Vd,{fill:el,children:t}),l=n.className?ho("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?ho(x_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:m_,children:l}):ho(p_,{children:l})}function g_({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return qh("div",{className:`absolute inset-0 z-[1] grid ${z$[o]} ${U$[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[ho(Xc,{part:"image",editing:t,marked:r,entrance:jl(a,"image"),scroll:Gl(a,"image"),origins:qc(n),className:"relative overflow-hidden",children:qh(Vc,{treatment:Kn(a,"image"),children:[ho(Wl,{posterSrc:rt(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),ho(Yc,{color:n.tintColor,opacity:n.tintOpacity})]})}),ho(Xc,{part:"image2",editing:t,marked:r,entrance:jl(a,"image2"),scroll:Gl(a,"image2"),origins:qc(s),className:`relative overflow-hidden ${Mv({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:qh(Vc,{treatment:Kn(a,"image2"),children:[ho(Wl,{posterSrc:rt(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),ho(Yc,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Fr,Fragment as j$,jsxs as G$}from"react/jsx-runtime";import{useEffect as K$,useRef as q$,useState as V$}from"react";import{PlaySolidIcon as Y$}from"efficient-shell/icons/efficient-looks";function y_({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=V$("large");return K$(()=>n("large"),[e]),e?G$(j$,{children:[!o&&a!=="none"&&Fr(Kf,{src:a==="large"?EP(e):_P(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:s=>{a==="large"&&s.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(a==="large"?"small":"none")},`${e}-${a}`),t&&!r&&Fr("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Fr("iframe",{src:wx(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 S_({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=q$(null),d=Tl(i,!0,!0)==="phone";if(!e&&!o)return null;let f=xf({video:o,av1:t,videoPhone:r,av1Phone:a},d),x=mf(f.video,f.av1);return n&&!l?e?Fr("iframe",{src:wx(e,"click"),title:Cx,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):Fr("video",{ref:u=>{i.current=u},...x.length===1?{src:x[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:x.length>1&&x.map(u=>Fr("source",{src:u.src,type:u.type},u.src))},f.video):Fr("button",{ref:u=>{i.current=u},type:"button","aria-label":Cx,onClick:l?void 0:s,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${l?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:Fr(Y$,{size:28})})}function b_(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 w_}from"efficient-shell/format";var C_=["top","middle","bottom"],k_=["left","center","right"],v_="bottom",P_="left",X$={top:"Top",middle:"Middle",bottom:"Bottom"},Z$={left:"Left",center:"Center",right:"Right"},Hpe="Up and down",Wpe="Sideways",J$={top:"flex-start",middle:"center",bottom:"flex-end"},Q$={left:"flex-start",center:"center",right:"flex-end"},ez="--sf-hero-phone-y",oz="--sf-hero-phone-x";function tz(e){return w_(C_,v_,e)}function rz(e){return w_(k_,P_,e)}function T_(e,o){let t=tz(e),r=rz(o),a={};return t!==v_&&(a[ez]=J$[t]),r!==P_&&(a[oz]=Q$[r]),a}var az="--sf-hero-phone-words-top",nz="--sf-hero-phone-words-bottom",sz="--sf-hero-phone-box-gap",$pe=100,zpe=90,Upe=28,lz=0,iz=200,jpe="Words space top",Gpe="Words space bottom",Kpe="Space between boxes";function Vh(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(iz,Math.max(lz,Math.round(e)))}function O_(e,o,t){let r={},a=Vh(e),n=Vh(o),s=Vh(t);return a!==void 0&&(r[az]=`${a}px`),n!==void 0&&(r[nz]=`${n}px`),s!==void 0&&(r[sz]=`${s}px`),r}function qpe(){return C_.map(e=>({label:X$[e],value:e}))}function Vpe(){return k_.map(e=>({label:Z$[e],value:e}))}import{hexToRgb as dz}from"efficient-shell/format";var fz=!0;var cz=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function E_(e){let o=dz(e);return o?`${o.r},${o.g},${o.b}`:null}function __(e){return e==null?fz:e!==!1}function A_(e){let o=(e?E_(e):null)??E_(er);return`linear-gradient(180deg, ${cz.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as F_,parseOption as pz}from"efficient-shell/format";var B_="bottom";var uz=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],mz={bottom:180,top:0,left:270,right:90},xz=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],hz=[[null,33],[.6,67],[.94,100]];function Iz(e,o){let{r:t,g:r,b:a}=F_(e)??F_(er);return`rgba(${t},${r},${a},${o})`}function L_(e){return pz(uz,B_,e)}function R_(e=er,o=B_){let t=L_(o),r=(t==="top"||t==="bottom"?xz:hz).map(([a,n])=>`${a===null?"transparent":Iz(e,a)} ${n}%`);return`linear-gradient(${mz[t]}deg, ${r.join(", ")})`}function D_(e,o){let t=po(e.overlayColor),r=po(e.overlayPosition),a=po(o)??er;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:L_(r)}}var wz=gz({});function wue({name:e,process:o,mediaType:t=$d.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:f,objectPositionPhone:x,objectPositionTablet:u,tintColor:h=er,tintOpacity:g=0,groups:S,editing:v=!1,themeClassName:E,themeStyle:R,overlayColor:P,overlayPosition:I,mediaLayout:b,mediaLayoutPhone:O,mediaImage2:_,objectPosition2:N,objectPosition2Phone:w,objectPosition2Tablet:F,tintColor2:y=er,tintOpacity2:k=0,videoSource:T,youtubeUrl:C,videoPlayback:B,partMotion:H,laterSlide:K=!1}){let $=Ct(),le=tt(),{alignment:pe="left",textureOpacity:J,textureOn:xe,textureColor:ae,quietVideo:ne,phoneUpDown:he,phoneSideways:Ze,phoneWordsTop:qe,phoneWordsBottom:bo,phoneBoxGap:Je,holdReel:eo,reelHeld:Yo,shownSlide:ie,ratioMin:Oe}=yz(wz),W=ml(),Ie=K&&W==="first",ge=bz(null),[Ue,Bo]=M_(ie===void 0?void 0:!1);Sz(()=>{let Fs=ge.current;Bo(ie===void 0||!Fs?void 0:b_(Fs.closest(".hero-track"),"data-slide-name")[ie]===Fs)});let Ve=t==="video",wo=Ve?rt(r):void 0,ve=Ve?rt(n):rt(r)??rt(n),Co=Ve?{av1:rt(s),phone:rt(l),av1Phone:rt(i),poster:rt(d)}:{},Os=typeof a=="number"?a/100:1,{fromYouTube:Xo,onClick:Zi,youTubeId:Ya,backgroundFile:Ft,desktopLayout:Ji,phoneLayout:pr,twoPictures:qr}=u_({isVideo:Ve,videoSource:T,videoPlayback:B,youtubeUrl:C,mediaLayout:b,mediaLayoutPhone:O}),[Xa,Es]=M_(!1);Xa&&Yo===!1&&Es(!1);let ur=!Xa,Za=D_({overlayColor:P,overlayPosition:I},ae),_s=Ve?null:jl(H,"image"),Qi=Ve?null:Gl(H,"image"),Ja=h_(H),As=nt(Vc,{treatment:Ve?{}:Kn(H,"image"),children:nt(Wl,{videoSrc:Ft?wo:void 0,videoAv1Src:Ft?Co.av1:void 0,videoSrcPhone:Ft?Co.phone:void 0,videoAv1SrcPhone:Ft?Co.av1Phone:void 0,posterSrc:ve,posterSrcPhone:Co.poster,showVideo:Ft,playbackRate:Os,objectPosition:f,objectPositionPhone:Ve?void 0:x,objectPositionTablet:Ve?void 0:u,quiet:ne,slideShown:Ue,laterSlide:K,laterOfLead:Ie})}),ed=N_("section",{ref:ge,className:vo(`${Oe?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${E?` ${E}`:""}`,le.className),...le.attrs,style:R,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Ft&&wo?"video":"still",...Ja.hostAttrs,..._r("slide"),children:[nt(Ec,{sheet:Ja.sheet}),nt(I_,{partMotion:H,editing:v,children:qr?nt(g_,{laterSlide:K,desktopLayout:Ji,phoneLayout:pr,editing:v,partMotion:H,first:{src:r,objectPosition:f,objectPositionPhone:x,objectPositionTablet:u,tintColor:h,tintOpacity:g},second:{src:_,objectPosition:N,objectPositionPhone:w,objectPositionTablet:F,tintColor:y,tintOpacity:k}}):Xo||_s||Qi?N_(Xc,{part:Ve?"media":"image",editing:v,entrance:_s,scroll:Qi,origins:qc({objectPosition:f,objectPositionTablet:u,objectPositionPhone:x}),className:"absolute inset-0 z-[1]",children:[As,Xo&&nt(y_,{youTubeId:Ya,ownPoster:!!ve,background:!Zi,editing:v})]}):As}),Zi&&nt(S_,{youTubeId:Ya,fileSrc:Xo?void 0:wo,fileAv1Src:Xo?void 0:Co.av1,fileSrcPhone:Xo?void 0:Co.phone,fileAv1SrcPhone:Xo?void 0:Co.av1Phone,playing:Xa,onPlay:()=>{Es(!0),eo?.()},editing:v}),ur&&!qr&&nt(Yc,{color:h,opacity:g,passClicks:!1}),ur&&__(xe)&&nt("div",{className:"absolute inset-0 z-[2]",style:{background:Za.own?R_(Za.color,Za.position??void 0):A_(Za.color),...J!==void 0?{opacity:J/100}:null},..._r("overlay")}),ur&&nt("div",{className:[Oe?"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",$?mC:"",v?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...eC,...T_(he,Ze),...O_(qe,bo,Je)},..._r("hero-content"),children:S&&nt(S,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return le.scope(Ie?nt(Gf,{children:ed}):ed)}var H_=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as j_}from"efficient-easel/draw";import{isNodeList as kz}from"efficient-easel/data";var Yh=3,Xh=()=>({type:G,props:{direction:"column"},slots:{[Ce]:[{type:"ImageBlock"},{type:G,props:{direction:"column"},slots:{[Ce]:[{type:"Text",props:xr()},{type:"Text"}]}}]}}),W_=()=>Array.from({length:Yh},Xh);var $_=["","","","","",""],z_="#ticker",Kl="strip",Zh={sectionAccent:Ir,line:!1};function Cz(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Jh(e){return Cz(e).length>0}function Eue(e){return e.showTicker!==!1&&Jh(e)}var G_=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,kz(r)?r.map(a=>G_(a,o)):r]))}}),vz=e=>{let[o]=Lt([Xh()],a=>j_(a)),{id:t,...r}=G_(o,e).props;return r},st={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>H_.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Rs.toLowerCase()}`,seeds:()=>[],addBlocked:Qm,notice:ex},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Rs.toLowerCase()}`,seeds:()=>[],addBlocked:Qm,notice:ex},ProcessSteps:{slot:Ls,childType:G,addLabel:`Add ${Rs.toLowerCase()}`,seeds:e=>Array.from({length:Yh},()=>vz(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},U_=1,Pz={slot:Kl,childType:G,addLabel:`Add ${Rs.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=U_?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>U_?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},K_={Hero:{[Kl]:Pz}};function $ue(e){for(let[o,t]of Object.entries(e)){if(uo(st,o)&&z(st,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);st[o]=t}}function zue(e,o){let t=z(st,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:j_(t.childType),...r}}))}:null}var Oz=["GalleryB"];function q_(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!Oz.includes(l))return s;let i=z(st,l);if(!i?.legacy)return s;let d=s.props??{},f=d[i.slot];if(Array.isArray(f)&&f.length>0)return s;let x=i.legacy(d);if(!x.length)return s;t=!0;let u=String(d.id??l),h=x.map((g,S)=>({type:i.childType,props:{id:`${i.childType}-${u}-${S}`,...g}}));return{...s,props:{...d,[i.slot]:h}}}),a=new Set(Tz(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var Ez={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},_z={"Footprint.source":"typed"};function V_(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(Ez)){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(_z)){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],ZS(l)&&l!==a&&!De(i)&&(i[no]=l),o=i,t=!0}if(e.type&&o){let r=gd(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=Ye({props:o},a=>We(a,V_));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function Y_(e){return rd(e,o=>We(o,V_))}import{readHidable as Az}from"efficient-easel/draw";var zt=G,Ut=Ce;function ka(e){if(e.theme)return Jt(e.theme);let o=e.site?.themePresets;return o?Jt({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function Fz(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var Z_=new Set(["id"]),Br={},ql=[],Bz={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"]},Lz=Object.keys(Bz),va=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...Lz,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function ro(e){for(let[o,t]of Object.entries(e)){if(uo(Br,o)&&z(Br,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Br[o]=t}}function Lr(e){return z(Br,e)}function Rz(e){return uo(Br,e)&&ql.includes(e)}function J_(e,o=va){return uo(Br,e)&&(o.includes(e)||Rz(e))}function lme(e){let o=z(St,e);if(!o)throw new Error(`lib/sections/section-to-box: "${e}" has no head row in SPLITTABLE_SECTIONS`);let t=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&t.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&t.push({kind:"button",key:"linkText",href:"linkHref"}),t}var Qh=e=>Az(e),Me=e=>Qh(e).text.trim()!=="";function Dz(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 Nz=e=>e==="heading"?xr():e==="eyebrow"?Xt():{};function Mz(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 Hz(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?z(e.map,t):void 0)??e.fallback}}function X_(e,o,t,r,a={}){let n={...o};for(let s of e){let[l,i,d]=typeof s=="string"?[s,s,void 0]:s;if(t[l]===void 0)continue;let f=d?d(t[l],t,a):t[l];f===void 0?delete n[i]:n[i]=f,r(l,i,f===void 0)}return n}function Wz(e){let o=new Set([...Z_,"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 eI=e=>dn(e.headPlacement)==="own-box";function $z(e){return eI(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function zz(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 Uz(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 jz(e,o,t){if(!t.press)for(let r of Uz(e)){let a=zz(o,r);if(a!==void 0)return a}}function Pa(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:$z(r))??jz(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,b)=>{s.push({key:I,home:b}),i.add(I)},f=r._partStyles??{},x=Wz(o),u=0,h=(I,b)=>({type:I,props:{...b,id:`${n}~${I}-${++u}`}}),g=(I,b,O,_,N,w,F)=>{if(N){for(let k of I??[]){let T=typeof k=="string"?k:k[0];O[T]!==void 0&&F(T,`nothing \u2014 the ${_} has no parts, so it is not drawn`)}return}let y=typeof b=="function"?b(r,t):b??{};return X_(I??[],y,O,(k,T,C)=>F(k,C?`nothing \u2014 the old value draws nothing (${_}: no ${T})`:`${w}${_}: ${T}`),t)},S=I=>Lt(I,b=>`${n}~${b}-${++u}`),v=(I,b,O)=>{let _=I.of?I.of(b):Array.isArray(b[I.key])?b[I.key]:[],N=typeof I.props=="function"?I.props(r,t):I.props??{},w=_.map((C,B)=>{let H=C??{},K=I.item?.(H,B,r)??{},$=E(K.reverse?[...I.parts].reverse():I.parts,H,!1,`item ${B+1}: `);return I.flat?K.props?$.map(le=>({...le,props:{...le.props,...K.props,id:le.props.id}})):$:[h(zt,{name:`${I.name} ${B+1}`,...N,...K.props??{},[Ut]:$})]});if(I.groups){let C=I.groups;return O(I.key,_.length?`one Box per item (${_.length}), in a Box per group`:"nothing \u2014 the list is empty"),hd(_.map(B=>B??{}),C.of,C.of).map((B,H)=>{let K=B.items.map(ae=>ae.item),$=C.parts?E(C.parts,C.head?.(K,r)??{},!1,`group ${H+1}: `):[],le=B.items.map(ae=>w[ae.index]),pe=C.perRow?.(K.length,r),J=Number.isInteger(pe)&&pe>=1?pe:1,xe=[];if(C.perRow&&J<le.length)for(let ae=0;ae*J<le.length;ae++)xe.push(le.slice(ae*J,(ae+1)*J).flat());return h(zt,{name:`${C.name} ${H+1}`,...C.props??{},[Ut]:[...$,h(zt,{name:`${C.itemsName} ${H+1}`,...C.itemsProps?.(K.length,r)??{},[Ut]:xe.length?xe.map((ae,ne)=>h(zt,{name:`${C.rowName??`${C.itemsName} row`} ${ne+1}`,...C.rowProps??{},[Ut]:ae})):le.flat()})]})})}let F=I.perRow?.(r),y=I.perRow?Number.isInteger(F)&&F>=1?F:1:0;if(O(I.key,(_.length?I.flat?`each item's parts (${_.length} items), in order`:`one Box per item (${_.length}), its parts inside`:"nothing \u2014 the list is empty")+(y&&_.length?`, in rows of ${y}`:"")),!y)return w.flat();let k=typeof I.rowProps=="function"?I.rowProps(r,t):I.rowProps??{},T=[];for(let C=0;C*y<w.length;C++){let B=w.slice(C*y,(C+1)*y).flat(),H=I.rowFiller?y-w.slice(C*y,(C+1)*y).length:0;T.push(h(zt,{name:`${I.rowName??`${I.name} row`} ${C+1}`,...k,[Ut]:[...B,...Array.from({length:H},(K,$)=>h(zt,{name:`Empty ${$+1}`,...I.rowFiller,[Ut]:[]}))]}))}return T},E=(I,b,O,_)=>{let N=[],w=(y,k)=>O?d(y,k):void 0,F=y=>O?f[y]:void 0;for(let y of I)if(!(y.when&&!y.when(r,O?void 0:b)))switch(y.kind){case"text":{let k=Qh(b[y.key]);if(!k.text.trim()&&!(O&&t.press&&o.pressKeepsEmpty?.includes(y.key))){w(y.key,"nothing \u2014 empty words draw nothing, so no block");break}let T=Nz(y.role??"body"),{_partStyles:C,...B}=T,H=Mz(T,y.styleFrom?{...y.style,...y.styleFrom(r,t)}:y.style,F(y.key),y.props?.align);N.push(h("Text",{text:y.mark==="accentLead"?Dz(k.text):y.mark==="accentItalic"?Ds(k.text):k.text,...B,...y.props??{},...H,...k.hidden?{_hidden:!0}:{}})),w(y.key,`${_}Text block: its words${k.hidden?", hidden":""}`);break}case"button":{let k=Qh(b[y.key]);if(!k.text.trim()){w(y.key,"nothing \u2014 no words, no button"),w(y.href,"nothing \u2014 no button to link"),typeof y.variant=="object"&&w(y.variant.key,"nothing \u2014 no button to style");break}let T=typeof b[y.href]=="string"&&b[y.href]?b[y.href]:"#",C={...y.style??{},...F(y.key)??{}};N.push(h("ButtonBlock",{label:k.text,href:T,...typeof y.props=="function"?y.props(b,t):y.props??{},...Hz(y.variant,b),...Object.keys(C).length?{_partStyles:{label:C}}:{},...k.hidden?{_hidden:!0}:{}})),w(y.key,`${_}Button block: its words`),w(y.href,`${_}Button block: its link`),typeof y.variant=="object"&&w(y.variant.key,`${_}Button block: its Style`);break}case"image":{let k=b[y.key];if(typeof k!="string"||!k){w(y.key,"nothing \u2014 no picture, no block"),y.alt&&w(y.alt,"nothing \u2014 no picture to describe");break}let T=y.alt&&typeof b[y.alt]=="string"?b[y.alt]:"";N.push(h("ImageBlock",{src:k,alt:T,...y.props??{}})),w(y.key,`${_}Image block: its picture`),y.alt&&w(y.alt,`${_}Image block: its alt text`);break}case"list":{N.push(...v(y,b,w));break}case"group":{let k=E(y.parts,b,O,_),T=g(y.box,y.props,b,`${y.name} Box`,!k.length&&!y.keepEmpty,_,w);T&&N.push(h(zt,{name:y.name,...T,[Ut]:k}));break}case"block":{let k=y.parts?E(y.parts,b,O,_):[],T=g(y.box,y.props,b,`${y.type} block`,!!y.parts&&!k.length&&!y.keepEmpty,_,w);T&&N.push(h(y.type,{...T,...y.slot?{[y.slot]:k}:{}}));break}case"core":{let k=y.as??e.type,T={...y.headless?{}:{headPlacement:"own-box"},...y.props??{}},C=y.keep==="rest"?Object.keys(b).filter(H=>!x.has(H)&&!(H in T)):y.keep;for(let H of C)b[H]!==void 0&&(T[H]=b[H],w(H,`the ${k} block inside the Box`));if(y.keep==="rest"){for(let K of Object.keys(y.props??{}))b[K]!==void 0&&!x.has(K)&&w(K,`nothing \u2014 the ${k} block inside the Box has the row's own value`);b.headPlacement!==void 0&&w("headPlacement",`the ${k} block inside the Box: own-box`);let H=Object.fromEntries(Object.entries(f).filter(([K])=>!x.has(K)));Object.keys(H).length&&(T._partStyles=H)}for(let[H,K]of Object.entries(y.rename??{}))b[H]!==void 0&&(T[K]=b[H],w(H,`the ${k} block inside the Box: ${K}`));if(y.derive){Object.assign(T,y.derive.props(b,t));for(let H of y.derive.reads)b[H]!==void 0&&w(H,`the ${k} block inside the Box`)}let B=typeof y.slots=="function"?y.slots(b,t):y.slots??{};for(let[H,K]of Object.entries(B))T[H]=K.flatMap($=>"kind"in $?v($,b,w):S([$]));N.push(h(k,T));break}}return N},R=(I,b)=>{let O=b===0?"Box":`${I.name} Box`,_=E(I.parts,r,!0,b===0?"":`${O}: `),N=typeof I.boxProps=="function"?I.boxProps(r,t):I.boxProps??{},w=X_(I.box??[],N,r,(F,y,k)=>d(F,k?`nothing \u2014 the old value draws nothing (${O}: no ${y})`:`${O}: ${y}`),t);return{type:zt,props:{name:I.name,...w,[Ut]:_,id:Fz(n,b)}}},P=[o,...o.also??[]].map(R);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[I,b]of Object.entries(o.reads??{}))r[I]!==void 0&&d(I,b);for(let[I,b]of Object.entries(o.drop??{}))I in r&&(l.push({key:I,why:b}),i.add(I));for(let I of Object.keys(r))Z_.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 Q_(e,o=ql,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)?z(Br,s.type):void 0;if(!l)return[s];let i=Pa(s,l,t);return i.skipped!==void 0?[s]:(a=!0,i.nodes)});return a?{...e,content:n}:e}function e1(e,o=ql,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?z(Br,a.type):void 0;if(!s)return;let l=Pa(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as Gz,BLOCK_SIZE_KEYS as Kz,parseBlockWidthFit as Jc,phoneKey as o1,parseTextFit as Zc,tabletKey as t1,viewKeyAt as r1}from"efficient-easel/draw";import{sideLengthAt as qz}from"efficient-easel/screen/lib/content/length-units";var Vz="sf-block-size",Vl=["width","minWidth","maxWidth"],Qc=e=>`${e}Unit`,Rr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,Yz={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"}},l1={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"}},Xz={desktop:l1.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"}},Zz={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},i1="max-view-wide:grow!";function d1(e){return ep(e).mode.phone==="fill"}var Jz={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Qz={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},eU="data-sf-min-width",a1={two:{desktop:"wide",phone:tx.phone},three:tx},oU={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)]"]}},oI={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)]"]}},tU={minWidth:{desktop:oI.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:oI.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)]"]}},rU=["widthFit",...Vl],n1={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},tI={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!"},aU={desktop:tI.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!"},f1={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"},nU={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:f1.phone},c1={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},s1={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:c1.phone};function p1(e){let o=ep(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>Zz[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function u1(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=ep(e),n=d=>o?a1.three[d]:a1.two[d],s={fill:[],fixed:[],min:[]},l=a("minWidth");for(let d of t){let f=r[d];(f==="fill"||f==="fixed")&&s[f].push(n(d)),l[d]!==void 0&&s.min.push(n(d))}let i={};for(let d of["fill","fixed"])s[d].length&&(i[Qz[d]]=s[d].join(" "));return s.min.length&&(i[eU]=s.min.join(" ")),i}function ep(e){let o=rU.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Jc(n)!==void 0:Rr(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),l=o?a(n?.tablet)??s:s;return{desktop:s,tablet:l,phone:a(n?.phone)??l}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=Qc(a),s={};for(let i of t)s[r1(a,hn(i))]=Rr(e[a]?.[i]),s[r1(n,hn(i))]=e.units?.[a]?.[i];let l=i=>qz(s,{length:a},n,hn(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(Jc,e.widthFit)}}function rI(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(k=>Zc(e.textFit?.[k])==="ellipsis"),r=o&&!t,a=r?Xz:l1,n=r?tU:oI,s=r?aU:tI,l=[],i={},d={},{three:f,sides:x,lengthPerSide:u,mode:h}=ep(e),g=u("width");for(let k of x){let T=h[k];!T||T==="fit"||(l.push(f?a[k][T]:Yz[k][T]),T==="fixed"&&(i[Jz[k]]=un(g[k]?.value??Gz.fallback,g[k]?.unit)))}for(let k of Vl.filter(T=>T!=="width")){let T=u(k);for(let C of x){let B=T[C];if(B===void 0)continue;let[H,K]=f?n[k][C]:oU[k][C];i[H]=un(B.value,B.unit),l.push(K)}}let S=Zc(e.textFit?.desktop),v=Zc(e.textFit?.phone),E=k=>{let T=Rr(e.minFont?.[k]);return T===void 0?void 0:e.units?.minFont?.[k]==="vw"?`${T}vw`:String(T)},R=E("desktop"),P=E("phone"),I=Zc(e.textFit?.tablet),b=I!==S||v!==void 0?I:void 0,O=E("tablet"),_=O!==R||P!==void 0?O:void 0,N=Rr(e.maxWidth?.desktop),w=Rr(e.maxWidth?.tablet)??N,F={desktop:N!==void 0,tablet:w!==void 0,phone:(Rr(e.maxWidth?.phone)??w)!==void 0},y=(k,T,C)=>{if(T!=="line"&&T!=="ellipsis")return;let B=k==="tablet"?void 0:k,H=(K,$)=>C||!B?K[k]:$[B];if(T==="line"){l.push(H(s,n1));return}if(l.push(H(tI,n1)),l.push(H(nU,f1)),f&&!C&&k==="desktop")for(let K of["desktop","tablet"])F[K]||l.push(s1[K]);else F[k]||l.push(H(s1,c1))};return b?(y("desktop",S,!0),y("tablet",b,!0),y("phone",v??b,!0)):(y("desktop",S,!1),y("phone",v??S,!1)),S&&(d[rr.fit]=S),b&&(d[rr.fitTablet]=b),v&&(d[rr.fitPhone]=v),R!==void 0&&(d[rr.min]=R),_!==void 0&&(d[rr.minTablet]=_),P!==void 0&&(d[rr.minPhone]=P),!r&&(b||_!==void 0)&&(d[rr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[Vz,...l].join(" "),style:i,attrs:d}}function mme(e){if(Rr(e.maxWidth?.desktop)!==void 0)return!0;let o=Jc(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function m1(e){return["desktop","tablet","phone"].some(o=>{let t=Jc(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Rr(e.minWidth?.[o])!==void 0})}function op(e){let o={};for(let t of Kz){let r=e[t],a=e[t1(t)],n=e[o1(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=Qc(t),l={desktop:e[s],tablet:e[t1(s)],phone:e[o1(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var x1={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as sU}from"efficient-shell/format";import{convertLength as lU}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as h1}from"efficient-easel/draw";var jt=(e,o,t,r)=>o===t?e:lU(e,o,t,r,{min:0,max:200,step:4}),Ta={textFit:"line",textFitPhone:"wrap"},Oa={...U,[jo]:""},{label:Kme,href:qme,...iU}=x1.defaultProps,lo=iU,Ea={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...Bm,sectionAccent:0},Vn={sectionAccent:-1},Q=[...yr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",lk.unitKey,...fk,...ak,"anchor",qs,...Cn,_d,...Md,...bc,...Nd(["widthFit",...Vl,...Vl.map(Qc)]),...Object.values(Ao)],qn="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:qn,fullWidth:qn,pageWidth:qn,backgroundWidth:qn,contentWidth:qn,contentMax:qn},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)"])),tp={[Mt]:"read by `wrapperPad`: a value named here is drawn as it is, so the section's own px is not added; the Box's padding is the total"};function re(e,o){let t=ye(e.sectionPaddingTop)??0,r=ye(e.sectionPaddingBottom)??0,a=ye(e.sectionPaddingTopTablet),n=ye(e.sectionPaddingBottomTablet),s=hr(e.sectionPaddingUnit),l=hr(e.sectionPaddingUnitTablet),i=hr(e.sectionPaddingUnitPhone),d=Array.isArray(e[Mt])?e[Mt]:[],f=(v,E)=>d.includes(v)?0:E,x=(v,E,R,P,I,b)=>{let O=ye(e[v]);if(O!==void 0)return O+jt(f(v,b),"px",i,"mobile");let _=P===void 0?{n:I,unit:s,key:R}:{n:P,unit:l,key:E};return jt(_.n,_.unit,i,"mobile")+jt(f(_.key,b),"px",i,"mobile")},u=(v,E,R,P,I,b)=>R!==void 0?{[v]:R+jt(f(v,b??I),"px",l,"tablet")}:b===void 0?{}:{[v]:jt(P,s,l,"tablet")+jt(f(E,b),"px",l,"tablet")},h=v=>({desktop:mo[v],tablet:h1(mo[v],"tablet"),phone:h1(mo[v],"mobile")}),g=h("top"),S=h("bottom");return{[g.desktop]:t+jt(f(g.desktop,o.top),"px",s,"desktop"),[S.desktop]:r+jt(f(S.desktop,o.bottom),"px",s,"desktop"),...u(g.tablet,g.desktop,a,t,o.top,o.topTablet),...u(S.tablet,S.desktop,n,r,o.bottom,o.bottomTablet),[g.phone]:x(g.phone,g.tablet,g.desktop,a,t,o.topPhone),[S.phone]:x(S.phone,S.tablet,S.desktop,n,r,o.bottomPhone)}}var fe=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 lt(e,o){let t={};for(let[a,n]of sx)e[a]!==void 0&&(t[n]=e[a]);let r=Kd(e,Dn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var Dr=e=>[...sx.map(([o,t])=>[o,t,(r,a)=>lt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>lt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>lt(t,e).sectionPaddingBottom]],dU={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Vme=e=>o=>Me(o.props[e])?[dU]:[],ce=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:U,...o?{style:o}:{}}),Yn=e=>({kind:"group",name:"Chip",props:{...L,...Yt("main"),...ko(6,14)},parts:[ce(e,{color:"background",...M("label",12),weight:600,letterSpacing:.16})]}),I1=e=>e.background!=="transparent",fU=(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},Yl={align:"right",alignPhone:"left"},cU=(e,o,t)=>{let r=a=>fU(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}},Xl=(e,o,t,r={})=>cU(e,o,{...Oa,...Yl,...r,_partStyles:{text:{...Lo,color:"labels",...t,case:Lo.case,...Yl}}}),Xn=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:ka(o)?.selected??0,g1="var(--site-surface-2)",rp=(e,o)=>ka(o)?.themes[Xn(e.sectionAccent??0,o)],Ho=(e,o)=>(t,r)=>{if(!o?.(t,r))return Yt(e);let a=rp(t,r)?.[e];return a?{fillColor:a}:{}},ap=(e,o)=>Nr(e,o)>=0,y1=e=>e.startsWith("#")&&sU(e)!==null,np=(e,o,t)=>{let r=e?.trim();if(r&&y1(r))return{fillColor:r};let a=dx(r);if(a)return Yt(a);let n=r===g1?rp(o,t):void 0;return n?{fillColor:Lw(n)}:{}},sp=e=>{let o=e?.trim();return!o||o==="transparent"||o===$t||dx(o)||o===g1||y1(o)?void 0:"it paints a colour that no Box Fill can hold"},Nr=(e,o)=>{let t=ka(o)?.themes;return t&&I1(e)?Rw(t,Xn(e.sectionAccent,o)):-1},Mr=(e,o,t)=>{let r=Nr(o,t);return r>=0?r:e},Zn=(e,o)=>{let t=ka(o)?.themes,r=t?Dw(t,Xn(e,o)):-1;return r>=0?r:e},_a=(e,o)=>{let t=Nr(e,o);return t>=0?{sectionAccent:t}:{}},Hr=(e,o)=>I1(e.props)&&Nr(e.props,o)<0?[{kind:"band-preset",page:Xn(e.props.sectionAccent,o)}]:[],Jn=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=hn(o),d=(x,u,h)=>{let g=hr(u),S=Pw(x,g,"spacing",h);return S===null?null:jt(S,g,"px",i)},f=o==="desktop"?d(a,n,lC)??gC(a):d(s,l,iC)??SC(s)??CC(a,n);return jt(Math.min(r,f),"px",t,i)},Zl=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),Jl=e=>({top:0,right:0,bottom:0,left:0,...e}),aI=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...L,...Zl,...Ho("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],Ge.kind,Ge.duration,Ge.delay],parts:r});import{phoneKey as gI,readHidable as yI}from"efficient-easel/draw";import{isNodeList as NU,newId as MU}from"efficient-easel/data";function S1(e){return Math.min(4,Math.max(2,e??3))}var Jme={eyebrow:"Label",title:"Section *heading.*"},pU=td.Cards,b1={label:"Cards",fields:pU,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var oxe={eyebrow:"Highlight",title:"Key *features.*"},txe=()=>[{label:c("Feature label one")},{label:c("Feature label two")},{label:c("Feature label three")},{label:c("Feature label four")},{label:c("Feature label five")},{label:c("Feature label six")}],w1={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as uU}from"efficient-shell/format";var nI="cardPlace",mU=["","top-line"];function sxe(e){return uU(mU,"",e[nI])}var lxe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",ixe="data-sf-top-line",xU=new Set(["Cards",so]);function dxe(e){return typeof e=="string"&&xU.has(e)}var hU=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 fxe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:hU(e)?{...e,top:0}:e}var cxe="outsideFramedCard";var lp={sectionBorder:{top:0,right:1,bottom:1,left:0},...Yt("background")},IU={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Aa=e=>({direction:"row",columns:e,columnsTablet:e,...IU}),C1=(e={})=>Be(Rc,{...U,tag:"p",[nI]:"top-line"},e,!0),Qn=(e=Qr)=>{let o=nn(e);return{...o,props:{...lp,...o.props},slots:{[Ce]:[...o.slots?.[Ce]??[],C1()]}}},sI=(e=!1)=>{let o=sn(e);return{...o,props:{...lp,...o.props}}},gU={name:"name",time:"time",note:"note",price:"price"},yU={textStyle:"body-1",...M("body",16),weight:500,lineHeight:1.5},SU={...Lo,...M("label",12),letterSpacing:.18,lineHeight:1.5},bU={textStyle:"body-1",...M("body",14),lineHeight:1.6},wU={textStyle:"body-1",fontRole:"heading",...M("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},CU={...M("label",11),letterSpacing:.25},kU={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},ip=e=>({direction:"row",columns:e,...kU}),lI=[...new Set([...Object.keys(Aa(1)),...Object.keys(ip(1))])],iI=()=>{let e=gU,o={tag:"p",widthFit:"fill"};return{type:G,props:{...L,name:"Card",justify:"between",gap:16,gapPhone:16,...ko(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Yt("surface"),shadow:!0},slots:{[Ce]:[C1(CU),{type:G,props:{...L,name:"Words",gap:8,gapPhone:8},slots:{[Ce]:[Be(e.name,{...U,...o},yU),Be(e.time,{...oe,...o},SU),Be(e.note,{...oe,...o},bU)]}},Be(e.price,{...U,...o},wU)]}}};import{tabletKey as T1}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as dp}from"efficient-easel/draw";var fp=Vt,dI=dp,k1=960,v1=Vt,P1={min:fp,max:1600,step:10},cp="stackBelow";function wxe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<P1.min||e>P1.max))return Math.round(e)}var vU=e=>`sf-stack-${e}`,PU=e=>`sf-stack-${e}-gutter`,TU=e=>`sf-stack-${e}-outer`,es=e=>`${e-.02}px`;function Cxe(e,o={}){let t=o.gutter!==!1,r=`.${vU(e)}`,a=`.${PU(e)}`,n=`.${TU(e)}`,s=[];if(e>fp){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,dp);s.push(`@media (min-width:${fp}px) and (max-width:${es(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:${fp}px) and (max-width:${es(i)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>dp&&s.push(`@media (min-width:${dp}px) and (max-width:${es(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${es(e)}){${a}${a}{padding-inline:${fC.frame}}}`),t&&e<k1&&s.push(`@media (min-width:${e}px) and (max-width:${es(k1)}){${a}${a}{padding-inline:${dC}}}`),e>v1&&s.push(`@media (min-width:${v1}px) and (max-width:${es(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 OU}from"efficient-shell/format";var EU=["standard","editorial","simple","essay"];function Fa(e){if(e==="ProductGrid")return"shelf";let o=z(St,e)?.headStyle;return OU(EU,"standard",o)}var Ql={standard:64,editorial:60,simple:36,essay:28,shelf:20},_U={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function AU(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=z(St,e);if(!o)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:o.num,title:o.title,description:o.description,link:o.headRows.includes("linkText")&&o.headRows.includes("linkHref")}}function up(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=pp.get(r);if(a)return a;let n=A1({num:e,title:o,description:t,link:!1});return pp.set(r,n),n}var Wo={[cp]:dI},cI={top:0,right:0,bottom:1,left:0},$o=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),mp=(e,o,t={})=>ce(e,{...M("label",o),...t}),xp=(e,o)=>({kind:"text",key:e,role:"heading",props:U,style:{textStyle:"heading-2",...o}}),pI=Vt,FU=dI,uI=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...oe,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:pI}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...M("body",o),...r,...a}}),_1={...lo,align:"right",alignPhone:"left",...Ea},fI=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:_1,style:{...yt(e),color:"labels"}}),O1=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...U,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?BU(Xt()):{},...t.style}}}}},BU=e=>e._partStyles.text??{},os={widthFitPhone:"fill"};function mI(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),...os}):{...o,...os}}}return{...e,parts:e.parts.map(mI)}}function LU(e,o){let t=z(_U,e),r=t==="accent",a=mp(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=xp(o.title,r?{...$o("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:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:cI,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...L,...os,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...L,...os,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[O1(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...L,...os},parts:[s,...l?[O1(o.title,`Three ranges,
320
- one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...L,...os,gap:12,maxWidth:340,maxWidthPhone:pI},parts:[...o.description?[uI(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[fI(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{..._1,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:fI(14).style}}}]:[]]}]}}function hp(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>hp(t,o))}:e}function A1(e){let o=xp(e.title,{...$o("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:cI,sectionPaddingBottom:32,...Wo},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...Wo},parts:[{kind:"group",name:"Number",props:{...L,sectionPaddingBottom:8},parts:[{...mp(e.num,13),props:{...U,...Ta}}]},hp(o,[e.title])]},{kind:"group",name:"Words",props:{...L,sectionPaddingBottom:4,maxWidth:360,[T1("maxWidth")]:FU,maxWidthPhone:pI},parts:e.description?[uI(e.description,14,void 0,{lineHeight:1.5},{[T1("align")]:"left"})]:[]}]}}function E1(e,o){return{kind:"group",name:"Header",props:{...L,gap:16,gapPhone:16},parts:[mp(e.num,13),xp(e.title,o)]}}var F1=[["para",{...yt(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...M("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...M("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...M("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...M("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],RU=e=>F1.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function DU(e){return{kind:"group",name:"Header",props:{...L,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:cI,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:24,share:"content"},parts:[mp(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...F1.map(([o,t])=>({...xp(e.title,t),when:r=>RU(r)===o}))]},{kind:"group",name:"Words",props:{...L,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[uI(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[fI(13)]:[]]}]}}function Ip(e){return Fa(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 pp=new Map,xI={...M("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function it(e){let o=pp.get(e);if(o)return o;let t=AU(e),r=Fa(e),a=r==="editorial"?A1(t):r==="simple"?E1(t,xI):r==="essay"?E1(t,{...M("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?DU(t):LU(e,t);return pp.set(e,a),a}var Ba={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:$t,Stats:void 0};var ei=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),$1=e=>o=>S1(ye(o.columns)??ye(e.columns)),HU="inline is the head the row draws; an own-box node is skipped (`skip`)",WU={kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-3",...xI}},yp=e=>{let o=sa(typeof e.background=="string"?e.background:void 0,Ba.Series);return o&&o!=="transparent"?o:void 0},gp=e=>yp(e)===$t,$U={...L,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},B1={...L,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[gI("share")]:"content"},zU=e=>{let o=yp(e)?1:2;return{...L,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},hI={...yt(12),letterSpacing:.22,lineHeight:1.5},L1=e=>Me(e.viewLabel)&&!yI(e.viewLabel).hidden,dt=e=>yI(e).text?.trim?.()??"",Sp=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>po(o)!==void 0)),SI=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),UU=SI([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),jU=SI([["label","Label"],["value","Value"],["body","Card body",!0]]),oi=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:so,headless:!0,keep:s,derive:{reads:n,props:l=>Pd(r(l),t)},slots:(l,i)=>({[Te]:[a(l,i)]})}]}),z1=e=>Array.isArray(e.cards)?e.cards:[],U1=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Sp({title:dt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:$s($m(o),t),...o})),GU=e=>U1(e).some(o=>po(o.href)!==void 0),j1=[{key:Rm.label,label:"Feature label"},{key:Rm.href,label:"Link",kind:"link"}],R1=e=>yO(e.eyebrowLook,"KeyFeatures")==="filled",KU={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...Ho("surface")(e,o),...ei(1,0,1,0),...re(e,ic)}),box:[...Q,...fe(ic)],parts:[{kind:"group",name:"Heading",props:{...L,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[gI("share")]:"content"},parts:[{...Yn("eyebrow"),when:R1},{...ce("eyebrow"),when:e=>!R1(e)},WU]},oi("Cards",e=>({...L,...Aa($1(w1.defaultProps)(e))}),j1,U1,e=>sI(GU(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"}},D1=(e,o)=>({...lp,...Ho("background")(e,o)}),N1=e=>{let o=$1(b1.defaultProps)(e);return{...L,...Aa(o)}},qU=SI([["title","Card title"],["body","Card body",!0]]),G1=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:$s($m(o),t),title:dt(o?.title),body:dt(o?.body)})),K1=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(NU(a)?t[r]=a.map(K1):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},M1=(e,o)=>{let t=II(e)?sI(VU(e)):Qn(),r=Array.isArray(e.template)?e.template.map(K1):[t],[a]=r;return r.length===1&&a.type===G?{...a,props:{...D1(e,o),...a.props}}:{type:G,props:{...L,...D1(e,o),name:"Card"},slots:{[Ce]:r}}},II=e=>e.cardStyle==="label-only",q1=e=>G1(e).map((o,t)=>{let r=e.items[t]?.href;return Sp({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),VU=e=>q1(e).some(o=>po(o.href)!==void 0),H1=e=>Array.isArray(e.template)&&e.template.length===0,W1=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function V1(){let e=t=>({key:MU("card"),title:c(t),body:c("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:c("Label"),title:c("Section *heading.*"),items:o}}var YU={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...Ho("surface")(e,o),...re(e,Jf)}),box:[...Q,...fe(Jf)],parts:[{...it("Cards"),when:e=>!eI(e)},{...oi("Cards",N1,qU,G1,M1,{reads:["items"],keep:W1}),when:e=>!H1(e)&&!II(e)},{...oi("Cards",N1,j1,q1,M1,{reads:["items"],keep:W1}),when:e=>!H1(e)&&II(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)"}},XU={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...ei(0,0,1,0),...Wo,...gp(e)?_a(e,o):{},...np(yp(e),e,o),...re(e,cc)}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>gp(o)?Mr(e,o,t):e],...fe(cc)],skip:e=>sp(yp(e)),site:(e,o)=>gp(e.props)?Hr(e,o):[],parts:[it("Series"),oi("Cards",zU,UU,e=>z1(e).map(o=>Sp({num:dt(o.num),since:dt(o.since),title:dt(o.title),body:dt(o.desc),count:dt(o.entries),countLabel:dt(o.entriesLabel)})),(e,o)=>({type:G,props:{...$U,...Ho("background",(t,r)=>gp(t)&&ap(t,r))(e,o),name:"Card"},slots:{[Ce]:[{type:G,props:{...L,name:"Words",gap:16,gapPhone:16},slots:{[Ce]:[{type:G,props:{...B1,name:"Top"},slots:{[Ce]:[Be("num",U,M("label",13),!0),Be("since",U,M("label",13),!0)]}},Be("title",{...U,tag:"h3"},{textStyle:"heading-3",...M("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Be("body",oe,{textStyle:"body-5",fontRole:"heading",...M("body",14),lineHeight:1.6})]}},{type:G,props:{...B1,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...ei(1,0,0,0),...L1(e)?{}:{[en]:["count","countLabel"]}},slots:{[Ce]:[{type:G,props:{...L,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[gI("share")]:"content"},slots:{[Ce]:[Be("count",U,hI),Be("countLabel",oe,hI)]}},...L1(e)?[{type:G,props:{...L,name:"View",maxWidthPhone:266},slots:{[Ce]:[{type:"Text",props:{...U,text:yI(e.viewLabel).text,_partStyles:{text:{...Xt()._partStyles.text,...hI}}}}]}}]:[]]}}]}}))],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:HU}},ZU={...L,direction:"row",columns:3,gap:40,gapPhone:16},JU={...L,gap:8,gapPhone:8,...ko(24),...ei(1,1,1,1)},QU={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...ei(0,0,1,0),...re(e,nc)}),box:[...Q,...fe(nc)],parts:[oi("Cards",ZU,jU,e=>z1(e).map(o=>Sp({label:dt(o.label),value:dt(o.value),body:dt(o.desc)})),(e,o)=>({type:G,props:{...JU,...Ho("surface")(e,o),name:"Card"},slots:{[Ce]:[Be("label",U,{...M("label",12),lineHeight:1.5},!0),{type:G,props:{...L,name:"Words",gap:14,gapPhone:14},slots:{[Ce]:[Be("value",U,{textStyle:"heading-3",...M("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Be("body",oe,{textStyle:"body-5",fontRole:"accent",...M("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...X,...te}},Y1={Cards:YU,KeyFeatures:KU,Series:XU,DocMetaCards:QU};import{SITE_SIDE as LB}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as rj}from"efficient-easel/draw";import{newId as aj}from"efficient-easel/data";import{phoneKey as ej}from"efficient-easel/draw";import{isNode as ti}from"efficient-easel/data";var ts="cardStyle";function X1(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var bp={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[ej("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}}}},ft={table:{...bp.table,listCard:X1(bp.table.card)},list:{...bp.list,listCard:X1(bp.list.card)}},dhe=[{label:"Table",value:"table"},{label:"List",value:"list"}],fhe=e=>e==="table"||e==="list",oj=e=>[...new Set([...Object.keys(ft.table[e]),...Object.keys(ft.list[e])])];function ri(e,o,t){let r={...e};for(let a of oj(o))delete r[a];return{...r,...structuredClone(ft[t][o])}}function tj(e,o,t){let r=e.props??{},a=Array.isArray(r[Te])?r[Te]:[],n=a.findIndex(i=>ti(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:ri(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Te]:l}}}function che(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>ti(s)&&s.type===so)){let s=a.map(l=>ti(l)&&l.type===so?tj(l,o,t):l);return{...ri(e,"items",o),[ts]:o,[r]:s}}let n=a.map(s=>{if(!ti(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>ti(d)&&d.type===t?{...d,props:ri(d.props??{},"card",o)}:d);return{...s,props:{...ri(l,"row",o),[r]:i}}});return{...ri(e,"grid",o),[ts]:o,[r]:n}}var bI=e=>typeof e=="string"?e.trim():"";function Z1(e){let o=`${bI(e.prefix)}${bI(e.value)}`,t=bI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var Q1={textStyle:"heading-2",...$o("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},wI={kind:"block",type:"Text",props:{...Oa,_partStyles:{text:Q1}},box:[["value","text",(e,o)=>Z1(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&Z1(o)!==""},J1=e=>Me(e?.supSuffix),eA={textStyle:"body-1",fontRole:"heading",...M("body",16),lineHeight:1.5,letterSpacing:-.01},oA={color:"labels",...M("label",12),lineHeight:1.5,letterSpacing:.24},tA={...L,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[rj("share")]:"content"},rA={textStyle:"body-5",...M("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},CI=e=>sa(e.background,Ba.StatsParagraph),ai=e=>CI(e)===$t,wp=e=>({...e,sectionAccent:e.sectionAccent??0}),nj=(e,o)=>ai(e)?Ho("background",(t,r)=>ap(wp(t),r))(e,o):{},sj={name:"Stats with Text",skip:e=>CI(e)&&CI(e)!=="transparent"&&!ai(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},...Wo,...lt(e,"StatsParagraph"),...ai(e)?_a(wp(e),o):{}}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ai(o)?Mr(e,wp(o),t):e],...Dr("StatsParagraph")],site:(e,o)=>ai(e.props)?Hr({props:wp(e.props)},o):[],parts:[it("StatsParagraph"),{kind:"group",name:"Stats",props:{...L,...ft.table.grid,[ts]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...ft.table.row},props:(e,o)=>({...L,...ft.table.card,...nj(e,o)}),parts:[{...wI,when:(e,o)=>!J1(o)&&wI.when(e,o)},{kind:"group",name:"Figure",props:tA,when:(e,o)=>J1(o),parts:[wI,{kind:"text",key:"supSuffix",props:U,style:rA}]},{kind:"group",name:"Words",props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:U,style:eA},ce("sub",oA)]}]}]}],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"}},lj=new Set(["value","label",jo]),ij=e=>{let o=sa(typeof e.background=="string"?e.background:void 0,Ba.Stats);return!!o&&o!=="transparent"},dj={name:"Stats",skip:e=>ij(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Me(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Me(o?.[jo]))?"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=>!lj.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,pc)}),box:[...Q,...fe(pc)],parts:[ce("heading",{color:"labels",...M("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...L,...ft.list.grid,[ts]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>ye(e.columns)??4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...ft.list.row},props:{...L,...ft.list.card},parts:[{kind:"text",key:"value",props:Oa,style:{textStyle:"heading-2",...M("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},ce("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"}},aA={StatsParagraph:sj,Stats:dj};function nA(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var fj=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function sA(){let e=(o,t,r,a="")=>({key:aj("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",c("Years in business"),c("Privately held since day one. Same two founders.")),e("==_8_==",c("Operating footprint"),c("Los Angeles \xB7 Fort Lauderdale \xB7 Bewdley \xB7 Drachten \xB7 Mumbai \xB7 Selangor \xB7 Ho Chi Minh \xB7 Sydney. Three continents covered from one California design studio."),c("cities")),e("\u221221==_%_==",c("Avg. weight saving"),c("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",c("Finish steps"),c("Specified in California to a 14-step protocol. No two sets are identical."))]}function cj(e){return{type:G,props:{...L,name:"Card",...structuredClone(ft[e].listCard)},slots:{[Ce]:[{type:G,props:{...tA,name:"Figure"},slots:{[Ce]:[Be("figure",Oa,Q1),Be("superscript",U,rA)]}},{type:G,props:{...L,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Be("label",{...U,widthFit:"fill"},eA),Be("body",{...U,widthFit:"fill"},oA,!0)]}}]}}}function kI(e,o,t=4){return{type:G,props:{...L,name:"Stats",direction:"row",columns:t,...structuredClone(ft[o].items),[ts]:o},slots:{[Ce]:[{type:so,props:Pd(e,fj),slots:{[Te]:[cj(o)]}}]}}}var lA={heading:"Ways to pay"},iA=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],dA=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],_he={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as pj}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as cA}from"efficient-shell/format";var Cp="Flex",uj={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},mj={FooterPayment:"PaymentLogosBlock"},xj=e=>{let{id:o,...t}=e;return t},fA=e=>typeof e=="string"?e:"",rs={sm:12,md:13,lg:15},pA={sm:{mark:16,words:rs.sm},md:{mark:20,words:rs.md}},hj="md",uA=1.5,Ij={size:13,lineHeight:uA,width:280},gj=14,yj=40,Sj=e=>cA(["left","center","right"],"left",e);function bj(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 wj(e,o,t){let r=t(e,xj(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:mA(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=yd(e,r.props);return a===r.props?r:{...r,props:a}}function mA(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Bt(r))a[n]=mA(a[n],o,t);return{...r,props:a}})}function xA(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=z(uj,e.type)??z(mj,e.type);if(n)return[wj(n,r,o)];switch(e.type){case"FooterLogo":{let s=Sj(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(Uv*((ye(r.widthPct)??100)/100)),href:"/",align:s,...bj(r)}),i=fA(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...Ij}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&uo(rs,r.size)?r.size:hj;return[o("Text",{text:fA(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:rs[s],lineHeight:uA}}})]}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?{[pj("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Cp,{direction:r.direction==="horizontal"?"row":"column",gap:jv("FooterGroup",r.gap),align:cA(["start","center","end","stretch"],"start",r.align),..._m,content:s.flatMap(l=>xA(l,o,t))})]}default:return[]}}function ni(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Cp,{direction:"row",wrap:!0,share:"equal",gap:yj,content:f}),s=[],l=[];for(let f of a){let x=xA(f,o,r);if(f.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...x);continue}x.length<=1?l.push(...x):l.push(o(Cp,{direction:"column",gap:gj,align:"stretch",..._m,content:x}))}(l.length||!s.length)&&s.push(n(l));let i=o(Cp,{direction:"column",content:[o("LegalLineBlock")]}),d=Xv(to,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as vI,readHidable as Cj}from"efficient-easel/draw";import{parseOption as kj}from"efficient-shell/format";var PI={contained:!1},TI=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Me(r?.src)||Me(r?.[o])}]}]}),vj={...ce("heading",{color:"labels",letterSpacing:.2}),props:{...U,align:"center"}},Pj={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...re(e,wl(e))}),box:[...Q,...fe(wl),["bandPadding","sectionPaddingTop",(e,o)=>re(o,wl(o)).sectionPaddingTop]],parts:[vj,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:PI,slots:TI("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"}},Tj={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:Jb(4,"main",{sectionCorners:2})},Oj={name:"Payment Methods",boxProps:e=>({...Y,direction:"column",...re(e,oc)}),box:[...Q,...fe(oc)],parts:[{kind:"group",name:"Methods",props:{...L,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...ce("heading",{color:"labels"}),props:{...U,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[no,qt],props:e=>Me(e[no])?{[no]:e[no],...e[qt]!==void 0?{[qt]:e[qt]}:{}}:{}},props:{...PI,look:"cards",grayscale:!1},slots:e=>({...TI("badges","label"),...Me(e[no])?{[Te]:[Nm()]}:{}})},{kind:"group",name:"Reassurance",props:{...L,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[vI("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Me(o?.text)),props:{...L,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[vI("share")]:"content"},item:e=>Cj(e.text).hidden?{props:{_hidden:!0}}:{},parts:[Tj,{kind:"text",key:"text",props:{...U,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`)"}},hA=e=>Gb(e.align)??"left",IA=e=>kj(["sm","md"],"sm",e.size),gA=12,yA={name:"Payment logos",boxProps:e=>({...L,direction:"row",wrap:!0,align:"center",justify:pd[hA(e)],gap:gA,gapPhone:gA,phoneRow:2,[vI("share")]:"content"}),box:[...yr],parts:[{kind:"text",key:"lead",props:oe,styleFrom:e=>({size:rs[IA(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[no,qt],props:e=>({logoHeight:pA[IA(e)].mark,align:hA(e),...Me(e[no])?{[no]:e[no],...e[qt]!==void 0?{[qt]:e[qt]}:{}}:{}})},props:{...PI,look:"marks",grayscale:!1,sectionAccent:Ir},slots:e=>({...TI("methods","label"),...Me(e[no])?{[Te]:[Nm()]}:{}})}],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"}},SA={Logos:Pj,PaymentBadges:Oj,FooterPayment:yA,PaymentLogosBlock:yA},bA=()=>({heading:PE.heading,items:Dc()}),wA=()=>({heading:lA.heading,badges:iA(),assurances:dA()}),CA=()=>({...df,methods:[]});import{mixHex as Bj}from"efficient-shell/format";import{MOTION_EASING as Ej,MOTION_TIMING as kA,motionSeconds as vA,parseOption as PA}from"efficient-shell/format";var OI="none",kp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function lIe(e){return PA(kp,OI,e)}var as="_gLoop",si={field:"loop",is:"scroll"},li="left",EI=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],_j={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function TA(e){return PA(EI,li,e)}function OA(e){return e==="up"||e==="down"}function vp(e){return vA("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var iIe=kA.loop.duration.default,Aj=kA.loop.delay.default;function EA(e){return vA("loop","delay",e.loopDelay)}function dIe(e,o,t=Aj){return`${_j[e]} ${o}s ${Ej.loop}${t?` ${t}s`:""} infinite`}var Pp="_gEntrance";var uIe="none",mIe=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function Tp(e){return e==="above"||e==="below"?e:null}var _A="sf-ticker-join";function Fj(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function AA(e){return`absolute inset-x-0 ${Fj(e)}`}var FA=e=>e.size==="display",Lj=(e,o)=>{let t=rp(e,o),r=e.tone!=="plain"&&t?.text&&t.background?Bj(t.text,t.background,.3):null;return r?{color:r}:{}},Rj=(e,o)=>e.tone!=="plain"&&Vm(e.sectionAccent)===null?Ho("background")(e,o):{},BA=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:oe,style:e,styleFrom:Lj}]}),Dj={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...ca,...Yf,...Vb[Em(e.separator)]===""?q0:{},...re(e,pa),...Rj(e,o)}),box:[["scrollDirection","scrollDirection",e=>TA(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=>Em(e)],["join","join",e=>Tp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...Q,["tone","sectionAccent",(e,o)=>Vm(o.sectionAccent)??Ir],...fe(pa)],parts:[BA(Xf,e=>!FA(e)),BA(V0,FA)],drop:{...X,...te,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},LA=e=>e?.tone==="muted",RA=e=>Td(ka(e)),Nj={name:"Spec Strip",boxProps:(e,o)=>({...Y,...ca,...Il,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:RA(o)},...re(e,ua)}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:RA(t)],...fe(ua)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:U,style:gl,when:(e,o)=>!LA(o)},{kind:"text",key:"text",props:oe,style:gl,when:(e,o)=>LA(o)}]}],drop:{...X,...te,...tp,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"}},DA={Ticker:Dj,SpecStrip:Nj};import{tabletKey as NA}from"efficient-easel/screen/lib/content/view-tiers";var MA={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[NA("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[NA("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},_I={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as Mj}from"efficient-easel/draw";var Op={eyebrow:Ee.eyebrow,title:`Section heading
321
- *Highlight line*`,intro:Ee.body,imageCaption:Ee.imageCaption,imageMeta:Ee.imageMeta,cta:ze.text},HA=()=>[{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")},{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")},{date:c("Year"),title:c("Milestone title."),body:c("Describe what happened, in a sentence or two.")}],_Ie={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Ep={eyebrow:Ee.eyebrow,title:Ee.headingAccent,intro:Ee.body,cta:ze.text},WA=()=>[{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year \u2192"),title:c("Upcoming"),blurb:c("A milestone still to come."),future:!0}],RIe={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Nv,padTop:120,padBottom:120}};var KA={buttonBorder:{width:0}},Fp=(e,o,t={})=>({textStyle:"body-5",...M("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),ns=(e,o,t={})=>({...Fp(e,o),...Lo,...t}),Bp=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),ii=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),ct=(e,o,t={})=>({kind:"text",key:e,props:U,style:o,...t}),$A=(e,o)=>o?.future===!0,_p=e=>KO(typeof e?.body=="string"?e.body:""),RI=e=>sa(typeof e.background=="string"?e.background:void 0,Ba.TimelineTrack),AI=e=>RI(e)===$t?e:{...e,background:"transparent"},Hj={name:"Milestone Timeline",skip:e=>sp(RI(e)),boxProps:(e,o)=>{let t=Nr(AI(e),o);return{...Y,direction:"column",gap:60,[Mj("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...Wo,...lt(e,"TimelineTrack"),...np(RI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Mr(e,AI(o),t)],...Dr("TimelineTrack")],parts:[mI(hp(up("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...L,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...L,direction:"row",share:"equal",gap:0,line:!0,...Wo},parts:[{kind:"list",key:"entries",name:"Year",props:{...L,...MA},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:_I.name,props:{...L,..._I},parts:[ct("date",Fp(13,.22,{color:"accent"}),{when:(e,o)=>!$A(e,o)}),ct("date",Fp(13,.22,{color:"labels"}),{when:$A}),ct("title",{textStyle:"heading-3",...Bp(M("headingSmall",20),-.02,1.1)},{role:"heading"})]},ct("blurb",ii(M("body",13),1.55),{props:oe,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...L,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...lo,align:"right",...KA},style:ns(13,.3)}]}]}],site:(e,o)=>Hr({props:AI(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"}},NI=e=>typeof e.layout=="string"?e.layout:"split",Ap=e=>NI(e)==="split",DI=e=>!Ap(e),qA=e=>NI(e)==="spine",Wj=e=>DI(e)&&!qA(e),zA=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...L,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",...ko(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...L,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[ct("imageCaption",ns(11,.24,{color:"text"})),ct("imageMeta",ns(11,.24,{color:"accent"}),{props:{...U,align:"right"}})]}]}),UA=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...lo,...e,...KA},style:ns(13,.3)}),FI=()=>[ct("title",{textStyle:"heading-3",...Bp(M("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...U,_partStyles:{text:ii(M("body",17,16),1.6)}},box:[["body","text",(e,o)=>Ds(_p(o)[0]??"")]],when:(e,o)=>_p(o).length>0},{kind:"block",type:"Text",props:{...oe,_partStyles:{text:ii(M("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Ds(_p(o).slice(1).join(`
322
-
323
- `))]],when:(e,o)=>_p(o).length>1}],BI=()=>ct("date",Fp(13,.24,{color:"accent"})),LI=(e,o,t={})=>ct(e,o,{...t,props:{...U,...t.props??{},align:"center"}}),jA=$o("headingMedium",40,5,76),GA={sectionBorder:{bottom:1}},$j={name:"Story Timeline",skip:e=>NI(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Ap(e)?{...Y,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...GA,...lt(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...GA,...lt(e,"Timeline")},box:[...Q,...Dr("Timeline")],parts:[{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24},when:Ap,parts:[ct("eyebrow",ns(12,.3,{color:"accent"}),{role:"eyebrow"}),ct("title",{textStyle:"heading-2",...Bp(jA,-.03,.94)},{role:"heading",mark:"accentItalic"}),ct("intro",ii(M("body",14),1.6),{props:{...oe,maxWidth:360},mark:"accentItalic"}),zA(667,419,{},()=>!0),UA()]},{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!1},when:Ap,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[BI(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:FI()}]}]},{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:DI,parts:[LI("eyebrow",ns(12,.3,{color:"accent"}),{role:"eyebrow"}),LI("title",{textStyle:"heading-2",...Bp(jA,-.03,.94)},{role:"heading",mark:"accentItalic"}),LI("intro",ii(M("body",14),1.6),{props:{...oe,maxWidth:520},mark:"accentItalic"}),UA({align:"center"})]},zA(506,192,{maxWidth:900,widthFit:"fill"},DI),{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:qA,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,gap:8,gapPhone:8},parts:[BI(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:FI()}]}]},{kind:"group",name:"Chapters",props:{...L,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:Wj,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...L,gap:8,gapPhone:8},parts:[BI(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:FI()}]},{kind:"group",name:"Spacer",props:{...L},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)"}},VA=()=>({eyebrow:Op.eyebrow,title:wt(Op.title),intro:Op.intro,ctaText:ze.text,ctaHref:ze.href,entries:HA()}),YA=()=>({eyebrow:Ep.eyebrow,title:wt(Ep.title),intro:Ep.intro,ctaText:ze.text,ctaHref:ze.href,entries:WA()}),XA={TimelineTrack:Hj,Timeline:$j};import{tabletKey as zj}from"efficient-easel/draw";function ZA(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var pt=e=>typeof e=="string"?e:e==null?"":String(e),MI=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],ss=e=>pt(e.group),sF=e=>`loc-${e}`,lF=e=>pt(e.state).trim()||Ix(pt(e.region)).state,iF=e=>pt(e.country).trim()||Ix(pt(e.region)).country,JA=e=>[lF(e),iF(e)].filter(Boolean).join(" \xB7 "),Uj=e=>MI(e).some(o=>pt(o.photo).trim()!==""),jj=e=>MI(e).some(o=>pw(Number(o.lat),Number(o.lng))),Gj=(e,o)=>MI(e).filter(t=>ss(t)===ss(o)).length,Kj=(e,o)=>Gj(e,o)===1?"wide":aP(e.imageShape),QA=48,kt=(e,o={})=>({...yt(e),...o}),HI={top:1,right:1,bottom:1,left:1},WI={...L,direction:"row",share:"equal",gap:0},qj=e=>o=>o>Id(o)?{...L,gap:0}:{...WI,...o>1?{phoneRow:e}:{}},$I=!0,Vj={kind:"group",name:"Gallery",props:{...L,gap:20,...$I?{_hidden:!0}:{}},when:Uj,parts:[{kind:"group",name:"Gallery head",props:{...L,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[ce("galleryKicker",kt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...oe,align:"right",alignPhone:"left"},style:kt(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...L,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...L,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:HI,...ko(12,12)},item:(e,o,t)=>({props:{...pt(e.photo).trim()?{bgImage:pt(e.photo),hover:"mono"}:{},link:`#${sF(o)}`,boxShape:Kj(t,e)}}),parts:[{kind:"text",key:"name",props:U,style:kt(11,{letterSpacing:.22,color:"text"})}],groups:{of:ss,name:"Group",props:{...L,gap:10},head:e=>({label:ss(e[0]??{})}),parts:[ce("label",kt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:qj(2),perRow:Id,rowName:"Row",rowProps:{...WI,phoneRow:2}}}]}]},Yj={kind:"group",name:"Words",props:{...L,gap:12,gapPhone:12,...ko(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...L,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:{...L,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:U,style:{textStyle:"heading-3",...M("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...U,_partStyles:{text:kt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>JA(t)]),when:(e,o)=>JA(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...L,sectionBorder:HI,...ko(6,10)},parts:[{kind:"text",key:"timezone",props:{...oe,textFit:"line"},style:kt(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:{...lo,...Ea,variant:"ghost",arrow:!1,_partStyles:{label:kt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>ZA(pt(e))??"#"]],when:(e,o)=>pt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:oe,style:kt(12,{letterSpacing:.18,lineHeight:1.7})}]},Xj={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)=>lF(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>iF(t)])]},Zj={kind:"group",name:"Map",props:{...L,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[Xj]},Jj={kind:"list",key:"locations",name:"City",props:(e,o)=>({...L,gap:0,justify:"between",sectionBorder:HI,jumpHighlight:!0,sectionAccent:Nr(e,o)>=0?Xn(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:sF(o)}}),parts:[Yj,Zj],groups:{of:ss,name:"Group",props:{...L,gap:20},head:e=>{let o=e[0]??{};return{key:ss(o),groupName:pt(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...L,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>pt(o?.key).trim()!=="",parts:[ce("key",kt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:U,style:{textStyle:"heading-3",...M("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:oe,style:kt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...WI,columns:Id(e),[zj("columns")]:1})}},eF=kt(10,{letterSpacing:.25}),Qj={kind:"block",type:zt,props:{...L,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:jj,slot:Ut,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...oe,text:"Location coordinates \xA9",_partStyles:{text:eF}}},{kind:"block",type:"ButtonBlock",props:{...lo,...Ea,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...eF,color:"labels"}}}}]},oF=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),tF=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],rF=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],aF=e=>e.map(o=>[o,o,(t,r)=>re(r,Rn)[o]]),nF=["sectionAccent","sectionAccent",Mr],eG=[...yr,...Cn,...Object.values(Ao)],oG={name:"City pictures",skip:e=>De(e)?`fed by the data source "${De(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:40,anchor:"studios",...Wo,...oF(re(e,Rn),tF),sectionPaddingBottom:QA,sectionPaddingBottomPhone:QA,..._a(e,o)}),box:[...Q.filter(e=>e!=="sectionAccent"&&e!=="anchor"),nF,["anchor","anchor",e=>Wv(e).trim()?e:"studios"],...aF(tF)],parts:[up("sectionNumber","heading","tagline"),Vj],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...Wo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...oF(re(e,Rn),rF),..._a(e,o)}),box:[...eG,nF,...aF(rF)],parts:[Jj,Qj]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:Hr,drop:{...X,...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)"}},dF={ContactLocations:oG};import{SITE_SIDE as fF,sideLengthAt as tG}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as zI}from"efficient-easel/draw";var rG=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var Wr=(e,o)=>()=>({top:e,topPhone:o}),cF=e=>o=>{let t=Dn(e),r={...o,[Sr.top]:Kd(o,t).top},a=i=>{let d=tG(r,Sr,Gd,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>ye(o[zI(Sr.top,i)])===void 0?void 0:a(i),s=n("tablet"),l=n("mobile");return{top:a("desktop")??t.top??0,...s!==void 0?{topTablet:s}:{},...l!==void 0?{topPhone:l}:{}}},aG={Collections:Wr(120,70),Events:Wr(120,70),FAQ:Wr(Qf.top,Qf.topPhone),GalleryB:Wr(120,70),FitmentTable:Wr(120,80),SpecTable:Wr(120,80),LongRead:Wr(ec.top,ec.topPhone),RelatedProducts:Wr(0,0),Footprint:cF("Footprint"),ProcessSteps:cF("ProcessSteps"),ProductGrid:e=>({top:ye(e.padTop)??120,topPhone:0})};function nG(e,o={}){let t=z(St,e),r=z(aG,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=it(e),s=Ip(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:z(Zr,e)??e,boxProps:(d,f)=>{let x=r(d),u=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(d,f):o.boxProps??{},g=Fa(e)==="editorial"?Wo:{};return{...Y,direction:"column",gap:Ql[Fa(e)],sectionPaddingTop:x.top,...x.topTablet!==void 0?{sectionPaddingTopTablet:x.topTablet}:{},...x.topPhone!==void 0?{sectionPaddingTopPhone:x.topPhone}:{},...g,...u,...h}},box:[...Q,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&tO.has(e)?{[zI(a,"tablet")]:0,[zI(a,"mobile")]:0}:{},f={...a?{[a]:0}:{},...d,...o.coreProps},x={kind:"core",keep:"rest",...Object.keys(f).length?{props:f}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[x]}:x]})(),...o.partsAfter??[]],...Object.keys(s).length?{reads:s}:{},...Object.keys(i).length?{drop:i}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var sG={...L,direction:"accordion",rowStyle:"numbered"},lG={sectionPaddingLeft:fF,sectionPaddingRight:fF},iG={Footprint:{slots:{[Te]:[uw()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Ls]:W_().map(t=>({...t,props:{...t.props,...lG}}))}:{},boxProps:{gapPhone:Ql.editorial}},FAQ:{slots:{[Te]:[cw()]},pressHeading:!0,coreBox:{name:"Questions",props:sG},coreProps:{sectionAccent:Ir},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[W0]:xl},skip:e=>{let o=e._partStyles??{},t=fw().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}}},pF=Object.fromEntries(rG.map(e=>[e,nG(e,z(iG,e))]));import{BLOCK_WIDTH_LIMIT as dG}from"efficient-easel/draw";var Lp={eyebrow:Ee.eyebrow,title:Ee.headingAccent,deck:"Add a sentence or two introducing this document."},Bge={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var IF={minWidth:dG.min},uF=(e,o,t)=>({...ce(e,{...o,...Yl}),props:{...U,align:"right",...Ta,...t}}),gF={top:1,bottom:0},jI=(e,o,t,r)=>({kind:"group",name:e,props:{...L,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),mF={widthFit:"fill",...IF},fG={...M("label",13),letterSpacing:.22,lineHeight:1.8},xF={textStyle:"heading-1",...$o("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},cG=()=>({name:"Page Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,ac)}),box:[...Q,...fe(ac)],parts:[{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[jI("Eyebrow",12,0,{...ce("eyebrow",M("label",13)),props:{...U,...Ta}}),{kind:"text",key:"title",role:"heading",props:{...U,tag:"h1",...mF},style:xF,mark:"accentItalic",when:e=>!Wh(e)},{kind:"text",key:"title",role:"heading",props:{...U,tag:"h2",...mF},style:xF,mark:"accentItalic",when:Wh},{kind:"group",name:"Details",props:{...L,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[Xl("label","value",fG,Ta)]}]}]},{kind:"group",name:"Deck",props:{...L,maxWidth:760,sectionBorder:gF,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,[Hc]:"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"}}),yF=()=>({eyebrow:Lp.eyebrow,title:wt(Lp.title),deck:Lp.deck,meta:[{label:Ee.label,value:Ee.value},{label:Ee.label,value:Ee.value}]}),pG={...M("label",13),letterSpacing:.18,lineHeight:1.8},hF={...M("label",13),letterSpacing:.22,lineHeight:1.9},uG=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,Sl)}),box:[...Q,...fe(Sl)],parts:[{kind:"group",name:"Top",props:{...L,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[jI("Eyebrow",14,14,ce("eyebrow",M("label",14))),{kind:"group",name:"Issue",props:{...L,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[Xl("lead","rest",pG)]}]}]},{kind:"group",name:"Bottom",props:{...L,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:gF,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...U,maxWidth:720,...IF},style:{textStyle:"body-1",fontRole:"heading3",...M("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...L,align:"stretch",gap:0},parts:[jI("Heading",6,6,{kind:"text",key:"issueHeading",props:{...U,align:"right",...Ta},style:{textStyle:"body-1",fontRole:"heading",...M("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...Yl}}),{kind:"group",name:"Lines",props:{...L,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[uF("text",{color:"labels",...hF})]}]},uF("issueTotal",hF)]}]}],drop:{...X,...te}}),UI={color:"labels",...M("label",13),letterSpacing:.2},SF=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),GI=(e,o)=>o!==void 0&&SF(e).at(-1)===o,bF=(e,o)=>o!==void 0&&SF(e).includes(o),mG=(e,o)=>bF(e,o)&&!GI(e,o)&&Me(o?.href),xG=()=>({name:"Breadcrumb",skip:e=>Me(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,hl)}),box:[...Q,...fe(hl)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:mG,props:{...lo,...Ea,icon:"none"},style:UI},{...ce("label",UI),when:(e,o)=>bF(e,o)&&!GI(e,o)&&!Me(o?.href)},{...ce("label",{...UI,color:"text"}),when:GI}]}],drop:{...X,...te,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing",...tp}}),wF={DocMasthead:cG(),Masthead:uG(),Breadcrumb:xG()};import{BLOCK_WIDTH_LIMIT as IG,hiddenKeyOf as gG}from"efficient-easel/draw";import{readHidable as KI}from"efficient-easel/draw";function hG(e,o,t){return e||(t?.isEditing?c(o):void 0)}function Vge(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function CF(e,o,t){let r=KI(e);if(!r.hidden)return hG(r.text,o,t)}function kF(e){if(e==null)return;let o=KI(e);return o.hidden?"":o.text}function Yge(e,o,t){return KI(e).hidden?"":CF(e,o,t)}function Xge(e,o,t){return{text:CF(e,ze.text,t),href:o||ze.href}}var OF="MenuBlock",qI=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Me(o.label)),vF=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(kF(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},PF={top:0,bottom:0,topPhone:0,bottomPhone:0},yG={...Lo,color:"labels",...M("label",12),letterSpacing:.24},SG={kind:"group",name:"Note",props:{...L,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[gG("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>vF(e)!=="",props:e=>({...U,textFit:"line",text:vF(e),[fv]:{text:yG}})}]},EF=()=>({tabs:[],metaLabel:Ee.label,metaValue:Ee.value}),TF="the note Text inside the Box (the label, then the value in the accent); no words, no Text",_F={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:IG.min},AF=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[yn]:0,[Zs]:!0,sectionBorder:{bottom:1},...re(o,PF)}),box:[...Q,...fe(PF)]}),bG=()=>AF({name:"Tab Bar",skip:e=>qI(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:TF,metaValue:TF},parts:[{kind:"block",type:OF,props:_F},SG],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"}}),wG=()=>AF({name:"Category Bar",skip:e=>{if(qI(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(qI(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:OF,props:{..._F,[no]:XS}}],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"}}),FF={DocTabs:bG(),CategoryBar:wG()};import{jsx as La,jsxs as VI}from"react/jsx-runtime";import{slugify as _G}from"efficient-shell/format";import{jsx as Dp,jsxs as RF}from"react/jsx-runtime";import{jsx as CG}from"react/jsx-runtime";import{useEffect as kG,useRef as vG}from"react";var BF="data-current",PG=1/3,TG=2;function OG(e,o,t=!1){if(t&&e.length)return e[e.length-1].anchor;let r=null;for(let a of e)a.top<=o&&(!r||a.top>r.top)&&(r=a);return r?.anchor??null}function EG(e,o,t=!1){let r=Array.from(e.querySelectorAll("a[href^='#']")),a=l=>{try{return decodeURIComponent((l.getAttribute("href")??"").slice(1))}catch{return""}},n=r.flatMap(l=>{let i=a(l),d=i?e.ownerDocument.getElementById(i):null;return d?[{anchor:i,top:d.getBoundingClientRect().top}]:[]}),s=OG(n,o,t);for(let l of r)s!==null&&a(l)===s?(l.setAttribute(BF,""),l.setAttribute("aria-current","location")):(l.removeAttribute(BF),l.removeAttribute("aria-current"))}function LF(){let e=vG(null);return kG(()=>{let o=e.current?.parentElement;if(!o)return;let t=0,r=()=>{t=0;let n=document.documentElement,s=window.scrollY>0&&window.scrollY+window.innerHeight>=n.scrollHeight-TG;EG(o,window.innerHeight*PG,s)},a=()=>{t||(t=requestAnimationFrame(r))};return r(),window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a),window.removeEventListener("resize",a),t&&cancelAnimationFrame(t)}},[]),CG("span",{ref:e,hidden:!0})}var cye="sticky top-[120px]";var Rp={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var DF=(e,o)=>e?{[ea]:o}:{},NF=(e,o)=>iw(e?.[Hs(o)]?.role,Rp[o],pb),MF=120;function HF({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Ux,takesViewHide:l=!1,markCurrent:i=!1}){let d=s==="plain",f=tt(),x=l?f:wr;return x.scope(RF("aside",{className:vo(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,x.className),style:r?{top:t}:void 0,...x.attrs,children:[e&&Dp("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Xe(e)}),o.map((u,h)=>{let g=Dp("span",{...DF(a,"number"),style:NF(n,"number"),className:"text-accent",children:Rf(s,h)});return RF("a",{href:`#${u.anchor}`,className:`flex items-center ${d?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${h===0?" border-t":""}${i?" data-[current]:text-fg":""}`,children:[d&&g,Dp("span",{...DF(a,"entry"),style:NF(n,"entry"),children:Xe(u.label||"Section")}),!d&&g]},`${h}-${u.anchor}`)}),i&&!a&&Dp(LF,{})]}))}function WF(e){let o=new Set;return e.map(t=>{if(!t)return"";let r=t,a=2;for(;o.has(r);)r=`${t}-${a++}`;return o.add(r),r})}function AG(e,o){return _G(e)||`section-${o+1}`}var YI=e=>typeof e=="string"&&e.trim()!=="";function XI(e){return(e??[]).filter(o=>YI(o.heading)||YI(o.label)||YI(o.body))}function ZI(e){return WF(e.map((o,t)=>AG(o.label||o.heading||"",t)))}function JI(e){let o=[];for(let t of e.replace(/\r\n?/g,`
324
- `).split(/\n[ \t]*\n/))t.split(`
325
- `).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=id(r)[0].bullet,s=o.at(-1),l=a===0||!s||s.type==="ul"!==n;if(n){let i=r.slice(2);!l&&s?.type==="ul"?s.items.push(i):o.push({type:"ul",items:[i]})}else!l&&s?.type==="p"?s.text+=`
326
- ${r}`:o.push({type:"p",text:r})});return o}var FG=()=>[{label:c("First section"),heading:c("Your *first* section."),body:c(`Write the opening paragraph here.
327
-
328
- - Start a line with a dash for a bullet.
329
- - Add as many as you like.`)},{label:c("Second section"),heading:c("Your *second* section."),body:c("Leave a blank line between paragraphs to start a new one.")}],BG=MF;function Nye({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=BG,pad:a}){let n=Ct(),s=XI(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?FG():s,i=ZI(l);return La(de,{as:"section",className:"relative z-[2] bg-bg",children:VI("div",{...J0(Qo("mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",n),a),children:[La(HF,{title:e,entries:l.map((d,f)=>({label:d.label||"Section",anchor:i[f]})),stickyTop:r}),La("div",{className:"flex flex-col gap-16",children:l.map((d,f)=>VI("article",{id:i[f],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[VI("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[zx(f)," \xB7 ",Xe(d.label||"Section")]}),d.heading&&La("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:Xe(d.heading)}),JI(d.body??"").map((x,u)=>x.type==="ul"?La("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:x.items.map((h,g)=>La("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:Xe(h)},g))},u):La("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Xe(x.text)},u))]},i[f]))})]})})}var $F=18,zF=18,UF=8,LG=10,QI=e=>typeof e=="string"&&e.trim()!=="",jF=e=>XI(e.sections),RG=e=>JI(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
330
- `)}:{kind:"p",text:o.text}),eg={...yt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},GF={textStyle:"body-1",fontRole:"accent",...M("body",17)},DG=[ce("label",eg),{...ce("title",eg),when:(e,o)=>!QI(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!QI(o?.label)&&!QI(o?.title),props:{...U,text:"Section",_partStyles:{text:eg}}},{kind:"group",name:"Heading",props:{...L,sectionPaddingBottom:UF,sectionPaddingBottomPhone:UF},parts:[{kind:"group",name:"Heading line",props:{...L,sectionBorder:{bottom:1},sectionPaddingBottom:zF,sectionPaddingBottomPhone:zF},parts:[{kind:"text",key:"heading",role:"heading",props:U,style:{textStyle:"heading-2",...$o("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:RG,parts:[{kind:"text",key:"text",props:oe,style:{...GF,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:oe,style:{...GF,lineHeight:1.65,paragraphSpacing:LG},when:(e,o)=>o?.kind==="ul"}]}],NG=900,MG={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[cp]:NG,sectionBorder:{bottom:1},...re(e,rc)}),box:["anchor","sectionAccent",...yr,...Cn,...Object.values(Ao),...fe(rc)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...L,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>jF(e),props:{...L,gap:$F,gapPhone:$F},item:(e,o,t)=>({props:{anchor:ZI(jF(t))[o]??`section-${o+1}`}}),parts:DG}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},KF={DocBody:MG};import{phoneKey as zG}from"efficient-easel/draw";import{SITE_SIDE as UG}from"efficient-easel/screen/lib/content/length-units";var Yye={eyebrow:"\u2014 Label",title:`Section headline *here.*
331
- *Highlight line*`,body:"Describe this section in a sentence or two."},Xye={text:"Learn more"},Zye={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 og(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}import{parseOption as HG}from"efficient-shell/format";var qF="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",WG="overlay",$G=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Np(e){return HG($G,WG,e)}var eSe={desktop:40,mobile:45,min:20,max:80,step:5};function oSe(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as jG}from"efficient-shell/format";var VF=(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(rl.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(rl.sizePhone,t?.phone)}}},GG=e=>Np(e.layout)==="stacked",YF=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),Mp=e=>ye(e)??100,KG={textStyle:"heading-1",sizeToken:{...$o("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},qG=[ce("eyebrow",M("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:U,style:{...KG,case:e?"upper":"none"},styleFrom:o=>{let t=gx(o);return VF(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=gx(e);return VF(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...L,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:lo}]}],XF=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)`,VG=()=>({name:"Scroll-Over Text",skip:e=>GG(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",...Zl,placement:"left",darken:YF(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Mp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Mp(e.heightMobile),[zd]:rk}),box:[...Q.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>YF(o)],["heightDesktop","sectionHeightValue",e=>Mp(e)],["heightMobile","sectionHeightValuePhone",e=>Mp(e)]],parts:qG,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(nP.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:XF("Button color"),buttonTextColor:XF("Button text color"),...X}}),QF={textStyle:"heading-2",...M("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},YG={textStyle:"body-1",...M("body",16),lineHeight:1.7},eB=e=>({kind:"text",key:"body",props:{...oe,maxWidth:520},style:{...YG,paragraphSpacing:e}}),Wp={top:0,bottom:0,topPhone:0,bottomPhone:0},tg=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},XG=(e,o)=>{let t=tg(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"}},oB={boxShapePhone:"landscape"},tB="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)",ZG=(e,o)=>({[e]:o,[zG(e)]:o}),JG={textStyle:"heading-2",...M("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},ZF=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),QG=()=>({name:"Brand Text",boxProps:(e,o)=>({...Y,...Ho("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Wp),...tg(e,100)}),box:[...Q,...fe(Wp)],parts:[{kind:"group",name:"Words",props:()=>({...L,justify:"center",gap:28,gapPhone:28,sectionBorder:Jl({right:1}),sectionBorderPhone:Jl({}),...Zl,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:UG}),parts:[ce("eyebrow",M("label",14)),{kind:"text",key:"heading",role:"heading",props:U,style:{...QF,case:"none"},mark:"accentItalic"},eB(28),{kind:"group",name:"Stats",props:{...L,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...L,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(ZF(e).length,1),3),...ZG("sectionBorder",Jl({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:ZF,props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Oa,style:JG},ce("label",{...M("label",13),color:"labels",letterSpacing:.2})]}]}]}]},aI("Picture","imageSrc",oB)],drop:{...X,grayscale:tB,...te}}),Hp=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}},e8=e=>e.textAlign==="center"||e.textAlign==="right"?pd[e.textAlign]:"stretch",o8=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),rB=e=>typeof e=="string"&&e.trim()!=="",t8={...lo,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},JF=e=>({...aI("Picture","imageSrc",(o,t)=>({...rB(o.imageSrc)&&og(o.imageOverlay)>0?{darken:og(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...oB,sectionBorder:Jl(e?{left:1}:{right:1}),...aB(e?"left":"right",Jn(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:t8,style:{...yt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),aB=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},r8={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...L,justify:"center",align:e8(e),placement:jG(["left","center","right"],"left",e.textAlign),...XG(e,72),gap:24,gapPhone:24,...rB(e.textBgSrc)?{darken:o8(e),darkenStyle:"even"}:{},...Zl,sectionPaddingTop:100,sectionPaddingBottom:100,...aB(t?"right":"left",Jn(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...ce("eyebrow",M("label",14)),styleFrom:Hp},{kind:"text",key:"title",role:"heading",props:U,style:QF,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Hp(e)})},{...eB(24),styleFrom:Hp},{kind:"group",name:"Button",props:{...L,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Hp(e);return{...lo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},a8=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Y,...Ho("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Wp),...tg(e,72)}),box:[...Q,...fe(Wp)],parts:[JF(!1),r8,JF(!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:tB,...X,...te}}),nB={IntroBleed:VG(),Manifesto:QG(),Split:a8()};var iB={headPlacement:void 0},sB={top:0,bottom:0,topPhone:0,bottomPhone:0},n8=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...re(e,sB)}),box:[...Q,...fe(sB)],parts:[{kind:"core",keep:"rest",props:iB}],drop:{...X,...te}}),lB={top:120,bottom:120,topPhone:60,bottomPhone:60},s8=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...re(e,lB)}),box:[...Q,...fe(lB)],parts:[ce("eyebrow"),{kind:"text",key:"title",role:"heading",props:U,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:iB}],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'}}),dB={Form:n8(),SubmitBuild:s8()};import{phoneKey as fB}from"efficient-easel/draw";var pB=1.5,cB={textStyle:"body-1",...M("body",15),lineHeight:pB},l8={...Lo,...M("label",12),letterSpacing:.12,lineHeight:pB},uB=()=>({type:G,props:{...L,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[fB("share")]:"content",[fB("wrap")]:"nowrap",...ko(12,0),sectionBorder:{top:1},name:"Item"},slots:{[Ce]:[{type:G,props:{...L,gap:0,gapPhone:0,name:"Item words"},slots:{[Ce]:[Be("label",{...U,tag:"p"},cB),Be("meta",{...oe,tag:"p"},l8)]}},Be("amount",{...U,tag:"p"},cB)]}});var i8=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...Q],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Te]:[uB()]}}],drop:{...X}}),mB={OrderSummary:i8()};import{phoneKey as d8}from"efficient-easel/draw";var OSe={eyebrow:"By the numbers",title:`A picture worth
332
- *a thousand rows.*`},xB=["eyebrow","title","body","caption"],ESe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var hB=["eyebrow","title","body"],ASe={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 yB=()=>({kind:"group",name:"Words",props:{...L,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...L,direction:"row",phoneRow:2,[d8("share")]:"content"},parts:[Yn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2",...M("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...oe,maxWidth:435},style:md(16)}]}),SB=e=>(o,t)=>({...Y,sectionAccent:Zn(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...re(o,bl)}),bB=[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Zn(e,t)],...fe(bl)],f8=()=>({name:"Chart",boxProps:SB([42]),box:bB,parts:[yB(),{kind:"group",name:"Chart",props:{...L,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Vn},ce("caption",{color:"muted",...M("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...xB],drop:{...X,...te}}),IB=e=>e.align==="left",gB={kind:"group",name:"Card",keepEmpty:!0,props:L,parts:[{kind:"core",keep:"rest",props:Vn}]},c8=()=>({name:"Mockup Card",boxProps:SB("equal"),box:bB,parts:[{...gB,when:IB},yB(),{...gB,when:e=>!IB(e)}],pressKeepsEmpty:[...hB],drop:{...X,...te}}),wB={Chart:f8(),Mockup:c8()};import{phoneKey as u8}from"efficient-easel/draw";function CB(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function kB(e){return Math.max(e*6,30)}var m8=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),rg=e=>CB(m8(e)),x8=e=>vp({loopDuration:kB(e)}),h8={kind:"group",name:"Header",props:{...L,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...L,direction:"row",justify:"center",phoneRow:2,[u8("share")]:"content"},parts:[Yn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...U,align:"center"},style:{textStyle:"heading-2",...M("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...oe,align:"center",maxWidth:568},style:md(16)}]},I8=e=>({kind:"group",name:`Row ${e+1}`,when:o=>rg(o)[e].length>0,props:o=>({...L,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:x8(rg(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=>rg(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),g8={kind:"group",name:"Stat",props:{...L,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...L,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...U,align:"center"},style:{textStyle:"heading-1",...M("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...U,align:"center"},style:{textStyle:"heading-3",...M("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...U,align:"center",maxWidth:428},style:{textStyle:"body-1",...M("label",14),lineHeight:1.625,color:"muted"}}]},y8=[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Zn(e,t)],...fe(lc)],S8={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:Zn(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...re(e,lc)}),box:y8,parts:[h8,{kind:"group",name:"Rows",props:{...L,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>I8(o))},g8],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...te}},vB={Integrations:S8},PB=()=>({eyebrow:c("Integrations"),title:c(`Plays well with
333
- *your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});var b8={title:"Back online in",zeroText:"Almost done. Back very soon."},TB=["title"],YSe={label:"Countdown",defaultProps:{...b8,endsAt:"",showUnits:!0}};var w8={...ce("title",{...Qb(12),color:"muted"}),props:{...U,align:"center"}},C8=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...re(e,tc)}),box:[...Q,...fe(tc)],parts:[w8,{kind:"core",keep:"rest",props:Vn}],pressKeepsEmpty:[...TB],drop:{...X,...te}}),k8=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...re(e,sc)}),box:[...Q,...fe(sc)],parts:[{kind:"core",keep:"rest",props:Vn}],drop:{...X,...te}}),OB={Countdown:C8(),FeaturedCover:k8()};var EB={top:80,bottom:80,topPhone:60,bottomPhone:60},v8=()=>{let e=Ip("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:Ql[Fa("FitmentFinder")],...re(o,EB)}),box:[...Q,...fe(EB)],parts:[it("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'}}},_B={FitmentFinder:v8()};var $p={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},nbe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var di={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"},ibe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var AB={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},fbe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var FB={title:`Section heading
334
- *Highlight line*`},BB=[{label:ze.text,href:ze.href,variant:"primary"},{label:ze.text,href:ze.href,variant:"outline"}],ube={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var dr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ee.viewAll},gbe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:Vf,num:dr.num,numStyle:kl,title:dr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var zp={eyebrow:"\u2014 Label",title:`Section headline
335
- *Highlight line*`,body:"A sentence or two of supporting copy."},wbe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:sl,bodySizeDesktop:sl,titleSizeMobile:sl,bodySizeMobile:sl,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[yn]:0,uppercase:!1}};var P8={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...re(e,dc)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...Q,...fe(dc)],parts:[it("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)"}},RB={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},DB=(e,o)=>o?.variant==="primary",NB=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:DB,variant:"primary",style:{letterSpacing:.3},props:{...lo,...RB,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!DB(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...lo,...RB,...o}}]}),Up=e=>Me(e.title),T8={name:"Call-to-Action Heading",boxProps:e=>({...Y,direction:"row",align:"center",justify:Up(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...lt(e,"TitleWithButtons")}),box:[...Q,...Dr("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...L,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-1",...$o("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...L,gap:14,gapPhone:14,widthFitPhone:"fill",...Up(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[NB(Up,{widthFit:"fill",iconPosition:"end"}),NB(e=>!Up(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 O8(e,o){let t=Jn(o,{to:hr(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=Jn(o,{view:"phone",to:hr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:LB,sectionPaddingRight:LB,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var E8={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...re(e,fc),...O8(e,o)}),box:[...Q,...fe(fc)],parts:[it("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"}},MB={...L,direction:"row",share:[67],gap:32},HB={...L,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},WB=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),_8={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...lt(e,"ParagraphsA")}),box:[...Q,...Dr("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...MB,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...L,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[ce("eyebrow",{color:"labels",...M("label",12),letterSpacing:.24})]},WB("Stats column",L,{kind:"group",name:"Stats",props:{...HB,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[Xl("value","label",{...M("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...MB,gapPhone:28},parts:[{kind:"group",name:"Lead",props:L,parts:[{kind:"group",name:"Measure",props:{...L,maxWidth:780},parts:[{kind:"text",key:"lead",props:U,style:{textStyle:"heading-3",...M("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},WB("Note column",{...L,justify:"end"},{kind:"group",name:"Founders",props:{...HB,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...L,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:U,style:{textStyle:"body-1",fontRole:"heading",...M("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:oe,style:{textStyle:"body-5",fontRole:"heading",...M("body",14,12),lineHeight:1.7}}]},ce("attribution",{...M("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...X}},A8={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...re(e,Zf)}),box:[...Q,"contained",...fe(Zf)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...L,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Yt("surface"),...ko(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:{...L,gap:20,gapPhone:20},parts:[ce("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...U,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...M("headingMedium",44,32)}},{kind:"text",key:"body",props:{...U,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...M("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:lo}]}],drop:{...X,...te}},ag={Prose:P8,TitleWithButtons:T8,SectionHeader:E8,ParagraphsA:_8,Banner:A8},$B={Prose:()=>({eyebrow:$p.eyebrow,title:wt($p.title),body:$p.body}),TitleWithButtons:()=>({title:wt(FB.title),buttons:BB.map(e=>({...e}))}),SectionHeader:()=>({num:dr.num,title:wt(dr.title),description:dr.description,linkText:dr.linkText,linkHref:ze.href}),ParagraphsA:()=>({eyebrow:di.eyebrow,lead:Ee.body,foundersHeading:di.foundersHeading,foundersBody:di.foundersBody,attribution:di.attribution}),Banner:()=>({...AB,ctaText:ze.text,ctaHref:ze.href}),ProcessSteps:()=>({num:dr.num,title:wt(dr.title)}),IntroBleed:()=>({eyebrow:zp.eyebrow,title:wt(zp.title),body:zp.body,ctaText:ze.text,ctaHref:ze.href})};function jp(){ro(ag),ro(aA),ro(SA),ro(Y1),ro(DA),ro(XA),ro(dF),ro(pF),ro(wF),ro(FF),ro(KF),ro(nB),ro(dB),ro(mB),ro(_B),ro(wB),ro(vB),ro(OB)}var F8=[{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=>q_(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=>Y_(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})=>(jp(),Q_(e,ql,{theme:Xw(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=>T0(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=>ME(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=>NE(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=>RE(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=>F0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>a0(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=>UE(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=>VE(e)}];function B8(e,o,t){let r=e;for(let a of F8)(!t||a.chrome)&&(r=a.run(r,o));return r}function zB(e,o){return B8(e,{metadata:o},!1)}import{useRef as L8}from"react";import{createRenderKeep as R8}from"efficient-easel/render";function UB(){let e=L8(null);return e.current??=R8(),e.current}import{isNode as D8,isNodeList as N8}from"efficient-easel/data";import{hidableText as M8,readHidable as H8}from"efficient-easel/draw";var GB="slotCounts",ng=e=>!H8(e).hidden&&M8(e).trim()!=="",W8=e=>typeof e=="string"&&e.trim()!=="",$8={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>W8(e.src),Text:e=>ng(e.text),Heading:e=>ng(e.text),Eyebrow:e=>ng(e.eyebrow)},z8=["widthFit","width","minWidth"],jB=e=>N8(e);function U8(e){if(Array.isArray(e.content))return jB(e.content)?e.content:null;let o=Object.values(e).filter(jB);return o.length===1?o[0]:null}function j8(e,o){return[...new Set([eb,...Object.values(z(yw,e)??{})])].some(t=>Dt(o,t)!=="")}function G8(e){let o=e.props??{},t=z($8,e.type);if(!t||!t(o)||j8(e.type,o)||nl(o))return!1;let r=o[Un];if(r!=null&&r!=="")return!1;let a=op(o);return!z8.some(n=>a[n]!==void 0)}function K8(e){let o=0;for(let t of e)if(!Qt(t.props??{})){if(!G8(t))return;o+=1}return o>0?o:void 0}function q8(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!D8(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:U8(l.props);if(typeof i=="string"&&d){let f=K8(d);f!==void 0&&(o[i]=f)}for(let f of Bt(l))a(l.props[f],s||oa(l.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function KB(e,o){return{...e??{},[GB]:q8(o)}}function Twe(e){let o=e.editor?.metadata?.[GB],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 X8({config:e,data:o,metadata:t}){let r=zB(o,t),a=UB(),n=v0(e,k0(r.content)),s=jf(r.content),l=s.length>0?{...t,[C0]:s}:t;return qB(Gf,{children:qB(Y8,{config:n,metadata:KB(l,r.content),keep:a,data:r})})}var VB=V8(X8);import{jsx as zo,Fragment as t7,jsxs as UL}from"react/jsx-runtime";import{Suspense as r7,useMemo as a7}from"react";import{jsx as Z8}from"react/jsx-runtime";import{createContext as J8,useCallback as Q8,useContext as eK,useState as sg}from"react";var YB=J8({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function Hwe({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=sg(null),[n,s]=sg(null),[l,i]=sg(0),d=Q8(()=>i(f=>f+1),[]);return Z8(YB.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var XB=()=>eK(YB);import{jsx as oK,jsxs as tK}from"react/jsx-runtime";import{createContext as rK,useContext as aK}from"react";var ZB=rK(!1);function jwe(){return aK(ZB)}function JB({grayscale:e,children:o}){let t=e===!0;return tK(ZB.Provider,{value:t,children:[Object.entries(c_(e)).map(([r,a])=>oK("style",{children:a},r)),o]})}import{jsx as nK}from"react/jsx-runtime";import{createContext as sK,useContext as lK}from"react";var QB=sK(null);function Vwe(){return lK(QB)}function eL({ink:e,children:o}){return nK(QB.Provider,{value:e??null,children:o})}import{parseOption as iK}from"efficient-shell/format";var oL="data-lead-ink",Qwe="data-header-ink",dK=["auto","light","dark"],fK="auto";function cK(e){return e.type==="IntroBleed"?Np(e.props?.layout)!=="stacked":!0}function tL(e){let o=hf(e);return o&&fP(e)&&cK(o)?"light":null}function eCe(e){return iK(dK,fK,e)}import{useEasel as yg}from"efficient-easel/easel";import{useEffect as CK}from"react";import{useEaselApi as kK}from"efficient-easel/easel";import{find as pK,walk as rL}from"efficient-easel/data";var uK=()=>"",mK=e=>Hm(Lt([e],uK));function sL(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(mK))])),a=Hm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var xK=()=>({press:[Qn(Qr),Qn(Ms)],delivery:[iI()]}),hK={},lg=e=>sL(e,xK,hK),IK=e=>De(e)===YS?"delivery":"press";function pCe(e,o){if(!o||De(e)===De(o))return e;let t=lg(e[Te]),r=IK(e);if(!t||t===r)return e;let a=Lm(e,so),n=r==="delivery"?iI():Qn(De(e)?Ms:Qr),s=Lt([n],Dm(a));return{...e,[Te]:s}}var gK=()=>({cards:[nn(Qr),nn(Ms)],label:[sn(!1),sn(!0)]}),yK={},SK=e=>sL(e,gK,yK);function uCe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=SK(e[Te]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=Lm(e,ew),n=Array.isArray(e.items)&&e.items.some(i=>po(i?.href)!==void 0),s=r==="label"?sn(n):nn(De(e)?Ms:Qr),l=Lt([s],Dm(a));return{...e,[Te]:l}}var aL=(e,o)=>lI.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function nL(e,o){let t={...e};for(let r of lI)delete t[r];return{...t,...structuredClone(o)}}function ig(e){let o=e?.[Ce];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===so&&t.props?t:null}function bK(e,o){let t=ig(e),r=ig(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||De(t.props)===De(r.props))return e;let a=lg(t.props[Te]);if(!a||a===lg(r.props[Te]))return e;let n=ye(e.columns);return n===void 0?e:a==="delivery"&&aL(e,Aa(n))?nL(e,ip(n)):a==="press"&&aL(e,ip(n))?nL(e,Aa(n)):e}function lL(e){let o=Gp.get(e);o?o.count+=1:Gp.set(e,{count:1,stop:wK(e)});let t=!1;return()=>{let r=Gp.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),Gp.delete(e)))}}var Gp=new WeakMap;function wK(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;rL(t,e.config,n=>{if(n.type!==G||!ig(n.props))return;let s=pK(r,e.config,n.props.id);if(!s||s.node===n)return;let l=bK(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>rL(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function iL(){let e=vK();CK(()=>e?lL(e):void 0,[e])}function vK(){try{return kK()}catch{return null}}import{jsx as Kp}from"react/jsx-runtime";import{useEffect as PK}from"react";import{armScrollProgress as TK}from"efficient-shell/format";function dL({armed:e,children:o}){return PK(()=>e?TK():void 0,[e]),o}function dg(){return{style:{"--sf-page-width":Do}}}function OK({children:e}){return Kp("div",{style:dg().style,children:e})}function PCe({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return Kp("div",{style:{...o?{}:wf(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:Kp(dL,{armed:!t,children:Kp(OK,{children:r})})})}import{jsx as fL,Fragment as EK}from"react/jsx-runtime";import{createContext as pL,useContext as cL}from"react";var uL=pL({}),mL=uL.Provider,xL=pL(void 0),hL=xL.Provider;function _Ce(e){let{SectionTextParts:o}=cL(uL),t=cL(xL);return o?fL(o,{...e,sizeCaps:t}):fL(EK,{children:e.children})}import{jsx as VK}from"react/jsx-runtime";import{useEffect as YK,useRef as XK}from"react";var IL="data-easel-overlay-portal";function qp(e){return e.setAttribute(IL,"true"),()=>{e.removeAttribute(IL)}}import{jsx as WK}from"react/jsx-runtime";import{useEffect as $K,useRef as FL}from"react";import{usePreviewParts as zK}from"efficient-easel/draw/client";import{jsx as _K}from"react/jsx-runtime";import{createContext as AK,useContext as FK,useMemo as BK,useState as LK}from"react";var RK={partStyle:null,setPartStyle:()=>{}},gL=AK(RK);function RCe({children:e}){let[o,t]=LK(null),r=BK(()=>({partStyle:o,setPartStyle:t}),[o]);return _K(gL.Provider,{value:r,children:e})}function ls(){return FK(gL)}import{usePreviewDevice as UK}from"efficient-easel/draw/client";import{shownTier as jK}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as BL,encodePartId as GK}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as KK}from"efficient-easel/canvas";import{createPreviewSelectionContext as DK}from"efficient-easel/draw/client";var Ra="Scrolling Bar",{Provider:MCe,useSelection:yL}=DK("selectedHeroId"),fg="data-sf-hero-ticker";function SL(e){return`${e}::ticker`}function bL(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as $r}from"efficient-easel/canvas";import{createPreviewSelectionContext as NK}from"efficient-easel/draw/client";var{Provider:$Ce,useSelection:wL}=NK("selectedLocationPartId");function Vp(e,o,t){return`${e}::${o}::${t}`}function Yp(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 pg="data-sf-part-label";function ug(e,o){return e.closest(`[${$r}]`)?.getAttribute($r)===o}function CL(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(I=>[I.key,lf(I.label)])),n=[],s=new Set;for(let I=0;I<r.length;I+=1){let b=r[I];if(!ug(b,o))continue;let O=b.getAttribute(Qk);if(!O)continue;let _=a.get(O);n.push({element:b,partId:Wt(o,O),..._?{label:_}:{}}),s.add(b)}let l=[],i=new Set;for(let I=0;I<r.length;I+=1){let b=r[I];if(!ug(b,o)||s.has(b))continue;let O=ov(b.textContent??"");if(!O)continue;let _=b.closest(`[${fx}]`)?.getAttribute(fx)||null;_&&i.add(_.replace(/\[\d+\]$/u,"")),l.push({element:b,text:O,row:_})}let d=I=>l.filter(b=>b.row===Jk(I.key,I.row.index)),f=l.filter(I=>I.row===null),x=I=>I.row&&i.has(I.key)?d(I):i.size?f:l,u=new Map,h=[],g=I=>I.row?`${I.key}.${I.row.rowKey}`:null,S=new Map;for(let I of t){let b=g(I);if(!b||i.has(I.key))continue;let O=S.get(b);O?O.push(I):S.set(b,[I])}let v=new Set;for(let[I,b]of S){if(b.length<2)continue;let O=b.flatMap(w=>w.texts);if(new Set(O).size===O.length)continue;let _=x(b[0]).filter(w=>O.includes(w.text));if(_.length!==b.length)continue;let N=[...b].sort((w,F)=>(w.row?.index??0)-(F.row?.index??0));for(let w=0;w<N.length;w+=1){let F=N[w],y=_[w].element,k={key:F.key,partKey:wn(F.key,F.row),exact:!0},T=u.get(y);T?T.push(k):(u.set(y,[k]),h.push(y))}v.add(I)}let E=new Map;for(let I of t){if(v.has(g(I)??""))continue;let b=wn(I.key,I.row);for(let O of I.texts)for(let _ of x(I)){if(_.text!==O)continue;let N=E.get(_.element);N?N.add(b):E.set(_.element,new Set([b]))}}let R=(I,b)=>[...E].some(([O,_])=>O!==I&&!_.has(b)&&O.contains(I));for(let I of t){if(v.has(g(I)??""))continue;let b=wn(I.key,I.row);for(let O of I.texts){let _=[],N=null;for(let y of x(I))y.text===O?R(y.element,b)||_.push(y.element):!_.length&&y.text.includes(O)&&(!N||y.text.length<=N.length)&&(N={element:y.element,length:y.text.length});let w=_.length?_:N?[N.element]:[],F=w.filter(y=>!w.some(k=>k!==y&&y.contains(k)));for(let y of F){let k={key:I.key,partKey:b,exact:_.length>0},T=u.get(y);T?T.push(k):(u.set(y,[k]),h.push(y))}}}let P=[...n];for(let I of h){let b=u.get(I)??[],O=b.some(_=>_.exact)?b.filter(_=>_.exact):b;if(new Set(O.map(_=>_.partKey)).size===1){let _=a.get(O[0].key);P.push({element:I,partId:Wt(o,O[0].partKey),..._?{label:_}:{}});continue}new Set(O.map(_=>_.key)).size===1&&P.push({element:I,partId:Wt(o,O[0].key)})}return P}function cg(e,o,t){let r=e.querySelectorAll(`[${$e}]`);for(let n=0;n<r.length;n+=1){let s=r[n];ug(s,o)&&(s.removeAttribute($e),s.removeAttribute(pg))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute($e,s),l&&n.setAttribute(pg,l),a.push(n);return a}function PL(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let f=t(),x=f?.getAttribute($r)??null;if(!f||!x)return!1;s=x;let u=CL(e,x,o);return a(f,x,cg(e,x,u)),i=n(()=>{let h=CL(e,x,o);MK(u,h)||(u=h,a(f,x,cg(e,x,h)))}),!0};return d()||(l=r(()=>{(s||d())&&(l?.(),l=null)})),()=>{l?.(),l=null,i?.(),i=null,s&&cg(e,s,[])}}function MK(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function YCe(e,o){let t=e?.closest?.(`[${$e}],[${vr}]`),r=t?.getAttribute($e)??t?.getAttribute(vr),a=r?Zk(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:vL(t,r),label:kL(t,r)};let n=e?.closest?.(OL.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${$r}]`)?.getAttribute($r)===o?EL(n,o):null;return s?{id:s,element:n,whole:vL(n,s),label:kL(n,s)}:null}function kL(e,o){let t=Yp(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=zc(o);return r?ir[r.part]:bL(o)?Ra:e.getAttribute(pg)??void 0}var TL="data-loc-pick",OL=[$e,vr,zl,fg,TL];function EL(e,o){let t=e.getAttribute($e)??e.getAttribute(vr);if(t)return t;let r=e.getAttribute(zl);if(r)return wa(o,r);if(e.getAttribute(fg)!==null)return SL(o);let a=e.getAttribute(TL)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?Vp(o,Number(a[0]),a[1]):null}function vL(e,o){let t=e.closest?.(`[${$r}]`),r=t?.getAttribute($r);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(OL.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${$r}]`)!==t)continue;let s=EL(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as _L,playEntrance as HK}from"efficient-shell/format";var mg=new WeakMap;function AL(e,o,t,r){let a=typeof t=="boolean"?t?"phone":"desktop":t,n=[],s=new Map;for(let{partKey:d}of e){if(s.has(d))continue;let f=o(d)??{},x=JC(f),u=r.get(d),h=u?Nn.next(u,x,a):null;r.set(d,h?h.seen:Nn.seed(x)),s.set(d,h?.play??!1)}let l=new Map,i=e.filter(d=>!e.some(f=>f!==d&&f.partKey===d.partKey&&f.element.contains(d.element)));for(let d of i){let f=vc(d.element);f&&l.set(f,[...l.get(f)??[],d])}for(let[d,f]of l){let x=g=>El(o(g.partKey)??{}),u=Wn(f.filter(g=>x(g).entrance));if(u){let g=o(u.partKey)??{};n.push(Cc(d,Vs(g,a)));let S=mg.get(d);mg.set(d,u.partKey),(s.get(u.partKey)||S!==void 0&&S!==u.partKey)&&d.hasAttribute(_L)&&HK(d)}else mg.delete(d);let h=d.hasAttribute(_L)?void 0:Wn(f.filter(g=>nr(o(g.partKey)??{},a).effect!=="none"));h&&n.push(kc(d,nr(o(h.partKey)??{},a))),f.some(g=>x(g).hover==="lift")&&(Pc(d.ownerDocument),d.setAttribute(ga,""),n.push(()=>d.removeAttribute(ga)))}return()=>n.forEach(d=>d())}function xg(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=ub(a),t??=Gm(a)}return{faceRole:o??"body",sizeGroup:t}}function Xp(e,o={},t=ib){let r=e.style,a={};for(let i of xx)a[i]=r[i]??"",r[i]="";o.fontFamily&&(r.fontFamily=o.fontFamily),o.fontSize&&(r.fontSize=o.fontSize);let n=getComputedStyle(e),s=getComputedStyle(e.ownerDocument.documentElement),l=kv({fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,textAlign:n.textAlign,textTransform:n.textTransform,paddingTop:n.paddingTop},vv(n.fontFamily,i=>s.getPropertyValue(i),t));for(let i of xx)r[i]=a[i];return l}function LL({needles:e,styles:o,motions:t=wc,type:r,sizeCaps:a,children:n}){let s=FL(null),{selectedPartId:l}=zK(),{setPartStyle:i}=ls(),d=jK(UK()),f=bt(),x=JSON.stringify(e),u=JSON.stringify(o),h=JSON.stringify(t),g=FL(new Map);return $K(()=>{let S=s.current;if(!S)return;let v=[],E=()=>S.parentElement,R=w=>{let F=E();if(!F)return null;let y=new MutationObserver(w);return y.observe(F,{attributes:!0,attributeFilter:[KK]}),()=>y.disconnect()},P=w=>{let F=new MutationObserver(w);return F.observe(S,{childList:!0,subtree:!0,characterData:!0}),()=>F.disconnect()},I=[];v.push(()=>{for(let w of I)w();I=[]});let b=JSON.parse(x),O=JSON.parse(u),_=JSON.parse(h),N=PL(S,b,E,R,(w,F,y)=>{for(let B of I)B();I=[];let k=[];for(let B of y){let H=B,K=qp(H);K&&I.push(K),H.getAttribute($e)===l&&k.push(H)}let T=Pv(F,l,k,B=>mb(B)!==null||Gm(B)!==null);if(T&&l){let B=T,H=BL(l)?.propKey??"",K=tl(B)?{}:Cv(Tv(O,ar(r,H)),d,{blockDrawsStyle:al(r,H),sizeCap:na(a,H),fonts:f});i({partId:l,...xg(B),base:Xp(B,K,f),inks:tf(B),...(()=>{let $=tl(B);return $?{styleOwner:$}:{}})()})}mx(y.filter(B=>!tl(B)).map(B=>({element:B,partId:B.getAttribute($e)??""})),O,B=>Xp(B,void 0,f),B=>ar(r,B),void 0,d,B=>al(r,B),B=>na(a,B),f);let C=[...S.querySelectorAll(`[${ev}="${CSS.escape(F)}"][${sf}]`)];C.length&&mx(C.map(B=>({element:B,partId:GK(F,B.getAttribute(sf)??"")})),O,void 0,B=>B,void 0,d,void 0,void 0,f),I.push(AL([...y.filter(B=>!tl(B)).map(B=>{let H=B,K=BL(H.getAttribute($e)??"")?.propKey??"";return{element:H,partKey:ar(r,K)}}),...C.map(B=>({element:B,partKey:B.getAttribute(sf)??""}))],B=>_[B],XC(d),g.current))},P);return()=>{N();for(let w of v)w()}},[x,u,h,l,i,d,r,f]),WK("div",{ref:s,[Ch]:"",style:{display:"contents"},children:n})}import{shownTier as ZK}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as JK,usePreviewParts as QK}from"efficient-easel/draw/client";var fi={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)]"},qK={tag:{label:"Tag",follows:"Labels",builtIn:fn(fi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:fn(fi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:fn(fi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:fn(fi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:fn(fi.link),writable:!0}},RL=qK;var Oke=ea,DL={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 NL={SpecTable:DL,FAQ:dw,Collections:RL,Contents:Rp};function ML(){return Qa("efficient.section-text-regions",()=>new Map)}function Dke(e){let o=ML();for(let[t,r]of Object.entries(e)){if(uo(NL,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 is(e){return e?z(NL,e)??ML().get(e)??null:null}function HL({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=XK(null),{selectedPartId:s}=QK(),{setPartStyle:l}=ls(),i=ZK(JK()),d=bt(),f=JSON.stringify([t??null,r??null]);return YK(()=>{let x=n.current,u=is(o);if(!x||!e||!u)return;let h=[],g=Array.from(x.querySelectorAll(`[${ea}]`));for(let S of g){let v=Mm(u,S.getAttribute(ea));if(!v)continue;let E=qp(S);E&&h.push(E);let R=Hs(v),P=Wt(e,R);S.setAttribute(vr,P);let I=t?.[R];if(u[v].sized&&Ov(I)){let b=Ev(I,i,{sizeCap:na(r,R),fonts:d}),O={fontFamily:S.style.fontFamily,fontSize:S.style.fontSize},_=S.getAttribute(ra);b.fontFamily&&(S.style.fontFamily=b.fontFamily),b.fontSize&&(S.style.fontSize=b.fontSize);let N={fontFamily:b.fontFamily?S.style.fontFamily:void 0,fontSize:b.fontSize?S.style.fontSize:void 0},w=I?.textStyle;pv(w)&&S.setAttribute(ra,w),h.push(()=>{Fv(S.style,O,N),_===null?S.removeAttribute(ra):S.setAttribute(ra,_)})}if(P===s){let b=Xp(S,Av(I,u[v],i,d),d);l({partId:P,...xg(S),base:b})}}return()=>{for(let S of h)S();for(let S of g)S.removeAttribute(vr)}},[e,o,s,l,i,f,d]),VK("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as hg,Fragment as WL}from"react/jsx-runtime";import{createContext as e7,useContext as $L,useMemo as o7}from"react";var Ig=e7(null),zL=e=>e==null||e===""?void 0:String(e);function gg({content:e,children:o}){let t=o7(()=>qx(e),[e]);return hg(Ig.Provider,{value:t,children:o})}function eve({id:e,children:o}){let t=$L(Ig),r=zL(e);return hg(WL,{children:o(r?t?.entries.get(r):void 0)})}function ove({id:e,children:o}){let t=$L(Ig),r=zL(e);return hg(WL,{children:o(r?t?.numbers.get(r):void 0)})}var n7={SectionTextParts:HL},s7="color-mix(in oklab, var(--bg) 40%, #ffffff)",l7="12vh";function i7({style:e,children:o}){let{appState:t}=yg(u=>u),r=t.data.content,a=t.data.root;if(cP(r))return zo("div",{className:"sf-themed-content",style:{...e,background:s7,minHeight:"100vh",paddingBottom:l7},children:zo("div",{style:{background:"var(--bg)"},children:zo(gg,{content:r,children:o})})});let n=yx(r)&&uP(a,r),s=yx(r)?mP(a,r):null,l=s?{[pP]:s}:null,i=OC(a?.widthChoice),d=i?{[TC]:i}:null,f=n?null:tL(r),x=f?{[oL]:f}:null;return zo("div",{className:`sf-themed-content${n?` ${iP}`:""}`,style:e,...x,...l,...d,children:zo("div",{style:{background:"var(--bg)",minHeight:"100%"},children:zo(gg,{content:r,children:o})})})}function Eve({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:f,children:x}){iL();let u=yg(g=>g.appState.data.root?.props),h=yg(g=>HP(g.appState.data.content));return zo(Sg,{siteFooterRootProps:u?.kind===zv?u:void 0,inPlaceFooterProps:h,propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,body:g=>UL(t7,{children:[zo(i7,{style:g,children:x}),d,f]})})}function Sg({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,siteFooterRootProps:d,inPlaceFooterProps:f,body:x}){let{chromeRootProps:u}=XB(),h=a7(()=>WP(u,f),[u,f]),{theme:g,fonts:S,sizes:v,cornerRadiusPx:E,cardShadow:R,shadowColor:P,cardGap:I,hoverEffect:b,headingCompression:O,siteWidth:_,siteGutter:N,siteGutterPhone:w,blockGap:F,blockGapPhone:y,siteLengthUnits:k,headingTypography:T,heroBackgroundFollowsWidth:C,photographyGrayscale:B,textStyles:H,wordStyles:K,themeFromDocument:$}=Po(),le=bt(),pe=$?e:g,J=$?o:S,xe=$?void 0:v,ae=$?r===void 0?Ww[Hw(t)]:$w(r):E,ne=$?{}:k,he=$?a:O,Ze=$?n:T,qe=[AT(_T($?void 0:H),le),FT(Vw(Ze).italicStrong)].filter(Boolean).join(`
336
- `),bo=dg(),Je={...Ew(pe),...Mw(xe),...Yw(Ze),...bo.style,...l?{}:wf(s)};return UL("div",{className:`sf-theme-surfaces sf-theme-accent ${[wC($?void 0:w),qv($?void 0:y)].filter(Boolean).join(" ")}`.trim(),style:{...xb(J,le),...gb($?null:K,le),..._w(pe),...Fw(pe),...Bw(pe),...Od(pe),...zw(ae,ne.cornerRadiusUnit),...Kw($?void 0:R,$?void 0:P,$?void 0:b),...sC($?void 0:_,ne.siteWidthUnit),...yC($?void 0:N,ne.siteGutterUnit),...bC($?void 0:w,ne.siteGutterPhoneUnit),...Gv($?void 0:F,ne.blockGapUnit),...Kv($?void 0:y,ne.blockGapPhoneUnit),...Fd($?void 0:C)},"data-sf-headings":qw(he),[cC]:Ad(d??h),[qd]:gk(d??h),"data-sf-card-shadow":$?void 0:Uw(R),"data-sf-card-gap":$?void 0:jw(I),"data-sf-card-hover":$?void 0:Gw(b),onClickCapture:i,children:[qe?zo("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:qe}}):null,zo(JB,{grayscale:$?void 0:B,children:zo(mL,{value:n7,children:zo(eL,{ink:Ow(pe),children:zo(r7,{fallback:null,children:zo(M0,{rootProps:d??h,children:x(Je)})})})})})]})}var jL=e=>{e.target?.closest?.("a")&&e.preventDefault()};var d7=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function f7(e,o){return e.replace(d7,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function KL(e,o){for(let t=0;t<e.length;t++){let r=e.item(t),a=e.getPropertyValue(r);if(!a.includes("vh"))continue;let n=f7(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function qL(e,o){for(let t of Array.from(e)){let r=t.style;r&&KL(r,o);let a=t.cssRules;a&&qL(a,o)}}function GL(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}qL(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))KL(t.style,o)}function VL(e,o){GL(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,GL(e,o)}))};e.addEventListener("load",a,!0);let n=t?new t.MutationObserver(a):null;return n?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style"],characterData:!0}),()=>{n?.disconnect(),e.removeEventListener("load",a,!0),r&&t&&t.cancelAnimationFrame(r)}}var I7=1440,wg=800;function XL({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=fl(),[s,l]=bg(null),[i,d]=bg(wg),[f,x]=bg(null);return c7(()=>{if(!s)return;let u=VL(s,wg),h=s.defaultView,g=()=>{f&&d(Math.max(wg,Math.ceil(f.getBoundingClientRect().height)))},S=h&&f?new h.ResizeObserver(g):null;return f&&S?.observe(f),g(),()=>{u(),S?.disconnect()}},[s,f]),YL("div",{className:"sf-starter",children:[YL(m7,{padding:"none",className:"sf-starter-picture",children:[vt("div",{inert:!0,className:"sf-starter-frame",children:vt(x7,{width:I7,height:i,children:vt(p7,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:vt(Uf,{document:s??void 0,children:vt(Sg,{onClickCapture:jL,body:u=>vt("div",{className:"sf-themed-content",style:u,children:vt("div",{ref:x,style:{background:"var(--bg)"},children:vt(VB,{config:o,data:e.layout,metadata:t})})})})})})})}),vt("div",{className:"sf-starter-add",children:vt(u7,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),vt(h7,{size:"sm",children:e.title})]})}import{useMemo as OX}from"react";import{sessionRegistry as EX}from"efficient-easel/screen/lib/session";import{useEaselSession as _X}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as g7}from"efficient-easel/screen/lib/session";var y7={general:!0,commerce:!0,service:!0};function Cg(e){let o=e?.sets;return o?Object.fromEntries(ob.map(t=>[t,o.includes(t)])):y7}function kg(e=g7()){return Cg(e.blocks)}import{currentEaselSession as dR}from"efficient-easel/screen/lib/session";import{SITE_SIDE as QL}from"efficient-easel/screen/lib/content/length-units";var ZL=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],Vve={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:Kb,separator:qb,scrollDirection:li}};var JL=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],Zve={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function Io(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function eR(e,o,t){return Io(G,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Zp={Manifesto:(e,o)=>({type:G,props:{...e(G),id:o(G),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[Io(G,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:QL,sectionPaddingRight:QL,content:[Io("Text",e,o,Xt()),Io("Text",e,o,xr()),Io("Text",e,o),Io("Stats",e,o)]}),eR(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:G,props:{...e(G),id:o(G),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[Io(G,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[Io("Text",e,o,Xt()),Io("Text",e,o,xr()),Io("Text",e,o),Io("ButtonBlock",e,o)]}),eR(e,o,{direction:"column",name:"Image",content:[Io("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:G,props:{...e(G),id:o(G),direction:"column",name:"Subscribe",content:[Io("Text",e,o,xr()),Io("Text",e,o),Io("Form",e,o)]}}),Ticker:(e,o)=>oR("Scrolling Bar",Yf,pa,ZL.map(t=>({text:t.text,style:Xf,muted:!0})),e,o),SpecStrip:(e,o,t)=>oR("Spec Strip",t?.theme?{...Il,sectionAccent:Td(Jt(t.theme))}:{...Il,sectionBorder:{top:1}},ua,JL().map(r=>({text:r.text??"",style:gl,muted:r.tone==="muted"})),e,o)};function oR(e,o,t,r,a,n){return Io(G,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=>Io("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function tR(e){return z(Zp,e)??null}import{isNodeList as vg}from"efficient-easel/data";var wPe=Object.keys(ag),S7={Logos:bA,DocMasthead:yF,DocTabs:EF,Timeline:VA,TimelineTrack:YA},b7={PaymentBadges:wA,PaymentLogosBlock:CA,Integrations:PB};function Jp(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]=vg(n)?n.map(s=>Jp(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var rR=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function ci(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Pa({type:e,props:{...a(e),...r(),id:n(e)}},o,rR(s));return Jp(l[t],a,n)}}var w7={Stats:k7,Cards:C7};function C7(){let e=Lr("Cards");if(!e)return null;let o=ci("Cards",e,0,V1);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function k7(){let e=Lr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Pa({type:"StatsParagraph",props:{...o("StatsParagraph"),...nA(),id:t("StatsParagraph")}},e,rR(r)),n=a[0],s=vg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=nR(kI(sA(),"table")),i=s.map(aR),d=Jp({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function aR(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:vg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(aR)}}:e}var nR=e=>Lt([e],(o,t)=>`${o}-seed-${t}`)[0];function v7(e,o){if(!J_(e,o))return null;let t=z(w7,e);if(t)return t();let r=Lr(e);return r?ci(e,r,0,z(S7,e)??z($B,e)??z(b7,e)):null}function P7(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=Jp(nR(kI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=Ye(n,l=>We(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function ds(e,o=va){let t=tR(e);return t?P7(t):v7(e,o)}import{blockTypesIn as sR}from"efficient-easel/screen/lib/document/block-types-in";var lR=()=>({}),iR=new Map;function T7(e){let o=iR.get(e);if(o)return o;let t=new Set,r=z(st,e);if(r)for(let s of r.seeds(lR))for(let l of sR({type:r.childType,props:s}))t.add(l);let a=ds(e);if(a){let s=0;for(let l of sR(a(lR,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return iR.set(e,n),n}function Pg(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Cg(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=nb(i);return!d||!o[d]?!1:t?t.has(i):!0},s=new Map,l=i=>{let d=s.get(i);if(d!==void 0)return d;s.set(i,!1);let f=n(i)&&T7(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var O7="block-offer";function Tg(e=dR()){return e.cache(O7,()=>Pg(pn(e)))}function fR(e,o=dR()){let t=Tg(o);return t?t.offers(e):!0}var cR={name:"catalogueLabel",applies:e=>uo(Zr,e),draw(e,o){e.label=z(Zr,o)}};import{jsx as Fg}from"react/jsx-runtime";import{parseBlockWidthFit as B7,phoneKey as Pt,tabletKey as ut}from"efficient-easel/draw";import{jsx as E7}from"react/jsx-runtime";import{phoneKey as Qp}from"efficient-easel/draw";var pR={name:"sectionGroupAllow",applies:e=>ff.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Og=new Set(Object.keys(St)),uR={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=>!Og.has(i)):a;s.disallow=Array.from(new Set([...s.disallow??[],...l]))}}};var xR=Array.from(new Set([...lb.map(e=>e.type),...Og]));function Eg(e,o){return xR.includes(e)||o?.sitsInBox===!0}var _7=Array.from(new Set([...xR,...ad,"GalleryItem"])),A7={not:{context:"parentOffersPositions",is:!1}},F7={not:{context:"parentTileSlot",is:!1}},mR=[ox,Qp("gridSpan"),Qp("gridRowSpan")],hR={name:"cellWidth",applies:(e,o,t)=>(_7.includes(e)||Eg(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=Ro(e.fields??{},a.filter(n=>!mR.includes(n)),A7),e.fields=Ro(e.fields??{},mR,F7)},draw(e){let o=e.render;e.render=t=>{let r=MC(t.gridSpan),a=WC(t.gridRowSpan),n=zC(t[ox]),s=jC(t[Qp("gridSpan")]),l=GC(t[Qp("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[HC]=String(r)),a!=null&&(d[$C]=String(a)),s!=null&&(d[KC]=String(s)),l!=null&&(d[qC]=String(l));let f=n!=null?{[UC]:n}:void 0;return E7(de,{className:"sf-grid-cell",style:f,...d,children:i})}}};function IR(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 pi={not:{context:"heldByANode",is:!0}};function eu(e,o){return"parent"in o?o.parent!=null:!!Gt(o.appState,e.props?.id)}function Gt(e,o){let t=e?.data?.content;if(!Array.isArray(t)||typeof o!="string")return;let r=(a,n)=>{for(let s of a){if(s?.props?.id===o)return n;for(let l of on(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var L7=new Set(["Text","Heading"]),R7=new Set(["h1","h2","h3","h4","h5","h6"]);function gR(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&R7.has(o.tag)?!0:Pr(o,"text").textStyle?.startsWith("heading-")===!0}var zr={not:{context:"blockOutsideBox",is:!0}},yR={all:[zr,{not:{context:"boxSharesWidth",is:!0}}]},SR={all:[zr,{not:{context:"boxSharesWidthPhone",is:!0}}]},bR={all:[zr,{not:{context:"boxSharesWidthTablet",is:!0}}]};function vR(e,o,t){return{any:[{field:ut(e),is:o},{all:[{field:ut(e),set:!1},t??{field:e,is:o}]}]}}function PR(e,o,t){return{any:[{field:Pt(e),is:o},{all:[{field:Pt(e),set:!1},t??{field:e,is:o}]}]}}var TR={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},D7=[[["_gBlockSize","minWidth",ut("minWidth"),Pt("minWidth"),"maxWidth",ut("maxWidth"),Pt("maxWidth")],zr],[["widthFit"],yR],[[ut("widthFit")],bR],[[Pt("widthFit")],SR],[["width"],{all:[yR,{field:"widthFit",is:"fixed"}]}],[[ut("width")],{all:[bR,vR("widthFit","fixed")]}],[[Pt("width")],{all:[SR,PR("widthFit","fixed")]}]],wR=vR("textFit","shrink",TR),CR=[[["_gText","textFit",ut("textFit"),Pt("textFit")],zr],[["minFont"],{all:[zr,TR]}],[[ut("minFont")],{all:[zr,wR]}],[[Pt("minFont")],{all:[zr,PR("textFit","shrink",wR)]}]],ou=(e,o)=>Gt(o.appState,e.props?.id),tu=e=>!!e&&typeof e.type=="string"&&nd(e.type)!==null,_g=e=>(e.type==="Flex"||e.type==="HeroGroup")&&kn(e.type,e.props?.direction)==="row",Ag=e=>{let o=B7(e);return o!==void 0&&o!=="fit"},N7={blockOutsideBox:(e,o)=>!tu(ou(e,o)),boxSharesWidth:(e,o)=>{let t=ou(e,o);return!tu(t)||!_g(t)?!1:Fm({...t.props,direction:"row"})!==""?!0:Am(t.props?.share)!==""&&!Ag(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=ou(e,o);if(!tu(t)||!_g(t))return!1;if(Xb(t.props?.[ut("columns")])!==""||Fm({...t.props,direction:"row"})!=="")return!0;let r=Yb(t.props?.[ut("share")])??t.props?.share;return Am(r)!==""&&!Ag(e.props?.[ut("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=ou(e,o);if(!tu(t)||!_g(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!Zb(r,t.props?.[Pt("share")])&&!Ag(e.props?.[Pt("widthFit")]??e.props?.widthFit)}},M7=e=>/^_[gds][A-Z]/.test(e);function H7(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&&!M7(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function kR(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function W7(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return kR(o,r.indexOf("_dSize")+1,n)}return $7.has(e)&&r.includes("_gSpacing")?kR(o,r.indexOf("_gSpacing"),t):{...o,...t}}var $7=new Set(["Text","Heading"]);function z7(e,o){let{_gText:t,...r}=o;return H7(e,"_gText",r)??{...e,...o}}function U7(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",ut("textFit"),Pt("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var OR={name:"blockSize",applies:(e,o,t)=>Eg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=L7.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=W7(o,e.fields??{},Jo(n,D7));if(r){let l=Jo(a,CR);if(s=z7(s,l),o==="Text"){let i=Jo(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,CR),d=U7(i),f=e.resolveFields,x=(u,h)=>{let g=f?f(u,h):h.fields,S=v=>gR(o,u?.props??{})?d(v??h.fields):v;return g instanceof Promise?g.then(S):S(g)};e.resolveFields=x}}e.fields=s,Rt(e,{...N7,textWrapsByDefault:l=>!gR(o,l.props??{})})},draw(e,o){j7(e,o)}};function j7(e,o){let t=e.render;e.render=r=>{let a=op(r),n=rI(a),s=t(r),l=n&&rI(a,{atSectionLine:!0});return n===null?s:Fg(G7,{size:n,sectionSize:l??n,atEdge:o===G,canvasAttrs:r.editor?.isEditing?u1(a):ER,inCell:p1(a),fillsPhone:d1(a),widens:m1(a),children:s})}}var ER={};function G7({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=Zd(),d=Cr(t?"edge":"by-box"),f=d?e:o,x=f.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,g=s?Fg(nE,{children:l}):l;return Fg(kr,{className:[x,u?a:"",h?i1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==ER?{...f.attrs,...r}:f.attrs,children:g})}import{Fragment as rq,jsx as su}from"react/jsx-runtime";import{jsx as Oo,Fragment as Dg}from"react/jsx-runtime";import{createContext as fs,useContext as Tt}from"react";var K7=new Set(["Flex","Grid"]);function Ur(e){return typeof e=="string"&&K7.has(e)}var Da="contentWidth",Bg="full",Lg="content";function mi(e){let o=e?.[Da];return o===Bg?!1:o===Lg?!0:void 0}function _R(e,o){return e&&!o}function ru(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!Nk(e)&&!OA(e.scrollDirection)}function ui(e,o){return Ur(e)&&ru(ol(o,!1))?xn({}):xn(o)}function au(e,o){return typeof e!="string"||!Bd(e)||js[e]==="rawMarkup"?ui(e,o).background??"full":ui(e,o).background??Ld(o).background}function nu(e){return e!=="full"}function AR(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,l,i)=>{for(let d of a){let f=d?.props??{};if(f.id===o)return n;let x=Ur(d?.type),u=(l?ui(d?.type,f).content:null)==="content"?!0:s,h=x&&(n.inBox?mi(f)??u:u),g={insideGutter:n.insideGutter||h||x&&ru(ol(f,i)),inBox:n.inBox||x};for(let S of Bt({type:d?.type,props:f})){let v=f[S],E=r(v,g,u,!1,i||oa(d?.type,S));if(E!==void 0)return E}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var q7=" [--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))))]",V7="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",Y7="[--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)))]",FR="max-w-[100vw]",X7=`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))] ${FR}`;function BR(e,o=!1){let t={},r=e.pad??{},a=mk({left:r.left,right:r.right},{left:r.leftPhone,right:r.rightPhone},{left:r.leftTablet,right:r.rightTablet},{left:r.left,right:r.right},{desktop:r.unit,tablet:r.unitTablet,phone:r.unitPhone},0,e.site?"site":"box"),n=a.style;for(let[f,x]of[["l","paddingLeft"],["r","paddingRight"]]){let u=n[x];u!==void 0&&(t[`--sf-edge-${f}d`]=typeof u=="number"?`${u}px`:String(u));let h=n[`--sf-pad-${f}-tablet`],g=n[`--sf-pad-${f}-phone`];h!==void 0&&(t[`--sf-edge-${f}t`]=String(h)),g!==void 0&&(t[`--sf-edge-${f}p`]=String(g))}let s=gr(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${q7}`:`${V7}${l?` ${s.className}`:""}`,d=o?` ${xC}${e.gutter?` ${hC}`:""}`:"";return{className:`${i} ${Y7}${d}`,style:t}}function gTe(e,o=!1){let{className:t,style:r}=BR(e,o);return{className:`${t} ${X7}`,...Object.keys(r).length?{style:r}:{}}}var Z7="[--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 J7="--sf-edge-beyond";function LR(e){return`max(0px,calc((${e===null?Us:`min(${Us},${e})`} - ${Do}) / 2))`}var Q7=`${Z7} 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))] ${FR}`;function yTe(e){let{className:o,style:t}=BR(e);return{className:`${o} ${Q7}`,style:{...t,[J7]:e.beyond??"0px"}}}var xi=fs(!1);function _Te(){return Tt(xi)}function ATe({children:e}){return Oo(xi.Provider,{value:!0,children:e})}var Rg=fs(!1);function Ng({children:e}){return Oo(Rg.Provider,{value:!0,children:e})}var RR=fs(null);function Mg({ground:e,children:o}){return Oo(RR.Provider,{value:e,children:o})}var Hg=fs(!1);function eq(){return Tt(Hg)}function DR({atTop:e,nested:o}){return Oo(Dg,{children:eq()?o:e})}var hi=fs(void 0);function NR({children:e}){return Oo(hi.Provider,{value:null,children:e})}function Wg(){return Tt(hi)===void 0&&!Tt(Hg)&&!Tt(xi)}function cs({own:e,followed:o}){return Oo(Dg,{children:Wg()?e():o()})}var MR=fs(null);function HR({value:e,children:o}){return Oo(MR.Provider,{value:e,children:o})}function WR({draw:e}){return Oo(Dg,{children:e(Tt(MR))})}function FTe(){return Tt(hi)??null}function $R({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:l,outerAttrs:i,box:d=!1,edge:f=!1,outerStyle:x,outerClass:u,bleed:h=!1,siteSide:g=!1,part:S,children:v}){let E=Tt(xi),R=Ct(),P=R?` ${gr(g?"site":"box").onceFrame}`:"",I=Tt(Rg),b=_R(e,E),O=b&&!I,_=tt(),N=!!(l&&O),w=N?u:vo(u??"",_.className)||void 0,F=N||!_.className?i:{...i,..._.attrs},y=s?ta(s,O):null,k=y&&R?{root:y.root?{...y.root,className:Qo(y.root.className,!0)}:null,outer:y.outer?{...y.outer,className:Qo(y.outer.className,!0)}:null}:y,T=k?.root??null,C=l&&!O?l:null,B=d&&!h?R?`${Ym} ${uC(g?"site":"box")}`:Ym:null,H=[O?`${o}${P}`:t,O?B:null,T?.className,C?dk:null].filter(Boolean).join(" "),K=oq(h&&O,T||C?{...a,...T?.style,...C}:a),$=Tt(hi),le=Tt(RR),pe=d&&f&&$===void 0?{gutter:b,...s?{pad:s.values}:{},beyond:b&&I?LR(le):"0px",...g&&b?{site:!0}:{}}:null,J=d?Oo(Hg.Provider,{value:!0,children:Oo(hi.Provider,{value:pe,children:v})}):v,xe=b?Oo(xi.Provider,{value:!0,children:J}):J,ae=k?.outer??null,ne=F&&Object.keys(F).length>0?F:null,he=Oo("div",{...ae?null:ne,className:!ae&&w?H?`${H} ${w}`:w:H,style:ae||!x?K:{...K,...x},"data-tab-label":n,...ae?null:S,children:I?Oo(Rg.Provider,{value:!1,children:b&&!h?Oo("div",{className:B?`${r}${P} ${B}`:`${r}${P}`,children:xe}):xe}):xe}),Ze=ae?Oo("div",{...ne,className:w?`${ae.className} ${w}`:ae.className,style:x?{...ae.style,...x}:ae.style,...S,children:he}):he;return _.scope(l&&O?Oo("div",{className:vo(Ud,_.className),style:{display:"contents",...l},..._.attrs,children:Ze}):Ze)}function oq(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as tq}from"react/jsx-runtime";function zR({children:e}){return tq(de,{className:_A,children:e})}function aq({side:e,children:o}){return Wg()?su(zR,{children:su(de,{className:AA(e),children:o})}):su(rq,{children:o})}var UR={name:"boxJoin",applies:(e,o,t)=>e===G&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=Tp(t.join);return r?su(aq,{side:r,children:o(t)}):o(t)}}};var jR=(e,o)=>e.fields?.[o]?.type==="slot",nq=(e,o)=>jR(o,Te)||Cd(e).some(t=>jR(o,t)),GR={name:"cardTemplateOnInsert",applies:(e,o,t)=>nq(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?yd(o,n):s==="copy"?gd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as gi}from"react/jsx-runtime";import{Fragment as Na,jsx as He,jsxs as $g}from"react/jsx-runtime";import{createContext as zg,useContext as jr,useId as cq}from"react";import{REPEAT_ATTRIBUTE as pq,REPEAT_INDEX_ATTRIBUTE as uq}from"efficient-easel/draw";import{jsx as ZTe}from"react/jsx-runtime";import{createContext as iq,useContext as YR,useMemo as dq}from"react";var KR="title";function qR(e){return`${e}Alt`}function sq(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function VR(e,o){let t={[KR]: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}=sq(n);t[r]=s,t[qR(r)]=l}}return t}function lq(e,o){return typeof o!="string"?o.flatMap(t=>lq(e,t)):e===If||!xP(e)?[]:o==="image"?Sx(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:qR(t.key)})):o!=="text"?[]:[{key:KR,label:c("Title")},...Sx(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var XR=iq(null);function fq(){return YR(XR)?.record??null}function o0e(e){let o=fq();return o!==null&&o.type===e?o:null}function ZR(){let e=YR(XR);return dq(()=>e&&e.record.type!==If?VR(e.record,e.dateWords):null,[e])}function m0e({props:e,editing:o,children:t}){let r=jr(Ii);return!o&&zm(e,r?.row)?null:He(Na,{children:t})}var iu=zg(null);function x0e({field:e,children:o}){let t=jr(iu);return He(Na,{children:o(t&&t.field===e?t.id:void 0)})}function mq(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>zm({[en]:r},o)))?.field??""}var Ii=zg(null),lu=zg(null),xq={label:"text-[length:var(--size-label,12px)]"},hq=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${xq.label} text-fg-dim`;function h0e({name:e,label:o,editing:t}){let r=jr(lu)?.(e),a=Yd()!=="";return r!=null&&r!==!1?a?He(de,{className:"contents",children:r}):He(Na,{children:r}):t?He(de,{className:hq,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function I0e(){return jr(Ii)}function Ug({type:e,props:o,children:t}){let r=jr(Ii),a=ZR(),n=r?.row??a;return He(Na,{children:t(ww(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function Iq({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=cq(),{press:l,disabled:i}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return $g("div",{...e,id:s,className:t&&!i?`${uh} ${hE}`:uh,children:[He("button",{type:"button",[yE]:"",className:i?wE:bE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),He(iu.Provider,{value:f,children:n})]})}function g0e({ownerId:e,ownerType:o,slot:t=Te,Template:r,rows:a,items:n,fields:s,states:l,stateLine:i,actions:d,pressTitles:f,previewHover:x,fallback:u,copyAttrs:h,wrapCopy:g,rowKey:S,hostParts:v,children:E}){let R=jr(Ii),P=jr(iu),I=jr(lu);if(!r||(r.blockCount??0)<=0)return He(Na,{children:u});let b=R!==null,O=hw(o),_=x??R?.previewHover,N=r.blockCount===1?He(Fk,{children:He(r,{className:Ck})}):He(r,{}),w=new Set,F=(k,T)=>{if(!S)return T;let C=S(k,T);for(;w.has(C);)C=`${C}#${T}`;return w.add(C),C},y=a.map((k,T)=>{let C=l?.[T],B={row:k,index:T,ownerType:o,slot:t,item:n?.[T],nested:b,...s?{fields:s}:null,...C?{state:C}:null,...O?{linesBetween:O}:null,..._?{previewHover:_}:null},H=Mh(C)?$g(Na,{children:[N,i==="under"?He("span",{"aria-hidden":"true",className:pE}):Nh(C)?$g("span",{"aria-hidden":"true",className:uE,children:[He("span",{className:mE}),He("span",{className:xE})]}):He("span",{"aria-hidden":"true",className:cE})]}):N,K={[pq]:`${e}:${t}`,[uq]:T,...typeof h=="function"?h(B):h},$=d?.[T],le=IE(C,i),pe=$?He(Iq,{attrs:{...K,...le},selected:C?.selected===!0,hover:i!=="under",action:$,titleField:mq(f,k),children:H}):P?He("div",{...K,...le,children:He(iu.Provider,{value:null,children:H})}):He("div",{...K,...le,children:H}),J=g?g(pe,B):pe;return He(Ii.Provider,{value:B,children:v?He(lu.Provider,{value:xe=>v(B,xe),children:J}):I?He(lu.Provider,{value:null,children:J}):J},F(B,T))});return He(Na,{children:E(y)})}var JR={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==so&&e!==cn,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.partSizeCaps,s=r.render,l=t.inspector?.PartAnchors,i=(d,f)=>av(a(),f,x=>Sw(o,d,x));r.render=d=>{let f=Iv(d),x=EO(d);return d.editor?.isEditing&&l?gi(Ug,{type:o,props:d,children:u=>gi(l,{needles:i(d,u),styles:f,motions:x,type:o,sizeCaps:n,children:gi(hL,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(x).length?s(d):gi(Ug,{type:o,props:d,children:u=>gi(DO,{needles:i(d,u),styles:f,motions:x,type:o,atEdge:o===G,sizeCaps:n,children:s(d)})})}}};import{jsx as QR}from"react/jsx-runtime";var eD={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=ik(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?QR(de,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},jg=["CollectionCard"],oD={name:"cardCorners",applies:(e,o,t)=>jg.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=AP(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?QR(de,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var tD={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 rD={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 aD,jsxs as gq}from"react/jsx-runtime";var yq="Flex",nD=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,sD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>nD(t,Nl)?aD(de,{className:Fc,children:t[Nl]==="empty"?null:o(t)}):o(t)}},lD={name:"headBox",applies:(e,o,t)=>e===yq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>nD(t,Dl)?gq(de,{className:Bc,children:[aD(Lc,{}),o(t)]}):o(t)}};import{createElement as Sq}from"react";var iD={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===G?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(Qt(n))return null;let s=nl(n),l=_k(s,Hv(n),{sectionClassName:nl(n,{atSectionLine:!0}),line:r});return Sq(Tk.Provider,{value:l},a(n))}}};import{jsx as kq}from"react/jsx-runtime";import{createContext as fD,createElement as dD,useContext as bq}from"react";var cD=fD(null),wq=fD(!1),q0e=cD.Provider;function Cq(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function pD({name:e,editing:o,children:t}){let r=bq(cD);return o||Cq(e,r?.selected??null,r?.known??[])?t:dD("div",{hidden:!0,style:{display:"none"}},dD(wq.Provider,{value:!0},t))}var vq="Flex",uD={name:"showFor",applies:(e,o,t)=>e===vq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=WE(t[Un])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return kq(pD,{name:r,editing:a,children:o(t)})}}};var mD=yf.mediaFields,Pq=e=>kP(e)?e.src:e;function Tq(e,o){let t=o;for(let r of z(mD,e)??[])t=vP(t,r,Pq);return t}var xD={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(z(mD,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(Tq(o,r))}};import{jsx as yi,Fragment as hD,jsxs as ID}from"react/jsx-runtime";var Oq="!grow-0 !shrink-0 !basis-0",Eq=["[.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(" "),_q="flex flex-col w-full min-w-0 [&>*]:grow";function gD({anchor:e}){let o=la(e),t=Cr(),r=Yd();return o?yi("span",{id:o,className:vo(t?`sf-section-anchor ${Oq} ${Eq}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function Aq({anchor:e,copiesInBox:o,children:t}){let r=Zd()?.columnsRow===!0,a=Ak(),n=la(e)!=="";return o?yi(hD,{children:t}):r&&!a&&n?ID(de,{className:_q,children:[yi(gD,{anchor:e}),t]}):ID(hD,{children:[yi(gD,{anchor:e}),t]})}var yD={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=>yi(Aq,{anchor:r.anchor,copiesInBox:qo(o,r),children:t(r)})}};import{jsx as Fq}from"react/jsx-runtime";var SD=Object.fromEntries(Db.map(e=>[e,"picture"])),Bq={[G]:"box",Ticker:"marquee",...Object.fromEntries(dd.map(e=>[e,"cards"])),...SD},bD=(e,o)=>!Hd.has(e)&&!!o&&typeof o.render=="function";function wD(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function CD(e,o){let t=e,r=t.render;t.render=a=>{let n=gn(a);return!n||qo(o,a)?r(a):Fq(yc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===G,children:r(a)})}}var kD={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&bD(e,t),panel:(e,o,t)=>wD(e,z(Bq,o)??"section",t,o),draw:(e,o)=>CD(e,o)},vD={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&bD(e,t),panel:(e,o,t)=>wD(e,z(SD,o)??"block",t,o),draw:(e,o)=>CD(e,o)};import{jsx as Lq}from"react/jsx-runtime";var PD=(e,o)=>!Hd.has(e)&&!!o&&typeof o.render=="function";function Rq(e){let o=yh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function TD(e,o){let t=e,r=t.render,a=Rq(o),n=e.drawsPictures===!0;t.render=s=>{let l=Hn(s);return!l||qo(o,s)?r(s):Lq(Wc,{views:l,...a?{origins:TO(s,a)}:{},takesViewHide:!0,atEdge:o===G,zoomInside:n?"picture":"layer",children:r(s)})}}var OD={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&PD(e,t),draw:(e,o)=>TD(e,o)},ED={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&PD(e,t),draw:(e,o)=>TD(e,o)};import{jsx as Dq}from"react/jsx-runtime";import{createElement as Nq}from"react";var Gg=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function Mq(e,o){let t=e.props??{};return Gg.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Gt(o.appState,t.id))?.type===G}var Kg={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!wk.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||!Gg.some(f=>f in i))return i;let d=n.get(i);if(!d){d={...i};for(let f of Gg)f in d&&(d[f]=a[f]);n.set(i,d)}return d},l=e.resolveFields;e.resolveFields=(i,d)=>{let f=l?l(i,d):d.fields,x=u=>Mq(i??{},d)?s(u??d.fields):u;return f instanceof Promise?f.then(x):x(f)}},draw(e,o){let t=e.render;e.render=r=>{if(qo(o,r))return t(r);let a=Pk(r);return a?Dq(kr,{className:a.className,style:a.style,...o===G?{attrs:jb}:null,children:t(r)}):t(r)}}},_D={name:"sectionHeightFillRoot",applies:Kg.applies,draw(e,o){let t=e.render;e.render=r=>{let a=qo(o,r)?null:Ek(vk(r),kk(r).join(" "));return Nq(Ok.Provider,{value:a},t(r))}}};import{jsx as du}from"react/jsx-runtime";import{PIN_ATTR as AD,PIN_FRAME_ATTR as Hq}from"efficient-shell/format";var BD=RD("sectionSticky",(e,o,t)=>o.isSection(e)&&!nk.has(e)&&!!t&&typeof t.render=="function",!0),LD=RD("cardSticky",(e,o,t)=>jg.includes(e)&&!!t&&typeof t.render=="function",!1);function RD(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=rx.has(a);r.fields=$q(r.fields??{},Jo(n.stickFields({intro:s,screens:t,above:t}),zq(s))),t&&Rt(r,{heldByANode:eu})},draw(r,a){let n=r.render,s=rx.has(a);r.render=l=>{let i=nx(l,{atScreenTop:s,above:t});if(!i)return n(l);let d=x=>{let u=du(Qd,{children:n(l)});return du(de,{...x.attrs,style:x.style,children:x.attrs[AD]===""?du("div",{[Hq]:"",children:u}):u})},f=t?nx(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[AD]!==""?d(i):du(cs,{own:()=>d(f),followed:()=>d(i)})}}}}var FD=[gt,as],Wq="_gStick";function $q(e,o){let t=Object.keys(e),r=e[Mn];if(!r){let E=t.findIndex(R=>FD.includes(R));return E<0?{...e,...o}:Object.fromEntries([...t.slice(0,E).map(R=>[R,e[R]]),...Object.entries(o),...t.slice(E).map(R=>[R,e[R]])])}let{[Wq]:a,...n}=o,s=E=>E.startsWith(yn),l=Object.entries(n).filter(([E])=>!s(E)),i=Object.entries(n).filter(([E])=>s(E)),d=[r.dot,a?.dot].filter(E=>!!E),f=t.indexOf(Mn),x=t.findIndex((E,R)=>R>f&&FD.includes(E)),u=x<0?t.length:x,h=t.indexOf(Sc),g=h>f&&h<u?h:u,S=E=>[E,E===Mn?{...r,dot:{any:d}}:e[E]],v=[...t.slice(0,g).map(S),...l,...t.slice(g,u).map(S),...i,...t.slice(u).map(S)];return Object.fromEntries(v)}function zq(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},sk]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,pi,{not:{field:Zs,is:!0}}]}),[n,s,l]=tk;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Zt(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Zt(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Zt(["stickTopTablet","stickTop"],o,r))],[[l],a(Zt(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[zd],ax],[[Zs],ax]]}import{jsx as Uq}from"react/jsx-runtime";var DD={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(mc.has(o))return;let t=e.render;e.render=r=>{let a=pk(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,ck(r)),n=t(r);return a?Uq(de,{className:Ud,style:{display:"contents",...a},children:n}):n}}};import{jsx as qg}from"react/jsx-runtime";var ND={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!oC.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=qm.has(o);e.fields={...e.fields,...n?r(Ed,a):r()}},draw(e,o){let t=qm.has(o),r=e.render;e.render=a=>{let n=rC(t?{...a,sectionAccent:Ed(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>qg(kr,{className:n.className,style:d,children:s}),i=n.style;return qo(o,a)?qg("div",{className:n.className,style:{...i,display:"contents"},children:s}):au(o,a)!=="content"?l(i):qg(cs,{own:()=>l({...i,...zs(Do)}),followed:()=>l(i)})}}},MD={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(Ed,a)})}};import{jsx as Ke}from"react/jsx-runtime";var HD=null;function Vg(e){HD=e}function WD(){return HD}import{jsx as jq}from"react/jsx-runtime";var Gq="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",$D=gr("box").frame,Si=`${Gq} ${$D}`,Kq=gr("site").frame,qq=gr("none").frame;function cEe(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?qq:o==="site"?Kq:$D}var Vq="mx-auto w-full max-w-[1280px] px-[60px]",Yq="max-[960px]:px-6",pEe=`${Vq} ${Yq}`;function uEe({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return jq($R,{contained:e,framedClass:`${Si} ${o}`,fillClass:`${a} ${o}`,columnClass:Si,style:t,pad:r,part:n,children:s})}var ps="--sf-sw-site",Xq="--sf-sw-content",Zq="--sf-bg-cap",Jq="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",Yg=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",UD="contents view-wide:[--sf-site-width:100vw]",Xg=({held:e},o,t)=>e?t:Ke(de,{className:o,children:t}),Qq=`contents view-wide:[--sf-site-width:100vw] ${qF} view-wide:[--sf-site-gutter:var(--intro-edge)]`,Zg=(e,o,t)=>o==="content"?`min(${un(e,t)},var(${ps}))`:un(e,t);function bi({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Us:null:o===null?null:Zg(o,r,t)}function wi(e,o){return o===null?e:Ke(de,{className:"contents",style:{[ps]:Do},children:Ke(de,{className:Jq,style:{[Xq]:o},children:e})})}var e9="--sf-content-cap",o9="contents max-view-wide:[--sf-content-cap:none]";function t9({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?Zg(o,r,t):r==="content"?null:`var(${ps})`}function r9(e,o){return o===null?e:Ke(de,{className:"contents",style:{[ps]:Do},children:Ke(de,{className:o9,style:{[e9]:o},children:e})})}var jD=`var(${ps},${Do})`,Gr=(e,o,t="")=>e==="content"?Ke(de,{className:t||void 0,style:zs(Do),children:Ke(Mg,{ground:jD,children:o})}):o;function GD(e,o,t,r,a){if(Yg(t))return Gr(r,Xg(t,UD,Ke(Ng,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Gr(r,e({...o,contained:!1}),a);let n=bi(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Gr(r,wi(Ke(Ng,{children:e({...o,contained:!0})}),n),a)}function a9(e,o,t,r,a){if(t==="hero"){let l=wi(e(o),bi(r,r.band));return r.band==="full"?Ke(de,{style:{[kC]:"none",[vC]:"initial",[PC]:"initial"},children:l}):r.band==="content"?Ke(de,{style:Fd(!0),children:l}):l}let n=r.band??"full",s=br(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return Gr(n,e(o),s);let l=r.contentMax===null?Do:Zg(r.contentMax,n,r.contentMaxUnit);return Ke(de,{className:"contents",style:{[ps]:Do},children:Gr(n,Ke(de,{className:s||void 0,style:zs(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=Yg(r)?Xg(r,Qq,e({...o,fullWidth:!1})):wi(e({...o,fullWidth:l}),l?null:bi(r,n));return n==="content"?Ke(de,{className:"contents",style:{[Zq]:Do},children:i}):i}switch(t){case"both":return Gr(n,r9(e(o),t9(r,n)),s);case"contained":return GD(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let l=Yg(r),i=r.content==="full"&&!l?"full":"page",d=l?Xg(r,UD,e({...o,widthMode:i})):wi(e({...o,widthMode:i}),r.content==="full"?null:bi(r,n));return t==="productGrid"&&!r.own?n==="content"?Ke(qf,{className:s?`${Si} ${s}`:Si,children:f=>Ke(de,{className:f,children:d})}):d:Gr(n,d,s)}default:return Gr(n,wi(e(o),bi(r,n)),s)}}function zD(e,o,t,r,a){let n=a===G?"edge":"by-box",s=l=>a9(e,o,t,r,l);return n==="edge"?s(!0):br(o)===br(o,{atSectionLine:!0})?s(!1):Ke(Xd,{line:n,draw:s})}function n9(e,o){let t=z(js,o);if(!t)return;let r=e.render;e.render=a=>{let n=Ld(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):Ke(WR,{draw:g=>g?.background==="content"?Ke(Mg,{ground:jD,children:i(g)}):i(g)}),i=g=>{let S=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,v=zD(r,a,t,S,o);if(!Ur(o))return v;let E=mi(a),R=E===void 0?S.content:E?"content":"full";return R===S.content?v:Ke(DR,{atTop:v,nested:GD(r,a,{...S,content:R,own:!1},S.band??"full",br(a))})},d=ui(o,a);if(!_C(d))return l();let f=t==="rawMarkup",x=au(o,a),u=d.content??(f?"full":s.content),h={band:x,content:x==="content"?"content":u,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!f,siteContent:s.content};return Ke(cs,{own:()=>Ke(HR,{value:{background:h.band,content:h.content},children:zD(r,a,t,h,o)}),followed:l})}}var s9={all:[pi,{not:{context:"runsEdgeToEdge",is:!0}}]},KD={name:"sectionWidth",applies:(e,o,t)=>Bd(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:z(js,o)==="rawMarkup"}),a=Ur(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Ur(o)?YD(o,e,n,[Da]):n;Rt(e,{heldByANode:eu}),Ur(o)&&Rt(e,{runsEdgeToEdge:(l,i)=>ru(ol(l.props??{},kw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Ro(s,[Ao.background,Ao.content],Ur(o)?s9:pi)},draw(e,o){n9(e,o)}};function l9(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 i9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),qD={name:"containedWidth",applies:(e,o,t)=>i9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=YD(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=f=>l9(f,i);return l&&typeof l.then=="function"?l.then(d):d(l)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=Xm(t,"page");return o({...t,contained:r!=="full"})}}},d9={not:{context:"inHeroGroupRow",is:!0}},VD={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Ro(o.fields??{},["align"],d9),Rt(o,{inHeroGroupRow:(t,r)=>{let a=Gt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&kn("HeroGroup",a.props?.direction)==="row"}})}};function f9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var c9={any:[]},p9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},u9={not:{context:"widthCappedByParent",is:!0}};function YD(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Ro(t,["_gWidth",...r],c9);if(f9(t)){let a=(n,s)=>AR(s.appState?.data?.content,n.props?.id,nu(WD()));return Rt(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Ro(t,r,p9)}return Rt(o,{widthCappedByParent:(a,n)=>"parent"in n?sw(n.parent):IR({props:a.props??{}},n)}),Ro(t,r,u9)}var m9=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"]),XD={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(m9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},x9=new Set(["HeroSlide","HeroGroup"]),ZD={name:"blockGroups",applies:(e,o,t)=>x9.has(e)||!o.isSection(e)&&Pp in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as Jg}from"react/jsx-runtime";var h9=new Set(["Flex","Grid"]),JD=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),I9=(e,o)=>e.fields?.[o]?.ownPictures===!0,g9=["blockCount","blockIds"],y9=new WeakMap,S9=new WeakMap;function b9(e,o){let t=o?S9:y9,r=t.get(e);if(r)return r;let a=e,n=s=>Jg(NR,{children:Jg(Qd,{ownPictures:o,children:Jg(a,{...s})})});Object.assign(n,e);for(let s of g9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var QD={name:"slotsStartAfresh",applies:(e,o,t)=>!h9.has(e)&&typeof t?.render=="function"&&JD(t).length>0,draw(e){let o=JD(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=b9(s,I9(e,n)))}return t(a)}}};var w9=new Set(["Form","Stats","Logos"]);function eN(){return[...w9]}function Qg(e,o,t=[]){let r=new Set(e),a=ab.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!ff.includes(d)),s=new Set([...o,...ad,...eN()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!bd(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var C9=[QD,xD,sD,pR,uR,rO,eD,DD,oD,sO,vD,ED,hR,KD,qD,VD,Kg,D0,yD,ND,kD,OD,BD,LD,UR,MD,OR,XD,ZD,rD,tD,JR,lD,uD,_D,iD,cR,GR];function oN(e,o,t){let r=o;for(let a of C9)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as ey}from"react/jsx-runtime";import{ClockIcon as k9,DurationIcon as v9}from"efficient-easel/icons";import{MOTION_TIMING as tN}from"efficient-shell/format";import{useSelectedHost as P9}from"efficient-easel/easel";function us(e){let{min:o,max:t,step:r,default:a}=tN[e].duration;return Or("Duration",ey(v9,{}),o,t,r,a,"s")}function ms(e){let{min:o,max:t,step:r,default:a}=tN[e].delay;return Or("Delay",ey(k9,{}),o,t,r,a,"s")}function xs(e,o){let t=e.render,r=a=>{let n=P9();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>ey(r,{...a})}}function fu({readsSpeed:e}){return xs(us("loop"),(o,t)=>vp({loopDuration:o,speed:e?t?.speed:void 0}))}function cu(){return xs(ms("loop"),e=>EA({loopDelay:e}))}import{jsx as io}from"react/jsx-runtime";import{DirectionDownIcon as T9,DirectionIcon as O9,DirectionLeftIcon as E9,DirectionRightIcon as _9,DirectionUpIcon as A9,EntranceBounceIcon as F9,EntranceFadeIcon as B9,EntranceFlipIcon as L9,EntranceGlideIcon as R9,EntranceRevealIcon as D9,EntranceRiseIcon as N9,EntranceScaleIcon as M9,EntranceSpinIcon as H9,NoSymbolIcon as W9}from"efficient-easel/icons";import{NoControlMark as $9,noControlField as z9}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as U9,group as j9}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as G9,ENTRANCE_FROM_DEFAULT as aN,ENTRANCE_KINDS as nN,ENTRANCE_KINDS_WITH_FROM as K9,entranceAttrs as q9,playEntrance as V9,readEntrance as Y9}from"efficient-shell/format";var X9={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},Z9={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},J9={top:()=>io(T9,{}),bottom:()=>io(A9,{}),left:()=>io(_9,{}),right:()=>io(E9,{})},sN="Entrance",ty=nN.filter(e=>e!=="none"),lN=e=>({any:[{field:Go.kind,in:e},{all:[{field:Go.kind,set:!1},{field:qs,in:e}]}]}),rN=(e,o)=>Zt(et.slice(0,et.indexOf(e)+1).reverse().map(t=>ot(Go.kind,t)),t=>({field:t,set:!0}),t=>t===Go.kind?lN(o):{field:t,in:o}),Q9={any:[lN(ty),...et.slice(1).map(e=>({field:ot(Go.kind,e),in:ty}))]},eV=et.flatMap(e=>[[[ot(Go.from,e)],rN(e,K9)],[[ot(Go.duration,e),ot(Go.delay,e)],rN(e,ty)]]),oV={none:()=>io(W9,{}),fade:()=>io(B9,{}),rise:()=>io(N9,{}),scale:()=>io(M9,{}),glide:()=>io(R9,{}),bounce:()=>io(F9,{}),flip:()=>io(L9,{}),reveal:()=>io(D9,{}),spin:()=>io(H9,{})},iN="data-entrance-tile";function tV({kind:e}){let{attrs:o}=q9(Y9(e,aN));return io("span",{className:"sf-entrance-stage",[iN]:e,children:io("i",{...o,children:oV[e]()})})}var rV=(e,o)=>{let t=e.querySelector(`[${iN}="${o}"] > i`);t&&V9(t)},aV="Effect",nV=()=>Ef(Go.kind,{label:sN,tileWord:aV,values:nN,fallback:"none",word:e=>X9[e],picture:e=>io(tV,{kind:e}),read:(e,o)=>Vs(e,o).kind,preview:rV}),oy=(e,o)=>Of(Go[e],o,(t,r)=>Vs(t,r)[e]),sV=G9.map(e=>({label:Z9[e],value:e,picture:J9[e]()}));function Ot(){let e={[Pp]:j9(sN,{dot:Q9}),...nV(),[qs]:z9({type:"custom",render:()=>io($9,{})},"always"),_cEntrance:U9(),...oy("from",vn("From",io(O9,{}),sV,aN)),...oy("duration",us("entrance")),...oy("delay",ms("entrance"))};return Jo(e,eV)}import{jsx as mt}from"react/jsx-runtime";import{EntranceRevealIcon as lV,NoSymbolIcon as iV,PercentIcon as dN,ScrollFadeInIcon as dV,ScrollFadeOutIcon as fV,ScrollMoveDownIcon as cV,ScrollMoveUpIcon as pV,ScrollParallaxIcon as uV,ScrollZoomInIcon as mV,ScrollZoomOutIcon as xV,ZoomInIcon as hV}from"efficient-easel/icons";import{customize as IV,group as gV}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as cN,SCROLL_EFFECTS_WITH_ZOOM as yV,SCROLL_END as SV,SCROLL_START as bV,SCROLL_ZOOM as wV}from"efficient-shell/format";var pN="Scroll",CV={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"},kV={none:()=>mt(iV,{}),"zoom-in":()=>mt(mV,{}),"zoom-out":()=>mt(xV,{}),"fade-in":()=>mt(dV,{}),"fade-out":()=>mt(fV,{}),"move-up":()=>mt(pV,{}),"move-down":()=>mt(cV,{}),reveal:()=>mt(lV,{}),parallax:()=>mt(uV,{})},vV="Effect",uN=cN.filter(e=>e!=="none"),fN=(e,o)=>Zt(et.slice(0,et.indexOf(e)+1).reverse().map(t=>ot(xo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),PV={any:et.map(e=>({field:ot(xo.effect,e),in:uN}))},TV=et.flatMap(e=>[[[ot(xo.zoom,e)],fN(e,yV)],[[ot(xo.start,e),ot(xo.end,e)],fN(e,uN)]]),OV=()=>Ef(xo.effect,{label:pN,tileWord:vV,values:cN,fallback:"none",word:e=>CV[e],picture:e=>kV[e](),read:(e,o)=>nr(e,o).effect}),ry=(e,o,t,r,a)=>Of(e,Or(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>nr(n,s)[o]);function Ma(){let e={[Mn]:gV(pN,{dot:PV}),...OV(),[Sc]:IV(),...ry(xo.zoom,"zoom","Zoom",mt(hV,{}),wV),...ry(xo.start,"start","Start",mt(dN,{}),bV),...ry(xo.end,"end","End",mt(dN,{}),SV)};return Jo(e,TV)}import{jsx as Fo}from"react/jsx-runtime";import{AccentIcon as EV,ContrastIcon as _V,EyeIcon as AV,ExpandIcon as FV,FinishIcon as BV,ImagesIcon as LV,NoSymbolIcon as xN,HoverLiftIcon as RV,HoverNextImageIcon as DV,HoverRotateIcon as NV,HoverZoomIcon as hN,OpacityIcon as MV}from"efficient-easel/icons";import{customize as HV,describedAs as IN,group as WV}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as gN}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as go}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as $V,noControlField as zV}from"efficient-easel/screen/lib/document/panel-no-control-mark";var pu=e=>go("desktop",WV("Hover",{dot:e})),yN=()=>go("desktop",HV()),UV="What this does when a shopper points at it, or taps it on a phone.",jV="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",GV="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.",KV="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.",qV="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",VV="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.",YV="Which of the product's pictures the card shows.",XV="Same finish shows the photos of the finish the card shows, else the first group.",ZV="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",JV={none:()=>Fo(xN,{}),nextImage:()=>Fo(DV,{}),rotate:()=>Fo(NV,{}),zoom:()=>Fo(hN,{}),lift:()=>Fo(RV,{}),mono:()=>Fo(_V,{})};function ay(e,o){let t=gN({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(gm[r]),picture:JV[r]()})),fallback:o});return IN(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:gm[r]}))})}function SN(){return{[gt]:pu({field:Zo,in:wm.filter(e=>e!=="none")}),[Zo]:go("desktop",{...ay(wm,"none"),description:UV})}}function bN(e){let o=Lb(e),t=cd(),r=RP(vb);return{[gt]:pu({any:[o,t]}),[Ge.kind]:go("desktop",{...xs(ay(wb,e),(a,n)=>Fb(n??{},e)),description:VV}),...ny(t),[Cb]:zV({type:"custom",render:()=>Fo($V,{})},"always"),_cHover:yN(),[Ge.angle]:go("desktop",oo(xs(r,a=>Bb(a)),o)),[Ge.duration]:go("desktop",oo(us("hover"),o)),[Ge.delay]:go("desktop",oo(ms("hover"),o))}}function ny(e){let o=BP("Type",Fo(LV,{}),Pb.map(a=>({value:a,label:Tb[a]})),fd.kind),t=vn("Group",Fo(BV,{}),Ob.map(a=>({value:a,label:Eb[a]})),fd.group),r=vn("Covers",Fo(FV,{}),_b.map(a=>({value:a,label:Ab[a]})),fd.cover);return{[Ge.mediaKind]:go("desktop",oo({...o,description:YV},e)),[Ge.mediaGroup]:go("desktop",oo({...t,description:XV},e)),[Ge.cover]:go("desktop",oo({...r,description:ZV},e))}}function sy(e,o="",t=Tm.includes(o)){let r=Om(e),a=$b(e);return{[gt]:pu(r),[Ge.kind]:ly(Rb,e,jV),...Tm.includes(o)?ny(cd()):{},_cHover:yN(),...t?wN():{},[Ge.duration]:go("desktop",oo(us("hover"),a)),[Ge.delay]:go("desktop",oo(ms("hover"),a))}}function wN(e=!1){let o=a=>e?a:oo(a,Wb()),t=Or("Zoom",Fo(hN,{}),an.min,an.max,an.step,an.min,an.unit),r=Or("Darken on hover",Fo(MV,{}),bn.min,bn.max,bn.step,bn.fallback,bn.unit);return{[km.zoom]:go("desktop",o(t)),[km.darken]:go("desktop",o(r))}}function ly(e,o,t){let r=go("desktop",{...xs(ay(e,o),a=>Mb({[Zo]:a},o,e)),description:t});return Object.assign(r,{[CN]:o})}var CN="sfPictureResting",mN=new WeakMap;function p1e(e,o,t){let r=e[Ge.kind],a=r?.[CN];if(!r||!a)return e;let n=o.props?.[Zo]==="nextImage",s=n?null:vd(t.appState,o.props?.id);if(!n&&!dd.includes(String(s?.type??"")))return e;let l=mN.get(e);return l||(l={...e,[Ge.kind]:ly(Cm,a,GV)},mN.set(e,l)),l}var QV="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.",eY={none:()=>Fo(xN,{}),[ym]:()=>Fo(EV,{})},u1e=go("desktop",{...IN(gN({label:c("Hover effect"),options:Sm.map(e=>({value:e,label:c(bm[e]),picture:eY[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Sm.map(e=>({value:e,label:bm[e]}))}),description:QV}),oY=go("desktop",{...vn("Show",Fo(AV,{}),[{value:Pm,label:"Always"},{value:vm,label:"On card hover"}],Pm),description:qV});function kN(){let e={any:[Om("none"),{field:Zo,is:ym},{field:Jr,is:vm}]},{[gt]:o,[Ge.kind]:t,...r}=sy("none","",!0);return{[gt]:pu(e),[Ge.kind]:t,[Jr]:oY,...ny(cd()),...r,...wN(!0)}}var m1e=ly(Cm,"none",KV);import{jsx as Ci}from"react/jsx-runtime";import{isNodeList as nY}from"efficient-easel/data";import{useEasel as sY}from"efficient-easel/easel";import{hiddenInView as lY,hiddenKeyOf as iy,hidePatch as iY,slotChildName as dY,slotChildRowName as fY}from"efficient-easel/draw";var tY=new Set(["BookingBox","SubmitBox"]);function rY(e){return typeof e=="string"&&tY.has(e)}var aY=UP(rY,kT);function uu(e,o){return aY(e)||aT(o)}var mu=(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 cY}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as pY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var vN="notCardOfTemplate",PN={not:{context:vN,is:!0}},dy={any:[ud,PN]},L1e={[vN]:(e,o)=>{let t=Um(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function xu(e){let o=e.props?.content;return nY(o)?o:[]}var Iu=(e,o)=>lY(e.props??{},o),uY=(e,o)=>e.props?.[iy(o)]!==void 0;function TN(e,o=()=>!1,t="desktop"){return xu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:xu(r).length&&!Iu(r,t)?TN(r,o,t):o(r)?[]:[r])}function mY(e,o,t,r="desktop"){let a=TN(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:i})=>{let d=i;if(s.has(i)){let f=2;for(;n.has(`${i} ${f}`);)f+=1;d=`${i} ${f}`,n.add(d)}return s.add(i),{id:l.props.id,label:d,shown:!Iu(l,r)}})}function hu(e,o,t){let r=a=>t==="desktop"?Iu(a,t):uY(a,t);return xu(e).flatMap(a=>r(a)?o(a)?[]:[a,...hu(a,o,t)]:hu(a,o,t))}function xY(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===iy("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 fy(e,o,t){let r=xu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=xY(s.props,t(s.props));i!==s.props&&(l={...s,props:i})}else l=fy(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function ON(e,o,t,r="desktop"){return fy(e,o,a=>r==="desktop"&&Iu({props:a},r)===!t?{}:iY(a,r,!t))}function hY(e,o,t){return t==="desktop"?ON(e,o,!0,t):fy(e,o,()=>({[iy(t)]:void 0}))}function IY(e,o,t,r,a,n){return dY(e).trim()?t(e):gw({ownerType:o,owner:r,fields:a,slot:n},Dt(e.props))?.label??t(e)}var gY="This page is read-only.";function yY({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>fY(u,n,rn,void 0,mu),f=u=>uu(u.type,u),x=mY(e,u=>IY(u,o,d,t,r,a),f,i);return x.length?Ci(Bx,{parts:x,changed:hu(e,f,i).length>0,shown:u=>x.find(h=>h.id===u)?.shown??!0,disabledReason:l?gY:void 0,onPress:(u,h)=>s(g=>ON(g,u,h,i)),onReset:()=>s(u=>hu(u,f,i).reduce((h,g)=>hY(h,String(g.props.id),i),u))}):Ci(pY,{})}function SY(){try{let e=sY(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Um(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:vw(e.appState,r),slot:Cw(e.appState,t.props?.id)??void 0}}catch{return null}}function bY({readOnly:e,view:o}){let t=SY(),r=il();return t?Ci(yY,{...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}})}}):Ci(Bx,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function R1e(e){return oo(cY(e,{type:"custom",render:({readOnly:o})=>Ci(bY,{readOnly:o,view:e})}),PN)}import{customize as AY}from"efficient-easel/screen/lib/document/box-fields";import{jsx as cy}from"react/jsx-runtime";import{DirectionIcon as wY,LoopMarqueeIcon as CY,NoSymbolIcon as kY}from"efficient-easel/icons";import{customize as vY,describedAs as PY,group as TY}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as OY}from"efficient-easel/screen/lib/document/effect-tiles";function py(){return yT("Direction",EI,li,"A marquee cannot run diagonally, so the corners are not answers.",cy(wY,{}),gT)}var uy=e=>TY("Loop",e?{dot:e}:void 0),EY={none:()=>cy(kY,{}),scroll:()=>cy(CY,{})};function _Y(){let e=OY({label:c("Loop"),options:kp.map(({value:o,label:t})=>({value:o,label:c(t),picture:EY[o]()})),fallback:OI});return PY(e,{type:"select",label:"Loop",options:kp.map(({value:o,label:t})=>({value:o,label:t}))})}function EN(){return{[as]:uy(si),loop:_Y(),_cLoop:vY(),scrollDirection:oo(py(),si),loopDuration:oo(fu({readsSpeed:!1}),si),loopDelay:oo(cu(),si)}}var _N={field:Jr,set:!0};function FY(){let e=kN(),o=[gt,Zo],t=Ro(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Jr),ud),r=Ro(t,[Jr],_N),a=Ro(r,[Zo],dy);return Ro(a,[gt],{any:[dy,_N]})}function gu(e,o=""){switch(e){case"section":case"block":return{...Ot(),...Ma()};case"box":return{...Ot(),...Ma(),...EN(),...FY()};case"picture":return{...Ot(),...Ma(),...sy(Nb(o),o)};case"textPart":return{...Ot(),...Ma(),...SN()};case"cards":return{...Ot(),...Ma(),...bN(kb(o))};case"marquee":return{...Ot(),...Ma(),[as]:uy(),_cLoop:AY(),scrollDirection:py(),loopDuration:fu({readsSpeed:!0}),loopDelay:cu()}}}import{blockSizeFieldSet as CX}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as kX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as AN,Fragment as BY,jsxs as LY}from"react/jsx-runtime";import{useSelectedHost as FN}from"efficient-easel/easel";import{VIEW_TIERS as RY,viewKeyAt as DY}from"efficient-easel/draw";var BN=e=>RY.find(o=>Object.values(mo).some(t=>DY(t,o)===e))??"desktop";function NY(e,o,t){let r=e(o),a=BN(t);return{top:jd(r,"top",a),bottom:jd(r,"bottom",a)}}var MY=e=>e.startsWith(mo.bottom)?"bottom":"top";function HY(e,o,t,r){let a=MY(r);return o(t,jd(e(t),a,BN(r)),a)}function WY({frameOf:e,note:o,rowKey:t}){let r=FN()?.values,a=r?HY(e,o,r,t):null;return a?AN("p",{className:"es-field-hint",children:a}):null}var $Y=new Set(Sn());function LN(e,o,t){let r=Er({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=FN()?.values;return n?NY(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!$Y.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>LY(BY,{children:[s(l),AN(WY,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as zY}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as UY,deviceMetaOf as NN}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as xy,SETTINGS_BUCKETS as jY}from"efficient-easel/panel";import{BUCKET_KEY as yo,DESIGN_GROUP_KEY as hs}from"efficient-easel/screen/lib/document/field-buckets";var ki=jY;var GY="Editor only \u2014 not shown live",hy={"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",[GY]:"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"},MN={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},HN={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function RN(e,o,t){let r=`${e}.${o}`;return z(HN,r)??z(MN,r)??z(hy,t)}function KY(e){return e==="Animation"?[yo.Animation]:[yo.Design,hs[e]]}function yu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=NN(r),n=tr(a?a.inner:r),s=n?z(hy,n.label):void 0;if(s)for(let l of KY(s))o.includes(l)||o.push(l)}return o}var yAe=[...yu(Er({tablet:!0,siteSide:!0}),On("full"),En(),_n(),dl()),...Object.keys(Er({tablet:!0,siteSide:!0})),...Object.keys(On("full")),...Object.keys(En()),...Object.keys(_n()),...Object.keys(dl())],SAe=[...yu(Pn()),...Object.keys(Pn())],bAe=[...yu(Tn()),...Object.keys(Tn())],wAe=[...yu(Ot()),...Object.keys(Ot())],CAe=Object.keys(wT()),kAe=Object.keys(CT()),qY={"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)"},WN={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},my={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Er({tablet:!0,siteSide:!0}),...On("full"),...En(),..._n(),...Pn(),...Tn(),...Ot()};for(let o of Object.keys(my)){let t=tr(e[o]),r=t?z(hy,t.label):void 0;if(!t||t.level!==2||!r||!WN[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 VY=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),YY=new Map([[yo.Design,"Content"],[yo.Animation,"Animation"],...xy.map(e=>[hs[e],e])]);function XY(e){let o=`${e}.`;return Object.keys(qY).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function ZY(e,o){let t=NN(e),r=zY(o);return t?UY(t.tier,r):r}function JY(e,o){let t=tr(o);return t?e==="Content"||e==="Animation"?fT(o,t.label):cT(o):o}function DN(e){return e==="Design"?xy:["Animation"]}function Su(e,o){let t=[],r=new Set(XY(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let g=tr(h);if(VY.has(u))throw new Error(`${o}.${u}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design \xB7 Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g\u2026\`), or open a Design group with its own key from efficient-easel's DESIGN_GROUP_KEY (\`[DESIGN_GROUP_KEY.Design]: section("Design")\`).`);let S=YY.get(u);if(S!==void 0){if(g?.level!==1)throw new Error(`${o}.${u}: that key is reserved for the ${S} 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.`);(u===yo.Design||u===yo.Animation)&&(n=!0),t.push(s={place:S,entries:[],adopted:!0});continue}if(!g){s||t.push(s={place:"Content",entries:[]}),s.entries.push([u,h]);continue}if(r.has(u)||uo(my,u)){let E=RN(o,u,g.label);if(g.level!==2||!E||!WN[E].includes(g.label))throw new Error(`${o}.${u}: ${r.has(u)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${g.level} "${g.label}" header in the ${E??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(u)&&a.add(u),t.push(s={place:E,entries:[],uniform:uo(my,u)});continue}let v=RN(o,u,g.label);if(!v)throw new Error(`${o}.${u}: 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 ${[...xy,"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:v,entries:[[u,g.level===2?h:ZY(h,g.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>tr(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",HN],["KEY_GROUP",MN]]){let g=Object.keys(h).filter(S=>S.startsWith(`${o}.`)).filter(S=>!l.has(S.slice(o.length+1))&&!r.has(S.slice(o.length+1)));if(g.length)throw new Error(`${o}: ${u} (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(u=>!a.has(u));if(i.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(i)}, but this section has no such fold header${i.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let d=new Set(t.filter(u=>u.entries.length>0).map(u=>u.place)),f=ki.filter(u=>DN(u).some(h=>d.has(h))),x={};for(let u of f){x[yo[u]]=Pf(u,u===f[0]?f:null);for(let h of DN(u)){if(!d.has(h))continue;let g=t.filter(E=>E.place===h),S=g.findIndex(E=>E.adopted);S>0&&g.unshift(...g.splice(S,1));let v=g.filter(E=>E.uniform);if(v.length>0){let E=g.filter(P=>!P.uniform),R=g[0]?.adopted?1:0;g.splice(0,g.length,...E.slice(0,R),...v,...E.slice(R))}u==="Design"&&(x[hs[h]]=Ox(h));for(let E of g)for(let[R,P]of E.entries)x[R]=JY(h,P)}}return x}function $N(e){return yo.Design in e?e:{[yo.Design]:Pf("Design",null),[hs.Content]:Ox("Content"),...e}}function zN(e){return ki.some(o=>yo[o]in e)}function bu(e){let o=ki.filter(r=>yo[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[yo[r]]=Pf(r,r===o[0]?o:null);return t}import{jsx as wu}from"react/jsx-runtime";import{WidthIcon as QY}from"efficient-easel/icons";import{SettingsField as eX,SettingsSwitch as oX}from"efficient-easel/panel";import{group as tX,iconOf as rX,sharedStyleKinds as aX}from"efficient-easel/screen/lib/document/box-fields";var nX="Gutter";function sX({value:e,onChange:o,labelId:t}){let r=nu(ll()),a=mi({[Da]:e})??r,n=s=>o(s?r?void 0:Lg:Bg);return wu(eX,{label:c(nX),labelId:t,icon:rX(wu(QY,{})),action:wu(oX,{checked:a,onChange:n,ariaLabelledBy:t})})}function UN(){return aX({_gWidth:tX(Tf),[Da]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>wu(sX,{value:e,onChange:o,labelId:`${t??r??Da}-label`})}})}import{jsx as gy}from"react/jsx-runtime";import{group as lX,sharedStyleKinds as GN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as iX}from"efficient-easel/screen/lib/document/device-fields";var dX="Content cannot be wider than the background.",Iy=e=>c(e==="content"?"Content width":"Full width");function KN(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=Po(),n=ye(o)??mn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var fX={read:xn},cX={read:xn,drawsFullOnItsOwn:!0},pX={read:EC,clearOnContent:{fullWidth:void 0}};function uX({source:e}){let o=e.read(Ax()),t=il(),r=KN(e);return gy(PT,{value:o.background??r.background,changed:o.background!==null,detail:Iy(r.background),onChange:a=>t(AC(a)),onReset:()=>t(Jm("background"))})}function mX({source:e}){let o=e.read(Ax()),t=il(),r=i=>t({...i,...e.clearOnContent}),a=KN(e),n=(o.background??a.background)==="content",s=pT({row:Zm,label:vT,grid:{min:mn.min,max:n?a.px:mn.max,step:mn.step},valueKey:Ao.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return gy(TT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:mn.max,changed:o.content!==null,detail:a.content==="full"?Iy("full"):`${Iy("content")} ${a.px}px`,fullClosed:n,hint:n?dX:void 0,onMode:i=>r(FC(i)),onPx:i=>r({...BC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(Jm("content"))})}var jN=(e,o)=>iX("desktop",{type:"custom",render:()=>gy(e,{source:o})}),qN=e=>({[Ao.background]:jN(uX,e),[Ao.content]:jN(mX,e),[Ao.contentMax]:_x(),...LP(Zm,Ao.content)});function VN(e){let o=e?.drawsFullOnItsOwn?cX:fX;return GN({_gWidth:lX(Tf),...qN(o)})}function KAe(){return GN({...qN(pX),fullWidth:_x()})}import{deviceMetaOf as XN}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as xX}from"efficient-easel/screen/lib/document/panel-no-control-mark";function hX(e,o){let t=XN(o),r=t?t.inner:o;if(tr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=xX(r);return a==="always"?!1:a==="authored-copy"?$k(e):!0}function YN(e){let o=XN(e),t=o?o.inner:e,r=tr(t);return r?dT(t)?0:r.level:null}function IX(e,o,t){return t?o===0&&e===yo.Design||o===1&&e===hs.Content:!1}var gX=new WeakMap,yX=new WeakMap;function ZN(e,o="section"){let t=o==="page"?yX:gX,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([x,u])=>({key:x,field:u,level:YN(u),draws:hX(x,u)||o==="page"&&YN(u)===null&&cx(x,u)})),n=o==="section"&&a.some(x=>cx(x.key,x.field)),s=new Set;for(let x=0;x<a.length;x++){let u=a[x].level;if(u===null)continue;let h=0;for(let g=x+1;g<a.length;g++){let S=a[g].level;if(S!==null&&S<=u)break;a[g].draws&&(h+=1)}h===0&&!IX(a[x].key,u,n)&&s.add(a[x].key)}let l=n&&zN(e),i=l&&!(yo.Design in e);if(!s.size&&!i)return t.set(e,e),e;let d={};for(let x of a)s.has(x.key)||(d[x.key]=x.field);let f=bu(l?$N(d):d);return t.set(e,f),f}import{isShown as SX,showWhenFactReaders as bX}from"efficient-shell/format";var JN=new WeakMap,wX=new Set(Object.values(yo));function QN(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=bX(r,o,t),l=CP(t,{...s,parentOffersPositions:()=>{let g=Gt(t.appState,n);return g===void 0?void 0:VC(g,n)},parentTileSlot:()=>{let g=Gt(t.appState,n);return g===void 0?void 0:YC(g,n)},heroGroupDepth:()=>Dd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[g,S]of Object.entries(e)){let v=aw(S);!v||wP(v,"device")||SX(v,a,l)||i.push(g)}if(i.length===0)return e;let d=JN.get(e);d||JN.set(e,d=new Map);let f=i.join("\0"),x=d.get(f);if(x)return x;let u=new Set(i),h={};for(let[g,S]of Object.entries(e))u.has(g)||(h[g]=S);return i.some(g=>wX.has(g))&&(h=bu(h)),d.set(f,h),h}var eM={spacingFields:hT,sidesPaddingFields:Er,ownPaddingFields:LN,sectionShapeFields:Tn,cardShapeFields:uT,cellWidthFields:mT,widthField:On,boxGutterFields:UN,sectionOwnWidthFields:VN,heightFields:En,anchorFields:_n,customCssFields:IT,stickFields:dl,sectionThemeFields:Pn,animationTabFields:gu,blockSizeFields:({tablet:e,...o}={})=>CX({...o,shorten:!0,say:FP,lengthUnits:Sf,...e?{phone:kX}:{}}),assignSectionGroups:Su,dropEmptyHeadings:ZN,rowsShownForNode:QN,SECTION_THEME_FOLLOW_LABEL:oT,BLOCK_THEME_FOLLOW_LABEL:tT,PartAnchors:LL};function Cu(e,o,t){if(!e)return e;let r=!1,a={};for(let[n,s]of Object.entries(e)){let l=s;if(s&&typeof s=="object")if(s.type==="slot")if(s.allow){let i=s.allow.filter(o);i.length!==s.allow.length&&(l={...s,allow:i})}else{let i=new Set(s.disallow??[]),d=t.filter(f=>!i.has(f));d.length>0&&(l={...s,disallow:[...s.disallow??[],...d]})}else{let i=Cu(s.arrayFields,o,t),d=Cu(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 vX(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=oN(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 PX(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];TX(e,o,a);for(let n of a){let s=n.components.filter(bd);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(!wd(n))continue;let s=Sd(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 yy(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(...yy(e,o,s.arrayFields,`${l}.`),...yy(e,o,s.objectFields,`${l}.`))}return a}function TX(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${cn}". Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`)};for(let n of t)n.components.includes(cn)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let l=yy(cn,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function oM(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Pg(o);if(PX(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([x])=>x).filter(x=>x in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(x=>`"${x}"`).join(", ")}, which ${s.length===1?"is already a block":"are already blocks"} of the editor. Give a host's block a type of its own.`);let l=x=>a?a.offers(x):!0,i=Object.keys(n).filter(x=>!l(x)),d={};for(let[x,u]of Object.entries(n)){let h=a?Cu(u?.fields,l,i):u?.fields;d[x]=h===u?.fields?u:{...u,fields:h}}if(t.length>0){let x=new Set(t.map(([g])=>g)),u=e.categories?.structure?.components??[],h={...Qg(Object.keys(n),u,x),isHostBlock:g=>x.has(g),inspector:eM};for(let[g,S]of t){let v=vX(g,S,h),E=Cu(v.fields,l,i);d[g]=E===v.fields?v:{...v,fields:E}}}let f=[];for(let[x,u]of Object.entries(e.categories??{})){let h=u?.components??[],g=h.filter(l);g.length===h.length?f.push([x,u]):g.length>0&&f.push([x,{...u,components:g}])}for(let x of r){let u=x.components.filter(v=>v in d&&l(v));if(u.length===0)continue;let h=f.find(([v])=>v===x.key);if(h){let[,v]=h,E=new Set(v.components??[]);h[1]={...v,components:[...v.components??[],...u.filter(R=>!E.has(R))]};continue}let g=[x.key,{title:x.title,components:u}],S=x.before?f.findIndex(([v])=>v===x.before):-1;S===-1?f.push(g):f.splice(S,0,g)}return{...e,components:d,categories:Object.fromEntries(f)}}function tM(){let e=_X();return OX(()=>oM(EX(e),pn(e)),[e])}import{jsx as wy,Fragment as XX,jsxs as ZX}from"react/jsx-runtime";import{useContext as JX,useEffect as QX,useMemo as Eu,useRef as wM}from"react";import{EaselCanvas as eZ,repeatCopyAt as oZ,useEasel as tZ}from"efficient-easel/easel";import{jsx as Sy}from"react/jsx-runtime";import{useEffect as LX,useState as RX}from"react";import{Banner as DX}from"efficient-shell/ui";import{useSyncExternalStore as AX}from"react";import{useScreenDocument as FX}from"efficient-easel/screen/components/ScreenDocumentContext";var BX=()=>()=>{},rM=()=>null;function ku(e){return AX(e?e.subscribe:BX,e?e.state:rM,e?e.state:rM)}function vu(){let{adapter:e}=FX();return e?.pinnedChrome}var Pu={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."},NX={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."},MX=Pu.load,HX=Pu.lock,WX=Pu.conflict,$X=Pu.save;function zX(e){if(!e)return null;if(e.loadFailed)return c(MX);if(e.lockHolder)return c(HX,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(WX);if(e.saveFailed)return c($X);let o=e.sections?.[0];if(!o)return null;let t=o.title||c("A shared section"),r=o.holder?.name||c("Somebody else");return c(NX[o.problem],{section:t,name:r})}function UX({report:e}){let o=zX(ku(e)),[t,r]=RX(null);return LX(()=>{o||r(null)},[o]),!o||t===o?null:Sy("aside",{className:"sf-canvas-notice",children:Sy(DX,{tone:"warning",onDismiss:()=>r(o),children:o})})}function aM(){return Sy(UX,{report:vu()})}import{jsx as Ou}from"react/jsx-runtime";import{useState as SM}from"react";import{Banner as GX,Button as KX}from"efficient-shell/ui";import{UndoIcon as qX}from"efficient-shell/icons/efficient";import{useScreenDocument as VX}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as lM}from"react";var vi=!1,Is=null,by=new Set;function Ti(){for(let e of by)e()}function iM(e){return by.add(e),()=>{by.delete(e)}}function dM(){vi||(vi=!0,Ti())}function fM(){vi&&(vi=!1,Ti())}function nM(){return vi}function cM(){return lM(iM,nM,nM)}function sM(){return Is}function Tu(){Is&&(Is=null,Ti())}function pM(){return lM(iM,sM,sM)}var Pi=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function uM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Pi;let n=await e.restore(o,t);return Cf(n.liveState),a(),n}async function mM({access:e,version:o,page:t,...r}){let a=await uM(e,o.id,t?{page:t.id}:{},r);Is={title:jX(o,t??null),undo:a.undo},Ti()}async function xM({access:e,...o}){let t=Is?.undo;t&&(await uM(e,t,{},o),Is=null,Ti())}function hM(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function jX(e,o){return e.kind==="draft_before_restore"?c("Your drafts from before the restore are back"):o?c("{page} from version {n} is now your draft",{page:o.name,n:e.number}):c("Version {n} is now your draft",{n:e.number})}function IM(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Nt("{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(Km(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function gM(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function yM(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Km(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return c("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return c("{day}, {time}",{day:n,time:a})}import{useSettledAction as YX}from"efficient-easel/easel";function bM(){let e=pM(),{adapter:o,flushSave:t,reloadFromServer:r}=VX(),a=o.siteVersions,[n,s]=SM(!1),[l,i]=SM(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await xM({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=YX({onPress:()=>{d()},busy:n});return e?Ou("aside",{className:"sf-canvas-notice",children:Ou(GX,{tone:l?"danger":"info",title:e.title,onDismiss:Tu,action:a&&e.undo?Ou(KX,{variant:"secondary",size:"sm",leftIcon:Ou(qX,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:c("Undo")}):void 0,children:l?c("Undo did not work. Nothing changed. Try again."):c("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as rZ,REPEAT_ATTRIBUTE as Cy,REPEAT_INDEX_ATTRIBUTE as ky}from"efficient-easel/draw";import{usePreviewParts as aZ}from"efficient-easel/draw/client";import{ScreenDocumentContext as nZ}from"efficient-easel/screen/components/ScreenDocumentContext";function CM(e){let{mirrorHostStyles:o}=fl(),t=UT(),r=vy(),a=ll(),n=JX(nZ),s=KP(n?.docId??null),l=tZ(v=>v.appState.data),i=qP(s,l),d=JSON.stringify(i),f=Eu(()=>i,[d]),x=Eu(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);QX(()=>(Vg(a),()=>Vg(null)),[a]);let u=wM(null),h=sZ(u),{onDocument:g}=e,S=v=>{u.current=v,g?.(v)};return ZX(XX,{children:[wy(bM,{}),wy(aM,{}),wy(eZ,{...e,onDocument:S,typing:h,metadata:x,height:"fill",mirrorStyles:o,frameWrapper:Uf})]})}function vy(){let{sectionBackgroundWidth:e,themeFromDocument:o}=Po(),t=ll();return Eu(()=>LC(o?null:e,t),[e,t,o])}function sZ(e){let o=Bf(),t=aZ(),r=wM({parts:t});return r.current={parts:t},Eu(()=>{let a=(n,s)=>{let l=Df(n,o),i,d=null,f=s??(l?null:Zx(null,e.current,n)),x=!l&&f?oZ(f):null,u=x?rZ(n):null;if(x&&f&&u?.propKey){l=Mf({...x,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let v=f.closest(`[${Cy}][${ky}]`),E=`[${Cy}="${Nf(v?.getAttribute(Cy)??"")}"][${ky}="${Nf(v?.getAttribute(ky)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(E)??null}if(!l)return null;let h=f,g=()=>(h=Zx(h,d?d():h?.ownerDocument??e.current,n),h),S=g();return S?{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?of(tf(S)):void 0,colorNameOf:ef}}:null};return{at:n=>{let s=n.closest(`[${$e}]`),l=s?.getAttribute($e);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>f0(n,o),copyValue:n=>d0(n,o),onChange:n=>{if(!n.typing){Jx(null);return}let s=n.element.closest(`[${$e}]`)?.getAttribute($e)??null;Jx(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var _u=[{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"]}],gs="all",Au="template";function kM(e){for(let o=0;o<_u.length;o++){let t=_u[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function vM(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>kM(o.s.slug)-kM(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function Py(e){return e.filter(o=>o.source==="template")}function PM(e){let o=new Set(vM(e).map(t=>t.slug));return _u.filter(t=>t.slugs.some(r=>o.has(r)))}function TM(e,o){if(e===Au)return Py(o);let t=vM(o);if(e===gs)return t;let r=_u.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var OM=3;function EM(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function BM({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=pZ(),{adapter:n,siteId:s,templateId:l}=cZ(),i=_o(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=dZ(()=>s?{siteId:s}:{},[s]),x=tM(),u=vy(),[h,g]=Ty(null),[S,v]=Ty(gs),[E,R]=Ty(null),P=fZ(null),I=iZ();lZ(()=>{if(!e)return;if(v(gs),!d){g([]);return}let T=!0;return g(null),i.starters(f).then(C=>T&&g(C),()=>{T&&(g([]),FM.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{T=!1}},[e,d,i,f]);let b=async(T,C)=>{if(!E){R(T);try{r(await C())}catch{FM.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{R(null)}}},O=()=>{if(!n.createPage)return;let T=c("New page");b("blank",()=>n.createPage({slug:AM(T,t),title:T,layout:{}}))},_=T=>{b(T.id,()=>i.createFromStarter(T.id,{title:T.title,slug:AM(T.slug,t),...f}))},N=h??[],w=PM(N),F=TM(S,N),y=EM(OM,F),k=_M("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Eo(Oy,{label:c("All pages"),active:S===gs,onClick:()=>v(gs)}),w.map(T=>Eo(Oy,{label:c(T.label),active:S===T.key,onClick:()=>v(T.key)},T.key)),Py(N).length>0?Eo("div",{className:"sf-add-page-group",children:Eo(Oy,{label:c("From your template"),active:S===Au,onClick:()=>v(Au)})}):null]});return Eo(xZ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:P,children:Eo(yZ,{sidebarTop:Eo("div",{className:"sf-add-page-blank",children:Eo(mZ,{variant:"secondary",size:"md",leftIcon:Eo(uZ,{"aria-hidden":!0}),onClick:O,disabled:!n.createPage||E!==null,children:c("Blank page")})}),sidebar:k,children:_M("div",{ref:P,tabIndex:-1,role:"region","aria-labelledby":I,className:"sf-add-page",children:[Eo(SZ,{id:I,level:2,as:"h3",children:c("Pages for your site")}),Eo(gZ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?Eo(IZ,{label:c("Loading\u2026")}):F.length===0?Eo(hZ,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Eo("div",{className:"sf-add-page-cards",children:y.map((T,C)=>Eo("div",{className:"sf-add-page-column",children:T.map(B=>Eo(XL,{starter:B,config:x,metadata:u,busy:E===B.id,onAdd:_},B.id))},C))})]})})})}import{jsx as bZ}from"react/jsx-runtime";import{createContext as wZ,useContext as LM,useEffect as CZ,useRef as RM}from"react";var Ey=wZ(null);function HBe({open:e,children:o}){let t=RM(!!e);return bZ(Ey.Provider,{value:t,children:o})}function DM(){let e=LM(Ey);return()=>e?.current?(e.current=!1,!0):!1}function NM(e){let o=LM(Ey),t=RM(e);t.current=e,CZ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var UM="sf-editor-pages-collapsed-groups";function zZ(){let e=Ay(),{siteId:o,templateId:t}=jM(),r=_o(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function GM({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=Ay().chrome?.pageRows,n=HZ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=jM(),f=An(),{rows:x,reload:u,setRows:h,getRows:g}=ul(),[S,v]=Ha(""),[E,R]=Ha(!1),[P,I]=Ha(null),[b,O]=Ha(!1),_=!!_o(Ay()).pages.createFromStarter,N=zZ(),[w,F]=Ha(null),[y,k]=Ha(()=>{if(typeof window>"u")return new Set;try{let W=window.localStorage.getItem(UM);return new Set(W?JSON.parse(W):[])}catch{return new Set}});MM(()=>{try{window.localStorage.setItem(UM,JSON.stringify([...y]))}catch{}},[y]);let T=W=>k(Ie=>{let ge=new Set(Ie);return ge.has(W)?ge.delete(W):ge.add(W),ge}),C=HM(()=>yP(x??[]),[x]),B=S.trim().toLowerCase(),H=W=>!B||W.toLowerCase().includes(B),K=W=>B?!0:!y.has(W),$=HM(()=>new Set((x??[]).map(W=>W.slug)),[x]),le=()=>{if(l.pageCreationInAdminForm&&!_){n.send("storefront-editor:new-page");return}I(null),O(!0)},pe=DM();MM(()=>{pe()&&le()},[]);let J=l.hasSiteSettings&&!!s.createPage,xe=async()=>{if(!(!i||E||!s.createPage)){R(!0),I(null);try{let W=await s.createPage(nT(c("New popup"),$));await u(),e(W.slug)}catch{I(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{R(!1)}}},ae=PZ(null),[ne,he]=Ha(null),Ze=()=>{if(!J)return le();if(ne)return he(null);let W=ae.current?.getBoundingClientRect();W&&he({top:W.bottom+6,right:Math.max(8,window.innerWidth-W.right)})},qe=W=>{let Ie=x??[],ge=s.deletePage;if(!i||E||!ge||Ie.length<=1)return;let Ue=Ie.findIndex(ve=>ve.id===W.id),Bo=Ie.filter(ve=>ve.id!==W.id),Ve=W.slug===d;$f(W.id,!0),h(Bo),I(null),Ve&&Bo[0]&&e(Bo[0].slug);let wo=()=>{$f(W.id,!1);let ve=g()??[];if(ve.some(Os=>Os.id===W.id))return;let Co=[...ve];Co.splice(Math.max(0,Math.min(Ue,Co.length)),0,W),h(Co)};$M.undoable(c("Deleted \u201C{name}\u201D",{name:W.label}),{actionLabel:c("Undo"),commit:async ve=>{await ge(W.id,ve),$f(W.id,!1)},undo:()=>{wo(),Ve&&e(W.slug)},onFail:()=>{wo(),$M.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},bo=W=>n.send("storefront-editor:open-page",{slug:W}),Je=W=>{if(!H(W.label))return null;let Ie=!t&&W.slug===d,ge=l.canDeletePagesInline&&(x??[]).length>1,Ue=gf(W),Bo=gP(W),Ve=[...Ue?[{label:c("Dynamic"),tone:"info"}]:[],...Bo?[{label:c("Lightbox"),tone:"success"}]:[],...W.draft?[{label:c("draft"),tone:"draft"}]:[]],wo=Ve.length>0?Ve:void 0,ve=!!N&&WZ(W),Co=ve||l.pageCreationInAdminForm||ge?Fu(kZ,{children:[ve&&Pe(Bu,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:W.label}),disabled:E,onClick:()=>F(W),children:Pe(RZ,{size:13})}),l.pageCreationInAdminForm&&Pe(Bu,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:W.label}),onClick:()=>bo(W.slug),children:Pe(NZ,{size:13})}),ge&&Pe(Bu,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:W.label}),disabled:E,onClick:()=>qe(W),children:Pe(_y,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Pe(zM,{icon:Pe(DZ,{size:14}),name:W.label,selected:Ie,onSelect:()=>e(W.slug),badge:wo,actions:Co,rowProps:{"data-page-slug":W.slug}},W.id)},eo=(W,Ie,ge)=>{let Ue=ge.filter(Boolean);if(Ue.length===0)return null;let Bo=K(W);return Fu(vZ,{children:[Pe(BZ,{count:Ue.length,countLabel:Nt("{n} page","{n} pages",Ue.length),expanded:Bo,onToggle:()=>T(W),children:Ie}),Bo&&Ue]},W)},Yo=(a?.rows??[]).filter(W=>H(W.label)).map(W=>{let Ie=t===W.key;return Pe(zM,{icon:W.icon,name:W.label,selected:Ie,onSelect:()=>r(W.key),badge:{label:c("Preview"),tone:"warning"},actions:Pe(Bu,{kind:"plain",label:c("Open the {name} in a new tab",{name:W.label}),onClick:()=>window.open(W.href,"_blank","noopener,noreferrer"),children:Pe(_y,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":W.key}},W.key)}),ie=l.hasSiteSettings&&!!a,Oe=(()=>{if(x===null)return null;let W=[],Ie=!1;for(let ge of C){ie&&!Ie&&ge.key.startsWith("system:")&&(W.push(eo("shop",a.title,Yo)),Ie=!0);let Ue=ge.key===IP||ge.label===hP?c(ge.label):ge.label;W.push(eo(ge.key,Ue,ge.rows.map(Je)))}return ie&&!Ie&&W.push(eo("shop",a.title,Yo)),W})();return Fu("div",{className:"sf-pages",children:[Pe(TZ,{icon:Pe(MZ,{}),title:c("Pages"),context:f,actions:Pe(OZ,{buttonRef:ae,label:J?c("Add"):c("New page"),hasPopup:J?"menu":void 0,expanded:J?ne!==null:void 0,onClick:Ze,children:Pe(LZ,{size:15})})}),ne&&Pe(AZ,{portal:!0,style:{top:ne.top,right:ne.right},onClose:()=>he(null),children:Fu("div",{role:"menu","aria-label":c("Add"),children:[Pe(WM,{role:"menuitem",onClick:()=>{he(null),le()},children:c("Page")}),Pe(WM,{role:"menuitem",disabled:E,onClick:()=>{he(null),xe()},children:c("Popup")})]})}),Pe("div",{className:"sf-pages-find",children:Pe(EZ,{type:"search",leftIcon:Pe(_y,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:S,onChange:W=>v(W.target.value),"aria-label":c("Search all pages")})}),P&&!b&&Pe("div",{className:"sf-note sf-note--error",role:"alert",children:P}),Oe===null?Pe(_Z,{label:c("Loading\u2026")}):Oe.some(Boolean)?Pe(FZ,{ariaLabel:c("Pages"),className:"sf-scroll",children:Oe}):Pe("div",{className:"sf-note",children:S.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),N&&w&&Pe($Z,{source:{title:w.label,slug:w.slug},taken:$,host:pf(),duplicate:W=>N(w,W),onClose:()=>F(null),onDuplicated:W=>{F(null),u(),e(W.slug)}},w.id),b?Pe(BM,{open:!0,onClose:()=>O(!1),takenSlugs:$,onCreated:W=>{O(!1),u(),e(W.slug)}}):null]})}import{jsx as VM}from"react/jsx-runtime";import{createContext as KZ,useCallback as qZ,useContext as VZ,useMemo as YZ,useState as XZ}from"react";import{CanvasChromeContext as ZZ}from"efficient-easel/easel";import{useSelectHandler as JZ}from"efficient-easel/draw/client";import{parseHexColor as UZ,parseOption as jZ}from"efficient-shell/format";var Lu=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],ys=Lu[0],GZ=["right","left"],Wa="right";function Ru(e){return Lu.includes(e??"")?e:ys}function KM(e){return jZ(GZ,Wa,e)}function qM(e){return e&&UZ(e)===e.toLowerCase()?e.toLowerCase():""}var YM="chat",Du={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Wa,launcherLabel:"",showOnPhones:!0};function ILe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:qM(e.launcherColor),launcherIcon:e.launcherIcon?Ru(e.launcherIcon):"",launcherPosition:KM(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var XM=KZ({chat:Du,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function gLe({children:e,chat:o=Du,onChatChange:t}){let[r,a]=XZ(!1),n=qZ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=JZ(),i=YZ(()=>({selected:()=>r?YM:null,select:d=>d===YM&&s()}),[r,s]);return VM(XM.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:VM(ZZ.Provider,{value:i,children:e})})}var Nu=()=>VZ(XM);import{jsx as Fy}from"react/jsx-runtime";import{DesktopIcon as QZ,PhoneIcon as eJ,TabletIcon as oJ}from"efficient-easel/icons";import{VIEW_TIERS as tJ,VIEW_TIER_LABEL as rJ}from"efficient-easel/draw";var aJ={desktop:Fy(QZ,{}),tablet:Fy(oJ,{}),mobile:Fy(eJ,{})},ZM=tJ.map(e=>({id:e,get label(){return c(rJ[e])},icon:aJ[e]}));import{PreviewDeviceContext as Iae}from"efficient-easel/draw/client";import{jsx as nJ}from"react/jsx-runtime";import{createContext as sJ,useCallback as JM,useContext as lJ,useMemo as iJ,useRef as dJ}from"react";var fJ=Object.fromEntries(_f.map(e=>[e,{value:"",error:null}])),QM=sJ({links:ET,rows:fJ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function OLe({children:e,value:o}){let t=dJ(()=>{}),r=JM(()=>t.current(),[]),a=JM(s=>{t.current=s},[]),n=iJ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return nJ(QM.Provider,{value:n,children:e})}var Oi=()=>lJ(QM);import{jsx as cJ}from"react/jsx-runtime";import{createContext as pJ,useContext as uJ,useMemo as mJ,useState as xJ}from"react";var eH=pJ(null);function FLe({children:e}){let[o,t]=xJ(null),r=mJ(()=>({surface:o,setSurface:t}),[o]);return cJ(eH.Provider,{value:r,children:e})}function oH(){return uJ(eH)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as hJ}from"efficient-easel/draw/client";var{Provider:RLe,useSelection:Mu}=hJ("selectedHeroPart");import{jsx as we,jsxs as Kr,Fragment as h2}from"react/jsx-runtime";import{useEasel as joe,useRootFields as Goe}from"efficient-easel/easel";import{EmptyState as Koe}from"efficient-shell/ui";function tH({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:gf({kind:e})?c("Template"):c("Page")}}import{headWords as S2,InspectorHead as qoe,InspectorIconButton as I2}from"efficient-easel/chrome";import{DuplicateIcon as Voe,TrashIcon as Yoe}from"efficient-easel/icons";import{panelFieldsOf as Xoe}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as D,Fragment as ue,jsxs as me}from"react/jsx-runtime";import{BlockBannerIcon as yJ,BlockBoxIcon as SJ,BlockButtonIcon as bJ,BlockDividerIcon as aH,BlockFooterIcon as nH,BlockHeadingIcon as wJ,BlockProductIcon as CJ,BlockSocialIcon as kJ,BlockTextIcon as vJ,CardPaymentIcon as PJ,ChatIcon as TJ,AccountIcon as OJ,GlobeIcon as EJ,GridIcon as _J,ImageIcon as Ly,MapIcon as AJ,MediaIcon as FJ,PageIcon as BJ}from"efficient-easel/icons";import{jsx as By,Fragment as IJ,jsxs as gJ}from"react/jsx-runtime";var rH=gJ(IJ,{children:[By("circle",{cx:"9",cy:"20",r:"1.3"}),By("circle",{cx:"18",cy:"20",r:"1.3"}),By("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 LJ={header:me(ue,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M3 9.5h18"})]}),social:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{children:[D("circle",{cx:"11",cy:"11",r:"6"}),D("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:rH,CountrySwitchBlock:me(ue,{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:me(ue,{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:me(ue,{children:[D("path",{d:"M3 9h18"}),D("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:me(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{children:[D("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),D("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{children:[D("path",{d:"M3.5 20h17"}),D("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:me(ue,{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:me(ue,{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:me(ue,{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:me(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:me(ue,{children:[D("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),D("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:me(ue,{children:[D("path",{d:"M4 8.5h4.5M11 8.5h9"}),D("path",{d:"M4 14.5h16"})]}),HeroGroup:me(ue,{children:[D("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),D("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:me(ue,{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(ue,{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:me(ue,{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:me(ue,{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:me(ue,{children:[D("path",{d:"M4 7h2M4 12h2M4 17h2"}),D("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:me(ue,{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"})},RJ=D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),DJ={footer:nH,Footer:nH,Divider:aH,FooterDivider:aH,Banner:yJ,Flex:SJ,FooterSocial:kJ,FooterPayment:PJ,page:BJ,website:EJ,AccountBlock:OJ,chat:TJ,Heading:wJ,Text:vJ,ImageBlock:Ly,ButtonBlock:bJ,LocationMap:AJ,Grid:_J,ProductRef:CJ,heroMedia:FJ,heroImage:Ly,heroImage2:Ly},NJ={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function $a({type:e,size:o=16,className:t}){let r=NJ[e]??e,a=DJ[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:LJ[r]??RJ})}import{PanelHideButton as g2}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Zoe}from"efficient-easel/screen/lib/session-context";import{jsx as be,jsxs as Ei,Fragment as MJ}from"react/jsx-runtime";import{useEffect as HJ,useId as sH,useState as WJ}from"react";import{IconPicker as $J}from"efficient-shell/ui";import{SettingsDefaultReset as zJ,SettingsField as _i,SettingsSegmented as UJ,SettingsSwitch as lH}from"efficient-easel/panel";import{ButtonIcon as jJ,ButtonIconIcon as GJ,EyeIcon as KJ,PhoneIcon as qJ,PlacementIcon as VJ,TypeIcon as YJ}from"efficient-easel/icons";var XJ="Chat with us",ZJ="We usually reply within a few minutes",JJ="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Hu({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=WJ(o);HJ(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return be(_i,{label:e,icon:be(YJ,{}),changed:o!=="",action:be(Ai,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?be("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:i,"aria-label":e}):be("input",{type:"text",value:s,placeholder:t,onChange:d=>l(d.target.value),onBlur:i,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Ai({label:e,changed:o,onReset:t}){return be(zJ,{words:Zw()?.panel,label:e,changed:o,onReset:t})}function QJ({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=sH();return be(_i,{label:e,labelId:s,icon:o,changed:t!==r,action:Ei("span",{className:"inline-flex items-center gap-2",children:[be(lH,{checked:t,onChange:a,ariaLabelledBy:s}),be(Ai,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var eQ=Lu.map(e=>({value:e,icon:YP(e)}));function oQ(){let{theme:e}=Po(),o=Jt(e).themes[0];return Aw(o)??o?.accent??""}function iH(){let{chat:e,setChat:o}=Nu(),t=sH(),r=oQ(),a=e.launcherIcon?Ru(e.launcherIcon):ys;return Ei(MJ,{children:[be(_i,{label:c("Show the chat bubble"),labelId:t,icon:be(KJ,{}),changed:!e.enabled,action:Ei("span",{className:"inline-flex items-center gap-2",children:[be(lH,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),be(Ai,{label:c("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?c("The floating chat bubble shows in the corner of every page."):c("The chat bubble is hidden across the whole site.")}),Ei(Ex,{title:c("Look"),children:[be(ZP,{label:c("Button color"),icon:be(jJ,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:c("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),be(_i,{label:c("Icon"),icon:be(GJ,{}),value:be(DP,{value:a}),changed:a!==ys,action:be(Ai,{label:c("Icon"),changed:a!==ys,onReset:()=>o({launcherIcon:""})}),children:be($J,{label:c("Icon"),value:a,options:eQ,onChange:n=>o({launcherIcon:n===ys?"":n})})}),be(_i,{label:c("Position"),icon:be(VJ,{}),changed:e.launcherPosition!==Wa,action:be(Ai,{label:c("Position"),changed:e.launcherPosition!==Wa,onReset:()=>o({launcherPosition:Wa})}),children:be(UJ,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),be(Hu,{label:c("Label"),value:e.launcherLabel,placeholder:c("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:c("Shows when a visitor points at the button")}),be(QJ,{label:c("Show on phones"),icon:be(qJ,{}),checked:e.showOnPhones,fallback:Du.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Ei(Ex,{title:c("Wording"),children:[be(Hu,{label:c("Title"),value:e.title,placeholder:XJ,onCommit:n=>o({title:n})}),be(Hu,{label:c("Subtitle"),value:e.subtitle,placeholder:ZJ,onCommit:n=>o({subtitle:n})}),be(Hu,{label:c("Greeting message"),value:e.greeting,placeholder:JJ,onCommit:n=>o({greeting:n}),multiline:!0}),be("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as za,Fragment as tS,jsxs as uH}from"react/jsx-runtime";import{useEffect as AQ,useId as cH,useState as pH}from"react";import{SettingsField as FQ}from"efficient-easel/panel";import{jsx as wQ}from"react/jsx-runtime";import{forwardRef as tQ,createElement as Ry}from"react";var dH={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=tQ(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...x},u)=>Ry("svg",{ref:u,...dH[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&&Ry("title",{key:"svg-title"},i),...r.map(([h,g])=>Ry(h,g)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var rQ=[["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"}]],Dy=se("outline","brand-facebook","BrandFacebook",rQ);var aQ=[["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"}]],Ny=se("outline","brand-instagram","BrandInstagram",aQ);var nQ=[["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"}]],My=se("outline","brand-line","BrandLine",nQ);var sQ=[["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"}]],Hy=se("outline","brand-linkedin","BrandLinkedin",sQ);var lQ=[["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"}]],Wy=se("outline","brand-pinterest","BrandPinterest",lQ);var iQ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],$y=se("outline","brand-telegram","BrandTelegram",iQ);var dQ=[["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"}]],zy=se("outline","brand-tiktok","BrandTiktok",dQ);var fQ=[["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"}]],Uy=se("outline","brand-wechat","BrandWechat",fQ);var cQ=[["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"}]],jy=se("outline","brand-whatsapp","BrandWhatsapp",cQ);var pQ=[["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"}]],Gy=se("outline","brand-x","BrandX",pQ);var uQ=[["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"}]],Ky=se("outline","brand-youtube","BrandYoutube",uQ);var mQ=[["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"}]],qy=se("filled","brand-facebook-filled","BrandFacebookFilled",mQ);var xQ=[["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"}]],Vy=se("filled","brand-instagram-filled","BrandInstagramFilled",xQ);var hQ=[["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"}]],Yy=se("filled","brand-linkedin-filled","BrandLinkedinFilled",hQ);var IQ=[["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"}]],Xy=se("filled","brand-pinterest-filled","BrandPinterestFilled",IQ);var gQ=[["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"}]],Zy=se("filled","brand-tiktok-filled","BrandTiktokFilled",gQ);var yQ=[["path",{d:"M18.497 4.409a10 10 0 0 1 -10.36 16.828l-.223 -.098l-4.759 .849l-.11 .011a1 1 0 0 1 -.11 0l-.102 -.013l-.108 -.024l-.105 -.037l-.099 -.047l-.093 -.058l-.014 -.011l-.012 -.007l-.086 -.073l-.077 -.08l-.067 -.088l-.056 -.094l-.034 -.07l-.04 -.108l-.028 -.128l-.012 -.102a1 1 0 0 1 0 -.125l.012 -.1l.024 -.11l.045 -.122l1.433 -3.304l-.009 -.014a10 10 0 0 1 1.549 -12.454l.215 -.203a10 10 0 0 1 13.226 -.217m-8.997 3.09a1.5 1.5 0 0 0 -1.5 1.5v1a6 6 0 0 0 6 6h1a1.5 1.5 0 0 0 0 -3h-1l-.144 .007a1.5 1.5 0 0 0 -1.128 .697l-.042 .074l-.022 -.007a4.01 4.01 0 0 1 -2.435 -2.435l-.008 -.023l.075 -.041a1.5 1.5 0 0 0 .704 -1.272v-1a1.5 1.5 0 0 0 -1.5 -1.5",key:"svg-0"}]],Jy=se("filled","brand-whatsapp-filled","BrandWhatsappFilled",yQ);var SQ=[["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"}]],Qy=se("filled","brand-x-filled","BrandXFilled",SQ);var bQ=[["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"}]],eS=se("filled","brand-youtube-filled","BrandYoutubeFilled",bQ);var gDe="outline",Wu={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},CQ={},oS={fillRule:"evenodd"},kQ=[["path",{...Wu,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...oS,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],vQ=[["path",{...Wu,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",{...CQ,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("")}]],PQ=[["path",{...Wu,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",{...Wu,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",{...oS,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",{...oS,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("")}]],TQ=se("filled","brand-telegram-filled","BrandTelegramFilled",kQ),OQ=se("filled","brand-line-filled","BrandLineFilled",vQ),EQ=se("filled","brand-wechat-filled","BrandWechatFilled",PQ),_Q={instagram:{outline:Ny,solid:Vy},facebook:{outline:Dy,solid:qy},tiktok:{outline:zy,solid:Zy},youtube:{outline:Ky,solid:eS},x:{outline:Gy,solid:Qy},linkedin:{outline:Hy,solid:Yy},pinterest:{outline:Wy,solid:Xy},whatsapp:{outline:jy,solid:Jy},telegram:{outline:$y,solid:TQ},line:{outline:My,solid:OQ},wechat:{outline:Uy,solid:EQ}};function fH({platform:e,iconStyle:o,size:t}){let r=_Q[e][o];return wQ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var BQ={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 LQ({platform:e}){let{rows:o,saveLink:t}=Oi(),{value:r,error:a}=o[e],[n,s]=pH(r),[l,i]=pH(!1),d=cH(),f=cH();AQ(()=>s(r),[r]);let x=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=OT[e];return uH(tS,{children:[za(FQ,{label:c(u),htmlFor:d,icon:za(fH,{platform:e,iconStyle:"outline",size:18}),children:za("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:BQ[e],onChange:h=>s(h.target.value),onBlur:()=>{x()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&za("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function mH({unavailable:e}){let{canSave:o}=Oi();return!o&&e?za(tS,{children:e}):uH(tS,{children:[za("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),_f.map(t=>za(LQ,{platform:t},t))]})}import{jsx as Ga,Fragment as see,jsxs as lee}from"react/jsx-runtime";import{useId as iee,useMemo as dee}from"react";import{useEasel as fee}from"efficient-easel/easel";import{SettingsField as cee,SettingsSwitch as pee}from"efficient-easel/panel";import{EyeIcon as uee}from"efficient-easel/icons";import{fieldShownInView as mee}from"efficient-easel/fields";import{usePreviewDevice as xee}from"efficient-easel/draw/client";import{ROOT_ZONE as hee}from"efficient-easel/draw";import{jsx as ja,Fragment as NQ}from"react/jsx-runtime";import{createContext as MQ,useContext as HQ,useLayoutEffect as WQ,useMemo as hH,useRef as $Q,useState as IH}from"react";import{useEasel as gH,useSelectedFields as zQ}from"efficient-easel/easel";import{fieldShownInView as UQ,Inspector as jQ,LEAD_BAND_KEY as GQ,planFields as yH}from"efficient-easel/fields";function xH({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 RQ}from"react/jsx-runtime";import{EmptyState as DQ}from"efficient-shell/ui";function Ua(){return RQ(DQ,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as KQ}from"efficient-easel/draw/client";import{deviceField as qQ}from"efficient-easel/screen/lib/document/device-fields";var VQ="Text",rS=new Map,$u=new Set,YQ=Object.fromEntries(ki.map(e=>{let o=iT[e];return[e,ja(o,{},e)]})),SH=MQ(null),XQ={_partBody:qQ("each",{type:"custom",render:()=>ja(ZQ,{})})};function ZQ(){return ja(NQ,{children:HQ(SH)})}function Et({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:i,values:d,readOnly:f,onChange:x}=zQ(),u=hH(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(J,xe)=>a?.keys.has(J)?a.onChange(J,xe):x(J,xe),g=KQ(),{appState:S,config:v}=gH(J=>J),E=bP(g,v,S.data.content??[],S.ui.itemSelector),R=n===void 0?o_(i,t):XQ,P=hH(()=>{let J=r?.length?Object.fromEntries(Object.entries(R).filter(([xe])=>!r.includes(xe))):R;return a?{...J,...a.fields}:J},[R,r,a?.fields]),I=bx(P,u,E),[b,O]=IH(()=>new Set($u)),_=UQ({},g),N={key:GQ,title:VQ},w=gH(J=>J.selectedItem)!==null,F=a?.part??t??"",y=`${l}:${F}:${String(g)}`,[k,T]=IH(()=>({tab:rS.get(y)})),C=`${l}:${F}`,B=$Q(null),H={...E,node:u},K=yH(I,{values:u,context:H}).buckets,$=xH({allTabs:w,remembered:rS.get(y),inherited:B.current?.panel===C?B.current.tab:k.tab,buckets:K,hasText:_&&o>0}),le=!_&&!K.includes($)&&(yH(bx(P,u,{...E,device:"desktop"}),{values:u,context:{...H,device:"desktop"}}).buckets.includes($)||$==="Design"&&o>0);WQ(()=>{B.current={panel:C,tab:$}});let pe=$==="Design";return ja(SH.Provider,{value:n??null,children:ja(xT.Provider,{value:a?u:null,children:ja(jQ,{fields:I,values:u,onChange:h,readOnly:f,allTabs:w,showWhenContext:H,context:{itemWord:s},tab:$,onTab:J=>{rS.set(y,J),T({tab:J})},tabIcons:YQ,idPrefix:l,ariaLabel:c("Section settings"),lead:pe?e:null,leadFold:N,closedFolds:b,onFold:(J,xe)=>{xe?$u.delete(J):$u.add(J),O(new Set($u))},children:le&&ja(Ua,{})})})})}import{useMemo as JQ}from"react";import{useEasel as QQ}from"efficient-easel/easel";import{useSectionOps as eee}from"efficient-easel/screen/lib/document/use-section-ops";var bH=new Map,oee=e=>{let o=bH.get(e);return o||bH.set(e,o=Su(gu(e),`part:${e}`)),o},tee=new Set(wh);function Ss(e,o,t){let{getItemById:r,getSelectorForId:a}=QQ(f=>f),n=eee(),s=r(e)?.props??{},l=Ia(s,o),i=JSON.stringify(l),d=JQ(()=>Object.fromEntries(wh.map(f=>[f,l[f]])),[i]);return{part:o,fields:oee(t),values:d,keys:tee,onChange:(f,x)=>{let u=a(e),h=r(e);if(!u||!h)return;let g=_O(h.props??{},o,f,x);n.replaceComponent(u.zone,u.index,{...h,props:g})}}}import{Fragment as ree,createElement as aee}from"react";import{deviceField as aS}from"efficient-easel/screen/lib/document/device-fields";var So=()=>({type:"custom",render:()=>aee(ree)});var nS={words:So(),sourceNote:So(),style:So(),font:So(),italic:So(),fontSize:aS("each",So()),lineHeight:So(),letterSpacing:So(),paragraphSpacing:So(),padding:So(),align:aS("each",So()),letterCase:So(),fixedSizeHint:aS("each",So()),regionNote:So(),regionStyle:So()},nee=["fontSize","align"];function wH(e){return nee.includes(e)}var CH={showTicker:So(),items:So()};function kH({heroId:e}){let{appState:o,dispatch:t}=fee(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=dee(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:$_.map(g=>({text:g}))},[n]),i=iee(),d=xee(),f=h=>mee(CH[h],d),x=Ss(e,z_,"block");if(!n)return Ga("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:hee,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return Ga(Et,{motion:x,body:lee(see,{children:[!f("showTicker")&&!f("items")&&Ga(Ua,{}),f("showTicker")&&Ga(cee,{label:c("Show ticker"),labelId:i,icon:Ga(uee,{}),action:Ga(pee,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&Ga(ST,{label:Fx.label,icon:Fx.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as Li,jsxs as xt}from"react/jsx-runtime";import{useContext as _ee,useEffect as sS,useRef as Aee,useState as RH}from"react";import{FieldSelect as Fee,InspectorField as Bee,fieldShownInView as Lee}from"efficient-easel/fields";import{InertHint as jH,SettingsField as Ree}from"efficient-easel/panel";import{InspectorUpLevel as qu}from"efficient-easel/chrome";import{StylesIcon as Dee,TypeIcon as Nee}from"efficient-easel/icons";import{useEasel as Mee}from"efficient-easel/easel";import{TextPartPanel as DH}from"efficient-easel/copy";import{Button as Hee,IconButton as Wee,Tooltip as $ee}from"efficient-shell/ui";import{jsx as TH,jsxs as Iee}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as gee}from"efficient-easel/strings";import{COPY_CELLS as bs,COPY_CELL_LENGTHS as vH,CopyBox as yee,lengthCellUnits as See}from"efficient-easel/copy";import{PaddingYIcon as bee}from"efficient-easel/icons";import{onDesktopWords as wee}from"efficient-easel/screen/lib/document/box-fields";var PH=gee.copy.cells,Cee={kind:"spacing"},kee=["left","center","right","justify"];function zu(e,o,t,r="desktop"){let a=yv(e),n=bv(r),s=e[n]??e.size??o.sizePx,l=wv(e,r),i=(f,x,u,h,g)=>{let S=rl[u];return See({preset:f,row:x,table:Sf,unit:e[S],value:e[u],tier:r,styleValue:h,label:c(g),onPick:(v,E)=>t({[S]:v??null,[u]:E??null}),onChange:(v,E)=>t({...E?{[S]:E.unit??null}:{},[u]:v??null})})},d={key:"padding",name:c("Padding"),icon:TH(bee,{}),unit:"px",step:xv,shiftStep:10,min:uv,max:mv};return[{...bs.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(bs.fontSize,vH.fontSize,n,Math.round(o.sizePx),PH.fontSize),...n==="size"?{}:{reset:{detail:l?wee(f=>c(f),`${l.px}px`,l.view):void 0}}},{...bs.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...bs.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...bs.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...i(bs.paragraphSpacing,vH.paragraphSpacing,"paragraphSpacing",0,PH.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,Cee,"padding",o.paddingPx,"Padding")}]}function OH({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:i,placeholder:d,ariaLabel:f,head:x,typedOnCanvas:u=!1}){let h=zu(n,s,l),g=Xx(r,t);return Iee("div",{className:"sf-part-textbox",children:[x,TH(yee,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:ld,tools:g,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:ef,align:a?{value:n.align??s.align,allow:kee,onChange:S=>l({align:S})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:S=>l({case:S||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as NH}from"efficient-easel/draw/client";import{jsx as Uu,Fragment as vee,jsxs as Pee}from"react/jsx-runtime";import{Button as EH,Dialog as Tee}from"efficient-shell/ui";function _H({styleName:e,onCancel:o,onConfirm:t}){return Uu(Tee,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:Pee(vee,{children:[Uu(EH,{variant:"secondary",onClick:o,children:c("Cancel")}),Uu(EH,{variant:"primary",onClick:t,children:c("Update style")})]}),children:Uu("p",{children:c("Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.",{style:e})})})}import{ScreenDocumentContext as zee}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as Uee}from"efficient-easel/draw/client";import{shownTier as Gu}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as jee,viewKeyAt as Gee}from"efficient-easel/draw";import{useSectionOps as Kee}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as qee}from"efficient-easel/screen/lib/host";function Oee(e){let o=new Set([...Object.keys(z(Hk,e)??{}),...z(Wk,e)??[]]);for(let[t,r]of Object.entries(z(zk,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var Eee={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},AH={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},FH="Open",BH={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 ws(e){let o=e?.source?.slug;return po(o)}function Fi(e){return z(Eee,e)??null}function LH(e,o){let t=Fi(e);return t&&Oee(e).includes(o)?t:null}function ju(e){let o=e?.menu?.id;return po(o)}function lS(e){return e?c(e):null}function MH(e){return e.kind==="role"?Im[e.role]:e.kind==="custom"?"Custom":null}function Vee(e){let o=cb(e.role);return o?{kind:"role",role:o}:null}function Yee(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 Ku(e,o,t,r){return Vee(Pr(e,o))??Yee(t,r)}function Xee(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function HH(e,o){return[{value:Bi,label:c("No style"),description:c("Section\u2019s own")},...e.map(t=>({value:t.id,label:t.name,description:t.values.font?sd(t.values.font,o)?.label:void 0}))]}var Bi="";function Zee({face:e,base:o,onPick:t}){let r=bt(),a=e.kind==="role"?e.role:Bi,n=[{label:c("No style"),value:Bi},...fb.map(s=>({label:c(Im[s]),value:s}))];return Z(Fee,{ariaLabel:c("Style"),value:a,options:n,inline:!0,onChange:s=>t(s===Bi?null:s),renderOption:s=>s.value===Bi?xt(Li,{children:[Z("span",{className:"es-fsel-label sf-part-style-keep",children:s.label}),Z("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):Z("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${s.value})`},children:s.label}),renderValue:()=>Z("span",{style:{fontFamily:o?.fontKey?`var(${sd(o.fontKey,r)?.cssVar})`:void 0,fontWeight:o?.weight},children:lS(MH(e))}),valueText:s=>lS(MH(e))??s?.label??""})}var GH=["regionNote","regionStyle"],Jee=Object.keys(nS).filter(e=>!GH.includes(e));function KH(e,o){return!e.some(o)}function Qee({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=xt(Li,{children:[t,r,a]});return xt("div",{className:"sf-part-panel",children:[Z(qu,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function Vu({source:e,slug:o,menuId:t}){let r=qee(),a=BH[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:xt(jH,{children:[c(AH[e]),n?xt(Li,{children:[" ",Z(Hee,{type:"button",variant:"link",size:"sm",onClick:()=>{a.type==="storefront-editor:open-menus"?r.send(a.type,{menuId:t??null}):o&&r.send(a.type,{slug:o})},children:c(FH)})]}):null]})})}var WH=4,eoe=120;function $H(e){return c("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:c(e.label).toLowerCase()})}function zH({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:f}){let x=e.follows;return xt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c(e.label)})}),i("regionNote")&&!f&&Z("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(x),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(x)})}),d?xt(Li,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:$H(e)})]}):a?i("regionStyle")?Z(Li,{children:Z(Ree,{label:c("Style"),icon:Z(Dee,{}),hint:$H(e),children:Z(Zee,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&Z("p",{className:"es-field-hint",children:c("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&i("sourceNote")?Z(Vu,{source:n,slug:s}):null,KH([...GH,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&Z(Ua,{}),Z(qu,{inline:!0,name:c("Page"),onSelect:l})]})}function ooe({onBack:e}){return xt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part is no longer here.")})}),Z("p",{children:c("The section it belonged to has been changed or removed.")}),Z(qu,{inline:!0,name:c("Page"),onSelect:e})]})}function toe({onBack:e,partId:o,why:t}){return xt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part's settings did not open.")})}),Z("p",{children:c("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),Z("p",{className:"sf-note-detail",children:xt("code",{children:[o," \u2014 ",t]})}),Z(qu,{inline:!0,name:c("Page"),onSelect:e})]})}function qH({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=Mee(q=>q),l=Kee(),i=l0(),{partStyle:d}=ls(),{fonts:f,textStyles:x}=Po(),u=bt(),h=_ee(zee),g=!h?.capabilities?.hasSiteTheme,{persist:S}=eT({themeFromDocument:g,tokenRef:h?.tokenRef,siteId:h?.siteId??null}),v=NT({themeFromDocument:g,persist:S}),[E,R]=RH(!1),P=Uee(),I=q=>(Gu(P)!=="tablet"||wH(q))&&Lee(nS[q],P),b=Aee(null),O=a(e),_=n(e),N=O?s.components[O.type]:void 0,{key:w,row:F}=Ht(o),y=N?.fields?.[w],k=F?Bn(y,F):y,T=Wt(e,o),C=O?.props??{},B=rf(k),H=vf(k),K=tv(k),$=O?Fi(O.type):null,le=O?LH(O.type,w):null,pe=F?nf(C[w],F):C[w],J=!!F&&!(Array.isArray(C[w])&&F.index<C[w].length);sS(()=>{s0(document)||b.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[T]);let[xe,ae]=RH(0);sS(()=>ae(0),[T]);let ne=!!O&&!J&&(!_||!k);sS(()=>{if(!ne||xe>=WH)return;let q=setTimeout(()=>ae(je=>je+1),eoe);return()=>clearTimeout(q)},[ne,xe]);let he=ne&&xe<WH,Ze=Ss(e,ar(O?.type,o),"textPart");if(!O||J)return Z(ooe,{onBack:t});let qe=is(O.type),bo=qe?Ws(qe,o):null;if(qe&&bo){let q=d?.partId===T?d:null,je=qe[bo],It=je.writable===!0&&!!_,mr=Yr=>{_&&l.replaceComponent(_.zone,_.index,{...O,props:aa(C,o,"role",Yr)})};if(It&&lw(je)){let Yr=Pr(C,o),KS=Xr=>{if(!_)return;let xm=C;for(let[L4,R4]of Object.entries(Xr))xm=aa(xm,o,L4,R4??null);l.replaceComponent(_.zone,_.index,{...O,props:xm})},A4=Rx(v.saved,v.old),F4=ux(Yr)??"",B4=zu(Yr,q?.base??UH,KS,Gu(P)).filter(Xr=>Xr.key==="fontSize"&&I(Xr.key));return Z(Et,{motion:Ze,body:Z(zH,{region:je,sizePx:q?.base.sizePx??null,face:Ku(C,o,q,f),base:q?.base??null,source:$,slug:ws(C),onBack:t,shows:I,ownLook:_v(Yr),sizedStyle:Z(DH,{style:I("style")?{value:F4,options:HH(A4,u),onChange:Xr=>KS(Xr?{textStyle:Xr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:B4})})})}return Z(Et,{motion:Ze,body:Z(zH,{region:je,sizePx:q?.base.sizePx??null,face:Ku(C,o,q,f),base:q?.base??null,onFollowStyle:It?mr:void 0,source:$,slug:ws(C),onBack:t,shows:I})})}if(!_||!k)return he?Z("div",{className:"sf-note","aria-busy":"true"}):Z(toe,{onBack:t,partId:T,why:_?"no field":"no selector"});let Je=q=>{l.replaceComponent(_.zone,_.index,{...O,props:q})},eo=q=>{if(da(q).hidden!==da(pe).hidden||!B){let je=F?Vk(C,w,F,q):{...C,[w]:q};je&&Je(je);return}Lf({node:O,propKey:o,kind:B,zone:_.zone,index:_.index},da(q).text,l.replaceComponent)},Yo=pe,ie=d?.partId===T?d:null,Oe=ie?.styleOwner,W=Oe?a(Oe.owner):null,Ie=Oe&&W?n(Oe.owner):null,ge=!!(Oe&&W&&Ie),Ue=ge?W.props??{}:C,Bo=ge?q=>l.replaceComponent(Ie.zone,Ie.index,{...W,props:q}):Je,Ve=ge?Oe.kind:ar(O?.type,o),wo=Pr(Ue,Ve),ve=[{partKey:Ve,face:Ku(Ue,Ve,ie,f),sizeGroup:ie?.sizeGroup??null,base:ie?.base??UH,style:wo}],Co=Xee(ve,q=>q.sizeGroup),Os=of(ie?.inks),Xo=(q,je)=>{let It=Ue;for(let mr of ve)It=aa(It,mr.partKey,q,je);Bo(It)},Zi=q=>q?Xo("textStyle",q):Ya({textStyle:null,role:null}),Ya=q=>{let je=Ue;for(let It of ve)for(let[mr,Yr]of Object.entries(q))je=aa(je,It.partKey,mr,Yr??null);Bo(je)},Ft=B==="text"||B==="textarea",{text:Ji,hidden:pr}=da(pe),qr=k?.[jee]?.label??o,Xa=pr?c("Show {label} on the slide",{label:c(qr)}):c("Hide {label} on the slide",{label:c(qr)}),Es=xt("div",{className:"sf-field-head",children:[Z(Nee,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:c(qr)}),Ft&&Z($ee,{content:Xa,children:Z(Wee,{"aria-pressed":pr,"aria-label":Xa,onClick:()=>eo({text:Ji,hidden:!pr}),children:pr?Z(NH,{name:"eye-off",size:14}):Z(NH,{name:"eye",size:14})})})]}),ur=!H&&K,Za=!!B&&(lT(k)||H||pr||!K),_s=Ku(Ue,Ve,ie,f),Qi=_s.kind==="role"?_s.role:null,Ja=ux(wo)??BT(Qi),As=Rx(v.saved,v.old),ed=Object.entries(wo).filter(([q,je])=>q!=="role"&&q!=="textStyle"&&je!==void 0).length,Fs=()=>{let q=Ue;for(let je of ve){let{role:It,textStyle:mr}=je.style;q=gv(q,je.partKey),It&&(q=aa(q,je.partKey,"role",It)),mr&&(q=aa(q,je.partKey,"textStyle",mr))}Bo(q)},Vr=Ja,O4=RT(ve[0].style),E4=Vr?As.find(q=>q.id===Vr)?.name??Vr:"",_4=()=>{R(!1),Vr&&(v.write(DT({saved:v.saved,old:v.old,styleId:Vr,values:LT(ve[0].style)}),!0),Fs())};return xt(Qee,{sectionName:N?.label??O.type,onBack:t,tabs:q=>Z(Et,{motion:Ze,body:q}),textEditor:I("words")?Z("div",{ref:b,className:"sf-part-text",children:Za?Z(OH,{text:Ji,onTextChange:q=>eo(Ft?{text:q,hidden:pr}:q),multiline:af(B),markup:B!=="plainText",styled:!1,style:ve[0].style,base:ve[0].base,setValue:Ya,colors:Os,placeholder:lS(jk(k))??void 0,ariaLabel:c(qr),head:Es,typedOnCanvas:i===T}):B?Ft?Es:null:Z(Bee,{field:k,name:o,value:Yo,onChange:eo,id:`sf-part-${e}-${o}`})}):void 0,children:[le&&I("sourceNote")&&Z(Vu,{source:le,slug:ws(C),menuId:ju(C)}),ur&&Z(DH,{style:I("style")?{value:Ja??"",options:HH(As,u),onChange:q=>Zi(q||null),changed:ed>0,onEditStyles:r,onUpdateStyle:Vr&&O4?()=>R(!0):void 0}:void 0,font:I("font")?{value:wo.font??"",styleValue:sd(ve[0].base.fontKey,u)?.label,options:db(u).map(q=>({label:q.label,value:q.key})),onChange:q=>Xo("font",q||null)}:void 0,italic:I("italic")?{value:wo.italic,styleValue:aoe(x,Ja),onChange:q=>Xo("italic",q??null)}:void 0,cells:zu(ve[0].style,ve[0].base,Ya,Gu(P)).filter(q=>I(q.key)),align:I("align")?roe(wo,ve[0].base.align,Gu(P),Xo):void 0,letterCase:I("letterCase")?{value:wo.case??"",styleValue:ve[0].base.case,onChange:q=>Xo("case",q||null)}:void 0}),E&&Vr&&Z(_H,{styleName:E4,onCancel:()=>R(!1),onConfirm:_4}),ur&&Co===null&&I("fixedSizeHint")&&Z(jH,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),KH(Jee,q=>I(q)&&(q==="words"||(q==="sourceNote"?!!le:q==="fixedSizeHint"?ur&&Co===null:ur)))&&Z(Ua,{})]})}function roe(e,o,t,r){let a=Gee("align",t),n=Sv(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function aoe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var UH={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as _t,jsxs as uS,Fragment as coe}from"react/jsx-runtime";import{useCallback as poe,useRef as uoe,useState as Ni}from"react";import{InspectorIconButton as moe}from"efficient-easel/chrome";import{useEasel as xoe}from"efficient-easel/easel";import{LoadingSpinner as hoe,PopupMenu as Ioe,PopupMenuItem as goe,PopupMenuLabel as mS}from"efficient-shell/ui";import{CopyToPageIcon as yoe}from"efficient-easel/icons";import{useEaselSession as Soe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as boe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as woe}from"efficient-easel/draw";import{newId as loe}from"efficient-easel/data";import{isBackendError as Cs}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as r2}from"efficient-easel/screen/lib/session";var Yu=NP(),iS=Yu.set;function Xu(e,o){iS(e,o)}function Zu(e,o){let t=Yu.get(e);iS(e,o??(t==="live"?"changed":t))}function Ju(e,o){iS(e,o??"live")}function VH(e){return Yu.get(e)}function YH(e){return Yu.use(e)}function XH(e,o){return e==="live"&&o?"changed":e}function dS({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?c("Changes not live yet"):e==="never"?c("Never published"):r?c("Header and footer not live yet"):e==="live"?c("Everything is live"):null;return{label:c("Publish"),tooltip:e==="never"?c("Put this page on your site"):c("Put your changes on your site"),status:s,quiet:n?{label:c("Published"),reason:c("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function ZH(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var JH="SharedSection",noe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Ri=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Di=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function QH(e){if(e?.type!==JH)return null;let o=e.props?.section;return typeof o=="string"&&noe.test(o)?o.toLowerCase():null}function e2(e){let o=[];for(let t of Ri(e)){let r=QH(t),a=Di(t);r&&a&&o.push({refId:a,section:r})}return o}function Qu(e){let o=Ri(e)[0];return o&&typeof o=="object"&&Di(o)?o:null}function soe(e,o){return{type:JH,props:{id:e,section:o}}}function o2(e,o){let t=new Map,r=new Set,a=!1,n=Ri(e).map(s=>{let l=QH(s),i=Di(s);if(!l||!i||r.has(l))return s;let d=Qu(o.get(l)),f=Di(d??void 0);return!d||!f||t.has(f)?s:(r.add(l),t.set(f,{section:l,refId:i,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function t2(e,o,t){let r=new Map,a=!1,n=Ri(e).map(s=>{let l=Di(s),i=l?o.get(l):void 0,d=i?t.get(i.section):void 0;if(!i||!d||r.has(i.section))return s;let f=Ri(d).slice(1),x=Qu(d);return r.set(i.section,x===s?d:{...d,content:[s,...f]}),a=!0,i.reference??soe(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function pS(e){return!!(e?.publish&&e.liveState)}function ioe(e,o){if(!pS(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 doe(e,o){return async(t,r)=>{try{await QP()}catch(a){throw new Error(c("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?Cf({state:"live",changes:[]}):ia(0),{version:r??null}}}function cS(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(Xu(n.id,n.live),jP(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(Zu(a,i.live),GP(a,i.videoFrames),ia(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:pS(t)?doe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(Ju(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 foe(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,f=new Map,x=new Map,u={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,g=()=>{if(!n)return!1;let w=VH(n.id);return w==="changed"||w==="never"||w===void 0&&l},S=w=>{u={...u,...w,docId:n?.id??null,unpublished:g(),sections:[...f.values()],rootProps:$P(n?.layout)};for(let F of h)F()},v=(w,F,y)=>{F?f.set(w,{section:w,title:i.get(w)?.title??"",problem:F,holder:y}):f.delete(w)},E=w=>w&&typeof w=="object"&&!Array.isArray(w)?w:{},R=w=>s.has(w),P=()=>new Map([...i].map(([w,F])=>[w,F.layout])),I=()=>loe("SharedSection"),b=(w,F,y,k)=>{let T=E(F);i.set(w,{layout:T,version:y,savedJson:JSON.stringify(T),title:k})},O={state:()=>u,subscribe:w=>(h.add(w),()=>{h.delete(w)})},_={sectionOf:w=>d.get(w)?.section??null,heldElsewhere:w=>{let F=d.get(w)?.section;return!!(F&&f.get(F)?.problem==="lock")},adopt:(w,F)=>{b(F.id,F.layout,F.layout_updated_at,F.title),d.set(w,{section:F.id,refId:I()}),x.set(F.id,F.used_on),S({})},place:w=>{if([...d.values()].some(k=>k.section===w.id))return null;let F=Qu(E(w.layout)),y=typeof F?.props?.id=="string"?F.props.id:null;return!F||!y||!F.type?null:(b(w.id,w.layout,w.layout_updated_at,w.title),d.set(y,{section:w.id,refId:I()}),x.set(w.id,w.used_on),F)},usedOn:w=>x.get(w)??null,learn:w=>{for(let F of w){x.set(F.id,F.used_on);let y=i.get(F.id);y&&(y.title=F.title);let k=f.get(F.id);k&&f.set(F.id,{...k,title:F.title})}S({})}},N=async(w,F)=>{for(let[y,k]of w){let T=i.get(y),C=JSON.stringify(k);if(!(!T||C===T.savedJson||f.get(y)?.problem==="lock"))try{let B=await e.save(y,{layout:k},{version:T.version,clientId:F??""});Zu(y,B.live),T.layout=k,T.version=B.version,T.savedJson=C,v(y,null)}catch(B){Cs(B,"changed-elsewhere")?v(y,"conflict"):Cs(B,"lock-taken")?v(y,"lock",B.holder??void 0):v(y,"save")}}w.size&&ia(),S({})};return{resolve:async w=>{if(Lx(w===Tr?null:O),vx(w===Tr?null:_),i=new Map,d=new Map,f=new Map,x=new Map,w===Tr)return t.resolve(w);let F=!1,[y,k]=await Promise.all([t.resolve(w),e.load({slug:Tr,...o}).catch(()=>(F=!0,null))]);if(k&&!sT(y?.layout)){Xu(k.id,k.live);let $=E(k.layout);n={id:k.id,layout:$,version:k.version,savedJson:""}}else n=null;if(l=!1,!y)return S({conflict:null,saveFailed:!1,loadFailed:F}),y;let T=E(y.layout),C=e2(T),B=await Promise.all(C.map($=>e.load({id:$.section,...o}).catch(()=>null)));C.forEach(($,le)=>{let pe=B[le];pe?(Xu(pe.id,pe.live),b($.section,pe.layout,pe.version,"")):(i.delete($.section),f.set($.section,{section:$.section,title:"",problem:"load"}))});let H=o2(T,P());if(d=H.held,!n)return d.size&&s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:F}),d.size?{...y,layout:H.working}:y;let K=zP(H.working,n.layout);return n.savedJson=JSON.stringify(kx(K,n.layout).chrome),s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:!1}),{...y,layout:K}},saveLayout:async(w,F,y,k)=>{if(!R(w))return t.saveLayout(w,F,y,k);let T=n,C=T?kx(F,T.layout):{page:F,chrome:null},B=t2(C.page,d,P()),H=await t.saveLayout(w,B.page,y,k);if(await N(B.docs,k),!T)return H;let K=JSON.stringify(C.chrome);if(!C.chrome||K===T.savedJson||u.lockHolder)return H;try{let $=await e.save(T.id,{layout:C.chrome},{version:T.version,clientId:k??""});Zu(T.id,$.live),ia(),T.layout=C.chrome,T.version=$.version,T.savedJson=K,l=!0,S({conflict:null,saveFailed:!1})}catch($){Cs($,"changed-elsewhere")?S({conflict:$.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Cs($,"lock-taken")?S({lockHolder:$.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):S({saveFailed:!0})}return H},publish:t.publish?async(w,F)=>{let y=await t.publish(w,F),k=n;if(k&&R(w)&&!a&&e.publish&&g()&&!u.lockHolder){let T=await e.publish(k.id,k.version?{version:k.version}:void 0);Ju(k.id,T.live),T.version!==null&&(k.version=T.version),l=!1,S({})}if(R(w)&&!a&&e.publish)for(let[T,C]of i){if(f.get(T)?.problem==="lock")continue;let B=await e.publish(T,C.version?{version:C.version}:void 0);Ju(T,B.live),B.version!==null&&(C.version=B.version)}return y}:void 0,lock:r?{claim:async(w,F,y)=>{let k=await r.claim(w,F,y);if(!R(w))return k;let T=n;if(T)try{await r.claim(T.id,F,!1),u.lockHolder&&S({lockHolder:null})}catch(C){Cs(C,"lock-taken")&&S({lockHolder:C.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let C of i.keys())try{await r.claim(C,F,!1),f.get(C)?.problem==="lock"&&v(C,null)}catch(B){Cs(B,"lock-taken")&&v(C,"lock",B.holder??void 0)}return i.size&&S({}),k},release:async(w,F)=>{if(await r.release(w,F),!R(w))return;let y=n;y&&!u.lockHolder&&await r.release(y.id,F).catch(()=>{});for(let k of i.keys())f.get(k)?.problem!=="lock"&&await r.release(k,F).catch(()=>{})}}:void 0,pinnedChrome:O}}function em(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:qT(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 JMe(e,o,t){return e.update(o,VT(t))}function QMe(e,o=_o(),t=kg(),r={}){let a=r2(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,i=a&&t.commerce&&t.service,d=!!r.editsPinnedInPlace&&i,f=pS(o.site)?o.site:void 0,x=em(o.pages),u=cS(x,e,f),h=d?foe(x,n,u,o.lock,!!f):null;return{capabilities:{canPublish:!!f||!!o.pages.publish,hasSiteSettings:a,hasSiteTheme:!!o.theme,placeholderFrames:!1,mediaEditing:!0,pageCreationInAdminForm:!o.pages.create,canDeletePagesInline:!!o.pages.remove,hasEditLock:!!o.lock,hasEditGuard:!0,hasPinnedChrome:i,editsPinnedInPlace:d,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...u,...a2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:ioe(f,n),updateSite:s&&l?g=>l(g,n):void 0,previewHref:o.preview?g=>o.preview.href(g):void 0}}function eHe(e,o=_o(),t=kg()){let r=r2(o),a=o.templates,n=a?em(a.pages(e)):{list:()=>Promise.reject(new Error(fS)),load:()=>Promise.reject(new Error(fS)),save:()=>Promise.reject(new Error(fS))};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},...cS(n,void 0),...a2(cS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function a2(e){return{resolve:o=>(Lx(null),vx(null),e(o))}}var fS="This editor's backend has no website templates.";function Coe(e,o,t){let r=boe(e,void 0,o);return t?.(r)??r}function n2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Ni(!1),[i,d]=Ni(null),f=Soe(),x=xoe(_=>_.config.components),[u,h]=Ni(!1),[g,S]=Ni(null),v=uoe(null),[E,R]=Ni(null),P=poe(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{d(await _o(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),I=()=>{if(s){l(!1);return}let _=v.current?.getBoundingClientRect();_&&R({top:_.bottom+6,right:Math.max(8,window.innerWidth-_.right)}),d(null),h(!1),P(),l(!0)},b=(i??[]).filter(_=>_.slug!==o),O=async _=>{if(g)return;S(_.slug);let N=Coe(e,x,f.documentHooks?.storedNode),w=await a(()=>koe(_o(f).pages,_,N));S(null),l(!1),n?.(w?c("Duplicated to \u201C{name}\u201D",{name:_.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),w?"success":"error")};return uS(coe,{children:[_t("span",{"data-menu-toggle":!0,style:{display:"contents"},children:_t(moe,{buttonRef:v,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:I,children:_t(yoe,{size:15})})}),s&&E&&_t(Ioe,{portal:!0,style:{top:E.top,right:E.right},onClose:()=>l(!1),children:uS("div",{role:"menu","aria-label":c("Duplicate to page"),children:[_t(mS,{children:c("Duplicate to page")}),u?_t(mS,{children:c("Couldn\u2019t load pages")}):i===null?_t(hoe,{label:c("Loading\u2026")}):b.length===0?_t(mS,{children:c("No other pages")}):b.map(_=>uS(goe,{role:"menuitem",disabled:g!==null,onClick:()=>{O(_)},children:[_t("span",{className:"min-w-0 flex-1 truncate",children:_.label}),g===_.slug?_t("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):_.draft&&_t("span",{className:"shrink-0 text-xs",children:c("draft")})]},_.id))]})})]})}async function koe(e,o,t){let r=em(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===woe);s.splice(l===-1?s.length:l,0,MP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as Joe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Qoe}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as T2e,isSelectionMode as yS}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as ete}from"efficient-easel/draw/client";import{jsx as Mi,jsxs as voe}from"react/jsx-runtime";import{SettingsDrill as Poe}from"efficient-easel/panel";import{UiIcon as Toe}from"efficient-easel/draw/client";var Ooe="Not shown on the page";function Eoe({part:e,onOpen:o}){return Mi(Poe,{name:c(e.label),preview:e.offPage?c(Ooe):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?Mi("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:Mi(Toe,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function xS(e){return e.filter(o=>!o.identifier)}function s2({parts:e,onOpen:o,heading:t=!0}){let r=xS(e);return r.length?voe("div",{className:"sf-entries",children:[t?Mi("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>Mi(Eoe,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as ote,ROOT_ZONE as y2}from"efficient-easel/draw";import{newId as _oe}from"efficient-easel/data";import{HEADER_TYPE as Uo,FOOTER_TYPE as Re,newNodeId as Aoe}from"efficient-easel/draw";function om(){return{type:Uo,props:{id:Aoe(Uo)}}}var l2=[{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"}],Foe=l2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),Boe="FooterGroup",i2="blocks";function d2(e){return e===Re?l2:e===Boe?Foe:null}function tm(){let e=(o,t)=>({type:o,props:{id:_oe(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...$v}),e("FooterPayment",{...df})]}function hS(e){switch(e?.type){case No:case to:return c("On every page");case Uo:case Re:return c("On every page \xB7 old style");default:return null}}var f2=()=>null,c2=()=>c("Changed on every page");function rm(e,o){let t=DC(e,o);if(t)return t;let r=Qv(e,o);if(!r)return null;let a=r.group===No;return r.why==="type"?a?c("The header cannot take another one of these"):c("The footer cannot take another one of these"):a?c("The header holds at most 3 sections"):c("The footer holds at most 6 sections")}import{jsx as am,Fragment as Roe,jsxs as Doe}from"react/jsx-runtime";import{useState as Noe}from"react";import{createNode as Moe,newId as Hoe}from"efficient-easel/data";import{useEasel as Woe}from"efficient-easel/easel";import{Banner as $oe,Button as IS}from"efficient-shell/ui";import{useScreenDocument as zoe}from"efficient-easel/screen/components/ScreenDocumentContext";var Loe=["FooterPayment"];function p2(e,o){let{id:t,...r}=e.props;for(let a of Bt(e))r[a]=r[a].map(n=>p2(n,o));return o(e.type,r)}var Hi=(e,o)=>{if(!Loe.includes(e.type))return null;jp();let t=Lr(e.type);return t?Pa({type:e.type,props:{...e.props}},t).nodes.map(r=>p2(r,o)):null};function u2(){let{appState:e,dispatch:o,config:t}=Woe(f=>f),{readOnly:r}=zoe(),[a,n]=Noe(!1),s=e.data.content;if(r||s.some(f=>f.type===to))return null;let l=s.find(f=>f.type===Re)??null,i=(f,x)=>Moe(t,f,x),d=()=>{let f=ni(l,i,Hoe(to),Hi);o({type:"setData",data:x=>({...x,content:[...cf(x.content,f)]}),recordHistory:!0}),n(!1)};return am($oe,{tone:"info",title:c("This footer uses the old layout"),action:a?Doe(Roe,{children:[am(IS,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),am(IS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):am(IS,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:c("Switch to Box footer")}),children:c("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}import{jsx as gS,jsxs as Uoe}from"react/jsx-runtime";import{InspectorUpLevel as m2}from"efficient-easel/chrome";function x2({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Mu(),n=Ss(e,o,"picture");return Uoe("div",{children:[o!=="media"?gS(m2,{inline:!0,name:c(ir.media),onSelect:()=>a(wa(e,"media"))}):gS(m2,{inline:!0,name:c(t),onSelect:r}),gS(Et,{part:o,motion:n,itemWord:c(ir[o])})]})}import{HintsToggle as tte,SettingsSwitch as rte,hintsFoldClass as ate}from"efficient-easel/panel";import{useHints as nte}from"efficient-easel/screen/lib/hints";var b2={kind:"header"},bS={kind:"website"},w2={kind:"website",tab:Af,revealPageGroup:!0},C2={kind:"chat"},k2={kind:"social"},Wi="Part";function ste(e){return c("Part of {name}",{name:c(e)})}function lte(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?ste(r.label):c(Wi)}}function ite(e){switch(e){case"Header":return{title:c("Header settings belong to a website."),own:c("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:c("Appearance settings belong to a website."),own:c("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:c("Live chat settings belong to a website."),own:c("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:c("Social link settings belong to a website."),own:c("Each website created from this template sets its own social link afterwards.")};default:return{title:c("{what} settings belong to a website.",{what:e}),own:c("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function v2({what:e}){let o=ite(e);return Kr("div",{className:"sf-note",children:[we("p",{children:we("strong",{children:o.title})}),Kr("p",{children:[c("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function SS(e){let o=$l[e];return{name:ir[e],kindLabel:Wi,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=S2({name:c($c(e,a.props)),tier:"part",of:c(a.label)},{partOf:({name:s})=>c("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?we(x2,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var dte={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(Ff,{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(iH,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>we(mH,{unavailable:we(v2,{what:"Social link"})})},ticker:{name:Ra,kindLabel:Wi,icon:"ticker",head:(e,o)=>e.kind==="ticker"?lte(o,e.heroId,c(Ra)):null,render:e=>we(kH,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:SS("media"),heroImage:SS("image"),heroImage2:SS("image2"),part:{name:Wi,kindLabel:Wi,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}=Ht(e.propKey),n=a?Bn(t.fields[r],a):t.fields[r],s=is(t.type),l=s?Ws(s,e.propKey):null,i=s&&l?s[l].label:kO[e.propKey],d=i?c(i):Xk(c(lf(rv(n??{},r))),a),f=S2({name:d,tier:"part",of:c(t.label)},{partOf:({name:x})=>c("Part of {name}",{name:x})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?we(qH,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},fte=new Set(["header","website","chat"]);function cte(e,o){if(e==="selection")return null;let t=dte[e];return fte.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>we(v2,{what:t.name})}:t}function P2({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:l,tokenRef:i,notifyParent:d,currentSlug:f,siteId:x,runAuthed:u,readOnly:h,navigate:g}=Joe(),{rows:S}=ul(),v=S?.find(Ie=>Ie.slug===f)??null,E=Goe(),R=Object.keys(E.fields).some(Ie=>!Ie.startsWith("_")&&!Dx.includes(Ie)),{websiteName:P}=Po(),I=Qoe({readOnly:h}),{select:b}=ete(),{selectedItem:O,getItemById:_,getSelectorForId:N,config:w,appState:F}=joe(Ie=>Ie),y=Xoe(w,O?{type:O.type,props:O.props}:null),k=O?sv(y??w.components[O.type]?.fields,O.props):[],T=Ie=>w.components[Ie]?.label??Ie,C=O?N(O.props.id):void 0,B=cte(e.kind,l),H=Zoe(),K={capabilities:l,tokenRef:i,hostPanels:H.chrome?.panels,describeNode:Ie=>{let ge=_(Ie);if(!ge)return null;let Ue=w.components[ge.type];return{type:ge.type,label:Ue?.label??ge.type,fields:Ue?.fields??{},props:ge.props??{}}},siteId:x,websiteName:P??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},$=B?.head?.(e,K)??null,le=tH({kind:v?.kind,pageName:v?.label}),pe=$?.name??(B?c(B.name):O?c(T(O.type)):le.name),J=$?.kindLabel??(B?c(B.kindLabel):O?C&&C.zone!==y2?c("Block"):c("Section"):le.kindLabel),xe=B?B.icon:O?O.type:"page",ae=yS(e)&&O?Fi(O.type):null,ne=!!O&&!!C&&C.zone===y2&&O.type!==Re&&O.type!==ote,he=rm(F?.data,O),Ze=()=>{he||C&&I.duplicateComponent(C.zone,C.index)},qe=()=>{C&&(I.removeComponent(C.zone,C.index),I.select(null))},bo=O?w.components[O.type]?.defaultProps?.previewHover:void 0,Je=yS(e)&&!!O&&!!C&&bo!==void 0,eo=Je&&O.props.previewHover===!0,Yo=()=>{!O||!C||I.replaceComponent(C.zone,C.index,{...O,props:{...O.props,previewHover:!eo}})},{shown:ie,setShown:Oe}=nte(),W=!!(B||O||R);return Kr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${ate(ie)}`.trim(),children:[we(qoe,{icon:we($a,{type:xe,size:15}),name:pe,kind:J,actions:!a&&yS(e)&&O&&O.type!==Re?Kr(h2,{children:[we(I2,{label:c("Duplicate section"),title:he??void 0,disabled:he!==null,onClick:Ze,children:we(Voe,{size:15})}),ne&&l.hasSiteSettings&&we(n2,{node:O,currentSlug:f,siteId:x??void 0,tokenRef:i,runAuthed:u,onNotify:n}),we(I2,{label:c("Remove section"),danger:!0,onClick:qe,children:we(Yoe,{size:15})}),s?we(g2,{side:"right",onHide:s,divider:!0}):null]}):s?we(g2,{side:"right",onHide:s}):void 0}),Je&&Kr("div",{className:"sf-preview-pin",children:[Kr("div",{className:"sf-preview-pin-text",children:[we("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),we("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),we(rte,{checked:eo,onChange:Yo,ariaLabel:c("Preview hover state")})]}),Kr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[B?B.render(e,K):O?Kr(h2,{children:[O.type===Re&&l.hasSiteSettings&&we(u2,{}),we(JP,{children:we(Et,{entries:we(s2,{parts:k,heading:!1,onOpen:Ie=>b(Wt(O.props.id,Ie))}),entryCount:xS(k).length,itemWord:pe})}),ae&&we(Vu,{source:ae,slug:ws(O?.props),menuId:ju(O?.props)})]}):R?we(Et,{omit:Dx}):we(Koe,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),W&&we(tte,{shown:ie,onChange:Oe,label:c("Show hints")})]})]})}import{jsx as p,jsxs as A,Fragment as A2}from"react/jsx-runtime";var ao={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)"},wS="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function j({w:e,h:o,tone:t="dark",r=2,style:a}){return p("div",{style:{width:e,height:o,borderRadius:r,background:ao[t],flex:"none",...a}})}var pte={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},V={position:"absolute",inset:0},m={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},Fe=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function cr({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return A("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[p("span",{style:r("8% 26% 30% 6%",m.mark1)}),p("span",{style:r("26% 6% 8% 30%",m.mark2,"multiply")})]})}function sm({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:m.muted},children:e})}function T2({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return A(A2,{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 CS({name:e,price:o}){return A("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...Fe(m.paper,m.paper2,150)},children:p(cr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o})]})}function fr({k:e,v:o,ok:t}){return A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${m.rule}`,fontSize:"3.98cqw",color:m.muted},children:[p("span",{children:e}),A("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("b",{style:{color:m.text,fontWeight:700},children:o}),t&&p("span",{style:{color:m.rust,fontWeight:700},children:"\u2713"})]})]})}function ke({title:e,children:o}){return A("div",{style:{...V,background:m.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(sm,{children:e}),o]})}function O2({size:e=14}){return p("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${m.mark1},${m.mark2})`}})}function kS({filled:e=5,size:o=6}){return A("span",{style:{fontSize:o,letterSpacing:"0.06em",color:m.rust,lineHeight:1},children:["\u2605".repeat(e),p("span",{style:{color:m.mark1},children:"\u2605".repeat(5-e)})]})}function $i({n:e,label:o,tone:t=m.text}){return A("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 Qe({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:m.muted,width:o,display:"block"},children:e})}function nm({label:e,w:o="100%",filled:t}){return A("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:e}),p("span",{style:{height:9,borderRadius:3,border:`1px solid ${m.rule}`,background:t?m.paper:m.card}})]})}function E2({children:e}){return p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.text,color:m.onInk},children:e})}var ute={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])=>A("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...Fe(m.paper,m.paper2,150)},children:p(cr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("b",{style:{flex:1,fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:m.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:A("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[A("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>A("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:m.text,color:m.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,p("span",{style:{opacity:.6},children:"\u2715"})]},e)),p("span",{style:{fontSize:"3.65cqw",color:m.rust,fontWeight:700},children:"Clear"})]}),A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"128 results"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted,border:`1px solid ${m.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:A("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...Fe(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:m.onInk},children:"Will it fit your rig?"}),A("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>A("span",{style:{flex:1,fontSize:"3.65cqw",color:m.text,background:m.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",p("span",{style:{color:m.muted},children:"\u25BE"})]},e)),p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:m.warm,color:m.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:p(ke,{title:"Tyres that suit",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>A("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:m.ink},children:p("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${m.mark2}`,boxSizing:"border-box"}})}),p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:m.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),p("span",{style:{fontSize:"3.32cqw",color:m.muted},children:o})]},e))})}),tyresizes:p(ke,{title:"Available sizes",children:p("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>p("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?m.rust:m.rule}`,color:o===0?m.rust:m.text,background:o===0?m.paper:m.card},children:e},e))})}),tyrefitment:A(ke,{title:"Will it fit your car?",children:[p("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>A("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:m.muted,background:m.paper,border:`1px solid ${m.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",p("span",{style:{color:m.muted},children:"\u25BE"})]},e))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${m.rule}`,paddingTop:3},children:[p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?m.warm:m.muted},children:o})]},e))})]}),eutyrelabel:A("div",{style:{...V,background:m.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>A("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?m.rust:m.mark1}}),p("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?m.rust:m.muted},children:e})]},e))}),A("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[p("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:m.text},children:"72"}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:m.muted},children:"dB"})]})]}),bundleoffer:A("div",{style:{...V,background:m.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(sm,{children:"Buy it with"}),A("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>p("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:m.card},children:p(cr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:m.muted},children:"+"}),A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[p("span",{style:{fontSize:"3.65cqw",color:m.muted,textDecoration:"line-through"},children:"$1,024"}),p("b",{style:{fontSize:"6.02cqw",color:m.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...Fe(m.ink,m.ink2)},children:[A("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:m.warm,fontWeight:700},children:"READY TO ORDER"}),p("b",{style:{fontSize:"6.63cqw",color:m.onInk,lineHeight:1},children:"$1,956"}),p("span",{style:{fontSize:"3.65cqw",color:m.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:m.warm,color:m.ink,flex:"none"},children:"CHECKOUT"})]}),contact:p(ke,{title:"Who do you need?",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>A("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p("b",{style:{flex:1,fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o}),p("span",{style:{fontSize:"4.64cqw",color:m.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:p(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>A("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.32cqw",color:m.muted},children:o}),p("span",{style:{fontSize:"3.32cqw",color:m.rust,fontWeight:700},children:t})]},e))})}),citypictures:p(ke,{title:"Our studios",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:m.muted},children:"A \xB7 AMERICAS"}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>A("div",{style:{position:"relative",minHeight:0},children:[p(j,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${m.scrim} 45%),${Fe(m.ink,m.inkSoft2).background}`}}),p("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:m.onInk},children:e})]},e))})]})}),citymaps:p(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>A("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[p(j,{r:4,style:{...V,background:"none",border:`1px solid ${m.rule}`}}),p("b",{style:{position:"relative",fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{position:"relative",fontSize:"3.32cqw",color:m.muted},children:o}),A("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(j,{r:3,style:{...V,...Fe(m.paper,m.paper2,150)}}),p(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:m.mark1,opacity:.75}}),p(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:m.rust}})]})]},e))})}),form:p(ke,{title:"Send us a message",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[A("div",{style:{display:"flex",gap:5},children:[p(nm,{label:"Name"}),p(nm,{label:"Email"})]}),p(nm,{label:"Message",filled:!0}),p(E2,{children:"SEND"})]})}),appointmentbooking:p(ke,{title:"Book a fitting",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?m.text:m.paper,color:o===2?m.onInk:m.muted},children:e},e))}),p("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?m.rust:m.rule}`,color:o===1?m.rust:m.muted,background:o===3?m.paper:m.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:p(ke,{title:"Leave a review",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(kS,{filled:4,size:14}),p(nm,{label:"Your review",filled:!0}),p(E2,{children:"POST"})]})}),submitbuild:p(ke,{title:"Show us your build",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${m.mark1}`,borderRadius:5,background:m.paper},children:[p("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:m.rust,fontWeight:300},children:"+"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"Drop a photo of your rig"})]})}),masthead:A("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[p("span",{style:{height:1.5,background:m.text}}),p("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:m.text,lineHeight:1},children:"THE TRACK"}),A("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:m.muted},children:[p("span",{children:"Issue 14"}),p("span",{children:"Spring 2026"})]}),p("span",{style:{height:1,background:m.rule}})]}),featuredcover:A("div",{style:{...V,overflow:"hidden",...Fe(m.ink,m.inkSoft2)},children:[p(cr,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${m.scrim},transparent 62%)`}}),A("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.warm},children:"FEATURE"}),p("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:m.onInk},children:"Four days on the Madigan Line"})]})]}),longread:A("div",{style:{...V,background:m.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:m.rust},children:"12 MIN READ"}),p("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:m.text},children:"What breaks first, and why"}),p(Qe,{children:"Every failure starts in the same place:"}),p(Qe,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:A("div",{style:{...V,background:m.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[p("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:m.text},children:"Why offset beats width"}),p(Qe,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(Qe,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(Qe,{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])=>A("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:3,height:12,borderRadius:2,background:m.rust,flex:"none"}}),p("b",{style:{flex:1,fontSize:"4.64cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:o})]},e))})}),events:p(ke,{title:"Latest posts",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[m.inkSoft,m.inkSoft2,"Madigan Line, four days"],[m.rust,m.warm,"Why offset beats width"]].map(([e,o,t])=>A("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...Fe(e,o,150)}}),A("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:t}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:A("div",{style:{...V,background:m.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.muted},children:"POLICY"}),p("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:m.text,lineHeight:1.1},children:"Returns & refunds"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),p("span",{style:{height:2,width:26,background:m.rust,borderRadius:1}})]}),docbody:p("div",{style:{...V,background:m.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>A("div",{style:{display:"flex",gap:5},children:[p("b",{style:{fontSize:"3.98cqw",color:m.rust,flex:"none"},children:e}),p(Qe,{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])=>A("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"5.31cqw",color:m.text,lineHeight:1},children:e}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:o})]},o))})}),doctabs:A("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?m.text:m.muted,background:o===0?m.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?m.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),p("span",{style:{height:1,background:m.rule}}),A("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(Qe,{children:"Unfitted wheels come back within 30 days, no questions."}),p(Qe,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:A("div",{style:{...V,background:m.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[p("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:m.text},children:"The right wheel is the boring one."}),A("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Qe,{children:"Forged, correctly offset, rated for what you actually"}),p(Qe,{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=>A("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{fontSize:"4.64cqw",color:m.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),p("span",{style:{fontSize:"4.31cqw",color:m.text},children:e})]},e))})}),statsparagraph:A("div",{style:{...V,background:m.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[A("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p($i,{n:"27k",label:"Rigs"}),p($i,{n:"4.9",label:"Rating"})]}),A("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Qe,{children:"Twelve years of fitting the same three questions, and the"}),p(Qe,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:A(ke,{title:"Load vs weight",children:[p("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>p("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?m.rust:m.mark1}},o))}),p("span",{style:{height:1,background:m.rule,marginTop:-4}})]}),mockup:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...Fe(m.inkSoft,m.ink)},children:A("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:m.card,boxShadow:`0 6px 14px ${m.scrim}`},children:[p("div",{style:{height:9,background:m.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>p("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:m.mark1}},e))}),A("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{height:4,width:"56%",borderRadius:1,background:m.mark2}}),p("span",{style:{height:14,borderRadius:2,...Fe(m.paper,m.paper2,150)}}),p("span",{style:{height:3,width:"38%",borderRadius:1,background:m.rust}})]})]})}),manifesto:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...Fe(m.ink,m.ink2)},children:A("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:m.onInk},children:["We build for the ",p("span",{style:{color:m.warm},children:"last"})," ten percent of the track."]})}),timeline:p(ke,{title:"Our story",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>A("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&p("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:m.rule}}),p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:m.rust,zIndex:1}}),A("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:m.text},children:e}),p(Qe,{children:o})]})]},e))})}),timelinetrack:A("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...Fe(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"Milestones"}),A("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[p("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:m.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>A("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[p("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?m.warm:m.mark1}}),p("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?m.warm:m.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:A("div",{style:{...V,overflow:"hidden",...Fe(m.paper,m.paper2,150)},children:[p("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:m.mark1,opacity:.75}}),p("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:m.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>p("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:m.rust}},e)),p("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:m.text},children:"3 fitting bays"})]}),banner:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:m.rust},children:[A("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("b",{style:{fontSize:"6.02cqw",color:m.onInk},children:"End of season \xB7 20% off"}),p("span",{style:{fontSize:"3.98cqw",color:m.onInk,opacity:.8},children:"Fitted free, this month only."})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.onInk,color:m.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:A("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[p("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:m.text},children:"Not sure what fits?"}),A("div",{style:{display:"flex",gap:5},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.text,color:m.onInk},children:"FIND MY FIT"}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${m.text}`,color:m.text},children:"CALL US"})]})]}),ticker:p("div",{style:{...V,overflow:"hidden",background:m.ink,display:"flex",alignItems:"center"},children:p("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:m.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:A("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...Fe(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:m.muted},children:"Back online in"}),p("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>A("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&p("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:m.warm},children:":"}),A("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[p("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:m.onInk,fontVariantNumeric:"tabular-nums"},children:e}),p("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:m.onInk},children:o})]})]},o))})]}),breadcrumb:p("div",{style:{...V,background:m.card,display:"flex",alignItems:"center",padding:"0 13px"},children:A("span",{style:{fontSize:"4.64cqw",color:m.muted},children:["Home ",p("span",{style:{opacity:.5},children:"/"})," Wheels ",p("span",{style:{opacity:.5},children:"/"})," ",p("span",{style:{color:m.text,fontWeight:700},children:"20 inch"})]})}),categorybar:A("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?m.text:m.paper,color:o===0?m.onInk:m.muted},children:e},e))}),p("span",{style:{height:1,background:m.rule}})]}),intro:A("div",{style:{...V,overflow:"hidden",background:m.card},children:[p("div",{style:{position:"absolute",inset:0,...Fe(m.ink,m.inkSoft2)}}),p(cr,{size:64,style:{right:8,top:6}}),A("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:m.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${m.scrim}`},children:[p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:m.text},children:"Since 1998"}),p(Qe,{children:"One shed, one lathe, one idea."}),p(Qe,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:p(ke,{title:"Photo gallery",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.inkSoft,m.ink],[m.paper2,m.mark2],[m.ink,m.inkSoft2],[m.warm,m.paper2],[m.mark2,m.inkSoft]].map(([e,o],t)=>p("div",{style:{borderRadius:3,...Fe(e,o,140+t*22)}},t))})}),gallery:A(ke,{title:"Gallery",children:[p("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?m.text:m.muted,borderBottom:`1.5px solid ${o===0?m.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.ink,m.inkSoft],[m.paper2,m.mark2]].map(([e,o],t)=>p("div",{style:{borderRadius:3,...Fe(e,o,150+t*20)}},t))})]}),ordersummary:A(ke,{title:"Order summary",children:[A("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",...Fe(m.paper,m.paper2,150)},children:p(cr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),A("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),A("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(fr,{k:"Subtotal",v:"$1,956"}),p(fr,{k:"Fitting",v:"Free"}),A("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[p("b",{style:{color:m.text},children:"Total"}),p("b",{style:{color:m.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:p(ke,{title:"Delivery",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>A("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?m.rust:m.rule}`,background:r?m.paper:m.card},children:[p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?m.rust:m.mark1}`,background:r?m.rust:"transparent"}}),p("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:m.text},children:t})]},e))})}),paymentbadges:A("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(sm,{children:"Ways to pay"}),p("div",{style:{display:"flex",gap:5},children:[["VISA",m.ink],["MC",m.rust],["AMEX",m.inkSoft],["PayPal",m.ink2]].map(([e,o])=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:m.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:A("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...Fe(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"By the numbers"}),A("div",{style:{display:"flex",gap:8},children:[p($i,{n:"27k",label:"Rigs fitted",tone:m.onInk}),p($i,{n:"12",label:"Years",tone:m.onInk}),p($i,{n:"4.9",label:"Avg rating",tone:m.warm})]})]}),testimonials:A("div",{style:{...V,overflow:"hidden",background:m.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[p("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:m.rust,opacity:.16},children:"\u201D"}),p(kS,{filled:5,size:7}),p("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:m.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),A("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p(O2,{}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:A(ke,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[m.inkSoft,m.inkSoft2],[m.rust,m.warm],[m.ink,m.inkSoft],[m.mark2,m.mark1]].map(([e,o],t)=>p("div",{style:{flex:1,borderRadius:3,...Fe(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])=>A("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(O2,{size:12}),A("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[A("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[p("b",{style:{fontSize:"3.98cqw",color:m.text},children:e}),p(kS,{filled:o})]}),p(Qe,{children:t})]})]},e))})]}),logos:A("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...Fe(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"As fitted by"}),p("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>p("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:m.onInk,opacity:.82},children:e},e))})]}),prose:A("div",{style:{...V,background:m.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:m.text},children:"Why offset matters"}),A("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:m.rust,marginTop:1},children:"T"}),A("div",{style:{display:"flex",flexDirection:"column"},children:[p(Qe,{children:"he number on the back of your wheel decides whether the"}),p(Qe,{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])=>A("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:3,background:m.rust,opacity:.9}}),p("b",{style:{fontSize:"3.98cqw",color:m.text},children:e}),p(Qe,{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])=>A("div",{style:{borderBottom:`1px solid ${m.rule}`,padding:"4px 2px"},children:[A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"4.64cqw",color:m.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&p(Qe,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:A("div",{style:{...V,overflow:"hidden",...Fe(m.ink,m.ink2)},children:[p("div",{style:{...V,background:`linear-gradient(90deg,${m.scrim},transparent 70%)`}}),p("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:p(T2,{over:"NEW \xB7 SUMMER",overTone:m.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:m.warm,ctaFg:m.ink,tone:m.onInk})}),p(cr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:A("div",{style:{...V,display:"flex",background:m.paper,overflow:"hidden"},children:[p("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:p(T2,{over:"ALL-TERRAIN",overTone:m.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:m.text,ctaFg:m.onInk,tone:m.text})}),p("div",{style:{flex:1,position:"relative",...Fe(m.inkSoft,m.inkSoft2)},children:p(cr,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(ke,{title:"Best sellers",children:A("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[p(CS,{name:"Ridge 19",price:"$365"}),p(CS,{name:"Ridge 29",price:"$410"}),p(CS,{name:"Ridge 39",price:"$455"})]})}),collections:p(ke,{title:"Shop by category",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",m.inkSoft,m.inkSoft2],["Tyres",m.rust,m.warm],["Lift kits",m.ink,m.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:m.onInk,...Fe(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:A("div",{style:{...V,display:"flex",background:m.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",...Fe(m.paper,m.paper2,150)},children:p(cr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),A("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.rust},children:"NITTO"}),p("b",{style:{fontSize:"6.29cqw",color:m.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:m.text},children:"$489"}),p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:m.text,color:m.onInk},children:"ADD TO CART"})]})]}),spectable:p(ke,{title:"Specifications",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(fr,{k:"Diameter",v:'20"'}),p(fr,{k:"Width",v:"9.0J"}),p(fr,{k:"Offset",v:"+12"}),p(fr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(ke,{title:"Will it fit?",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(fr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(fr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(fr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:A("div",{style:{...V,background:m.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(sm,{children:"How it works"}),p("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:"50%",background:m.text,color:m.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),p("span",{style:{fontSize:"3.98cqw",color:m.text,fontWeight:600},children:e})]},e))})]}),detailrows:p("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=p("div",{style:{flex:1,...Fe(t?m.rust:m.inkSoft,t?m.warm:m.inkSoft2)}},"art"),a=A("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[p("b",{style:{fontSize:"4.64cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:m.muted,lineHeight:1.3},children:o})]},"tx");return p("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:p("div",{style:{...V,background:m.ink,color:m.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>A("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[p("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},_2={subscribe:A("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[A("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[A("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p(j,{w:8,h:8,r:2,tone:"accent"}),p(j,{w:38,h:7,r:3,tone:"dark"}),p(j,{w:16,h:7,r:3,tone:"accent"})]}),p(j,{w:38,h:4,r:2,tone:"soft"})]}),p("div",{style:{height:1,background:ao.line,marginBottom:10}}),A("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${ao.line}`,borderRadius:7,padding:10},children:[A("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[p(j,{w:"46%",h:3,r:2,tone:"accent"}),p(j,{w:"84%",h:8,r:4,tone:"dark"}),p(j,{w:"56%",h:8,r:4,tone:"accent"}),p(j,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),A("div",{style:{display:"flex",gap:5,marginTop:4},children:[p("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${ao.line}`,background:ao.block}}),p(j,{w:34,h:13,r:5,tone:"accent"})]})]}),A("div",{style:{flex:1,background:ao.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${ao.line}`:"none",paddingTop:o?4:0},children:[p(j,{w:34,h:4,r:2,tone:"dark"}),p(j,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:A("div",{style:{...V,display:"flex"},children:[p("div",{style:{width:"44%",background:wS}}),A("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"44%",h:5,r:3,tone:"accent"}),p(j,{w:"88%",h:8,r:4,tone:"dark"}),p(j,{w:"70%",h:8,r:4,tone:"dark"}),p(j,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:A(A2,{children:[p(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[A("div",{style:{display:"flex",alignItems:"center",gap:9},children:[p(j,{w:16,h:16,r:4,tone:"accent"}),p(j,{w:"20%",h:9,r:4,tone:"dark"})]}),p(j,{w:"62%",h:10,r:5,tone:"dark"}),p(j,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:p("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:A("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(j,{w:"22%",h:12,r:4,tone:"dark"}),A("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:26,h:6,r:3,tone:"soft"}),p(j,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:A("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[A("div",{style:{display:"flex",gap:14},children:[A("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"60%",h:9,r:4,tone:"dark"}),p(j,{w:"90%",h:5,r:2,tone:"soft"}),p(j,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[p(j,{w:"50%",h:6,r:3,tone:"dark"}),p(j,{w:"80%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),p("div",{style:{height:1,background:ao.line}}),A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"30%",h:5,r:2,tone:"soft"}),p(j,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:p("div",{style:{...V,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>p("div",{style:{borderRadius:6,background:ao.block}},o))}),blanksection:p("div",{style:{...V,padding:14,display:"flex"},children:A("div",{style:{flex:1,border:`1px dashed ${ao.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[p(j,{w:14,h:2,r:1,tone:"tint"}),p(j,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:A("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),p(j,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:wS},children:[p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),p(j,{w:16,h:10,r:3,tone:"accent"}),p(j,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:p("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:p(j,{w:"64%",h:13,r:4,tone:"dark"})}),text:A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"96%",h:6,r:3,tone:"soft"}),p(j,{w:"100%",h:6,r:3,tone:"soft"}),p(j,{w:"58%",h:6,r:3,tone:"soft"})]}),image:p("div",{style:{position:"absolute",inset:14,borderRadius:7,background:wS}}),button:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center"},children:p(j,{w:"34%",h:16,r:8,tone:"accent"})}),menu:A("div",{style:{...V,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[p(j,{w:"48%",h:7,r:3,tone:"dark"}),p(j,{w:"82%",h:5,r:2,tone:"soft"}),p(j,{w:"66%",h:5,r:2,tone:"soft"}),p(j,{w:"74%",h:5,r:2,tone:"soft"}),p(j,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(j,{w:"56%",h:8,r:3,tone:"dark"}),A("div",{style:{display:"flex",gap:6},children:[p("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${ao.line}`}}),p(j,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>p(j,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p(j,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>p(j,{w:20,h:13,r:3,tone:"dark"},e))]}),search:p("div",{style:{...V,padding:"0 18%",display:"flex",alignItems:"center"},children:A("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${ao.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[p("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${ao.dark}`}}),p(j,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:A("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[p("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${ao.dark}`}}),p("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${ao.dark}`},children:p(j,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:A("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[A("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${ao.line}`},children:[p(j,{w:22,h:6,r:2,tone:"dark"}),p(j,{w:6,h:4,r:1,tone:"soft"})]}),A("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${ao.line}`},children:[p(j,{w:"80%",h:4,r:2,tone:"accent"}),p(j,{w:"64%",h:4,r:2,tone:"soft"}),p(j,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:A("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p("div",{style:{height:1,background:ao.line}}),A("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"38%",h:5,r:2,tone:"soft"}),A("div",{style:{display:"flex",gap:5},children:[p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"}),p(j,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:p("div",{style:{position:"absolute",inset:14,borderRadius:8,background:ao.block}})};function F2({type:e}){let o=pte[e]??"",t=ute[o]??_2[o]??_2.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 mm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as ks,jsxs as B2}from"react/jsx-runtime";import mte from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as xte}from"efficient-easel/rail";import{Tooltip as hte}from"efficient-shell/ui";import{HintsToggle as Ite,hintsFoldClass as gte}from"efficient-easel/panel";import{useHints as yte}from"efficient-easel/screen/lib/hints";function L2({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=An(),{shown:d,setShown:f}=yte();return B2("div",{className:`sf-styles ${gte(d)}`.trim(),children:[ks(mte,{icon:ks(xte,{}),title:c("Styles"),context:ks(hte,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:ks("span",{className:"sf-name-text",children:i})})}),B2("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[ks(Ff,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),ks(Ite,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as fo,jsxs as qa,Fragment as kte}from"react/jsx-runtime";import{Fragment as G2,useEffect as K2,useRef as _S}from"react";import{useTreeDrag as q2}from"efficient-easel/drag";import{GlobeIcon as vte,ImageIcon as Pte,LocationIcon as Tte,MapIcon as Ote,TextLinesIcon as Ete,TrashIcon as V2}from"efficient-easel/icons";import{Subtree as Y2,TreeRow as Ui,TreeRowAction as X2,TreeSeam as Z2}from"efficient-easel/tree";import{useEaselStrings as _te}from"efficient-easel/strings";import{isSelectionMode as Ate}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Ste}from"react";var bte={level:"groups"},D2=bte,vS=new Set;function At(e){D2=e;for(let o of vS)o()}function wte(e){return vS.add(e),()=>{vS.delete(e)}}var R2=()=>D2;function N2(){return Ste(wte,R2,R2)}var zi=e=>String(e?.group??""),PS=new WeakMap,Cte=0;function lm(e){let o=PS.get(e);return o||(o=`loc${++Cte}`,PS.set(e,o)),o}var M2=(e,o)=>o||e||"Ungrouped",H2={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
337
- Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Ka(e){return hd(e,zi,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var TS=e=>e.flatMap(o=>o.cards),W2=(e,o,t)=>Math.min(Math.max(e,o),t);function im(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(zi(e[a])===o){if(r===t)return a;r++}return-1}function OS(e,o,t){let r=Ka(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=W2(o<t?t-1:t,0,r.length);return r.splice(n,0,a),TS(r)}function ES(e,o,t,r,a){let n=Ka(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&&PS.set(d,lm(i));let f=W2(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),TS(n)}function $2(e,o){let t=Ka(e),r=t.find(n=>n.key===o),a={...H2,group:o,groupName:r?.name??""};return r?(r.cards.push(a),TS(t)):[...e,a]}function z2(e){let o=new Set(Ka(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...H2,group:r,groupName:""}],key:r}}function U2(e,o){return e.filter(t=>zi(t)!==o)}function j2(e,o,t){let r=im(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function n5e(e,o,t){let r=e.flatMap((s,l)=>zi(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 s5e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>zi(n)===r);return a.length?a:t(r)})}var fm="ContactLocations",dm=e=>({parentId:`locations-${e}`,slot:"groups"}),AS=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function J2(e,o){let{readOnly:t,selected:r}=o,a=_te().tree,n=o.data?.content??[],s=Ate(e),l=_S(null);K2(()=>{let P=r?.type===fm?String(r.props.id):null;P&&P!==l.current&&At({level:"groups"}),l.current=P},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:f}=wL(),x=N2(),u=(P,I)=>{let b=n[P];b&&o.replace(P,{type:b.type,props:{...b.props,locations:I}})},h=P=>{let I=n[P]?.props?.locations;return Array.isArray(I)?I:[]},g=q2({keyOf:P=>`group:${P.si}:${P.index}`,readOnly:!!t,canDrop:(P,I)=>I.parentId===dm(P.si).parentId&&I.slot==="groups",onDrop:(P,I)=>{u(P.si,OS(h(P.si),P.index,I.index)),x.level==="city"&&At({level:"groups"})},onStep:(P,I)=>{u(P.si,OS(h(P.si),P.index,I<0?P.index-1:P.index+2)),x.level==="city"&&At({level:"groups"})}}),S=q2({keyOf:P=>`city:${P.si}:${P.group}:${P.index}`,readOnly:!!t,canDrop:(P,I)=>I.parentId===dm(P.si).parentId&&I.slot.startsWith("cities:"),onDrop:(P,I)=>{let b=I.slot.slice(7);u(P.si,ES(h(P.si),P.group,P.index,b,I.index)),At({level:"group",key:b})},onStep:(P,I)=>{u(P.si,ES(h(P.si),P.group,P.index,P.group,I<0?P.index-1:P.index+2)),x.level==="city"&&At({level:"group",key:P.group})}}),v=_S(n);v.current=n;let E=_S(()=>{});K2(()=>{f(P=>{let I=Yp(P);if(!I)return;let b=v.current.findIndex(O=>O.props?.id===I.nodeId);b<0||E.current(b,{level:I.part,index:I.index})})},[f]);let R=(P,I)=>{l.current=n[P]?.props?.id??null,o.select(P),At(I),e.reveal();let b=n[P]?.props?.id;typeof b=="string"&&(I.level==="city"||I.level==="image"||I.level==="map")?d(Vp(b,I.index,I.level)):d(null),typeof b=="string"&&o.scrollTo(b)};return E.current=R,{renderLocationTree:(P,I,{rowClick:b,isCollapsed:O,toggleCollapse:_})=>{let N=h(I),w=Ka(N),F=String(P.props.id),y=s&&r?.props.id===F,k=C=>fo(Z2,{...t?{}:g.seam({place:{...dm(I),index:C}})},`seam:${F}:groups:${C}`),T=(C,B)=>fo(Z2,{...t?{}:S.seam({place:{...AS(I,C),index:B}})},`seam:${F}:cities:${C}:${B}`);return qa(kte,{children:[fo(Ui,{icon:fo(Ete,{size:13}),name:c("Texts"),words:a,onSelect:()=>R(I,{level:"texts"}),selected:y&&x.level==="texts",rowProps:{onClick:b(()=>R(I,{level:"texts"}))}}),w.map((C,B)=>{let H=`${F}::grp::${C.key}`,K=O(H),$=y&&x.level==="group"&&x.key===C.key,le=C.name||C.key?M2(C.key,C.name):c("Ungrouped"),pe={...AS(I,C.key),index:C.cards.length},J=S.row({item:{si:I,group:C.key,index:-1},place:pe,into:pe,canDrag:!1},{onClick:b(()=>R(I,{level:"group",key:C.key}))}),xe=g.row({item:{si:I,index:B},place:{...dm(I),index:B}},J.rowProps);return qa(G2,{children:[B===0&&k(0),fo(Ui,{icon:fo(vte,{size:13}),name:le,words:a,onSelect:()=>R(I,{level:"group",key:C.key}),selected:$,draggable:xe.draggable,dragging:xe.dragging,drop:xe.drop??J.drop,fold:{open:!K,label:c("group"),onToggle:()=>_(H)},actions:fo(X2,{kind:"delete",label:Nt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",C.cards.length,{label:le}),onClick:()=>{u(I,U2(N,C.key)),At({level:"groups"})},children:fo(V2,{size:15})}),rowProps:xe.rowProps,count:C.cards.length,countLabel:Nt("{n} city","{n} cities",C.cards.length)}),!K&&qa(Y2,{children:[C.cards.map((ae,ne)=>{let he=im(N,C.key,ne),Ze=y&&x.level==="city"&&x.index===he,qe=String(ae?.name??"")||c("City"),bo=`${F}::city::${lm(ae)}`,Je=O(bo),{rowProps:eo,...Yo}=S.row({item:{si:I,group:C.key,index:ne},place:{...AS(I,C.key),index:ne}},{onClick:b(()=>R(I,{level:"city",index:he}))});return qa(G2,{children:[ne===0&&T(C.key,0),fo(Ui,{icon:fo(Tte,{size:13}),name:qe,words:a,onSelect:()=>R(I,{level:"city",index:he}),selected:Ze,...Yo,fold:{open:!Je,label:qe,onToggle:()=>_(bo)},actions:fo(X2,{kind:"delete",label:c("Delete {name}",{name:qe}),onClick:()=>{u(I,j2(N,C.key,ne)),At({level:"group",key:C.key})},children:fo(V2,{size:15})}),rowProps:eo}),!Je&&qa(Y2,{children:[fo(Ui,{icon:fo(Pte,{size:13}),name:c("Image"),words:a,onSelect:()=>R(I,{level:"image",index:he}),selected:y&&x.level==="image"&&x.index===he,rowProps:{onClick:b(()=>R(I,{level:"image",index:he}))}}),fo(Ui,{icon:fo(Ote,{size:13}),name:c("Map"),words:a,onSelect:()=>R(I,{level:"map",index:he}),selected:y&&x.level==="map"&&x.index===he,rowProps:{onClick:b(()=>R(I,{level:"map",index:he}))}})]}),T(C.key,ne+1)]},lm(ae))}),qa("button",{type:"button",className:"sf-add-card",onClick:()=>{let ae=$2(N,C.key);u(I,ae);let ne=Ka(ae).find(he=>he.key===C.key);At(ne&&ne.cards.length?{level:"city",index:im(ae,C.key,ne.cards.length-1)}:{level:"group",key:C.key})},children:[fo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),k(B+1)]},H)}),qa("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:C,key:B}=z2(N);u(I,C),R(I,{level:"group",key:B})},children:[fo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:P=>{P?.type===fm&&At({level:"groups"})}}}import{useEffect as Rte,useRef as Dte}from"react";import{createNode as BS,newId as LS}from"efficient-easel/data";import{useEaselApi as Nte}from"efficient-easel/easel";import{useScreenDocument as Mte}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Hte}from"efficient-easel/screen/lib/session-context";import{useEffect as t5,useRef as Fte}from"react";import{useEasel as Bte}from"efficient-easel/easel";import{ROOT_ZONE as FS}from"efficient-easel/draw";var ji={};function Q2(e){return ji={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},ji}function e5(e){ji===e&&(ji={})}function vs(){return ji}function o5(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 a5(e){let o=Bte(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=Po(),i=Fte(new Set);t5(()=>{let d=r5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&Lte(e1(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),t5(()=>{let d=Q2(r5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>e5(d)},[t,r,a,n,s,l])}function r5(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=o5({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 Lte(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(FS,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(FS,r+1+l,s),o.replaceComponent(FS,r+1+l,s)}))}}import{ROOT_ZONE as Ps,missingPinnedTypes as Wte,pinnedDuplicateIds as RS}from"efficient-easel/draw";function n5(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function s5(e,o){let t=e.some(l=>l?.type===to),r=e[e.length-1],a=!t&&r?.type===Re?r:null,n=e.filter(l=>l?.type===Re&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Uo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===No)}}async function l5(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!==No||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===No)?!1:(e.write(cf(r,t)),!0)}function i5(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=Mte(),f=Hte(),{hasSiteSettings:x,hasPinnedChrome:u}=r;a5(e);let h=!!r.editsPinnedInPlace&&a!==Tr,g=a===Tr,S=Nte().getState,v=Dte(null);Rte(()=>{if(!n5({docId:n,saveStatus:l,seededDocId:v.current})||(v.current=n,!u))return;let E=S().appState.data,R=E.content,P=s?.content??[],I=(N,w)=>N.some(F=>F?.type===w);if(!x){let N=new Set(RS(R)),w=N.size?R.filter(y=>!N.has(y.props.id)):R;if(N.size&&e.setDocument({...E,content:w}),g)return;let F=Wte(w,P);if(F.includes(Re)){let y=w.length,k=e.insertSection(Re,y);e.replaceComponent(Ps,y,{type:Re,props:{id:k,blocks:tm()}})}F.includes(Uo)&&e.insertNode(Ps,0,om());return}if(g){let N=Zv(R);if(N!==R&&e.setDocument({...E,content:[...N]}),!N.find(w=>w.type===Re)&&!I(P,Re)&&!I(N,to)&&!I(P,to)){let w=(y,k)=>BS(o,y,k),F={type:Re,props:{blocks:tm()}};e.insertNode(Ps,N.length,ni(F,w,LS(to),Hi))}return}if(h){let N=!!t?.pinnedChrome?.state().docId,w=s5(R,{hasChromeDoc:N}),F=new Set([...w.remove,...RS(R.filter(k=>!w.remove.includes(String(k.props.id))))]),y=F.size?R.filter(k=>!F.has(String(k.props.id))):R;if(y.length!==R.length&&e.setDocument({...E,content:y}),w.seedFooter&&!I(P,Re)&&!I(P,to)){let k=(C,B)=>BS(o,C,B),T={type:Re,props:{blocks:tm()}};e.insertNode(Ps,y.length,ni(T,k,LS(to),Hi))}if(w.seedHeader&&!I(P,Uo)){let k=y[0]?.type===No?1:0;e.insertNode(Ps,k,om())}if(w.seedSiteHeader&&!I(P,No)&&!I(P,Re)&&!I(P,to)){let k=n;l5({blocks:pn(f),make:(T,C)=>BS(o,T,C),id:LS(No),siteId:i??null,token:d.current,latest:()=>S().appState.data.content,stillOpen:()=>v.current===k,write:T=>{let C=S().appState.data;e.setDocument({...C,content:[...T]})}})}return}let b=R.filter(N=>N.type!==Re),O=new Set(RS(b)),_=O.size?b.filter(N=>!O.has(N.props.id)):b;_.length!==R.length&&e.setDocument({...E,content:_}),!I(_,Uo)&&!I(P,Uo)&&e.insertNode(Ps,0,om())},[n,l,s,S,e,x,u,g,h,t,f,i,d])}import{useEffect as g5,useMemo as qte,useRef as y5}from"react";import{useEasel as Vte}from"efficient-easel/easel";import{newId as Yte}from"efficient-easel/data";import{useEaselHost as Xte}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as $te}from"efficient-easel/screen/lib/host";import{isNode as c5}from"efficient-easel/data";function Gi(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function zte(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function DS(e,o,t,r){e.forEach((a,n)=>{if(c5(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Bt(a))DS(a.props[s],a,s,r)}})}function Ute(e){let o=[];DS(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&DS(t,null,"",o);return o}function p5(e,o){return Ute(e).find(t=>String(t.node.props.id)===o)}function u5(e,o,t){if(!t)return null;let r=p5(o,t);if(!r)return null;let a=Gi(e,r.node.type),n=r.parent?`${Gi(e,r.parent.type)} \xB7 ${zte(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var jte=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 Gte(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[$te]: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=jte(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=m5(l))}return r}function m5(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Gte(r);a&&(o[t]=a)}return o}function x5(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Gi(e,t),fields:m5(r.fields),...h5(t)?{retired:!0}:{}});return o}function h5(e){return uo(rb,e)}function d5(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Kte(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 NS(e,o){return e.findIndex(t=>c5(t)&&String(t.props.id)===o)}function f5(e,o,t){let r=o||t;if(!r)return e.length;let a=NS(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function I5(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((l,i)=>{let d=f=>{throw new Error(`change ${i+1}: ${f}`)};switch(l.op){case"set_props":{let f=p5(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=Kte(f.node.props,l.path)??d(`there is no ${l.path} in that block`);Object.assign(x,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??d(`there is no block type ${l.type}`),h5(l.type)&&d(`${Gi(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=ds(l.type),x=Object.keys(l.props??{}).filter(h=>h!=="id");f&&x.length&&d(`${Gi(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let u=f?f(h=>d5(e,h),r,a):{type:l.type,props:{...d5(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(f5(s,l.after,l.before),0,u);break}case"remove_block":{let f=NS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`),s.splice(f,1);break}case"move_block":{let f=NS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`);let[x]=s.splice(f,1);s.splice(f5(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 MS=e=>po(e.requestId)??null;function S5(){let e=Xte(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Vte(u=>u),s=n,l=y5({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=y5(new Map),d=t?.props?.id,f=qte(()=>u5(s,o.data,d),[s,o.data,d]),x=f?JSON.stringify(f):"";g5(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,x]),g5(()=>e.subscribe(u=>{let{appState:h,dispatch:g,history:S,blockConfig:v}=l.current;switch(u.type){case"storefront-editor:request-document":{let E=MS(u);if(!E)return;e.send("storefront-editor:document",{requestId:E,document:h.data,blocks:x5(v)});return}case"storefront-editor:apply-page-edits":{let E=MS(u);if(!E)return;let R=Array.isArray(u.ops)?u.ops:[],P=R.length?I5(v,h.data,R,Yte,vs()):{ok:!1,reason:"no changes"};P.ok&&(g({type:"setData",data:P.document,recordHistory:!0}),i.current.set(E,JSON.stringify(P.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:E,applied:P.ok,reason:P.ok?null:P.reason});return}case"storefront-editor:undo-page-edits":{let E=MS(u);if(!E)return;let R=i.current.get(E),P=R!==void 0&&R===JSON.stringify(h.data.content??[]);P&&S.hasPast&&(S.back(),i.current.delete(E)),e.send("storefront-editor:page-edits-result",{requestId:E,applied:P&&S.hasPast,reason:P?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof u.shown=="boolean"&&g({type:"setUi",ui:{rightSideBarVisible:u.shown}});return;default:return}}),[e])}import{useEffect as C5,useState as k5}from"react";var cm=new Map;async function Zte(e,o){try{return(await _o().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function b5(e,o){let t=cm.get(o);return t||(t=Zte(e,o),cm.set(o,t),t.catch(()=>{cm.get(o)===t&&cm.delete(o)})),t}var Jte=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function HS(e){return!!e&&Jte.test(e)}function w5(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===XP?"/":`/${encodeURIComponent(o)}`;if(!HS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function v5(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=k5(null),[s,l]=k5(null),i=tP();C5(()=>{try{l(new URL(rP()).hostname)}catch{l(null)}},[i]),C5(()=>{if(!HS(s)||!t||!r){n(null);return}let f=!1;return b5(r,t).then(x=>{f||n(x)}),()=>{f=!0}},[s,t,r]);let d=w5({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as Ki}from"react/jsx-runtime";import{useEffect as Qte,useRef as P5,useState as ere}from"react";import{ExternalIcon as T5}from"efficient-easel/icons";import{EaselIconButton as ore}from"efficient-easel/chrome";import{Tooltip as tre,iconButtonClasses as rre}from"efficient-shell/ui";import{useSettledPress as are}from"efficient-easel/easel";import{useScreenDocument as nre}from"efficient-easel/screen/components/ScreenDocumentContext";async function sre({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 O5({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=nre(),a=P5(r);a.current=r;let n=are(),[s,l]=ere(!1),i=P5(null);if(Qte(()=>()=>i.current?.(),[]),t&&o){let d=()=>new Promise((x,u)=>{i.current=()=>x(!1),n.run(()=>{i.current=null,a.current().then(x,u)})}),f=()=>{s||n.waiting||(l(!0),sre({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return Ki(ore,{label:c("Preview your saved draft in a new tab"),tip:c("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:Ki(T5,{})})}return Ki(tre,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:Ki("a",{className:rre({className:"es-iconbtn"}),href:e,...Cl,"aria-label":c("Preview the live site in a new tab"),children:Ki(T5,{})})})}import{createElement as lre,useCallback as ire,useEffect as E5,useRef as _5,useState as dre}from"react";import{ClockIcon as fre}from"efficient-shell/icons/efficient";import{useScreenDocument as cre}from"efficient-easel/screen/components/ScreenDocumentContext";function A5(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=cre(),s=XH(YH(o??null),r),l=ku(vu()),i=n.siteLiveState;E5(()=>{if(i)return Tx(i),ia(0),()=>Tx(null)},[i]);let d=kf(),[f,x]=dre(!1),u=_5(e);u.current=e;let h=_5(!0);E5(()=>(h.current=!0,()=>{h.current=!1}),[]);let g=ire(()=>{x(!0),a(u.current).then(()=>{Tu()}).finally(()=>{h.current&&x(!1)})},[a]);if(t.canPublish){if(i){let S=d===void 0?void 0:r||d.state==="changed"?"changed":"live",v=dS({live:S,onPress:g,busy:f,goingLive:ZH(d?.changes??[])});return n.siteVersions?{...v,menuItems:pre()}:v}return dS({live:s,onPress:g,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function pre(){return[{key:"version-history",label:c("Version history"),icon:lre(fre),onSelect:dM}]}import{jsx as ee,jsxs as Vo,Fragment as Yi}from"react/jsx-runtime";import{useCallback as ure,useEffect as mre,useId as L5,useRef as xre,useState as ht}from"react";import{useSettledAction as hre}from"efficient-easel/easel";import{Avatar as Ire,Banner as qi,Button as Va,ColoredBadge as WS,Dialog as zS,DropdownMenu as gre,FormField as R5,iconButtonClasses as yre,Inline as $S,Input as Sre,ListRow as bre,Select as wre,SortableList as Cre,Stack as Vi}from"efficient-shell/ui";import{EditIcon as kre,EyeIcon as F5,MenuIcon as vre,MoreIcon as Pre,PageIcon as D5,RevertIcon as B5,StylesIcon as Tre}from"efficient-shell/icons/efficient";import{useScreenDocument as N5}from"efficient-easel/screen/components/ScreenDocumentContext";var Ore={page:D5,menu:vre};function Ere(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function _re(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 Are({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=L5();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,x=IM(e),u=d?c("Put your drafts back?"):o?c("Restore {page} from version {n}?",{page:o.name,n:f}):c("Restore version {n}?",{n:f}),h=d?c("Your drafts go back to how they were before the restore."):o?c("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):x?c("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:x}):c("The whole website goes back to version {n} as a draft.",{n:f}),g=e.deletedPictures??0;return ee(zS,{open:!0,onClose:()=>{r||n()},size:"sm",title:u,footer:Vo(Yi,{children:[ee(Va,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),ee(Va,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Vo(Vi,{gap:4,children:[o&&e.pages.length>1?ee(R5,{label:c("Page"),htmlFor:i,children:ee(wre,{id:i,value:o.id,options:e.pages.map(S=>({value:S.id,label:S.name})),onChange:l,disabled:r})}):null,ee("p",{children:h}),ee("p",{children:c("Your live website does not change until you press Publish.")}),g>0?ee(qi,{tone:"warning",children:Nt("{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(qi,{tone:"info",title:c("Your unpublished changes are kept"),children:c("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?ee(qi,{tone:"danger",children:a}):null]})})}function Fre({version:e,onCancel:o,onSave:t}){let r=L5(),[a,n]=ht(null),[s,l]=ht(""),[i,d]=ht(!1),[f,x]=ht(null);if(e!==a&&(n(e),l(e?.name??""),x(null)),!e)return null;let u=s.trim()===e.name,h=async()=>{if(!(i||u)){d(!0),x(null);try{await t(s.trim())}catch{x(c("The name was not saved. Try again."))}finally{d(!1)}}};return ee(zS,{open:!0,onClose:()=>{i||o()},size:"sm",title:c("Name this version"),footer:Vo(Yi,{children:[ee(Va,{variant:"secondary",onClick:o,disabled:i,children:c("Cancel")}),ee(Va,{onClick:()=>{h()},loading:i,disabled:i||u,children:c("Save")})]}),children:ee(R5,{label:c("Name"),htmlFor:r,hint:c("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:ee(Sre,{id:r,value:s,invalid:!!f,onChange:g=>l(g.target.value),onKeyDown:g=>{g.key==="Enter"&&h()}})})})}function Bre({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",i=!e.live,d=e.changes.length,f=[...l?[]:[{key:"preview",label:c("Preview"),icon:ee(F5,{}),onSelect:r}],...i?[{key:"restore",label:l?c("Put these drafts back"):c("Restore whole website"),icon:ee(B5,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:ee(D5,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:ee(kre,{}),onSelect:s}]];return ee(bre,{title:Vo("span",{className:"sf-version-title",children:[ee("span",{children:hM(e)}),e.live?ee(WS,{tone:"success",size:"xs",children:c("Live")}):null,e.name?ee(WS,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,l?ee(WS,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:ee(gre,{align:"end","aria-label":c("More"),items:f,triggerClassName:yre({variant:"ghost",size:"sm"}),trigger:ee(Pre,{})}),below:Vo(Vi,{gap:3,children:[Vo($S,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ee(Ire,{name:e.createdBy,size:"xs"}),ee("span",{children:e.createdBy}),ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:yM(e.createdAt)}),d?Vo(Yi,{children:[ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:Nt("{n} change","{n} changes",d)})]}):null]}),o?Vo(Vi,{gap:3,children:[d?ee(Vi,{gap:2,children:e.changes.map(x=>{let u=Ore[x.kind]??Tre;return Vo($S,{gap:2,align:"center",children:[ee(u,{size:16}),ee("span",{children:gM(x)})]},`${x.kind}:${x.id}`)})}):null,Vo($S,{gap:2,children:[l?null:ee(Va,{variant:"secondary",size:"sm",leftIcon:ee(F5,{}),onClick:r,children:c("Preview")}),i?ee(Va,{variant:"secondary",size:"sm",leftIcon:ee(B5,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function Lre({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=N5(),[l,i]=ht(null),[d,f]=ht(!1),[x,u]=ht(null),[h,g]=ht(null),[S,v]=ht(!1),[E,R]=ht(null),[P,I]=ht(null),[b,O]=ht(!1),_=xre(0),N=ure(()=>{let k=++_.current;f(!1),t.list().then(T=>{k===_.current&&i(T)},()=>{k===_.current&&f(!0)})},[t]);mre(()=>{e&&N()},[e,N]);let w=k=>{O(!1),_re(t,k.id).catch(()=>O(!0))},F=async()=>{if(!(!h||S)){v(!0),R(null);try{await mM({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),g(null),o()}catch(k){R(k instanceof Pi?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{v(!1)}}},y=hre({onPress:()=>{F()},busy:S});return Vo(Yi,{children:[ee(zS,{open:e,onClose:o,size:"xl",title:c("Version history"),description:Vo(Yi,{children:[c("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",c("Products, prices and forms always show as they are now.")]}),footer:ee("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Vo(Vi,{gap:3,children:[b?ee(qi,{tone:"danger",onDismiss:()=>O(!1),children:c("The preview did not open. Try again.")}):null,d?ee(qi,{tone:"danger",action:ee(Va,{variant:"secondary",size:"sm",onClick:N,children:c("Try again")}),children:c("Version history did not load.")}):l===null?ee("p",{className:"sf-version-foot",children:c("Loading versions")}):l.length===0?ee("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):ee(Cre,{"aria-label":c("Versions"),spacing:"comfortable",children:l.map(k=>ee(Bre,{version:k,expanded:x===k.id,onToggle:()=>u(T=>T===k.id?null:k.id),onPreview:()=>w(k),onRestore:()=>{R(null),g({version:k,page:null})},onRestorePage:()=>{R(null),g({version:k,page:Ere(k,s)})},onName:()=>I(k)},k.id))})]})}),ee(Are,{version:h?.version??null,page:h?.page??null,waiting:r,busy:y.busy===!0,error:E,onCancel:()=>g(null),onConfirm:y.onPress,onPage:k=>g(T=>T&&{...T,page:T.version.pages.find(C=>C.id===k)??T.page})}),ee(Fre,{version:P,onCancel:()=>I(null),onSave:async k=>{await t.name(P.id,k),I(null),N()}})]})}function M5(){let{adapter:e,hasUnsavedEdits:o}=N5(),t=e.siteVersions,r=cM(),a=kf();return t?ee(Lre,{open:r,onClose:fM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as C4}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as e6e,categoryLabel as o6e,paletteWithoutPinned as t6e,pinnedSection as r6e}from"efficient-easel/screen/lib/document/palette-sections";var Rre={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 H5(e){return z(Rre,e)?.label}var W5=sb;function Dre(e){let o=Zp.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Zh.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Zh.sectionAccent}}}var Nre={Hero:{[Kl]:{newChild:Dre,childLabel:Zr.Ticker}}},$5=Object.fromEntries(Object.entries(K_).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...z(Nre,e)?.[t]}]))]));function z5(e,o=0,t,r){let a=Hre(Wre(e,o,r),t),n=a?Tg():null;return a&&n?Mre(a,n):a}function Mre(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 Hre(e,o){if(!e||e.source!=="container"||!o||!mw())return e;let t=vd({data:o.data},o.id),r=typeof t?.type=="string"?Sd(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 Wre(e,o,t){let r=t?z($5,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=z(st,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=nd(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=d2(e);return s?{source:"footer",slot:i2,choices:s,spec:null}:null}function U5(e,o=Cd(e.type)){return wd(e.type)?o.map(t=>{let r=Iw(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as $re}from"react";var US=null,jS=new Set;function j5(e){if(US!==e){US=e;for(let o of jS)o()}}function zre(e){return jS.add(e),()=>{jS.delete(e)}}function P6e(){return $re(zre,()=>US,()=>null)}function G5(e){return SP(e)?.ownerId??null}function K5(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||c("Menu")}if(e.type==="FooterText"){let r=typeof t.text=="string"?t.text.trim():"";return r?r.length>28?`${r.slice(0,28)}\u2026`:r:c("Text")}return e.type==="FooterEmailSignup"?t.heading||c("Email signup"):o(e.type)}import{parseOption as Ure}from"efficient-shell/format";var jre=["pages","sections","styles"],q5="sf-editor-left-view";function V5(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(q5);return Ure(jre,"pages",e)}catch{return"pages"}}function Y5(e){if(!(typeof window>"u"))try{window.localStorage.setItem(q5,e)}catch{}}function X5(e,o){return e==="styles"&&!o?"sections":e}function Z5(e,o){return e?"sections":o}import{copyNode as Gre}from"efficient-easel/data";function J5(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=or(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?c("On 1 page"):c("On {count} pages",{count:a.length}):c("On other pages")}var Q5={usedOn:e=>{let o=or(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>bf()?.openPage(e),adopt:(e,o)=>or()?.adopt(e.props.id,o),nodeOf:e=>or()?.place(e)??null,detach:e=>{let o=bf()?.config;return o?Gre(e,o):e},removed:()=>bf()?.reload()};import{sharedSectionsOf as gae}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as yae,scrollPreviewToTop as h4}from"efficient-easel/screen/lib/document/preview-dom";var Kre=yf.mediaFields,qre=/video|poster|focal|phone/i;function Vre(e){return(z(Kre,e)??[]).find(o=>!o.includes("[]")&&!qre.test(o))??null}function Yre(e){let o=Vre(e.type);return e.type!==G?o&&kd(e.type,e.props,o)?{fromData:!0}:o:Mk(e.props)?{fromData:!0}:o}var e4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:Yre,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var o4={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 pm}from"react/jsx-runtime";import{useState as Xre}from"react";import{Button as Zre,Tooltip as Jre,toast as t4}from"efficient-shell/ui";import{TemplateIcon as Qre}from"efficient-easel/icons";import{useSettledAction as eae}from"efficient-easel/easel";import{useScreenDocument as oae}from"efficient-easel/screen/components/ScreenDocumentContext";function a4({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=oae(),[a,n]=Xre(!1),s=async()=>{if(!a){n(!0);try{await r()?t():t4.error(c(r4))}catch{t4.error(c(r4))}finally{n(!1)}}},l=eae({onPress:()=>{s()},busy:a});return pm(Jre,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:pm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:pm(Zre,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:pm(Qre,{size:15}),children:c("Save as Template")})})})}var r4="Your last changes did not save, so the template was not made. Try again.";var tae="Save your page changes first";function n4(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:tae}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var s4="storefront-editor:save-as-template";import{phoneKey as rae,tabletKey as aae}from"efficient-easel/draw";var nae=[mo.top,aae(mo.top),rae(mo.top)],um="ContactLocations",l4="ContactRouting",i4="CityPictures",d4="CityMaps",sae=[{key:i4,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:d4,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function f4(e=va,o=$I){let t=tb.find(r=>r.sections.some(a=>a.type===l4))?.key;return!e.includes(um)||!t?[]:sae.filter(r=>!(o&&r.key===i4)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:l4,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Lr(um);if(!i)return null;let d=vs(),f=ci(um,i,s)(l.nodeDefaults,l.newNodeId,d);if(!f||!(o&&r===d4))return f;let x=ci(um,i,0)(l.nodeDefaults,h=>`${h}-above`,d),u=Object.fromEntries(nae.filter(h=>x?.props[h]!==void 0).map(h=>[h,x.props[h]]));return{...f,props:{...f.props,...u}}}}))}function c4(e=va,o){return[...f4(e,o)]}function u4(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=ds(e);if(n)return n(o,t,vs());if(nw(e)&&a(G)&&a(ln)){let l=z(St,e);return{type:G,props:{...o(G),id:t(G),direction:"column",name:`${r(e)} section`,content:[{type:ln,props:{...o(ln),id:t(ln),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...vl(e)!==vl(ln)?{eyebrowLook:vl(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...p4(e,t)}}]}}}if(z(st,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=p4(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function p4(e,o){return e==="Cards"?{template:ow(t=>o(t))}:e===tw?{template:rw(t=>o(t))}:{}}import{useEffect as lae,useState as iae}from"react";import{useEaselSession as dae}from"efficient-easel/screen/lib/session-context";function m4(){let e=dae().chrome?.products?.list,[o,t]=iae(null);return lae(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function k4({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=yL(),a=w4().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Ts(i=>{i&&(o({kind:"ticker",heroId:i}),yae(i))},[o]);return Kt(()=>{t(s)},[s,t]),Kt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let f=String(i.props.id);return i.type==="Hero"&&Jh(i.props)&&co(S4,{icon:co($a,{type:"ticker",size:13}),name:c(Ra),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function v4({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Mu(),a=w4().tree,{appState:n,config:s}=b4(u=>u),l=fae({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=ba.find(u=>$l[u]===i.kind),f=d&&"nodeId"in i?wa(String(i.nodeId),d):null,x=Ts(u=>{let h=zc(u);if(!h)return;let{data:g,config:S}=l.current,v=hae(g,S,{kind:"node",id:h.nodeId});if(!v)return;let E={kind:$l[h.part],nodeId:h.nodeId};o({index:v.index,zone:v.zone},E)},[o]);return Kt(()=>{t(f)},[f,t]),Kt(()=>{r(x)},[r,x]),{partRows:(u,{rowClick:h})=>{let g=String(u.props.id),S=t_(u);if(S.length===0)return null;let v=P=>{let I=wa(g,P.part);return co(S4,{icon:co($a,{type:P.part==="media"?"heroMedia":"heroImage",size:13}),name:c(P.label),onSelect:()=>x(I),selected:f===I,rowProps:{onClick:h(()=>x(I))},words:a},I)},[E,...R]=S;return Xi(y4,{children:[v(E),R.length>0&&co(xae,{children:R.map(v)})]})}}}function P4(e,o){return{partRows:(t,r)=>Xi(y4,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Sae(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=mm(),{hasPreviewLink:f}=t,x=_o(C4()).preview?.draftLink,u=A5(e.data),h=n4({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),g=Ts(()=>{!a||!r||i(s4,{siteId:a,slug:r})},[i,a,r]),S=v5({pageSlug:r,siteId:a,token:d}),v=o.previewHref?.(r)??S;return{barLead:()=>h.visible&&co(a4,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:g}),barView:()=>f&&r&&co(O5,{liveHref:v,pageId:n??null,draftLink:x}),mainAction:u}}function bae(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=mm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=P=>o.setView(P),[f,x]=x4(HT[0].id),[u,h]=x4(!1),{surface:g,setSurface:S}=oH(),v=()=>{if(l){d("styles"),o.reveal(),h4();return}e.show(bS),e.reveal(),h4()},E={id:"pages",label:c("Pages"),icon:co(pae,{}),panel:({onHide:P})=>co(GM,{activeSurface:g,onPreviewSurface:S,onNavigate:I=>{S(null),s(r?{kind:"template",id:r,pageSlug:I}:{kind:"page",slug:I,siteId:a??void 0})},onClose:P})},R=[];return!l&&i&&R.push({id:"appearance",label:c("Appearance"),icon:co(mae,{}),active:e.kind==="website",onSelect:v}),l&&R.push({id:"styles",label:c("Styles"),icon:co(uae,{}),panel:({onHide:P,notify:I})=>co(L2,{tokenRef:n,siteId:a??void 0,onClose:P,onNotify:I,tab:f,onTabChange:x,revealPageGroup:u,onPageGroupRevealed:()=>h(!1)})}),{railLead:[E],railTrail:R,resolveLeftView:P=>X5(P,l),openSettings:v,openStyles:()=>{x(MT),d("styles")},openPageStyles:l?()=>{x(Af),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(w2),e.reveal()}:void 0}}function wae(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=mm(),a=b4(s=>s.config),n=C4();Kt(()=>(Px({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Px(null)),[e,o,t,a]),Kt(()=>{let s=or();if(!s||!r)return;let l=!1;return gae(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function T4(){let e=Bf();return Ts(o=>{c0(o,e)},[e])}function Cae(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;Kt(()=>{j5(s?.type==="BookingBox"&&s.props.region==="confirm"?G5(l(String(s.props.id))):null)},[s?.props.id]);let i=J2(e,o),{capabilities:{hasSiteSettings:d}}=mm();wae();let{chat:f,setChat:x,setSelected:u,setSelectHandler:h}=Nu(),g=Ts(()=>n(C2),[n]),S=a==="chat";Kt(()=>{u(S)},[S,u]),Kt(()=>{h(g)},[h,g]);let{setOpenHandler:v}=Oi(),E=Ts(()=>n(k2),[n]);Kt(()=>{v(E)},[v,E]);let R=P4(k4(e),v4(e)),P=Sae(o),I=bae(e,r);NM(r);let b=t.device,O=T4();return{...R,...P,...I,hasOwnRows:_=>_.type===fm,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:O,wrap:_=>co(Hx.Provider,{value:!0,children:Xi(Iae.Provider,{value:b,children:[_,co(M5,{})]})}),addPanelRow:_=>d?Xi("div",{className:"sf-addside-sitewide",children:[co("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:co($a,{type:"chat",size:16})}),Xi("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{_(),g()},children:[c("Live chat"),co("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),co(cae,{checked:f.enabled,onChange:N=>x({enabled:N}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var I4=null,GS=new WeakMap;function kae(e){let o=Jw();if(!e||!o)return e;I4!==o&&(I4=o,GS=new WeakMap);let t=GS.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:c(r.label)})):null,spec:e.spec?{...e.spec,addLabel:c(e.spec.addLabel),...e.spec.childLabel?{childLabel:c(e.spec.childLabel)}:{}}:null},GS.set(e,t)),t}var vae={isLockedBlock:(e,o)=>uu(e,o)||!!(o&&or()?.heldElsewhere(o.props.id)),duplicateBlocked:rm,nestDepth:(e,o,t)=>o===Rd?Dd(e,t):0,newSectionNode:u4,canAddTo:(e,o,t,r)=>kae(z5(e,o,r,t)),blockIsOffered:fR,slotsOf:U5,resolveOnInsert:!0},Pae=new Proxy(o4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),Tae={labelAtLevel:(e,o,t)=>c(hm(e,o,t)),descriptions:Pae,categoryLabel:e=>{let o=H5(e);return o===void 0?void 0:c(o)},firstSection:W5,blockRowName:K5,rowName:mu,plainText:rn,Icon:$a,Thumbnail:F2,useProducts:m4,presets:c4()},Oae={desktop:2e3,tablet:800,mobile:390},g4="desktop",Eae={options:ZM,initial:g4,fluid:g4,fluidMin:zb,widths:Oae,hidesPerView:!0},_ae={read:V5,write:e=>Y5(e),forSelection:(e,o)=>Z5(e,o)},Aae={first:Uo,last:Re,firstGroup:No,lastGroup:to,isSectionGroup:Vv,sectionGroupZone:Yv,panelOf:e=>e===Uo?b2:null,get sharedReach(){return fa()?Bae:void 0},get shared(){return or()?Q5:void 0},get groupTab(){return fa()?f2:void 0},get groupBadge(){return fa()?hS({type:to})??void 0:void 0},get changeNotice(){return fa()?c2():void 0},get band(){return fa()?Fae:void 0},get groupAccepts(){return fa()?Jv:void 0}},Fae={foldable:!0},Bae=e=>hS(e)??J5(e);function Lae(e){return{...P4(k4(e),v4(e)),onCopyItem:T4(),openSettings:()=>e.show(bS)}}function Rae(e,o){i5(e,o),S5()}var NWe={useOwnerName:An,useDocumentLabel:h0,useBridges:Cae,useStandaloneBridges:Lae,useDocumentPass:Rae,blockRules:vae,blockLook:Tae,devices:Eae,leftView:_ae,pinned:Aae,Canvas:CM,canvasDrag:{media:e4},Inspector:P2};export{Cg as a,zt as b,Ut as c,ro as d,lme as e,eI as f,lIe as g,si as h,li as i,TA as j,OA as k,vp as l,iIe as m,Aj as n,EA as o,dIe as p,ZL as q,Vve as r,JL as s,Zve as t,hl as u,ua as v,rI as w,mme as x,op as y,vO as z,PO as A,x1 as B,H0 as C,Ct as D,qf as E,W0 as F,rh as G,Lse as H,Rse as I,Dse as J,$0 as K,Nse as L,Vf as M,G0 as N,$se as O,zse as P,K0 as Q,Use as R,ole as S,tle as T,J0 as U,qo as V,Dn as W,lo as X,Ea as Y,Y as Z,Vn as _,Q as $,X as aa,te as ba,re as ca,fe as da,Vme as ea,ce as fa,Xn as ga,Zn as ha,Zl as ia,Jl as ja,S1 as ka,Jme as la,pU as ma,b1 as na,oxe as oa,txe as pa,w1 as qa,gh as ra,gO as sa,$3 as ta,vl as ua,yO as va,iie as wa,nI as xa,sxe as ya,lxe as za,ixe as Aa,dxe as Ba,fxe as Ca,cxe as Da,Ele as Ea,Ic as Fa,Cl as Ga,_le as Ha,Ale as Ia,dO as Ja,uh as Ka,b3 as La,w3 as Ma,Fle as Na,C3 as Oa,Ble as Pa,dE as Qa,_fe as Ra,gE as Sa,Afe as Ta,Ffe as Ua,Bfe as Va,fp as Wa,dI as Xa,P1 as Ya,cp as Za,wxe as _a,vU as $a,PU as ab,TU as bb,Cxe as cb,$o as db,Ba as eb,ts as fb,dhe as gb,fhe as hb,che as ib,PE as jb,Dc as kb,JW as lb,$fe as mb,lA as nb,iA as ob,dA as pb,_he as qb,pA as rb,uIe as sb,mIe as tb,Tp as ub,AA as vb,Ol as wb,wO as xb,CO as yb,bh as zb,Ia as Ab,NO as Bb,Kie as Cb,qie as Db,Vie as Eb,Fl as Fb,at as Gb,ode as Hb,Dle as Ib,Yle as Jb,xh as Kb,Xle as Lb,xa as Mb,gc as Nb,Xe as Ob,pde as Pb,UO as Qb,GO as Rb,KO as Sb,Op as Tb,HA as Ub,_Ie as Vb,Ep as Wb,WA as Xb,RIe as Yb,ZA as Zb,nG as _b,Lp as $b,Bge as ac,Hc as bc,f$ as cc,Wh as dc,hG as ec,Vge as fc,CF as gc,kF as hc,Yge as ic,Xge as jc,zx as kc,o6 as lc,Ux as mc,YT as nc,cye as oc,MF as pc,HF as qc,WF as rc,Nye as sc,Yye as tc,Xye as uc,Zye as vc,og as wc,qF as xc,WG as yc,$G as zc,Np as Ac,eSe as Bc,oSe as Cc,OSe as Dc,xB as Ec,ESe as Fc,hB as Gc,ASe as Hc,CB as Ic,kB as Jc,b8 as Kc,TB as Lc,YSe as Mc,$p as Nc,nbe as Oc,di as Pc,ibe as Qc,AB as Rc,fbe as Sc,FB as Tc,BB as Uc,ube as Vc,kl as Wc,W3 as Xc,dr as Yc,gbe as Zc,zp as _c,wbe as $c,jp as ad,eie as bd,oie as cd,ha as dd,tie as ed,oh as fd,Kf as gd,C0 as hd,_r as id,Wl as jd,Yce as kd,Xce as ld,Zce as md,Jce as nd,A$ as od,Qce as pd,zc as qd,zl as rd,rpe as sd,Kh as td,i_ as ud,d_ as vd,Uh as wd,M$ as xd,ape as yd,Uc as zd,Ul as Ad,Gc as Bd,npe as Cd,spe as Dd,jc as Ed,lpe as Fd,ipe as Gd,u_ as Hd,jl as Id,Gl as Jd,qc as Kd,x_ as Ld,Kn as Md,h_ as Nd,Vc as Od,Yc as Pd,Xc as Qd,I_ as Rd,g_ as Sd,y_ as Td,S_ as Ud,b_ as Vd,v_ as Wd,P_ as Xd,Hpe as Yd,Wpe as Zd,$pe as _d,zpe as $d,Upe as ae,lz as be,iz as ce,jpe as de,Gpe as ee,Kpe as fe,O_ as ge,qpe as he,Vpe as ie,fz as je,B_ as ke,uz as le,R_ as me,D_ as ne,Ec as oe,wz as pe,wue as qe,z_ as re,Eue as se,$ue as te,zue as ue,zde as ve,Bl as we,qde as xe,Vde as ye,nE as ze,pi as Ae,Gt as Be,_R as Ce,ru as De,gTe as Ee,yTe as Fe,_Te as Ge,ATe as He,eq as Ie,Wg as Je,HR as Ke,FTe as Le,$R as Me,zR as Ne,qR as Oe,lq as Pe,fq as Qe,o0e as Re,m0e as Se,x0e as Te,Ii as Ue,h0e as Ve,I0e as We,Ug as Xe,g0e as Ye,_Ce as Ze,Rl as _e,Lh as $e,Lc as af,q0e as bf,Un as cf,sce as df,lce as ef,WE as ff,Gq as gf,$D as hf,Si as if,cEe as jf,uEe as kf,Qg as lf,oN as mf,qp as nf,RCe as of,MCe as pf,yL as qf,fg as rf,SL as sf,bL as tf,$Ce as uf,wL as vf,Yp as wf,YCe as xf,kL as yf,TL as zf,vL as Af,p1e as Bf,u1e as Cf,m1e as Df,mu as Ef,PN as Ff,dy as Gf,L1e as Hf,R1e as If,GY as Jf,KY as Kf,yAe as Lf,SAe as Mf,bAe as Nf,wAe as Of,Su as Pf,bu as Qf,KAe as Rf,ZN as Sf,eM as Tf,oM as Uf,tM as Vf,HBe as Wf,Hwe as Xf,ku as Yf,Ru as Zf,KM as _f,qM as $f,YM as ag,Du as bg,ILe as cg,gLe as dg,Nu as eg,fJ as fg,OLe as gg,Oi as hg,FLe as ig,oH as jg,Fn as kg,J4 as lg,one as mg,tne as ng,JMe as og,QMe as pg,eHe as qg,Y_ as rg,RLe as sg,Mu as tg,Gae as ug,t6 as vg,r6 as wg,a6 as xg,JT as yg,bne as zg,zf as Ag,v6 as Bg,P6 as Cg,Xne as Dg,Mae as Eg,K6 as Fg,lO as Gg,wle as Hg,Cle as Ig,y3 as Jg,kle as Kg,vle as Lg,hc as Mg,Ple as Ng,$n as Og,YO as Pg,XO as Qg,lE as Rg,vfe as Sg,vE as Tg,Nfe as Ug,TE as Vg,$h as Wg,u$ as Xg,I$ as Yg,gce as Zg,Twe as _g,jwe as $g,Vwe as ah,oL as bh,Qwe as ch,eCe as dh,pCe as eh,uCe as fh,PCe as gh,fi as hh,qK as ih,Oke as jh,Dke as kh,eve as lh,ove as mh,Eve as nh,jL as oh,zae as ph,gDe as qh,fH as rh,Re as sh,tm as th,At as uh,N2 as vh,zi as wh,M2 as xh,H2 as yh,n5e as zh,s5e as Ah,b5 as Bh,HS as Ch,w5 as Dh,z5 as Eh,P6e as Fh,NWe as Gh};