efficient-storefront-blocks 0.125.23 → 0.126.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/chunks/{CustomHtmlCodeWindow-LITJEQFG.js → CustomHtmlCodeWindow-LBWGRQID.js} +1 -1
  3. package/dist/chunks/{EditorPreviewCheckout-LRPANZRI.js → EditorPreviewCheckout-PWVUKVPS.js} +1 -1
  4. package/dist/chunks/SiteEditorProvider-73GAIF7L.js +1 -0
  5. package/dist/chunks/{chunk-PVRWP47B.js → chunk-3ZZ3Z6U5.js} +1 -1
  6. package/dist/chunks/{chunk-YOF4KT5H.js → chunk-ADYUBBPE.js} +1 -1
  7. package/dist/chunks/{chunk-ZHEHF42C.js → chunk-BLDYFJQ6.js} +1 -1
  8. package/dist/chunks/{chunk-TT3AZYTK.js → chunk-CKAOUQ5E.js} +1 -1
  9. package/dist/chunks/chunk-JYZ42RYY.js +337 -0
  10. package/dist/chunks/{chunk-ESKHLPB5.js → chunk-SI2DLHOL.js} +1 -1
  11. package/dist/chunks/{chunk-TMSNT2CP.js → chunk-VUFE7ACW.js} +1 -1
  12. package/dist/chunks/{chunk-DQ2TQC5H.js → chunk-WR3AVDA5.js} +1 -1
  13. package/dist/chunks/{fitment-data-FJ3MIJXK.js → fitment-data-VOATE5L5.js} +1 -1
  14. package/dist/chunks/{section-css-style-JQZMV74P.js → section-css-style-42PP2TPA.js} +1 -1
  15. package/dist/index.js +26 -26
  16. package/dist/render/app/globals.css +31 -9
  17. package/dist/render/built-with.json +1 -1
  18. package/dist/routine-index.json +1 -1
  19. package/dist/value-index.json +1 -1
  20. package/dist/words.d.ts +3 -0
  21. package/dist/words.js +2 -2
  22. package/package.json +2 -2
  23. package/dist/chunks/SiteEditorProvider-FT3P5QZM.js +0 -1
  24. package/dist/chunks/chunk-EEHSAQWF.js +0 -337
  25. /package/dist/chunks/{chunk-TT3AZYTK.js.LEGAL.txt → chunk-CKAOUQ5E.js.LEGAL.txt} +0 -0
  26. /package/dist/chunks/{chunk-LY7GZJ6M.js → chunk-D5HXXBSX.js} +0 -0
  27. /package/dist/chunks/{chunk-EEHSAQWF.js.LEGAL.txt → chunk-JYZ42RYY.js.LEGAL.txt} +0 -0
  28. /package/dist/chunks/{chunk-G5LEO2F2.js → chunk-OHEU7JQW.js} +0 -0
  29. /package/dist/chunks/{chunk-DFYWYSOT.js → chunk-ZV2GXEDX.js} +0 -0
@@ -0,0 +1,337 @@
1
+ import{$ as af,D as Ok,E as Ek,F as Qd,G as _k,H as Nk,I as Cr,J as Mk,K as Hk,L as Wk,M as at,N as ef,O as Co,P as de,R as of,S as kr,T as tf,X as $k,Y as rf,Z as vr,_ as zk,a as qo,b as Vs,ba as Qv,c as zd,d as yn,e as Ys,f as nk,fa as fP,g as Sn,h as Ud,ha as cP,ia as Rf,ja as MT,ka as HT,r as ol,t as Tk}from"./chunk-BLDYFJQ6.js";import{a as hP,d as gf,e as nt,f as yf,g as Sf,h as kf,l as Ux}from"./chunk-ZV2GXEDX.js";import{$ as In,$a as pk,$c as wv,$e as yP,$j as An,A as wC,Aa as YC,Ab as Ht,Ac as sv,Ad as Hv,Ah as cT,Aj as bT,Ak as Hx,Al as Nf,B as CC,Ba as XC,Bb as wn,Bc as lv,Bd as Wv,Be as Ct,Bh as pT,Bj as Rx,C as ot,Ca as ZC,Cb as el,Cc as $t,Cd as $v,Cf as _P,Cg as VP,D as kC,Da as JC,Dc as Ue,Dd as zv,De as je,Df as Tx,Dg as YP,Dj as En,E as vC,Ea as QC,Ec as Pr,Ed as bx,Ee as kt,Ef as AP,Eg as XP,Ej as wT,F as PC,Fa as ek,Fb as mx,Fc as Ix,Fd as Uv,Fe as Te,Ff as FP,Fg as ZP,G as TC,Ga as Sr,Gb as aa,Gc as iv,Gd as wx,Ge as mP,Gf as BP,Gg as JP,Gk as Bf,H as OC,Ha as ok,Hb as Jd,Hc as dv,Hd as jv,Hf as LP,Hg as _x,Hj as Dx,Hk as Lf,I as EC,Ib as kk,Ic as fv,Id as Gv,Ig as QP,Ij as dl,Ik as Wx,J as _C,Ja as tk,Jb as vk,Jc as pf,Jd as Kv,Jf as RP,Jg as Ax,Jk as LT,Ka as jd,Kb as Pk,Kc as rl,Kd as zt,Ke as Cx,Kg as rr,Kk as pa,L as AC,La as Xs,Lb as nf,Lc as cv,Ld as qv,Lg as Fx,Lj as _n,Lk as RT,M as FC,Ma as Gd,Mb as Gk,Mc as pv,Md as ia,Mg as Pf,Mk as DT,N as BC,Na as sk,Nb as sf,Nc as uv,Nd as Vv,Ne as ll,Ng as eT,Nj as CT,Nk as NT,O as Dd,Ob as hx,Oc as uf,Od as Pn,Og as oT,P as LC,Pb as lf,Pc as mv,Pg as tT,Pk as WT,Q as RC,Qc as xv,Qd as or,Qf as DP,Qg as rT,Qk as $x,Ra as lk,Rc as gx,Rd as Yv,Re as xP,Rf as NP,Rg as aT,Sa as ik,Sc as hv,Sd as sl,Se as kx,Sf as MP,Sk as $T,Ta as Zs,Tc as vn,Td as Xv,Te as IP,Tf as Ox,Tk as zT,Ub as Cn,Ud as da,Uf as HP,Ug as nT,Uk as UT,V as ax,Va as bn,Vc as Iv,Vd as Zv,Vf as WP,Vg as sT,Vj as kT,Vk as jT,Wa as dk,Wc as gv,Wf as Ex,Wj as Nx,Wk as GT,X as Gs,Xa as Kd,Xb as Kk,Xc as yv,Xd as mf,Xj as vT,Xk as KT,Y as Nd,Ya as fk,Yb as qk,Yc as Sv,Yd as Or,Yi as ca,Yj as PT,Z as Fo,Za as Js,Zb as Vk,Zc as bv,Zd as Jv,_ as nx,_a as ck,_b as tl,_c as na,_e as gP,_f as tr,_i as ar,_j as Ff,a as Ao,aa as DC,ab as cx,ad as yx,af as bf,ag as Tn,ai as uT,ak as Fn,b as mn,ba as NC,bb as uk,bd as Cv,bf as SP,bh as Tf,bi as mT,bk as fl,ca as MC,cb as qd,cd as kv,cf as vx,cg as $P,ck as Bn,d as aC,da as HC,db as mk,dd as vv,df as bP,dg as zP,dk as TT,e as ex,ea as WC,eb as px,ed as Pv,ef as wP,eg as vf,f as nC,fa as sx,fd as Tv,fe as eP,ff as CP,fg as Er,fj as _f,g as c,gb as xk,gd as Tr,gf as kP,gg as UP,h as Mt,ha as $C,hb as hk,hd as al,hf as wf,hh as lT,hj as IT,i as hn,ia as Md,id as sa,ie as oP,ig as On,j as Us,jb as Vd,jc as kn,jd as Ov,je as tP,jf as vP,jh as iT,k as Mo,kb as Ik,kc as Wt,ke as rP,kk as OT,l as js,lb as gk,lc as Yk,ld as la,li as xT,lk as ET,mb as yk,mc as Xk,md as nl,mf as Px,mi as hT,ml as zx,n as uC,nb as Sk,nc as Zk,nd as Ev,o as mC,ob as Yd,oc as Jk,od as _v,p as xC,pb as bk,pc as Qk,pe as Ho,q as hC,qc as df,qd as Av,qe as Je,r as IC,rc as ff,rd as Fv,rf as PP,rg as _r,s as gC,sb as wk,sc as ev,sd as Bv,se as xf,sf as TP,sg as jP,sk as Mx,t as yC,tb as br,te as aP,tf as Cf,tg as GP,th as Bx,tj as gT,u as Rd,ub as Xd,uc as ov,ud as Lv,ue as nP,uf as OP,ug as KP,uh as Of,uk as _T,ul as qT,v as yr,va as GC,vb as Zd,vc as tv,vd as Rv,ve as sP,vf as EP,vh as fa,vk as AT,vl as VT,wa as KC,wb as Ck,wc as rv,wd as Dv,we as lP,wh as Ef,wj as yT,wk as FT,wl as Df,x as rx,xa as qC,xb as po,xc as cf,xd as Nv,xe as hf,xj as Af,xl as YT,y as SC,ya as VC,yb as ux,yc as av,yd as Sx,ye as iP,yg as qP,yh as dT,yj as Lx,yk as BT,z as bC,za as dx,zb as Qs,zc as nv,zd as Mv,ze as dP,zh as fT,zj as ST,zl as Ln}from"./chunk-ADYUBBPE.js";import{a as cC,b as Ld,c as pC,g as Uk,h as xx,i as jk}from"./chunk-SI2DLHOL.js";import{$ as xb,$a as Db,$c as wo,$d as hw,$e as Xm,$g as tx,A as ro,Ae as qm,Af as Jm,B as tn,Bb as Ms,Bd as Gm,Be as Sw,Ca as Ie,Cb as Zb,D as Rs,Dd as cw,De as Vm,E as sd,Ed as yd,F as Lt,Fg as Xw,G as rn,Ga as Qo,Gb as hd,Gd as et,Gg as Zw,H as ze,Ha as St,Hc as rw,Hd as No,He as wd,Hf as Lw,Hg as Jw,I as qe,Ia as Pm,Id as Ze,Ie as Cd,Ig as Qw,J as an,Ja as Tm,Jc as Wm,Jd as Dt,Je as bw,Jh as fx,K as ld,Kd as Qt,Ke as kd,Kf as er,Kh as gn,L as ib,La as Om,Lb as Jb,Ld as wt,Le as vd,Lg as eC,Lh as rk,M as db,Ma as Em,Md as fn,Me as ww,Mh as tt,Nd as pw,Ne as Cw,Nh as rt,O as fb,Od as cn,Oe as Pd,Og as oC,Oh as $d,P as id,Pd as uw,Pe as Td,Pg as tC,Ph as ak,Q as cb,Qa as _m,Qb as Id,Qc as aw,Qe as ra,Qf as Rw,Qh as qs,R as Qr,Ra as Ob,Re as kw,Rg as rC,S as pb,Sa as Eb,T as ub,Ta as Ge,Tb as Qb,Td as ta,Tg as sC,Th as Ak,U as Ds,Ua as _b,Ub as ew,Ud as mw,Ug as lC,V as km,Va as ud,Vd as xw,Ve as vw,W as we,Wa as Ab,Wb as ow,Wd as pn,Wf as Dw,Wg as gr,X as K,Xa as Fb,Xc as U,Xd as Ws,Xf as Nw,Xh as Fk,Y as mb,Ya as Bb,Yb as Nm,Yc as re,Yd as $s,Ye as Nt,Yf as Mw,Yg as iC,Za as Lb,Zc as $m,Zd as Km,Ze as zs,Zf as Hw,Zg as ox,_ as dd,_a as Rb,_c as L,_e as Ym,_g as dC,a as on,ab as Nb,ad as Zt,ae as Iw,af as Pw,ah as Bd,b as fo,ba as hb,bb as Mb,bd as nw,be as gw,bf as Tw,bg as Ww,c as to,ca as fd,cb as md,cd as W,cf as Od,cg as $w,ch as fC,ci as Bk,d as Yt,da as Ib,db as xd,dd as gd,de as yw,df as Ow,di as wr,ea as gb,eb as Hb,ed as Do,eg as zw,f as Ko,fa as vm,fb as Wb,fc as Mm,fd as sw,fe as Sd,fg as Uw,fi as Lk,g as Ls,ga as yb,gd as bt,gf as Ew,gg as Ad,gi as Rk,h as eb,ha as Sb,hb as $b,hd as Rt,he as bd,hf as Ed,hg as jw,hi as Dk,i as ob,ia as bb,ib as zb,id as zm,if as _w,ig as Fd,j as tb,jb as Am,jd as hr,jf as Zm,jg as Qm,k as rb,kb as Ub,kd as Jt,kf as Aw,la as wb,lb as jb,ld as lw,lf as Fw,li as ko,ma as Cb,mb as Fm,mf as _d,mg as Gw,na as kb,nb as sn,nd as Fe,nf as un,ng as Kw,o as ab,ob as ea,od as oa,of as xn,pa as vb,pb as Bm,pd as Hs,pf as Ir,pi as il,qb as Lm,qd as ln,qg as qw,qh as lx,ra as Pb,rb as Rm,rd as iw,rg as Vw,rh as Hd,s as nb,sa as cd,sb as Gb,sd as Um,sh as zC,ta as Tb,tb as Kb,td as dn,tf as Bw,th as ix,u as Ne,ua as pd,ub as qb,uc as Hm,ud as jm,ug as Yw,uh as UC,v as sb,vb as Dm,w as nd,wb as Vb,wc as tw,wh as Wd,x as lb,xb as Xt,xh as jC,ya as Ns,yb as Yb,yd as dw,yh as Ks,z as Pe,za as nn,zb as Xb,zd as fw}from"./chunk-3ZZ3Z6U5.js";import{a as z,b as co}from"./chunk-OHEU7JQW.js";import{c as pP,d as uP,e as If}from"./chunk-D5HXXBSX.js";import{jsx as jx,Fragment as Y4,jsxs as X4}from"react/jsx-runtime";import{createContext as Z4,useContext as J4}from"react";var Q4={mirrorHostStyles:!0,css:null,fontHrefs:[]},XT=Z4(Q4);function hne({value:e,children:o}){return jx(XT.Provider,{value:e,children:o})}function cl(){return J4(XT)}function ZT(){let{css:e,fontHrefs:o}=cl();return X4(Y4,{children:[o.map(t=>jx("link",{rel:"stylesheet",href:t},t)),e?jx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as e6}from"react/jsx-runtime";import{createContext as o6,useContext as t6}from"react";var JT=o6(void 0);function Sne({metadata:e,children:o}){return e6(JT.Provider,{value:e,children:o})}var QT=()=>t6(JT);import{jsx as lo,Fragment as R4,jsxs as Qi}from"react/jsx-runtime";import{useCallback as _s,useEffect as qt,useRef as zae,useState as A4}from"react";import{SettingsSwitch as Uae}from"efficient-easel/panel";import{PagesIcon as jae,StylesIcon as Gae}from"efficient-easel/rail";import{PaletteIcon as Kae}from"efficient-shell/icons/efficient";import{Subtree as qae,TreeRow as D4}from"efficient-easel/tree";import{useEasel as N4}from"efficient-easel/easel";import{toItemSelector as Vae}from"efficient-easel/node-ops";import{useEaselStrings as M4}from"efficient-easel/strings";import{createContext as r6,useContext as a6}from"react";var Gx=r6(!1),Cne=()=>a6(Gx);import{useMemo as n6,useRef as s6}from"react";import{useEaselApi as l6}from"efficient-easel/easel";import{useSectionOps as i6}from"efficient-easel/screen/lib/document/use-section-ops";function Mf(){let e=l6(),o=i6(),t=s6(o);return t.current=o,n6(()=>({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 E6}from"efficient-easel/draw";import{insertAt as _6,moveTo as A6,removeAt as F6}from"efficient-easel/fields";import{useSyncExternalStore as w6}from"react";import{isNodeList as e0}from"efficient-easel/data";var o0="Flex";function Rn(e,o){return Nt(e)?typeof e?.[Ko]=="string"?Kx(o?.[Ko]):"":Kx(e?.[Ko])}var Kx=e=>typeof e=="string"?e.trim():"",d6=e=>e.type===ro&&Array.isArray(e.props?.[Vm])&&e.props[Vm].some(o=>Kx(o?.[Ko])!==""),f6=new Intl.NumberFormat("en-US");function c6(e){return/^\d+$/.test(e)?f6.format(Number(e)):e}function Bne(e,o){let t=o?o.find(r=>r.key===e)?.value:nb(Ls).find(r=>r.key===e)?.value;return t===void 0?null:c6(t)}var p6={[Ko]:"any"};function qx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Rn(t)!==""||o&&Rn(t,p6)!==""),a=o||d6(e),n=qe(e,l=>ze(l,i=>{let d=qx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==o0)return{node:n===t?e:{...e,props:n},names:r};let s=Ne(n);if(r&&!s&&(n={...n,[to]:Ls}),!r&&s===Ls){let{[to]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function t0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of rn(r??{})){let n=t0(a,o,r.type===o0?r:t);if(n!==void 0)return n}}}function Lne(e,o){if(!e0(e))return!0;let t=t0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Ne(t.props);return!r||r===Ls}function r0(e){let o=e?.content;if(!e0(o))return e;let t=o.map(r=>qx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function a0(e){return qx(e).node}import{decodePartId as C6}from"efficient-easel/draw";function Dn(e,o){let t=tv(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?AT(t,o.index):null:rv(e)?.[o.rowKey]??null}function Hf(e,o,t){let r=e.node.props,{key:a,row:n}=Wt(e.propKey),s=n?nv(r,a,n,e.kind,o):ov(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as l0}from"efficient-easel/draw";import{parseOption as u6}from"efficient-shell/format";var Vx=e=>String(e+1).padStart(2,"0"),m6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Yx="two-digit",n0=e=>u6(m6,Yx,e),Wf=(e,o)=>e==="plain"?`${o+1}.`:Vx(o);var Jx="Contents",Xx="Flex",s0="Text",x6="numberForm",h6="_contentsEntries",I6="_kickerNumber",i0="data-sf-kicker-number",g6=e=>l0(e).text.trim(),d0=e=>da(e?.anchor),Zx=e=>String(e.props?.id??""),y6=e=>!l0(e.props?.text).hidden&&!Rn(e.props)&&!Nt(e.props),pl=e=>rn(e);function f0(e){for(let o of pl(e))for(let t of o){if(or(t.props??{}))continue;if(t.type===s0&&y6(t))return t;if(t.type===s0)continue;let r=f0(t);if(r)return r}}function c0(e){return pl(e).some(o=>o.some(t=>t&&!or(t.props??{})&&(t.type===Jx||c0(t))))}var p0=e=>e.type===Xx&&Tn(Xx,e.props?.direction)==="row";function u0(e){return pl(e).some(o=>o.some(t=>t&&!or(t.props??{})&&(t.type===Jx||!p0(t)&&u0(t))))}function S6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||or(n.props??{}))continue;if(n.type===Jx){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(p0(n)&&u0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of pl(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Xx&&d0(n.props)&&s&&!c0(n)){s.push({box:n,kicker:f0(n)});continue}for(let l of pl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function b6(e){return e.map(o=>({label:o.kicker?nn(g6(o.kicker.props?.text)):"",anchor:d0(o.box.props)}))}function Qx(e){let o=e?.length?S6(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=Zx(a.contents);n&&t.set(n,b6(a.sections));let s=n0(a.contents.props?.[x6]);a.sections.forEach((l,i)=>{let d=l.kicker?Zx(l.kicker):"";d&&r.set(d,Wf(s,i))})}return{entries:t,numbers:r}}var Qne=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function m0(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=qe(s,h=>ze(h,n)),i=l.props??{},d=l!==s,f=Zx(s),x=f?r.get(f):void 0;x&&(i={...i,[h6]:x},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[I6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var k6=`[${i0}]`,v6=["bold","italic","underline","strike","link","sup","sub"],P6=["bullet","number"];function th(e,o){return e?[...v6,...o?P6:[]]:[]}function x0(e,o){let t=C6(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}=Wt(a),d=o.components[n.type]?.fields?.[l],f=i?Dn(d,i):d,x=df(f);if(!x)return null;let u=n.props??{};if(uT(u)!==null||!i&&Od(n.type,u,l)||n.type==="Text"&&l==="text"&&Rn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?cf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:x,stored:h,offPage:_f(f),panelOnly:Qk(f)}}function $f(e,o){let t=x0(e,o);if(!t)return null;let{text:r,hidden:a}=ca(t.stored);if(!xv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=ff(t.kind);return{partId:e,value:r,rules:cd,multiline:n,skip:k6,offered:th(t.kind!=="plainText",n),write:s=>{let l=x0(e,o);l&&Hf({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function rh(e,o,t){return e?.isConnected&&e.getAttribute(Ue)===t?e:o?.querySelector(`[${Ue}="${zf(t)}"]`)??null}function zf(e){return e.replace(/["\\]/g,"\\$&")}function h0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var eh=null,oh=new Set;function T6(){return eh}function ah(e){if(e!==eh){eh=e;for(let o of oh)o()}}function O6(e){return oh.add(e),()=>{oh.delete(e)}}function I0(){return w6(O6,T6,()=>null)}function g0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=ww(t.type);return!r||Ne(t.props)?null:{node:t,rows:r}}function B6(e,o){let t=g0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Ow(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:E6(e.ownerId,kn(t.rows,{index:e.index,rowKey:a}))}function Uf(e,o){let t=B6(e,o);return t?$f(t,o):null}function y0(e,o){return Uf(e,o)?.value}function S0(e,o){let t=Uf(e,o);return t?(t.write(e.text),!0):!1}function b0(e,o){let t=g0(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=_6(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=A6(n,s,i);break}case"delete":l=F6(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as ke,Fragment as tJ,jsxs as Mu}from"react/jsx-runtime";import{Fragment as rJ,useEffect as eH,useMemo as oH,useRef as aJ,useState as $a}from"react";import{useScreenDocument as sH}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Ny}from"efficient-easel/draw/client";import nJ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as sJ}from"efficient-easel/chrome";import{Input as lJ,LoadingSpinner as iJ,PopupMenu as dJ,PopupMenuItem as tH,toast as rH}from"efficient-shell/ui";import{LayersTree as fJ,TreeGroupLabel as cJ,TreeRow as aH,TreeRowAction as Hu}from"efficient-easel/tree";import{AddIcon as pJ,DuplicateIcon as uJ,PageIcon as mJ,SettingsIcon as xJ}from"efficient-easel/icons";import{PagesIcon as hJ}from"efficient-easel/rail";import{useEaselHost as IJ}from"efficient-easel/screen/lib/host";import{useEaselSession as My}from"efficient-easel/screen/lib/session-context";import{useCallback as jf,useEffect as L6,useSyncExternalStore as R6}from"react";import{useScreenDocument as v0}from"efficient-easel/screen/components/ScreenDocumentContext";var w0=new WeakMap;function ul(e){let o=w0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},w0.set(e,o)),o}function nh(e,o){e.rows=o;for(let t of e.listeners)t()}var Gf=new Set;function Kf(e,o){o?Gf.add(e):Gf.delete(e)}function C0(e){let o=ul(e),t=e.listPages().then(r=>nh(o,Gf.size?r.filter(a=>!Gf.has(a.id)):r),()=>nh(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var k0=()=>null,D6=()=>()=>{};function ml(){let{adapter:e,ready:o}=v0(),t=jf(l=>{let{listeners:i}=ul(e);return i.add(l),()=>i.delete(l)},[e]),r=jf(()=>ul(e).rows,[e]),a=R6(o?t:D6,o?r:k0,k0);L6(()=>{if(!o)return;let l=ul(e);l.rows===null&&!l.loading&&C0(e)},[e,o]);let n=jf(()=>o?C0(e):Promise.resolve(),[e,o]),s=jf(l=>nh(ul(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function N6(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function P0(){let{currentSlug:e}=v0(),{rows:o}=ml();return N6(o,e)}import{canDuplicatePage as gJ,DuplicatePageDialog as yJ}from"efficient-easel/page-copy";import{jsx as To,jsxs as KM}from"react/jsx-runtime";import{useEffect as HZ,useId as WZ,useMemo as $Z,useRef as zZ,useState as Ly}from"react";import{useScreenDocument as UZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as jZ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as qM}from"efficient-easel/page-copy";import{AddIcon as GZ}from"efficient-easel/icons";import{Button as KZ,Dialog as qZ,EmptyState as VZ,LoadingSpinner as YZ,Paragraph as XZ,SidebarLayout as ZZ,SidebarNavItem as Ry,Title as JZ,toast as VM}from"efficient-shell/ui";import{jsx as Tt,jsxs as cR}from"react/jsx-runtime";import{useEffect as U7,useState as Og}from"react";import{CanvasFrame as j7}from"efficient-easel/easel";import{Button as G7,Card as K7,FitFrame as q7,Text as V7}from"efficient-shell/ui";import{jsx as A0,Fragment as Y6,jsxs as X6}from"react/jsx-runtime";import{useEffect as F0,useLayoutEffect as Z6}from"react";var qf="data-theme",T0="light";function M6(e){return e.getAttribute(qf)===T0?"light":"dark"}function H6(e,o){return M6(e)===o?!1:(o==="light"?e.setAttribute(qf,T0):e.removeAttribute(qf),!0)}function W6(e){return Ux(e).getItem(Jm)}function Ose(e,o){Ux(e).setItem(Jm,o)}function $6(e,o,t=new Date().getHours()){return Lw({mode:o.mode,override:W6(e),switchShown:o.switchShown,hour:t})}function O0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>H6(t,$6(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[qf]}),()=>n.disconnect()}var z6="style";function U6(e,o){let t=Fd(o),r=!1;for(let a of jw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function E0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>U6(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[z6]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as j6,VIEW_TABLET_MIN as G6}from"efficient-easel/screen/lib/content/view-tiers";var nr={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"},Vo=nr,K6=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),q6=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(K6([Vo.fit,Vo.fitTablet,Vo.fitPhone]))};
8
+ var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
9
+ var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Xt};
10
+ var TABLET_MIN = ${G6}, DESKTOP_MIN = ${j6};
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(Vo.fitTablet)}, ${JSON.stringify(Vo.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(Vo.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(Vo.fit)}, ${JSON.stringify(Vo.fitTablet)}, ${JSON.stringify(Vo.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(Vo.min)}, ${JSON.stringify(Vo.minTablet)}, ${JSON.stringify(Vo.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(Vo))},
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);`,V6="storefront-fit-words";function _0(e){let o=e.createElement("script");return o.id=V6,o.textContent=q6,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var J6=`
303
+ [${Ue}][${Ue}] { cursor: text; }
304
+ `;function Vf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ko(),n=er(t);return F0(()=>{if(o)return O0(o,{mode:r,switchShown:a})},[o,r,a]),F0(()=>{if(o)return E0(o,n)},[o,n]),Z6(()=>{if(o)return _0(o)},[o]),X6(Y6,{children:[A0(ZT,{}),A0("style",{children:J6}),e]})}import{jsx as dL}from"react/jsx-runtime";import{memo as PK}from"react";import{Render as TK}from"efficient-easel/render";import{jsx as Nn}from"react/jsx-runtime";import{createContext as Q6,useContext as eW,useMemo as oW}from"react";var sh=Q6(null);function tW({children:e}){return Nn(sh.Provider,{value:"first",children:e})}function Xf({children:e}){return Nn(sh.Provider,{value:"below",children:e})}function xl(){return eW(sh)}function lh(){return xl()==="below"?{loading:"lazy"}:{}}function Zf(e){let o=lh();return Nn("img",{...e,...o})}var B0="laterSlideIds",rW=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function L0(e){return bf(e?.filter(o=>!o?.type||!rW.has(o.type)))}function Yf(e,o=[]){if(Array.isArray(e))for(let t of e)Yf(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))Yf(r,o)}return o}function R0(e,o){let t=o?.type,r=o?.props?.id;return oW(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Nn(tW,{children:Nn(n,{...l})}):Nn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function D0(e){return e.props?qe(e,o=>{let t=ze(o,D0),r=e.type===jC&&t.every(a=>a.type===Hd)?zC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function N0(e){return ld(e,o=>ze(o,D0))}var aW="Flex",M0="ListSearch",H0=["FAQ"],nW="listKey";function W0(e,o){let t={search:e.type===M0,list:H0.includes(String(e.type))};return qe(e,r=>{for(let a of r){let n=W0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===aW&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function $0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=qe(e,n=>ze(n,s=>$0(s,o,r)));return r&&(e.type===M0||H0.includes(String(e.type)))?{...a,props:{...a.props,[nW]:r}}:a}function z0(e){return an(e,o=>{let t=new Set;for(let r of o)W0(r,t);return t.size?ze(o,r=>$0(r,t,"")):o})}import{isNode as u$,isNodeList as HE}from"efficient-easel/data";import{jsx as Ee,Fragment as o$,jsxs as dr}from"react/jsx-runtime";import{jsx as xh}from"react/jsx-runtime";import{Fragment as cW,jsx as pW}from"react/jsx-runtime";import{jsx as ih}from"react/jsx-runtime";import{createContext as iW,Fragment as dW,useContext as fW}from"react";import{jsx as U0,jsxs as sW}from"react/jsx-runtime";import{lazy as lW}from"react";var j0=lW(()=>import("./section-css-style-42PP2TPA.js"));function G0({css:e,id:o,attr:t}){return U0(j0,{css:e,id:o,attr:t})}var K0={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,[Ld]:""};let o=e.render;e.render=t=>{let r=pC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):sW(vr,{className:"sf-section-css",attrs:{[cC]:a},children:[U0(j0,{css:r,id:a}),o(t)]})}}};var q0=iW(null);function V0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=vk(t),a=ih(dW,{children:o},"page");return ih(q0.Provider,{value:t,children:r?[ih(G0,{css:r,id:kk,attr:Jd},"css"),a]:a})}function Y0(){return fW(q0)}function vt(){return Rd(Y0())===yC}function Jf({className:e,children:o}){let t=vt();return pW(cW,{children:o(ot(e,t))})}import{SITE_SIDE as uW}from"efficient-easel/screen/lib/content/length-units";var X0="sideSpace",hl=uW,dh="none",ple=[{value:"box",label:"Box"},{value:hl,label:"Site"},{value:dh,label:"None"}],ule="box",mle="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 Z0(e){return e===hl||e===dh?e:"box"}function xle(e){return e===hl||e===dh?e:void 0}import{parseOption as ph}from"efficient-shell/format";var Qf="standard",oO=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],ch=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],fh=[...ch,"description"],J0={standard:["eyebrowLook"],editorial:[...ch,"eyebrowLook"],simple:fh,statement:fh,natural:ch,essay:fh},Q0=["gap-5","gap-3"],eO=["text-[length:var(--size-body,16px)]","text-[15px]"];function yle(e){return ph(Q0,Q0[0],e)}function Sle(e){return ph(eO,eO[0],e)}function tO(e){return ph(oO,Qf,e)}function ble(e){let o=oO.map(r=>r.value),t=[...new Set(Object.values(J0).flat())];return et(e,t.map(r=>[[r],yd("headStyle",o,Qf,o.filter(a=>!J0[a].includes(r)))]))}import{readHidable as mW,VIEW_TIERS as xW,viewKeyAt as hW}from"efficient-easel/draw";var ua={direction:"row",share:"content",align:"center"},ma={top:14,bottom:14,topPhone:12,bottomPhone:12},ec={wrap:"nowrap",loop:"scroll",sectionAccent:dC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},rO={gap:120,gapPhone:64},oc={...Do,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},aO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},Il={top:24,bottom:24,topPhone:16,bottomPhone:16},xa={top:16,bottom:16,topPhone:12,bottomPhone:12},gl={justify:"between",wrap:"wrap",gap:32,separator:"none"},yl={...Do,letterSpacing:.1,lineHeight:1.5};var tc={top:24,bottom:24,topPhone:24,bottomPhone:24},rc={top:72,bottom:72,topPhone:72,bottomPhone:72},Mn={top:100,bottom:100,topPhone:60,bottomPhone:60},ac={top:120,bottom:120,topPhone:70,bottomPhone:70},IW={top:24,bottom:24,topPhone:24,bottomPhone:24},gW=40,nc={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},yW={top:24,bottom:24,topPhone:24,bottomPhone:24},sc={top:24,bottom:24,topPhone:24,bottomPhone:24},SW={top:84,bottom:84,topPhone:84,bottomPhone:84},lc={top:48,bottom:48,topPhone:48,bottomPhone:48},ic={top:80,bottom:80,topPhone:60,bottomPhone:60},dc={top:100,bottom:60,topPhone:60,bottomPhone:40},fc={top:60,bottom:60,topPhone:40,bottomPhone:40},cc={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},pc={top:76,bottom:76,topPhone:76,bottomPhone:76},uc={top:76,bottom:76,topPhone:76,bottomPhone:76},bl={top:80,bottom:40,topPhone:60,bottomPhone:32},wl={top:76,bottom:76,topPhone:76,bottomPhone:76},mc={top:72,bottom:72,topPhone:72,bottomPhone:72},xc={top:40,bottom:64,topPhone:24,bottomPhone:36},hc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Ic={top:48,bottom:48,topPhone:48,bottomPhone:48},Cl=e=>{let o=Ie(e.bandPadding)??gW;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},nO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),uh=e=>cn(e.headPlacement)==="own-box",Be=(e,o)=>({top:nO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:nO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),sO=e=>({top:e.topPhone,bottom:e.bottomPhone}),Sl=e=>o=>uh(o)?{top:0,bottom:e.bottom}:e,bW=(e,o)=>{let t=mW(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},gc={Banner:{frame:()=>Be(tc)},Cards:{frame:Sl(Be(rc))},Chart:{frame:()=>Be(wl)},ContactLocations:{frame:()=>Be(Mn,sO(Mn))},Countdown:{frame:()=>Be(lc)},DocBody:{frame:()=>Be(ic)},DocMasthead:{frame:()=>Be(dc)},DocMetaCards:{frame:()=>Be(fc)},FAQ:{frame:e=>{let o=uh(e)||!["num","title","linkText"].some(r=>bW(e,r)),t=Be(ac);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Be(cc)},Grid:{frame:()=>Be(IW)},Integrations:{frame:()=>Be(pc)},KeyFeatures:{frame:()=>Be(uc)},Logos:{frame:e=>uh(e)?0:Be(Cl(e))},LongRead:{frame:Sl(Be(nc))},Masthead:{frame:()=>Be(bl,sO(bl))},Mockup:{frame:()=>Be(wl)},OrderSummary:{frame:()=>Be(yW)},PaymentBadges:{frame:()=>Be(sc)},Prose:{frame:Sl(Be(mc))},SectionHeader:{frame:e=>{let o=Be(xc);return tO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:Sl(Be(hc))},Stats:{frame:()=>Be(Ic)},Testimonials:{frame:Sl(Be(SW))},Ticker:{frame:()=>Be(ma),edge:!0}};function Ble(e,o,t){let r=z(gc,e)??t;return r?aa({values:Qs(o,po,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var lO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function wW(e,o){let t={...e};for(let r of xW)delete t[hW(o,r)];return t}function Lle(e,o,t,r){let a=z(gc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=Qs(o,po,!0),l=(i,d)=>aa({values:wW(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:lO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:lO(n,"bottom")})}}var CW=/^(?:[^\s]*:)?p[ytb]-/;function iO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!CW.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 kW}from"efficient-easel/data";var mh=new Set(["FAQ"]);function Yo(e,o){if(!mh.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:kW(t)}var cO={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}},pO=new Set(Object.keys(cO));function hh(e,o){return o?.innerPadding??z(cO,e)}var Hn=e=>hh(e)??{};var yc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),vW=new Set(["Divider"]),PW=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),dO=new Set(["ProductGrid"]);function Ih(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...Qs(n,po,t),sideSpace:Z0(n.sideSpace)},l=r?aa({values:s,frame:r(n)},!0).outer:bk(s),i=a(n);if(!l)return i;let d=u=>xh(Jf,{className:u?`${l.className} ${u}`:l.className,children:h=>xh(de,{className:h,style:l.style,children:i})}),f=wr(n,{atSectionLine:!0}),x=wr(n);return f===x?d(f):xh(of,{line:"by-box",draw:u=>d(u?x:f)})}}var uO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!PW.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=hh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:br,unitKey:Xd,fallback:r,tablet:!0,siteSide:!0})};return}if(dO.has(o))return;let a=[br.top,br.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=fO(o,e);if(n){xO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!hh(o,e)){if(dO.has(o)){Ih(e);return}yc.has(o)||vW.has(o)||Ih(e,o==="Flex"?t=>Kk(t.bgImage):mh.has(o)?t=>Yo(o,t):void 0,!0,fO(o,e))}}},TW=["Heading","Text","ImageBlock","ButtonBlock"],OW=["LogoBlock"],mO={Text:e=>Tr(e,"text").textStyle?.startsWith("heading-")?el.heading:el.text,Heading:()=>el.heading,ButtonBlock:()=>el.text,Breadcrumb:()=>mx(Il),SpecStrip:()=>mx(xa),...Object.fromEntries(Object.entries(gc).map(([e,o])=>[e,o.frame]))};function fO(e,o){return z(mO,e)??o?.ownPad?.frame}var EW={ButtonBlock:"Outer padding"};function _W(e,o){let t=e[Ht],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=wn().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{[Ht]:s,...l}=e;return n.length?{...l,[Ht]:n}:l}function AW(e,o,t){if(o<=0)return null;let r=Array.isArray(e[Ht])?e[Ht]:[];return(t?wn().filter(a=>a.startsWith(po[t])):wn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function xO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,AW,z(EW,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?_W(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var hO={name:"blockPadding",applies:(e,o,t)=>(TW.includes(e)||OW.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(mO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}xO(e,o,t,r)},draw(e,o){yc.has(o)||Ih(e,void 0,!0)}};import{createContext as gh,useContext as Sc}from"react";var IO=gh(null);function eie(){return Sc(IO)===!0}function oie(){return Sc(IO)!==null}var FW=gh(!1);function tie(){return Sc(FW)}function rie(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 bc=gh(null);function aie(){return Sc(bc)}import{jsx as ha}from"react/jsx-runtime";import{Component as WW,createContext as $W,lazy as Sie,Suspense as bie,useContext as zW,useSyncExternalStore as UW}from"react";function BW(e,o){let t=e.trim();if(!wc(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 lie(e){return e.startsWith("/")||wc(e)}function wc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var kl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function gO(e,o){return BW(e,o)?{...kl}:{}}function iie(e){return typeof e=="string"?e.trim():""}var die="data-sf-box-link",yO="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",yh="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",LW="data-sf-box-jump";function RW(e){return`sf-box-jump-${e}`}function fie(e,o){return e===!0?da(o):""}function DW({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 cie(e){let o=`[${LW}="${e}"]`,t=`.${RW(e)}`,r=`[id="${e}"]:target`;return DW({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 NW="hrefRewrite";function MW(){return on("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function HW(){return typeof process<"u"&&!0}function mie(e){let o=e?.[NW];return typeof o=="string"?o.trim():""}function SO(e){if(!e)return null;let o=MW(),t=o.rewrites.get(e);return!t&&!HW()&&o.missed.add(e),t??null}var jW={Link:cP,Image:fP},bO=$W(jW);function Tie({runtime:e,children:o}){return ha(bO.Provider,{value:e,children:o})}function bh(){return zW(bO)}function Oie(){return bh().pagePath??null}var GW=()=>()=>{},KW=()=>If()||null,qW=()=>null;function VW(){return UW(GW,KW,qW)}function Ia({hrefRewrite:e,newTab:o,...t}){let{Link:r}=bh(),a=VW(),n=o===!0?{...t,...kl}:o==="auto"?{...t,...gO(t.href,a)}:t,s=SO(e);return s?ha(Sh,{name:s.name,href:n.href,fallback:ha(r,{...n}),children:ha(YW,{Link:r,rewrite:s.rewrite,...n})},s.key):ha(r,{...n})}function YW({Link:e,rewrite:o,...t}){let r=fo(o(t.href)),a=r&&Pb(r)?r:t.href;return ha(e,{...t,href:a})}var Sh=class extends WW{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 Cc(e){let{Image:o}=bh();return ha(o,{...e})}import{jsx as j3}from"react/jsx-runtime";import{jsx as ye,jsxs as vo,Fragment as W3}from"react/jsx-runtime";import{imageCopyUrl as CO,imageSrcSet as XW}from"efficient-shell/image-copies";var wO;function wh(){return wO===void 0?{}:{host:wO}}var Fie="(max-width: 800px) 100vw, min(100vw, 1600px)",Bie="(max-width: 960px) 100vw, 50vw";function ga(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=XW(e,{...wh(),...t===void 0?{}:{maxWidth:t}});return r?{src:CO(e,o,wh()),srcSet:r}:{src:e}}var ZW=/[\s"'()\\;]/;function Lie(e){let o=CO(e,1920,wh());return o===e?ZW.test(e)?`url("${xx(e)}")`:`url(${e})`:`url("${xx(o)}")`}import{parseOption as JW}from"efficient-shell/format";var vl="solid",QW=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function kO(e){return JW(QW,vl,e)}var Ch="sf-secnum-outline",vO="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",PO=`@supports (-webkit-text-stroke: 1px currentColor){.${Ch}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as TO}from"efficient-shell/format";var kh="plain",OO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],e3="line",o3={KeyFeatures:"filled"};function Pl(e){return z(o3,e)??kh}function EO(e,o){return TO(OO,Pl(o),e)}function Wie(e){return TO(OO,e3,e)}import{jsxs as ba,jsx as Me}from"react/jsx-runtime";import{Fragment as Rh}from"react";import{Fragment as P3,jsx as Fh}from"react/jsx-runtime";import{Fragment as zO,jsx as Al,jsxs as y3}from"react/jsx-runtime";import{createContext as Ah,useContext as Fl,useEffect as S3,useId as b3,useMemo as w3,useRef as C3}from"react";import{armEntrance as k3}from"efficient-shell/format";import{jsx as t3}from"react/jsx-runtime";import{useEffect as AO,useRef as _O,useState as r3}from"react";import{armEntrance as a3,entranceAttrs as n3,playEntrance as s3}from"efficient-shell/format";function kc({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=_O(null),d=rf(),f=at(),x=n?f:Cr,u=Tl(i,!0,s),{attrs:h,style:I}=n3(e[u]),S=_O(Wn.seed(e)),v=JSON.stringify(e);return AO(()=>{let O=i.current;if(O){if(o){let R=Wn.next(S.current,e,u);S.current=R.seen,R.play&&s3(O);return}return a3(O)}},[v,u,o]),x.scope(t3("div",{ref:i,className:Co(`${yn}${d.fill}${t?` ${t}`:""}`,x.className),...r,...x.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:d.inner(l)}))}var Wn={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Wn.seed(o);return{play:r[t]!==e[t],seen:r}}};function Tl(e,o=!0,t=!1){return Ol(e,o,t)??"desktop"}function Ol(e,o=!0,t=!1){let[r,a]=r3(void 0),n=kr(t?"edge":"by-box"),{phone:s,tablet:l}=jv(n);return AO(()=>{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 El="@name",FO="@body",BO="@value",LO={[El]:"Name",[FO]:"Body",[BO]:"Value"},l3={TimelineTrack:{"entries.date":El,"entries.title":El,"entries.blurb":FO},Footprint:{"offices.city":El},Stats:{"items.label":El,"items.value":BO}};function i3(e){let{key:o,row:t}=Wt(e);return t?`${o}.${t.rowKey}`:null}function sr(e,o){if(!e)return o;let t=i3(o);return t?z(l3,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as m3,entranceAttrs as x3,scrollAttrs as h3}from"efficient-shell/format";import{parseFocal as c3,formatFocal as p3,readScroll as u3}from"efficient-shell/format";import{phoneKey as d3,tabletKey as f3}from"efficient-easel/screen/lib/content/view-tiers";var vh=[{block:"HeroSlide",upload:"mediaImage",focus:Xs.image},{block:"HeroSlide",upload:"mediaImage2",focus:Xs.image2},{block:"HeroSingle",upload:"mediaImage",focus:Xs.image},{block:"HeroSingle",upload:"mediaImage2",focus:Xs.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],RO=e=>[e,f3(e),d3(e)],ode=[...new Set(vh.flatMap(e=>RO(e.focus)))].sort();function DO(e,o){let[t,r,a]=RO(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var uo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},$n="_gScroll",vc="_cScroll",Pc=$d(Object.values(uo));function lr(e,o){return u3(qs(e,uo.effect,o),qs(e,uo.zoom,o),qs(e,uo.start,o),qs(e,uo.end,o))}function zn(e){let o={desktop:lr(e,"desktop"),tablet:lr(e,"tablet"),phone:lr(e,"phone")};return tt.every(t=>o[t].effect==="none")?null:o}function Ph(e){let o=ak(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=c3(a);return p3(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function NO(e,o){return Ph(DO(e,o))}var Tc={},Th="_partMotion",Oh=[...zd,Qo,Ge.duration,Ge.delay,...Pc];function HO(e){return Iv(e,Th)}function ya(e,o){return gv(e,Th,o)}var I3=new Set([qo.kind,Qo,uo.effect]);function WO(e,o,t,r){let{[t]:a,...n}=ya(e,o),s=r==null||r===""||r==="none"&&I3.has(t)?n:{...n,[t]:r};return yv(e,Th,o,Object.keys(s).length?s:null)}function _l(e){return{entrance:Sn(e),hover:Ob(e),scroll:zn(e)}}function $O(e){let o=_l(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Oc(e,o){let{attrs:t,style:r}=x3(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(m3)}}function Ec(e,o){let{attrs:t,style:r}=h3(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 g3=4;function Un(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&g3)&&(o=t);return o}var Eh="data-sf-part-host";function _c(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Eh)&&!t.classList.contains(yn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var Sa="data-sf-part-lift",MO="sf-part-lift";function Ac(e){if(e.getElementById(MO))return;let o=e.createElement("style");o.id=MO,o.textContent=Pv(`[${Sa}]`).join(`
317
+ `),e.head.appendChild(o)}var Fc=Ah(null),jO=Ah(null),GO=Ah(null);function KO({needles:e,styles:o,motions:t=Tc,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=b3(),i=kr(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),f=Ct(),x=w3(()=>{let h=Object.keys(t).filter(I=>$O(t[I]));return Uv(e,o,l,I=>sr(r,I),I=>nl(r,I),I=>h.includes(I)?_l(t[I]):null,h,I=>la(n,I),f)},[d,f]);if(!x)return Al(zO,{children:s});let u=Gv(x,{inBox:i});return y3(zO,{children:[u&&Al("style",{href:`${v3}${l}-${jk(u)}`,precedence:VO,dangerouslySetInnerHTML:{__html:Uk(u)}}),Al(Fc.Provider,{value:x,children:s})]})}var _h=new WeakMap;function UO(e,o){let t=Un(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Un(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)?(Ac(e.ownerDocument),e.setAttribute(Sa,"")):e.removeAttribute(Sa)}function qO(e){let o=C3(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Tl(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 S3(()=>{let d=o.current,f=_c(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let x=s?()=>{let I=Oc(f,s),S=k3(f);return()=>{S?.(),I()}}:null,u=_h.get(f)??[];_h.set(f,u);let h={element:d,arm:x,entering:s!==null&&s.kind!=="none",scroll:l?()=>Ec(f,l):null,lift:a};return u.push(h),UO(f,u),()=>{let I=u.indexOf(h);I<0||(u.splice(I,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,UO(f,u),u.length||_h.delete(f))}},[i,a]),o}var VO="sf-part-styles",v3=`${VO}-`;function YO(e){let o=Fl(Fc),t=Fl(jO),r=Kv(o,e);return r&&r.stamp!==t?r:null}function kde(e){return wx(Fl(Fc),e)}function XO({stamp:e,children:o}){return Al(jO.Provider,{value:e,children:o})}function vde({children:e}){let o=Fl(Fc);return Al(GO.Provider,{value:o,children:e})}function Pde(e){return wx(Fl(GO),e)}function Bl({value:e,children:o}){let t=YO(e),r=qO(t);return t?Fh(XO,{stamp:t.stamp,children:Fh("span",{ref:r,[bv]:t.stamp,...t.textStyle?{[na]:t.textStyle}:{},children:o})}):Fh(P3,{children:o})}import{jsx as Bh,Fragment as T3}from"react/jsx-runtime";function ZO({className:e}){return Bh("span",{className:e||void 0,children:"\xAE"})}function st(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(Bh(ZO,{},`r${a}`))}),Bh(T3,{children:t})}var Bde=ZO;function Ve(e,o=!1,t){let r=L3(o),a=pd(e);if(a.length===1){let[s]=a,l=Tb(s),i=l?F3(l,s.children):s.children;return ba(Bl,{value:e,children:[t,Bc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(Me("span",{"data-sf-bullet":"",className:O3,children:Bc(s.children,r)},l));return}if(s.number!=null){n.push(ba("span",{"data-sf-number":s.number,className:E3,children:[ba("span",{className:_3,children:[s.number,"."]}),Bc(s.children,r)]},l));return}l>0&&!A3(a[l-1])&&n.push(Me("br",{},`br${l}`)),n.push(Me(Rh,{children:Bc(s.children,r)},l))}),ba(Bl,{value:e,children:[t,n]})}var O3="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",E3="relative block pl-[2em]",_3="absolute left-0 w-[1.6em] text-right tabular-nums";function A3(e){return e.bullet||e.number!=null}var JO="text-accent underline underline-offset-[0.18em]";function F3(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function B3(e){return Gk(e)||void 0}function Bc(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(Me("span",{children:st(a.text)},n)),r=!0;return}r||t.push(Me("span",{},`e${n}`)),t.push(eE(a,n,o)),r=!1}),r||t.push(Me("span",{},"end")),t}function Lh(e,o){return e.length===1&&e[0].kind==="text"?st(e[0].text):e.map((t,r)=>t.kind==="text"?Me(Rh,{children:st(t.text)},r):eE(t,r,o))}function L3(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function jde(e){return QO(e)}function QO(e,o){let t=e.split(`
318
+ `);return ba(Bl,{value:e,children:[o,t.map((r,a)=>ba(Rh,{children:[a>0?Me("br",{}):null,Me("span",{children:r})]},a))]})}function eE(e,o,t){if(e.kind==="link")return wc(e.href)?Me(Ia,{newTab:"auto",href:e.href,className:JO,children:Lh(e.children,t)},o):Me("a",{href:e.href,className:JO,children:Lh(e.children,t)},o);let r=Lh(e.children,t),a=Cb[e.kind];if(a)return Me("span",{[kb]:a,children:r},o);switch(e.kind){case"underline":return Me("u",{children:r},o);case"sup":return Me("sup",{children:r},o);case"sub":return Me("sub",{children:r},o);case"color":{let n=B3(e.color);return n?Me("span",{style:{color:n},children:r},o):Me("span",{children:r},o)}case"accent":case"highlight":return Me("em",{className:t,children:r},o);case"bold":return Me("strong",{className:"font-semibold",children:r},o);case"italic":return Me("em",{className:"italic",children:r},o);case"strike":return Me("s",{className:"line-through",children:r},o);default:return Me("span",{children:r},o)}}function oE(e,o=!0,t=!1){let r=e.split(`
319
+ `);return Me(Bl,{value:e,children:r.map((a,n)=>ba("span",{children:[t?QO(a):Ve(a,o),n<r.length-1?Me("br",{}):null]},n))})}function tE(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Dh,jsxs as D3}from"react/jsx-runtime";import{jsx as R3}from"react/jsx-runtime";function rE(){return R3("span",{className:"block h-px w-[30px] bg-current"})}var Nh={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 N3(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var M3=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Nh.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,H3=`flex items-center gap-3.5 font-mono ${Nh.labelLarge} uppercase tracking-[0.3em] opacity-80 ${Nh.labelUpTo800} max-view-wide:tracking-[0.25em]`;function jn({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let l=at(),i=s?l:Cr;if(o==="line")return i.scope(D3("div",{className:Co([a,H3,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Dh(rE,{}),Dh("span",{children:Ve(e)})]}));let d=o==="filled"?M3:N3(t,r);return i.scope(Dh("span",{className:Co([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Ve(e)}))}var Oe={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},aE=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Oe.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading1} ${Oe.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading2} ${Oe.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading3} ${Oe.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading4} ${Oe.shelfHeadingUpTo800Xl}`}],$3="lg";function z3(e){return(aE.find(o=>o.value===e)??aE.find(o=>o.value===$3)).cls}var Gn=(e,o=!1)=>typeof e=="string"?oE(e,o):e,ir=(e,o=!1)=>typeof e=="string"?Ve(e,o):e;function nE({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=vl,look:i="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:x,rowGap:u,descriptionSize:h,className:I="",eyebrowLook:S=kh,titleSize:v,count:O,capped:R=!1,rootPadsBottom:T=!1}){let g=vt(),w=x??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?vo("div",{className:ot(`${yP} 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))]"}`,g),children:[vo("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&&ye("span",{className:`font-mono ${Oe.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:ir(e)}),o&&ye("h2",{className:`${z3(v)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:Gn(o)})]}),(a||t||O)&&vo("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&ye("span",{className:`max-w-[340px] truncate font-display ${Oe.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:ir(a)}),t&&vo(Ia,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Oe.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[ir(t.text),ye("span",{"aria-hidden":!0,children:"\u2192"})]}),O&&ye("span",{className:`whitespace-nowrap font-mono ${Oe.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:O})]})]}):null;if(i==="editorial"){let y=!!o||!!d;return vo("header",{className:`${w} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${I}`.trim(),children:[e&&(typeof e=="string"?ye(jn,{text:e,className:"pb-2"}):ye("span",{className:"pb-2",children:e})),y&&vo("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&&vo(W3,{children:[" ",ye("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:f},children:d})]})]}),a&&ye("p",{className:`max-w-[360px] pb-1 text-right font-display ${Oe.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(i==="simple"){let y=`${w} ${I}`.trim();return vo("div",{className:y||void 0,children:[e&&(typeof e=="string"?ye(jn,{text:e,look:S,className:"mb-4 block"}):ye("span",{className:"mb-4 block",children:e})),o&&ye("h2",{className:`font-heading2 ${Oe.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Oe.headingMediumUpTo800Small}`,children:Gn(o)})]})}if(i==="statement"){let y=`${w} ${I}`.trim();return vo("div",{className:y||void 0,children:[e&&(typeof e=="string"?ye(jn,{text:e,look:S,className:"mb-4 block"}):ye("span",{className:"mb-4 block",children:e})),o&&ye("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:Gn(o,!0)})]})}if(i==="natural"){let y=`flex max-w-[680px] flex-col ${u??"gap-5"} ${w} ${I}`.replace(/\s+/g," ").trim();return vo("div",{className:y,children:[e&&(typeof e=="string"?ye(jn,{text:e,look:S}):ye("span",{children:e})),o&&ye("h2",{className:`font-heading2 ${Oe.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Oe.headingMediumUpTo800Small}`,children:Gn(o)}),a&&ye("p",{className:`${h??`${Oe.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let y=`${w} ${I}`.trim();return vo("div",{className:y||void 0,children:[e&&(typeof e=="string"?ye(jn,{text:e,look:S,className:"mb-4 block"}):ye("span",{className:"mb-4 block",children:e})),o&&ye("h2",{className:`font-heading2 ${Oe.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Oe.headingSmallUpTo800}`,children:Gn(o)})]})}let _=!!a||!!t,E=!!o,D=kO(l)==="outlined",b=`font-mono ${Oe.label} uppercase tracking-[0.3em]`,F=null;if(e)if(D)F=ye("span",{className:`${vO} text-fg-dim ${Ch}`,children:ir(e)});else if(s&&!n&&typeof e=="string"){let y=e.indexOf("/"),k=y===-1?e:e.slice(0,y),P=y===-1?"":e.slice(y);F=vo("span",{className:b,children:[ye("span",{className:"text-accent",children:ir(k)}),P&&ye("span",{className:"text-fg-dim",children:ir(P)})]})}else F=ye("span",{className:`${b} ${n?"text-accent":"text-fg-dim"}`,children:ir(e)});return vo("div",{className:T?"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:[D&&e&&ye("style",{children:PO}),vo("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&ye(_k,{children:ye(Zf,{...U3(hP(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),F]}),E&&ye("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Oe.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Oe.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:Gn(o)}),_&&vo("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&ye("p",{className:`max-w-[340px] font-display ${Oe.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:ir(a)}),t&&vo(Ia,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Oe.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[ir(t.text),ye("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function U3(e){let o=ga(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function sE({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return j3(nE,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Rl,jsxs as Z3}from"react/jsx-runtime";import{useEffect as J3,useState as hE}from"react";import{jsx as G3}from"react/jsx-runtime";var lE="sf-photo-hover";function Lc({sheet:e,name:o=lE}){return e?G3("style",{href:o,precedence:lE,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as uE,Fragment as V3}from"react/jsx-runtime";import{createContext as Y3,useContext as Dc}from"react";var K3=Xb["view-desktop"];function q3(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var Mh=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,Rc=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function Sfe(e,o){return{phone:Mh(e.phone*Rc(o?.phone)),tablet:Mh(e.tablet*Rc(o?.tablet)),desktop:Mh(e.desktop*Rc(o?.desktop))}}function Hh(e){if([e.phone,e.tablet,e.desktop].every(r=>Rc(r)>=1))return;let o=[{below:Xt,slot:e.phone},{below:K3,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return q3(t,e.desktop)}function iE(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 dE=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,fE=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function cE(e,o){if(e===o)return e;let t=[...fE(e),...fE(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 pE(e,o){if(!o)return e;let t=iE(e),r=iE(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:cE(dE(t,s),dE(r,s))})),n=cE(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 X3={hasWidth:!1},Ll=Y3(X3);function vfe(){return Dc(Ll).hasWidth}function Pfe(e){let{bound:o}=Dc(Ll);return o&&Hh(o)||e}function mE(e){let{bound:o}=Dc(Ll);return pE(e,o&&Hh(o))}function xE({children:e}){let o=Dc(Ll);return o.bound?uE(Ll.Provider,{value:{hasWidth:o.hasWidth},children:e}):uE(V3,{children:e})}function IE({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=lh(),h=mE(s),I=l?h:s,[S,v]=hE(!1),[O,R]=hE(!1),T=t||"";J3(()=>{v(!1),R(!1)},[T]);let g=gf(T),w=g&&!O?ga(T):{src:T},_=!T||S;return Z3("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Rl("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:_?e:null}),Rl(Qd,{fill:ol,children:T&&(g?Rl("img",{src:w.src,alt:r,...w.srcSet?{srcSet:w.srcSet,sizes:I}:{},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:()=>w.srcSet?R(!0):v(!0)}):Rl(Cc,{src:T,alt:r,fill:!0,sizes:I,priority:i,...x?.className?{className:x.className}:{},style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>v(!0)}))}),Rl(Lc,{sheet:x?.sheet})]})}import{jsx as Q3}from"react/jsx-runtime";var Dl="sf-empty-hides",Wh="sf-empty-else",Nc="sf-head-core",Mc="sf-head-box",Nl="holdsHeadCore",Ml="isHeadCore",e$=`.${Dl}:empty{display:none}.${Dl}:not(:empty)~.${Wh}{display:none}.${Mc},.${Nc}{display:contents}.${Mc}:not(:has(.${Nc}:not(:empty))){display:none}`;function Hc(){return Q3("style",{children:e$})}var Wo={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)]"},gE={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"},$h="sf-itc-boxes",t$="sf-itc-steps";function zh(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 rce({num:e,title:o,description:t,boxes:r,steps:a,columns:n=3,cta:s,padTop:l,padBottom:i,bandPad:d,editing:f=!1,omitHead:x=!1,cardImage:u,cardImageUnit:h,cardText:I,rows:S,copies:v}){let O=vt(),R=v!==void 0,T=S&&(R||(r?.blockCount??0)>0)?S:null,g=d??Ck({padTop:l,padBottom:i},Hn("ProcessSteps")),w=R?[]:zh(a),_=w.length>0?w:f&&!r&&!R?[1,2,3].map(y=>({tag:c("Column {n}",{n:y})})):[],E=gE[n]??gE[3],D=T?"grid-cols-1":E,b=T?"":" [&>*]:min-h-[560px]",F=I==="on-image";return Ee(de,{as:"section",className:ot(["relative z-[2] border-b border-line bg-bg",g.className].filter(Boolean).join(" "),O),style:{...g.style,...aT(u,h)},children:dr("div",{className:ot(kC,O),children:[x?null:Ee(sE,{num:e,title:o?.trim()?Ve(o,!0):void 0,desc:t?.trim()?Ve(t,!1):void 0}),r&&!R?dr(o$,{children:[Ee(Hc,{}),T?Ee(bc.Provider,{value:{hand:T,ids:r.blockIds??[],boxes:[]},children:Ee(r,{className:`${$h} ${Dl} sf-card grid ${D} gap-[2px] border border-line bg-line${b} [&>*]:bg-bg`,minEmptyHeight:260})}):Ee(r,{className:`${$h} ${Dl} sf-card grid ${D} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,R&&v?Ee("div",{className:`${$h} sf-card grid ${D} gap-[2px] border border-line bg-line${b} [&>*]:bg-bg`,children:T?Ee(bc.Provider,{value:{hand:T,copies:!0},children:v}):v}):null,_.length>0&&Ee("div",{className:`${t$} ${Wh} sf-card grid ${E} gap-[2px] border border-line bg-line`,children:_.map((y,k)=>{let P=(y.specs??[]).filter(C=>(C?.label??"").trim()||(C?.value??"").trim());return dr("article",{className:F?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[dr("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:[Ee(IE,{label:y.tag?.trim()||y.title?.trim()||`column-${k+1}`,src:y.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),Ee("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${Ks(.55)} 0%, transparent 30%, transparent 70%, ${Ks(.65)} 100%)`}}),F&&Ee("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${Ks(.73)} 55%, ${Ks(.92)} 100%)`}}),y.tag?.trim()&&Ee("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${Wo.label} uppercase tracking-[0.3em] text-accent`,children:st(y.tag)}),y.meta?.trim()&&Ee("span",{className:F?`absolute right-5 top-[18px] z-[2] font-mono ${Wo.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${Wo.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:st(y.meta)}),F&&(y.title?.trim()||y.copy?.trim())&&dr("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()&&Ee("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${Wo.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${Wo.headingSmallUpTo700Small}`,children:Ve(y.title,!0)}),y.copy?.trim()&&Ee("p",{className:`min-h-[3em] font-display ${Wo.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Ve(y.copy,!1)})]})]}),F?P.length>0&&Ee("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:P.map((C,B)=>dr("div",{className:"flex flex-col gap-1",children:[C.label?.trim()&&Ee("span",{className:`font-mono ${Wo.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:st(C.label)}),C.value?.trim()&&Ee("span",{className:`font-display ${Wo.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:st(C.value)})]},B))}):dr("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()&&Ee("h3",{className:`font-heading3 ${Wo.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${Wo.headingSmallUpTo700Large}`,children:Ve(y.title,!0)}),y.copy?.trim()&&Ee("p",{className:`font-display ${Wo.bodySmall} leading-[1.55] text-fg-dim`,children:Ve(y.copy,!1)}),P.length>0&&Ee("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:P.map((C,B)=>dr("div",{className:"flex flex-col gap-1",children:[C.label?.trim()&&Ee("span",{className:`font-mono ${Wo.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:st(C.label)}),C.value?.trim()&&Ee("span",{className:`font-display ${Wo.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:st(C.value)})]},B))})]})]},k)})}),s?.text&&Ee("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:dr(Ia,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${Wo.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[st(s.text),Ee("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var r$=["selected","highlighted"],yE="data-sf-card-state",bE="pointer-events-none absolute inset-0 border border-accent",wE="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",CE="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",kE="absolute inset-y-0 left-0 w-[3px] bg-accent",vE="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",PE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",SE=e=>{let o=sC.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},a$={[SE("muted")]:`var(${SE("fg")})`};function Uh(e){return e?.selected===!0}function jh(e){return e?r$.filter(o=>e[o]===!0).join(" "):""}function TE(e,o="frame"){let t=jh(e);return t?o==="frame"&&Uh(e)?{[yE]:t,className:"relative isolate",style:{...a$}}:{[yE]:t,className:"relative"}:{}}var n$={highlighted:!0},s$={},Wc="badge";function ice(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||zs(t,r)}))}function OE(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===Wc||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function dce(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,[Wc]:s===a?t:""})),states:e.map((n,s)=>s===a?n$:s$)}}function fce(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function cce(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 EE="data-sf-card-press",_E=`${yO} appearance-none bg-transparent border-0 p-0 m-0`,AE=`${_E} cursor-pointer`,FE=_E;import{paymentMarkItems as l$,paymentMarks as i$}from"efficient-shell/icons/payment";var d$=[eb,ob],BE=e=>d$.includes(e),LE=e=>l$({name:e.label,kind:e.kind}),f$=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function RE(e){return i$(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>LE(t).some(r=>f$(r,o)))?.kind??""}))}function xce(e){return LE(e)[0]??null}var DE={heading:"Trusted by *teams worldwide*"},$c=()=>[{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")}],c$=sd.Logos,yce={label:"Logos",drawsPictures:!0,fields:c$,defaultProps:{items:[],contained:!0}};var p$=()=>$c().map(e=>({label:e.alt}));function NE(e,o){let t=nd(e,o,p$()).rows.filter(r=>r.label);return BE(Ne(e))?RE(t):t}var Hl="Flex",m$="Text",Wl=e=>Object.values(e??{}).filter(HE),x$=e=>e.type===ro&&Ne(e.props)!=="",WE=e=>{if(e.type!==Hl)return!1;let o=Wl(e.props).flat();return o.length>0&&o.every(x$)},zc=e=>cn(e.props?.headPlacement)==="own-box"||WE(e),Gh=e=>e===void 0||Array.isArray(e)&&e.length===0;function $E(e){return e.type===m$?!0:e.type===Hl&&Wl(e.props).every(o=>o.every($E))}var zE={ProcessSteps:e=>Gh(e.boxes)&&zh(e.steps).length===0,Logos:e=>Ne(e)?h$(e):Gh(e.logos)&&Gh(e.items)};function h$(e){return sb(e)!==null&&NE(e,!1).length===0}function I$(e){return Wl(e.props).flat().every(o=>!nd(o.props,!1).rows.some(OE))}function Uc(e){let o=Wl(e.props).flat();return o.some(zc)&&o.every(t=>zc(t)||$E(t))}function g$(e){if(!u$(e)||!zc(e))return e;let o=WE(e)?I$(e):z(zE,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Ml]:o?"empty":!0}}}function ME(e){return qe(e,o=>ze(o,g$))}function UE(e){let o=Object.entries(e.props??{}).filter(([,r])=>HE(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===Hl&&t.props?{key:o[0][0],inner:t}:null}function jE(e){if(e?.type!==Hl||!e.props)return e;if(Uc(e)){let t=ME(e);return{...t,props:{...t.props,[Nl]:!0}}}let o=UE(e);return!o||!Uc(o.inner)?e:{...e,props:{...e.props,[o.key]:[ME(o.inner)],[Nl]:!0}}}function GE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=jE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var y$=e=>z(zE,String(e.type))?.(e.props??{})===!0;function S$(e){if(e.type!==Hl||!e.props)return!1;let o=Uc(e)?null:UE(e),t=o?o.inner:e;if(!Uc(t))return!1;let r=Wl(t.props).flat().filter(zc);return r.some(a=>Ne(a.props)!=="")&&r.every(y$)}function KE(e){return qe(e,o=>b$(o))}function b$(e){let o=!1,t=[];for(let r of e){if(S$(r)){o=!0;continue}let a=KE(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function qE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(jE(a)!==a)return a;let n=KE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var w$=["DocMasthead","AlloyWheelsListing"],jc="titleLevel",C$=e=>e===2?"h2":"h1",Kh=e=>C$(e?.[jc])==="h2";function VE(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>w$.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[jc]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as E$}from"efficient-easel/draw";var Kn="showFor";function YE(){return on("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var k$=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Mce(){return YE().choices}function Hce(){return YE().revision}function XE(e){return k$(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as v$}from"efficient-easel/draw";var qh="_wallLabelId",P$="_wallLabelledBy",Vh=e=>e.props?.id==null?"":String(e.props.id);function T$(e){if(!e||e.type!=="Text"||!Vh(e))return!1;let o=v$(e.props?.text);return!o.hidden&&o.text.trim()!==""}var O$=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Vh(e)!=="",ZE=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function JE(e){let o=ze(e,r=>qe(r,JE)),t=null;for(let r=1;r<o.length;r++){if(!O$(o[r])||!T$(o[r-1]))continue;let a=`sf-wall-label-${Vh(o[r-1])}`;t??=o.slice(),t[r-1]=ZE(t[r-1],qh,a),t[r]=ZE(t[r],P$,a)}return t??o}function QE(e){return an(e,JE)}var e_="_cardPressTitles",_$="_cardPressTitle";function Xce(e,o){let t=e?.[e_],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var o_=(e,o)=>({...e,props:{...e.props,...o}});function A$(e){let o=e.props??{};return e.type!=="Text"||E$(o.text).hidden||typeof o[Ko]=="string"||typeof o[qh]=="string"?"":Nt(o)}function t_(e,o,t,r){return ze(e,a=>{let n=A$(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),o_(a,{[_$]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Kn]))return a;let s=a.props?.[tn],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return qe(a,(i,d)=>ra(a.type,d)?i:t_(i,l,t,r))})}function r_(e){let o,t=qe(e,(r,a)=>{let n=ze(r,r_);if(!ra(e.type,a))return n;let s=[],l=t_(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?o_(t,{[e_]:o}):t}function a_(e){return an(e,o=>ze(o,r_))}import{pinnedDuplicateIndices as nU}from"efficient-easel/draw";import{jsx as lt,jsxs as Q_}from"react/jsx-runtime";import{createContext as Xz,useContext as Zz,useEffect as Jz,useRef as Qz,useState as e1}from"react";import{jsx as Fr,jsxs as f_}from"react/jsx-runtime";import{useEffect as qn,useRef as c_,useState as wa}from"react";import{jsx as n_,Fragment as F$,jsxs as B$}from"react/jsx-runtime";import{useEffect as L$,useRef as s_,useState as R$}from"react";var D$="#t=0.001",N$=2;function M$(e,o){if(e.readyState<N$||!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 l_({src:e,objectPosition:o="50% 50%",onError:t}){let r=s_(null),a=s_(null),[n,s]=R$(!1);return L$(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{M$(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),B$(F$,{children:[n_("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&&n_("video",{ref:r,src:`${e}${D$}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var H$="data-part",ope=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 Ar(e){return{[H$]:e}}var $l={min:40,max:100,step:5,fallback:100,unit:"vh"};function W$(e){return`${typeof e=="number"?e:$l.fallback}${$l.unit}`}function i_(...e){return e.some(o=>typeof o=="number"||zl(o)!==null)}var Yh={...Ak,fallback:680,unit:"px"},npe={ratio:"16/9",px:`${Yh.fallback}px`},$$=/^(\d{1,5}(?:\.\d{1,3})?)px$/;function zl(e){if(typeof e!="string")return null;let o=Tk(e);if(o!==null)return{unit:"ratio",value:e,css:"auto",aspect:o};let t=$$.exec(e);if(t&&Number(t[1])>0){let r=Math.min(Yh.max,Math.max(Yh.min,Number(t[1])));return{unit:"px",value:`${r}px`,px:r,css:`${r}px`}}return null}function z$(e){return Object.keys(e.style??{}).some(o=>o.startsWith("--sf-hero-ar-"))}function spe({heightDesktop:e,heightTablet:o,heightMobile:t,heightFixed:r,heightFixedTablet:a,heightFixedMobile:n}){let s=I=>zl(I)?.value,l=i_(e,t,s(r),s(n)),i=i_(o,s(a)),d=(I,S,v)=>{let O=zl(S);return O?.unit==="ratio"?{[`--sf-hero-h-${I}`]:O.css,[`--sf-hero-ar-${I}`]:O.aspect}:{[`--sf-hero-h-${I}`]:O?.css??W$(v)}},f="view-tablet:max-view-desktop:h-[var(--sf-hero-h-t)]",x=l?i?`h-[var(--sf-hero-h-m)] ${f} view-desktop:h-[var(--sf-hero-h-d)]`:"h-[var(--sf-hero-h-m)] view-tablet:h-[var(--sf-hero-h-d)]":i?`h-screen min-h-[680px] ${f} view-tablet:max-view-desktop:min-h-0`:"h-screen min-h-[680px]";if(!l&&!i)return{className:x,style:void 0};let u={...l?d("d",r,e):{},...i?d("t",a,o):{},...l?d("m",n,t):{}},h=z$({style:u})?l?i?" aspect-[var(--sf-hero-ar-m,auto)] view-tablet:max-view-desktop:aspect-[var(--sf-hero-ar-t,auto)] view-desktop:aspect-[var(--sf-hero-ar-d,auto)]":" aspect-[var(--sf-hero-ar-m,auto)] view-tablet:aspect-[var(--sf-hero-ar-d,auto)]":" view-tablet:max-view-desktop:aspect-[var(--sf-hero-ar-t,auto)]":"";return{className:`${x}${h}`,style:u}}var Gc=1280,U$="16 / 9",j$="100svh",G$=[{minDppx:3.01,dppx:4,capPx:Math.floor(Gc/4)},{minDppx:2.01,dppx:3,capPx:Math.floor(Gc/3)},{minDppx:1.01,dppx:2,capPx:Math.floor(Gc/2)},{minDppx:null,dppx:1,capPx:Gc}];function d_(e=j$){let o=`max(100vw, calc(${e} * ${U$}))`;return[...G$.map(({minDppx:t,capPx:r})=>`${t===null?vn:`${vn} and (min-resolution: ${t}dppx)`} min(${o}, ${r}px)`),"100vw"].join(", ")}function fpe(e,o){let t=zl(o);if(t?.unit==="px")return t.css;if(t?.unit==="ratio"){let[r,a]=t.aspect.split("/").map(n=>n.trim());return r&&a?`calc(100vw * ${a} / ${r})`:void 0}if(typeof e=="number"&&e>=$l.min&&e<=$l.max)return`${e}svh`}var K$=.5;function Ul({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=K$,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:x=!1,slideShown:u,laterSlide:h=!1,laterOfLead:I=!1,phoneFrame:S}){let v=d_(S),O=IP(d,f),R=xl(),[T,g]=wa(!1),w=R==="below"&&!T,_=R==="first",E=a||"",D=n||"",b=c_(null),F=Ol(b,!0,!0),y=F===void 0?void 0:F==="phone",k=Sf({video:e,av1:o,videoPhone:t,av1Phone:r},y===!0),P=k.video||"",C=yf(P,k.av1),[B,H]=wa(!1),[q,$]=wa(!1),[le,pe]=wa(!1),[ee,xe]=wa(!1),oe=u??!0,[ie,ge]=wa(!1),Re=R!=="first"&&!I,[$e,yo]=wa(!1),oo=c_(null);qn(()=>{if(!Re)return;if(document.readyState==="complete"){yo(!0);return}let N=()=>yo(!0);return window.addEventListener("load",N,{once:!0}),()=>window.removeEventListener("load",N)},[Re]),qn(()=>{H(!1),$(!1),pe(!1),xe(!1)},[P,E,D]),qn(()=>{oe&&ge(!0)},[oe]),qn(()=>{let N=oo.current;N&&(oe?N.play()?.catch(()=>{}):N.pause())},[oe,ie,$e]),qn(()=>{if(!h||Re&&!$e)return;let N=()=>g(!0);if(typeof window.requestIdleCallback=="function"){let he=window.requestIdleCallback(N,{timeout:2e3});return()=>window.cancelIdleCallback(he)}let te=setTimeout(N,800);return()=>clearTimeout(te)},[h,Re,$e]),qn(()=>{let N=oo.current;if(!N)return;let te=()=>{N.playbackRate=l};return te(),N.addEventListener("loadedmetadata",te),()=>N.removeEventListener("loadedmetadata",te)},[P,l]);let io=gf(E),So=E&&(io||D)&&!q?ga(E):{src:E},Xe=D&&!q?ga(D):{src:D},bo=D&&!w&&!T?[{sized:Xe,media:vn},...E?[{sized:So,media:Ms}]:[]]:[];return f_("div",{ref:b,className:"absolute inset-0 z-[1]",...Ar("hero-media"),children:[Fr("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),bo.map(({sized:N,media:te})=>Fr("link",{rel:"preload",as:"image",href:N.src,media:te,fetchPriority:"high",...N.srcSet?{imageSrcSet:N.srcSet,imageSizes:v}:{}},te)),(E||D)&&(io||D?(()=>{let N=Fr("img",{...E?{src:So.src}:{},...So.srcSet?{srcSet:So.srcSet,sizes:v}:{},alt:"",...w?{loading:"lazy"}:{},..._?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${O.className}`.trim(),style:{display:B?"none":"block",objectPosition:i,...O.style},onError:te=>{te.currentTarget.currentSrc&&(So.srcSet||Xe.srcSet?$(!0):H(!0))}},D?void 0:E);return D?f_("picture",{children:[Fr("source",{media:vn,srcSet:Xe.srcSet||Xe.src,sizes:v}),N]},`${E} ${D}`):N})():Fr(Cc,{src:E,alt:"",fill:!0,...w?{}:T?{loading:"eager"}:{priority:!0},sizes:v,className:`z-[2] object-cover ${O.className}`.trim(),style:{display:B?"none":"block",objectPosition:i,...O.style},onError:()=>H(!0)},E)),s&&!x&&P&&y!==void 0&&ie&&(!Re||$e)&&!le&&Fr("video",{ref:oo,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:()=>pe(!0),children:C.map(N=>Fr("source",{src:N.src,type:N.type},N.src))},P),s&&x&&P&&y!==void 0&&ie&&(!Re||$e)&&!ee&&(!E||B)&&Fr(l_,{src:P,objectPosition:i,onError:()=>xe(!0)},P)]})}import{jsx as mo,Fragment as k_,jsxs as eI}from"react/jsx-runtime";import{jsx as Vn}from"react/jsx-runtime";import{useRef as q$}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as V$,scrollAttrs as Y$}from"efficient-shell/format";function Kc({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=q$(null),x=rf(),u=at(),h=n?u:Cr,I=Tl(f,!0,s),{attrs:S,style:v}=Y$(e[I],o[I]),O=V$.includes(e[I].effect),R=Co(`${yn}${x.fill}${t?` ${t}`:""}`,h.className);if(O&&l==="picture")return h.scope(Vn("div",{ref:f,className:R,...r,...h.attrs,...a?{style:a}:{},children:Vn(Ok,{attrs:S,style:v,children:x.inner(d)})}));let T=Vn(Ek,{children:x.inner(d)});if(O){let w=i??(x.fill?"h-full":void 0);return h.scope(Vn("div",{ref:f,className:R,...r,...h.attrs,style:{...a,overflow:"clip"},children:Vn("div",{...w?{className:w}:{},...S,style:v,children:T})}))}let g=Object.keys(v).length||a?{style:{...a,...v}}:{};return h.scope(Vn("div",{ref:f,className:R,...r,...h.attrs,...S,...g,children:T}))}var Ca=["media","image","image2"],fr={media:"Media",image:"Image",image2:"Image 2"},jl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function qc(e,o){return e==="image"&&Zs(o)>1?"Image 1":fr[e]}var Npe="Video file",Mpe="Upload a video file",Hpe="AV1 file",Wpe="Upload an AV1 file";function X$(e,o){return yd("mediaType",jd,o,[e])}var Z$=new Set(Object.keys(Gd)),p_="heroPart";function J$(e,o){return{...o,[p_]:e}}function $pe(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...jd.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 jd)for(let i of t[l])n[i]=Ze(n[i],X$(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=Ze(n[l],i));for(let l of Ca)for(let i of o[l]??[])n[i]=J$(l,n[i]);return n}function Q$(e){let o=e?.[p_];return Ca.includes(o)?o:null}function u_(e,o){let t={};for(let[r,a]of Object.entries(e))Q$(a)===o&&(t[r]=a);return t}function m_(e){if(!Z$.has(e.type))return[];let o=[{part:"media",label:fr.media,depth:0}];return sk(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:qc("image",e.props),depth:1}),Zs(e.props)>1&&o.push({part:"image2",label:qc("image2",e.props),depth:1})),o}function ka(e,o){return`${e}::${o}`}function Vc(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return Ca.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var Gl="data-sf-hero-part";import{MOTION_TIMING as ez}from"efficient-shell/format";var g_="grayscale(1) contrast(1.03)",Gpe="Black and white";function oz(e){return e===!0?{filter:g_}:{}}function tz(e){let{filter:o}=oz(e);return o?{style:{filter:o}}:{}}var va="sf-photo-grayscale",Qh="data-sf-photo-host",x_={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Jc=`@media (hover:hover){.${va}{filter:${g_};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))}.${va}:hover,[data-sf-photo-host]:hover .${va}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${va}{transition:none}}`;function y_(e){let o=ez.hover,t={...e.duration!==o.duration.default?{[x_.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[x_.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function S_(e,o,t){if(e===!0)return tz(!0);if(t?.kind==="mono"){let r=y_(t);return{className:va,sheet:Jc,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:va}:{}}var b_="data-sf-repeat",Xh="sf-photo-zoom",rz="--sf-photo-zoom",Kpe="sf-photo-wash",Yc="sf-photo-wash-rest",Kl="sf-photo-wash-hover",Zc="sf-photo-frame",w_=(e,o)=>`:not([${b_}]:not(${o}) .${e})`,Jh=(e,o)=>`[${b_}]${o} .${e}${w_(e,o)}`,Zh=(e,o)=>`${o},${Jh(e,":hover")},[${Qh}]:hover .${e}${w_(e,":hover")}`,h_=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))`,az=`.${Kl}{opacity:0}@media (hover:hover){.${Yc},.${Kl}{transition:${h_("opacity")}}${Zh(Kl,`.${Zc}:hover .${Kl}`)}{opacity:1}${Zh(Yc,`.${Zc}:hover .${Yc}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Xh}{transition:${h_("transform")}}${Zh(Xh,`.${Zc}:hover .${Xh}`)}{transform:scale(var(${rz}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Yc},.${Kl}{transition:none}}`,qpe="sf-photo-move";function Vpe(e){if(!e||!e.zoom&&!e.darken)return null;let o=y_(e);return{className:Zc,sheet:az,...o?{style:o}:{}}}function C_(e){return e===!0?{[va]:Jc}:{}}var Xc="sf-box-reveal",Ype="sf-box-reveal",nz=8,I_=.3,Xpe=`@media ${Ms}{.${Xc}{opacity:0;transform:translateY(${nz}px);transition:opacity ${I_}s ease-out,transform ${I_}s ease-out}${Jh(Xc,":hover")},${Jh(Xc,":focus-within")}{opacity:1;transform:none}}@media ${Ms} and (prefers-reduced-motion:reduce){.${Xc}{transition:none;transform:none}}`;import{hidableText as sz}from"efficient-easel/draw";var lz={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"},iz={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 v_(e){let o=e.isVideo&&DP(e.videoSource)==="youtube",t=e.isVideo&&NP(e.videoPlayback)==="click",r=o?MP(sz(e.youtubeUrl)):null,a=lk(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:ik(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Zs(e)>1}}function ql(e,o){return Sn(ya({_partMotion:e},o))}function Vl(e,o){return zn(ya({_partMotion:e},o))}var Qc=e=>Ph({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),P_=ol.img;function T_({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?mo(kc,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?mo(Kc,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:i}):mo("div",{className:a,...n,...s?{style:s}:{},children:i})}function Yn(e,o){return S_(void 0,void 0,Kb(ya({_partMotion:e},o)))}function O_(e){return Ca.some(o=>Yn(e,o).className)?{hostAttrs:{[Qh]:""},sheet:Jc}:{}}function ep({treatment:e,children:o}){return e.className?mo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):mo(k_,{children:o})}function op({color:e,opacity:o,passClicks:t=!0}){return o>0?mo("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},...Ar("tint")}):null}function tp({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let i=o&&t?{[Gl]:e}:void 0;return mo(T_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:P_,children:l})}function E_({partMotion:e,editing:o,children:t}){let r=ql(e,"media"),a=Vl(e,"media"),n=Yn(e,"media"),s=mo(Qd,{fill:ol,children:t}),l=n.className?mo("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?mo(T_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:P_,children:l}):mo(k_,{children:l})}function __({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return eI("div",{className:`absolute inset-0 z-[1] grid ${lz[o]} ${iz[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[mo(tp,{part:"image",editing:t,marked:r,entrance:ql(a,"image"),scroll:Vl(a,"image"),origins:Qc(n),className:"relative overflow-hidden",children:eI(ep,{treatment:Yn(a,"image"),children:[mo(Ul,{posterSrc:nt(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),mo(op,{color:n.tintColor,opacity:n.tintOpacity})]})}),mo(tp,{part:"image2",editing:t,marked:r,entrance:ql(a,"image2"),scroll:Vl(a,"image2"),origins:Qc(s),className:`relative overflow-hidden ${Vv({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:eI(ep,{treatment:Yn(a,"image2"),children:[mo(Ul,{posterSrc:nt(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),mo(op,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Br,Fragment as dz,jsxs as fz}from"react/jsx-runtime";import{useEffect as cz,useRef as pz,useState as uz}from"react";import{PlaySolidIcon as mz}from"efficient-shell/icons/efficient-looks";function A_({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=uz("large");return cz(()=>n("large"),[e]),e?fz(dz,{children:[!o&&a!=="none"&&Br(Zf,{src:a==="large"?HP(e):WP(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&&Br("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Br("iframe",{src:Ox(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 F_({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=pz(null),d=Ol(i,!0,!0)==="phone";if(!e&&!o)return null;let f=Sf({video:o,av1:t,videoPhone:r,av1Phone:a},d),x=yf(f.video,f.av1);return n&&!l?e?Br("iframe",{src:Ox(e,"click"),title:Ex,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"}):Br("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=>Br("source",{src:u.src,type:u.type},u.src))},f.video):Br("button",{ref:u=>{i.current=u},type:"button","aria-label":Ex,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:Br(mz,{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 N_}from"efficient-shell/format";var M_=["top","middle","bottom"],H_=["left","center","right"],W_="bottom",$_="left",xz={top:"Top",middle:"Middle",bottom:"Bottom"},hz={left:"Left",center:"Center",right:"Right"},Tue="Up and down",Oue="Sideways",Iz={top:"flex-start",middle:"center",bottom:"flex-end"},gz={left:"flex-start",center:"center",right:"flex-end"},yz="--sf-hero-phone-y",Sz="--sf-hero-phone-x";function bz(e){return N_(M_,W_,e)}function wz(e){return N_(H_,$_,e)}function z_(e,o){let t=bz(e),r=wz(o),a={};return t!==W_&&(a[yz]=Iz[t]),r!==$_&&(a[Sz]=gz[r]),a}var Cz="--sf-hero-phone-words-top",kz="--sf-hero-phone-words-bottom",vz="--sf-hero-phone-box-gap",Eue=100,_ue=90,Aue=28,Pz=0,Tz=200,Fue="Words space top",Bue="Words space bottom",Lue="Space between boxes";function oI(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(Tz,Math.max(Pz,Math.round(e)))}function U_(e,o,t){let r={},a=oI(e),n=oI(o),s=oI(t);return a!==void 0&&(r[Cz]=`${a}px`),n!==void 0&&(r[kz]=`${n}px`),s!==void 0&&(r[vz]=`${s}px`),r}function Rue(){return M_.map(e=>({label:xz[e],value:e}))}function Due(){return H_.map(e=>({label:hz[e],value:e}))}var Oz="--sf-hero-words-top",Ez="--sf-hero-words-bottom",L_="--sf-hero-words-top-t",R_="--sf-hero-words-bottom-t",Nue=140,Mue=56,_z=0,Az=400,D_="pt-[var(--sf-hero-words-top,140px)] pb-[var(--sf-hero-words-bottom,56px)]",Fz="view-wide:max-view-desktop:pt-[var(--sf-hero-words-top-t,var(--sf-hero-words-top,140px))] view-wide:max-view-desktop:pb-[var(--sf-hero-words-bottom-t,var(--sf-hero-words-bottom,56px))]";function Bz(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(Az,Math.max(_z,Math.round(e)))}function j_(e,o,t,r){let a={},n=(s,l)=>{let i=Bz(l);i!==void 0&&(a[s]=`${i}px`)};return n(Oz,e),n(Ez,o),n(L_,t),n(R_,r),Object.keys(a).length===0?{className:null,style:a}:{className:L_ in a||R_ in a?`${D_} ${Fz}`:D_,style:a}}import{hexToRgb as Lz,parseOption as Rz}from"efficient-shell/format";var Dz=!0;var Nz=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function G_(e){let o=Lz(e);return o?`${o.r},${o.g},${o.b}`:null}function K_(e){return e==null?Dz:e!==!1}var Mz="classic",Hz=[{label:"Classic",value:"classic"},{label:"Edges",value:"edges"}],Wz=160,$z=62,zz=".38";function Uz(e){return Rz(Hz,Mz,e)}function q_(e,o){let t=(e?G_(e):null)??G_(tr);if(Uz(o)==="edges"){let r=`rgba(${t},${zz})`,a=`rgba(${t},0)`;return`linear-gradient(180deg, ${r} 0px, ${a} ${Wz}px), linear-gradient(180deg, ${a} ${$z}%, ${r} 100%)`}return`linear-gradient(180deg, ${Nz.map(([r,a])=>`rgba(${t},${a}) ${r}%`).join(", ")})`}import{hexToRgb as V_,parseOption as jz}from"efficient-shell/format";var Y_="bottom";var Gz=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],Kz={bottom:180,top:0,left:270,right:90},qz=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],Vz=[[null,33],[.6,67],[.94,100]];function Yz(e,o){let{r:t,g:r,b:a}=V_(e)??V_(tr);return`rgba(${t},${r},${a},${o})`}function X_(e){return jz(Gz,Y_,e)}function Z_(e=tr,o=Y_){let t=X_(o),r=(t==="top"||t==="bottom"?qz:Vz).map(([a,n])=>`${a===null?"transparent":Yz(e,a)} ${n}%`);return`linear-gradient(${Kz[t]}deg, ${r.join(", ")})`}function J_(e,o){let t=fo(e.overlayColor),r=fo(e.overlayPosition),a=fo(o)??tr;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:X_(r)}}var eU=Xz({});function pme({name:e,process:o,mediaType:t=Gd.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:f,objectPositionPhone:x,objectPositionTablet:u,tintColor:h=tr,tintOpacity:I=0,groups:S,editing:v=!1,themeClassName:O,themeStyle:R,overlayColor:T,overlayPosition:g,mediaLayout:w,mediaLayoutPhone:_,mediaImage2:E,objectPosition2:D,objectPosition2Phone:b,objectPosition2Tablet:F,tintColor2:y=tr,tintOpacity2:k=0,videoSource:P,youtubeUrl:C,videoPlayback:B,partMotion:H,laterSlide:q=!1}){let $=vt(),le=at(),{alignment:pe="left",textureOpacity:ee,textureOn:xe,textureColor:oe,textureShape:ie,quietVideo:ge,phoneUpDown:Re,phoneSideways:$e,phoneWordsTop:yo,phoneWordsBottom:oo,phoneBoxGap:io,wordsTop:So,wordsBottom:Xe,wordsTopTablet:bo,wordsBottomTablet:N,holdReel:te,reelHeld:he,shownSlide:De,ratioMin:Oo,posterPhoneFrame:Zo}=Zz(eU),Eo=j_(So,Xe,bo,N),ve=xl(),yt=q&&ve==="first",Za=Qz(null),[Vr,bm]=e1(De===void 0?void 0:!1);Jz(()=>{let _o=Za.current;bm(De===void 0||!_o?void 0:B_(_o.closest(".hero-track"),"data-slide-name")[De]===_o)});let Lo=t==="video",Yr=Lo?nt(r):void 0,As=Lo?nt(n):nt(r)??nt(n),Ro=Lo?{av1:nt(s),phone:nt(l),av1Phone:nt(i),poster:nt(d)}:{},Ja=typeof a=="number"?a/100:1,{fromYouTube:Vt,onClick:Fs,youTubeId:Xr,backgroundFile:mr,desktopLayout:ed,phoneLayout:wm,twoPictures:Qa}=v_({isVideo:Lo,videoSource:P,videoPlayback:B,youtubeUrl:C,mediaLayout:w,mediaLayoutPhone:_}),[en,od]=e1(!1);en&&he===!1&&od(!1);let Bs=!en,Jo=J_({overlayColor:T,overlayPosition:g},oe),td=Lo?null:ql(H,"image"),rd=Lo?null:Vl(H,"image"),ad=O_(H),G=lt(ep,{treatment:Lo?{}:Yn(H,"image"),children:lt(Ul,{videoSrc:mr?Yr:void 0,videoAv1Src:mr?Ro.av1:void 0,videoSrcPhone:mr?Ro.phone:void 0,videoAv1SrcPhone:mr?Ro.av1Phone:void 0,posterSrc:As,posterSrcPhone:Ro.poster,showVideo:mr,playbackRate:Ja,objectPosition:f,objectPositionPhone:Lo?void 0:x,objectPositionTablet:Lo?void 0:u,quiet:ge,slideShown:Vr,laterSlide:q,laterOfLead:yt,phoneFrame:Zo})}),Ae=Q_("section",{ref:Za,className:Co(`${Oo?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${O?` ${O}`:""}`,le.className),...le.attrs,style:R,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":mr&&Yr?"video":"still",...ad.hostAttrs,...Ar("slide"),children:[lt(Lc,{sheet:ad.sheet}),lt(E_,{partMotion:H,editing:v,children:Qa?lt(__,{laterSlide:q,desktopLayout:ed,phoneLayout:wm,editing:v,partMotion:H,first:{src:r,objectPosition:f,objectPositionPhone:x,objectPositionTablet:u,tintColor:h,tintOpacity:I},second:{src:E,objectPosition:D,objectPositionPhone:b,objectPositionTablet:F,tintColor:y,tintOpacity:k}}):Vt||td||rd?Q_(tp,{part:Lo?"media":"image",editing:v,entrance:td,scroll:rd,origins:Qc({objectPosition:f,objectPositionTablet:u,objectPositionPhone:x}),className:"absolute inset-0 z-[1]",children:[G,Vt&&lt(A_,{youTubeId:Xr,ownPoster:!!As,background:!Fs,editing:v})]}):G}),Fs&&lt(F_,{youTubeId:Xr,fileSrc:Vt?void 0:Yr,fileAv1Src:Vt?void 0:Ro.av1,fileSrcPhone:Vt?void 0:Ro.phone,fileAv1SrcPhone:Vt?void 0:Ro.av1Phone,playing:en,onPlay:()=>{od(!0),te?.()},editing:v}),Bs&&!Qa&&lt(op,{color:h,opacity:I,passClicks:!1}),Bs&&K_(xe)&&lt("div",{className:"absolute inset-0 z-[2]",style:{background:Jo.own?Z_(Jo.color,Jo.position??void 0):q_(Jo.color,ie),...ee!==void 0?{opacity:ee/100}:null},...Ar("overlay")}),Bs&&lt("div",{className:[Oo?"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)]":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",Eo.className??"pt-[140px] pb-14",$?bC:"",v?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...lC,...z_(Re,$e),...U_(yo,oo,io),...Eo.style},...Ar("hero-content"),children:S&&lt(S,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return le.scope(yt?lt(Xf,{children:Ae}):Ae)}var o1=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as s1}from"efficient-easel/draw";import{isNodeList as tU}from"efficient-easel/data";var tI=3,rI=()=>({type:K,props:{direction:"column"},slots:{[we]:[{type:"ImageBlock"},{type:K,props:{direction:"column"},slots:{[we]:[{type:"Text",props:hr()},{type:"Text"}]}}]}}),t1=()=>Array.from({length:tI},rI);var r1=["","","","","",""],a1="#ticker",Yl="strip",aI={sectionAccent:gr,line:!1};function oU(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function nI(e){return oU(e).length>0}function yme(e){return e.showTicker!==!1&&nI(e)}var l1=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,tU(r)?r.map(a=>l1(a,o)):r]))}}),rU=e=>{let[o]=Rt([rI()],a=>s1(a)),{id:t,...r}=l1(o,e).props;return r},it={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>o1.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Ds.toLowerCase()}`,seeds:()=>[],addBlocked:lx,notice:ix},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Ds.toLowerCase()}`,seeds:()=>[],addBlocked:lx,notice:ix},ProcessSteps:{slot:Rs,childType:K,addLabel:`Add ${Ds.toLowerCase()}`,seeds:e=>Array.from({length:tI},()=>rU(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},n1=1,aU={slot:Yl,childType:K,addLabel:`Add ${Ds.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=n1?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>n1?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},i1={Hero:{[Yl]:aU}};function Ame(e){for(let[o,t]of Object.entries(e)){if(co(it,o)&&z(it,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);it[o]=t}}function Fme(e,o){let t=z(it,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:s1(t.childType),...r}}))}:null}var sU=["GalleryB"];function d1(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!sU.includes(l))return s;let i=z(it,l);if(!i?.legacy)return s;let d=s.props??{},f=d[i.slot];if(Array.isArray(f)&&f.length>0)return s;let x=i.legacy(d);if(!x.length)return s;t=!0;let u=String(d.id??l),h=x.map((I,S)=>({type:i.childType,props:{id:`${i.childType}-${u}-${S}`,...I}}));return{...s,props:{...d,[i.slot]:h}}}),a=new Set(nU(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var lU={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},iU={"Footprint.source":"typed"};function f1(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(lU)){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(iU)){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],ab(l)&&l!==a&&!Ne(i)&&(i[to]=l),o=i,t=!0}if(e.type&&o){let r=wd(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=qe({props:o},a=>ze(a,f1));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function c1(e){return ld(e,o=>ze(o,f1))}import{readHidable as dU}from"efficient-easel/draw";var Ut=K,jt=we;function Pa(e){if(e.theme)return er(e.theme);let o=e.site?.themePresets;return o?er({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function fU(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var u1=new Set(["id"]),Lr={},Xl=[],cU={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"]},pU=Object.keys(cU),Ta=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...pU,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function Qe(e){for(let[o,t]of Object.entries(e)){if(co(Lr,o)&&z(Lr,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Lr[o]=t}}function Rr(e){return z(Lr,e)}function uU(e){return co(Lr,e)&&Xl.includes(e)}function m1(e,o=Ta){return co(Lr,e)&&(o.includes(e)||uU(e))}function Zme(e){let o=z(wt,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 sI=e=>dU(e),He=e=>sI(e).text.trim()!=="";function mU(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 xU=e=>e==="heading"?hr():e==="eyebrow"?Jt():{};function hU(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 IU(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 p1(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 gU(e){let o=new Set([...u1,"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 lI=e=>cn(e.headPlacement)==="own-box";function yU(e){return lI(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function SU(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 bU(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 wU(e,o,t){if(!t.press)for(let r of bU(e)){let a=SU(o,r);if(a!==void 0)return a}}function Oa(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:yU(r))??wU(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=(g,w)=>{s.push({key:g,home:w}),i.add(g)},f=r._partStyles??{},x=gU(o),u=0,h=(g,w)=>({type:g,props:{...w,id:`${n}~${g}-${++u}`}}),I=(g,w,_,E,D,b,F)=>{if(D){for(let k of g??[]){let P=typeof k=="string"?k:k[0];_[P]!==void 0&&F(P,`nothing \u2014 the ${E} has no parts, so it is not drawn`)}return}let y=typeof w=="function"?w(r,t):w??{};return p1(g??[],y,_,(k,P,C)=>F(k,C?`nothing \u2014 the old value draws nothing (${E}: no ${P})`:`${b}${E}: ${P}`),t)},S=g=>Rt(g,w=>`${n}~${w}-${++u}`),v=(g,w,_)=>{let E=g.of?g.of(w):Array.isArray(w[g.key])?w[g.key]:[],D=typeof g.props=="function"?g.props(r,t):g.props??{},b=E.map((C,B)=>{let H=C??{},q=g.item?.(H,B,r)??{},$=O(q.reverse?[...g.parts].reverse():g.parts,H,!1,`item ${B+1}: `);return g.flat?q.props?$.map(le=>({...le,props:{...le.props,...q.props,id:le.props.id}})):$:[h(Ut,{name:`${g.name} ${B+1}`,...D,...q.props??{},[jt]:$})]});if(g.groups){let C=g.groups;return _(g.key,E.length?`one Box per item (${E.length}), in a Box per group`:"nothing \u2014 the list is empty"),Sd(E.map(B=>B??{}),C.of,C.of).map((B,H)=>{let q=B.items.map(oe=>oe.item),$=C.parts?O(C.parts,C.head?.(q,r)??{},!1,`group ${H+1}: `):[],le=B.items.map(oe=>b[oe.index]),pe=C.perRow?.(q.length,r),ee=Number.isInteger(pe)&&pe>=1?pe:1,xe=[];if(C.perRow&&ee<le.length)for(let oe=0;oe*ee<le.length;oe++)xe.push(le.slice(oe*ee,(oe+1)*ee).flat());return h(Ut,{name:`${C.name} ${H+1}`,...C.props??{},[jt]:[...$,h(Ut,{name:`${C.itemsName} ${H+1}`,...C.itemsProps?.(q.length,r)??{},[jt]:xe.length?xe.map((oe,ie)=>h(Ut,{name:`${C.rowName??`${C.itemsName} row`} ${ie+1}`,...C.rowProps??{},[jt]:oe})):le.flat()})]})})}let F=g.perRow?.(r),y=g.perRow?Number.isInteger(F)&&F>=1?F:1:0;if(_(g.key,(E.length?g.flat?`each item's parts (${E.length} items), in order`:`one Box per item (${E.length}), its parts inside`:"nothing \u2014 the list is empty")+(y&&E.length?`, in rows of ${y}`:"")),!y)return b.flat();let k=typeof g.rowProps=="function"?g.rowProps(r,t):g.rowProps??{},P=[];for(let C=0;C*y<b.length;C++){let B=b.slice(C*y,(C+1)*y).flat(),H=g.rowFiller?y-b.slice(C*y,(C+1)*y).length:0;P.push(h(Ut,{name:`${g.rowName??`${g.name} row`} ${C+1}`,...k,[jt]:[...B,...Array.from({length:H},(q,$)=>h(Ut,{name:`Empty ${$+1}`,...g.rowFiller,[jt]:[]}))]}))}return P},O=(g,w,_,E)=>{let D=[],b=(y,k)=>_?d(y,k):void 0,F=y=>_?f[y]:void 0;for(let y of g)if(!(y.when&&!y.when(r,_?void 0:w)))switch(y.kind){case"text":{let k=sI(w[y.key]);if(!k.text.trim()&&!(_&&t.press&&o.pressKeepsEmpty?.includes(y.key))){b(y.key,"nothing \u2014 empty words draw nothing, so no block");break}let P=xU(y.role??"body"),{_partStyles:C,...B}=P,H=hU(P,y.styleFrom?{...y.style,...y.styleFrom(r,t)}:y.style,F(y.key),y.props?.align);D.push(h("Text",{text:y.mark==="accentLead"?mU(k.text):y.mark==="accentItalic"?Ns(k.text):k.text,...B,...y.props??{},...H,...k.hidden?{_hidden:!0}:{}})),b(y.key,`${E}Text block: its words${k.hidden?", hidden":""}`);break}case"button":{let k=sI(w[y.key]);if(!k.text.trim()){b(y.key,"nothing \u2014 no words, no button"),b(y.href,"nothing \u2014 no button to link"),typeof y.variant=="object"&&b(y.variant.key,"nothing \u2014 no button to style");break}let P=typeof w[y.href]=="string"&&w[y.href]?w[y.href]:"#",C={...y.style??{},...F(y.key)??{}};D.push(h("ButtonBlock",{label:k.text,href:P,...typeof y.props=="function"?y.props(w,t):y.props??{},...IU(y.variant,w),...Object.keys(C).length?{_partStyles:{label:C}}:{},...k.hidden?{_hidden:!0}:{}})),b(y.key,`${E}Button block: its words`),b(y.href,`${E}Button block: its link`),typeof y.variant=="object"&&b(y.variant.key,`${E}Button block: its Style`);break}case"image":{let k=w[y.key];if(typeof k!="string"||!k){b(y.key,"nothing \u2014 no picture, no block"),y.alt&&b(y.alt,"nothing \u2014 no picture to describe");break}let P=y.alt&&typeof w[y.alt]=="string"?w[y.alt]:"";D.push(h("ImageBlock",{src:k,alt:P,...y.props??{}})),b(y.key,`${E}Image block: its picture`),y.alt&&b(y.alt,`${E}Image block: its alt text`);break}case"list":{D.push(...v(y,w,b));break}case"group":{let k=O(y.parts,w,_,E),P=I(y.box,y.props,w,`${y.name} Box`,!k.length&&!y.keepEmpty,E,b);P&&D.push(h(Ut,{name:y.name,...P,[jt]:k}));break}case"block":{let k=y.parts?O(y.parts,w,_,E):[],P=I(y.box,y.props,w,`${y.type} block`,!!y.parts&&!k.length&&!y.keepEmpty,E,b);P&&D.push(h(y.type,{...P,...y.slot?{[y.slot]:k}:{}}));break}case"core":{let k=y.as??e.type,P={...y.headless?{}:{headPlacement:"own-box"},...y.props??{}},C=y.keep==="rest"?Object.keys(w).filter(H=>!x.has(H)&&!(H in P)):y.keep;for(let H of C)w[H]!==void 0&&(P[H]=w[H],b(H,`the ${k} block inside the Box`));if(y.keep==="rest"){for(let q of Object.keys(y.props??{}))w[q]!==void 0&&!x.has(q)&&b(q,`nothing \u2014 the ${k} block inside the Box has the row's own value`);w.headPlacement!==void 0&&b("headPlacement",`the ${k} block inside the Box: own-box`);let H=Object.fromEntries(Object.entries(f).filter(([q])=>!x.has(q)));Object.keys(H).length&&(P._partStyles=H)}for(let[H,q]of Object.entries(y.rename??{}))w[H]!==void 0&&(P[q]=w[H],b(H,`the ${k} block inside the Box: ${q}`));if(y.derive){Object.assign(P,y.derive.props(w,t));for(let H of y.derive.reads)w[H]!==void 0&&b(H,`the ${k} block inside the Box`)}let B=typeof y.slots=="function"?y.slots(w,t):y.slots??{};for(let[H,q]of Object.entries(B))P[H]=q.flatMap($=>"kind"in $?v($,w,b):S([$]));D.push(h(k,P));break}}return D},R=(g,w)=>{let _=w===0?"Box":`${g.name} Box`,E=O(g.parts,r,!0,w===0?"":`${_}: `),D=typeof g.boxProps=="function"?g.boxProps(r,t):g.boxProps??{},b=p1(g.box??[],D,r,(F,y,k)=>d(F,k?`nothing \u2014 the old value draws nothing (${_}: no ${y})`:`${_}: ${y}`),t);return{type:Ut,props:{name:g.name,...b,[jt]:E,id:fU(n,w)}}},T=[o,...o.also??[]].map(R);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[g,w]of Object.entries(o.reads??{}))r[g]!==void 0&&d(g,w);for(let[g,w]of Object.entries(o.drop??{}))g in r&&(l.push({key:g,why:w}),i.add(g));for(let g of Object.keys(r))u1.has(g)||i.has(g)||l.push({key:g,why:"not in the row \u2014 not carried"});return{node:T[0],nodes:T,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function x1(e,o=Xl,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(Lr,s.type):void 0;if(!l)return[s];let i=Oa(s,l,t);return i.skipped!==void 0?[s]:(a=!0,i.nodes)});return a?{...e,content:n}:e}function h1(e,o=Xl,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(Lr,a.type):void 0;if(!s)return;let l=Oa(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as CU,BLOCK_SIZE_KEYS as kU,parseBlockWidthFit as ap,phoneKey as I1,parseTextFit as rp,tabletKey as g1,viewKeyAt as y1}from"efficient-easel/draw";import{sideLengthAt as vU}from"efficient-easel/screen/lib/content/length-units";var PU="sf-block-size",Zl=["width","minWidth","maxWidth"],np=e=>`${e}Unit`,Dr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,TU={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"}},C1={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"}},OU={desktop:C1.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"}},EU={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},k1="max-view-wide:grow!";function v1(e){return sp(e).mode.phone==="fill"}var _U={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},AU={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},FU="data-sf-min-width",S1={two:{desktop:"wide",phone:fx.phone},three:fx},BU={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)]"]}},iI={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)]"]}},LU={minWidth:{desktop:iI.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:iI.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",...Zl],b1={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},dI={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!"},DU={desktop:dI.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!"},P1={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:P1.phone},T1={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},w1={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:T1.phone};function O1(e){let o=sp(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>EU[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function E1(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=sp(e),n=d=>o?S1.three[d]:S1.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[AU[d]]=s[d].join(" "));return s.min.length&&(i[FU]=s.min.join(" ")),i}function sp(e){let o=RU.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?ap(n)!==void 0:Dr(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=np(a),s={};for(let i of t)s[y1(a,gn(i))]=Dr(e[a]?.[i]),s[y1(n,gn(i))]=e.units?.[a]?.[i];let l=i=>vU(s,{length:a},n,gn(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(ap,e.widthFit)}}function fI(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(k=>rp(e.textFit?.[k])==="ellipsis"),r=o&&!t,a=r?OU:C1,n=r?LU:iI,s=r?DU:dI,l=[],i={},d={},{three:f,sides:x,lengthPerSide:u,mode:h}=sp(e),I=u("width");for(let k of x){let P=h[k];!P||P==="fit"||(l.push(f?a[k][P]:TU[k][P]),P==="fixed"&&(i[_U[k]]=xn(I[k]?.value??CU.fallback,I[k]?.unit)))}for(let k of Zl.filter(P=>P!=="width")){let P=u(k);for(let C of x){let B=P[C];if(B===void 0)continue;let[H,q]=f?n[k][C]:BU[k][C];i[H]=xn(B.value,B.unit),l.push(q)}}let S=rp(e.textFit?.desktop),v=rp(e.textFit?.phone),O=k=>{let P=Dr(e.minFont?.[k]);return P===void 0?void 0:e.units?.minFont?.[k]==="vw"?`${P}vw`:String(P)},R=O("desktop"),T=O("phone"),g=rp(e.textFit?.tablet),w=g!==S||v!==void 0?g:void 0,_=O("tablet"),E=_!==R||T!==void 0?_:void 0,D=Dr(e.maxWidth?.desktop),b=Dr(e.maxWidth?.tablet)??D,F={desktop:D!==void 0,tablet:b!==void 0,phone:(Dr(e.maxWidth?.phone)??b)!==void 0},y=(k,P,C)=>{if(P!=="line"&&P!=="ellipsis")return;let B=k==="tablet"?void 0:k,H=(q,$)=>C||!B?q[k]:$[B];if(P==="line"){l.push(H(s,b1));return}if(l.push(H(dI,b1)),l.push(H(NU,P1)),f&&!C&&k==="desktop")for(let q of["desktop","tablet"])F[q]||l.push(w1[q]);else F[k]||l.push(H(w1,T1))};return w?(y("desktop",S,!0),y("tablet",w,!0),y("phone",v??w,!0)):(y("desktop",S,!1),y("phone",v??S,!1)),S&&(d[nr.fit]=S),w&&(d[nr.fitTablet]=w),v&&(d[nr.fitPhone]=v),R!==void 0&&(d[nr.min]=R),E!==void 0&&(d[nr.minTablet]=E),T!==void 0&&(d[nr.minPhone]=T),!r&&(w||E!==void 0)&&(d[nr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[PU,...l].join(" "),style:i,attrs:d}}function axe(e){if(Dr(e.maxWidth?.desktop)!==void 0)return!0;let o=ap(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function _1(e){return["desktop","tablet","phone"].some(o=>{let t=ap(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Dr(e.minWidth?.[o])!==void 0})}function lp(e){let o={};for(let t of kU){let r=e[t],a=e[g1(t)],n=e[I1(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=np(t),l={desktop:e[s],tablet:e[g1(s)],phone:e[I1(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var A1={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as MU}from"efficient-shell/format";import{convertLength as HU}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as F1}from"efficient-easel/draw";var Gt=(e,o,t,r)=>o===t?e:HU(e,o,t,r,{min:0,max:200,step:4}),Ea={textFit:"line",textFitPhone:"wrap"},_a={...U,[Ko]:""},{label:Dxe,href:Nxe,...WU}=A1.defaultProps,ao=WU,Aa={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...$m,sectionAccent:0},Zn={sectionAccent:-1},J=[...Sr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",xk.unitKey,...gk,...pk,"anchor",Vs,...Pn,Ld,...zd,...Pc,...$d(["widthFit",...Zl,...Zl.map(np)]),...Object.values(Fo)],Xn="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:Xn,fullWidth:Xn,pageWidth:Xn,backgroundWidth:Xn,contentWidth:Xn,contentMax:Xn},ae=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)"])),ip={[Ht]:"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 ne(e,o){let t=Ie(e.sectionPaddingTop)??0,r=Ie(e.sectionPaddingBottom)??0,a=Ie(e.sectionPaddingTopTablet),n=Ie(e.sectionPaddingBottomTablet),s=Ir(e.sectionPaddingUnit),l=Ir(e.sectionPaddingUnitTablet),i=Ir(e.sectionPaddingUnitPhone),d=Array.isArray(e[Ht])?e[Ht]:[],f=(v,O)=>d.includes(v)?0:O,x=(v,O,R,T,g,w)=>{let _=Ie(e[v]);if(_!==void 0)return _+Gt(f(v,w),"px",i,"mobile");let E=T===void 0?{n:g,unit:s,key:R}:{n:T,unit:l,key:O};return Gt(E.n,E.unit,i,"mobile")+Gt(f(E.key,w),"px",i,"mobile")},u=(v,O,R,T,g,w)=>R!==void 0?{[v]:R+Gt(f(v,w??g),"px",l,"tablet")}:w===void 0?{}:{[v]:Gt(T,s,l,"tablet")+Gt(f(O,w),"px",l,"tablet")},h=v=>({desktop:po[v],tablet:F1(po[v],"tablet"),phone:F1(po[v],"mobile")}),I=h("top"),S=h("bottom");return{[I.desktop]:t+Gt(f(I.desktop,o.top),"px",s,"desktop"),[S.desktop]:r+Gt(f(S.desktop,o.bottom),"px",s,"desktop"),...u(I.tablet,I.desktop,a,t,o.top,o.topTablet),...u(S.tablet,S.desktop,n,r,o.bottom,o.bottomTablet),[I.phone]:x(I.phone,I.tablet,I.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)=>ne(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function dt(e,o){let t={};for(let[a,n]of ux)e[a]!==void 0&&(t[n]=e[a]);let r=Zd(e,Hn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var Nr=e=>[...ux.map(([o,t])=>[o,t,(r,a)=>dt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>dt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>dt(t,e).sectionPaddingBottom]],$U={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Mxe=e=>o=>He(o.props[e])?[$U]:[],ce=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:U,...o?{style:o}:{}}),Jn=e=>({kind:"group",name:"Chip",props:{...L,...Zt("main"),...wo(6,14)},parts:[ce(e,{color:"background",...W("label",12),weight:600,letterSpacing:.16})]}),B1=e=>e.background!=="transparent",zU=(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},Jl={align:"right",alignPhone:"left"},UU=(e,o,t)=>{let r=a=>zU(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}},Ql=(e,o,t,r={})=>UU(e,o,{..._a,...Jl,...r,_partStyles:{text:{...Do,color:"labels",...t,case:Do.case,...Jl}}}),Qn=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Pa(o)?.selected??0,L1="var(--site-surface-2)",dp=(e,o)=>Pa(o)?.themes[Qn(e.sectionAccent??0,o)],$o=(e,o)=>(t,r)=>{if(!o?.(t,r))return Zt(e);let a=dp(t,r)?.[e];return a?{fillColor:a}:{}},fp=(e,o)=>Mr(e,o)>=0,R1=e=>e.startsWith("#")&&MU(e)!==null,cp=(e,o,t)=>{let r=e?.trim();if(r&&R1(r))return{fillColor:r};let a=hx(r);if(a)return Zt(a);let n=r===L1?dp(o,t):void 0;return n?{fillColor:$w(n)}:{}},pp=e=>{let o=e?.trim();return!o||o==="transparent"||o===zt||hx(o)||o===L1||R1(o)?void 0:"it paints a colour that no Box Fill can hold"},Mr=(e,o)=>{let t=Pa(o)?.themes;return t&&B1(e)?zw(t,Qn(e.sectionAccent,o)):-1},Hr=(e,o,t)=>{let r=Mr(o,t);return r>=0?r:e},es=(e,o)=>{let t=Pa(o)?.themes,r=t?Uw(t,Qn(e,o)):-1;return r>=0?r:e},Fa=(e,o)=>{let t=Mr(e,o);return t>=0?{sectionAccent:t}:{}},Wr=(e,o)=>B1(e.props)&&Mr(e.props,o)<0?[{kind:"band-preset",page:Qn(e.props.sectionAccent,o)}]:[],os=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=gn(o),d=(x,u,h)=>{let I=Ir(u),S=Bw(x,I,"spacing",h);return S===null?null:Gt(S,I,"px",i)},f=o==="desktop"?d(a,n,mC)??vC(a):d(s,l,xC)??TC(s)??_C(a,n);return Gt(Math.min(r,f),"px",t,i)},ei=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),oi=e=>({top:0,right:0,bottom:0,left:0,...e}),cI=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...L,...ei,...$o("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],Ge.kind,Ge.duration,Ge.delay],parts:r});import{phoneKey as vI,readHidable as PI}from"efficient-easel/draw";import{isNodeList as xj,newId as hj}from"efficient-easel/data";function D1(e){return Math.min(4,Math.max(2,e??3))}var zxe={eyebrow:"Label",title:"Section *heading.*"},jU=sd.Cards,N1={label:"Cards",fields:jU,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Gxe={eyebrow:"Highlight",title:"Key *features.*"},Kxe=()=>[{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")}],M1={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as GU}from"efficient-shell/format";var pI="cardPlace",KU=["","top-line"];function Xxe(e){return GU(KU,"",e[pI])}var Zxe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",Jxe="data-sf-top-line",qU=new Set(["Cards",ro]);function Qxe(e){return typeof e=="string"&&qU.has(e)}var VU=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 ehe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:VU(e)?{...e,top:0}:e}var ohe="outsideFramedCard";var up={sectionBorder:{top:0,right:1,bottom:1,left:0},...Zt("background")},YU={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Ba=e=>({direction:"row",columns:e,columnsTablet:e,...YU}),H1=(e={})=>Fe(Wc,{...U,tag:"p",[pI]:"top-line"},e,!0),ts=(e=oa)=>{let o=ln(e);return{...o,props:{...up,...o.props},slots:{[we]:[...o.slots?.[we]??[],H1()]}}},uI=(e=!1)=>{let o=dn(e);return{...o,props:{...up,...o.props}}},XU={name:"name",time:"time",note:"note",price:"price"},ZU={textStyle:"body-1",...W("body",16),weight:500,lineHeight:1.5},JU={...Do,...W("label",12),letterSpacing:.18,lineHeight:1.5},QU={textStyle:"body-1",...W("body",14),lineHeight:1.6},ej={textStyle:"body-1",fontRole:"heading",...W("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},oj={...W("label",11),letterSpacing:.25},tj={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},mp=e=>({direction:"row",columns:e,...tj}),mI=[...new Set([...Object.keys(Ba(1)),...Object.keys(mp(1))])],xI=()=>{let e=XU,o={tag:"p",widthFit:"fill"};return{type:K,props:{...L,name:"Card",justify:"between",gap:16,gapPhone:16,...wo(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Zt("surface"),shadow:!0},slots:{[we]:[H1(oj),{type:K,props:{...L,name:"Words",gap:8,gapPhone:8},slots:{[we]:[Fe(e.name,{...U,...o},ZU),Fe(e.time,{...re,...o},JU),Fe(e.note,{...re,...o},QU)]}},Fe(e.price,{...U,...o},ej)]}}};import{tabletKey as U1}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as xp}from"efficient-easel/draw";var hp=Xt,hI=xp,W1=960,$1=Xt,z1={min:hp,max:1600,step:10},Ip="stackBelow";function phe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<z1.min||e>z1.max))return Math.round(e)}var rj=e=>`sf-stack-${e}`,aj=e=>`sf-stack-${e}-gutter`,nj=e=>`sf-stack-${e}-outer`,rs=e=>`${e-.02}px`;function uhe(e,o={}){let t=o.gutter!==!1,r=`.${rj(e)}`,a=`.${aj(e)}`,n=`.${nj(e)}`,s=[];if(e>hp){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,xp);s.push(`@media (min-width:${hp}px) and (max-width:${rs(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:${hp}px) and (max-width:${rs(i)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>xp&&s.push(`@media (min-width:${xp}px) and (max-width:${rs(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${rs(e)}){${a}${a}{padding-inline:${IC.frame}}}`),t&&e<W1&&s.push(`@media (min-width:${e}px) and (max-width:${rs(W1)}){${a}${a}{padding-inline:${hC}}}`),e>$1&&s.push(`@media (min-width:${$1}px) and (max-width:${rs(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 sj}from"efficient-shell/format";var lj=["standard","editorial","simple","essay"];function La(e){if(e==="ProductGrid")return"shelf";let o=z(wt,e)?.headStyle;return sj(lj,"standard",o)}var ti={standard:64,editorial:60,simple:36,essay:28,shelf:20},ij={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function dj(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=z(wt,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 yp(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=gp.get(r);if(a)return a;let n=q1({num:e,title:o,description:t,link:!1});return gp.set(r,n),n}var zo={[Ip]:hI},gI={top:0,right:0,bottom:1,left:0},Uo=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Sp=(e,o,t={})=>ce(e,{...W("label",o),...t}),bp=(e,o)=>({kind:"text",key:e,role:"heading",props:U,style:{textStyle:"heading-2",...o}}),yI=Xt,fj=hI,SI=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...re,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:yI}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...W("body",o),...r,...a}}),K1={...ao,align:"right",alignPhone:"left",...Aa},II=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:K1,style:{...bt(e),color:"labels"}}),j1=(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"?cj(Jt()):{},...t.style}}}}},cj=e=>e._partStyles.text??{},as={widthFitPhone:"fill"};function bI(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),...as}):{...o,...as}}}return{...e,parts:e.parts.map(bI)}}function pj(e,o){let t=z(ij,e),r=t==="accent",a=Sp(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=bp(o.title,r?{...Uo("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...W("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:gI,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...L,...as,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...L,...as,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[j1(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...L,...as},parts:[s,...l?[j1(o.title,`Three ranges,
320
+ one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...L,...as,gap:12,maxWidth:340,maxWidthPhone:yI},parts:[...o.description?[SI(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[II(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...K1,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:II(14).style}}}]:[]]}]}}function wp(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>wp(t,o))}:e}function q1(e){let o=bp(e.title,{...Uo("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:gI,sectionPaddingBottom:32,...zo},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...zo},parts:[{kind:"group",name:"Number",props:{...L,sectionPaddingBottom:8},parts:[{...Sp(e.num,13),props:{...U,...Ea}}]},wp(o,[e.title])]},{kind:"group",name:"Words",props:{...L,sectionPaddingBottom:4,maxWidth:360,[U1("maxWidth")]:fj,maxWidthPhone:yI},parts:e.description?[SI(e.description,14,void 0,{lineHeight:1.5},{[U1("align")]:"left"})]:[]}]}}function G1(e,o){return{kind:"group",name:"Header",props:{...L,gap:16,gapPhone:16},parts:[Sp(e.num,13),bp(e.title,o)]}}var V1=[["para",{...bt(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...W("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...W("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...W("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...W("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],uj=e=>V1.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function mj(e){return{kind:"group",name:"Header",props:{...L,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:gI,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:24,share:"content"},parts:[Sp(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...V1.map(([o,t])=>({...bp(e.title,t),when:r=>uj(r)===o}))]},{kind:"group",name:"Words",props:{...L,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[SI(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[II(13)]:[]]}]}}function Cp(e){return La(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 gp=new Map,wI={...W("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function ft(e){let o=gp.get(e);if(o)return o;let t=dj(e),r=La(e),a=r==="editorial"?q1(t):r==="simple"?G1(t,wI):r==="essay"?G1(t,{...W("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?mj(t):pj(e,t);return gp.set(e,a),a}var Ra={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:zt,Stats:void 0};var ri=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),rA=e=>o=>D1(Ie(o.columns)??Ie(e.columns)),Ij="inline is the head the row draws; an own-box node is skipped (`skip`)",gj={kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-3",...wI}},vp=e=>{let o=ia(typeof e.background=="string"?e.background:void 0,Ra.Series);return o&&o!=="transparent"?o:void 0},kp=e=>vp(e)===zt,yj={...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},Y1={...L,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[vI("share")]:"content"},Sj=e=>{let o=vp(e)?1:2;return{...L,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},CI={...bt(12),letterSpacing:.22,lineHeight:1.5},X1=e=>He(e.viewLabel)&&!PI(e.viewLabel).hidden,ct=e=>PI(e).text?.trim?.()??"",Pp=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>fo(o)!==void 0)),TI=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),bj=TI([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),wj=TI([["label","Label"],["value","Value"],["body","Card body",!0]]),ai=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:ro,headless:!0,keep:s,derive:{reads:n,props:l=>_d(r(l),t)},slots:(l,i)=>({[Pe]:[a(l,i)]})}]}),aA=e=>Array.isArray(e.cards)?e.cards:[],nA=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Pp({title:ct(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:zs(Ym(o),t),...o})),Cj=e=>nA(e).some(o=>fo(o.href)!==void 0),sA=[{key:Um.label,label:"Feature label"},{key:Um.href,label:"Link",kind:"link"}],Z1=e=>EO(e.eyebrowLook,"KeyFeatures")==="filled",kj={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...$o("surface")(e,o),...ri(1,0,1,0),...ne(e,uc)}),box:[...J,...fe(uc)],parts:[{kind:"group",name:"Heading",props:{...L,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[vI("share")]:"content"},parts:[{...Jn("eyebrow"),when:Z1},{...ce("eyebrow"),when:e=>!Z1(e)},gj]},ai("Cards",e=>({...L,...Ba(rA(M1.defaultProps)(e))}),sA,nA,e=>uI(Cj(e)),{reads:["items"]})],drop:{...X,...ae,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"}},J1=(e,o)=>({...up,...$o("background")(e,o)}),Q1=e=>{let o=rA(N1.defaultProps)(e);return{...L,...Ba(o)}},vj=TI([["title","Card title"],["body","Card body",!0]]),lA=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:zs(Ym(o),t),title:ct(o?.title),body:ct(o?.body)})),iA=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(xj(a)?t[r]=a.map(iA):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},eA=(e,o)=>{let t=kI(e)?uI(Pj(e)):ts(),r=Array.isArray(e.template)?e.template.map(iA):[t],[a]=r;return r.length===1&&a.type===K?{...a,props:{...J1(e,o),...a.props}}:{type:K,props:{...L,...J1(e,o),name:"Card"},slots:{[we]:r}}},kI=e=>e.cardStyle==="label-only",dA=e=>lA(e).map((o,t)=>{let r=e.items[t]?.href;return Pp({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),Pj=e=>dA(e).some(o=>fo(o.href)!==void 0),oA=e=>Array.isArray(e.template)&&e.template.length===0,tA=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function fA(){let e=t=>({key:hj("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 Tj={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...$o("surface")(e,o),...ne(e,rc)}),box:[...J,...fe(rc)],parts:[{...ft("Cards"),when:e=>!lI(e)},{...ai("Cards",Q1,vj,lA,eA,{reads:["items"],keep:tA}),when:e=>!oA(e)&&!kI(e)},{...ai("Cards",Q1,sA,dA,eA,{reads:["items"],keep:tA}),when:e=>!oA(e)&&kI(e)}],drop:{...X,...ae,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)"}},Oj={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...ri(0,0,1,0),...zo,...kp(e)?Fa(e,o):{},...cp(vp(e),e,o),...ne(e,hc)}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>kp(o)?Hr(e,o,t):e],...fe(hc)],skip:e=>pp(vp(e)),site:(e,o)=>kp(e.props)?Wr(e,o):[],parts:[ft("Series"),ai("Cards",Sj,bj,e=>aA(e).map(o=>Pp({num:ct(o.num),since:ct(o.since),title:ct(o.title),body:ct(o.desc),count:ct(o.entries),countLabel:ct(o.entriesLabel)})),(e,o)=>({type:K,props:{...yj,...$o("background",(t,r)=>kp(t)&&fp(t,r))(e,o),name:"Card"},slots:{[we]:[{type:K,props:{...L,name:"Words",gap:16,gapPhone:16},slots:{[we]:[{type:K,props:{...Y1,name:"Top"},slots:{[we]:[Fe("num",U,W("label",13),!0),Fe("since",U,W("label",13),!0)]}},Fe("title",{...U,tag:"h3"},{textStyle:"heading-3",...W("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Fe("body",re,{textStyle:"body-5",fontRole:"heading",...W("body",14),lineHeight:1.6})]}},{type:K,props:{...Y1,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...ri(1,0,0,0),...X1(e)?{}:{[tn]:["count","countLabel"]}},slots:{[we]:[{type:K,props:{...L,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[vI("share")]:"content"},slots:{[we]:[Fe("count",U,CI),Fe("countLabel",re,CI)]}},...X1(e)?[{type:K,props:{...L,name:"View",maxWidthPhone:266},slots:{[we]:[{type:"Text",props:{...U,text:PI(e.viewLabel).text,_partStyles:{text:{...Jt()._partStyles.text,...CI}}}}]}}]:[]]}}]}}))],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,...ae,headPlacement:Ij}},Ej={...L,direction:"row",columns:3,gap:40,gapPhone:16},_j={...L,gap:8,gapPhone:8,...wo(24),...ri(1,1,1,1)},Aj={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...ri(0,0,1,0),...ne(e,fc)}),box:[...J,...fe(fc)],parts:[ai("Cards",Ej,wj,e=>aA(e).map(o=>Pp({label:ct(o.label),value:ct(o.value),body:ct(o.desc)})),(e,o)=>({type:K,props:{..._j,...$o("surface")(e,o),name:"Card"},slots:{[we]:[Fe("label",U,{...W("label",12),lineHeight:1.5},!0),{type:K,props:{...L,name:"Words",gap:14,gapPhone:14},slots:{[we]:[Fe("value",U,{textStyle:"heading-3",...W("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Fe("body",re,{textStyle:"body-5",fontRole:"accent",...W("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...X,...ae}},cA={Cards:Tj,KeyFeatures:kj,Series:Oj,DocMetaCards:Aj};import{SITE_SIDE as XB}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as Rj}from"efficient-easel/draw";import{newId as Dj}from"efficient-easel/data";import{phoneKey as Fj}from"efficient-easel/draw";import{isNode as ni}from"efficient-easel/data";var ns="cardStyle";function pA(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var Tp={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[Fj("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}}}},pt={table:{...Tp.table,listCard:pA(Tp.table.card)},list:{...Tp.list,listCard:pA(Tp.list.card)}},Qhe=[{label:"Table",value:"table"},{label:"List",value:"list"}],eIe=e=>e==="table"||e==="list",Bj=e=>[...new Set([...Object.keys(pt.table[e]),...Object.keys(pt.list[e])])];function si(e,o,t){let r={...e};for(let a of Bj(o))delete r[a];return{...r,...structuredClone(pt[t][o])}}function Lj(e,o,t){let r=e.props??{},a=Array.isArray(r[Pe])?r[Pe]:[],n=a.findIndex(i=>ni(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:si(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Pe]:l}}}function oIe(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>ni(s)&&s.type===ro)){let s=a.map(l=>ni(l)&&l.type===ro?Lj(l,o,t):l);return{...si(e,"items",o),[ns]:o,[r]:s}}let n=a.map(s=>{if(!ni(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>ni(d)&&d.type===t?{...d,props:si(d.props??{},"card",o)}:d);return{...s,props:{...si(l,"row",o),[r]:i}}});return{...si(e,"grid",o),[ns]:o,[r]:n}}var OI=e=>typeof e=="string"?e.trim():"";function uA(e){let o=`${OI(e.prefix)}${OI(e.value)}`,t=OI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var xA={textStyle:"heading-2",...Uo("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},EI={kind:"block",type:"Text",props:{..._a,_partStyles:{text:xA}},box:[["value","text",(e,o)=>uA(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&uA(o)!==""},mA=e=>He(e?.supSuffix),hA={textStyle:"body-1",fontRole:"heading",...W("body",16),lineHeight:1.5,letterSpacing:-.01},IA={color:"labels",...W("label",12),lineHeight:1.5,letterSpacing:.24},gA={...L,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[Rj("share")]:"content"},yA={textStyle:"body-5",...W("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},_I=e=>ia(e.background,Ra.StatsParagraph),li=e=>_I(e)===zt,Op=e=>({...e,sectionAccent:e.sectionAccent??0}),Nj=(e,o)=>li(e)?$o("background",(t,r)=>fp(Op(t),r))(e,o):{},Mj={name:"Stats with Text",skip:e=>_I(e)&&_I(e)!=="transparent"&&!li(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},...zo,...dt(e,"StatsParagraph"),...li(e)?Fa(Op(e),o):{}}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>li(o)?Hr(e,Op(o),t):e],...Nr("StatsParagraph")],site:(e,o)=>li(e.props)?Wr({props:Op(e.props)},o):[],parts:[ft("StatsParagraph"),{kind:"group",name:"Stats",props:{...L,...pt.table.grid,[ns]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...pt.table.row},props:(e,o)=>({...L,...pt.table.card,...Nj(e,o)}),parts:[{...EI,when:(e,o)=>!mA(o)&&EI.when(e,o)},{kind:"group",name:"Figure",props:gA,when:(e,o)=>mA(o),parts:[EI,{kind:"text",key:"supSuffix",props:U,style:yA}]},{kind:"group",name:"Words",props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:U,style:hA},ce("sub",IA)]}]}]}],drop:{...X,...ae,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"}},Hj=new Set(["value","label",Ko]),Wj=e=>{let o=ia(typeof e.background=="string"?e.background:void 0,Ra.Stats);return!!o&&o!=="transparent"},$j={name:"Stats",skip:e=>Wj(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":He(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>He(o?.[Ko]))?"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=>!Hj.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,...ne(e,Ic)}),box:[...J,...fe(Ic)],parts:[ce("heading",{color:"labels",...W("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...L,...pt.list.grid,[ns]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>Ie(e.columns)??4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...pt.list.row},props:{...L,...pt.list.card},parts:[{kind:"text",key:"value",props:_a,style:{textStyle:"heading-2",...W("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},ce("label",{color:"labels",...W("label",12),letterSpacing:.2})]}]}],drop:{...X,...ae,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"}},SA={StatsParagraph:Mj,Stats:$j};function bA(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var zj=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function wA(){let e=(o,t,r,a="")=>({key:Dj("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 Uj(e){return{type:K,props:{...L,name:"Card",...structuredClone(pt[e].listCard)},slots:{[we]:[{type:K,props:{...gA,name:"Figure"},slots:{[we]:[Fe("figure",_a,xA),Fe("superscript",U,yA)]}},{type:K,props:{...L,name:"Words",gap:4,gapPhone:4},slots:{[we]:[Fe("label",{...U,widthFit:"fill"},hA),Fe("body",{...U,widthFit:"fill"},IA,!0)]}}]}}}function AI(e,o,t=4){return{type:K,props:{...L,name:"Stats",direction:"row",columns:t,...structuredClone(pt[o].items),[ns]:o},slots:{[we]:[{type:ro,props:_d(e,zj),slots:{[Pe]:[Uj(o)]}}]}}}var CA={heading:"Ways to pay"},kA=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],vA=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],SIe={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as jj}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as TA}from"efficient-shell/format";var Ep="Flex",Gj={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},Kj={FooterPayment:"PaymentLogosBlock"},qj=e=>{let{id:o,...t}=e;return t},PA=e=>typeof e=="string"?e:"",ss={sm:12,md:13,lg:15},OA={sm:{mark:16,words:ss.sm},md:{mark:20,words:ss.md}},Vj="md",EA=1.5,Yj={size:13,lineHeight:EA,width:280},Xj=14,Zj=40,Jj=e=>TA(["left","center","right"],"left",e);function Qj(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=Ie(e[r]);n&&(o[a]=n)}return o}function eG(e,o,t){let r=t(e,qj(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:_A(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=Cd(e,r.props);return a===r.props?r:{...r,props:a}}function _A(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Lt(r))a[n]=_A(a[n],o,t);return{...r,props:a}})}function AA(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=z(Gj,e.type)??z(Kj,e.type);if(n)return[eG(n,r,o)];switch(e.type){case"FooterLogo":{let s=Jj(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(Qv*((Ie(r.widthPct)??100)/100)),href:"/",align:s,...Qj(r)}),i=PA(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...Yj}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&co(ss,r.size)?r.size:Vj;return[o("Text",{text:PA(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:ss[s],lineHeight:EA}}})]}case"FooterDivider":{let s=Ie(r.thickness),l=Ie(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...l!==void 0?{lengthPct:l}:{},...r.hideOnMobile===!0?{[jj("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Ep,{direction:r.direction==="horizontal"?"row":"column",gap:eP("FooterGroup",r.gap),align:TA(["start","center","end","stretch"],"start",r.align),...Mm,content:s.flatMap(l=>AA(l,o,t))})]}default:return[]}}function ii(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Ep,{direction:"row",wrap:!0,share:"equal",gap:Zj,content:f}),s=[],l=[];for(let f of a){let x=AA(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(Ep,{direction:"column",gap:Xj,align:"stretch",...Mm,content:x}))}(l.length||!s.length)&&s.push(n(l));let i=o(Ep,{direction:"column",content:[o("LegalLineBlock")]}),d=sP(Je,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as FI,readHidable as oG}from"efficient-easel/draw";import{parseOption as tG}from"efficient-shell/format";var BI={contained:!1},LI=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>He(r?.src)||He(r?.[o])}]}]}),rG={...ce("heading",{color:"labels",letterSpacing:.2}),props:{...U,align:"center"}},aG={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...ne(e,Cl(e))}),box:[...J,...fe(Cl),["bandPadding","sectionPaddingTop",(e,o)=>ne(o,Cl(o)).sectionPaddingTop]],parts:[rG,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:BI,slots:LI("items","alt")}],drop:{...X,...ae,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"}},nG={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:nw(4,"main",{sectionCorners:2})},sG={name:"Payment Methods",boxProps:e=>({...Y,direction:"column",...ne(e,sc)}),box:[...J,...fe(sc)],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:[to,Yt],props:e=>He(e[to])?{[to]:e[to],...e[Yt]!==void 0?{[Yt]:e[Yt]}:{}}:{}},props:{...BI,look:"cards",grayscale:!1},slots:e=>({...LI("badges","label"),...He(e[to])?{[Pe]:[Gm()]}:{}})},{kind:"group",name:"Reassurance",props:{...L,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[FI("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>He(o?.text)),props:{...L,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[FI("share")]:"content"},item:e=>oG(e.text).hidden?{props:{_hidden:!0}}:{},parts:[nG,{kind:"text",key:"text",props:{...U,align:"center"},style:{...W("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...X,...ae,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},FA=e=>Jb(e.align)??"left",BA=e=>tG(["sm","md"],"sm",e.size),LA=12,RA={name:"Payment logos",boxProps:e=>({...L,direction:"row",wrap:!0,align:"center",justify:hd[FA(e)],gap:LA,gapPhone:LA,phoneRow:2,[FI("share")]:"content"}),box:[...Sr],parts:[{kind:"text",key:"lead",props:re,styleFrom:e=>({size:ss[BA(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[to,Yt],props:e=>({logoHeight:OA[BA(e)].mark,align:FA(e),...He(e[to])?{[to]:e[to],...e[Yt]!==void 0?{[Yt]:e[Yt]}:{}}:{}})},props:{...BI,look:"marks",grayscale:!1,sectionAccent:gr},slots:e=>({...LI("methods","label"),...He(e[to])?{[Pe]:[Gm()]}:{}})}],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"}},DA={Logos:aG,PaymentBadges:sG,FooterPayment:RA,PaymentLogosBlock:RA},NA=()=>({heading:DE.heading,items:$c()}),MA=()=>({heading:CA.heading,badges:kA(),assurances:vA()}),HA=()=>({...mf,methods:[]});import{mixHex as cG}from"efficient-shell/format";import{MOTION_EASING as lG,MOTION_TIMING as WA,motionSeconds as $A,parseOption as zA}from"efficient-shell/format";var RI="none",_p=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function ZIe(e){return zA(_p,RI,e)}var ls="_gLoop",di={field:"loop",is:"scroll"},fi="left",DI=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],iG={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function UA(e){return zA(DI,fi,e)}function jA(e){return e==="up"||e==="down"}function Ap(e){return $A("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var JIe=WA.loop.duration.default,dG=WA.loop.delay.default;function GA(e){return $A("loop","delay",e.loopDelay)}function QIe(e,o,t=dG){return`${iG[e]} ${o}s ${lG.loop}${t?` ${t}s`:""} infinite`}var Fp="_gEntrance";var rge="none",age=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function Bp(e){return e==="above"||e==="below"?e:null}var KA="sf-ticker-join";function fG(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function qA(e){return`absolute inset-x-0 ${fG(e)}`}var VA=e=>e.size==="display",pG=(e,o)=>{let t=dp(e,o),r=e.tone!=="plain"&&t?.text&&t.background?cG(t.text,t.background,.3):null;return r?{color:r}:{}},uG=(e,o)=>e.tone!=="plain"&&tx(e.sectionAccent)===null?$o("background")(e,o):{},YA=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:re,style:e,styleFrom:pG}]}),mG={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...ua,...ec,...ow[Nm(e.separator)]===""?rO:{},...ne(e,ma),...uG(e,o)}),box:[["scrollDirection","scrollDirection",e=>UA(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=>Nm(e)],["join","join",e=>Bp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...J,["tone","sectionAccent",(e,o)=>tx(o.sectionAccent)??gr],...fe(ma)],parts:[YA(oc,e=>!VA(e)),YA(aO,VA)],drop:{...X,...ae,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},XA=e=>e?.tone==="muted",ZA=e=>Ad(Pa(e)),xG={name:"Spec Strip",boxProps:(e,o)=>({...Y,...ua,...gl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:ZA(o)},...ne(e,xa)}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:ZA(t)],...fe(xa)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:U,style:yl,when:(e,o)=>!XA(o)},{kind:"text",key:"text",props:re,style:yl,when:(e,o)=>XA(o)}]}],drop:{...X,...ae,...ip,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"}},JA={Ticker:mG,SpecStrip:xG};import{tabletKey as QA}from"efficient-easel/screen/lib/content/view-tiers";var eF={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[QA("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[QA("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},NI={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as hG}from"efficient-easel/draw";var Lp={eyebrow:Te.eyebrow,title:`Section heading
321
+ *Highlight line*`,intro:Te.body,imageCaption:Te.imageCaption,imageMeta:Te.imageMeta,cta:je.text},oF=()=>[{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.")}],Sge={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Rp={eyebrow:Te.eyebrow,title:Te.headingAccent,intro:Te.body,cta:je.text},tF=()=>[{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}],vge={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:qv,padTop:120,padBottom:120}};var iF={buttonBorder:{width:0}},Mp=(e,o,t={})=>({textStyle:"body-5",...W("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),is=(e,o,t={})=>({...Mp(e,o),...Do,...t}),Hp=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),ci=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),ut=(e,o,t={})=>({kind:"text",key:e,props:U,style:o,...t}),rF=(e,o)=>o?.future===!0,Dp=e=>tE(typeof e?.body=="string"?e.body:""),zI=e=>ia(typeof e.background=="string"?e.background:void 0,Ra.TimelineTrack),MI=e=>zI(e)===zt?e:{...e,background:"transparent"},IG={name:"Milestone Timeline",skip:e=>pp(zI(e)),boxProps:(e,o)=>{let t=Mr(MI(e),o);return{...Y,direction:"column",gap:60,[hG("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...zo,...dt(e,"TimelineTrack"),...cp(zI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Hr(e,MI(o),t)],...Nr("TimelineTrack")],parts:[bI(wp(yp("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,...zo},parts:[{kind:"list",key:"entries",name:"Year",props:{...L,...eF},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:NI.name,props:{...L,...NI},parts:[ut("date",Mp(13,.22,{color:"accent"}),{when:(e,o)=>!rF(e,o)}),ut("date",Mp(13,.22,{color:"labels"}),{when:rF}),ut("title",{textStyle:"heading-3",...Hp(W("headingSmall",20),-.02,1.1)},{role:"heading"})]},ut("blurb",ci(W("body",13),1.55),{props:re,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:{...ao,align:"right",...iF},style:is(13,.3)}]}]}],site:(e,o)=>Wr({props:MI(e.props)},o),drop:{...X,...ae,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"}},jI=e=>typeof e.layout=="string"?e.layout:"split",Np=e=>jI(e)==="split",UI=e=>!Np(e),dF=e=>jI(e)==="spine",gG=e=>UI(e)&&!dF(e),aF=(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",...wo(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:[ut("imageCaption",is(11,.24,{color:"text"})),ut("imageMeta",is(11,.24,{color:"accent"}),{props:{...U,align:"right"}})]}]}),nF=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...ao,...e,...iF},style:is(13,.3)}),HI=()=>[ut("title",{textStyle:"heading-3",...Hp(W("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...U,_partStyles:{text:ci(W("body",17,16),1.6)}},box:[["body","text",(e,o)=>Ns(Dp(o)[0]??"")]],when:(e,o)=>Dp(o).length>0},{kind:"block",type:"Text",props:{...re,_partStyles:{text:ci(W("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Ns(Dp(o).slice(1).join(`
322
+
323
+ `))]],when:(e,o)=>Dp(o).length>1}],WI=()=>ut("date",Mp(13,.24,{color:"accent"})),$I=(e,o,t={})=>ut(e,o,{...t,props:{...U,...t.props??{},align:"center"}}),sF=Uo("headingMedium",40,5,76),lF={sectionBorder:{bottom:1}},yG={name:"Story Timeline",skip:e=>jI(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Np(e)?{...Y,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...lF,...dt(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...lF,...dt(e,"Timeline")},box:[...J,...Nr("Timeline")],parts:[{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24},when:Np,parts:[ut("eyebrow",is(12,.3,{color:"accent"}),{role:"eyebrow"}),ut("title",{textStyle:"heading-2",...Hp(sF,-.03,.94)},{role:"heading",mark:"accentItalic"}),ut("intro",ci(W("body",14),1.6),{props:{...re,maxWidth:360},mark:"accentItalic"}),aF(667,419,{},()=>!0),nF()]},{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!1},when:Np,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[WI(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:HI()}]}]},{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:UI,parts:[$I("eyebrow",is(12,.3,{color:"accent"}),{role:"eyebrow"}),$I("title",{textStyle:"heading-2",...Hp(sF,-.03,.94)},{role:"heading",mark:"accentItalic"}),$I("intro",ci(W("body",14),1.6),{props:{...re,maxWidth:520},mark:"accentItalic"}),nF({align:"center"})]},aF(506,192,{maxWidth:900,widthFit:"fill"},UI),{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:dF,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,gap:8,gapPhone:8},parts:[WI(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:HI()}]}]},{kind:"group",name:"Chapters",props:{...L,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:gG,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:[WI(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:HI()}]},{kind:"group",name:"Spacer",props:{...L},keepEmpty:!0,parts:[]}]}]}],drop:{...X,...ae,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},fF=()=>({eyebrow:Lp.eyebrow,title:kt(Lp.title),intro:Lp.intro,ctaText:je.text,ctaHref:je.href,entries:oF()}),cF=()=>({eyebrow:Rp.eyebrow,title:kt(Rp.title),intro:Rp.intro,ctaText:je.text,ctaHref:je.href,entries:tF()}),pF={TimelineTrack:IG,Timeline:yG};import{tabletKey as SG}from"efficient-easel/draw";function uF(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var mt=e=>typeof e=="string"?e:e==null?"":String(e),GI=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],ds=e=>mt(e.group),wF=e=>`loc-${e}`,CF=e=>mt(e.state).trim()||Cx(mt(e.region)).state,kF=e=>mt(e.country).trim()||Cx(mt(e.region)).country,mF=e=>[CF(e),kF(e)].filter(Boolean).join(" \xB7 "),bG=e=>GI(e).some(o=>mt(o.photo).trim()!==""),wG=e=>GI(e).some(o=>yw(Number(o.lat),Number(o.lng))),CG=(e,o)=>GI(e).filter(t=>ds(t)===ds(o)).length,kG=(e,o)=>CG(e,o)===1?"wide":mP(e.imageShape),xF=48,Pt=(e,o={})=>({...bt(e),...o}),KI={top:1,right:1,bottom:1,left:1},qI={...L,direction:"row",share:"equal",gap:0},vG=e=>o=>o>bd(o)?{...L,gap:0}:{...qI,...o>1?{phoneRow:e}:{}},VI=!0,PG={kind:"group",name:"Gallery",props:{...L,gap:20,...VI?{_hidden:!0}:{}},when:bG,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",Pt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...re,align:"right",alignPhone:"left"},style:Pt(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:KI,...wo(12,12)},item:(e,o,t)=>({props:{...mt(e.photo).trim()?{bgImage:mt(e.photo),hover:"mono"}:{},link:`#${wF(o)}`,boxShape:kG(t,e)}}),parts:[{kind:"text",key:"name",props:U,style:Pt(11,{letterSpacing:.22,color:"text"})}],groups:{of:ds,name:"Group",props:{...L,gap:10},head:e=>({label:ds(e[0]??{})}),parts:[ce("label",Pt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:vG(2),perRow:bd,rowName:"Row",rowProps:{...qI,phoneRow:2}}}]}]},TG={kind:"group",name:"Words",props:{...L,gap:12,gapPhone:12,...wo(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",...W("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...U,_partStyles:{text:Pt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>mF(t)]),when:(e,o)=>mF(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...L,sectionBorder:KI,...wo(6,10)},parts:[{kind:"text",key:"timezone",props:{...re,textFit:"line"},style:Pt(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:re,style:{textStyle:"body-5",fontRole:"heading",...W("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...ao,...Aa,variant:"ghost",arrow:!1,_partStyles:{label:Pt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>uF(mt(e))??"#"]],when:(e,o)=>mt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:re,style:Pt(12,{letterSpacing:.18,lineHeight:1.7})}]},OG={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)=>CF(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>kF(t)])]},EG={kind:"group",name:"Map",props:{...L,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[OG]},_G={kind:"list",key:"locations",name:"City",props:(e,o)=>({...L,gap:0,justify:"between",sectionBorder:KI,jumpHighlight:!0,sectionAccent:Mr(e,o)>=0?Qn(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:wF(o)}}),parts:[TG,EG],groups:{of:ds,name:"Group",props:{...L,gap:20},head:e=>{let o=e[0]??{};return{key:ds(o),groupName:mt(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)=>mt(o?.key).trim()!=="",parts:[ce("key",Pt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:U,style:{textStyle:"heading-3",...W("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:re,style:Pt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...qI,columns:bd(e),[SG("columns")]:1})}},hF=Pt(10,{letterSpacing:.25}),AG={kind:"block",type:Ut,props:{...L,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:wG,slot:jt,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...re,text:"Location coordinates \xA9",_partStyles:{text:hF}}},{kind:"block",type:"ButtonBlock",props:{...ao,...Aa,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...hF,color:"labels"}}}}]},IF=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),gF=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],yF=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],SF=e=>e.map(o=>[o,o,(t,r)=>ne(r,Mn)[o]]),bF=["sectionAccent","sectionAccent",Hr],FG=[...Sr,...Pn,...Object.values(Fo)],BG={name:"City pictures",skip:e=>Ne(e)?`fed by the data source "${Ne(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",...zo,...IF(ne(e,Mn),gF),sectionPaddingBottom:xF,sectionPaddingBottomPhone:xF,...Fa(e,o)}),box:[...J.filter(e=>e!=="sectionAccent"&&e!=="anchor"),bF,["anchor","anchor",e=>Xv(e).trim()?e:"studios"],...SF(gF)],parts:[yp("sectionNumber","heading","tagline"),PG],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...zo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...IF(ne(e,Mn),yF),...Fa(e,o)}),box:[...FG,bF,...SF(yF)],parts:[_G,AG]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:Wr,drop:{...X,...ae,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)"}},vF={ContactLocations:BG};import{SITE_SIDE as PF,sideLengthAt as LG}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as YI}from"efficient-easel/draw";var RG=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var $r=(e,o)=>()=>({top:e,topPhone:o}),TF=e=>o=>{let t=Hn(e),r={...o,[br.top]:Zd(o,t).top},a=i=>{let d=LG(r,br,Xd,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>Ie(o[YI(br.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}:{}}},DG={Collections:$r(120,70),Events:$r(120,70),FAQ:$r(ac.top,ac.topPhone),GalleryB:$r(120,70),FitmentTable:$r(120,80),SpecTable:$r(120,80),LongRead:$r(nc.top,nc.topPhone),RelatedProducts:$r(0,0),Footprint:TF("Footprint"),ProcessSteps:TF("ProcessSteps"),ProductGrid:e=>({top:Ie(e.padTop)??120,topPhone:0})};function NG(e,o={}){let t=z(wt,e),r=z(DG,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=ft(e),s=Cp(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(Qr,e)??e,boxProps:(d,f)=>{let x=r(d),u=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(d,f):o.boxProps??{},I=La(e)==="editorial"?zo:{};return{...Y,direction:"column",gap:ti[La(e)],sectionPaddingTop:x.top,...x.topTablet!==void 0?{sectionPaddingTopTablet:x.topTablet}:{},...x.topPhone!==void 0?{sectionPaddingTopPhone:x.topPhone}:{},...I,...u,...h}},box:[...J,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&pO.has(e)?{[YI(a,"tablet")]:0,[YI(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 MG={...L,direction:"accordion",rowStyle:"numbered"},HG={sectionPaddingLeft:PF,sectionPaddingRight:PF},WG={Footprint:{slots:{[Pe]:[Sw()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Rs]:t1().map(t=>({...t,props:{...t.props,...HG}}))}:{},boxProps:{gapPhone:ti.editorial}},FAQ:{slots:{[Pe]:[gw()]},pressHeading:!0,coreBox:{name:"Questions",props:MG},coreProps:{sectionAccent:gr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[X0]:hl},skip:e=>{let o=e._partStyles??{},t=Iw().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}}},OF=Object.fromEntries(RG.map(e=>[e,NG(e,z(WG,e))]));import{BLOCK_WIDTH_LIMIT as $G}from"efficient-easel/draw";var Wp={eyebrow:Te.eyebrow,title:Te.headingAccent,deck:"Add a sentence or two introducing this document."},Cye={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var BF={minWidth:$G.min},EF=(e,o,t)=>({...ce(e,{...o,...Jl}),props:{...U,align:"right",...Ea,...t}}),LF={top:1,bottom:0},ZI=(e,o,t,r)=>({kind:"group",name:e,props:{...L,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),_F={widthFit:"fill",...BF},zG={...W("label",13),letterSpacing:.22,lineHeight:1.8},AF={textStyle:"heading-1",...Uo("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},UG=()=>({name:"Page Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...ne(e,dc)}),box:[...J,...fe(dc)],parts:[{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[ZI("Eyebrow",12,0,{...ce("eyebrow",W("label",13)),props:{...U,...Ea}}),{kind:"text",key:"title",role:"heading",props:{...U,tag:"h1",..._F},style:AF,mark:"accentItalic",when:e=>!Kh(e)},{kind:"text",key:"title",role:"heading",props:{...U,tag:"h2",..._F},style:AF,mark:"accentItalic",when:Kh},{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:[Ql("label","value",zG,Ea)]}]}]},{kind:"group",name:"Deck",props:{...L,maxWidth:760,sectionBorder:LF,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:re,style:{textStyle:"body-1",fontRole:"accent",...W("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...X,...ae,[jc]:"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"}}),RF=()=>({eyebrow:Wp.eyebrow,title:kt(Wp.title),deck:Wp.deck,meta:[{label:Te.label,value:Te.value},{label:Te.label,value:Te.value}]}),jG={...W("label",13),letterSpacing:.18,lineHeight:1.8},FF={...W("label",13),letterSpacing:.22,lineHeight:1.9},GG=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...ne(e,bl)}),box:[...J,...fe(bl)],parts:[{kind:"group",name:"Top",props:{...L,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[ZI("Eyebrow",14,14,ce("eyebrow",W("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:[Ql("lead","rest",jG)]}]}]},{kind:"group",name:"Bottom",props:{...L,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:LF,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...U,maxWidth:720,...BF},style:{textStyle:"body-1",fontRole:"heading3",...W("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...L,align:"stretch",gap:0},parts:[ZI("Heading",6,6,{kind:"text",key:"issueHeading",props:{...U,align:"right",...Ea},style:{textStyle:"body-1",fontRole:"heading",...W("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...Jl}}),{kind:"group",name:"Lines",props:{...L,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[EF("text",{color:"labels",...FF})]}]},EF("issueTotal",FF)]}]}],drop:{...X,...ae}}),XI={color:"labels",...W("label",13),letterSpacing:.2},DF=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),JI=(e,o)=>o!==void 0&&DF(e).at(-1)===o,NF=(e,o)=>o!==void 0&&DF(e).includes(o),KG=(e,o)=>NF(e,o)&&!JI(e,o)&&He(o?.href),qG=()=>({name:"Breadcrumb",skip:e=>He(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Y,...ua,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...ne(e,Il)}),box:[...J,...fe(Il)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:KG,props:{...ao,...Aa,icon:"none"},style:XI},{...ce("label",XI),when:(e,o)=>NF(e,o)&&!JI(e,o)&&!He(o?.href)},{...ce("label",{...XI,color:"text"}),when:JI}]}],drop:{...X,...ae,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing",...ip}}),MF={DocMasthead:UG(),Masthead:GG(),Breadcrumb:qG()};import{BLOCK_WIDTH_LIMIT as YG,hiddenKeyOf as XG}from"efficient-easel/draw";import{readHidable as QI}from"efficient-easel/draw";function VG(e,o,t){return e||(t?.isEditing?c(o):void 0)}function Mye(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function HF(e,o,t){let r=QI(e);if(!r.hidden)return VG(r.text,o,t)}function WF(e){if(e==null)return;let o=QI(e);return o.hidden?"":o.text}function Hye(e,o,t){return QI(e).hidden?"":HF(e,o,t)}function Wye(e,o,t){return{text:HF(e,je.text,t),href:o||je.href}}var jF="MenuBlock",eg=e=>(Array.isArray(e)?e:[]).filter(o=>o&&He(o.label)),$F=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(WF(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},zF={top:0,bottom:0,topPhone:0,bottomPhone:0},ZG={...Do,color:"labels",...W("label",12),letterSpacing:.24},JG={kind:"group",name:"Note",props:{...L,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[XG("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>$F(e)!=="",props:e=>({...U,textFit:"line",text:$F(e),[Sv]:{text:ZG}})}]},GF=()=>({tabs:[],metaLabel:Te.label,metaValue:Te.value}),UF="the note Text inside the Box (the label, then the value in the accent); no words, no Text",KF={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:YG.min},qF=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[bn]:0,[Js]:!0,sectionBorder:{bottom:1},...ne(o,zF)}),box:[...J,...fe(zF)]}),QG=()=>qF({name:"Tab Bar",skip:e=>eg(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:UF,metaValue:UF},parts:[{kind:"block",type:jF,props:KF},JG],drop:{...X,...ae,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"}}),e8=()=>qF({name:"Category Bar",skip:e=>{if(eg(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(eg(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:jF,props:{...KF,[to]:rb}}],drop:{...X,...ae,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"}}),VF={DocTabs:QG(),CategoryBar:e8()};import{jsx as Da,jsxs as og}from"react/jsx-runtime";import{slugify as i8}from"efficient-shell/format";import{jsx as zp,jsxs as ZF}from"react/jsx-runtime";import{jsx as o8}from"react/jsx-runtime";import{useEffect as t8,useRef as r8}from"react";var YF="data-current",a8=1/3,n8=2;function s8(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 l8(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=s8(n,o,t);for(let l of r)s!==null&&a(l)===s?(l.setAttribute(YF,""),l.setAttribute("aria-current","location")):(l.removeAttribute(YF),l.removeAttribute("aria-current"))}function XF(){let e=r8(null);return t8(()=>{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-n8;l8(o,window.innerHeight*a8,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)}},[]),o8("span",{ref:e,hidden:!0})}var oSe="sticky top-[120px]";var $p={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var JF=(e,o)=>e?{[ta]:o}:{},QF=(e,o)=>xw(e?.[Ws(o)]?.role,$p[o],yb),eB=120;function oB({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Yx,takesViewHide:l=!1,markCurrent:i=!1}){let d=s==="plain",f=at(),x=l?f:Cr;return x.scope(ZF("aside",{className:Co(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,x.className),style:r?{top:t}:void 0,...x.attrs,children:[e&&zp("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Ve(e)}),o.map((u,h)=>{let I=zp("span",{...JF(a,"number"),style:QF(n,"number"),className:"text-accent",children:Wf(s,h)});return ZF("a",{href:`#${u.anchor}`,className:`flex items-center ${d?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${h===0?" border-t":""}${i?" data-[current]:text-fg":""}`,children:[d&&I,zp("span",{...JF(a,"entry"),style:QF(n,"entry"),children:Ve(u.label||"Section")}),!d&&I]},`${h}-${u.anchor}`)}),i&&!a&&zp(XF,{})]}))}function tB(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 d8(e,o){return i8(e)||`section-${o+1}`}var tg=e=>typeof e=="string"&&e.trim()!=="";function rg(e){return(e??[]).filter(o=>tg(o.heading)||tg(o.label)||tg(o.body))}function ag(e){return tB(e.map((o,t)=>d8(o.label||o.heading||"",t)))}function ng(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=pd(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 f8=()=>[{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.")}],c8=eB;function TSe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=c8,pad:a}){let n=vt(),s=rg(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?f8():s,i=ag(l);return Da(de,{as:"section",className:"relative z-[2] bg-bg",children:og("div",{...iO(ot("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:[Da(oB,{title:e,entries:l.map((d,f)=>({label:d.label||"Section",anchor:i[f]})),stickyTop:r}),Da("div",{className:"flex flex-col gap-16",children:l.map((d,f)=>og("article",{id:i[f],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[og("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Vx(f)," \xB7 ",Ve(d.label||"Section")]}),d.heading&&Da("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:Ve(d.heading)}),ng(d.body??"").map((x,u)=>x.type==="ul"?Da("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:x.items.map((h,I)=>Da("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:Ve(h)},I))},u):Da("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Ve(x.text)},u))]},i[f]))})]})})}var rB=18,aB=18,nB=8,p8=10,sg=e=>typeof e=="string"&&e.trim()!=="",sB=e=>rg(e.sections),u8=e=>ng(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}),lg={...bt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},lB={textStyle:"body-1",fontRole:"accent",...W("body",17)},m8=[ce("label",lg),{...ce("title",lg),when:(e,o)=>!sg(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!sg(o?.label)&&!sg(o?.title),props:{...U,text:"Section",_partStyles:{text:lg}}},{kind:"group",name:"Heading",props:{...L,sectionPaddingBottom:nB,sectionPaddingBottomPhone:nB},parts:[{kind:"group",name:"Heading line",props:{...L,sectionBorder:{bottom:1},sectionPaddingBottom:aB,sectionPaddingBottomPhone:aB},parts:[{kind:"text",key:"heading",role:"heading",props:U,style:{textStyle:"heading-2",...Uo("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:u8,parts:[{kind:"text",key:"text",props:re,style:{...lB,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:re,style:{...lB,lineHeight:1.65,paragraphSpacing:p8},when:(e,o)=>o?.kind==="ul"}]}],x8=900,h8={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[Ip]:x8,sectionBorder:{bottom:1},...ne(e,ic)}),box:["anchor","sectionAccent",...Sr,...Pn,...Object.values(Fo),...fe(ic)],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=>sB(e),props:{...L,gap:rB,gapPhone:rB},item:(e,o,t)=>({props:{anchor:ag(sB(t))[o]??`section-${o+1}`}}),parts:m8}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},iB={DocBody:h8};import{phoneKey as S8}from"efficient-easel/draw";import{SITE_SIDE as b8}from"efficient-easel/screen/lib/content/length-units";var HSe={eyebrow:"\u2014 Label",title:`Section headline *here.*
331
+ *Highlight line*`,body:"Describe this section in a sentence or two."},WSe={text:"Learn more"},$Se={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 ig(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}import{parseOption as I8}from"efficient-shell/format";var dB="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",g8="overlay",y8=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Up(e){return I8(y8,g8,e)}var jSe={desktop:40,mobile:45,min:20,max:80,step:5};function GSe(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as w8}from"efficient-shell/format";var fB=(e,o,t)=>{let r=Ie(e),a=Ie(o),n=(s,l)=>l&&l!=="px"?{[s]:l}:{};return{...r===void 0?{}:{size:r,...n(al.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(al.sizePhone,t?.phone)}}},C8=e=>Up(e.layout)==="stacked",cB=e=>Math.min(Math.max(Ie(e.overlay)??60,0),100),jp=e=>Ie(e)??100,k8={textStyle:"heading-1",sizeToken:{...Uo("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},v8=[ce("eyebrow",W("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:U,style:{...k8,case:e?"upper":"none"},styleFrom:o=>{let t=kx(o);return fB(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...re,maxWidth:560},style:{textStyle:"body-1",...W("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=kx(e);return fB(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:ao}]}],pB=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)`,P8=()=>({name:"Scroll-Over Text",skip:e=>C8(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",...ei,placement:"left",darken:cB(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:jp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:jp(e.heightMobile),[Kd]:fk}),box:[...J.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>cB(o)],["heightDesktop","sectionHeightValue",e=>jp(e)],["heightMobile","sectionHeightValuePhone",e=>jp(e)]],parts:v8,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(xP.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:pB("Button color"),buttonTextColor:pB("Button text color"),...X}}),xB={textStyle:"heading-2",...W("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},T8={textStyle:"body-1",...W("body",16),lineHeight:1.7},hB=e=>({kind:"text",key:"body",props:{...re,maxWidth:520},style:{...T8,paragraphSpacing:e}}),Kp={top:0,bottom:0,topPhone:0,bottomPhone:0},dg=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},O8=(e,o)=>{let t=dg(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"}},IB={boxShapePhone:"landscape"},gB="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)",E8=(e,o)=>({[e]:o,[S8(e)]:o}),_8={textStyle:"heading-2",...W("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},uB=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),A8=()=>({name:"Brand Text",boxProps:(e,o)=>({...Y,...$o("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ne(e,Kp),...dg(e,100)}),box:[...J,...fe(Kp)],parts:[{kind:"group",name:"Words",props:()=>({...L,justify:"center",gap:28,gapPhone:28,sectionBorder:oi({right:1}),sectionBorderPhone:oi({}),...ei,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:b8}),parts:[ce("eyebrow",W("label",14)),{kind:"text",key:"heading",role:"heading",props:U,style:{...xB,case:"none"},mark:"accentItalic"},hB(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(uB(e).length,1),3),...E8("sectionBorder",oi({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:uB,props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:_a,style:_8},ce("label",{...W("label",13),color:"labels",letterSpacing:.2})]}]}]}]},cI("Picture","imageSrc",IB)],drop:{...X,grayscale:gB,...ae}}),Gp=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}},F8=e=>e.textAlign==="center"||e.textAlign==="right"?hd[e.textAlign]:"stretch",B8=e=>Math.min(Math.max(Ie(e.overlay)??60,0),100),yB=e=>typeof e=="string"&&e.trim()!=="",L8={...ao,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},mB=e=>({...cI("Picture","imageSrc",(o,t)=>({...yB(o.imageSrc)&&ig(o.imageOverlay)>0?{darken:ig(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...IB,sectionBorder:oi(e?{left:1}:{right:1}),...SB(e?"left":"right",os(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:L8,style:{...bt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),SB=(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:F8(e),placement:w8(["left","center","right"],"left",e.textAlign),...O8(e,72),gap:24,gapPhone:24,...yB(e.textBgSrc)?{darken:B8(e),darkenStyle:"even"}:{},...ei,sectionPaddingTop:100,sectionPaddingBottom:100,...SB(t?"right":"left",os(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...ce("eyebrow",W("label",14)),styleFrom:Gp},{kind:"text",key:"title",role:"heading",props:U,style:xB,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Gp(e)})},{...hB(24),styleFrom:Gp},{kind:"group",name:"Button",props:{...L,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Gp(e);return{...ao,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},D8=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Y,...$o("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ne(e,Kp),...dg(e,72)}),box:[...J,...fe(Kp)],parts:[mB(!1),R8,mB(!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:gB,...X,...ae}}),bB={IntroBleed:P8(),Manifesto:A8(),Split:D8()};var kB={headPlacement:void 0},wB={top:0,bottom:0,topPhone:0,bottomPhone:0},N8=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...ne(e,wB)}),box:[...J,...fe(wB)],parts:[{kind:"core",keep:"rest",props:kB}],drop:{...X,...ae}}),CB={top:120,bottom:120,topPhone:60,bottomPhone:60},M8=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...ne(e,CB)}),box:[...J,...fe(CB)],parts:[ce("eyebrow"),{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:re},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:kB}],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,...ae,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'}}),vB={Form:N8(),SubmitBuild:M8()};import{phoneKey as PB}from"efficient-easel/draw";var OB=1.5,TB={textStyle:"body-1",...W("body",15),lineHeight:OB},H8={...Do,...W("label",12),letterSpacing:.12,lineHeight:OB},EB=()=>({type:K,props:{...L,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[PB("share")]:"content",[PB("wrap")]:"nowrap",...wo(12,0),sectionBorder:{top:1},name:"Item"},slots:{[we]:[{type:K,props:{...L,gap:0,gapPhone:0,name:"Item words"},slots:{[we]:[Fe("label",{...U,tag:"p"},TB),Fe("meta",{...re,tag:"p"},H8)]}},Fe("amount",{...U,tag:"p"},TB)]}});var W8=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...J],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Pe]:[EB()]}}],drop:{...X}}),_B={OrderSummary:W8()};import{phoneKey as $8}from"efficient-easel/draw";var gbe={eyebrow:"By the numbers",title:`A picture worth
332
+ *a thousand rows.*`},AB=["eyebrow","title","body","caption"],ybe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var FB=["eyebrow","title","body"],bbe={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 RB=()=>({kind:"group",name:"Words",props:{...L,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...L,direction:"row",phoneRow:2,[$8("share")]:"content"},parts:[Jn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2",...W("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...re,maxWidth:435},style:gd(16)}]}),DB=e=>(o,t)=>({...Y,sectionAccent:es(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...ne(o,wl)}),NB=[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>es(e,t)],...fe(wl)],z8=()=>({name:"Chart",boxProps:DB([42]),box:NB,parts:[RB(),{kind:"group",name:"Chart",props:{...L,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Zn},ce("caption",{color:"muted",...W("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...AB],drop:{...X,...ae}}),BB=e=>e.align==="left",LB={kind:"group",name:"Card",keepEmpty:!0,props:L,parts:[{kind:"core",keep:"rest",props:Zn}]},U8=()=>({name:"Mockup Card",boxProps:DB("equal"),box:NB,parts:[{...LB,when:BB},RB(),{...LB,when:e=>!BB(e)}],pressKeepsEmpty:[...FB],drop:{...X,...ae}}),MB={Chart:z8(),Mockup:U8()};import{phoneKey as G8}from"efficient-easel/draw";function HB(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function WB(e){return Math.max(e*6,30)}var K8=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),fg=e=>HB(K8(e)),q8=e=>Ap({loopDuration:WB(e)}),V8={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,[G8("share")]:"content"},parts:[Jn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...U,align:"center"},style:{textStyle:"heading-2",...W("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...re,align:"center",maxWidth:568},style:gd(16)}]},Y8=e=>({kind:"group",name:`Row ${e+1}`,when:o=>fg(o)[e].length>0,props:o=>({...L,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:q8(fg(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=>fg(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),X8={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",...W("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...U,align:"center"},style:{textStyle:"heading-3",...W("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...U,align:"center",maxWidth:428},style:{textStyle:"body-1",...W("label",14),lineHeight:1.625,color:"muted"}}]},Z8=[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>es(e,t)],...fe(pc)],J8={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:es(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...ne(e,pc)}),box:Z8,parts:[V8,{kind:"group",name:"Rows",props:{...L,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>Y8(o))},X8],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...ae}},$B={Integrations:J8},zB=()=>({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 Q8={title:"Back online in",zeroText:"Almost done. Back very soon."},UB=["title"],Hbe={label:"Countdown",defaultProps:{...Q8,endsAt:"",showUnits:!0}};var eK={...ce("title",{...sw(12),color:"muted"}),props:{...U,align:"center"}},oK=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...ne(e,lc)}),box:[...J,...fe(lc)],parts:[eK,{kind:"core",keep:"rest",props:Zn}],pressKeepsEmpty:[...UB],drop:{...X,...ae}}),tK=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...ne(e,cc)}),box:[...J,...fe(cc)],parts:[{kind:"core",keep:"rest",props:Zn}],drop:{...X,...ae}}),jB={Countdown:oK(),FeaturedCover:tK()};var GB={top:80,bottom:80,topPhone:60,bottomPhone:60},rK=()=>{let e=Cp("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:ti[La("FitmentFinder")],...ne(o,GB)}),box:[...J,...fe(GB)],parts:[ft("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,...ae,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},KB={FitmentFinder:rK()};var qp={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},Ybe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var pi={eyebrow:Te.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},Jbe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var qB={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},ewe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var VB={title:`Section heading
334
+ *Highlight line*`},YB=[{label:je.text,href:je.href,variant:"primary"},{label:je.text,href:je.href,variant:"outline"}],rwe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var cr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Te.viewAll},iwe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:Qf,num:cr.num,numStyle:vl,title:cr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Vp={eyebrow:"\u2014 Label",title:`Section headline
335
+ *Highlight line*`,body:"A sentence or two of supporting copy."},pwe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:ll,bodySizeDesktop:ll,titleSizeMobile:ll,bodySizeMobile:ll,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[bn]:0,uppercase:!1}};var aK={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ne(e,mc)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...J,...fe(mc)],parts:[ft("Prose"),{kind:"text",key:"body",props:re,style:{textStyle:"body-1",...W("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...X,...ae,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)"}},ZB={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},JB=(e,o)=>o?.variant==="primary",QB=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:JB,variant:"primary",style:{letterSpacing:.3},props:{...ao,...ZB,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!JB(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...ao,...ZB,...o}}]}),Yp=e=>He(e.title),nK={name:"Call-to-Action Heading",boxProps:e=>({...Y,direction:"row",align:"center",justify:Yp(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...dt(e,"TitleWithButtons")}),box:[...J,...Nr("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",...Uo("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",...Yp(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[QB(Yp,{widthFit:"fill",iconPosition:"end"}),QB(e=>!Yp(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 sK(e,o){let t=os(o,{to:Ir(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=os(o,{view:"phone",to:Ir(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:XB,sectionPaddingRight:XB,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var lK={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...ne(e,xc),...sK(e,o)}),box:[...J,...fe(xc)],parts:[ft("SectionHeader")],drop:{...X,...ae,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"}},eL={...L,direction:"row",share:[67],gap:32},oL={...L,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},tL=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),iK={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...dt(e,"ParagraphsA")}),box:[...J,...Nr("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...eL,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",...W("label",12),letterSpacing:.24})]},tL("Stats column",L,{kind:"group",name:"Stats",props:{...oL,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[Ql("value","label",{...W("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...eL,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",...W("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},tL("Note column",{...L,justify:"end"},{kind:"group",name:"Founders",props:{...oL,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",...W("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:re,style:{textStyle:"body-5",fontRole:"heading",...W("body",14,12),lineHeight:1.7}}]},ce("attribution",{...W("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...X}},dK={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...ne(e,tc)}),box:[...J,"contained",...fe(tc)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...L,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Zt("surface"),...wo(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(Ie(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",...W("headingMedium",44,32)}},{kind:"text",key:"body",props:{...U,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...W("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:ao}]}],drop:{...X,...ae}},cg={Prose:aK,TitleWithButtons:nK,SectionHeader:lK,ParagraphsA:iK,Banner:dK},rL={Prose:()=>({eyebrow:qp.eyebrow,title:kt(qp.title),body:qp.body}),TitleWithButtons:()=>({title:kt(VB.title),buttons:YB.map(e=>({...e}))}),SectionHeader:()=>({num:cr.num,title:kt(cr.title),description:cr.description,linkText:cr.linkText,linkHref:je.href}),ParagraphsA:()=>({eyebrow:pi.eyebrow,lead:Te.body,foundersHeading:pi.foundersHeading,foundersBody:pi.foundersBody,attribution:pi.attribution}),Banner:()=>({...qB,ctaText:je.text,ctaHref:je.href}),ProcessSteps:()=>({num:cr.num,title:kt(cr.title)}),IntroBleed:()=>({eyebrow:Vp.eyebrow,title:kt(Vp.title),body:Vp.body,ctaText:je.text,ctaHref:je.href})};function Xp(){Qe(cg),Qe(SA),Qe(DA),Qe(cA),Qe(JA),Qe(pF),Qe(vF),Qe(OF),Qe(MF),Qe(VF),Qe(iB),Qe(bB),Qe(vB),Qe(_B),Qe(KB),Qe(MB),Qe($B),Qe(jB)}var fK=[{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=>d1(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=>c1(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})=>(Xp(),x1(e,Xl,{theme:rC(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=>N0(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=>VE(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=>qE(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=>GE(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=>z0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>m0(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=>QE(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=>a_(e)}];function cK(e,o,t){let r=e;for(let a of fK)(!t||a.chrome)&&(r=a.run(r,o));return r}function aL(e,o){return cK(e,{metadata:o},!1)}import{useRef as pK}from"react";import{createRenderKeep as uK}from"efficient-easel/render";function nL(){let e=pK(null);return e.current??=uK(),e.current}import{isNode as mK,isNodeList as xK}from"efficient-easel/data";import{hidableText as hK,readHidable as IK}from"efficient-easel/draw";var lL="slotCounts",pg=e=>!IK(e).hidden&&hK(e).trim()!=="",gK=e=>typeof e=="string"&&e.trim()!=="",yK={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>gK(e.src),Text:e=>pg(e.text),Heading:e=>pg(e.text),Eyebrow:e=>pg(e.eyebrow)},SK=["widthFit","width","minWidth"],sL=e=>xK(e);function bK(e){if(Array.isArray(e.content))return sL(e.content)?e.content:null;let o=Object.values(e).filter(sL);return o.length===1?o[0]:null}function wK(e,o){return[...new Set([lb,...Object.values(z(Pw,e)??{})])].some(t=>Nt(o,t)!=="")}function CK(e){let o=e.props??{},t=z(yK,e.type);if(!t||!t(o)||wK(e.type,o)||sl(o))return!1;let r=o[Kn];if(r!=null&&r!=="")return!1;let a=lp(o);return!SK.some(n=>a[n]!==void 0)}function kK(e){let o=0;for(let t of e)if(!or(t.props??{})){if(!CK(t))return;o+=1}return o>0?o:void 0}function vK(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!mK(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:bK(l.props);if(typeof i=="string"&&d){let f=kK(d);f!==void 0&&(o[i]=f)}for(let f of Lt(l))a(l.props[f],s||ra(l.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function iL(e,o){return{...e??{},[lL]:vK(o)}}function ICe(e){let o=e.editor?.metadata?.[lL],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 OK({config:e,data:o,metadata:t}){let r=aL(o,t),a=nL(),n=R0(e,L0(r.content)),s=Yf(r.content),l=s.length>0?{...t,[B0]:s}:t;return dL(Xf,{children:dL(TK,{config:n,metadata:iL(l,r.content),keep:a,data:r})})}var fL=PK(OK);import{jsx as jo,Fragment as L7,jsxs as nR}from"react/jsx-runtime";import{Suspense as R7,useMemo as D7}from"react";import{jsx as EK}from"react/jsx-runtime";import{createContext as _K,useCallback as AK,useContext as FK,useState as ug}from"react";var cL=_K({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function ECe({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=ug(null),[n,s]=ug(null),[l,i]=ug(0),d=AK(()=>i(f=>f+1),[]);return EK(cL.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var pL=()=>FK(cL);import{jsx as BK,jsxs as LK}from"react/jsx-runtime";import{createContext as RK,useContext as DK}from"react";var uL=RK(!1);function LCe(){return DK(uL)}function mL({grayscale:e,children:o}){let t=e===!0;return LK(uL.Provider,{value:t,children:[Object.entries(C_(e)).map(([r,a])=>BK("style",{children:a},r)),o]})}import{jsx as NK}from"react/jsx-runtime";import{createContext as MK,useContext as HK}from"react";var xL=MK(null);function MCe(){return HK(xL)}function hL({ink:e,children:o}){return NK(xL.Provider,{value:e??null,children:o})}import{parseOption as WK}from"efficient-shell/format";var IL="data-lead-ink",UCe="data-header-ink",$K=["auto","light","dark"],zK="auto";function UK(e){return e.type==="IntroBleed"?Up(e.props?.layout)!=="stacked":!0}function gL(e){let o=bf(e);return o&&SP(e)&&UK(o)?"light":null}function jCe(e){return WK($K,zK,e)}import{useEasel as Pg}from"efficient-easel/easel";import{useEffect as o7}from"react";import{useEaselApi as t7}from"efficient-easel/easel";import{find as jK,walk as yL}from"efficient-easel/data";var GK=()=>"",KK=e=>qm(Rt([e],GK));function wL(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(KK))])),a=qm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var qK=()=>({press:[ts(oa),ts(Hs)],delivery:[xI()]}),VK={},mg=e=>wL(e,qK,VK),YK=e=>Ne(e)===tb?"delivery":"press";function tke(e,o){if(!o||Ne(e)===Ne(o))return e;let t=mg(e[Pe]),r=YK(e);if(!t||t===r)return e;let a=zm(e,ro),n=r==="delivery"?xI():ts(Ne(e)?Hs:oa),s=Rt([n],jm(a));return{...e,[Pe]:s}}var XK=()=>({cards:[ln(oa),ln(Hs)],label:[dn(!1),dn(!0)]}),ZK={},JK=e=>wL(e,XK,ZK);function rke(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=JK(e[Pe]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=zm(e,lw),n=Array.isArray(e.items)&&e.items.some(i=>fo(i?.href)!==void 0),s=r==="label"?dn(n):ln(Ne(e)?Hs:oa),l=Rt([s],jm(a));return{...e,[Pe]:l}}var SL=(e,o)=>mI.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function bL(e,o){let t={...e};for(let r of mI)delete t[r];return{...t,...structuredClone(o)}}function xg(e){let o=e?.[we];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===ro&&t.props?t:null}function QK(e,o){let t=xg(e),r=xg(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||Ne(t.props)===Ne(r.props))return e;let a=mg(t.props[Pe]);if(!a||a===mg(r.props[Pe]))return e;let n=Ie(e.columns);return n===void 0?e:a==="delivery"&&SL(e,Ba(n))?bL(e,mp(n)):a==="press"&&SL(e,mp(n))?bL(e,Ba(n)):e}function CL(e){let o=Zp.get(e);o?o.count+=1:Zp.set(e,{count:1,stop:e7(e)});let t=!1;return()=>{let r=Zp.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),Zp.delete(e)))}}var Zp=new WeakMap;function e7(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;yL(t,e.config,n=>{if(n.type!==K||!xg(n.props))return;let s=jK(r,e.config,n.props.id);if(!s||s.node===n)return;let l=QK(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>yL(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function kL(){let e=r7();o7(()=>e?CL(e):void 0,[e])}function r7(){try{return t7()}catch{return null}}import{jsx as Jp}from"react/jsx-runtime";import{useEffect as a7}from"react";import{armScrollProgress as n7}from"efficient-shell/format";function vL({armed:e,children:o}){return a7(()=>e?n7():void 0,[e]),o}function hg(){return{style:{"--sf-page-width":Mo}}}function s7({children:e}){return Jp("div",{style:hg().style,children:e})}function hke({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return Jp("div",{style:{...o?{}:Tf(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:Jp(vL,{armed:!t,children:Jp(s7,{children:r})})})}import{jsx as PL,Fragment as l7}from"react/jsx-runtime";import{createContext as OL,useContext as TL}from"react";var EL=OL({}),_L=EL.Provider,AL=OL(void 0),FL=AL.Provider;function Ske(e){let{SectionTextParts:o}=TL(EL),t=TL(AL);return o?PL(o,{...e,sizeCaps:t}):PL(l7,{children:e.children})}import{jsx as P7}from"react/jsx-runtime";import{useEffect as T7,useRef as O7}from"react";var BL="data-easel-overlay-portal";function Qp(e){return e.setAttribute(BL,"true"),()=>{e.removeAttribute(BL)}}import{jsx as g7}from"react/jsx-runtime";import{useEffect as y7,useRef as VL}from"react";import{usePreviewParts as S7}from"efficient-easel/draw/client";import{jsx as i7}from"react/jsx-runtime";import{createContext as d7,useContext as f7,useMemo as c7,useState as p7}from"react";var u7={partStyle:null,setPartStyle:()=>{}},LL=d7(u7);function vke({children:e}){let[o,t]=p7(null),r=c7(()=>({partStyle:o,setPartStyle:t}),[o]);return i7(LL.Provider,{value:r,children:e})}function fs(){return f7(LL)}import{usePreviewDevice as b7}from"efficient-easel/draw/client";import{shownTier as w7}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as YL,encodePartId as C7}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as k7}from"efficient-easel/canvas";import{createPreviewSelectionContext as m7}from"efficient-easel/draw/client";var Na="Scrolling Bar",{Provider:Oke,useSelection:RL}=m7("selectedHeroId"),Ig="data-sf-hero-ticker";function DL(e){return`${e}::ticker`}function NL(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as zr}from"efficient-easel/canvas";import{createPreviewSelectionContext as x7}from"efficient-easel/draw/client";var{Provider:Ake,useSelection:ML}=x7("selectedLocationPartId");function eu(e,o,t){return`${e}::${o}::${t}`}function ou(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 yg="data-sf-part-label";function Sg(e,o){return e.closest(`[${zr}]`)?.getAttribute(zr)===o}function HL(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(g=>[g.key,uf(g.label)])),n=[],s=new Set;for(let g=0;g<r.length;g+=1){let w=r[g];if(!Sg(w,o))continue;let _=w.getAttribute(dv);if(!_)continue;let E=a.get(_);n.push({element:w,partId:$t(o,_),...E?{label:E}:{}}),s.add(w)}let l=[],i=new Set;for(let g=0;g<r.length;g+=1){let w=r[g];if(!Sg(w,o)||s.has(w))continue;let _=cv(w.textContent??"");if(!_)continue;let E=w.closest(`[${Ix}]`)?.getAttribute(Ix)||null;E&&i.add(E.replace(/\[\d+\]$/u,"")),l.push({element:w,text:_,row:E})}let d=g=>l.filter(w=>w.row===iv(g.key,g.row.index)),f=l.filter(g=>g.row===null),x=g=>g.row&&i.has(g.key)?d(g):i.size?f:l,u=new Map,h=[],I=g=>g.row?`${g.key}.${g.row.rowKey}`:null,S=new Map;for(let g of t){let w=I(g);if(!w||i.has(g.key))continue;let _=S.get(w);_?_.push(g):S.set(w,[g])}let v=new Set;for(let[g,w]of S){if(w.length<2)continue;let _=w.flatMap(b=>b.texts);if(new Set(_).size===_.length)continue;let E=x(w[0]).filter(b=>_.includes(b.text));if(E.length!==w.length)continue;let D=[...w].sort((b,F)=>(b.row?.index??0)-(F.row?.index??0));for(let b=0;b<D.length;b+=1){let F=D[b],y=E[b].element,k={key:F.key,partKey:kn(F.key,F.row),exact:!0},P=u.get(y);P?P.push(k):(u.set(y,[k]),h.push(y))}v.add(g)}let O=new Map;for(let g of t){if(v.has(I(g)??""))continue;let w=kn(g.key,g.row);for(let _ of g.texts)for(let E of x(g)){if(E.text!==_)continue;let D=O.get(E.element);D?D.add(w):O.set(E.element,new Set([w]))}}let R=(g,w)=>[...O].some(([_,E])=>_!==g&&!E.has(w)&&_.contains(g));for(let g of t){if(v.has(I(g)??""))continue;let w=kn(g.key,g.row);for(let _ of g.texts){let E=[],D=null;for(let y of x(g))y.text===_?R(y.element,w)||E.push(y.element):!E.length&&y.text.includes(_)&&(!D||y.text.length<=D.length)&&(D={element:y.element,length:y.text.length});let b=E.length?E:D?[D.element]:[],F=b.filter(y=>!b.some(k=>k!==y&&y.contains(k)));for(let y of F){let k={key:g.key,partKey:w,exact:E.length>0},P=u.get(y);P?P.push(k):(u.set(y,[k]),h.push(y))}}}let T=[...n];for(let g of h){let w=u.get(g)??[],_=w.some(E=>E.exact)?w.filter(E=>E.exact):w;if(new Set(_.map(E=>E.partKey)).size===1){let E=a.get(_[0].key);T.push({element:g,partId:$t(o,_[0].partKey),...E?{label:E}:{}});continue}new Set(_.map(E=>E.key)).size===1&&T.push({element:g,partId:$t(o,_[0].key)})}return T}function gg(e,o,t){let r=e.querySelectorAll(`[${Ue}]`);for(let n=0;n<r.length;n+=1){let s=r[n];Sg(s,o)&&(s.removeAttribute(Ue),s.removeAttribute(yg))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute(Ue,s),l&&n.setAttribute(yg,l),a.push(n);return a}function zL(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let f=t(),x=f?.getAttribute(zr)??null;if(!f||!x)return!1;s=x;let u=HL(e,x,o);return a(f,x,gg(e,x,u)),i=n(()=>{let h=HL(e,x,o);h7(u,h)||(u=h,a(f,x,gg(e,x,h)))}),!0};return d()||(l=r(()=>{(s||d())&&(l?.(),l=null)})),()=>{l?.(),l=null,i?.(),i=null,s&&gg(e,s,[])}}function h7(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function Hke(e,o){let t=e?.closest?.(`[${Ue}],[${Pr}]`),r=t?.getAttribute(Ue)??t?.getAttribute(Pr),a=r?lv(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:$L(t,r),label:WL(t,r)};let n=e?.closest?.(jL.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${zr}]`)?.getAttribute(zr)===o?GL(n,o):null;return s?{id:s,element:n,whole:$L(n,s),label:WL(n,s)}:null}function WL(e,o){let t=ou(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=Vc(o);return r?fr[r.part]:NL(o)?Na:e.getAttribute(yg)??void 0}var UL="data-loc-pick",jL=[Ue,Pr,Gl,Ig,UL];function GL(e,o){let t=e.getAttribute(Ue)??e.getAttribute(Pr);if(t)return t;let r=e.getAttribute(Gl);if(r)return ka(o,r);if(e.getAttribute(Ig)!==null)return DL(o);let a=e.getAttribute(UL)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?eu(o,Number(a[0]),a[1]):null}function $L(e,o){let t=e.closest?.(`[${zr}]`),r=t?.getAttribute(zr);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(jL.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${zr}]`)!==t)continue;let s=GL(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as KL,playEntrance as I7}from"efficient-shell/format";var bg=new WeakMap;function qL(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=nk(f),u=r.get(d),h=u?Wn.next(u,x,a):null;r.set(d,h?h.seen:Wn.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=_c(d.element);f&&l.set(f,[...l.get(f)??[],d])}for(let[d,f]of l){let x=I=>_l(o(I.partKey)??{}),u=Un(f.filter(I=>x(I).entrance));if(u){let I=o(u.partKey)??{};n.push(Oc(d,Ys(I,a)));let S=bg.get(d);bg.set(d,u.partKey),(s.get(u.partKey)||S!==void 0&&S!==u.partKey)&&d.hasAttribute(KL)&&I7(d)}else bg.delete(d);let h=d.hasAttribute(KL)?void 0:Un(f.filter(I=>lr(o(I.partKey)??{},a).effect!=="none"));h&&n.push(Ec(d,lr(o(h.partKey)??{},a))),f.some(I=>x(I).hover==="lift")&&(Ac(d.ownerDocument),d.setAttribute(Sa,""),n.push(()=>d.removeAttribute(Sa)))}return()=>n.forEach(d=>d())}function wg(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=Sb(a),t??=Qm(a)}return{faceRole:o??"body",sizeGroup:t}}function tu(e,o={},t=xb){let r=e.style,a={};for(let i of bx)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=Lv({fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,textAlign:n.textAlign,textTransform:n.textTransform,paddingTop:n.paddingTop},Rv(n.fontFamily,i=>s.getPropertyValue(i),t));for(let i of bx)r[i]=a[i];return l}function XL({needles:e,styles:o,motions:t=Tc,type:r,sizeCaps:a,children:n}){let s=VL(null),{selectedPartId:l}=S7(),{setPartStyle:i}=fs(),d=w7(b7()),f=Ct(),x=JSON.stringify(e),u=JSON.stringify(o),h=JSON.stringify(t),I=VL(new Map);return y7(()=>{let S=s.current;if(!S)return;let v=[],O=()=>S.parentElement,R=b=>{let F=O();if(!F)return null;let y=new MutationObserver(b);return y.observe(F,{attributes:!0,attributeFilter:[k7]}),()=>y.disconnect()},T=b=>{let F=new MutationObserver(b);return F.observe(S,{childList:!0,subtree:!0,characterData:!0}),()=>F.disconnect()},g=[];v.push(()=>{for(let b of g)b();g=[]});let w=JSON.parse(x),_=JSON.parse(u),E=JSON.parse(h),D=zL(S,w,O,R,(b,F,y)=>{for(let B of g)B();g=[];let k=[];for(let B of y){let H=B,q=Qp(H);q&&g.push(q),H.getAttribute(Ue)===l&&k.push(H)}let P=Dv(F,l,k,B=>bb(B)!==null||Qm(B)!==null);if(P&&l){let B=P,H=YL(l)?.propKey??"",q=rl(B)?{}:Bv(Nv(_,sr(r,H)),d,{blockDrawsStyle:nl(r,H),sizeCap:la(a,H),fonts:f});i({partId:l,...wg(B),base:tu(B,q,f),inks:lf(B),...(()=>{let $=rl(B);return $?{styleOwner:$}:{}})()})}Sx(y.filter(B=>!rl(B)).map(B=>({element:B,partId:B.getAttribute(Ue)??""})),_,B=>tu(B,void 0,f),B=>sr(r,B),void 0,d,B=>nl(r,B),B=>la(a,B),f);let C=[...S.querySelectorAll(`[${fv}="${CSS.escape(F)}"][${pf}]`)];C.length&&Sx(C.map(B=>({element:B,partId:C7(F,B.getAttribute(pf)??"")})),_,void 0,B=>B,void 0,d,void 0,void 0,f),g.push(qL([...y.filter(B=>!rl(B)).map(B=>{let H=B,q=YL(H.getAttribute(Ue)??"")?.propKey??"";return{element:H,partKey:sr(r,q)}}),...C.map(B=>({element:B,partKey:B.getAttribute(pf)??""}))],B=>E[B],rk(d),I.current))},T);return()=>{D();for(let b of v)b()}},[x,u,h,l,i,d,r,f]),g7("div",{ref:s,[Eh]:"",style:{display:"contents"},children:n})}import{shownTier as E7}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as _7,usePreviewParts as A7}from"efficient-easel/draw/client";var ui={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)]"},v7={tag:{label:"Tag",follows:"Labels",builtIn:pn(ui.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:pn(ui.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:pn(ui.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:pn(ui.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:pn(ui.link),writable:!0}},ZL=v7;var gve=ta,JL={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 QL={SpecTable:JL,FAQ:hw,Collections:ZL,Contents:$p};function eR(){return on("efficient.section-text-regions",()=>new Map)}function Pve(e){let o=eR();for(let[t,r]of Object.entries(e)){if(co(QL,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 cs(e){return e?z(QL,e)??eR().get(e)??null:null}function oR({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=O7(null),{selectedPartId:s}=A7(),{setPartStyle:l}=fs(),i=E7(_7()),d=Ct(),f=JSON.stringify([t??null,r??null]);return T7(()=>{let x=n.current,u=cs(o);if(!x||!e||!u)return;let h=[],I=Array.from(x.querySelectorAll(`[${ta}]`));for(let S of I){let v=Km(u,S.getAttribute(ta));if(!v)continue;let O=Qp(S);O&&h.push(O);let R=Ws(v),T=$t(e,R);S.setAttribute(Pr,T);let g=t?.[R];if(u[v].sized&&Mv(g)){let w=Hv(g,i,{sizeCap:la(r,R),fonts:d}),_={fontFamily:S.style.fontFamily,fontSize:S.style.fontSize},E=S.getAttribute(na);w.fontFamily&&(S.style.fontFamily=w.fontFamily),w.fontSize&&(S.style.fontSize=w.fontSize);let D={fontFamily:w.fontFamily?S.style.fontFamily:void 0,fontSize:w.fontSize?S.style.fontSize:void 0},b=g?.textStyle;wv(b)&&S.setAttribute(na,b),h.push(()=>{zv(S.style,_,D),E===null?S.removeAttribute(na):S.setAttribute(na,E)})}if(T===s){let w=tu(S,$v(g,u[v],i,d),d);l({partId:T,...wg(S),base:w})}}return()=>{for(let S of h)S();for(let S of I)S.removeAttribute(Pr)}},[e,o,s,l,i,f,d]),P7("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as Cg,Fragment as tR}from"react/jsx-runtime";import{createContext as F7,useContext as rR,useMemo as B7}from"react";var kg=F7(null),aR=e=>e==null||e===""?void 0:String(e);function vg({content:e,children:o}){let t=B7(()=>Qx(e),[e]);return Cg(kg.Provider,{value:t,children:o})}function jve({id:e,children:o}){let t=rR(kg),r=aR(e);return Cg(tR,{children:o(r?t?.entries.get(r):void 0)})}function Gve({id:e,children:o}){let t=rR(kg),r=aR(e);return Cg(tR,{children:o(r?t?.numbers.get(r):void 0)})}var N7={SectionTextParts:oR},M7="color-mix(in oklab, var(--bg) 40%, #ffffff)",H7="12vh";function W7({style:e,children:o}){let{appState:t}=Pg(u=>u),r=t.data.content,a=t.data.root;if(bP(r))return jo("div",{className:"sf-themed-content",style:{...e,background:M7,minHeight:"100vh",paddingBottom:H7},children:jo("div",{style:{background:"var(--bg)"},children:jo(vg,{content:r,children:o})})});let n=vx(r)&&CP(a,r),s=vx(r)?kP(a,r):null,l=s?{[wP]:s}:null,i=RC(a?.widthChoice),d=i?{[LC]:i}:null,f=n?null:gL(r),x=f?{[IL]:f}:null;return jo("div",{className:`sf-themed-content${n?` ${gP}`:""}`,style:e,...x,...l,...d,children:jo("div",{style:{background:"var(--bg)",minHeight:"100%"},children:jo(vg,{content:r,children:o})})})}function yPe({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:f,children:x}){kL();let u=Pg(I=>I.appState.data.root?.props),h=Pg(I=>YP(I.appState.data.content));return jo(Tg,{siteFooterRootProps:u?.kind===Jv?u:void 0,inPlaceFooterProps:h,propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,body:I=>nR(L7,{children:[jo(W7,{style:I,children:x}),d,f]})})}function Tg({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}=pL(),h=D7(()=>XP(u,f),[u,f]),{theme:I,fonts:S,sizes:v,cornerRadiusPx:O,cardShadow:R,shadowColor:T,cardGap:g,hoverEffect:w,headingCompression:_,siteWidth:E,siteGutter:D,siteGutterPhone:b,blockGap:F,blockGapPhone:y,siteLengthUnits:k,headingTypography:P,heroBackgroundFollowsWidth:C,photographyGrayscale:B,textStyles:H,wordStyles:q,themeFromDocument:$}=ko(),le=Ct(),pe=$?e:I,ee=$?o:S,xe=$?void 0:v,oe=$?r===void 0?qw[Kw(t)]:Vw(r):O,ie=$?{}:k,ge=$?a:_,Re=$?n:P,$e=[$T(WT($?void 0:H),le),zT(oC(Re).italicStrong)].filter(Boolean).join(`
336
+ `),yo=hg(),oo={...Dw(pe),...Gw(xe),...tC(Re),...yo.style,...l?{}:Tf(s)};return nR("div",{className:`sf-theme-surfaces sf-theme-accent ${[EC($?void 0:b),rP($?void 0:y)].filter(Boolean).join(" ")}`.trim(),style:{...wb(ee,le),...vb($?null:q,le),...Nw(pe),...Hw(pe),...Ww(pe),...Fd(pe),...Yw(oe,ie.cornerRadiusUnit),...Qw($?void 0:R,$?void 0:T,$?void 0:w),...uC($?void 0:E,ie.siteWidthUnit),...PC($?void 0:D,ie.siteGutterUnit),...OC($?void 0:b,ie.siteGutterPhoneUnit),...oP($?void 0:F,ie.blockGapUnit),...tP($?void 0:y,ie.blockGapPhoneUnit),...Dd($?void 0:C)},"data-sf-headings":eC(ge),[gC]:Rd(d??h),[Jd]:Pk(d??h),"data-sf-card-shadow":$?void 0:Xw(R),"data-sf-card-gap":$?void 0:Zw(g),"data-sf-card-hover":$?void 0:Jw(w),onClickCapture:i,children:[$e?jo("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:$e}}):null,jo(mL,{grayscale:$?void 0:B,children:jo(_L,{value:N7,children:jo(hL,{ink:Rw(pe),children:jo(R7,{fallback:null,children:jo(V0,{rootProps:d??h,children:x(oo)})})})})})]})}var sR=e=>{e.target?.closest?.("a")&&e.preventDefault()};var $7=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function z7(e,o){return e.replace($7,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function iR(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=z7(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function dR(e,o){for(let t of Array.from(e)){let r=t.style;r&&iR(r,o);let a=t.cssRules;a&&dR(a,o)}}function lR(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}dR(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))iR(t.style,o)}function fR(e,o){lR(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,lR(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 Y7=1440,Eg=800;function pR({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=cl(),[s,l]=Og(null),[i,d]=Og(Eg),[f,x]=Og(null);return U7(()=>{if(!s)return;let u=fR(s,Eg),h=s.defaultView,I=()=>{f&&d(Math.max(Eg,Math.ceil(f.getBoundingClientRect().height)))},S=h&&f?new h.ResizeObserver(I):null;return f&&S?.observe(f),I(),()=>{u(),S?.disconnect()}},[s,f]),cR("div",{className:"sf-starter",children:[cR(K7,{padding:"none",className:"sf-starter-picture",children:[Tt("div",{inert:!0,className:"sf-starter-frame",children:Tt(q7,{width:Y7,height:i,children:Tt(j7,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:Tt(Vf,{document:s??void 0,children:Tt(Tg,{onClickCapture:sR,body:u=>Tt("div",{className:"sf-themed-content",style:u,children:Tt("div",{ref:x,style:{background:"var(--bg)"},children:Tt(fL,{config:o,data:e.layout,metadata:t})})})})})})})}),Tt("div",{className:"sf-starter-add",children:Tt(G7,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Tt(V7,{size:"sm",children:e.title})]})}import{useMemo as sZ}from"react";import{sessionRegistry as lZ}from"efficient-easel/screen/lib/session";import{useEaselSession as iZ}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as X7}from"efficient-easel/screen/lib/session";var Z7={general:!0,commerce:!0,service:!0};function _g(e){let o=e?.sets;return o?Object.fromEntries(ib.map(t=>[t,o.includes(t)])):Z7}function Ag(e=X7()){return _g(e.blocks)}import{currentEaselSession as vR}from"efficient-easel/screen/lib/session";import{SITE_SIDE as xR}from"efficient-easel/screen/lib/content/length-units";var uR=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],MPe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:Qb,separator:ew,scrollDirection:fi}};var mR=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],$Pe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function xo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function hR(e,o,t){return xo(K,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var ru={Manifesto:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[xo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:xR,sectionPaddingRight:xR,content:[xo("Text",e,o,Jt()),xo("Text",e,o,hr()),xo("Text",e,o),xo("Stats",e,o)]}),hR(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[xo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[xo("Text",e,o,Jt()),xo("Text",e,o,hr()),xo("Text",e,o),xo("ButtonBlock",e,o)]}),hR(e,o,{direction:"column",name:"Image",content:[xo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"column",name:"Subscribe",content:[xo("Text",e,o,hr()),xo("Text",e,o),xo("Form",e,o)]}}),Ticker:(e,o)=>IR("Scrolling Bar",ec,ma,uR.map(t=>({text:t.text,style:oc,muted:!0})),e,o),SpecStrip:(e,o,t)=>IR("Spec Strip",t?.theme?{...gl,sectionAccent:Ad(er(t.theme))}:{...gl,sectionBorder:{top:1}},xa,mR().map(r=>({text:r.text??"",style:yl,muted:r.tone==="muted"})),e,o)};function IR(e,o,t,r,a,n){return xo(K,a,n,{...ua,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>xo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function gR(e){return z(ru,e)??null}import{isNodeList as Fg}from"efficient-easel/data";var pTe=Object.keys(cg),J7={Logos:NA,DocMasthead:RF,DocTabs:GF,Timeline:fF,TimelineTrack:cF},Q7={PaymentBadges:MA,PaymentLogosBlock:HA,Integrations:zB};function au(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]=Fg(n)?n.map(s=>au(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var yR=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function mi(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Oa({type:e,props:{...a(e),...r(),id:n(e)}},o,yR(s));return au(l[t],a,n)}}var eq={Stats:tq,Cards:oq};function oq(){let e=Rr("Cards");if(!e)return null;let o=mi("Cards",e,0,fA);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function tq(){let e=Rr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Oa({type:"StatsParagraph",props:{...o("StatsParagraph"),...bA(),id:t("StatsParagraph")}},e,yR(r)),n=a[0],s=Fg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=bR(AI(wA(),"table")),i=s.map(SR),d=au({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function SR(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Fg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(SR)}}:e}var bR=e=>Rt([e],(o,t)=>`${o}-seed-${t}`)[0];function rq(e,o){if(!m1(e,o))return null;let t=z(eq,e);if(t)return t();let r=Rr(e);return r?mi(e,r,0,z(J7,e)??z(rL,e)??z(Q7,e)):null}function aq(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=au(bR(AI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=qe(n,l=>ze(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function ps(e,o=Ta){let t=gR(e);return t?aq(t):rq(e,o)}import{blockTypesIn as wR}from"efficient-easel/screen/lib/document/block-types-in";var CR=()=>({}),kR=new Map;function nq(e){let o=kR.get(e);if(o)return o;let t=new Set,r=z(it,e);if(r)for(let s of r.seeds(CR))for(let l of wR({type:r.childType,props:s}))t.add(l);let a=ps(e);if(a){let s=0;for(let l of wR(a(CR,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return kR.set(e,n),n}function Bg(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=_g(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=pb(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)&&nq(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var sq="block-offer";function Lg(e=vR()){return e.cache(sq,()=>Bg(mn(e)))}function PR(e,o=vR()){let t=Lg(o);return t?t.offers(e):!0}var TR={name:"catalogueLabel",applies:e=>co(Qr,e),draw(e,o){e.label=z(Qr,o)}};import{jsx as Hg}from"react/jsx-runtime";import{parseBlockWidthFit as cq,phoneKey as Ot,tabletKey as xt}from"efficient-easel/draw";import{jsx as lq}from"react/jsx-runtime";import{phoneKey as nu}from"efficient-easel/draw";var OR={name:"sectionGroupAllow",applies:e=>xf.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Rg=new Set(Object.keys(wt)),ER={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=>!Rg.has(i)):a;s.disallow=Array.from(new Set([...s.disallow??[],...l]))}}};var AR=Array.from(new Set([...mb.map(e=>e.type),...Rg]));function Dg(e,o){return AR.includes(e)||o?.sitsInBox===!0}var iq=Array.from(new Set([...AR,...id,"GalleryItem"])),dq={not:{context:"parentOffersPositions",is:!1}},fq={not:{context:"parentTileSlot",is:!1}},_R=[dx,nu("gridSpan"),nu("gridRowSpan")],FR={name:"cellWidth",applies:(e,o,t)=>(iq.includes(e)||Dg(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=No(e.fields??{},a.filter(n=>!_R.includes(n)),dq),e.fields=No(e.fields??{},_R,fq)},draw(e){let o=e.render;e.render=t=>{let r=GC(t.gridSpan),a=qC(t.gridRowSpan),n=YC(t[dx]),s=ZC(t[nu("gridSpan")]),l=JC(t[nu("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[KC]=String(r)),a!=null&&(d[VC]=String(a)),s!=null&&(d[QC]=String(s)),l!=null&&(d[ek]=String(l));let f=n!=null?{[XC]:n}:void 0;return lq(de,{className:"sf-grid-cell",style:f,...d,children:i})}}};function BR(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 xi={not:{context:"heldByANode",is:!0}};function su(e,o){return"parent"in o?o.parent!=null:!!Kt(o.appState,e.props?.id)}function Kt(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 rn(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var pq=new Set(["Text","Heading"]),uq=new Set(["h1","h2","h3","h4","h5","h6"]);function LR(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&uq.has(o.tag)?!0:Tr(o,"text").textStyle?.startsWith("heading-")===!0}var Ur={not:{context:"blockOutsideBox",is:!0}},RR={all:[Ur,{not:{context:"boxSharesWidth",is:!0}}]},DR={all:[Ur,{not:{context:"boxSharesWidthPhone",is:!0}}]},NR={all:[Ur,{not:{context:"boxSharesWidthTablet",is:!0}}]};function $R(e,o,t){return{any:[{field:xt(e),is:o},{all:[{field:xt(e),set:!1},t??{field:e,is:o}]}]}}function zR(e,o,t){return{any:[{field:Ot(e),is:o},{all:[{field:Ot(e),set:!1},t??{field:e,is:o}]}]}}var UR={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},mq=[[["_gBlockSize","minWidth",xt("minWidth"),Ot("minWidth"),"maxWidth",xt("maxWidth"),Ot("maxWidth")],Ur],[["widthFit"],RR],[[xt("widthFit")],NR],[[Ot("widthFit")],DR],[["width"],{all:[RR,{field:"widthFit",is:"fixed"}]}],[[xt("width")],{all:[NR,$R("widthFit","fixed")]}],[[Ot("width")],{all:[DR,zR("widthFit","fixed")]}]],MR=$R("textFit","shrink",UR),HR=[[["_gText","textFit",xt("textFit"),Ot("textFit")],Ur],[["minFont"],{all:[Ur,UR]}],[[xt("minFont")],{all:[Ur,MR]}],[[Ot("minFont")],{all:[Ur,zR("textFit","shrink",MR)]}]],lu=(e,o)=>Kt(o.appState,e.props?.id),iu=e=>!!e&&typeof e.type=="string"&&dd(e.type)!==null,Ng=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Tn(e.type,e.props?.direction)==="row",Mg=e=>{let o=cq(e);return o!==void 0&&o!=="fit"},xq={blockOutsideBox:(e,o)=>!iu(lu(e,o)),boxSharesWidth:(e,o)=>{let t=lu(e,o);return!iu(t)||!Ng(t)?!1:Wm({...t.props,direction:"row"})!==""?!0:Hm(t.props?.share)!==""&&!Mg(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=lu(e,o);if(!iu(t)||!Ng(t))return!1;if(rw(t.props?.[xt("columns")])!==""||Wm({...t.props,direction:"row"})!=="")return!0;let r=tw(t.props?.[xt("share")])??t.props?.share;return Hm(r)!==""&&!Mg(e.props?.[xt("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=lu(e,o);if(!iu(t)||!Ng(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!aw(r,t.props?.[Ot("share")])&&!Mg(e.props?.[Ot("widthFit")]??e.props?.widthFit)}},hq=e=>/^_[gds][A-Z]/.test(e);function Iq(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&&!hq(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function WR(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function gq(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return WR(o,r.indexOf("_dSize")+1,n)}return yq.has(e)&&r.includes("_gSpacing")?WR(o,r.indexOf("_gSpacing"),t):{...o,...t}}var yq=new Set(["Text","Heading"]);function Sq(e,o){let{_gText:t,...r}=o;return Iq(e,"_gText",r)??{...e,...o}}function bq(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",xt("textFit"),Ot("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var jR={name:"blockSize",applies:(e,o,t)=>Dg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=pq.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=gq(o,e.fields??{},et(n,mq));if(r){let l=et(a,HR);if(s=Sq(s,l),o==="Text"){let i=et(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,HR),d=bq(i),f=e.resolveFields,x=(u,h)=>{let I=f?f(u,h):h.fields,S=v=>LR(o,u?.props??{})?d(v??h.fields):v;return I instanceof Promise?I.then(S):S(I)};e.resolveFields=x}}e.fields=s,Dt(e,{...xq,textWrapsByDefault:l=>!LR(o,l.props??{})})},draw(e,o){wq(e,o)}};function wq(e,o){let t=e.render;e.render=r=>{let a=lp(r),n=fI(a),s=t(r),l=n&&fI(a,{atSectionLine:!0});return n===null?s:Hg(Cq,{size:n,sectionSize:l??n,atEdge:o===K,canvasAttrs:r.editor?.isEditing?E1(a):GR,inCell:O1(a),fillsPhone:v1(a),widens:_1(a),children:s})}}var GR={};function Cq({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=tf(),d=kr(t?"edge":"by-box"),f=d?e:o,x=f.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?Hg(xE,{children:l}):l;return Hg(vr,{className:[x,u?a:"",h?k1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==GR?{...f.attrs,...r}:f.attrs,children:I})}import{Fragment as Rq,jsx as pu}from"react/jsx-runtime";import{jsx as Po,Fragment as Ug}from"react/jsx-runtime";import{createContext as us,useContext as Et}from"react";var kq=new Set(["Flex","Grid"]);function jr(e){return typeof e=="string"&&kq.has(e)}var Ma="contentWidth",Wg="full",$g="content";function Ii(e){let o=e?.[Ma];return o===Wg?!1:o===$g?!0:void 0}function KR(e,o){return e&&!o}function du(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!qk(e)&&!jA(e.scrollDirection)}function hi(e,o){return jr(e)&&du(tl(o,!1))?In({}):In(o)}function fu(e,o){return typeof e!="string"||!Nd(e)||Gs[e]==="rawMarkup"?hi(e,o).background??"full":hi(e,o).background??Md(o).background}function cu(e){return e!=="full"}function qR(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=jr(d?.type),u=(l?hi(d?.type,f).content:null)==="content"?!0:s,h=x&&(n.inBox?Ii(f)??u:u),I={insideGutter:n.insideGutter||h||x&&du(tl(f,i)),inBox:n.inBox||x};for(let S of Lt({type:d?.type,props:f})){let v=f[S],O=r(v,I,u,!1,i||ra(d?.type,S));if(O!==void 0)return O}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var vq=" [--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))))]",Pq="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",Tq="[--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)))]",VR="max-w-[100vw]",Oq=`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))] ${VR}`;function YR(e,o=!1){let t={},r=e.pad??{},a=wk({left:r.left,right:r.right},{left:r.leftPhone,right:r.rightPhone},{left:r.leftTablet,right:r.rightTablet},{left:r.left,right:r.right},{desktop:r.unit,tablet:r.unitTablet,phone:r.unitPhone},0,e.site?"site":"box"),n=a.style;for(let[f,x]of[["l","paddingLeft"],["r","paddingRight"]]){let u=n[x];u!==void 0&&(t[`--sf-edge-${f}d`]=typeof u=="number"?`${u}px`:String(u));let h=n[`--sf-pad-${f}-tablet`],I=n[`--sf-pad-${f}-phone`];h!==void 0&&(t[`--sf-edge-${f}t`]=String(h)),I!==void 0&&(t[`--sf-edge-${f}p`]=String(I))}let s=yr(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${vq}`:`${Pq}${l?` ${s.className}`:""}`,d=o?` ${wC}${e.gutter?` ${CC}`:""}`:"";return{className:`${i} ${Tq}${d}`,style:t}}function i0e(e,o=!1){let{className:t,style:r}=YR(e,o);return{className:`${t} ${Oq}`,...Object.keys(r).length?{style:r}:{}}}var Eq="[--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 _q="--sf-edge-beyond";function XR(e){return`max(0px,calc((${e===null?js:`min(${js},${e})`} - ${Mo}) / 2))`}var Aq=`${Eq} 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))] ${VR}`;function d0e(e){let{className:o,style:t}=YR(e);return{className:`${o} ${Aq}`,style:{...t,[_q]:e.beyond??"0px"}}}var gi=us(!1);function S0e(){return Et(gi)}function b0e({children:e}){return Po(gi.Provider,{value:!0,children:e})}var zg=us(!1);function jg({children:e}){return Po(zg.Provider,{value:!0,children:e})}var ZR=us(null);function Gg({ground:e,children:o}){return Po(ZR.Provider,{value:e,children:o})}var Kg=us(!1);function Fq(){return Et(Kg)}function JR({atTop:e,nested:o}){return Po(Ug,{children:Fq()?o:e})}var yi=us(void 0);function QR({children:e}){return Po(yi.Provider,{value:null,children:e})}function qg(){return Et(yi)===void 0&&!Et(Kg)&&!Et(gi)}function ms({own:e,followed:o}){return Po(Ug,{children:qg()?e():o()})}var eD=us(null);function oD({value:e,children:o}){return Po(eD.Provider,{value:e,children:o})}function tD({draw:e}){return Po(Ug,{children:e(Et(eD))})}function w0e(){return Et(yi)??null}function rD({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:l,outerAttrs:i,box:d=!1,edge:f=!1,outerStyle:x,outerClass:u,bleed:h=!1,siteSide:I=!1,part:S,children:v}){let O=Et(gi),R=vt(),T=R?` ${yr(I?"site":"box").onceFrame}`:"",g=Et(zg),w=KR(e,O),_=w&&!g,E=at(),D=!!(l&&_),b=D?u:Co(u??"",E.className)||void 0,F=D||!E.className?i:{...i,...E.attrs},y=s?aa(s,_):null,k=y&&R?{root:y.root?{...y.root,className:ot(y.root.className,!0)}:null,outer:y.outer?{...y.outer,className:ot(y.outer.className,!0)}:null}:y,P=k?.root??null,C=l&&!_?l:null,B=d&&!h?R?`${rx} ${SC(I?"site":"box")}`:rx:null,H=[_?`${o}${T}`:t,_?B:null,P?.className,C?Ik:null].filter(Boolean).join(" "),q=Bq(h&&_,P||C?{...a,...P?.style,...C}:a),$=Et(yi),le=Et(ZR),pe=d&&f&&$===void 0?{gutter:w,...s?{pad:s.values}:{},beyond:w&&g?XR(le):"0px",...I&&w?{site:!0}:{}}:null,ee=d?Po(Kg.Provider,{value:!0,children:Po(yi.Provider,{value:pe,children:v})}):v,xe=w?Po(gi.Provider,{value:!0,children:ee}):ee,oe=k?.outer??null,ie=F&&Object.keys(F).length>0?F:null,ge=Po("div",{...oe?null:ie,className:!oe&&b?H?`${H} ${b}`:b:H,style:oe||!x?q:{...q,...x},"data-tab-label":n,...oe?null:S,children:g?Po(zg.Provider,{value:!1,children:w&&!h?Po("div",{className:B?`${r}${T} ${B}`:`${r}${T}`,children:xe}):xe}):xe}),Re=oe?Po("div",{...ie,className:b?`${oe.className} ${b}`:oe.className,style:x?{...oe.style,...x}:oe.style,...S,children:ge}):ge;return E.scope(l&&_?Po("div",{className:Co(Vd,E.className),style:{display:"contents",...l},...E.attrs,children:Re}):Re)}function Bq(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as Lq}from"react/jsx-runtime";function aD({children:e}){return Lq(de,{className:KA,children:e})}function Dq({side:e,children:o}){return qg()?pu(aD,{children:pu(de,{className:qA(e),children:o})}):pu(Rq,{children:o})}var nD={name:"boxJoin",applies:(e,o,t)=>e===K&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=Bp(t.join);return r?pu(Dq,{side:r,children:o(t)}):o(t)}}};var sD=(e,o)=>e.fields?.[o]?.type==="slot",Nq=(e,o)=>sD(o,Pe)||Td(e).some(t=>sD(o,t)),lD={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"?Cd(o,n):s==="copy"?wd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as bi}from"react/jsx-runtime";import{Fragment as Ha,jsx as We,jsxs as Vg}from"react/jsx-runtime";import{createContext as Yg,useContext as Gr,useId as Uq}from"react";import{REPEAT_ATTRIBUTE as jq,REPEAT_INDEX_ATTRIBUTE as Gq}from"efficient-easel/draw";import{jsx as $0e}from"react/jsx-runtime";import{createContext as Wq,useContext as cD,useMemo as $q}from"react";var iD="title";function dD(e){return`${e}Alt`}function Mq(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function fD(e,o){let t={[iD]: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}=Mq(n);t[r]=s,t[dD(r)]=l}}return t}function Hq(e,o){return typeof o!="string"?o.flatMap(t=>Hq(e,t)):e===wf||!vP(e)?[]:o==="image"?Px(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:dD(t.key)})):o!=="text"?[]:[{key:iD,label:c("Title")},...Px(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var pD=Wq(null);function zq(){return cD(pD)?.record??null}function G0e(e){let o=zq();return o!==null&&o.type===e?o:null}function uD(){let e=cD(pD);return $q(()=>e&&e.record.type!==wf?fD(e.record,e.dateWords):null,[e])}function aOe({props:e,editing:o,children:t}){let r=Gr(Si);return!o&&Xm(e,r?.row)?null:We(Ha,{children:t})}var mu=Yg(null);function nOe({field:e,children:o}){let t=Gr(mu);return We(Ha,{children:o(t&&t.field===e?t.id:void 0)})}function Kq(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Xm({[tn]:r},o)))?.field??""}var Si=Yg(null),uu=Yg(null),qq={label:"text-[length:var(--size-label,12px)]"},Vq=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${qq.label} text-fg-dim`;function sOe({name:e,label:o,editing:t}){let r=Gr(uu)?.(e),a=ef()!=="";return r!=null&&r!==!1?a?We(de,{className:"contents",children:r}):We(Ha,{children:r}):t?We(de,{className:Vq,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function lOe(){return Gr(Si)}function Xg({type:e,props:o,children:t}){let r=Gr(Si),a=uD(),n=r?.row??a;return We(Ha,{children:t(Ew(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function Yq({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=Uq(),{press:l,disabled:i}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return Vg("div",{...e,id:s,className:t&&!i?`${yh} ${PE}`:yh,children:[We("button",{type:"button",[EE]:"",className:i?FE:AE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),We(mu.Provider,{value:f,children:n})]})}function iOe({ownerId:e,ownerType:o,slot:t=Pe,Template:r,rows:a,items:n,fields:s,states:l,stateLine:i,actions:d,pressTitles:f,previewHover:x,fallback:u,copyAttrs:h,wrapCopy:I,rowKey:S,hostParts:v,children:O}){let R=Gr(Si),T=Gr(mu),g=Gr(uu);if(!r||(r.blockCount??0)<=0)return We(Ha,{children:u});let w=R!==null,_=Cw(o),E=x??R?.previewHover,D=r.blockCount===1?We(zk,{children:We(r,{className:Bk})}):We(r,{}),b=new Set,F=(k,P)=>{if(!S)return P;let C=S(k,P);for(;b.has(C);)C=`${C}#${P}`;return b.add(C),C},y=a.map((k,P)=>{let C=l?.[P],B={row:k,index:P,ownerType:o,slot:t,item:n?.[P],nested:w,...s?{fields:s}:null,...C?{state:C}:null,..._?{linesBetween:_}:null,...E?{previewHover:E}:null},H=jh(C)?Vg(Ha,{children:[D,i==="under"?We("span",{"aria-hidden":"true",className:wE}):Uh(C)?Vg("span",{"aria-hidden":"true",className:CE,children:[We("span",{className:kE}),We("span",{className:vE})]}):We("span",{"aria-hidden":"true",className:bE})]}):D,q={[jq]:`${e}:${t}`,[Gq]:P,...typeof h=="function"?h(B):h},$=d?.[P],le=TE(C,i),pe=$?We(Yq,{attrs:{...q,...le},selected:C?.selected===!0,hover:i!=="under",action:$,titleField:Kq(f,k),children:H}):T?We("div",{...q,...le,children:We(mu.Provider,{value:null,children:H})}):We("div",{...q,...le,children:H}),ee=I?I(pe,B):pe;return We(Si.Provider,{value:B,children:v?We(uu.Provider,{value:xe=>v(B,xe),children:ee}):g?We(uu.Provider,{value:null,children:ee}):ee},F(B,P))});return We(Ha,{children:O(y)})}var mD={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==ro&&e!==un,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)=>mv(a(),f,x=>Tw(o,d,x));r.render=d=>{let f=Tv(d),x=HO(d);return d.editor?.isEditing&&l?bi(Xg,{type:o,props:d,children:u=>bi(l,{needles:i(d,u),styles:f,motions:x,type:o,sizeCaps:n,children:bi(FL,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(x).length?s(d):bi(Xg,{type:o,props:d,children:u=>bi(KO,{needles:i(d,u),styles:f,motions:x,type:o,atEdge:o===K,sizeCaps:n,children:s(d)})})}}};import{jsx as xD}from"react/jsx-runtime";var hD={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=hk(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?xD(de,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},Zg=["CollectionCard"],ID={name:"cardCorners",applies:(e,o,t)=>Zg.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=$P(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?xD(de,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var gD={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 yD={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 SD,jsxs as Xq}from"react/jsx-runtime";var Zq="Flex",bD=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,wD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>bD(t,Ml)?SD(de,{className:Nc,children:t[Ml]==="empty"?null:o(t)}):o(t)}},CD={name:"headBox",applies:(e,o,t)=>e===Zq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>bD(t,Nl)?Xq(de,{className:Mc,children:[SD(Hc,{}),o(t)]}):o(t)}};import{createElement as Jq}from"react";var kD={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===K?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(or(n))return null;let s=sl(n),l=Wk(s,Yv(n),{sectionClassName:sl(n,{atSectionLine:!0}),line:r});return Jq(Nk.Provider,{value:l},a(n))}}};import{jsx as t9}from"react/jsx-runtime";import{createContext as PD,createElement as vD,useContext as Qq}from"react";var TD=PD(null),e9=PD(!1),NOe=TD.Provider;function o9(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function OD({name:e,editing:o,children:t}){let r=Qq(TD);return o||o9(e,r?.selected??null,r?.known??[])?t:vD("div",{hidden:!0,style:{display:"none"}},vD(e9.Provider,{value:!0},t))}var r9="Flex",ED={name:"showFor",applies:(e,o,t)=>e===r9&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=XE(t[Kn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return t9(OD,{name:r,editing:a,children:o(t)})}}};var _D=kf.mediaFields,a9=e=>LP(e)?e.src:e;function n9(e,o){let t=o;for(let r of z(_D,e)??[])t=RP(t,r,a9);return t}var AD={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(z(_D,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(n9(o,r))}};import{jsx as wi,Fragment as FD,jsxs as BD}from"react/jsx-runtime";var s9="!grow-0 !shrink-0 !basis-0",l9=["[.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(" "),i9="flex flex-col w-full min-w-0 [&>*]:grow";function LD({anchor:e}){let o=da(e),t=kr(),r=ef();return o?wi("span",{id:o,className:Co(t?`sf-section-anchor ${s9} ${l9}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function d9({anchor:e,copiesInBox:o,children:t}){let r=tf()?.columnsRow===!0,a=$k(),n=da(e)!=="";return o?wi(FD,{children:t}):r&&!a&&n?BD(de,{className:i9,children:[wi(LD,{anchor:e}),t]}):BD(FD,{children:[wi(LD,{anchor:e}),t]})}var RD={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=>wi(d9,{anchor:r.anchor,copiesInBox:Yo(o,r),children:t(r)})}};import{jsx as f9}from"react/jsx-runtime";var DD=Object.fromEntries(Ub.map(e=>[e,"picture"])),c9={[K]:"box",Ticker:"marquee",...Object.fromEntries(ud.map(e=>[e,"cards"])),...DD},ND=(e,o)=>!Ud.has(e)&&!!o&&typeof o.render=="function";function MD(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function HD(e,o){let t=e,r=t.render;t.render=a=>{let n=Sn(a);return!n||Yo(o,a)?r(a):f9(kc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===K,children:r(a)})}}var WD={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&ND(e,t),panel:(e,o,t)=>MD(e,z(c9,o)??"section",t,o),draw:(e,o)=>HD(e,o)},$D={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&ND(e,t),panel:(e,o,t)=>MD(e,z(DD,o)??"block",t,o),draw:(e,o)=>HD(e,o)};import{jsx as p9}from"react/jsx-runtime";var zD=(e,o)=>!Ud.has(e)&&!!o&&typeof o.render=="function";function u9(e){let o=vh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function UD(e,o){let t=e,r=t.render,a=u9(o),n=e.drawsPictures===!0;t.render=s=>{let l=zn(s);return!l||Yo(o,s)?r(s):p9(Kc,{views:l,...a?{origins:NO(s,a)}:{},takesViewHide:!0,atEdge:o===K,zoomInside:n?"picture":"layer",children:r(s)})}}var jD={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&zD(e,t),draw:(e,o)=>UD(e,o)},GD={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&zD(e,t),draw:(e,o)=>UD(e,o)};import{jsx as m9}from"react/jsx-runtime";import{createElement as x9}from"react";var Jg=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function h9(e,o){let t=e.props??{};return Jg.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Kt(o.appState,t.id))?.type===K}var Qg={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!Fk.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.heightFields;e.fields={...e.fields,...r()};let a=r({fill:!0}),n=new WeakMap,s=i=>{if(!i||!Jg.some(f=>f in i))return i;let d=n.get(i);if(!d){d={...i};for(let f of Jg)f in d&&(d[f]=a[f]);n.set(i,d)}return d},l=e.resolveFields;e.resolveFields=(i,d)=>{let f=l?l(i,d):d.fields,x=u=>h9(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(Yo(o,r))return t(r);let a=Dk(r);return a?m9(vr,{className:a.className,style:a.style,...o===K?{attrs:Zb}:null,children:t(r)}):t(r)}}},KD={name:"sectionHeightFillRoot",applies:Qg.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Yo(o,r)?null:Hk(Rk(r),Lk(r).join(" "));return x9(Mk.Provider,{value:a},t(r))}}};import{jsx as xu}from"react/jsx-runtime";import{PIN_ATTR as qD,PIN_FRAME_ATTR as I9}from"efficient-shell/format";var YD=ZD("sectionSticky",(e,o,t)=>o.isSection(e)&&!uk.has(e)&&!!t&&typeof t.render=="function",!0),XD=ZD("cardSticky",(e,o,t)=>Zg.includes(e)&&!!t&&typeof t.render=="function",!1);function ZD(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=cx.has(a);r.fields=y9(r.fields??{},et(n.stickFields({intro:s,screens:t,above:t}),S9(s))),t&&Dt(r,{heldByANode:su})},draw(r,a){let n=r.render,s=cx.has(a);r.render=l=>{let i=px(l,{atScreenTop:s,above:t});if(!i)return n(l);let d=x=>{let u=xu(af,{children:n(l)});return xu(de,{...x.attrs,style:x.style,children:x.attrs[qD]===""?xu("div",{[I9]:"",children:u}):u})},f=t?px(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[qD]!==""?d(i):xu(ms,{own:()=>d(f),followed:()=>d(i)})}}}}var VD=[St,ls],g9="_gStick";function y9(e,o){let t=Object.keys(e),r=e[$n];if(!r){let O=t.findIndex(R=>VD.includes(R));return O<0?{...e,...o}:Object.fromEntries([...t.slice(0,O).map(R=>[R,e[R]]),...Object.entries(o),...t.slice(O).map(R=>[R,e[R]])])}let{[g9]:a,...n}=o,s=O=>O.startsWith(bn),l=Object.entries(n).filter(([O])=>!s(O)),i=Object.entries(n).filter(([O])=>s(O)),d=[r.dot,a?.dot].filter(O=>!!O),f=t.indexOf($n),x=t.findIndex((O,R)=>R>f&&VD.includes(O)),u=x<0?t.length:x,h=t.indexOf(vc),I=h>f&&h<u?h:u,S=O=>[O,O===$n?{...r,dot:{any:d}}:e[O]],v=[...t.slice(0,I).map(S),...l,...t.slice(I,u).map(S),...i,...t.slice(u).map(S)];return Object.fromEntries(v)}function S9(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},mk]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,xi,{not:{field:Js,is:!0}}]}),[n,s,l]=dk;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Qt(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Qt(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Qt(["stickTopTablet","stickTop"],o,r))],[[l],a(Qt(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Kd],qd],[[Js],qd],[[ck],a(qd)]]}import{jsx as b9}from"react/jsx-runtime";var JD={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(yc.has(o))return;let t=e.render;e.render=r=>{let a=Sk(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,yk(r)),n=t(r);return a?b9(de,{className:Vd,style:{display:"contents",...a},children:n}):n}}};import{jsx as ey}from"react/jsx-runtime";var QD={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!iC.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=ox.has(o);e.fields={...e.fields,...n?r(Bd,a):r()}},draw(e,o){let t=ox.has(o),r=e.render;e.render=a=>{let n=fC(t?{...a,sectionAccent:Bd(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>ey(vr,{className:n.className,style:d,children:s}),i=n.style;return Yo(o,a)?ey("div",{className:n.className,style:{...i,display:"contents"},children:s}):fu(o,a)!=="content"?l(i):ey(ms,{own:()=>l({...i,...Us(Mo)}),followed:()=>l(i)})}}},eN={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(Bd,a)})}};import{jsx as Ke}from"react/jsx-runtime";var oN=null;function oy(e){oN=e}function tN(){return oN}import{jsx as w9}from"react/jsx-runtime";var C9="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",rN=yr("box").frame,Ci=`${C9} ${rN}`,k9=yr("site").frame,v9=yr("none").frame;function o_e(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?v9:o==="site"?k9:rN}var P9="mx-auto w-full max-w-[1280px] px-[60px]",T9="max-[960px]:px-6",t_e=`${P9} ${T9}`;function r_e({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return w9(rD,{contained:e,framedClass:`${Ci} ${o}`,fillClass:`${a} ${o}`,columnClass:Ci,style:t,pad:r,part:n,children:s})}var xs="--sf-sw-site",O9="--sf-sw-content",E9="--sf-bg-cap",_9="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",ty=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",nN="contents view-wide:[--sf-site-width:100vw]",ry=({held:e},o,t)=>e?t:Ke(de,{className:o,children:t}),A9=`contents view-wide:[--sf-site-width:100vw] ${dB} view-wide:[--sf-site-gutter:var(--intro-edge)]`,ay=(e,o,t)=>o==="content"?`min(${xn(e,t)},var(${xs}))`:xn(e,t);function ki({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?js:null:o===null?null:ay(o,r,t)}function vi(e,o){return o===null?e:Ke(de,{className:"contents",style:{[xs]:Mo},children:Ke(de,{className:_9,style:{[O9]:o},children:e})})}var F9="--sf-content-cap",B9="contents max-view-wide:[--sf-content-cap:none]";function L9({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?ay(o,r,t):r==="content"?null:`var(${xs})`}function R9(e,o){return o===null?e:Ke(de,{className:"contents",style:{[xs]:Mo},children:Ke(de,{className:B9,style:{[F9]:o},children:e})})}var sN=`var(${xs},${Mo})`,Kr=(e,o,t="")=>e==="content"?Ke(de,{className:t||void 0,style:Us(Mo),children:Ke(Gg,{ground:sN,children:o})}):o;function lN(e,o,t,r,a){if(ty(t))return Kr(r,ry(t,nN,Ke(jg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Kr(r,e({...o,contained:!1}),a);let n=ki(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Kr(r,vi(Ke(jg,{children:e({...o,contained:!0})}),n),a)}function D9(e,o,t,r,a){if(t==="hero"){let l=vi(e(o),ki(r,r.band));return r.band==="full"?Ke(de,{style:{[AC]:"none",[FC]:"initial",[BC]:"initial"},children:l}):r.band==="content"?Ke(de,{style:Dd(!0),children:l}):l}let n=r.band??"full",s=wr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return Kr(n,e(o),s);let l=r.contentMax===null?Mo:ay(r.contentMax,n,r.contentMaxUnit);return Ke(de,{className:"contents",style:{[xs]:Mo},children:Kr(n,Ke(de,{className:s||void 0,style:Us(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=ty(r)?ry(r,A9,e({...o,fullWidth:!1})):vi(e({...o,fullWidth:l}),l?null:ki(r,n));return n==="content"?Ke(de,{className:"contents",style:{[E9]:Mo},children:i}):i}switch(t){case"both":return Kr(n,R9(e(o),L9(r,n)),s);case"contained":return lN(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let l=ty(r),i=r.content==="full"&&!l?"full":"page",d=l?ry(r,nN,e({...o,widthMode:i})):vi(e({...o,widthMode:i}),r.content==="full"?null:ki(r,n));return t==="productGrid"&&!r.own?n==="content"?Ke(Jf,{className:s?`${Ci} ${s}`:Ci,children:f=>Ke(de,{className:f,children:d})}):d:Kr(n,d,s)}default:return Kr(n,vi(e(o),ki(r,n)),s)}}function aN(e,o,t,r,a){let n=a===K?"edge":"by-box",s=l=>D9(e,o,t,r,l);return n==="edge"?s(!0):wr(o)===wr(o,{atSectionLine:!0})?s(!1):Ke(of,{line:n,draw:s})}function N9(e,o){let t=z(Gs,o);if(!t)return;let r=e.render;e.render=a=>{let n=Md(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):Ke(tD,{draw:I=>I?.background==="content"?Ke(Gg,{ground:sN,children:i(I)}):i(I)}),i=I=>{let S=I?{...s,band:I.background==="content"?s.band:I.background??s.band,content:I.content??s.content,own:I.background==="full"||I.content!==null,held:!0,siteContent:s.content}:s,v=aN(r,a,t,S,o);if(!jr(o))return v;let O=Ii(a),R=O===void 0?S.content:O?"content":"full";return R===S.content?v:Ke(JR,{atTop:v,nested:lN(r,a,{...S,content:R,own:!1},S.band??"full",wr(a))})},d=hi(o,a);if(!NC(d))return l();let f=t==="rawMarkup",x=fu(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(ms,{own:()=>Ke(oD,{value:{background:h.band,content:h.content},children:aN(r,a,t,h,o)}),followed:l})}}var M9={all:[xi,{not:{context:"runsEdgeToEdge",is:!0}}]},iN={name:"sectionWidth",applies:(e,o,t)=>Nd(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:z(Gs,o)==="rawMarkup"}),a=jr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=jr(o)?cN(o,e,n,[Ma]):n;Dt(e,{heldByANode:su}),jr(o)&&Dt(e,{runsEdgeToEdge:(l,i)=>du(tl(l.props??{},Aw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=No(s,[Fo.background,Fo.content],jr(o)?M9:xi)},draw(e,o){N9(e,o)}};function H9(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 W9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),dN={name:"containedWidth",applies:(e,o,t)=>W9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=cN(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=ax(n?.props??{},"page"),d=f=>H9(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}=ax(t,"page");return o({...t,contained:r!=="full"})}}},$9={not:{context:"inHeroGroupRow",is:!0}},fN={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=No(o.fields??{},["align"],$9),Dt(o,{inHeroGroupRow:(t,r)=>{let a=Kt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Tn("HeroGroup",a.props?.direction)==="row"}})}};function z9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var U9={any:[]},j9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},G9={not:{context:"widthCappedByParent",is:!0}};function cN(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return No(t,["_gWidth",...r],U9);if(z9(t)){let a=(n,s)=>qR(s.appState?.data?.content,n.props?.id,cu(tN()));return Dt(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),No(t,r,j9)}return Dt(o,{widthCappedByParent:(a,n)=>"parent"in n?uw(n.parent):BR({props:a.props??{}},n)}),No(t,r,G9)}var K9=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"]),pN={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(K9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},q9=new Set(["HeroSlide","HeroGroup"]),uN={name:"blockGroups",applies:(e,o,t)=>q9.has(e)||!o.isSection(e)&&Fp in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as ny}from"react/jsx-runtime";var V9=new Set(["Flex","Grid"]),mN=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),Y9=(e,o)=>e.fields?.[o]?.ownPictures===!0,X9=["blockCount","blockIds"],Z9=new WeakMap,J9=new WeakMap;function Q9(e,o){let t=o?J9:Z9,r=t.get(e);if(r)return r;let a=e,n=s=>ny(QR,{children:ny(af,{ownPictures:o,children:ny(a,{...s})})});Object.assign(n,e);for(let s of X9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var xN={name:"slotsStartAfresh",applies:(e,o,t)=>!V9.has(e)&&typeof t?.render=="function"&&mN(t).length>0,draw(e){let o=mN(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=Q9(s,Y9(e,n)))}return t(a)}}};var eV=new Set(["Form","Stats","Logos"]);function hN(){return[...eV]}function sy(e,o,t=[]){let r=new Set(e),a=cb.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!xf.includes(d)),s=new Set([...o,...id,...hN()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!vd(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var oV=[xN,AD,wD,OR,ER,uO,hD,JD,ID,hO,$D,GD,FR,iN,dN,fN,Qg,K0,RD,QD,WD,jD,YD,XD,nD,eN,jR,pN,uN,yD,gD,mD,CD,ED,KD,kD,TR,lD];function IN(e,o,t){let r=o;for(let a of oV)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as ly}from"react/jsx-runtime";import{ClockIcon as tV,DurationIcon as rV}from"efficient-easel/icons";import{MOTION_TIMING as gN}from"efficient-shell/format";import{useSelectedHost as aV}from"efficient-easel/easel";function hs(e){let{min:o,max:t,step:r,default:a}=gN[e].duration;return Er("Duration",ly(rV,{}),o,t,r,a,"s")}function Is(e){let{min:o,max:t,step:r,default:a}=gN[e].delay;return Er("Delay",ly(tV,{}),o,t,r,a,"s")}function gs(e,o){let t=e.render,r=a=>{let n=aV();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>ly(r,{...a})}}function hu({readsSpeed:e}){return gs(hs("loop"),(o,t)=>Ap({loopDuration:o,speed:e?t?.speed:void 0}))}function Iu(){return gs(Is("loop"),e=>GA({loopDelay:e}))}import{jsx as no}from"react/jsx-runtime";import{DirectionDownIcon as nV,DirectionIcon as sV,DirectionLeftIcon as lV,DirectionRightIcon as iV,DirectionUpIcon as dV,EntranceBounceIcon as fV,EntranceFadeIcon as cV,EntranceFlipIcon as pV,EntranceGlideIcon as uV,EntranceRevealIcon as mV,EntranceRiseIcon as xV,EntranceScaleIcon as hV,EntranceSpinIcon as IV,NoSymbolIcon as gV}from"efficient-easel/icons";import{NoControlMark as yV,noControlField as SV}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as bV,group as wV}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as CV,ENTRANCE_FROM_DEFAULT as SN,ENTRANCE_KINDS as bN,ENTRANCE_KINDS_WITH_FROM as kV,entranceAttrs as vV,playEntrance as PV,readEntrance as TV}from"efficient-shell/format";var OV={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},EV={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},_V={top:()=>no(nV,{}),bottom:()=>no(dV,{}),left:()=>no(iV,{}),right:()=>no(lV,{})},wN="Entrance",dy=bN.filter(e=>e!=="none"),CN=e=>({any:[{field:qo.kind,in:e},{all:[{field:qo.kind,set:!1},{field:Vs,in:e}]}]}),yN=(e,o)=>Qt(tt.slice(0,tt.indexOf(e)+1).reverse().map(t=>rt(qo.kind,t)),t=>({field:t,set:!0}),t=>t===qo.kind?CN(o):{field:t,in:o}),AV={any:[CN(dy),...tt.slice(1).map(e=>({field:rt(qo.kind,e),in:dy}))]},FV=tt.flatMap(e=>[[[rt(qo.from,e)],yN(e,kV)],[[rt(qo.duration,e),rt(qo.delay,e)],yN(e,dy)]]),BV={none:()=>no(gV,{}),fade:()=>no(cV,{}),rise:()=>no(xV,{}),scale:()=>no(hV,{}),glide:()=>no(uV,{}),bounce:()=>no(fV,{}),flip:()=>no(pV,{}),reveal:()=>no(mV,{}),spin:()=>no(IV,{})},kN="data-entrance-tile";function LV({kind:e}){let{attrs:o}=vV(TV(e,SN));return no("span",{className:"sf-entrance-stage",[kN]:e,children:no("i",{...o,children:BV[e]()})})}var RV=(e,o)=>{let t=e.querySelector(`[${kN}="${o}"] > i`);t&&PV(t)},DV="Effect",NV=()=>Lf(qo.kind,{label:wN,tileWord:DV,values:bN,fallback:"none",word:e=>OV[e],picture:e=>no(LV,{kind:e}),read:(e,o)=>Ys(e,o).kind,preview:RV}),iy=(e,o)=>Bf(qo[e],o,(t,r)=>Ys(t,r)[e]),MV=CV.map(e=>({label:EV[e],value:e,picture:_V[e]()}));function _t(){let e={[Fp]:wV(wN,{dot:AV}),...NV(),[Vs]:SV({type:"custom",render:()=>no(yV,{})},"always"),_cEntrance:bV(),...iy("from",On("From",no(sV,{}),MV,SN)),...iy("duration",hs("entrance")),...iy("delay",Is("entrance"))};return et(e,FV)}import{jsx as ht}from"react/jsx-runtime";import{EntranceRevealIcon as HV,NoSymbolIcon as WV,PercentIcon as vN,ScrollFadeInIcon as $V,ScrollFadeOutIcon as zV,ScrollMoveDownIcon as UV,ScrollMoveUpIcon as jV,ScrollParallaxIcon as GV,ScrollZoomInIcon as KV,ScrollZoomOutIcon as qV,ZoomInIcon as VV}from"efficient-easel/icons";import{customize as YV,group as XV}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as TN,SCROLL_EFFECTS_WITH_ZOOM as ZV,SCROLL_END as JV,SCROLL_START as QV,SCROLL_ZOOM as eY}from"efficient-shell/format";var ON="Scroll",oY={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"},tY={none:()=>ht(WV,{}),"zoom-in":()=>ht(KV,{}),"zoom-out":()=>ht(qV,{}),"fade-in":()=>ht($V,{}),"fade-out":()=>ht(zV,{}),"move-up":()=>ht(jV,{}),"move-down":()=>ht(UV,{}),reveal:()=>ht(HV,{}),parallax:()=>ht(GV,{})},rY="Effect",EN=TN.filter(e=>e!=="none"),PN=(e,o)=>Qt(tt.slice(0,tt.indexOf(e)+1).reverse().map(t=>rt(uo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),aY={any:tt.map(e=>({field:rt(uo.effect,e),in:EN}))},nY=tt.flatMap(e=>[[[rt(uo.zoom,e)],PN(e,ZV)],[[rt(uo.start,e),rt(uo.end,e)],PN(e,EN)]]),sY=()=>Lf(uo.effect,{label:ON,tileWord:rY,values:TN,fallback:"none",word:e=>oY[e],picture:e=>tY[e](),read:(e,o)=>lr(e,o).effect}),fy=(e,o,t,r,a)=>Bf(e,Er(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>lr(n,s)[o]);function Wa(){let e={[$n]:XV(ON,{dot:aY}),...sY(),[vc]:YV(),...fy(uo.zoom,"zoom","Zoom",ht(VV,{}),eY),...fy(uo.start,"start","Start",ht(vN,{}),QV),...fy(uo.end,"end","End",ht(vN,{}),JV)};return et(e,nY)}import{jsx as Bo}from"react/jsx-runtime";import{AccentIcon as lY,ContrastIcon as iY,EyeIcon as dY,ExpandIcon as fY,FinishIcon as cY,ImagesIcon as pY,NoSymbolIcon as AN,HoverLiftIcon as uY,HoverNextImageIcon as mY,HoverRotateIcon as xY,HoverZoomIcon as FN,OpacityIcon as hY}from"efficient-easel/icons";import{customize as IY,describedAs as BN,group as gY}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as LN}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as ho}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as yY,noControlField as SY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var gu=e=>ho("desktop",gY("Hover",{dot:e})),RN=()=>ho("desktop",IY()),bY="What this does when a shopper points at it, or taps it on a phone.",wY="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",CY="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.",kY="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.",vY="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",PY="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.",TY="Which of the product's pictures the card shows.",OY="Same finish shows the photos of the finish the card shows, else the first group.",EY="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",_Y={none:()=>Bo(AN,{}),nextImage:()=>Bo(mY,{}),rotate:()=>Bo(xY,{}),zoom:()=>Bo(FN,{}),lift:()=>Bo(uY,{}),mono:()=>Bo(iY,{})};function cy(e,o){let t=LN({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(Pm[r]),picture:_Y[r]()})),fallback:o});return BN(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Pm[r]}))})}function DN(){return{[St]:gu({field:Qo,in:_m.filter(e=>e!=="none")}),[Qo]:ho("desktop",{...cy(_m,"none"),description:bY})}}function NN(e){let o=$b(e),t=xd(),r=GP(Fb);return{[St]:gu({any:[o,t]}),[Ge.kind]:ho("desktop",{...gs(cy(Eb,e),(a,n)=>Hb(n??{},e)),description:PY}),...py(t),[_b]:SY({type:"custom",render:()=>Bo(yY,{})},"always"),_cHover:RN(),[Ge.angle]:ho("desktop",Ze(gs(r,a=>Wb(a)),o)),[Ge.duration]:ho("desktop",Ze(hs("hover"),o)),[Ge.delay]:ho("desktop",Ze(Is("hover"),o))}}function py(e){let o=UP("Type",Bo(pY,{}),Bb.map(a=>({value:a,label:Lb[a]})),md.kind),t=On("Group",Bo(cY,{}),Rb.map(a=>({value:a,label:Db[a]})),md.group),r=On("Covers",Bo(fY,{}),Nb.map(a=>({value:a,label:Mb[a]})),md.cover);return{[Ge.mediaKind]:ho("desktop",Ze({...o,description:TY},e)),[Ge.mediaGroup]:ho("desktop",Ze({...t,description:OY},e)),[Ge.cover]:ho("desktop",Ze({...r,description:EY},e))}}function uy(e,o="",t=Rm.includes(o)){let r=Dm(e),a=Vb(e);return{[St]:gu(r),[Ge.kind]:my(zb,e,wY),...Rm.includes(o)?py(xd()):{},_cHover:RN(),...t?MN():{},[Ge.duration]:ho("desktop",Ze(hs("hover"),a)),[Ge.delay]:ho("desktop",Ze(Is("hover"),a))}}function MN(e=!1){let o=a=>e?a:Ze(a,qb()),t=Er("Zoom",Bo(FN,{}),sn.min,sn.max,sn.step,sn.min,sn.unit),r=Er("Darken on hover",Bo(hY,{}),Cn.min,Cn.max,Cn.step,Cn.fallback,Cn.unit);return{[Fm.zoom]:ho("desktop",o(t)),[Fm.darken]:ho("desktop",o(r))}}function my(e,o,t){let r=ho("desktop",{...gs(cy(e,o),a=>Gb({[Qo]:a},o,e)),description:t});return Object.assign(r,{[HN]:o})}var HN="sfPictureResting",_N=new WeakMap;function tAe(e,o,t){let r=e[Ge.kind],a=r?.[HN];if(!r||!a)return e;let n=o.props?.[Qo]==="nextImage",s=n?null:Ed(t.appState,o.props?.id);if(!n&&!ud.includes(String(s?.type??"")))return e;let l=_N.get(e);return l||(l={...e,[Ge.kind]:my(Am,a,CY)},_N.set(e,l)),l}var AY="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.",FY={none:()=>Bo(AN,{}),[Tm]:()=>Bo(lY,{})},rAe=ho("desktop",{...BN(LN({label:c("Hover effect"),options:Om.map(e=>({value:e,label:c(Em[e]),picture:FY[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Om.map(e=>({value:e,label:Em[e]}))}),description:AY}),BY=ho("desktop",{...On("Show",Bo(dY,{}),[{value:Lm,label:"Always"},{value:Bm,label:"On card hover"}],Lm),description:vY});function WN(){let e={any:[Dm("none"),{field:Qo,is:Tm},{field:ea,is:Bm}]},{[St]:o,[Ge.kind]:t,...r}=uy("none","",!0);return{[St]:gu(e),[Ge.kind]:t,[ea]:BY,...py(xd()),...r,...MN(!0)}}var aAe=my(Am,"none",kY);import{jsx as Pi}from"react/jsx-runtime";import{isNodeList as NY}from"efficient-easel/data";import{useEasel as MY}from"efficient-easel/easel";import{hiddenInView as HY,hiddenKeyOf as xy,hidePatch as WY,slotChildName as $Y,slotChildRowName as zY}from"efficient-easel/draw";var LY=new Set(["BookingBox","SubmitBox"]);function RY(e){return typeof e=="string"&&LY.has(e)}var DY=QP(RY,LT);function yu(e,o){return DY(e)||mT(o)}var Su=(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 UY}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as jY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var $N="notCardOfTemplate",zN={not:{context:$N,is:!0}},hy={any:[Id,zN]},kAe={[$N]:(e,o)=>{let t=Zm(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function bu(e){let o=e.props?.content;return NY(o)?o:[]}var Cu=(e,o)=>HY(e.props??{},o),GY=(e,o)=>e.props?.[xy(o)]!==void 0;function UN(e,o=()=>!1,t="desktop"){return bu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:bu(r).length&&!Cu(r,t)?UN(r,o,t):o(r)?[]:[r])}function KY(e,o,t,r="desktop"){let a=UN(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:!Cu(l,r)}})}function wu(e,o,t){let r=a=>t==="desktop"?Cu(a,t):GY(a,t);return bu(e).flatMap(a=>r(a)?o(a)?[]:[a,...wu(a,o,t)]:wu(a,o,t))}function qY(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===xy("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 Iy(e,o,t){let r=bu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=qY(s.props,t(s.props));i!==s.props&&(l={...s,props:i})}else l=Iy(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function jN(e,o,t,r="desktop"){return Iy(e,o,a=>r==="desktop"&&Cu({props:a},r)===!t?{}:WY(a,r,!t))}function VY(e,o,t){return t==="desktop"?jN(e,o,!0,t):Iy(e,o,()=>({[xy(t)]:void 0}))}function YY(e,o,t,r,a,n){return $Y(e).trim()?t(e):vw({ownerType:o,owner:r,fields:a,slot:n},Nt(e.props))?.label??t(e)}var XY="This page is read-only.";function ZY({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>zY(u,n,nn,void 0,Su),f=u=>yu(u.type,u),x=KY(e,u=>YY(u,o,d,t,r,a),f,i);return x.length?Pi(Hx,{parts:x,changed:wu(e,f,i).length>0,shown:u=>x.find(h=>h.id===u)?.shown??!0,disabledReason:l?XY:void 0,onPress:(u,h)=>s(I=>jN(I,u,h,i)),onReset:()=>s(u=>wu(u,f,i).reduce((h,I)=>VY(h,String(I.props.id),i),u))}):Pi(jY,{})}function JY(){try{let e=MY(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Zm(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:Fw(e.appState,r),slot:_w(e.appState,t.props?.id)??void 0}}catch{return null}}function QY({readOnly:e,view:o}){let t=JY(),r=dl();return t?Pi(ZY,{...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}})}}):Pi(Hx,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function vAe(e){return Ze(UY(e,{type:"custom",render:({readOnly:o})=>Pi(QY,{readOnly:o,view:e})}),zN)}import{customize as dX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as gy}from"react/jsx-runtime";import{DirectionIcon as eX,LoopMarqueeIcon as oX,NoSymbolIcon as tX}from"efficient-easel/icons";import{customize as rX,describedAs as aX,group as nX}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as sX}from"efficient-easel/screen/lib/document/effect-tiles";function yy(){return ET("Direction",DI,fi,"A marquee cannot run diagonally, so the corners are not answers.",gy(eX,{}),OT)}var Sy=e=>nX("Loop",e?{dot:e}:void 0),lX={none:()=>gy(tX,{}),scroll:()=>gy(oX,{})};function iX(){let e=sX({label:c("Loop"),options:_p.map(({value:o,label:t})=>({value:o,label:c(t),picture:lX[o]()})),fallback:RI});return aX(e,{type:"select",label:"Loop",options:_p.map(({value:o,label:t})=>({value:o,label:t}))})}function GN(){return{[ls]:Sy(di),loop:iX(),_cLoop:rX(),scrollDirection:Ze(yy(),di),loopDuration:Ze(hu({readsSpeed:!1}),di),loopDelay:Ze(Iu(),di)}}var KN={field:ea,set:!0};function fX(){let e=WN(),o=[St,Qo],t=No(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==ea),Id),r=No(t,[ea],KN),a=No(r,[Qo],hy);return No(a,[St],{any:[hy,KN]})}function ku(e,o=""){switch(e){case"section":case"block":return{..._t(),...Wa()};case"box":return{..._t(),...Wa(),...GN(),...fX()};case"picture":return{..._t(),...Wa(),...uy(jb(o),o)};case"textPart":return{..._t(),...Wa(),...DN()};case"cards":return{..._t(),...Wa(),...NN(Ab(o))};case"marquee":return{..._t(),...Wa(),[ls]:Sy(),_cLoop:dX(),scrollDirection:yy(),loopDuration:hu({readsSpeed:!0}),loopDelay:Iu()}}}import{blockSizeFieldSet as oZ}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as tZ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as qN,Fragment as cX,jsxs as pX}from"react/jsx-runtime";import{useSelectedHost as VN}from"efficient-easel/easel";import{VIEW_TIERS as uX,viewKeyAt as mX}from"efficient-easel/draw";var YN=e=>uX.find(o=>Object.values(po).some(t=>mX(t,o)===e))??"desktop";function xX(e,o,t){let r=e(o),a=YN(t);return{top:Yd(r,"top",a),bottom:Yd(r,"bottom",a)}}var hX=e=>e.startsWith(po.bottom)?"bottom":"top";function IX(e,o,t,r){let a=hX(r);return o(t,Yd(e(t),a,YN(r)),a)}function gX({frameOf:e,note:o,rowKey:t}){let r=VN()?.values,a=r?IX(e,o,r,t):null;return a?qN("p",{className:"es-field-hint",children:a}):null}var yX=new Set(wn());function XN(e,o,t){let r=_r({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=VN()?.values;return n?xX(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!yX.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>pX(cX,{children:[s(l),qN(gX,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as SX}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as bX,deviceMetaOf as QN}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as wy,SETTINGS_BUCKETS as wX}from"efficient-easel/panel";import{BUCKET_KEY as Io,DESIGN_GROUP_KEY as ys}from"efficient-easel/screen/lib/document/field-buckets";var Ti=wX;var CX="Editor only \u2014 not shown live",Cy={"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",[CX]:"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"},eM={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},oM={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function ZN(e,o,t){let r=`${e}.${o}`;return z(oM,r)??z(eM,r)??z(Cy,t)}function kX(e){return e==="Animation"?[Io.Animation]:[Io.Design,ys[e]]}function vu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=QN(r),n=ar(a?a.inner:r),s=n?z(Cy,n.label):void 0;if(s)for(let l of kX(s))o.includes(l)||o.push(l)}return o}var dFe=[...vu(_r({tablet:!0,siteSide:!0}),An("full"),Fn(),Bn(),fl()),...Object.keys(_r({tablet:!0,siteSide:!0})),...Object.keys(An("full")),...Object.keys(Fn()),...Object.keys(Bn()),...Object.keys(fl())],fFe=[...vu(En()),...Object.keys(En())],cFe=[...vu(_n()),...Object.keys(_n())],pFe=[...vu(_t()),...Object.keys(_t())],uFe=Object.keys(FT()),mFe=Object.keys(BT()),vX={"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)"},tM={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},by={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={..._r({tablet:!0,siteSide:!0}),...An("full"),...Fn(),...Bn(),...En(),..._n(),..._t()};for(let o of Object.keys(by)){let t=ar(e[o]),r=t?z(Cy,t.label):void 0;if(!t||t.level!==2||!r||!tM[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 PX=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),TX=new Map([[Io.Design,"Content"],[Io.Animation,"Animation"],...wy.map(e=>[ys[e],e])]);function OX(e){let o=`${e}.`;return Object.keys(vX).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function EX(e,o){let t=QN(e),r=SX(o);return t?bX(t.tier,r):r}function _X(e,o){let t=ar(o);return t?e==="Content"||e==="Animation"?ST(o,t.label):bT(o):o}function JN(e){return e==="Design"?wy:["Animation"]}function Pu(e,o){let t=[],r=new Set(OX(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=ar(h);if(PX.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=TX.get(u);if(S!==void 0){if(I?.level!==1)throw new Error(`${o}.${u}: that key is reserved for the ${S} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(u===Io.Design||u===Io.Animation)&&(n=!0),t.push(s={place:S,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([u,h]);continue}if(r.has(u)||co(by,u)){let O=ZN(o,u,I.label);if(I.level!==2||!O||!tM[O].includes(I.label))throw new Error(`${o}.${u}: ${r.has(u)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${I.level} "${I.label}" header in the ${O??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(u)&&a.add(u),t.push(s={place:O,entries:[],uniform:co(by,u)});continue}let v=ZN(o,u,I.label);if(!v)throw new Error(`${o}.${u}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...wy,"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,I.level===2?h:EX(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>ar(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",oM],["KEY_GROUP",eM]]){let I=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(I.length)throw new Error(`${o}: ${u} (lib/document/field-groups.ts) lists ${JSON.stringify(I)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let i=n?[]:[...r].filter(u=>!a.has(u));if(i.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(i)}, but this section has no such fold header${i.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let d=new Set(t.filter(u=>u.entries.length>0).map(u=>u.place)),f=Ti.filter(u=>JN(u).some(h=>d.has(h))),x={};for(let u of f){x[Io[u]]=Af(u,u===f[0]?f:null);for(let h of JN(u)){if(!d.has(h))continue;let I=t.filter(O=>O.place===h),S=I.findIndex(O=>O.adopted);S>0&&I.unshift(...I.splice(S,1));let v=I.filter(O=>O.uniform);if(v.length>0){let O=I.filter(T=>!T.uniform),R=I[0]?.adopted?1:0;I.splice(0,I.length,...O.slice(0,R),...v,...O.slice(R))}u==="Design"&&(x[ys[h]]=Lx(h));for(let O of I)for(let[R,T]of O.entries)x[R]=_X(h,T)}}return x}function rM(e){return Io.Design in e?e:{[Io.Design]:Af("Design",null),[ys.Content]:Lx("Content"),...e}}function aM(e){return Ti.some(o=>Io[o]in e)}function Tu(e){let o=Ti.filter(r=>Io[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[Io[r]]=Af(r,r===o[0]?o:null);return t}import{jsx as Ou}from"react/jsx-runtime";import{WidthIcon as AX}from"efficient-easel/icons";import{SettingsField as FX,SettingsSwitch as BX}from"efficient-easel/panel";import{group as LX,iconOf as RX,sharedStyleKinds as DX}from"efficient-easel/screen/lib/document/box-fields";var NX="Gutter";function MX({value:e,onChange:o,labelId:t}){let r=cu(il()),a=Ii({[Ma]:e})??r,n=s=>o(s?r?void 0:$g:Wg);return Ou(FX,{label:c(NX),labelId:t,icon:RX(Ou(AX,{})),action:Ou(BX,{checked:a,onChange:n,ariaLabelledBy:t})})}function nM(){return DX({_gWidth:LX(Ff),[Ma]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>Ou(MX,{value:e,onChange:o,labelId:`${t??r??Ma}-label`})}})}import{jsx as vy}from"react/jsx-runtime";import{group as HX,sharedStyleKinds as lM}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as WX}from"efficient-easel/screen/lib/document/device-fields";var $X="Content cannot be wider than the background.",ky=e=>c(e==="content"?"Content width":"Full width");function iM(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=ko(),n=Ie(o)??hn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var zX={read:In},UX={read:In,drawsFullOnItsOwn:!0},jX={read:DC,clearOnContent:{fullWidth:void 0}};function GX({source:e}){let o=e.read(Nx()),t=dl(),r=iM(e);return vy(DT,{value:o.background??r.background,changed:o.background!==null,detail:ky(r.background),onChange:a=>t(MC(a)),onReset:()=>t(sx("background"))})}function KX({source:e}){let o=e.read(Nx()),t=dl(),r=i=>t({...i,...e.clearOnContent}),a=iM(e),n=(o.background??a.background)==="content",s=wT({row:nx,label:RT,grid:{min:hn.min,max:n?a.px:hn.max,step:hn.step},valueKey:Fo.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return vy(NT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:hn.max,changed:o.content!==null,detail:a.content==="full"?ky("full"):`${ky("content")} ${a.px}px`,fullClosed:n,hint:n?$X:void 0,onMode:i=>r(HC(i)),onPx:i=>r({...WC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(sx("content"))})}var sM=(e,o)=>WX("desktop",{type:"custom",render:()=>vy(e,{source:o})}),dM=e=>({[Fo.background]:sM(GX,e),[Fo.content]:sM(KX,e),[Fo.contentMax]:Dx(),...jP(nx,Fo.content)});function fM(e){let o=e?.drawsFullOnItsOwn?UX:zX;return lM({_gWidth:HX(Ff),...dM(o)})}function DFe(){return lM({...dM(jX),fullWidth:Dx()})}import{deviceMetaOf as pM}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as qX}from"efficient-easel/screen/lib/document/panel-no-control-mark";function VX(e,o){let t=pM(o),r=t?t.inner:o;if(ar(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=qX(r);return a==="always"?!1:a==="authored-copy"?Zk(e):!0}function cM(e){let o=pM(e),t=o?o.inner:e,r=ar(t);return r?yT(t)?0:r.level:null}function YX(e,o,t){return t?o===0&&e===Io.Design||o===1&&e===ys.Content:!1}var XX=new WeakMap,ZX=new WeakMap;function uM(e,o="section"){let t=o==="page"?ZX:XX,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([x,u])=>({key:x,field:u,level:cM(u),draws:VX(x,u)||o==="page"&&cM(u)===null&&gx(x,u)})),n=o==="section"&&a.some(x=>gx(x.key,x.field)),s=new Set;for(let x=0;x<a.length;x++){let u=a[x].level;if(u===null)continue;let h=0;for(let I=x+1;I<a.length;I++){let S=a[I].level;if(S!==null&&S<=u)break;a[I].draws&&(h+=1)}h===0&&!YX(a[x].key,u,n)&&s.add(a[x].key)}let l=n&&aM(e),i=l&&!(Io.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=Tu(l?rM(d):d);return t.set(e,f),f}import{isShown as JX,showWhenFactReaders as QX}from"efficient-shell/format";var mM=new WeakMap,eZ=new Set(Object.values(Io));function xM(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=QX(r,o,t),l=BP(t,{...s,parentOffersPositions:()=>{let I=Kt(t.appState,n);return I===void 0?void 0:ok(I,n)},parentTileSlot:()=>{let I=Kt(t.appState,n);return I===void 0?void 0:tk(I,n)},heroGroupDepth:()=>Wd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,S]of Object.entries(e)){let v=cw(S);!v||FP(v,"device")||JX(v,a,l)||i.push(I)}if(i.length===0)return e;let d=mM.get(e);d||mM.set(e,d=new Map);let f=i.join("\0"),x=d.get(f);if(x)return x;let u=new Set(i),h={};for(let[I,S]of Object.entries(e))u.has(I)||(h[I]=S);return i.some(I=>eZ.has(I))&&(h=Tu(h)),d.set(f,h),h}var hM={spacingFields:PT,sidesPaddingFields:_r,ownPaddingFields:XN,sectionShapeFields:_n,cardShapeFields:CT,cellWidthFields:kT,widthField:An,boxGutterFields:nM,sectionOwnWidthFields:fM,heightFields:Fn,anchorFields:Bn,customCssFields:TT,stickFields:fl,sectionThemeFields:En,animationTabFields:ku,blockSizeFields:({tablet:e,...o}={})=>oZ({...o,shorten:!0,say:zP,lengthUnits:vf,...e?{phone:tZ}:{}}),assignSectionGroups:Pu,dropEmptyHeadings:uM,rowsShownForNode:xM,SECTION_THEME_FOLLOW_LABEL:cT,BLOCK_THEME_FOLLOW_LABEL:pT,PartAnchors:XL};function Eu(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=Eu(s.arrayFields,o,t),d=Eu(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 rZ(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=IN(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 aZ(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];nZ(e,o,a);for(let n of a){let s=n.components.filter(vd);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(!Pd(n))continue;let s=kd(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 Py(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(...Py(e,o,s.arrayFields,`${l}.`),...Py(e,o,s.objectFields,`${l}.`))}return a}function nZ(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${un}". 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(un)&&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=Py(un,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function IM(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Bg(o);if(aZ(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?Eu(u?.fields,l,i):u?.fields;d[x]=h===u?.fields?u:{...u,fields:h}}if(t.length>0){let x=new Set(t.map(([I])=>I)),u=e.categories?.structure?.components??[],h={...sy(Object.keys(n),u,x),isHostBlock:I=>x.has(I),inspector:hM};for(let[I,S]of t){let v=rZ(I,S,h),O=Eu(v.fields,l,i);d[I]=O===v.fields?v:{...v,fields:O}}}let f=[];for(let[x,u]of Object.entries(e.categories??{})){let h=u?.components??[],I=h.filter(l);I.length===h.length?f.push([x,u]):I.length>0&&f.push([x,{...u,components:I}])}for(let x of r){let u=x.components.filter(v=>v in d&&l(v));if(u.length===0)continue;let h=f.find(([v])=>v===x.key);if(h){let[,v]=h,O=new Set(v.components??[]);h[1]={...v,components:[...v.components??[],...u.filter(R=>!O.has(R))]};continue}let I=[x.key,{title:x.title,components:u}],S=x.before?f.findIndex(([v])=>v===x.before):-1;S===-1?f.push(I):f.splice(S,0,I)}return{...e,components:d,categories:Object.fromEntries(f)}}function gM(){let e=iZ();return sZ(()=>IM(lZ(e),mn(e)),[e])}import{jsx as Ey,Fragment as OZ,jsxs as EZ}from"react/jsx-runtime";import{useContext as _Z,useEffect as AZ,useMemo as Ru,useRef as MM}from"react";import{EaselCanvas as FZ,repeatCopyAt as BZ,useEasel as LZ}from"efficient-easel/easel";import{jsx as Ty}from"react/jsx-runtime";import{useEffect as pZ,useState as uZ}from"react";import{Banner as mZ}from"efficient-shell/ui";import{useSyncExternalStore as dZ}from"react";import{useScreenDocument as fZ}from"efficient-easel/screen/components/ScreenDocumentContext";var cZ=()=>()=>{},yM=()=>null;function _u(e){return dZ(e?e.subscribe:cZ,e?e.state:yM,e?e.state:yM)}function Au(){let{adapter:e}=fZ();return e?.pinnedChrome}var Fu={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."},xZ={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."},hZ=Fu.load,IZ=Fu.lock,gZ=Fu.conflict,yZ=Fu.save;function SZ(e){if(!e)return null;if(e.loadFailed)return c(hZ);if(e.lockHolder)return c(IZ,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(gZ);if(e.saveFailed)return c(yZ);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(xZ[o.problem],{section:t,name:r})}function bZ({report:e}){let o=SZ(_u(e)),[t,r]=uZ(null);return pZ(()=>{o||r(null)},[o]),!o||t===o?null:Ty("aside",{className:"sf-canvas-notice",children:Ty(mZ,{tone:"warning",onDismiss:()=>r(o),children:o})})}function SM(){return Ty(bZ,{report:Au()})}import{jsx as Lu}from"react/jsx-runtime";import{useState as DM}from"react";import{Banner as CZ,Button as kZ}from"efficient-shell/ui";import{UndoIcon as vZ}from"efficient-shell/icons/efficient";import{useScreenDocument as PZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as CM}from"react";var Oi=!1,Ss=null,Oy=new Set;function _i(){for(let e of Oy)e()}function kM(e){return Oy.add(e),()=>{Oy.delete(e)}}function vM(){Oi||(Oi=!0,_i())}function PM(){Oi&&(Oi=!1,_i())}function bM(){return Oi}function TM(){return CM(kM,bM,bM)}function wM(){return Ss}function Bu(){Ss&&(Ss=null,_i())}function OM(){return CM(kM,wM,wM)}var Ei=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function EM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Ei;let n=await e.restore(o,t);return Of(n.liveState),a(),n}async function _M({access:e,version:o,page:t,...r}){let a=await EM(e,o.id,t?{page:t.id}:{},r);Ss={title:wZ(o,t??null),undo:a.undo},_i()}async function AM({access:e,...o}){let t=Ss?.undo;t&&(await EM(e,t,{},o),Ss=null,_i())}function FM(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function wZ(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 BM(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Mt("{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(ex(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function LM(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function RM(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=ex(),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 TZ}from"efficient-easel/easel";function NM(){let e=OM(),{adapter:o,flushSave:t,reloadFromServer:r}=PZ(),a=o.siteVersions,[n,s]=DM(!1),[l,i]=DM(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await AM({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=TZ({onPress:()=>{d()},busy:n});return e?Lu("aside",{className:"sf-canvas-notice",children:Lu(CZ,{tone:l?"danger":"info",title:e.title,onDismiss:Bu,action:a&&e.undo?Lu(kZ,{variant:"secondary",size:"sm",leftIcon:Lu(vZ,{}),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 _y,REPEAT_INDEX_ATTRIBUTE as Ay}from"efficient-easel/draw";import{usePreviewParts as DZ}from"efficient-easel/draw/client";import{ScreenDocumentContext as NZ}from"efficient-easel/screen/components/ScreenDocumentContext";function HM(e){let{mirrorHostStyles:o}=cl(),t=QT(),r=Fy(),a=il(),n=_Z(NZ),s=tT(n?.docId??null),l=LZ(v=>v.appState.data),i=rT(s,l),d=JSON.stringify(i),f=Ru(()=>i,[d]),x=Ru(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);AZ(()=>(oy(a),()=>oy(null)),[a]);let u=MM(null),h=MZ(u),{onDocument:I}=e,S=v=>{u.current=v,I?.(v)};return EZ(OZ,{children:[Ey(NM,{}),Ey(SM,{}),Ey(FZ,{...e,onDocument:S,typing:h,metadata:x,height:"fill",mirrorStyles:o,frameWrapper:Vf})]})}function Fy(){let{sectionBackgroundWidth:e,themeFromDocument:o}=ko(),t=il();return Ru(()=>$C(o?null:e,t),[e,t,o])}function MZ(e){let o=Mf(),t=DZ(),r=MM({parts:t});return r.current={parts:t},Ru(()=>{let a=(n,s)=>{let l=$f(n,o),i,d=null,f=s??(l?null:rh(null,e.current,n)),x=!l&&f?BZ(f):null,u=x?RZ(n):null;if(x&&f&&u?.propKey){l=Uf({...x,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let v=f.closest(`[${_y}][${Ay}]`),O=`[${_y}="${zf(v?.getAttribute(_y)??"")}"][${Ay}="${zf(v?.getAttribute(Ay)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(O)??null}if(!l)return null;let h=f,I=()=>(h=rh(h,d?d():h?.ownerDocument??e.current,n),h),S=I();return S?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:i,toolbar:{offered:l.offered,colors:l.offered.length>0?sf(lf(S)):void 0,colorNameOf:nf}}:null};return{at:n=>{let s=n.closest(`[${Ue}]`),l=s?.getAttribute(Ue);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>S0(n,o),copyValue:n=>y0(n,o),onChange:n=>{if(!n.typing){ah(null);return}let s=n.element.closest(`[${Ue}]`)?.getAttribute(Ue)??null;ah(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Du=[{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"]}],bs="all",Nu="template";function WM(e){for(let o=0;o<Du.length;o++){let t=Du[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function $M(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>WM(o.s.slug)-WM(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function By(e){return e.filter(o=>o.source==="template")}function zM(e){let o=new Set($M(e).map(t=>t.slug));return Du.filter(t=>t.slugs.some(r=>o.has(r)))}function UM(e,o){if(e===Nu)return By(o);let t=$M(o);if(e===bs)return t;let r=Du.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var jM=3;function GM(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function YM({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=jZ(),{adapter:n,siteId:s,templateId:l}=UZ(),i=Ao(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=$Z(()=>s?{siteId:s}:{},[s]),x=gM(),u=Fy(),[h,I]=Ly(null),[S,v]=Ly(bs),[O,R]=Ly(null),T=zZ(null),g=WZ();HZ(()=>{if(!e)return;if(v(bs),!d){I([]);return}let P=!0;return I(null),i.starters(f).then(C=>P&&I(C),()=>{P&&(I([]),VM.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{P=!1}},[e,d,i,f]);let w=async(P,C)=>{if(!O){R(P);try{r(await C())}catch{VM.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{R(null)}}},_=()=>{if(!n.createPage)return;let P=c("New page");w("blank",()=>n.createPage({slug:qM(P,t),title:P,layout:{}}))},E=P=>{w(P.id,()=>i.createFromStarter(P.id,{title:P.title,slug:qM(P.slug,t),...f}))},D=h??[],b=zM(D),F=UM(S,D),y=GM(jM,F),k=KM("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[To(Ry,{label:c("All pages"),active:S===bs,onClick:()=>v(bs)}),b.map(P=>To(Ry,{label:c(P.label),active:S===P.key,onClick:()=>v(P.key)},P.key)),By(D).length>0?To("div",{className:"sf-add-page-group",children:To(Ry,{label:c("From your template"),active:S===Nu,onClick:()=>v(Nu)})}):null]});return To(qZ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:T,children:To(ZZ,{sidebarTop:To("div",{className:"sf-add-page-blank",children:To(KZ,{variant:"secondary",size:"md",leftIcon:To(GZ,{"aria-hidden":!0}),onClick:_,disabled:!n.createPage||O!==null,children:c("Blank page")})}),sidebar:k,children:KM("div",{ref:T,tabIndex:-1,role:"region","aria-labelledby":g,className:"sf-add-page",children:[To(JZ,{id:g,level:2,as:"h3",children:c("Pages for your site")}),To(XZ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?To(YZ,{label:c("Loading\u2026")}):F.length===0?To(VZ,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):To("div",{className:"sf-add-page-cards",children:y.map((P,C)=>To("div",{className:"sf-add-page-column",children:P.map(B=>To(pR,{starter:B,config:x,metadata:u,busy:O===B.id,onAdd:E},B.id))},C))})]})})})}import{jsx as QZ}from"react/jsx-runtime";import{createContext as eJ,useContext as XM,useEffect as oJ,useRef as ZM}from"react";var Dy=eJ(null);function ELe({open:e,children:o}){let t=ZM(!!e);return QZ(Dy.Provider,{value:t,children:o})}function JM(){let e=XM(Dy);return()=>e?.current?(e.current=!1,!0):!1}function QM(e){let o=XM(Dy),t=ZM(e);t.current=e,oJ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var nH="sf-editor-pages-collapsed-groups";function SJ(){let e=My(),{siteId:o,templateId:t}=sH(),r=Ao(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function lH({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=My().chrome?.pageRows,n=IJ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=sH(),f=Ln(),{rows:x,reload:u,setRows:h,getRows:I}=ml(),[S,v]=$a(""),[O,R]=$a(!1),[T,g]=$a(null),[w,_]=$a(!1),E=!!Ao(My()).pages.createFromStarter,D=SJ(),[b,F]=$a(null),[y,k]=$a(()=>{if(typeof window>"u")return new Set;try{let N=window.localStorage.getItem(nH);return new Set(N?JSON.parse(N):[])}catch{return new Set}});eH(()=>{try{window.localStorage.setItem(nH,JSON.stringify([...y]))}catch{}},[y]);let P=N=>k(te=>{let he=new Set(te);return he.has(N)?he.delete(N):he.add(N),he}),C=oH(()=>EP(x??[]),[x]),B=S.trim().toLowerCase(),H=N=>!B||N.toLowerCase().includes(B),q=N=>B?!0:!y.has(N),$=oH(()=>new Set((x??[]).map(N=>N.slug)),[x]),le=()=>{if(l.pageCreationInAdminForm&&!E){n.send("storefront-editor:new-page");return}g(null),_(!0)},pe=JM();eH(()=>{pe()&&le()},[]);let ee=l.hasSiteSettings&&!!s.createPage,xe=async()=>{if(!(!i||O||!s.createPage)){R(!0),g(null);try{let N=await s.createPage(xT(c("New popup"),$));await u(),e(N.slug)}catch{g(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{R(!1)}}},oe=aJ(null),[ie,ge]=$a(null),Re=()=>{if(!ee)return le();if(ie)return ge(null);let N=oe.current?.getBoundingClientRect();N&&ge({top:N.bottom+6,right:Math.max(8,window.innerWidth-N.right)})},$e=N=>{let te=x??[],he=s.deletePage;if(!i||O||!he||te.length<=1)return;let De=te.findIndex(ve=>ve.id===N.id),Oo=te.filter(ve=>ve.id!==N.id),Zo=N.slug===d;Kf(N.id,!0),h(Oo),g(null),Zo&&Oo[0]&&e(Oo[0].slug);let Eo=()=>{Kf(N.id,!1);let ve=I()??[];if(ve.some(Za=>Za.id===N.id))return;let yt=[...ve];yt.splice(Math.max(0,Math.min(De,yt.length)),0,N),h(yt)};rH.undoable(c("Deleted \u201C{name}\u201D",{name:N.label}),{actionLabel:c("Undo"),commit:async ve=>{await he(N.id,ve),Kf(N.id,!1)},undo:()=>{Eo(),Zo&&e(N.slug)},onFail:()=>{Eo(),rH.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},yo=N=>n.send("storefront-editor:open-page",{slug:N}),oo=N=>{if(!H(N.label))return null;let te=!t&&N.slug===d,he=l.canDeletePagesInline&&(x??[]).length>1,De=Cf(N),Oo=OP(N),Zo=[...De?[{label:c("Dynamic"),tone:"info"}]:[],...Oo?[{label:c("Lightbox"),tone:"success"}]:[],...N.draft?[{label:c("draft"),tone:"draft"}]:[]],Eo=Zo.length>0?Zo:void 0,ve=!!D&&gJ(N),yt=ve||l.pageCreationInAdminForm||he?Mu(tJ,{children:[ve&&ke(Hu,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:N.label}),disabled:O,onClick:()=>F(N),children:ke(uJ,{size:13})}),l.pageCreationInAdminForm&&ke(Hu,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:N.label}),onClick:()=>yo(N.slug),children:ke(xJ,{size:13})}),he&&ke(Hu,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:N.label}),disabled:O,onClick:()=>$e(N),children:ke(Ny,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ke(aH,{icon:ke(mJ,{size:14}),name:N.label,selected:te,onSelect:()=>e(N.slug),badge:Eo,actions:yt,rowProps:{"data-page-slug":N.slug}},N.id)},io=(N,te,he)=>{let De=he.filter(Boolean);if(De.length===0)return null;let Oo=q(N);return Mu(rJ,{children:[ke(cJ,{count:De.length,countLabel:Mt("{n} page","{n} pages",De.length),expanded:Oo,onToggle:()=>P(N),children:te}),Oo&&De]},N)},So=(a?.rows??[]).filter(N=>H(N.label)).map(N=>{let te=t===N.key;return ke(aH,{icon:N.icon,name:N.label,selected:te,onSelect:()=>r(N.key),badge:{label:c("Preview"),tone:"warning"},actions:ke(Hu,{kind:"plain",label:c("Open the {name} in a new tab",{name:N.label}),onClick:()=>window.open(N.href,"_blank","noopener,noreferrer"),children:ke(Ny,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":N.key}},N.key)}),Xe=l.hasSiteSettings&&!!a,bo=(()=>{if(x===null)return null;let N=[],te=!1;for(let he of C){Xe&&!te&&he.key.startsWith("system:")&&(N.push(io("shop",a.title,So)),te=!0);let De=he.key===TP||he.label===PP?c(he.label):he.label;N.push(io(he.key,De,he.rows.map(oo)))}return Xe&&!te&&N.push(io("shop",a.title,So)),N})();return Mu("div",{className:"sf-pages",children:[ke(nJ,{icon:ke(hJ,{}),title:c("Pages"),context:f,actions:ke(sJ,{buttonRef:oe,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?ie!==null:void 0,onClick:Re,children:ke(pJ,{size:15})})}),ie&&ke(dJ,{portal:!0,style:{top:ie.top,right:ie.right},onClose:()=>ge(null),children:Mu("div",{role:"menu","aria-label":c("Add"),children:[ke(tH,{role:"menuitem",onClick:()=>{ge(null),le()},children:c("Page")}),ke(tH,{role:"menuitem",disabled:O,onClick:()=>{ge(null),xe()},children:c("Popup")})]})}),ke("div",{className:"sf-pages-find",children:ke(lJ,{type:"search",leftIcon:ke(Ny,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:S,onChange:N=>v(N.target.value),"aria-label":c("Search all pages")})}),T&&!w&&ke("div",{className:"sf-note sf-note--error",role:"alert",children:T}),bo===null?ke(iJ,{label:c("Loading\u2026")}):bo.some(Boolean)?ke(fJ,{ariaLabel:c("Pages"),className:"sf-scroll",children:bo}):ke("div",{className:"sf-note",children:S.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),D&&b&&ke(yJ,{source:{title:b.label,slug:b.slug},taken:$,host:If(),duplicate:N=>D(b,N),onClose:()=>F(null),onDuplicated:N=>{F(null),u(),e(N.slug)}},b.id),w?ke(YM,{open:!0,onClose:()=>_(!1),takenSlugs:$,onCreated:N=>{_(!1),u(),e(N.slug)}}):null]})}import{jsx as fH}from"react/jsx-runtime";import{createContext as kJ,useCallback as vJ,useContext as PJ,useMemo as TJ,useState as OJ}from"react";import{CanvasChromeContext as EJ}from"efficient-easel/easel";import{useSelectHandler as _J}from"efficient-easel/draw/client";import{parseHexColor as bJ,parseOption as wJ}from"efficient-shell/format";var Wu=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],ws=Wu[0],CJ=["right","left"],za="right";function $u(e){return Wu.includes(e??"")?e:ws}function iH(e){return wJ(CJ,za,e)}function dH(e){return e&&bJ(e)===e.toLowerCase()?e.toLowerCase():""}var cH="chat",zu={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:za,launcherLabel:"",showOnPhones:!0};function lRe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:dH(e.launcherColor),launcherIcon:e.launcherIcon?$u(e.launcherIcon):"",launcherPosition:iH(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var pH=kJ({chat:zu,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function iRe({children:e,chat:o=zu,onChatChange:t}){let[r,a]=OJ(!1),n=vJ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=_J(),i=TJ(()=>({selected:()=>r?cH:null,select:d=>d===cH&&s()}),[r,s]);return fH(pH.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:fH(EJ.Provider,{value:i,children:e})})}var Uu=()=>PJ(pH);import{jsx as Hy}from"react/jsx-runtime";import{DesktopIcon as AJ,PhoneIcon as FJ,TabletIcon as BJ}from"efficient-easel/icons";import{VIEW_TIERS as LJ,VIEW_TIER_LABEL as RJ}from"efficient-easel/draw";var DJ={desktop:Hy(AJ,{}),tablet:Hy(BJ,{}),mobile:Hy(FJ,{})},uH=LJ.map(e=>({id:e,get label(){return c(RJ[e])},icon:DJ[e]}));import{PreviewDeviceContext as Yae}from"efficient-easel/draw/client";import{jsx as NJ}from"react/jsx-runtime";import{createContext as MJ,useCallback as mH,useContext as HJ,useMemo as WJ,useRef as $J}from"react";var zJ=Object.fromEntries(Rf.map(e=>[e,{value:"",error:null}])),xH=MJ({links:HT,rows:zJ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function gRe({children:e,value:o}){let t=$J(()=>{}),r=mH(()=>t.current(),[]),a=mH(s=>{t.current=s},[]),n=WJ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return NJ(xH.Provider,{value:n,children:e})}var Ai=()=>HJ(xH);import{jsx as UJ}from"react/jsx-runtime";import{createContext as jJ,useContext as GJ,useMemo as KJ,useState as qJ}from"react";var hH=jJ(null);function wRe({children:e}){let[o,t]=qJ(null),r=KJ(()=>({surface:o,setSurface:t}),[o]);return UJ(hH.Provider,{value:r,children:e})}function IH(){return GJ(hH)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as VJ}from"efficient-easel/draw/client";var{Provider:vRe,useSelection:ju}=VJ("selectedHeroPart");import{jsx as be,jsxs as qr,Fragment as F2}from"react/jsx-runtime";import{useEasel as wte,useRootFields as Cte}from"efficient-easel/easel";import{EmptyState as kte}from"efficient-shell/ui";function gH({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:Cf({kind:e})?c("Template"):c("Page")}}import{headWords as D2,InspectorHead as vte,InspectorIconButton as B2}from"efficient-easel/chrome";import{DuplicateIcon as Pte,TrashIcon as Tte}from"efficient-easel/icons";import{panelFieldsOf as Ote}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as M,Fragment as ue,jsxs as me}from"react/jsx-runtime";import{BlockBannerIcon as ZJ,BlockBoxIcon as JJ,BlockButtonIcon as QJ,BlockDividerIcon as SH,BlockFooterIcon as bH,BlockHeadingIcon as eQ,BlockProductIcon as oQ,BlockSocialIcon as tQ,BlockTextIcon as rQ,CardPaymentIcon as aQ,ChatIcon as nQ,AccountIcon as sQ,GlobeIcon as lQ,GridIcon as iQ,ImageIcon as $y,MapIcon as dQ,MediaIcon as fQ,PageIcon as cQ}from"efficient-easel/icons";import{jsx as Wy,Fragment as YJ,jsxs as XJ}from"react/jsx-runtime";var yH=XJ(YJ,{children:[Wy("circle",{cx:"9",cy:"20",r:"1.3"}),Wy("circle",{cx:"18",cy:"20",r:"1.3"}),Wy("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 pQ={header:me(ue,{children:[M("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),M("path",{d:"M3 9.5h18"})]}),social:me(ue,{children:[M("circle",{cx:"6",cy:"12",r:"2.5"}),M("circle",{cx:"18",cy:"6",r:"2.5"}),M("circle",{cx:"18",cy:"18",r:"2.5"}),M("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:me(ue,{children:[M("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),M("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:me(ue,{children:[M("path",{d:"M4 15.5h6M4 18h4"}),M("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:M("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:me(ue,{children:[M("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),M("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:M("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:me(ue,{children:[M("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),M("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:me(ue,{children:[M("circle",{cx:"11",cy:"11",r:"6"}),M("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:yH,CountrySwitchBlock:me(ue,{children:[M("circle",{cx:"12",cy:"12",r:"8.5"}),M("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:[M("circle",{cx:"12",cy:"12",r:"8.5"}),M("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:me(ue,{children:[M("path",{d:"M3 9h18"}),M("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:me(ue,{children:[M("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),M("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),M("path",{d:"M7 17h7"})]}),Collections:me(ue,{children:[M("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),M("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),M("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:me(ue,{children:[M("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),M("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:me(ue,{children:[M("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),M("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),M("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),M("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),M("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:me(ue,{children:[M("path",{d:"M3 7h9M15.5 7H21"}),M("circle",{cx:"13.5",cy:"7",r:"1.7"}),M("path",{d:"M3 12h4M10.5 12H21"}),M("circle",{cx:"8.5",cy:"12",r:"1.7"}),M("path",{d:"M3 17h9M15.5 17H21"}),M("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:me(ue,{children:[M("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),M("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:me(ue,{children:[M("path",{d:"M3 5h10"}),M("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),M("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),M("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:me(ue,{children:[M("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),M("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),M("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:me(ue,{children:[M("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),M("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),M("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),M("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:me(ue,{children:[M("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),M("circle",{cx:"9",cy:"10",r:"1.6"}),M("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:me(ue,{children:[M("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),M("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:me(ue,{children:[M("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),M("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),M("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:me(ue,{children:[M("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),M("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:me(ue,{children:[M("path",{d:"M3.5 20h17"}),M("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:me(ue,{children:[M("circle",{cx:"6",cy:"12",r:"2.6"}),M("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),M("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:me(ue,{children:[M("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),M("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:me(ue,{children:[M("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),M("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:me(ue,{children:[M("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),M("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:me(ue,{children:[M("path",{d:"M4 8.5h4.5M11 8.5h9"}),M("path",{d:"M4 14.5h16"})]}),HeroGroup:me(ue,{children:[M("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),M("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:me(ue,{children:[M("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),M("path",{d:"M6.5 9h11M6.5 12.5h11"}),M("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:M(ue,{children:M("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:[M("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),M("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:me(ue,{children:[M("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),M("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),M("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),M("path",{d:"M4 13.5h11M4 17.5h7"}),M("path",{d:"M17 15l3 2-3 2"})]}),Contents:me(ue,{children:[M("path",{d:"M4 7h2M4 12h2M4 17h2"}),M("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:me(ue,{children:[M("path",{d:"M4 6h9M4 11h5M4 16h5"}),M("circle",{cx:"15",cy:"15",r:"4"}),M("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:M("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},uQ=M("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),mQ={footer:bH,Footer:bH,Divider:SH,FooterDivider:SH,Banner:ZJ,Flex:JJ,FooterSocial:tQ,FooterPayment:aQ,page:cQ,website:lQ,AccountBlock:sQ,chat:nQ,Heading:eQ,Text:rQ,ImageBlock:$y,ButtonBlock:QJ,LocationMap:dQ,Grid:iQ,ProductRef:oQ,heroMedia:fQ,heroImage:$y,heroImage2:$y},xQ={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Ua({type:e,size:o=16,className:t}){let r=xQ[e]??e,a=mQ[r];return a?M(a,{size:o,className:t}):M("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:pQ[r]??uQ})}import{PanelHideButton as L2}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Ete}from"efficient-easel/screen/lib/session-context";import{jsx as Se,jsxs as Fi,Fragment as hQ}from"react/jsx-runtime";import{useEffect as IQ,useId as wH,useState as gQ}from"react";import{IconPicker as yQ}from"efficient-shell/ui";import{SettingsDefaultReset as SQ,SettingsField as Bi,SettingsSegmented as bQ,SettingsSwitch as CH}from"efficient-easel/panel";import{ButtonIcon as wQ,ButtonIconIcon as CQ,EyeIcon as kQ,PhoneIcon as vQ,PlacementIcon as PQ,TypeIcon as TQ}from"efficient-easel/icons";var OQ="Chat with us",EQ="We usually reply within a few minutes",_Q="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Gu({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=gQ(o);IQ(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return Se(Bi,{label:e,icon:Se(TQ,{}),changed:o!=="",action:Se(Li,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Se("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:i,"aria-label":e}):Se("input",{type:"text",value:s,placeholder:t,onChange:d=>l(d.target.value),onBlur:i,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Li({label:e,changed:o,onReset:t}){return Se(SQ,{words:aC()?.panel,label:e,changed:o,onReset:t})}function AQ({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=wH();return Se(Bi,{label:e,labelId:s,icon:o,changed:t!==r,action:Fi("span",{className:"inline-flex items-center gap-2",children:[Se(CH,{checked:t,onChange:a,ariaLabelledBy:s}),Se(Li,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var FQ=Wu.map(e=>({value:e,icon:nT(e)}));function BQ(){let{theme:e}=ko(),o=er(e).themes[0];return Mw(o)??o?.accent??""}function kH(){let{chat:e,setChat:o}=Uu(),t=wH(),r=BQ(),a=e.launcherIcon?$u(e.launcherIcon):ws;return Fi(hQ,{children:[Se(Bi,{label:c("Show the chat bubble"),labelId:t,icon:Se(kQ,{}),changed:!e.enabled,action:Fi("span",{className:"inline-flex items-center gap-2",children:[Se(CH,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Se(Li,{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.")}),Fi(Rx,{title:c("Look"),children:[Se(lT,{label:c("Button color"),icon:Se(wQ,{}),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:""})}),Se(Bi,{label:c("Icon"),icon:Se(CQ,{}),value:Se(KP,{value:a}),changed:a!==ws,action:Se(Li,{label:c("Icon"),changed:a!==ws,onReset:()=>o({launcherIcon:""})}),children:Se(yQ,{label:c("Icon"),value:a,options:FQ,onChange:n=>o({launcherIcon:n===ws?"":n})})}),Se(Bi,{label:c("Position"),icon:Se(PQ,{}),changed:e.launcherPosition!==za,action:Se(Li,{label:c("Position"),changed:e.launcherPosition!==za,onReset:()=>o({launcherPosition:za})}),children:Se(bQ,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),Se(Gu,{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")}),Se(AQ,{label:c("Show on phones"),icon:Se(vQ,{}),checked:e.showOnPhones,fallback:zu.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Fi(Rx,{title:c("Wording"),children:[Se(Gu,{label:c("Title"),value:e.title,placeholder:OQ,onCommit:n=>o({title:n})}),Se(Gu,{label:c("Subtitle"),value:e.subtitle,placeholder:EQ,onCommit:n=>o({subtitle:n})}),Se(Gu,{label:c("Greeting message"),value:e.greeting,placeholder:_Q,onCommit:n=>o({greeting:n}),multiline:!0}),Se("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as ja,Fragment as dS,jsxs as EH}from"react/jsx-runtime";import{useEffect as dee,useId as TH,useState as OH}from"react";import{SettingsField as fee}from"efficient-easel/panel";import{jsx as eee}from"react/jsx-runtime";import{forwardRef as LQ,createElement as zy}from"react";var vH={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=LQ(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...x},u)=>zy("svg",{ref:u,...vH[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&&zy("title",{key:"svg-title"},i),...r.map(([h,I])=>zy(h,I)),...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"}]],Uy=se("outline","brand-facebook","BrandFacebook",RQ);var DQ=[["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"}]],jy=se("outline","brand-instagram","BrandInstagram",DQ);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"}]],Gy=se("outline","brand-line","BrandLine",NQ);var MQ=[["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"}]],Ky=se("outline","brand-linkedin","BrandLinkedin",MQ);var HQ=[["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"}]],qy=se("outline","brand-pinterest","BrandPinterest",HQ);var WQ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Vy=se("outline","brand-telegram","BrandTelegram",WQ);var $Q=[["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"}]],Yy=se("outline","brand-tiktok","BrandTiktok",$Q);var zQ=[["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"}]],Xy=se("outline","brand-wechat","BrandWechat",zQ);var UQ=[["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"}]],Zy=se("outline","brand-whatsapp","BrandWhatsapp",UQ);var jQ=[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]],Jy=se("outline","brand-x","BrandX",jQ);var GQ=[["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"}]],Qy=se("outline","brand-youtube","BrandYoutube",GQ);var KQ=[["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"}]],eS=se("filled","brand-facebook-filled","BrandFacebookFilled",KQ);var qQ=[["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"}]],oS=se("filled","brand-instagram-filled","BrandInstagramFilled",qQ);var VQ=[["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"}]],tS=se("filled","brand-linkedin-filled","BrandLinkedinFilled",VQ);var YQ=[["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"}]],rS=se("filled","brand-pinterest-filled","BrandPinterestFilled",YQ);var XQ=[["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"}]],aS=se("filled","brand-tiktok-filled","BrandTiktokFilled",XQ);var ZQ=[["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"}]],nS=se("filled","brand-whatsapp-filled","BrandWhatsappFilled",ZQ);var JQ=[["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"}]],sS=se("filled","brand-x-filled","BrandXFilled",JQ);var QQ=[["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"}]],lS=se("filled","brand-youtube-filled","BrandYoutubeFilled",QQ);var iNe="outline",Ku={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},oee={},iS={fillRule:"evenodd"},tee=[["path",{...Ku,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...iS,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],ree=[["path",{...Ku,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",{...oee,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("")}]],aee=[["path",{...Ku,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",{...Ku,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",{...iS,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",{...iS,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("")}]],nee=se("filled","brand-telegram-filled","BrandTelegramFilled",tee),see=se("filled","brand-line-filled","BrandLineFilled",ree),lee=se("filled","brand-wechat-filled","BrandWechatFilled",aee),iee={instagram:{outline:jy,solid:oS},facebook:{outline:Uy,solid:eS},tiktok:{outline:Yy,solid:aS},youtube:{outline:Qy,solid:lS},x:{outline:Jy,solid:sS},linkedin:{outline:Ky,solid:tS},pinterest:{outline:qy,solid:rS},whatsapp:{outline:Zy,solid:nS},telegram:{outline:Vy,solid:nee},line:{outline:Gy,solid:see},wechat:{outline:Xy,solid:lee}};function PH({platform:e,iconStyle:o,size:t}){let r=iee[e][o];return eee(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var cee={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 pee({platform:e}){let{rows:o,saveLink:t}=Ai(),{value:r,error:a}=o[e],[n,s]=OH(r),[l,i]=OH(!1),d=TH(),f=TH();dee(()=>s(r),[r]);let x=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=MT[e];return EH(dS,{children:[ja(fee,{label:c(u),htmlFor:d,icon:ja(PH,{platform:e,iconStyle:"outline",size:18}),children:ja("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:cee[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&&ja("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function _H({unavailable:e}){let{canSave:o}=Ai();return!o&&e?ja(dS,{children:e}):EH(dS,{children:[ja("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Rf.map(t=>ja(pee,{platform:t},t))]})}import{jsx as qa,Fragment as Mee,jsxs as Hee}from"react/jsx-runtime";import{useId as Wee,useMemo as $ee}from"react";import{useEasel as zee}from"efficient-easel/easel";import{SettingsField as Uee,SettingsSwitch as jee}from"efficient-easel/panel";import{EyeIcon as Gee}from"efficient-easel/icons";import{fieldShownInView as Kee}from"efficient-easel/fields";import{usePreviewDevice as qee}from"efficient-easel/draw/client";import{ROOT_ZONE as Vee}from"efficient-easel/draw";import{jsx as Ka,Fragment as xee}from"react/jsx-runtime";import{createContext as hee,useContext as Iee,useLayoutEffect as gee,useMemo as FH,useRef as yee,useState as BH}from"react";import{useEasel as LH,useSelectedFields as See}from"efficient-easel/easel";import{fieldShownInView as bee,Inspector as wee,LEAD_BAND_KEY as Cee,planFields as RH}from"efficient-easel/fields";function AH({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 uee}from"react/jsx-runtime";import{EmptyState as mee}from"efficient-shell/ui";function Ga(){return uee(mee,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as kee}from"efficient-easel/draw/client";import{deviceField as vee}from"efficient-easel/screen/lib/document/device-fields";var Pee="Text",fS=new Map,qu=new Set,Tee=Object.fromEntries(Ti.map(e=>{let o=gT[e];return[e,Ka(o,{},e)]})),DH=hee(null),Oee={_partBody:vee("each",{type:"custom",render:()=>Ka(Eee,{})})};function Eee(){return Ka(xee,{children:Iee(DH)})}function At({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}=See(),u=FH(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(ee,xe)=>a?.keys.has(ee)?a.onChange(ee,xe):x(ee,xe),I=kee(),{appState:S,config:v}=LH(ee=>ee),O=AP(I,v,S.data.content??[],S.ui.itemSelector),R=n===void 0?u_(i,t):Oee,T=FH(()=>{let ee=r?.length?Object.fromEntries(Object.entries(R).filter(([xe])=>!r.includes(xe))):R;return a?{...ee,...a.fields}:ee},[R,r,a?.fields]),g=Tx(T,u,O),[w,_]=BH(()=>new Set(qu)),E=bee({},I),D={key:Cee,title:Pee},b=LH(ee=>ee.selectedItem)!==null,F=a?.part??t??"",y=`${l}:${F}:${String(I)}`,[k,P]=BH(()=>({tab:fS.get(y)})),C=`${l}:${F}`,B=yee(null),H={...O,node:u},q=RH(g,{values:u,context:H}).buckets,$=AH({allTabs:b,remembered:fS.get(y),inherited:B.current?.panel===C?B.current.tab:k.tab,buckets:q,hasText:E&&o>0}),le=!E&&!q.includes($)&&(RH(Tx(T,u,{...O,device:"desktop"}),{values:u,context:{...H,device:"desktop"}}).buckets.includes($)||$==="Design"&&o>0);gee(()=>{B.current={panel:C,tab:$}});let pe=$==="Design";return Ka(DH.Provider,{value:n??null,children:Ka(vT.Provider,{value:a?u:null,children:Ka(wee,{fields:g,values:u,onChange:h,readOnly:f,allTabs:b,showWhenContext:H,context:{itemWord:s},tab:$,onTab:ee=>{fS.set(y,ee),P({tab:ee})},tabIcons:Tee,idPrefix:l,ariaLabel:c("Section settings"),lead:pe?e:null,leadFold:D,closedFolds:w,onFold:(ee,xe)=>{xe?qu.delete(ee):qu.add(ee),_(new Set(qu))},children:le&&Ka(Ga,{})})})})}import{useMemo as _ee}from"react";import{useEasel as Aee}from"efficient-easel/easel";import{useSectionOps as Fee}from"efficient-easel/screen/lib/document/use-section-ops";var NH=new Map,Bee=e=>{let o=NH.get(e);return o||NH.set(e,o=Pu(ku(e),`part:${e}`)),o},Lee=new Set(Oh);function Cs(e,o,t){let{getItemById:r,getSelectorForId:a}=Aee(f=>f),n=Fee(),s=r(e)?.props??{},l=ya(s,o),i=JSON.stringify(l),d=_ee(()=>Object.fromEntries(Oh.map(f=>[f,l[f]])),[i]);return{part:o,fields:Bee(t),values:d,keys:Lee,onChange:(f,x)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=WO(h.props??{},o,f,x);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as Ree,createElement as Dee}from"react";import{deviceField as cS}from"efficient-easel/screen/lib/document/device-fields";var go=()=>({type:"custom",render:()=>Dee(Ree)});var pS={words:go(),sourceNote:go(),style:go(),font:go(),italic:go(),fontSize:cS("each",go()),lineHeight:go(),letterSpacing:go(),paragraphSpacing:go(),padding:go(),align:cS("each",go()),letterCase:go(),fixedSizeHint:cS("each",go()),regionNote:go(),regionStyle:go()},Nee=["fontSize","align"];function MH(e){return Nee.includes(e)}var HH={showTicker:go(),items:go()};function WH({heroId:e}){let{appState:o,dispatch:t}=zee(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=$ee(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:r1.map(I=>({text:I}))},[n]),i=Wee(),d=qee(),f=h=>Kee(HH[h],d),x=Cs(e,a1,"block");if(!n)return qa("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:Vee,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return qa(At,{motion:x,body:Hee(Mee,{children:[!f("showTicker")&&!f("items")&&qa(Ga,{}),f("showTicker")&&qa(Uee,{label:c("Show ticker"),labelId:i,icon:qa(Gee,{}),action:qa(jee,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&qa(_T,{label:Mx.label,icon:Mx.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as Ni,jsxs as It}from"react/jsx-runtime";import{useContext as ioe,useEffect as uS,useRef as doe,useState as ZH}from"react";import{FieldSelect as foe,InspectorField as coe,fieldShownInView as poe}from"efficient-easel/fields";import{InertHint as s2,SettingsField as uoe}from"efficient-easel/panel";import{InspectorUpLevel as Qu}from"efficient-easel/chrome";import{StylesIcon as moe,TypeIcon as xoe}from"efficient-easel/icons";import{useEasel as hoe}from"efficient-easel/easel";import{TextPartPanel as JH}from"efficient-easel/copy";import{Button as Ioe,IconButton as goe,Tooltip as yoe}from"efficient-shell/ui";import{jsx as UH,jsxs as Yee}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as Xee}from"efficient-easel/strings";import{COPY_CELLS as ks,COPY_CELL_LENGTHS as $H,CopyBox as Zee,lengthCellUnits as Jee}from"efficient-easel/copy";import{PaddingYIcon as Qee}from"efficient-easel/icons";import{onDesktopWords as eoe}from"efficient-easel/screen/lib/document/box-fields";var zH=Xee.copy.cells,ooe={kind:"spacing"},toe=["left","center","right","justify"];function Vu(e,o,t,r="desktop"){let a=Ev(e),n=Av(r),s=e[n]??e.size??o.sizePx,l=Fv(e,r),i=(f,x,u,h,I)=>{let S=al[u];return Jee({preset:f,row:x,table:vf,unit:e[S],value:e[u],tier:r,styleValue:h,label:c(I),onPick:(v,O)=>t({[S]:v??null,[u]:O??null}),onChange:(v,O)=>t({...O?{[S]:O.unit??null}:{},[u]:v??null})})},d={key:"padding",name:c("Padding"),icon:UH(Qee,{}),unit:"px",step:vv,shiftStep:10,min:Cv,max:kv};return[{...ks.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(ks.fontSize,$H.fontSize,n,Math.round(o.sizePx),zH.fontSize),...n==="size"?{}:{reset:{detail:l?eoe(f=>c(f),`${l.px}px`,l.view):void 0}}},{...ks.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...ks.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...ks.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...i(ks.paragraphSpacing,$H.paragraphSpacing,"paragraphSpacing",0,zH.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,ooe,"padding",o.paddingPx,"Padding")}]}function jH({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=Vu(n,s,l),I=th(r,t);return Yee("div",{className:"sf-part-textbox",children:[x,UH(Zee,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:cd,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:nf,align:a?{value:n.align??s.align,allow:toe,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 QH}from"efficient-easel/draw/client";import{jsx as Yu,Fragment as roe,jsxs as aoe}from"react/jsx-runtime";import{Button as GH,Dialog as noe}from"efficient-shell/ui";function KH({styleName:e,onCancel:o,onConfirm:t}){return Yu(noe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:aoe(roe,{children:[Yu(GH,{variant:"secondary",onClick:o,children:c("Cancel")}),Yu(GH,{variant:"primary",onClick:t,children:c("Update style")})]}),children:Yu("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 Soe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as boe}from"efficient-easel/draw/client";import{shownTier as Zu}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as woe,viewKeyAt as Coe}from"efficient-easel/draw";import{useSectionOps as koe}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as voe}from"efficient-easel/screen/lib/host";function soe(e){let o=new Set([...Object.keys(z(Yk,e)??{}),...z(Xk,e)??[]]);for(let[t,r]of Object.entries(z(Jk,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var loe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},qH={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},VH="Open",YH={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 vs(e){let o=e?.source?.slug;return fo(o)}function Ri(e){return z(loe,e)??null}function XH(e,o){let t=Ri(e);return t&&soe(e).includes(o)?t:null}function Xu(e){let o=e?.menu?.id;return fo(o)}function mS(e){return e?c(e):null}function e2(e){return e.kind==="role"?vm[e.role]:e.kind==="custom"?"Custom":null}function Poe(e){let o=gb(e.role);return o?{kind:"role",role:o}:null}function Toe(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 Ju(e,o,t,r){return Poe(Tr(e,o))??Toe(t,r)}function Ooe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function o2(e,o){return[{value:Di,label:c("No style"),description:c("Section\u2019s own")},...e.map(t=>({value:t.id,label:t.name,description:t.values.font?fd(t.values.font,o)?.label:void 0}))]}var Di="";function Eoe({face:e,base:o,onPick:t}){let r=Ct(),a=e.kind==="role"?e.role:Di,n=[{label:c("No style"),value:Di},...Ib.map(s=>({label:c(vm[s]),value:s}))];return Z(foe,{ariaLabel:c("Style"),value:a,options:n,inline:!0,onChange:s=>t(s===Di?null:s),renderOption:s=>s.value===Di?It(Ni,{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(${fd(o.fontKey,r)?.cssVar})`:void 0,fontWeight:o?.weight},children:mS(e2(e))}),valueText:s=>mS(e2(e))??s?.label??""})}var l2=["regionNote","regionStyle"],_oe=Object.keys(pS).filter(e=>!l2.includes(e));function i2(e,o){return!e.some(o)}function Aoe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=It(Ni,{children:[t,r,a]});return It("div",{className:"sf-part-panel",children:[Z(Qu,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function em({source:e,slug:o,menuId:t}){let r=voe(),a=YH[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:It(s2,{children:[c(qH[e]),n?It(Ni,{children:[" ",Z(Ioe,{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(VH)})]}):null]})})}var t2=4,Foe=120;function r2(e){return c("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:c(e.label).toLowerCase()})}function a2({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 It("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?It(Ni,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:r2(e)})]}):a?i("regionStyle")?Z(Ni,{children:Z(uoe,{label:c("Style"),icon:Z(moe,{}),hint:r2(e),children:Z(Eoe,{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(em,{source:n,slug:s}):null,i2([...l2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&Z(Ga,{}),Z(Qu,{inline:!0,name:c("Page"),onSelect:l})]})}function Boe({onBack:e}){return It("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 Loe({onBack:e,partId:o,why:t}){return It("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:It("code",{children:[o," \u2014 ",t]})}),Z(Qu,{inline:!0,name:c("Page"),onSelect:e})]})}function d2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=hoe(G=>G),l=koe(),i=I0(),{partStyle:d}=fs(),{fonts:f,textStyles:x}=ko(),u=Ct(),h=ioe(Soe),I=!h?.capabilities?.hasSiteTheme,{persist:S}=fT({themeFromDocument:I,tokenRef:h?.tokenRef,siteId:h?.siteId??null}),v=qT({themeFromDocument:I,persist:S}),[O,R]=ZH(!1),T=boe(),g=G=>(Zu(T)!=="tablet"||MH(G))&&poe(pS[G],T),w=doe(null),_=a(e),E=n(e),D=_?s.components[_.type]:void 0,{key:b,row:F}=Wt(o),y=D?.fields?.[b],k=F?Dn(y,F):y,P=$t(e,o),C=_?.props??{},B=df(k),H=_f(k),q=pv(k),$=_?Ri(_.type):null,le=_?XH(_.type,b):null,pe=F?cf(C[b],F):C[b],ee=!!F&&!(Array.isArray(C[b])&&F.index<C[b].length);uS(()=>{h0(document)||w.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[P]);let[xe,oe]=ZH(0);uS(()=>oe(0),[P]);let ie=!!_&&!ee&&(!E||!k);uS(()=>{if(!ie||xe>=t2)return;let G=setTimeout(()=>oe(Ae=>Ae+1),Foe);return()=>clearTimeout(G)},[ie,xe]);let ge=ie&&xe<t2,Re=Cs(e,sr(_?.type,o),"textPart");if(!_||ee)return Z(Boe,{onBack:t});let $e=cs(_.type),yo=$e?$s($e,o):null;if($e&&yo){let G=d?.partId===P?d:null,Ae=$e[yo],_o=Ae.writable===!0&&!!E,xr=Zr=>{E&&l.replaceComponent(E.zone,E.index,{..._,props:sa(C,o,"role",Zr)})};if(_o&&mw(Ae)){let Zr=Tr(C,o),QS=Jr=>{if(!E)return;let Cm=C;for(let[q4,V4]of Object.entries(Jr))Cm=sa(Cm,o,q4,V4??null);l.replaceComponent(E.zone,E.index,{..._,props:Cm})},j4=$x(v.saved,v.old),G4=yx(Zr)??"",K4=Vu(Zr,G?.base??n2,QS,Zu(T)).filter(Jr=>Jr.key==="fontSize"&&g(Jr.key));return Z(At,{motion:Re,body:Z(a2,{region:Ae,sizePx:G?.base.sizePx??null,face:Ju(C,o,G,f),base:G?.base??null,source:$,slug:vs(C),onBack:t,shows:g,ownLook:Wv(Zr),sizedStyle:Z(JH,{style:g("style")?{value:G4,options:o2(j4,u),onChange:Jr=>QS(Jr?{textStyle:Jr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:K4})})})}return Z(At,{motion:Re,body:Z(a2,{region:Ae,sizePx:G?.base.sizePx??null,face:Ju(C,o,G,f),base:G?.base??null,onFollowStyle:_o?xr:void 0,source:$,slug:vs(C),onBack:t,shows:g})})}if(!E||!k)return ge?Z("div",{className:"sf-note","aria-busy":"true"}):Z(Loe,{onBack:t,partId:P,why:E?"no field":"no selector"});let oo=G=>{l.replaceComponent(E.zone,E.index,{..._,props:G})},io=G=>{if(ca(G).hidden!==ca(pe).hidden||!B){let Ae=F?av(C,b,F,G):{...C,[b]:G};Ae&&oo(Ae);return}Hf({node:_,propKey:o,kind:B,zone:E.zone,index:E.index},ca(G).text,l.replaceComponent)},So=pe,Xe=d?.partId===P?d:null,bo=Xe?.styleOwner,N=bo?a(bo.owner):null,te=bo&&N?n(bo.owner):null,he=!!(bo&&N&&te),De=he?N.props??{}:C,Oo=he?G=>l.replaceComponent(te.zone,te.index,{...N,props:G}):oo,Zo=he?bo.kind:sr(_?.type,o),Eo=Tr(De,Zo),ve=[{partKey:Zo,face:Ju(De,Zo,Xe,f),sizeGroup:Xe?.sizeGroup??null,base:Xe?.base??n2,style:Eo}],yt=Ooe(ve,G=>G.sizeGroup),Za=sf(Xe?.inks),Vr=(G,Ae)=>{let _o=De;for(let xr of ve)_o=sa(_o,xr.partKey,G,Ae);Oo(_o)},bm=G=>G?Vr("textStyle",G):Lo({textStyle:null,role:null}),Lo=G=>{let Ae=De;for(let _o of ve)for(let[xr,Zr]of Object.entries(G))Ae=sa(Ae,_o.partKey,xr,Zr??null);Oo(Ae)},Yr=B==="text"||B==="textarea",{text:As,hidden:Ro}=ca(pe),Ja=k?.[woe]?.label??o,Vt=Ro?c("Show {label} on the slide",{label:c(Ja)}):c("Hide {label} on the slide",{label:c(Ja)}),Fs=It("div",{className:"sf-field-head",children:[Z(xoe,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:c(Ja)}),Yr&&Z(yoe,{content:Vt,children:Z(goe,{"aria-pressed":Ro,"aria-label":Vt,onClick:()=>io({text:As,hidden:!Ro}),children:Ro?Z(QH,{name:"eye-off",size:14}):Z(QH,{name:"eye",size:14})})})]}),Xr=!H&&q,mr=!!B&&(IT(k)||H||Ro||!q),ed=Ju(De,Zo,Xe,f),wm=ed.kind==="role"?ed.role:null,Qa=yx(Eo)??UT(wm),en=$x(v.saved,v.old),od=Object.entries(Eo).filter(([G,Ae])=>G!=="role"&&G!=="textStyle"&&Ae!==void 0).length,Bs=()=>{let G=De;for(let Ae of ve){let{role:_o,textStyle:xr}=Ae.style;G=Ov(G,Ae.partKey),_o&&(G=sa(G,Ae.partKey,"role",_o)),xr&&(G=sa(G,Ae.partKey,"textStyle",xr))}Oo(G)},Jo=Qa,td=GT(ve[0].style),rd=Jo?en.find(G=>G.id===Jo)?.name??Jo:"",ad=()=>{R(!1),Jo&&(v.write(KT({saved:v.saved,old:v.old,styleId:Jo,values:jT(ve[0].style)}),!0),Bs())};return It(Aoe,{sectionName:D?.label??_.type,onBack:t,tabs:G=>Z(At,{motion:Re,body:G}),textEditor:g("words")?Z("div",{ref:w,className:"sf-part-text",children:mr?Z(jH,{text:As,onTextChange:G=>io(Yr?{text:G,hidden:Ro}:G),multiline:ff(B),markup:B!=="plainText",styled:!1,style:ve[0].style,base:ve[0].base,setValue:Lo,colors:Za,placeholder:mS(ev(k))??void 0,ariaLabel:c(Ja),head:Fs,typedOnCanvas:i===P}):B?Yr?Fs:null:Z(coe,{field:k,name:o,value:So,onChange:io,id:`sf-part-${e}-${o}`})}):void 0,children:[le&&g("sourceNote")&&Z(em,{source:le,slug:vs(C),menuId:Xu(C)}),Xr&&Z(JH,{style:g("style")?{value:Qa??"",options:o2(en,u),onChange:G=>bm(G||null),changed:od>0,onEditStyles:r,onUpdateStyle:Jo&&td?()=>R(!0):void 0}:void 0,font:g("font")?{value:Eo.font??"",styleValue:fd(ve[0].base.fontKey,u)?.label,options:hb(u).map(G=>({label:G.label,value:G.key})),onChange:G=>Vr("font",G||null)}:void 0,italic:g("italic")?{value:Eo.italic,styleValue:Doe(x,Qa),onChange:G=>Vr("italic",G??null)}:void 0,cells:Vu(ve[0].style,ve[0].base,Lo,Zu(T)).filter(G=>g(G.key)),align:g("align")?Roe(Eo,ve[0].base.align,Zu(T),Vr):void 0,letterCase:g("letterCase")?{value:Eo.case??"",styleValue:ve[0].base.case,onChange:G=>Vr("case",G||null)}:void 0}),O&&Jo&&Z(KH,{styleName:rd,onCancel:()=>R(!1),onConfirm:ad}),Xr&&yt===null&&g("fixedSizeHint")&&Z(s2,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),i2(_oe,G=>g(G)&&(G==="words"||(G==="sourceNote"?!!le:G==="fixedSizeHint"?Xr&&yt===null:Xr)))&&Z(Ga,{})]})}function Roe(e,o,t,r){let a=Coe("align",t),n=_v(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Doe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var n2={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Ft,jsxs as SS,Fragment as Uoe}from"react/jsx-runtime";import{useCallback as joe,useRef as Goe,useState as Wi}from"react";import{InspectorIconButton as Koe}from"efficient-easel/chrome";import{useEasel as qoe}from"efficient-easel/easel";import{LoadingSpinner as Voe,PopupMenu as Yoe,PopupMenuItem as Xoe,PopupMenuLabel as bS}from"efficient-shell/ui";import{CopyToPageIcon as Zoe}from"efficient-easel/icons";import{useEaselSession as Joe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Qoe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as ete}from"efficient-easel/draw";import{newId as Hoe}from"efficient-easel/data";import{isBackendError as Ps}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as y2}from"efficient-easel/screen/lib/session";var om=qP(),xS=om.set;function tm(e,o){xS(e,o)}function rm(e,o){let t=om.get(e);xS(e,o??(t==="live"?"changed":t))}function am(e,o){xS(e,o??"live")}function f2(e){return om.get(e)}function c2(e){return om.use(e)}function p2(e,o){return e==="live"&&o?"changed":e}function hS({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 u2(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var m2="SharedSection",Noe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Mi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Hi=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function x2(e){if(e?.type!==m2)return null;let o=e.props?.section;return typeof o=="string"&&Noe.test(o)?o.toLowerCase():null}function h2(e){let o=[];for(let t of Mi(e)){let r=x2(t),a=Hi(t);r&&a&&o.push({refId:a,section:r})}return o}function nm(e){let o=Mi(e)[0];return o&&typeof o=="object"&&Hi(o)?o:null}function Moe(e,o){return{type:m2,props:{id:e,section:o}}}function I2(e,o){let t=new Map,r=new Set,a=!1,n=Mi(e).map(s=>{let l=x2(s),i=Hi(s);if(!l||!i||r.has(l))return s;let d=nm(o.get(l)),f=Hi(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 g2(e,o,t){let r=new Map,a=!1,n=Mi(e).map(s=>{let l=Hi(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=Mi(d).slice(1),x=nm(d);return r.set(i.section,x===s?d:{...d,content:[s,...f]}),a=!0,i.reference??Moe(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function yS(e){return!!(e?.publish&&e.liveState)}function Woe(e,o){if(!yS(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 $oe(e,o){return async(t,r)=>{try{await dT()}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"?Of({state:"live",changes:[]}):fa(0),{version:r??null}}}function gS(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(tm(n.id,n.live),eT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(rm(a,i.live),oT(a,i.videoFrames),fa(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:yS(t)?$oe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(am(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 zoe(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,f=new Map,x=new Map,u={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let b=f2(n.id);return b==="changed"||b==="never"||b===void 0&&l},S=b=>{u={...u,...b,docId:n?.id??null,unpublished:I(),sections:[...f.values()],rootProps:ZP(n?.layout)};for(let F of h)F()},v=(b,F,y)=>{F?f.set(b,{section:b,title:i.get(b)?.title??"",problem:F,holder:y}):f.delete(b)},O=b=>b&&typeof b=="object"&&!Array.isArray(b)?b:{},R=b=>s.has(b),T=()=>new Map([...i].map(([b,F])=>[b,F.layout])),g=()=>Hoe("SharedSection"),w=(b,F,y,k)=>{let P=O(F);i.set(b,{layout:P,version:y,savedJson:JSON.stringify(P),title:k})},_={state:()=>u,subscribe:b=>(h.add(b),()=>{h.delete(b)})},E={sectionOf:b=>d.get(b)?.section??null,heldElsewhere:b=>{let F=d.get(b)?.section;return!!(F&&f.get(F)?.problem==="lock")},adopt:(b,F)=>{w(F.id,F.layout,F.layout_updated_at,F.title),d.set(b,{section:F.id,refId:g()}),x.set(F.id,F.used_on),S({})},place:b=>{if([...d.values()].some(k=>k.section===b.id))return null;let F=nm(O(b.layout)),y=typeof F?.props?.id=="string"?F.props.id:null;return!F||!y||!F.type?null:(w(b.id,b.layout,b.layout_updated_at,b.title),d.set(y,{section:b.id,refId:g()}),x.set(b.id,b.used_on),F)},usedOn:b=>x.get(b)??null,learn:b=>{for(let F of b){x.set(F.id,F.used_on);let y=i.get(F.id);y&&(y.title=F.title);let k=f.get(F.id);k&&f.set(F.id,{...k,title:F.title})}S({})}},D=async(b,F)=>{for(let[y,k]of b){let P=i.get(y),C=JSON.stringify(k);if(!(!P||C===P.savedJson||f.get(y)?.problem==="lock"))try{let B=await e.save(y,{layout:k},{version:P.version,clientId:F??""});rm(y,B.live),P.layout=k,P.version=B.version,P.savedJson=C,v(y,null)}catch(B){Ps(B,"changed-elsewhere")?v(y,"conflict"):Ps(B,"lock-taken")?v(y,"lock",B.holder??void 0):v(y,"save")}}b.size&&fa(),S({})};return{resolve:async b=>{if(Wx(b===Or?null:_),Ax(b===Or?null:E),i=new Map,d=new Map,f=new Map,x=new Map,b===Or)return t.resolve(b);let F=!1,[y,k]=await Promise.all([t.resolve(b),e.load({slug:Or,...o}).catch(()=>(F=!0,null))]);if(k&&!hT(y?.layout)){tm(k.id,k.live);let $=O(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 P=O(y.layout),C=h2(P),B=await Promise.all(C.map($=>e.load({id:$.section,...o}).catch(()=>null)));C.forEach(($,le)=>{let pe=B[le];pe?(tm(pe.id,pe.live),w($.section,pe.layout,pe.version,"")):(i.delete($.section),f.set($.section,{section:$.section,title:"",problem:"load"}))});let H=I2(P,T());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 q=JP(H.working,n.layout);return n.savedJson=JSON.stringify(_x(q,n.layout).chrome),s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:!1}),{...y,layout:q}},saveLayout:async(b,F,y,k)=>{if(!R(b))return t.saveLayout(b,F,y,k);let P=n,C=P?_x(F,P.layout):{page:F,chrome:null},B=g2(C.page,d,T()),H=await t.saveLayout(b,B.page,y,k);if(await D(B.docs,k),!P)return H;let q=JSON.stringify(C.chrome);if(!C.chrome||q===P.savedJson||u.lockHolder)return H;try{let $=await e.save(P.id,{layout:C.chrome},{version:P.version,clientId:k??""});rm(P.id,$.live),fa(),P.layout=C.chrome,P.version=$.version,P.savedJson=q,l=!0,S({conflict:null,saveFailed:!1})}catch($){Ps($,"changed-elsewhere")?S({conflict:$.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Ps($,"lock-taken")?S({lockHolder:$.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):S({saveFailed:!0})}return H},publish:t.publish?async(b,F)=>{let y=await t.publish(b,F),k=n;if(k&&R(b)&&!a&&e.publish&&I()&&!u.lockHolder){let P=await e.publish(k.id,k.version?{version:k.version}:void 0);am(k.id,P.live),P.version!==null&&(k.version=P.version),l=!1,S({})}if(R(b)&&!a&&e.publish)for(let[P,C]of i){if(f.get(P)?.problem==="lock")continue;let B=await e.publish(P,C.version?{version:C.version}:void 0);am(P,B.live),B.version!==null&&(C.version=B.version)}return y}:void 0,lock:r?{claim:async(b,F,y)=>{let k=await r.claim(b,F,y);if(!R(b))return k;let P=n;if(P)try{await r.claim(P.id,F,!1),u.lockHolder&&S({lockHolder:null})}catch(C){Ps(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){Ps(B,"lock-taken")&&v(C,"lock",B.holder??void 0)}return i.size&&S({}),k},release:async(b,F)=>{if(await r.release(b,F),!R(b))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:_}}function sm(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:r0(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 zHe(e,o,t){return e.update(o,a0(t))}function UHe(e,o=Ao(),t=Ag(),r={}){let a=y2(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=yS(o.site)?o.site:void 0,x=sm(o.pages),u=gS(x,e,f),h=d?zoe(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,...S2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Woe(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function jHe(e,o=Ao(),t=Ag()){let r=y2(o),a=o.templates,n=a?sm(a.pages(e)):{list:()=>Promise.reject(new Error(IS)),load:()=>Promise.reject(new Error(IS)),save:()=>Promise.reject(new Error(IS))};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},...gS(n,void 0),...S2(gS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function S2(e){return{resolve:o=>(Wx(null),Ax(null),e(o))}}var IS="This editor's backend has no website templates.";function ote(e,o,t){let r=Qoe(e,void 0,o);return t?.(r)??r}function b2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Wi(!1),[i,d]=Wi(null),f=Joe(),x=qoe(E=>E.config.components),[u,h]=Wi(!1),[I,S]=Wi(null),v=Goe(null),[O,R]=Wi(null),T=joe(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{d(await Ao(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),g=()=>{if(s){l(!1);return}let E=v.current?.getBoundingClientRect();E&&R({top:E.bottom+6,right:Math.max(8,window.innerWidth-E.right)}),d(null),h(!1),T(),l(!0)},w=(i??[]).filter(E=>E.slug!==o),_=async E=>{if(I)return;S(E.slug);let D=ote(e,x,f.documentHooks?.storedNode),b=await a(()=>tte(Ao(f).pages,E,D));S(null),l(!1),n?.(b?c("Duplicated to \u201C{name}\u201D",{name:E.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),b?"success":"error")};return SS(Uoe,{children:[Ft("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Ft(Koe,{buttonRef:v,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:g,children:Ft(Zoe,{size:15})})}),s&&O&&Ft(Yoe,{portal:!0,style:{top:O.top,right:O.right},onClose:()=>l(!1),children:SS("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Ft(bS,{children:c("Duplicate to page")}),u?Ft(bS,{children:c("Couldn\u2019t load pages")}):i===null?Ft(Voe,{label:c("Loading\u2026")}):w.length===0?Ft(bS,{children:c("No other pages")}):w.map(E=>SS(Xoe,{role:"menuitem",disabled:I!==null,onClick:()=>{_(E)},children:[Ft("span",{className:"min-w-0 flex-1 truncate",children:E.label}),I===E.slug?Ft("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):E.draft&&Ft("span",{className:"shrink-0 text-xs",children:c("draft")})]},E.id))]})})]})}async function tte(e,o,t){let r=sm(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===ete);s.splice(l===-1?s.length:l,0,VP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as _te}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Ate}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as I5e,isSelectionMode as PS}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Fte}from"efficient-easel/draw/client";import{jsx as $i,jsxs as rte}from"react/jsx-runtime";import{SettingsDrill as ate}from"efficient-easel/panel";import{UiIcon as nte}from"efficient-easel/draw/client";var ste="Not shown on the page";function lte({part:e,onOpen:o}){return $i(ate,{name:c(e.label),preview:e.offPage?c(ste):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?$i("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:$i(nte,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function wS(e){return e.filter(o=>!o.identifier)}function w2({parts:e,onOpen:o,heading:t=!0}){let r=wS(e);return r.length?rte("div",{className:"sf-entries",children:[t?$i("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>$i(lte,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Bte,ROOT_ZONE as R2}from"efficient-easel/draw";import{newId as ite}from"efficient-easel/data";import{HEADER_TYPE as Go,FOOTER_TYPE as Le,newNodeId as dte}from"efficient-easel/draw";function lm(){return{type:Go,props:{id:dte(Go)}}}var C2=[{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"}],fte=C2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),cte="FooterGroup",k2="blocks";function v2(e){return e===Le?C2:e===cte?fte:null}function im(){let e=(o,t)=>({type:o,props:{id:ite(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...Zv}),e("FooterPayment",{...mf})]}function CS(e){switch(e?.type){case Ho:case Je:return c("On every page");case Go:case Le:return c("On every page \xB7 old style");default:return null}}var P2=()=>null,T2=()=>c("Changed on every page");function dm(e,o){let t=UC(e,o);if(t)return t;let r=dP(e,o);if(!r)return null;let a=r.group===Ho;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 fm,Fragment as ute,jsxs as mte}from"react/jsx-runtime";import{useState as xte}from"react";import{createNode as hte,newId as Ite}from"efficient-easel/data";import{useEasel as gte}from"efficient-easel/easel";import{Banner as yte,Button as kS}from"efficient-shell/ui";import{useScreenDocument as Ste}from"efficient-easel/screen/components/ScreenDocumentContext";var pte=["FooterPayment"];function O2(e,o){let{id:t,...r}=e.props;for(let a of Lt(e))r[a]=r[a].map(n=>O2(n,o));return o(e.type,r)}var zi=(e,o)=>{if(!pte.includes(e.type))return null;Xp();let t=Rr(e.type);return t?Oa({type:e.type,props:{...e.props}},t).nodes.map(r=>O2(r,o)):null};function E2(){let{appState:e,dispatch:o,config:t}=gte(f=>f),{readOnly:r}=Ste(),[a,n]=xte(!1),s=e.data.content;if(r||s.some(f=>f.type===Je))return null;let l=s.find(f=>f.type===Le)??null,i=(f,x)=>hte(t,f,x),d=()=>{let f=ii(l,i,Ite(Je),zi);o({type:"setData",data:x=>({...x,content:[...hf(x.content,f)]}),recordHistory:!0}),n(!1)};return fm(yte,{tone:"info",title:c("This footer uses the old layout"),action:a?mte(ute,{children:[fm(kS,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),fm(kS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):fm(kS,{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 vS,jsxs as bte}from"react/jsx-runtime";import{InspectorUpLevel as _2}from"efficient-easel/chrome";function A2({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=ju(),n=Cs(e,o,"picture");return bte("div",{children:[o!=="media"?vS(_2,{inline:!0,name:c(fr.media),onSelect:()=>a(ka(e,"media"))}):vS(_2,{inline:!0,name:c(t),onSelect:r}),vS(At,{part:o,motion:n,itemWord:c(fr[o])})]})}import{HintsToggle as Lte,SettingsSwitch as Rte,hintsFoldClass as Dte}from"efficient-easel/panel";import{useHints as Nte}from"efficient-easel/screen/lib/hints";var N2={kind:"header"},OS={kind:"website"},M2={kind:"website",tab:Df,revealPageGroup:!0},H2={kind:"chat"},W2={kind:"social"},Ui="Part";function Mte(e){return c("Part of {name}",{name:c(e)})}function Hte(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Mte(r.label):c(Ui)}}function Wte(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 $2({what:e}){let o=Wte(e);return qr("div",{className:"sf-note",children:[be("p",{children:be("strong",{children:o.title})}),qr("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 TS(e){let o=jl[e];return{name:fr[e],kindLabel:Ui,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=D2({name:c(qc(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?be(A2,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var $te={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?be(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)=>be(Nf,{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:()=>be(kH,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>be(_H,{unavailable:be($2,{what:"Social link"})})},ticker:{name:Na,kindLabel:Ui,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Hte(o,e.heroId,c(Na)):null,render:e=>be(WH,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:TS("media"),heroImage:TS("image"),heroImage2:TS("image2"),part:{name:Ui,kindLabel:Ui,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}=Wt(e.propKey),n=a?Dn(t.fields[r],a):t.fields[r],s=cs(t.type),l=s?$s(s,e.propKey):null,i=s&&l?s[l].label:LO[e.propKey],d=i?c(i):sv(c(uf(uv(n??{},r))),a),f=D2({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"?be(d2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},zte=new Set(["header","website","chat"]);function Ute(e,o){if(e==="selection")return null;let t=$te[e];return zte.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>be($2,{what:t.name})}:t}function z2({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:l,tokenRef:i,notifyParent:d,currentSlug:f,siteId:x,runAuthed:u,readOnly:h,navigate:I}=_te(),{rows:S}=ml(),v=S?.find(te=>te.slug===f)??null,O=Cte(),R=Object.keys(O.fields).some(te=>!te.startsWith("_")&&!zx.includes(te)),{websiteName:T}=ko(),g=Ate({readOnly:h}),{select:w}=Fte(),{selectedItem:_,getItemById:E,getSelectorForId:D,config:b,appState:F}=wte(te=>te),y=Ote(b,_?{type:_.type,props:_.props}:null),k=_?hv(y??b.components[_.type]?.fields,_.props):[],P=te=>b.components[te]?.label??te,C=_?D(_.props.id):void 0,B=Ute(e.kind,l),H=Ete(),q={capabilities:l,tokenRef:i,hostPanels:H.chrome?.panels,describeNode:te=>{let he=E(te);if(!he)return null;let De=b.components[he.type];return{type:he.type,label:De?.label??he.type,fields:De?.fields??{},props:he.props??{}}},siteId:x,websiteName:T??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},$=B?.head?.(e,q)??null,le=gH({kind:v?.kind,pageName:v?.label}),pe=$?.name??(B?c(B.name):_?c(P(_.type)):le.name),ee=$?.kindLabel??(B?c(B.kindLabel):_?C&&C.zone!==R2?c("Block"):c("Section"):le.kindLabel),xe=B?B.icon:_?_.type:"page",oe=PS(e)&&_?Ri(_.type):null,ie=!!_&&!!C&&C.zone===R2&&_.type!==Le&&_.type!==Bte,ge=dm(F?.data,_),Re=()=>{ge||C&&g.duplicateComponent(C.zone,C.index)},$e=()=>{C&&(g.removeComponent(C.zone,C.index),g.select(null))},yo=_?b.components[_.type]?.defaultProps?.previewHover:void 0,oo=PS(e)&&!!_&&!!C&&yo!==void 0,io=oo&&_.props.previewHover===!0,So=()=>{!_||!C||g.replaceComponent(C.zone,C.index,{..._,props:{..._.props,previewHover:!io}})},{shown:Xe,setShown:bo}=Nte(),N=!!(B||_||R);return qr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Dte(Xe)}`.trim(),children:[be(vte,{icon:be(Ua,{type:xe,size:15}),name:pe,kind:ee,actions:!a&&PS(e)&&_&&_.type!==Le?qr(F2,{children:[be(B2,{label:c("Duplicate section"),title:ge??void 0,disabled:ge!==null,onClick:Re,children:be(Pte,{size:15})}),ie&&l.hasSiteSettings&&be(b2,{node:_,currentSlug:f,siteId:x??void 0,tokenRef:i,runAuthed:u,onNotify:n}),be(B2,{label:c("Remove section"),danger:!0,onClick:$e,children:be(Tte,{size:15})}),s?be(L2,{side:"right",onHide:s,divider:!0}):null]}):s?be(L2,{side:"right",onHide:s}):void 0}),oo&&qr("div",{className:"sf-preview-pin",children:[qr("div",{className:"sf-preview-pin-text",children:[be("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),be("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),be(Rte,{checked:io,onChange:So,ariaLabel:c("Preview hover state")})]}),qr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[B?B.render(e,q):_?qr(F2,{children:[_.type===Le&&l.hasSiteSettings&&be(E2,{}),be(iT,{children:be(At,{entries:be(w2,{parts:k,heading:!1,onOpen:te=>w($t(_.props.id,te))}),entryCount:wS(k).length,itemWord:pe})}),oe&&be(em,{source:oe,slug:vs(_?.props),menuId:Xu(_?.props)})]}):R?be(At,{omit:zx}):be(kte,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),N&&be(Lte,{shown:Xe,onChange:bo,label:c("Show hints")})]})]})}import{jsx as p,jsxs as A,Fragment as q2}from"react/jsx-runtime";var eo={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)"},ES="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:eo[t],flex:"none",...a}})}var jte={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},V={position:"absolute",inset:0},m={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},_e=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function ur({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 pm({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:m.muted},children:e})}function U2({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return A(q2,{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 _S({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",..._e(m.paper,m.paper2,150)},children:p(ur,{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 pr({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 Ce({title:e,children:o}){return A("div",{style:{...V,background:m.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(pm,{children:e}),o]})}function j2({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 AS({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 ji({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 Ye({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:m.muted,width:o,display:"block"},children:e})}function cm({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 G2({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 Gte={wheelslisting:p(Ce,{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",..._e(m.paper,m.paper2,150)},children:p(ur,{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",..._e(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(Ce,{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(Ce,{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(Ce,{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(pm,{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(ur,{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,..._e(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(Ce,{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(Ce,{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(Ce,{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%),${_e(m.ink,m.inkSoft2).background}`}}),p("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:m.onInk},children:e})]},e))})]})}),citymaps:p(Ce,{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,..._e(m.paper,m.paper2,150)}}),p(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:m.mark1,opacity:.75}}),p(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:m.rust}})]})]},e))})}),form:p(Ce,{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(cm,{label:"Name"}),p(cm,{label:"Email"})]}),p(cm,{label:"Message",filled:!0}),p(G2,{children:"SEND"})]})}),appointmentbooking:p(Ce,{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(Ce,{title:"Leave a review",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(AS,{filled:4,size:14}),p(cm,{label:"Your review",filled:!0}),p(G2,{children:"POST"})]})}),submitbuild:p(Ce,{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",..._e(m.ink,m.inkSoft2)},children:[p(ur,{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(Ye,{children:"Every failure starts in the same place:"}),p(Ye,{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(Ye,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(Ye,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(Ye,{w:"80%",children:"Width follows from the space left."})]}),series:p(Ce,{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(Ce,{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",..._e(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(Ye,{children:o})]},e))}),docmetacards:p(Ce,{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(Ye,{children:"Unfitted wheels come back within 30 days, no questions."}),p(Ye,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs: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(Ye,{children:"Forged, correctly offset, rated for what you actually"}),p(Ye,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:p(Ce,{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(ji,{n:"27k",label:"Rigs"}),p(ji,{n:"4.9",label:"Rating"})]}),A("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Ye,{children:"Twelve years of fitting the same three questions, and the"}),p(Ye,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:A(Ce,{title:"Load vs weight",children:[p("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>p("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?m.rust:m.mark1}},o))}),p("span",{style:{height:1,background:m.rule,marginTop:-4}})]}),mockup:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",..._e(m.inkSoft,m.ink)},children: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,..._e(m.paper,m.paper2,150)}}),p("span",{style:{height:3,width:"38%",borderRadius:1,background:m.rust}})]})]})}),manifesto:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",..._e(m.ink,m.ink2)},children: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(Ce,{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(Ye,{children:o})]})]},e))})}),timelinetrack:A("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"Milestones"}),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",..._e(m.paper,m.paper2,150)},children:[p("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:m.mark1,opacity:.75}}),p("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:m.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>p("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:m.rust}},e)),p("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:m.text},children:"3 fitting bays"})]}),banner: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",..._e(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:m.muted},children:"Back online in"}),p("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>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,..._e(m.ink,m.inkSoft2)}}),p(ur,{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(Ye,{children:"One shed, one lathe, one idea."}),p(Ye,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:p(Ce,{title:"Photo gallery",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.inkSoft,m.ink],[m.paper2,m.mark2],[m.ink,m.inkSoft2],[m.warm,m.paper2],[m.mark2,m.inkSoft]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,140+t*22)}},t))})}),gallery:A(Ce,{title:"Gallery",children:[p("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?m.text:m.muted,borderBottom:`1.5px solid ${o===0?m.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.ink,m.inkSoft],[m.paper2,m.mark2]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,150+t*20)}},t))})]}),ordersummary:A(Ce,{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",..._e(m.paper,m.paper2,150)},children:p(ur,{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(pr,{k:"Subtotal",v:"$1,956"}),p(pr,{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(Ce,{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(pm,{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",..._e(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"By the numbers"}),A("div",{style:{display:"flex",gap:8},children:[p(ji,{n:"27k",label:"Rigs fitted",tone:m.onInk}),p(ji,{n:"12",label:"Years",tone:m.onInk}),p(ji,{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(AS,{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(j2,{}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:A(Ce,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[m.inkSoft,m.inkSoft2],[m.rust,m.warm],[m.ink,m.inkSoft],[m.mark2,m.mark1]].map(([e,o],t)=>p("div",{style:{flex:1,borderRadius:3,..._e(e,o,140+t*15)}},t))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>A("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(j2,{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(AS,{filled:o})]}),p(Ye,{children:t})]})]},e))})]}),logos:A("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"As fitted by"}),p("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>p("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:m.onInk,opacity:.82},children:e},e))})]}),prose: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(Ye,{children:"he number on the back of your wheel decides whether the"}),p(Ye,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:p(Ce,{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(Ye,{children:o})]},e))})}),faq:p(Ce,{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(Ye,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:A("div",{style:{...V,overflow:"hidden",..._e(m.ink,m.ink2)},children:[p("div",{style:{...V,background:`linear-gradient(90deg,${m.scrim},transparent 70%)`}}),p("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:p(U2,{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(ur,{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(U2,{over:"ALL-TERRAIN",overTone:m.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:m.text,ctaFg:m.onInk,tone:m.text})}),p("div",{style:{flex:1,position:"relative",..._e(m.inkSoft,m.inkSoft2)},children:p(ur,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(Ce,{title:"Best sellers",children:A("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[p(_S,{name:"Ridge 19",price:"$365"}),p(_S,{name:"Ridge 29",price:"$410"}),p(_S,{name:"Ridge 39",price:"$455"})]})}),collections:p(Ce,{title:"Shop by category",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",m.inkSoft,m.inkSoft2],["Tyres",m.rust,m.warm],["Lift kits",m.ink,m.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:m.onInk,..._e(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:A("div",{style:{...V,display:"flex",background:m.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",..._e(m.paper,m.paper2,150)},children:p(ur,{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(Ce,{title:"Specifications",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(pr,{k:"Diameter",v:'20"'}),p(pr,{k:"Width",v:"9.0J"}),p(pr,{k:"Offset",v:"+12"}),p(pr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(Ce,{title:"Will it fit?",children:A("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(pr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(pr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(pr,{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(pm,{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,..._e(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))})},K2={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:eo.line,marginBottom:10}}),A("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${eo.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 ${eo.line}`,background:eo.block}}),p(j,{w:34,h:13,r:5,tone:"accent"})]})]}),A("div",{style:{flex:1,background:eo.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 ${eo.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:ES}}),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(q2,{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:eo.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:eo.block}},o))}),blanksection:p("div",{style:{...V,padding:14,display:"flex"},children:A("div",{style:{flex:1,border:`1px dashed ${eo.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:ES},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:ES}}),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 ${eo.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 ${eo.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[p("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${eo.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 ${eo.dark}`}}),p("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${eo.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 ${eo.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 ${eo.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:eo.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:eo.block}})};function V2({type:e}){let o=jte[e]??"",t=Gte[o]??K2[o]??K2.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 Sm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as Ts,jsxs as Y2}from"react/jsx-runtime";import Kte from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as qte}from"efficient-easel/rail";import{Tooltip as Vte}from"efficient-shell/ui";import{HintsToggle as Yte,hintsFoldClass as Xte}from"efficient-easel/panel";import{useHints as Zte}from"efficient-easel/screen/lib/hints";function X2({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Ln(),{shown:d,setShown:f}=Zte();return Y2("div",{className:`sf-styles ${Xte(d)}`.trim(),children:[Ts(Kte,{icon:Ts(qte,{}),title:c("Styles"),context:Ts(Vte,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Ts("span",{className:"sf-name-text",children:i})})}),Y2("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Ts(Nf,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Ts(Yte,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as so,jsxs as Ya,Fragment as tre}from"react/jsx-runtime";import{Fragment as l5,useEffect as i5,useRef as NS}from"react";import{useTreeDrag as d5}from"efficient-easel/drag";import{GlobeIcon as rre,ImageIcon as are,LocationIcon as nre,MapIcon as sre,TextLinesIcon as lre,TrashIcon as f5}from"efficient-easel/icons";import{Subtree as c5,TreeRow as Ki,TreeRowAction as p5,TreeSeam as u5}from"efficient-easel/tree";import{useEaselStrings as ire}from"efficient-easel/strings";import{isSelectionMode as dre}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Jte}from"react";var Qte={level:"groups"},J2=Qte,FS=new Set;function Bt(e){J2=e;for(let o of FS)o()}function ere(e){return FS.add(e),()=>{FS.delete(e)}}var Z2=()=>J2;function Q2(){return Jte(ere,Z2,Z2)}var Gi=e=>String(e?.group??""),BS=new WeakMap,ore=0;function um(e){let o=BS.get(e);return o||(o=`loc${++ore}`,BS.set(e,o)),o}var e5=(e,o)=>o||e||"Ungrouped",o5={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 Va(e){return Sd(e,Gi,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var LS=e=>e.flatMap(o=>o.cards),t5=(e,o,t)=>Math.min(Math.max(e,o),t);function mm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Gi(e[a])===o){if(r===t)return a;r++}return-1}function RS(e,o,t){let r=Va(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=t5(o<t?t-1:t,0,r.length);return r.splice(n,0,a),LS(r)}function DS(e,o,t,r,a){let n=Va(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&&BS.set(d,um(i));let f=t5(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),LS(n)}function r5(e,o){let t=Va(e),r=t.find(n=>n.key===o),a={...o5,group:o,groupName:r?.name??""};return r?(r.cards.push(a),LS(t)):[...e,a]}function a5(e){let o=new Set(Va(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...o5,group:r,groupName:""}],key:r}}function n5(e,o){return e.filter(t=>Gi(t)!==o)}function s5(e,o,t){let r=mm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function Y5e(e,o,t){let r=e.flatMap((s,l)=>Gi(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 X5e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Gi(n)===r);return a.length?a:t(r)})}var hm="ContactLocations",xm=e=>({parentId:`locations-${e}`,slot:"groups"}),MS=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function m5(e,o){let{readOnly:t,selected:r}=o,a=ire().tree,n=o.data?.content??[],s=dre(e),l=NS(null);i5(()=>{let T=r?.type===hm?String(r.props.id):null;T&&T!==l.current&&Bt({level:"groups"}),l.current=T},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:f}=ML(),x=Q2(),u=(T,g)=>{let w=n[T];w&&o.replace(T,{type:w.type,props:{...w.props,locations:g}})},h=T=>{let g=n[T]?.props?.locations;return Array.isArray(g)?g:[]},I=d5({keyOf:T=>`group:${T.si}:${T.index}`,readOnly:!!t,canDrop:(T,g)=>g.parentId===xm(T.si).parentId&&g.slot==="groups",onDrop:(T,g)=>{u(T.si,RS(h(T.si),T.index,g.index)),x.level==="city"&&Bt({level:"groups"})},onStep:(T,g)=>{u(T.si,RS(h(T.si),T.index,g<0?T.index-1:T.index+2)),x.level==="city"&&Bt({level:"groups"})}}),S=d5({keyOf:T=>`city:${T.si}:${T.group}:${T.index}`,readOnly:!!t,canDrop:(T,g)=>g.parentId===xm(T.si).parentId&&g.slot.startsWith("cities:"),onDrop:(T,g)=>{let w=g.slot.slice(7);u(T.si,DS(h(T.si),T.group,T.index,w,g.index)),Bt({level:"group",key:w})},onStep:(T,g)=>{u(T.si,DS(h(T.si),T.group,T.index,T.group,g<0?T.index-1:T.index+2)),x.level==="city"&&Bt({level:"group",key:T.group})}}),v=NS(n);v.current=n;let O=NS(()=>{});i5(()=>{f(T=>{let g=ou(T);if(!g)return;let w=v.current.findIndex(_=>_.props?.id===g.nodeId);w<0||O.current(w,{level:g.part,index:g.index})})},[f]);let R=(T,g)=>{l.current=n[T]?.props?.id??null,o.select(T),Bt(g),e.reveal();let w=n[T]?.props?.id;typeof w=="string"&&(g.level==="city"||g.level==="image"||g.level==="map")?d(eu(w,g.index,g.level)):d(null),typeof w=="string"&&o.scrollTo(w)};return O.current=R,{renderLocationTree:(T,g,{rowClick:w,isCollapsed:_,toggleCollapse:E})=>{let D=h(g),b=Va(D),F=String(T.props.id),y=s&&r?.props.id===F,k=C=>so(u5,{...t?{}:I.seam({place:{...xm(g),index:C}})},`seam:${F}:groups:${C}`),P=(C,B)=>so(u5,{...t?{}:S.seam({place:{...MS(g,C),index:B}})},`seam:${F}:cities:${C}:${B}`);return Ya(tre,{children:[so(Ki,{icon:so(lre,{size:13}),name:c("Texts"),words:a,onSelect:()=>R(g,{level:"texts"}),selected:y&&x.level==="texts",rowProps:{onClick:w(()=>R(g,{level:"texts"}))}}),b.map((C,B)=>{let H=`${F}::grp::${C.key}`,q=_(H),$=y&&x.level==="group"&&x.key===C.key,le=C.name||C.key?e5(C.key,C.name):c("Ungrouped"),pe={...MS(g,C.key),index:C.cards.length},ee=S.row({item:{si:g,group:C.key,index:-1},place:pe,into:pe,canDrag:!1},{onClick:w(()=>R(g,{level:"group",key:C.key}))}),xe=I.row({item:{si:g,index:B},place:{...xm(g),index:B}},ee.rowProps);return Ya(l5,{children:[B===0&&k(0),so(Ki,{icon:so(rre,{size:13}),name:le,words:a,onSelect:()=>R(g,{level:"group",key:C.key}),selected:$,draggable:xe.draggable,dragging:xe.dragging,drop:xe.drop??ee.drop,fold:{open:!q,label:c("group"),onToggle:()=>E(H)},actions:so(p5,{kind:"delete",label:Mt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",C.cards.length,{label:le}),onClick:()=>{u(g,n5(D,C.key)),Bt({level:"groups"})},children:so(f5,{size:15})}),rowProps:xe.rowProps,count:C.cards.length,countLabel:Mt("{n} city","{n} cities",C.cards.length)}),!q&&Ya(c5,{children:[C.cards.map((oe,ie)=>{let ge=mm(D,C.key,ie),Re=y&&x.level==="city"&&x.index===ge,$e=String(oe?.name??"")||c("City"),yo=`${F}::city::${um(oe)}`,oo=_(yo),{rowProps:io,...So}=S.row({item:{si:g,group:C.key,index:ie},place:{...MS(g,C.key),index:ie}},{onClick:w(()=>R(g,{level:"city",index:ge}))});return Ya(l5,{children:[ie===0&&P(C.key,0),so(Ki,{icon:so(nre,{size:13}),name:$e,words:a,onSelect:()=>R(g,{level:"city",index:ge}),selected:Re,...So,fold:{open:!oo,label:$e,onToggle:()=>E(yo)},actions:so(p5,{kind:"delete",label:c("Delete {name}",{name:$e}),onClick:()=>{u(g,s5(D,C.key,ie)),Bt({level:"group",key:C.key})},children:so(f5,{size:15})}),rowProps:io}),!oo&&Ya(c5,{children:[so(Ki,{icon:so(are,{size:13}),name:c("Image"),words:a,onSelect:()=>R(g,{level:"image",index:ge}),selected:y&&x.level==="image"&&x.index===ge,rowProps:{onClick:w(()=>R(g,{level:"image",index:ge}))}}),so(Ki,{icon:so(sre,{size:13}),name:c("Map"),words:a,onSelect:()=>R(g,{level:"map",index:ge}),selected:y&&x.level==="map"&&x.index===ge,rowProps:{onClick:w(()=>R(g,{level:"map",index:ge}))}})]}),P(C.key,ie+1)]},um(oe))}),Ya("button",{type:"button",className:"sf-add-card",onClick:()=>{let oe=r5(D,C.key);u(g,oe);let ie=Va(oe).find(ge=>ge.key===C.key);Bt(ie&&ie.cards.length?{level:"city",index:mm(oe,C.key,ie.cards.length-1)}:{level:"group",key:C.key})},children:[so("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),k(B+1)]},H)}),Ya("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:C,key:B}=a5(D);u(g,C),R(g,{level:"group",key:B})},children:[so("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:T=>{T?.type===hm&&Bt({level:"groups"})}}}import{useEffect as ure,useRef as mre}from"react";import{createNode as WS,newId as $S}from"efficient-easel/data";import{useEaselApi as xre}from"efficient-easel/easel";import{useScreenDocument as hre}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Ire}from"efficient-easel/screen/lib/session-context";import{useEffect as g5,useRef as fre}from"react";import{useEasel as cre}from"efficient-easel/easel";import{ROOT_ZONE as HS}from"efficient-easel/draw";var qi={};function x5(e){return qi={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},qi}function h5(e){qi===e&&(qi={})}function Os(){return qi}function I5(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 S5(e){let o=cre(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=ko(),i=fre(new Set);g5(()=>{let d=y5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&pre(h1(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),g5(()=>{let d=x5(y5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>h5(d)},[t,r,a,n,s,l])}function y5(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=I5({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 pre(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(HS,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(HS,r+1+l,s),o.replaceComponent(HS,r+1+l,s)}))}}import{ROOT_ZONE as Es,missingPinnedTypes as gre,pinnedDuplicateIds as zS}from"efficient-easel/draw";function b5(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function w5(e,o){let t=e.some(l=>l?.type===Je),r=e[e.length-1],a=!t&&r?.type===Le?r:null,n=e.filter(l=>l?.type===Le&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Go),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Ho)}}async function C5(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!==Ho||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Ho)?!1:(e.write(hf(r,t)),!0)}function k5(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=hre(),f=Ire(),{hasSiteSettings:x,hasPinnedChrome:u}=r;S5(e);let h=!!r.editsPinnedInPlace&&a!==Or,I=a===Or,S=xre().getState,v=mre(null);ure(()=>{if(!b5({docId:n,saveStatus:l,seededDocId:v.current})||(v.current=n,!u))return;let O=S().appState.data,R=O.content,T=s?.content??[],g=(D,b)=>D.some(F=>F?.type===b);if(!x){let D=new Set(zS(R)),b=D.size?R.filter(y=>!D.has(y.props.id)):R;if(D.size&&e.setDocument({...O,content:b}),I)return;let F=gre(b,T);if(F.includes(Le)){let y=b.length,k=e.insertSection(Le,y);e.replaceComponent(Es,y,{type:Le,props:{id:k,blocks:im()}})}F.includes(Go)&&e.insertNode(Es,0,lm());return}if(I){let D=lP(R);if(D!==R&&e.setDocument({...O,content:[...D]}),!D.find(b=>b.type===Le)&&!g(T,Le)&&!g(D,Je)&&!g(T,Je)){let b=(y,k)=>WS(o,y,k),F={type:Le,props:{blocks:im()}};e.insertNode(Es,D.length,ii(F,b,$S(Je),zi))}return}if(h){let D=!!t?.pinnedChrome?.state().docId,b=w5(R,{hasChromeDoc:D}),F=new Set([...b.remove,...zS(R.filter(k=>!b.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({...O,content:y}),b.seedFooter&&!g(T,Le)&&!g(T,Je)){let k=(C,B)=>WS(o,C,B),P={type:Le,props:{blocks:im()}};e.insertNode(Es,y.length,ii(P,k,$S(Je),zi))}if(b.seedHeader&&!g(T,Go)){let k=y[0]?.type===Ho?1:0;e.insertNode(Es,k,lm())}if(b.seedSiteHeader&&!g(T,Ho)&&!g(T,Le)&&!g(T,Je)){let k=n;C5({blocks:mn(f),make:(P,C)=>WS(o,P,C),id:$S(Ho),siteId:i??null,token:d.current,latest:()=>S().appState.data.content,stillOpen:()=>v.current===k,write:P=>{let C=S().appState.data;e.setDocument({...C,content:[...P]})}})}return}let w=R.filter(D=>D.type!==Le),_=new Set(zS(w)),E=_.size?w.filter(D=>!_.has(D.props.id)):w;E.length!==R.length&&e.setDocument({...O,content:E}),!g(E,Go)&&!g(T,Go)&&e.insertNode(Es,0,lm())},[n,l,s,S,e,x,u,I,h,t,f,i,d])}import{useEffect as L5,useMemo as vre,useRef as R5}from"react";import{useEasel as Pre}from"efficient-easel/easel";import{newId as Tre}from"efficient-easel/data";import{useEaselHost as Ore}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as yre}from"efficient-easel/screen/lib/host";import{isNode as T5}from"efficient-easel/data";function Vi(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function Sre(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function US(e,o,t,r){e.forEach((a,n)=>{if(T5(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Lt(a))US(a.props[s],a,s,r)}})}function bre(e){let o=[];US(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&US(t,null,"",o);return o}function O5(e,o){return bre(e).find(t=>String(t.node.props.id)===o)}function E5(e,o,t){if(!t)return null;let r=O5(o,t);if(!r)return null;let a=Vi(e,r.node.type),n=r.parent?`${Vi(e,r.parent.type)} \xB7 ${Sre(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var wre=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 Cre(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[yre]: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=wre(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=_5(l))}return r}function _5(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Cre(r);a&&(o[t]=a)}return o}function A5(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Vi(e,t),fields:_5(r.fields),...F5(t)?{retired:!0}:{}});return o}function F5(e){return co(fb,e)}function v5(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function kre(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 jS(e,o){return e.findIndex(t=>T5(t)&&String(t.props.id)===o)}function P5(e,o,t){let r=o||t;if(!r)return e.length;let a=jS(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function B5(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=O5(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=kre(f.node.props,l.path)??d(`there is no ${l.path} in that block`);Object.assign(x,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??d(`there is no block type ${l.type}`),F5(l.type)&&d(`${Vi(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=ps(l.type),x=Object.keys(l.props??{}).filter(h=>h!=="id");f&&x.length&&d(`${Vi(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=>v5(e,h),r,a):{type:l.type,props:{...v5(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(P5(s,l.after,l.before),0,u);break}case"remove_block":{let f=jS(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=jS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`);let[x]=s.splice(f,1);s.splice(P5(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 GS=e=>fo(e.requestId)??null;function D5(){let e=Ore(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Pre(u=>u),s=n,l=R5({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=R5(new Map),d=t?.props?.id,f=vre(()=>E5(s,o.data,d),[s,o.data,d]),x=f?JSON.stringify(f):"";L5(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,x]),L5(()=>e.subscribe(u=>{let{appState:h,dispatch:I,history:S,blockConfig:v}=l.current;switch(u.type){case"storefront-editor:request-document":{let O=GS(u);if(!O)return;e.send("storefront-editor:document",{requestId:O,document:h.data,blocks:A5(v)});return}case"storefront-editor:apply-page-edits":{let O=GS(u);if(!O)return;let R=Array.isArray(u.ops)?u.ops:[],T=R.length?B5(v,h.data,R,Tre,Os()):{ok:!1,reason:"no changes"};T.ok&&(I({type:"setData",data:T.document,recordHistory:!0}),i.current.set(O,JSON.stringify(T.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:O,applied:T.ok,reason:T.ok?null:T.reason});return}case"storefront-editor:undo-page-edits":{let O=GS(u);if(!O)return;let R=i.current.get(O),T=R!==void 0&&R===JSON.stringify(h.data.content??[]);T&&S.hasPast&&(S.back(),i.current.delete(O)),e.send("storefront-editor:page-edits-result",{requestId:O,applied:T&&S.hasPast,reason:T?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof u.shown=="boolean"&&I({type:"setUi",ui:{rightSideBarVisible:u.shown}});return;default:return}}),[e])}import{useEffect as H5,useState as W5}from"react";var Im=new Map;async function Ere(e,o){try{return(await Ao().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function N5(e,o){let t=Im.get(o);return t||(t=Ere(e,o),Im.set(o,t),t.catch(()=>{Im.get(o)===t&&Im.delete(o)})),t}var _re=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function KS(e){return!!e&&_re.test(e)}function M5(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===sT?"/":`/${encodeURIComponent(o)}`;if(!KS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function $5(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=W5(null),[s,l]=W5(null),i=pP();H5(()=>{try{l(new URL(uP()).hostname)}catch{l(null)}},[i]),H5(()=>{if(!KS(s)||!t||!r){n(null);return}let f=!1;return N5(r,t).then(x=>{f||n(x)}),()=>{f=!0}},[s,t,r]);let d=M5({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as Yi}from"react/jsx-runtime";import{useEffect as Are,useRef as z5,useState as Fre}from"react";import{ExternalIcon as U5}from"efficient-easel/icons";import{EaselIconButton as Bre}from"efficient-easel/chrome";import{Tooltip as Lre,iconButtonClasses as Rre}from"efficient-shell/ui";import{useSettledPress as Dre}from"efficient-easel/easel";import{useScreenDocument as Nre}from"efficient-easel/screen/components/ScreenDocumentContext";async function Mre({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 j5({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Nre(),a=z5(r);a.current=r;let n=Dre(),[s,l]=Fre(!1),i=z5(null);if(Are(()=>()=>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),Mre({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return Yi(Bre,{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:Yi(U5,{})})}return Yi(Lre,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:Yi("a",{className:Rre({className:"es-iconbtn"}),href:e,...kl,"aria-label":c("Preview the live site in a new tab"),children:Yi(U5,{})})})}import{createElement as Hre,useCallback as Wre,useEffect as G5,useRef as K5,useState as $re}from"react";import{ClockIcon as zre}from"efficient-shell/icons/efficient";import{useScreenDocument as Ure}from"efficient-easel/screen/components/ScreenDocumentContext";function q5(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Ure(),s=p2(c2(o??null),r),l=_u(Au()),i=n.siteLiveState;G5(()=>{if(i)return Bx(i),fa(0),()=>Bx(null)},[i]);let d=Ef(),[f,x]=$re(!1),u=K5(e);u.current=e;let h=K5(!0);G5(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=Wre(()=>{x(!0),a(u.current).then(()=>{Bu()}).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=hS({live:S,onPress:I,busy:f,goingLive:u2(d?.changes??[])});return n.siteVersions?{...v,menuItems:jre()}:v}return hS({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function jre(){return[{key:"version-history",label:c("Version history"),icon:Hre(zre),onSelect:vM}]}import{jsx as Q,jsxs as Xo,Fragment as Ji}from"react/jsx-runtime";import{useCallback as Gre,useEffect as Kre,useId as X5,useRef as qre,useState as gt}from"react";import{useSettledAction as Vre}from"efficient-easel/easel";import{Avatar as Yre,Banner as Xi,Button as Xa,ColoredBadge as qS,Dialog as YS,DropdownMenu as Xre,FormField as Z5,iconButtonClasses as Zre,Inline as VS,Input as Jre,ListRow as Qre,Select as eae,SortableList as oae,Stack as Zi}from"efficient-shell/ui";import{EditIcon as tae,EyeIcon as V5,MenuIcon as rae,MoreIcon as aae,PageIcon as J5,RevertIcon as Y5,StylesIcon as nae}from"efficient-shell/icons/efficient";import{useScreenDocument as Q5}from"efficient-easel/screen/components/ScreenDocumentContext";var sae={page:J5,menu:rae};function lae(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function iae(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 dae({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=X5();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,x=BM(e),u=d?c("Put your drafts back?"):o?c("Restore {page} from version {n}?",{page:o.name,n:f}):c("Restore version {n}?",{n:f}),h=d?c("Your drafts go back to how they were before the restore."):o?c("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):x?c("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:x}):c("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return Q(YS,{open:!0,onClose:()=>{r||n()},size:"sm",title:u,footer:Xo(Ji,{children:[Q(Xa,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),Q(Xa,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Xo(Zi,{gap:4,children:[o&&e.pages.length>1?Q(Z5,{label:c("Page"),htmlFor:i,children:Q(eae,{id:i,value:o.id,options:e.pages.map(S=>({value:S.id,label:S.name})),onChange:l,disabled:r})}):null,Q("p",{children:h}),Q("p",{children:c("Your live website does not change until you press Publish.")}),I>0?Q(Xi,{tone:"warning",children:Mt("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",I)}):null,t?Q(Xi,{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?Q(Xi,{tone:"danger",children:a}):null]})})}function fae({version:e,onCancel:o,onSave:t}){let r=X5(),[a,n]=gt(null),[s,l]=gt(""),[i,d]=gt(!1),[f,x]=gt(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 Q(YS,{open:!0,onClose:()=>{i||o()},size:"sm",title:c("Name this version"),footer:Xo(Ji,{children:[Q(Xa,{variant:"secondary",onClick:o,disabled:i,children:c("Cancel")}),Q(Xa,{onClick:()=>{h()},loading:i,disabled:i||u,children:c("Save")})]}),children:Q(Z5,{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:Q(Jre,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function cae({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:Q(V5,{}),onSelect:r}],...i?[{key:"restore",label:l?c("Put these drafts back"):c("Restore whole website"),icon:Q(Y5,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:Q(J5,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:Q(tae,{}),onSelect:s}]];return Q(Qre,{title:Xo("span",{className:"sf-version-title",children:[Q("span",{children:FM(e)}),e.live?Q(qS,{tone:"success",size:"xs",children:c("Live")}):null,e.name?Q(qS,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,l?Q(qS,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:Q(Xre,{align:"end","aria-label":c("More"),items:f,triggerClassName:Zre({variant:"ghost",size:"sm"}),trigger:Q(aae,{})}),below:Xo(Zi,{gap:3,children:[Xo(VS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[Q(Yre,{name:e.createdBy,size:"xs"}),Q("span",{children:e.createdBy}),Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:RM(e.createdAt)}),d?Xo(Ji,{children:[Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:Mt("{n} change","{n} changes",d)})]}):null]}),o?Xo(Zi,{gap:3,children:[d?Q(Zi,{gap:2,children:e.changes.map(x=>{let u=sae[x.kind]??nae;return Xo(VS,{gap:2,align:"center",children:[Q(u,{size:16}),Q("span",{children:LM(x)})]},`${x.kind}:${x.id}`)})}):null,Xo(VS,{gap:2,children:[l?null:Q(Xa,{variant:"secondary",size:"sm",leftIcon:Q(V5,{}),onClick:r,children:c("Preview")}),i?Q(Xa,{variant:"secondary",size:"sm",leftIcon:Q(Y5,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function pae({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=Q5(),[l,i]=gt(null),[d,f]=gt(!1),[x,u]=gt(null),[h,I]=gt(null),[S,v]=gt(!1),[O,R]=gt(null),[T,g]=gt(null),[w,_]=gt(!1),E=qre(0),D=Gre(()=>{let k=++E.current;f(!1),t.list().then(P=>{k===E.current&&i(P)},()=>{k===E.current&&f(!0)})},[t]);Kre(()=>{e&&D()},[e,D]);let b=k=>{_(!1),iae(t,k.id).catch(()=>_(!0))},F=async()=>{if(!(!h||S)){v(!0),R(null);try{await _M({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(k){R(k instanceof Ei?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=Vre({onPress:()=>{F()},busy:S});return Xo(Ji,{children:[Q(YS,{open:e,onClose:o,size:"xl",title:c("Version history"),description:Xo(Ji,{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:Q("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Xo(Zi,{gap:3,children:[w?Q(Xi,{tone:"danger",onDismiss:()=>_(!1),children:c("The preview did not open. Try again.")}):null,d?Q(Xi,{tone:"danger",action:Q(Xa,{variant:"secondary",size:"sm",onClick:D,children:c("Try again")}),children:c("Version history did not load.")}):l===null?Q("p",{className:"sf-version-foot",children:c("Loading versions")}):l.length===0?Q("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):Q(oae,{"aria-label":c("Versions"),spacing:"comfortable",children:l.map(k=>Q(cae,{version:k,expanded:x===k.id,onToggle:()=>u(P=>P===k.id?null:k.id),onPreview:()=>b(k),onRestore:()=>{R(null),I({version:k,page:null})},onRestorePage:()=>{R(null),I({version:k,page:lae(k,s)})},onName:()=>g(k)},k.id))})]})}),Q(dae,{version:h?.version??null,page:h?.page??null,waiting:r,busy:y.busy===!0,error:O,onCancel:()=>I(null),onConfirm:y.onPress,onPage:k=>I(P=>P&&{...P,page:P.version.pages.find(C=>C.id===k)??P.page})}),Q(fae,{version:T,onCancel:()=>g(null),onSave:async k=>{await t.name(T.id,k),g(null),D()}})]})}function e4(){let{adapter:e,hasUnsavedEdits:o}=Q5(),t=e.siteVersions,r=TM(),a=Ef();return t?Q(pae,{open:r,onClose:PM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as H4}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as j6e,categoryLabel as G6e,paletteWithoutPinned as K6e,pinnedSection as q6e}from"efficient-easel/screen/lib/document/palette-sections";var uae={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 o4(e){return z(uae,e)?.label}var t4=ub;function mae(e){let o=ru.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=aI.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:aI.sectionAccent}}}var xae={Hero:{[Yl]:{newChild:mae,childLabel:Qr.Ticker}}},r4=Object.fromEntries(Object.entries(i1).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...z(xae,e)?.[t]}]))]));function a4(e,o=0,t,r){let a=Iae(gae(e,o,r),t),n=a?Lg():null;return a&&n?hae(a,n):a}function hae(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 Iae(e,o){if(!e||e.source!=="container"||!o||!bw())return e;let t=Ed({data:o.data},o.id),r=typeof t?.type=="string"?kd(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 gae(e,o,t){let r=t?z(r4,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=z(it,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=dd(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=v2(e);return s?{source:"footer",slot:k2,choices:s,spec:null}:null}function n4(e,o=Td(e.type)){return Pd(e.type)?o.map(t=>{let r=kw(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as yae}from"react";var XS=null,ZS=new Set;function s4(e){if(XS!==e){XS=e;for(let o of ZS)o()}}function Sae(e){return ZS.add(e),()=>{ZS.delete(e)}}function hWe(){return yae(Sae,()=>XS,()=>null)}function l4(e){return _P(e)?.ownerId??null}function i4(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 bae}from"efficient-shell/format";var wae=["pages","sections","styles"],d4="sf-editor-left-view";function f4(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(d4);return bae(wae,"pages",e)}catch{return"pages"}}function c4(e){if(!(typeof window>"u"))try{window.localStorage.setItem(d4,e)}catch{}}function p4(e,o){return e==="styles"&&!o?"sections":e}function u4(e,o){return e?"sections":o}import{copyNode as Cae}from"efficient-easel/data";function m4(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=rr(),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 x4={usedOn:e=>{let o=rr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Pf()?.openPage(e),adopt:(e,o)=>rr()?.adopt(e.props.id,o),nodeOf:e=>rr()?.place(e)??null,detach:e=>{let o=Pf()?.config;return o?Cae(e,o):e},removed:()=>Pf()?.reload()};import{sharedSectionsOf as Xae}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Zae,scrollPreviewToTop as F4}from"efficient-easel/screen/lib/document/preview-dom";var kae=kf.mediaFields,vae=/video|poster|focal|phone/i;function Pae(e){return(z(kae,e)??[]).find(o=>!o.includes("[]")&&!vae.test(o))??null}function Tae(e){let o=Pae(e.type);return e.type!==K?o&&Od(e.type,e.props,o)?{fromData:!0}:o:Vk(e.props)?{fromData:!0}:o}var h4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:Tae,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var I4={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 gm}from"react/jsx-runtime";import{useState as Oae}from"react";import{Button as Eae,Tooltip as _ae,toast as g4}from"efficient-shell/ui";import{TemplateIcon as Aae}from"efficient-easel/icons";import{useSettledAction as Fae}from"efficient-easel/easel";import{useScreenDocument as Bae}from"efficient-easel/screen/components/ScreenDocumentContext";function S4({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=Bae(),[a,n]=Oae(!1),s=async()=>{if(!a){n(!0);try{await r()?t():g4.error(c(y4))}catch{g4.error(c(y4))}finally{n(!1)}}},l=Fae({onPress:()=>{s()},busy:a});return gm(_ae,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:gm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:gm(Eae,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:gm(Aae,{size:15}),children:c("Save as Template")})})})}var y4="Your last changes did not save, so the template was not made. Try again.";var Lae="Save your page changes first";function b4(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:Lae}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var w4="storefront-editor:save-as-template";import{phoneKey as Rae,tabletKey as Dae}from"efficient-easel/draw";var Nae=[po.top,Dae(po.top),Rae(po.top)],ym="ContactLocations",C4="ContactRouting",k4="CityPictures",v4="CityMaps",Mae=[{key:k4,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:v4,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function P4(e=Ta,o=VI){let t=db.find(r=>r.sections.some(a=>a.type===C4))?.key;return!e.includes(ym)||!t?[]:Mae.filter(r=>!(o&&r.key===k4)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:C4,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Rr(ym);if(!i)return null;let d=Os(),f=mi(ym,i,s)(l.nodeDefaults,l.newNodeId,d);if(!f||!(o&&r===v4))return f;let x=mi(ym,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 T4(e=Ta,o){return[...P4(e,o)]}function E4(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=ps(e);if(n)return n(o,t,Os());if(pw(e)&&a(K)&&a(fn)){let l=z(wt,e);return{type:K,props:{...o(K),id:t(K),direction:"column",name:`${r(e)} section`,content:[{type:fn,props:{...o(fn),id:t(fn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...Pl(e)!==Pl(fn)?{eyebrowLook:Pl(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...O4(e,t)}}]}}}if(z(it,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=O4(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function O4(e,o){return e==="Cards"?{template:iw(t=>o(t))}:e===dw?{template:fw(t=>o(t))}:{}}import{useEffect as Hae,useState as Wae}from"react";import{useEaselSession as $ae}from"efficient-easel/screen/lib/session-context";function _4(){let e=$ae().chrome?.products?.list,[o,t]=Wae(null);return Hae(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function W4({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=RL(),a=M4().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=_s(i=>{i&&(o({kind:"ticker",heroId:i}),Zae(i))},[o]);return qt(()=>{t(s)},[s,t]),qt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let f=String(i.props.id);return i.type==="Hero"&&nI(i.props)&&lo(D4,{icon:lo(Ua,{type:"ticker",size:13}),name:c(Na),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function $4({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=ju(),a=M4().tree,{appState:n,config:s}=N4(u=>u),l=zae({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=Ca.find(u=>jl[u]===i.kind),f=d&&"nodeId"in i?ka(String(i.nodeId),d):null,x=_s(u=>{let h=Vc(u);if(!h)return;let{data:I,config:S}=l.current,v=Vae(I,S,{kind:"node",id:h.nodeId});if(!v)return;let O={kind:jl[h.part],nodeId:h.nodeId};o({index:v.index,zone:v.zone},O)},[o]);return qt(()=>{t(f)},[f,t]),qt(()=>{r(x)},[r,x]),{partRows:(u,{rowClick:h})=>{let I=String(u.props.id),S=m_(u);if(S.length===0)return null;let v=T=>{let g=ka(I,T.part);return lo(D4,{icon:lo(Ua,{type:T.part==="media"?"heroMedia":"heroImage",size:13}),name:c(T.label),onSelect:()=>x(g),selected:f===g,rowProps:{onClick:h(()=>x(g))},words:a},g)},[O,...R]=S;return Qi(R4,{children:[v(O),R.length>0&&lo(qae,{children:R.map(v)})]})}}}function z4(e,o){return{partRows:(t,r)=>Qi(R4,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Jae(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=Sm(),{hasPreviewLink:f}=t,x=Ao(H4()).preview?.draftLink,u=q5(e.data),h=b4({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=_s(()=>{!a||!r||i(w4,{siteId:a,slug:r})},[i,a,r]),S=$5({pageSlug:r,siteId:a,token:d}),v=o.previewHref?.(r)??S;return{barLead:()=>h.visible&&lo(S4,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&lo(j5,{liveHref:v,pageId:n??null,draftLink:x}),mainAction:u}}function Qae(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=Sm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=T=>o.setView(T),[f,x]=A4(YT[0].id),[u,h]=A4(!1),{surface:I,setSurface:S}=IH(),v=()=>{if(l){d("styles"),o.reveal(),F4();return}e.show(OS),e.reveal(),F4()},O={id:"pages",label:c("Pages"),icon:lo(jae,{}),panel:({onHide:T})=>lo(lH,{activeSurface:I,onPreviewSurface:S,onNavigate:g=>{S(null),s(r?{kind:"template",id:r,pageSlug:g}:{kind:"page",slug:g,siteId:a??void 0})},onClose:T})},R=[];return!l&&i&&R.push({id:"appearance",label:c("Appearance"),icon:lo(Kae,{}),active:e.kind==="website",onSelect:v}),l&&R.push({id:"styles",label:c("Styles"),icon:lo(Gae,{}),panel:({onHide:T,notify:g})=>lo(X2,{tokenRef:n,siteId:a??void 0,onClose:T,onNotify:g,tab:f,onTabChange:x,revealPageGroup:u,onPageGroupRevealed:()=>h(!1)})}),{railLead:[O],railTrail:R,resolveLeftView:T=>p4(T,l),openSettings:v,openStyles:()=>{x(VT),d("styles")},openPageStyles:l?()=>{x(Df),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(M2),e.reveal()}:void 0}}function ene(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=Sm(),a=N4(s=>s.config),n=H4();qt(()=>(Fx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Fx(null)),[e,o,t,a]),qt(()=>{let s=rr();if(!s||!r)return;let l=!1;return Xae(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function U4(){let e=Mf();return _s(o=>{b0(o,e)},[e])}function one(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;qt(()=>{s4(s?.type==="BookingBox"&&s.props.region==="confirm"?l4(l(String(s.props.id))):null)},[s?.props.id]);let i=m5(e,o),{capabilities:{hasSiteSettings:d}}=Sm();ene();let{chat:f,setChat:x,setSelected:u,setSelectHandler:h}=Uu(),I=_s(()=>n(H2),[n]),S=a==="chat";qt(()=>{u(S)},[S,u]),qt(()=>{h(I)},[h,I]);let{setOpenHandler:v}=Ai(),O=_s(()=>n(W2),[n]);qt(()=>{v(O)},[v,O]);let R=z4(W4(e),$4(e)),T=Jae(o),g=Qae(e,r);QM(r);let w=t.device,_=U4();return{...R,...T,...g,hasOwnRows:E=>E.type===hm,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:_,wrap:E=>lo(Gx.Provider,{value:!0,children:Qi(Yae.Provider,{value:w,children:[E,lo(e4,{})]})}),addPanelRow:E=>d?Qi("div",{className:"sf-addside-sitewide",children:[lo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:lo(Ua,{type:"chat",size:16})}),Qi("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{E(),I()},children:[c("Live chat"),lo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),lo(Uae,{checked:f.enabled,onChange:D=>x({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var B4=null,JS=new WeakMap;function tne(e){let o=nC();if(!e||!o)return e;B4!==o&&(B4=o,JS=new WeakMap);let t=JS.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},JS.set(e,t)),t}var rne={isLockedBlock:(e,o)=>yu(e,o)||!!(o&&rr()?.heldElsewhere(o.props.id)),duplicateBlocked:dm,nestDepth:(e,o,t)=>o===Hd?Wd(e,t):0,newSectionNode:E4,canAddTo:(e,o,t,r)=>tne(a4(e,o,r,t)),blockIsOffered:PR,slotsOf:n4,resolveOnInsert:!0},ane=new Proxy(I4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),nne={labelAtLevel:(e,o,t)=>c(km(e,o,t)),descriptions:ane,categoryLabel:e=>{let o=o4(e);return o===void 0?void 0:c(o)},firstSection:t4,blockRowName:i4,rowName:Su,plainText:nn,Icon:Ua,Thumbnail:V2,useProducts:_4,presets:T4()},sne={desktop:2e3,tablet:800,mobile:390},L4="desktop",lne={options:uH,initial:L4,fluid:L4,fluidMin:Yb,widths:sne,hidesPerView:!0},ine={read:f4,write:e=>c4(e),forSelection:(e,o)=>u4(e,o)},dne={first:Go,last:Le,firstGroup:Ho,lastGroup:Je,isSectionGroup:aP,sectionGroupZone:nP,panelOf:e=>e===Go?N2:null,get sharedReach(){return pa()?cne:void 0},get shared(){return rr()?x4:void 0},get groupTab(){return pa()?P2:void 0},get groupBadge(){return pa()?CS({type:Je})??void 0:void 0},get changeNotice(){return pa()?T2():void 0},get band(){return pa()?fne:void 0},get groupAccepts(){return pa()?iP:void 0}},fne={foldable:!0},cne=e=>CS(e)??m4(e);function pne(e){return{...z4(W4(e),$4(e)),onCopyItem:U4(),openSettings:()=>e.show(OS)}}function une(e,o){k5(e,o),D5()}var T$e={useOwnerName:Ln,useDocumentLabel:P0,useBridges:one,useStandaloneBridges:pne,useDocumentPass:une,blockRules:rne,blockLook:nne,devices:lne,leftView:ine,pinned:dne,Canvas:HM,canvasDrag:{media:h4},Inspector:z2};export{_g as a,Ut as b,jt as c,Qe as d,Zme as e,lI as f,ZIe as g,di as h,fi as i,UA as j,jA as k,Ap as l,JIe as m,dG as n,GA as o,QIe as p,uR as q,MPe as r,mR as s,$Pe as t,Il as u,xa as v,fI as w,axe as x,lp as y,RO as z,DO as A,A1 as B,Y0 as C,vt as D,Jf as E,X0 as F,dh as G,ple as H,ule as I,mle as J,Z0 as K,xle as L,Qf as M,oO as N,yle as O,Sle as P,tO as Q,ble as R,Ble as S,Lle as T,iO as U,Yo as V,Hn as W,ao as X,Aa as Y,Y as Z,Zn as _,J as $,X as aa,ae as ba,ne as ca,fe as da,Mxe as ea,ce as fa,Qn as ga,es as ha,ei as ia,oi as ja,D1 as ka,zxe as la,jU as ma,N1 as na,Gxe as oa,Kxe as pa,M1 as qa,kh as ra,OO as sa,e3 as ta,Pl as ua,EO as va,Wie as wa,pI as xa,Xxe as ya,Zxe as za,Jxe as Aa,Qxe as Ba,ehe as Ca,ohe as Da,lie as Ea,wc as Fa,kl as Ga,iie as Ha,die as Ia,yO as Ja,yh as Ka,LW as La,RW as Ma,fie as Na,DW as Oa,cie as Pa,yE as Qa,ice as Ra,OE as Sa,dce as Ta,fce as Ua,cce as Va,hp as Wa,hI as Xa,z1 as Ya,Ip as Za,phe as _a,rj as $a,aj as ab,nj as bb,uhe as cb,Uo as db,Ra as eb,ns as fb,Qhe as gb,eIe as hb,oIe as ib,DE as jb,$c as kb,c$ as lb,yce as mb,CA as nb,kA as ob,vA as pb,SIe as qb,OA as rb,rge as sb,age as tb,Bp as ub,qA as vb,El as wb,FO as xb,BO as yb,Th as zb,ya as Ab,qO as Bb,kde as Cb,vde as Db,Pde as Eb,Bl as Fb,st as Gb,Bde as Hb,mie as Ib,Tie as Jb,bh as Kb,Oie as Lb,Ia as Mb,Cc as Nb,Ve as Ob,jde as Pb,QO as Qb,oE as Rb,tE as Sb,Lp as Tb,oF as Ub,Sge as Vb,Rp as Wb,tF as Xb,vge as Yb,uF as Zb,NG as _b,Wp as $b,Cye as ac,jc as bc,C$ as cc,Kh as dc,VG as ec,Mye as fc,HF as gc,WF as hc,Hye as ic,Wye as jc,Vx as kc,m6 as lc,Yx as mc,n0 as nc,oSe as oc,eB as pc,oB as qc,tB as rc,TSe as sc,HSe as tc,WSe as uc,$Se as vc,ig as wc,dB as xc,g8 as yc,y8 as zc,Up as Ac,jSe as Bc,GSe as Cc,gbe as Dc,AB as Ec,ybe as Fc,FB as Gc,bbe as Hc,HB as Ic,WB as Jc,Q8 as Kc,UB as Lc,Hbe as Mc,qp as Nc,Ybe as Oc,pi as Pc,Jbe as Qc,qB as Rc,ewe as Sc,VB as Tc,YB as Uc,rwe as Vc,vl as Wc,QW as Xc,cr as Yc,iwe as Zc,Vp as _c,pwe as $c,Xp as ad,Fie as bd,Bie as cd,ga as dd,Lie as ed,lh as fd,Zf as gd,B0 as hd,Ar as id,$l as jd,W$ as kd,Yh as ld,npe as md,zl as nd,z$ as od,spe as pd,fpe as qd,Ul as rd,Npe as sd,Mpe as td,Hpe as ud,Wpe as vd,X$ as wd,$pe as xd,Vc as yd,Gl as zd,Gpe as Ad,Qh as Bd,S_ as Cd,b_ as Dd,Xh as Ed,rz as Fd,Kpe as Gd,Yc as Hd,Kl as Id,Zc as Jd,qpe as Kd,Vpe as Ld,Xc as Md,Ype as Nd,Xpe as Od,v_ as Pd,ql as Qd,Vl as Rd,Qc as Sd,T_ as Td,Yn as Ud,O_ as Vd,ep as Wd,op as Xd,tp as Yd,E_ as Zd,__ as _d,A_ as $d,F_ as ae,B_ as be,W_ as ce,$_ as de,Tue as ee,Oue as fe,Eue as ge,_ue as he,Aue as ie,Pz as je,Tz as ke,Fue as le,Bue as me,Lue as ne,U_ as oe,Rue as pe,Due as qe,Nue as re,Mue as se,_z as te,Az as ue,Dz as ve,Mz as we,Hz as xe,Y_ as ye,Gz as ze,Z_ as Ae,J_ as Be,Lc as Ce,eU as De,pme as Ee,a1 as Fe,yme as Ge,Ame as He,Fme as Ie,Sfe as Je,Ll as Ke,vfe as Le,Pfe as Me,xE as Ne,xi as Oe,Kt as Pe,KR as Qe,du as Re,i0e as Se,d0e as Te,S0e as Ue,b0e as Ve,Fq as We,qg as Xe,oD as Ye,w0e as Ze,rD as _e,aD as $e,dD as af,Hq as bf,zq as cf,G0e as df,aOe as ef,nOe as ff,Si as gf,sOe as hf,lOe as if,Xg as jf,iOe as kf,Ske as lf,Dl as mf,Wh as nf,Hc as of,NOe as pf,Kn as qf,Mce as rf,Hce as sf,XE as tf,C9 as uf,rN as vf,Ci as wf,o_e as xf,r_e as yf,sy as zf,IN as Af,Qp as Bf,vke as Cf,Oke as Df,RL as Ef,Ig as Ff,DL as Gf,NL as Hf,Ake as If,ML as Jf,ou as Kf,Hke as Lf,WL as Mf,UL as Nf,$L as Of,tAe as Pf,rAe as Qf,aAe as Rf,Su as Sf,zN as Tf,hy as Uf,kAe as Vf,vAe as Wf,CX as Xf,kX as Yf,dFe as Zf,fFe as _f,cFe as $f,pFe as ag,Pu as bg,Tu as cg,DFe as dg,uM as eg,hM as fg,IM as gg,gM as hg,ELe as ig,ECe as jg,_u as kg,$u as lg,iH as mg,dH as ng,cH as og,zu as pg,lRe as qg,iRe as rg,Uu as sg,zJ as tg,gRe as ug,Ai as vg,wRe as wg,IH as xg,Rn as yg,c6 as zg,Bne as Ag,Lne as Bg,zHe as Cg,UHe as Dg,jHe as Eg,c1 as Fg,vRe as Gg,ju as Hg,Cne as Ig,x6 as Jg,h6 as Kg,I6 as Lg,i0 as Mg,Qne as Ng,qf as Og,M6 as Pg,H6 as Qg,Ose as Rg,hne as Sg,nW as Tg,IO as Ug,eie as Vg,oie as Wg,FW as Xg,tie as Yg,rie as Zg,bc as _g,aie as $g,jn as ah,nE as bh,sE as ch,IE as dh,rce as eh,RE as fh,xce as gh,NE as hh,qh as ih,P$ as jh,_$ as kh,Xce as lh,ICe as mh,LCe as nh,MCe as oh,IL as ph,UCe as qh,jCe as rh,tke as sh,rke as th,hke as uh,ui as vh,v7 as wh,gve as xh,Pve as yh,jve as zh,Gve as Ah,yPe as Bh,sR as Ch,Sne as Dh,iNe as Eh,PH as Fh,Le as Gh,im as Hh,Bt as Ih,Q2 as Jh,Gi as Kh,e5 as Lh,o5 as Mh,Y5e as Nh,X5e as Oh,N5 as Ph,KS as Qh,M5 as Rh,a4 as Sh,hWe as Th,T$e as Uh};