efficient-storefront-blocks 0.125.7 → 0.125.9

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 (27) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/chunks/{CustomHtmlCodeWindow-KAHNIUZO.js → CustomHtmlCodeWindow-ZSVS5DI6.js} +1 -1
  3. package/dist/chunks/{EditorPreviewCheckout-M5LLO3H2.js → EditorPreviewCheckout-NDZUORUC.js} +1 -1
  4. package/dist/chunks/SiteEditorProvider-CIZSA67M.js +1 -0
  5. package/dist/chunks/{chunk-UREPZPIT.js → chunk-3LWDFU5Y.js} +1 -1
  6. package/dist/chunks/{chunk-FD3ICZTF.js → chunk-HOKKFWPX.js} +1 -1
  7. package/dist/chunks/{chunk-L6MXM22Q.js → chunk-ICWPUDN3.js} +1 -1
  8. package/dist/chunks/{chunk-SQ6D33WV.js → chunk-R3WKYZOZ.js} +1 -1
  9. package/dist/chunks/{chunk-7ARO3R4C.js → chunk-RCOLM57Z.js} +1 -1
  10. package/dist/chunks/chunk-SPLS5ZLA.js +337 -0
  11. package/dist/chunks/{chunk-COR5IL6E.js → chunk-Y7DFVCVM.js} +1 -1
  12. package/dist/chunks/{chunk-4SIPG47B.js → chunk-YU4MIT6K.js} +1 -1
  13. package/dist/chunks/{fitment-data-BQFU5HN3.js → fitment-data-ANJWNG4T.js} +1 -1
  14. package/dist/chunks/{section-css-style-VF2FOE3B.js → section-css-style-7ROA6NKG.js} +1 -1
  15. package/dist/index.js +26 -26
  16. package/dist/render/built-with.json +1 -1
  17. package/dist/render/components/BoxHeaderBar.js +1 -1
  18. package/dist/routine-index.json +1 -1
  19. package/dist/value-index.json +1 -1
  20. package/package.json +2 -2
  21. package/dist/chunks/SiteEditorProvider-6P7LYLL2.js +0 -1
  22. package/dist/chunks/chunk-7SLHEYYR.js +0 -337
  23. /package/dist/chunks/{chunk-ECMYL3O7.js → chunk-3DDOV7FZ.js} +0 -0
  24. /package/dist/chunks/{chunk-UREPZPIT.js.LEGAL.txt → chunk-3LWDFU5Y.js.LEGAL.txt} +0 -0
  25. /package/dist/chunks/{chunk-SB3V6PTJ.js → chunk-RJM55KDO.js} +0 -0
  26. /package/dist/chunks/{chunk-7SLHEYYR.js.LEGAL.txt → chunk-SPLS5ZLA.js.LEGAL.txt} +0 -0
  27. /package/dist/chunks/{chunk-VYXOE5FY.js → chunk-SRHU2S3G.js} +0 -0
@@ -0,0 +1,337 @@
1
+ import{$ as af,D as Tk,E as Ok,F as Qd,G as Ek,H as Dk,I as kr,J as Nk,K as Mk,L as Hk,M as ot,N as ef,O as Co,P as de,R as of,S as vr,T as tf,X as Wk,Y as rf,Z as Pr,_ as $k,a as Go,b as Ys,ba as Jv,c as Ud,d as gn,e as Xs,f as nk,fa as dP,g as yn,h as jd,ha as fP,ia as Rf,ja as NT,ka as MT,r as tl,t as Pk}from"./chunk-ICWPUDN3.js";import{a as xP,d as gf,e as tt,f as yf,g as Sf,h as kf,l as Ux}from"./chunk-SRHU2S3G.js";import{$ as hn,$a as fx,$c as yx,$e as bf,$f as Pn,$h as pT,$j as An,A as wC,Aa as YC,Ab as bn,Ac as sv,Ad as Hv,Ae as Ct,Ah as cT,Aj as Rx,B as CC,Ba as XC,Bb as ol,Bc as Ut,Bd as Wv,Bf as EP,Bg as qP,C as Jo,Ca as ZC,Cc as Ue,Cd as $v,Ce as je,Cf as Tx,Cg as VP,Cj as On,D as kC,Da as JC,Dc as Tr,Dd as bx,De as kt,Df as _P,Dg as YP,Dj as bT,E as vC,Ea as QC,Eb as mx,Ec as Ix,Ed as zv,Ee as Oe,Ef as AP,Eg as XP,F as PC,Fa as ek,Fb as na,Fc as lv,Fd as wx,Fe as uP,Ff as FP,Fg as ZP,Fk as Bf,G as TC,Ga as br,Gb as Jd,Gc as iv,Gd as Uv,Gf as BP,Gg as _x,Gj as Dx,Gk as Lf,H as OC,Ha as ok,Hb as Ck,Hc as dv,Hd as jv,Hg as JP,Hj as fl,Hk as Wx,I as EC,Ib as kk,Ic as pf,Id as Gv,If as LP,Ig as Ax,Ik as BT,J as _C,Ja as tk,Jb as vk,Jc as al,Jd as jt,Je as Cx,Jg as ar,Jk as ua,Ka as Gd,Kb as nf,Kc as fv,Kd as Kv,Kg as Fx,Kj as En,Kk as LT,L as AC,La as Zs,Lb as jk,Lc as cv,Ld as da,Lg as Pf,Lk as RT,M as FC,Ma as Kd,Mb as sf,Mc as pv,Md as qv,Me as il,Mg as QP,Mj as wT,Mk as DT,N as BC,Na as sk,Nb as hx,Nc as uf,Nd as vn,Ng as eT,O as Nd,Ob as lf,Oc as uv,Og as oT,Ok as HT,P as LC,Pc as mv,Pd as tr,Pf as RP,Pg as tT,Pk as $x,Q as RC,Qc as gx,Qd as Vv,Qe as mP,Qf as DP,Qg as rT,Ra as lk,Rc as xv,Rd as ll,Re as kx,Rf as NP,Rk as WT,Sa as ik,Sc as kn,Sd as Yv,Se as hP,Sf as Ox,Sk as $T,Ta as Js,Tb as wn,Td as fa,Tf as MP,Tg as aT,Tk as zT,Uc as hv,Ud as Xv,Uf as HP,Ug as nT,Uj as CT,Uk as UT,V as rx,Va as Sn,Vc as Iv,Vf as Ex,Vj as Nx,Vk as jT,Wa as dk,Wb as Gk,Wc as gv,Wd as mf,Wj as kT,Wk as GT,X as Ks,Xa as qd,Xb as Kk,Xc as yv,Xd as Er,Xi as pa,Xj as vT,Y as Md,Ya as fk,Yb as qk,Yc as Sv,Yd as Zv,Z as Eo,Za as Qs,Zb as rl,Zc as sa,Ze as IP,Zf as rr,Zi as nr,Zj as Ff,_ as ax,_a as ck,_c as bv,_e as gP,_j as _n,a as Oo,aa as DC,ab as pk,ad as wv,af as yP,ah as Tf,ai as uT,ak as cl,b as un,ba as NC,bb as cx,bd as Cv,bf as vx,bg as WP,bk as Fn,ca as MC,cb as uk,cd as kv,cf as SP,cg as $P,ck as PT,d as aC,da as HC,db as px,dd as vv,df as bP,dg as vf,e as Qm,ea as WC,ed as Pv,ee as Qv,ef as wP,eg as _r,ej as _f,f as nC,fa as nx,fb as mk,fd as Or,ff as CP,fg as zP,g as c,gb as xk,gd as nl,gf as wf,gh as sT,gj as hT,h as Wt,ha as $C,hd as la,he as eP,hg as Tn,i as xn,ia as Hd,ib as Vd,ic as Cn,id as Tv,ie as oP,if as kP,ih as lT,j as js,jb as hk,jc as zt,je as tP,jk as TT,k as Ro,kb as Ik,kc as Vk,kd as ia,ki as mT,kk as OT,l as Gs,lb as gk,lc as Yk,ld as sl,lf as Px,li as xT,ll as zx,mb as yk,mc as Xk,md as Ov,n as uC,nb as Yd,nc as Zk,nd as Ev,o as mC,ob as Sk,oc as Jk,oe as Do,p as xC,pc as df,pd as _v,pe as Je,q as hC,qc as ff,qd as Av,qf as vP,qg as Ar,r as IC,rb as bk,rc as Qk,rd as Fv,re as xf,rf as PP,rg as UP,rk as Mx,s as gC,sb as wr,se as rP,sf as Cf,sg as jP,sh as Bx,sj as IT,t as yC,tb as Xd,tc as ev,td as Bv,te as aP,tf as TP,tg as GP,th as Of,tk as ET,tl as KT,u as Dd,ub as Zd,uc as ov,ud as Lv,ue as nP,uf as OP,uh as ca,uk as _T,ul as qT,v as Sr,va as GC,vb as wk,vc as tv,vd as Rv,ve as sP,vh as Ef,vj as gT,vk as AT,vl as Df,wa as KC,wb as po,wc as cf,wd as Dv,we as hf,wj as Af,wl as VT,x as tx,xa as qC,xb as ux,xc as rv,xd as Sx,xe as lP,xg as KP,xh as iT,xj as Lx,xk as FT,y as SC,ya as VC,yb as el,yc as av,yd as Nv,ye as iP,yh as dT,yj as yT,yl as Bn,z as bC,za as ix,zb as $t,zc as nv,zd as Mv,zh as fT,zj as ST,zk as Hx,zl as Nf}from"./chunk-RCOLM57Z.js";import{a as cC,b as Rd,c as pC,g as zk,h as xx,i as Uk}from"./chunk-Y7DFVCVM.js";import{$ as xb,$a as Db,$c as wo,$d as hw,$e as Ym,$g as ox,A as ro,Ae as Km,Af as Zm,B as on,Bb as Hs,Bd as jm,Be as Sw,Ca as Ie,Cb as Zb,D as Ds,Dd as cw,De as qm,E as ld,Ed as Sd,F as Dt,Fg as Xw,G as tn,Ga as Xo,Gb as Id,Gd as Zo,Gg as Zw,H as ze,Ha as St,Hc as rw,Hd as Lo,He as Cd,Hf as Lw,Hg as Jw,I as qe,Ia as vm,Id as Ze,Ie as kd,Ig as Qw,J as rn,Ja as Pm,Jc as Hm,Jd as Mt,Je as bw,Jh as dx,K as id,Kd as er,Ke as vd,Kf as or,Kh as In,L as ib,La as Tm,Lb as Jb,Ld as wt,Le as Pd,Lg as eC,Lh as rk,M as db,Ma as Om,Md as dn,Me as ww,Mh as Qo,Nd as pw,Ne as Cw,Nh as et,O as fb,Od as fn,Oe as Td,Og as oC,Oh as zd,P as dd,Pd as uw,Pe as Od,Pg as tC,Ph as ak,Q as cb,Qa as Em,Qb as gd,Qc as aw,Qe as aa,Qf as Rw,Qh as Vs,R as ea,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 ra,Tg as sC,Th as _k,U as Ns,Ua as _b,Ub as ew,Ud as mw,Ug as lC,V as Cm,Va as md,Vd as xw,Ve as vw,W as we,Wa as Ab,Wb as ow,Wd as cn,Wf as Dw,Wg as yr,X as K,Xa as Fb,Xc as U,Xd as $s,Xf as Nw,Xh as Ak,Y as mb,Ya as Bb,Yb as Dm,Yc as re,Yd as zs,Ye as Ht,Yf as Mw,Yg as iC,Za as Lb,Zc as Wm,Zd as Gm,Ze as Us,Zf as Hw,Zg as ex,_ as fd,_a as Rb,_c as L,_e as Vm,_g as dC,a as en,ab as Nb,ad as Jt,ae as Iw,af as Pw,ah as Ld,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 cd,cb as xd,cd as W,cf as Ed,cg as $w,ch as fC,ci as Fk,d as Xt,da as Ib,db as hd,dd as yd,de as yw,df as Ow,di as Cr,ea as gb,eb as Hb,ed as Bo,eg as zw,f as jo,fa as km,fb as Wb,fc as Nm,fd as sw,fe as bd,fg as Uw,fi as Bk,g as Rs,ga as yb,gd as bt,gf as Ew,gg as Fd,gi as Lk,h as eb,ha as Sb,hb as $b,hd as Nt,he as wd,hf as _d,hg as jw,hi as Rk,i as ob,ia as bb,ib as zb,id as $m,if as _w,ig as Bd,j as tb,jb as _m,jd as Ir,jf as Xm,jg as Jm,k as rb,kb as Ub,kd as Qt,kf as Aw,la as wb,lb as jb,ld as lw,lf as Fw,li as ko,ma as Cb,mb as Am,mf as Ad,mg as Gw,na as kb,nb as nn,nd as Fe,nf as pn,ng as Kw,o as ab,ob as oa,od as ta,of as mn,pa as vb,pb as Fm,pd as Ws,pf as gr,pi as dl,qb as Bm,qd as sn,qg as qw,qh as sx,ra as Pb,rb as Lm,rd as iw,rg as Vw,rh as Wd,s as nb,sa as pd,sb as Gb,sd as zm,sh as zC,ta as Tb,tb as Kb,td as ln,tf as Bw,th as lx,u as De,ua as ud,ub as qb,uc as Mm,ud as Um,ug as Yw,uh as UC,v as sb,vb as Rm,w as sd,wb as Vb,wc as tw,wh as $d,x as lb,xb as Zt,xh as jC,ya as Ms,yb as Yb,yd as dw,yh as qs,z as Pe,za as an,zb as Xb,zd as fw}from"./chunk-R3WKYZOZ.js";import{a as z,b as co}from"./chunk-RJM55KDO.js";import{c as cP,d as pP,e as If}from"./chunk-3DDOV7FZ.js";import{jsx as jx,Fragment as V4,jsxs as Y4}from"react/jsx-runtime";import{createContext as X4,useContext as Z4}from"react";var J4={mirrorHostStyles:!0,css:null,fontHrefs:[]},YT=X4(J4);function ine({value:e,children:o}){return jx(YT.Provider,{value:e,children:o})}function pl(){return Z4(YT)}function XT(){let{css:e,fontHrefs:o}=pl();return Y4(V4,{children:[o.map(t=>jx("link",{rel:"stylesheet",href:t},t)),e?jx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as Q4}from"react/jsx-runtime";import{createContext as e6,useContext as o6}from"react";var ZT=e6(void 0);function pne({metadata:e,children:o}){return Q4(ZT.Provider,{value:e,children:o})}var JT=()=>o6(ZT);import{jsx as lo,Fragment as L4,jsxs as ed}from"react/jsx-runtime";import{useCallback as Es,useEffect as Yt,useRef as Lae,useState as _4}from"react";import{SettingsSwitch as Rae}from"efficient-easel/panel";import{PagesIcon as Dae,StylesIcon as Nae}from"efficient-easel/rail";import{PaletteIcon as Mae}from"efficient-shell/icons/efficient";import{Subtree as Hae,TreeRow as R4}from"efficient-easel/tree";import{useEasel as D4}from"efficient-easel/easel";import{toItemSelector as Wae}from"efficient-easel/node-ops";import{useEaselStrings as N4}from"efficient-easel/strings";import{createContext as t6,useContext as r6}from"react";var Gx=t6(!1),xne=()=>r6(Gx);import{useMemo as a6,useRef as n6}from"react";import{useEaselApi as s6}from"efficient-easel/easel";import{useSectionOps as l6}from"efficient-easel/screen/lib/document/use-section-ops";function Mf(){let e=s6(),o=l6(),t=n6(o);return t.current=o,a6(()=>({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 O6}from"efficient-easel/draw";import{insertAt as E6,moveTo as _6,removeAt as A6}from"efficient-easel/fields";import{useSyncExternalStore as b6}from"react";import{isNodeList as QT}from"efficient-easel/data";var e0="Flex";function Ln(e,o){return Ht(e)?typeof e?.[jo]=="string"?Kx(o?.[jo]):"":Kx(e?.[jo])}var Kx=e=>typeof e=="string"?e.trim():"",i6=e=>e.type===ro&&Array.isArray(e.props?.[qm])&&e.props[qm].some(o=>Kx(o?.[jo])!==""),d6=new Intl.NumberFormat("en-US");function f6(e){return/^\d+$/.test(e)?d6.format(Number(e)):e}function vne(e,o){let t=o?o.find(r=>r.key===e)?.value:nb(Rs).find(r=>r.key===e)?.value;return t===void 0?null:f6(t)}var c6={[jo]:"any"};function qx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Ln(t)!==""||o&&Ln(t,c6)!==""),a=o||i6(e),n=qe(e,l=>ze(l,i=>{let d=qx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==e0)return{node:n===t?e:{...e,props:n},names:r};let s=De(n);if(r&&!s&&(n={...n,[to]:Rs}),!r&&s===Rs){let{[to]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function o0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of tn(r??{})){let n=o0(a,o,r.type===e0?r:t);if(n!==void 0)return n}}}function Pne(e,o){if(!QT(e))return!0;let t=o0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=De(t.props);return!r||r===Rs}function t0(e){let o=e?.content;if(!QT(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 r0(e){return qx(e).node}import{decodePartId as w6}from"efficient-easel/draw";function Rn(e,o){let t=ov(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?_T(t,o.index):null:tv(e)?.[o.rowKey]??null}function Hf(e,o,t){let r=e.node.props,{key:a,row:n}=zt(e.propKey),s=n?av(r,a,n,e.kind,o):ev(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as s0}from"efficient-easel/draw";import{parseOption as p6}from"efficient-shell/format";var Vx=e=>String(e+1).padStart(2,"0"),u6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Yx="two-digit",a0=e=>p6(u6,Yx,e),Wf=(e,o)=>e==="plain"?`${o+1}.`:Vx(o);var Jx="Contents",Xx="Flex",n0="Text",m6="numberForm",x6="_contentsEntries",h6="_kickerNumber",l0="data-sf-kicker-number",I6=e=>s0(e).text.trim(),i0=e=>fa(e?.anchor),Zx=e=>String(e.props?.id??""),g6=e=>!s0(e.props?.text).hidden&&!Ln(e.props)&&!Ht(e.props),ul=e=>tn(e);function d0(e){for(let o of ul(e))for(let t of o){if(tr(t.props??{}))continue;if(t.type===n0&&g6(t))return t;if(t.type===n0)continue;let r=d0(t);if(r)return r}}function f0(e){return ul(e).some(o=>o.some(t=>t&&!tr(t.props??{})&&(t.type===Jx||f0(t))))}var c0=e=>e.type===Xx&&Pn(Xx,e.props?.direction)==="row";function p0(e){return ul(e).some(o=>o.some(t=>t&&!tr(t.props??{})&&(t.type===Jx||!c0(t)&&p0(t))))}function y6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||tr(n.props??{}))continue;if(n.type===Jx){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(c0(n)&&p0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of ul(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Xx&&i0(n.props)&&s&&!f0(n)){s.push({box:n,kicker:d0(n)});continue}for(let l of ul(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function S6(e){return e.map(o=>({label:o.kicker?an(I6(o.kicker.props?.text)):"",anchor:i0(o.box.props)}))}function Qx(e){let o=e?.length?y6(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,S6(a.sections));let s=a0(a.contents.props?.[m6]);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 Gne=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function u0(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,[x6]:x},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[h6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var C6=`[${l0}]`,k6=["bold","italic","underline","strike","link","sup","sub"],v6=["bullet","number"];function th(e,o){return e?[...k6,...o?v6:[]]:[]}function m0(e,o){let t=w6(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}=zt(a),d=o.components[n.type]?.fields?.[l],f=i?Rn(d,i):d,x=df(f);if(!x)return null;let u=n.props??{};if(pT(u)!==null||!i&&Ed(n.type,u,l)||n.type==="Text"&&l==="text"&&Ln(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:Jk(f)}}function $f(e,o){let t=m0(e,o);if(!t)return null;let{text:r,hidden:a}=pa(t.stored);if(!mv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=ff(t.kind);return{partId:e,value:r,rules:pd,multiline:n,skip:C6,offered:th(t.kind!=="plainText",n),write:s=>{let l=m0(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 x0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var eh=null,oh=new Set;function P6(){return eh}function ah(e){if(e!==eh){eh=e;for(let o of oh)o()}}function T6(e){return oh.add(e),()=>{oh.delete(e)}}function h0(){return b6(T6,P6,()=>null)}function I0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=ww(t.type);return!r||De(t.props)?null:{node:t,rows:r}}function F6(e,o){let t=I0(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:O6(e.ownerId,Cn(t.rows,{index:e.index,rowKey:a}))}function Uf(e,o){let t=F6(e,o);return t?$f(t,o):null}function g0(e,o){return Uf(e,o)?.value}function y0(e,o){let t=Uf(e,o);return t?(t.write(e.text),!0):!1}function S0(e,o){let t=I0(e,o),r=t&&o.getSelectorForId(e.ownerId);if(!t||!r)return!1;let a=t.node.props,n=a[t.rows],s=e.index;if(!Array.isArray(n)||s<0||s>=n.length)return!1;let l;switch(e.action){case"addAfter":{let i=o.components[t.node.type]?.fields?.[t.rows];l=E6(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=_6(n,s,i);break}case"delete":l=A6(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as ve,Fragment as VZ,jsxs as Mu}from"react/jsx-runtime";import{Fragment as YZ,useEffect as QM,useMemo as eH,useRef as XZ,useState as za}from"react";import{useScreenDocument as nH}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Ny}from"efficient-easel/draw/client";import ZZ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as JZ}from"efficient-easel/chrome";import{Input as QZ,LoadingSpinner as eJ,PopupMenu as oJ,PopupMenuItem as oH,toast as tH}from"efficient-shell/ui";import{LayersTree as tJ,TreeGroupLabel as rJ,TreeRow as rH,TreeRowAction as Hu}from"efficient-easel/tree";import{AddIcon as aJ,DuplicateIcon as nJ,PageIcon as sJ,SettingsIcon as lJ}from"efficient-easel/icons";import{PagesIcon as iJ}from"efficient-easel/rail";import{useEaselHost as dJ}from"efficient-easel/screen/lib/host";import{useEaselSession as My}from"efficient-easel/screen/lib/session-context";import{useCallback as jf,useEffect as B6,useSyncExternalStore as L6}from"react";import{useScreenDocument as k0}from"efficient-easel/screen/components/ScreenDocumentContext";var b0=new WeakMap;function ml(e){let o=b0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},b0.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 w0(e){let o=ml(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 C0=()=>null,R6=()=>()=>{};function xl(){let{adapter:e,ready:o}=k0(),t=jf(l=>{let{listeners:i}=ml(e);return i.add(l),()=>i.delete(l)},[e]),r=jf(()=>ml(e).rows,[e]),a=L6(o?t:R6,o?r:C0,C0);B6(()=>{if(!o)return;let l=ml(e);l.rows===null&&!l.loading&&w0(e)},[e,o]);let n=jf(()=>o?w0(e):Promise.resolve(),[e,o]),s=jf(l=>nh(ml(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function D6(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function v0(){let{currentSlug:e}=k0(),{rows:o}=xl();return D6(o,e)}import{canDuplicatePage as fJ,DuplicatePageDialog as cJ}from"efficient-easel/page-copy";import{jsx as To,jsxs as GM}from"react/jsx-runtime";import{useEffect as AZ,useId as FZ,useMemo as BZ,useRef as LZ,useState as Ly}from"react";import{useScreenDocument as RZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as DZ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as KM}from"efficient-easel/page-copy";import{AddIcon as NZ}from"efficient-easel/icons";import{Button as MZ,Dialog as HZ,EmptyState as WZ,LoadingSpinner as $Z,Paragraph as zZ,SidebarLayout as UZ,SidebarNavItem as Ry,Title as jZ,toast as qM}from"efficient-shell/ui";import{jsx as Tt,jsxs as fR}from"react/jsx-runtime";import{useEffect as R7,useState as Og}from"react";import{CanvasFrame as D7}from"efficient-easel/easel";import{Button as N7,Card as M7,FitFrame as H7,Text as W7}from"efficient-shell/ui";import{jsx as _0,Fragment as V6,jsxs as Y6}from"react/jsx-runtime";import{useEffect as A0,useLayoutEffect as X6}from"react";var qf="data-theme",P0="light";function N6(e){return e.getAttribute(qf)===P0?"light":"dark"}function M6(e,o){return N6(e)===o?!1:(o==="light"?e.setAttribute(qf,P0):e.removeAttribute(qf),!0)}function H6(e){return Ux(e).getItem(Zm)}function Sse(e,o){Ux(e).setItem(Zm,o)}function W6(e,o,t=new Date().getHours()){return Lw({mode:o.mode,override:H6(e),switchShown:o.switchShown,hour:t})}function T0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>M6(t,W6(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[qf]}),()=>n.disconnect()}var $6="style";function z6(e,o){let t=Bd(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 O0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>z6(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[$6]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as U6,VIEW_TABLET_MIN as j6}from"efficient-easel/screen/lib/content/view-tiers";var sr={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},Ko=sr,G6=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),K6=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(G6([Ko.fit,Ko.fitTablet,Ko.fitPhone]))};
8
+ var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
9
+ var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Zt};
10
+ var TABLET_MIN = ${j6}, DESKTOP_MIN = ${U6};
11
+
12
+ // A block's own answer (lib/content/block-size, the wrapper's attributes):
13
+ // the fit "wrap" | "shrink" | "line" | "ellipsis" and the floor, each with a tablet and a
14
+ // phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
15
+ // in a Box, marked edge; 720 outside one) the tablet's where it has one;
16
+ // under it the phone's, else the tablet's, else the desktop's. With no
17
+ // tablet answer the phone's is read under 800, as before (the edge moves with
18
+ // F1). With none, a heading shrinks and body text wraps, as always.
19
+ // A holder with any tablet attribute takes the three views (its line and 1100)
20
+ // for its fit AND its floor together; one with none keeps the 800 edge.
21
+ var TABLET_ATTRS = [${JSON.stringify(Ko.fitTablet)}, ${JSON.stringify(Ko.minTablet)}];
22
+ function own(el, attr, tabletAttr, phoneAttr) {
23
+ var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
24
+ if (!holder) return null;
25
+ var w = win.innerWidth, d = holder.getAttribute(attr);
26
+ if (w >= DESKTOP_MIN) return d;
27
+ var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
28
+ if (w < (holder.hasAttribute(${JSON.stringify(Ko.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
29
+ if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
30
+ return (w < PHONE_BELOW && p) || d;
31
+ }
32
+ function modeOf(el) {
33
+ var mode = own(el, ${JSON.stringify(Ko.fit)}, ${JSON.stringify(Ko.fitTablet)}, ${JSON.stringify(Ko.fitPhone)});
34
+ if (mode === "wrap" || mode === "shrink") return mode;
35
+ // One line and Shorten (stored "ellipsis", which cuts its words with "..."):
36
+ // the block keeps its words at their set size, nothing shrinks.
37
+ if (mode === "line" || mode === "ellipsis") return "wrap";
38
+ return el.matches(SELECTOR) ? "shrink" : "wrap";
39
+ }
40
+ function floorOf(el, set) {
41
+ var raw = own(el, ${JSON.stringify(Ko.min)}, ${JSON.stringify(Ko.minTablet)}, ${JSON.stringify(Ko.minPhone)});
42
+ var min = parseFloat(raw);
43
+ // A Min font size in vw (block-size.ts): a share of the window's width.
44
+ if (/vw$/.test(String(raw))) min = min * win.innerWidth / 100;
45
+ return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
46
+ }
47
+
48
+ function measure(el) {
49
+ var widest = 0, current = 0, last = null, split = false, lastBlock = null;
50
+ function blockOf(n) {
51
+ for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
52
+ var d = win.getComputedStyle(p).display;
53
+ if (d.indexOf("inline") !== 0 && d !== "contents") return p;
54
+ }
55
+ return el;
56
+ }
57
+ function close() { if (current > widest) widest = current; current = 0; last = null; }
58
+ var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
59
+ while ((node = walker.nextNode())) {
60
+ if (node.nodeType === 1) {
61
+ if (node.tagName === "BR" || node.tagName === "WBR") close();
62
+ continue;
63
+ }
64
+ var block = blockOf(node);
65
+ if (block !== lastBlock) close();
66
+ lastBlock = block;
67
+ var re = /(\S+)|(\s+)/g, m;
68
+ while ((m = re.exec(node.data))) {
69
+ if (m[2]) { close(); continue; }
70
+ range.setStart(node, m.index);
71
+ range.setEnd(node, m.index + m[0].length);
72
+ var rects = range.getClientRects();
73
+ for (var i = 0; i < rects.length; i++) {
74
+ var r = rects[i];
75
+ if (r.width <= 0) continue;
76
+ current += r.width;
77
+ if (last && r.top > last.top + last.height / 2) split = true;
78
+ last = r;
79
+ }
80
+ }
81
+ }
82
+ close();
83
+ return { widest: widest, split: split };
84
+ }
85
+
86
+ function lineWidth(el) {
87
+ var cs = win.getComputedStyle(el);
88
+ return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
89
+ - parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
90
+ }
91
+
92
+ // ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
93
+ // runs before React hydrates, and React 19 in development reports ANY
94
+ // attribute that differs from what it rendered ("a tree hydrated but some
95
+ // attributes didn't match"): first our inline font-size on the hero (which
96
+ // React owns via --heading-size), then, when that moved to a data-sf-fit
97
+ // attribute, the attribute itself. So the fitted size lives only in this
98
+ // script's own stylesheet, in <head>, addressed to each heading by its
99
+ // POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
100
+ // structure changes, so the rules are rewritten in the MutationObserver
101
+ // callback, which runs before the next paint. !important so the size also
102
+ // beats a part's own inline size.
103
+ var head = doc.head || doc.documentElement;
104
+ var fitEl = doc.createElement("style");
105
+ fitEl.id = "storefront-fit-words-sizes";
106
+ head.appendChild(fitEl);
107
+ // heading -> [[element, fitted size]]: the heading and each Text part inside
108
+ // it that holds its own size (a span [data-sf-part-styled]), e.g.
109
+ // [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
110
+ // a part at its own size, and the word still breaks (card C25, Spec Table).
111
+ var fitted = new Map();
112
+
113
+ function pathOf(el) {
114
+ var parts = [];
115
+ for (var e = el; e && e.parentElement; e = e.parentElement) {
116
+ var i = 1, s = e;
117
+ while ((s = s.previousElementSibling)) i++;
118
+ parts.unshift("*:nth-child(" + i + ")");
119
+ }
120
+ return ":root>" + parts.join(">");
121
+ }
122
+ function writeRules() {
123
+ var css = "";
124
+ fitted.forEach(function (sizes, el) {
125
+ if (!el.isConnected) { fitted.delete(el); return; }
126
+ for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
127
+ });
128
+ if (fitEl.textContent !== css) fitEl.textContent = css;
129
+ }
130
+
131
+ function unfit(el) {
132
+ if (fitted.delete(el)) writeRules();
133
+ }
134
+
135
+ function fits(el) {
136
+ var m = measure(el);
137
+ return !m.split && m.widest <= lineWidth(el) + SLACK;
138
+ }
139
+
140
+ function fit(el) {
141
+ unfit(el);
142
+ if (modeOf(el) !== "shrink") return; // the block's own Wrap
143
+ if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
144
+ if (fits(el)) return;
145
+ var set = parseFloat(win.getComputedStyle(el).fontSize);
146
+ if (!set) return;
147
+ var floor = floorOf(el, set);
148
+ if (floor >= set) return;
149
+ function size(px) { return Math.floor(px * 10) / 10 + "px"; }
150
+ // The SEARCH tries sizes on the element's own style and then puts that
151
+ // attribute back byte for byte (or removes it, if it had none), so nothing
152
+ // is left for React to see. A trial in a stylesheet instead restyles the
153
+ // whole page per step: a full pass on the Hartes home took 75–160ms at 4x
154
+ // CPU that way.
155
+ // Every trial scales the heading AND each part inside it that holds its
156
+ // own size, by the same ratio, so a part keeps its proportion to the
157
+ // heading.
158
+ var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
159
+ var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
160
+ var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
161
+ function attempt(px) {
162
+ for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
163
+ }
164
+ function done() {
165
+ for (var i = 0; i < carriers.length; i++) {
166
+ if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
167
+ }
168
+ }
169
+ attempt(floor);
170
+ if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
171
+ var lo = floor, hi = set;
172
+ for (var i = 0; i < 8; i++) {
173
+ var mid = (lo + hi) / 2;
174
+ attempt(mid);
175
+ if (fits(el)) lo = mid; else hi = mid;
176
+ }
177
+ done();
178
+ fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
179
+ writeRules();
180
+ }
181
+
182
+ // What each heading measured right after we last fitted it, so the
183
+ // ResizeObserver below can tell a real change (a font swap, a rotate, a
184
+ // container that moved) from the size change our own write just caused.
185
+ var seen = new WeakMap();
186
+ function remember(el) {
187
+ var b = el.getBoundingClientRect();
188
+ seen.set(el, b.width + "x" + b.height);
189
+ }
190
+ function fitAndRemember(el) { fit(el); remember(el); }
191
+
192
+ // ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
193
+ // WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
194
+ // fitted heading, and fonts.ready resolves only after that frame is painted —
195
+ // measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
196
+ // reported here is fitted in the same frame, so the broken state is never
197
+ // drawn. It also covers a container that resizes.
198
+ var ro = new win.ResizeObserver(function (entries) {
199
+ for (var i = 0; i < entries.length; i++) {
200
+ var el = entries[i].target;
201
+ var b = el.getBoundingClientRect();
202
+ if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
203
+ fitAndRemember(el);
204
+ }
205
+ });
206
+ // Its own set, not seen: fitAndRemember has written seen by the
207
+ // time watch runs, so a seen test observed no heading at all, and a
208
+ // heading fitted in the fallback face was never fitted again when the web
209
+ // font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
210
+ var watched = new WeakSet();
211
+ function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
212
+
213
+ function fitAll() {
214
+ var els = doc.querySelectorAll(CANDIDATES);
215
+ for (var i = 0; i < els.length; i++) {
216
+ if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
217
+ else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
218
+ }
219
+ }
220
+
221
+ var queued = 0, all = false, touched = new Set();
222
+ function run() {
223
+ queued = 0;
224
+ if (all) { all = false; touched.clear(); fitAll(); return; }
225
+ var els = Array.from(touched);
226
+ touched.clear();
227
+ for (var i = 0; i < els.length; i++) {
228
+ if (!els[i].isConnected) continue;
229
+ if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
230
+ else unfit(els[i]);
231
+ }
232
+ }
233
+ function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
234
+ function scheduleAll() { all = true; schedule(); }
235
+
236
+ fitAll();
237
+ // A backstop only: a font that changes widths without changing any
238
+ // heading's box is not seen by the ResizeObserver.
239
+ if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
240
+
241
+ // …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
242
+ // heading sized to its own text (fit-content, a flex item) keeps the SAME box
243
+ // when the phone turns to 844, so nothing reports a change and it would stay
244
+ // shrunk. The probe's rotate check caught exactly that.
245
+ var lastWidth = win.innerWidth;
246
+ function onResize() {
247
+ if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
248
+ lastWidth = win.innerWidth;
249
+ scheduleAll();
250
+ }
251
+ win.addEventListener("resize", onResize);
252
+
253
+ var mo = new win.MutationObserver(function (records) {
254
+ // Positions first: a node added or removed anywhere can shift the
255
+ // nth-child path of a fitted heading, and this callback runs before paint.
256
+ if (fitted.size) {
257
+ for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
258
+ }
259
+ for (var i = 0; i < records.length; i++) {
260
+ var r = records[i];
261
+ // A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
262
+ // only a data-fit attribute moved, so every heading is measured again.
263
+ if (r.type === "attributes") { scheduleAll(); continue; }
264
+ var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
265
+ var owner = target && target.closest(CANDIDATES);
266
+ if (owner) touched.add(owner);
267
+ for (var j = 0; j < r.addedNodes.length; j++) {
268
+ var n = r.addedNodes[j];
269
+ if (n.nodeType !== 1) continue;
270
+ if (n.matches(CANDIDATES)) touched.add(n);
271
+ var inner = n.querySelectorAll(CANDIDATES);
272
+ for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
273
+ }
274
+ }
275
+ if (touched.size) schedule();
276
+ });
277
+ mo.observe(doc.body, {
278
+ childList: true,
279
+ subtree: true,
280
+ characterData: true,
281
+ attributes: true,
282
+ attributeFilter: ${JSON.stringify(Object.values(Ko))},
283
+ });
284
+
285
+ doc.__sfFitWords = function stop() {
286
+ win.removeEventListener("resize", onResize);
287
+ ro.disconnect();
288
+ mo.disconnect();
289
+ if (queued) win.cancelAnimationFrame(queued);
290
+ fitted.clear();
291
+ fitEl.remove();
292
+ delete doc.__sfFitWords;
293
+ };
294
+ // For the probe and for debugging: which headings are fitted, at what size,
295
+ // and the sheet that holds it (disable it to read a heading's set size).
296
+ doc.__sfFitWords.fitted = fitted;
297
+ doc.__sfFitWords.sheet = fitEl;
298
+ // …and the two questions a block's own answer changes, for the guard
299
+ // (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
300
+ doc.__sfFitWords.modeOf = modeOf;
301
+ doc.__sfFitWords.floorOf = floorOf;
302
+ })(document);`,q6="storefront-fit-words";function E0(e){let o=e.createElement("script");return o.id=q6,o.textContent=K6,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var Z6=`
303
+ [${Ue}][${Ue}] { cursor: text; }
304
+ `;function Vf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ko(),n=or(t);return A0(()=>{if(o)return T0(o,{mode:r,switchShown:a})},[o,r,a]),A0(()=>{if(o)return O0(o,n)},[o,n]),X6(()=>{if(o)return E0(o)},[o]),Y6(V6,{children:[_0(XT,{}),_0("style",{children:Z6}),e]})}import{jsx as iL}from"react/jsx-runtime";import{memo as gK}from"react";import{Render as yK}from"efficient-easel/render";import{jsx as Dn}from"react/jsx-runtime";import{createContext as J6,useContext as Q6,useMemo as eW}from"react";var sh=J6(null);function oW({children:e}){return Dn(sh.Provider,{value:"first",children:e})}function Xf({children:e}){return Dn(sh.Provider,{value:"below",children:e})}function hl(){return Q6(sh)}function lh(){return hl()==="below"?{loading:"lazy"}:{}}function Zf(e){let o=lh();return Dn("img",{...e,...o})}var F0="laterSlideIds",tW=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function B0(e){return bf(e?.filter(o=>!o?.type||!tW.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 L0(e,o){let t=o?.type,r=o?.props?.id;return eW(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Dn(oW,{children:Dn(n,{...l})}):Dn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function R0(e){return e.props?qe(e,o=>{let t=ze(o,R0),r=e.type===jC&&t.every(a=>a.type===Wd)?zC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function D0(e){return id(e,o=>ze(o,R0))}var rW="Flex",N0="ListSearch",M0=["FAQ"],aW="listKey";function H0(e,o){let t={search:e.type===N0,list:M0.includes(String(e.type))};return qe(e,r=>{for(let a of r){let n=H0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===rW&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function W0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=qe(e,n=>ze(n,s=>W0(s,o,r)));return r&&(e.type===N0||M0.includes(String(e.type)))?{...a,props:{...a.props,[aW]:r}}:a}function $0(e){return rn(e,o=>{let t=new Set;for(let r of o)H0(r,t);return t.size?ze(o,r=>W0(r,t,"")):o})}import{isNode as p$,isNodeList as ME}from"efficient-easel/data";import{jsx as _e,Fragment as e$,jsxs as fr}from"react/jsx-runtime";import{jsx as xh}from"react/jsx-runtime";import{Fragment as fW,jsx as cW}from"react/jsx-runtime";import{jsx as ih}from"react/jsx-runtime";import{createContext as lW,Fragment as iW,useContext as dW}from"react";import{jsx as z0,jsxs as nW}from"react/jsx-runtime";import{lazy as sW}from"react";var U0=sW(()=>import("./section-css-style-7ROA6NKG.js"));function j0({css:e,id:o,attr:t}){return z0(U0,{css:e,id:o,attr:t})}var G0={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,[Rd]:""};let o=e.render;e.render=t=>{let r=pC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):nW(Pr,{className:"sf-section-css",attrs:{[cC]:a},children:[z0(U0,{css:r,id:a}),o(t)]})}}};var K0=lW(null);function q0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=kk(t),a=ih(iW,{children:o},"page");return ih(K0.Provider,{value:t,children:r?[ih(j0,{css:r,id:Ck,attr:Jd},"css"),a]:a})}function V0(){return dW(K0)}function vt(){return Dd(V0())===yC}function Jf({className:e,children:o}){let t=vt();return cW(fW,{children:o(Jo(e,t))})}import{SITE_SIDE as pW}from"efficient-easel/screen/lib/content/length-units";var Y0="sideSpace",Il=pW,dh="none",ale=[{value:"box",label:"Box"},{value:Il,label:"Site"},{value:dh,label:"None"}],nle="box",sle="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 X0(e){return e===Il||e===dh?e:"box"}function lle(e){return e===Il||e===dh?e:void 0}import{parseOption as ph}from"efficient-shell/format";var Qf="standard",eO=[{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"],Z0={standard:["eyebrowLook"],editorial:[...ch,"eyebrowLook"],simple:fh,statement:fh,natural:ch,essay:fh},J0=["gap-5","gap-3"],Q0=["text-[length:var(--size-body,16px)]","text-[15px]"];function cle(e){return ph(J0,J0[0],e)}function ple(e){return ph(Q0,Q0[0],e)}function oO(e){return ph(eO,Qf,e)}function ule(e){let o=eO.map(r=>r.value),t=[...new Set(Object.values(Z0).flat())];return Zo(e,t.map(r=>[[r],Sd("headStyle",o,Qf,o.filter(a=>!Z0[a].includes(r)))]))}import{readHidable as uW,VIEW_TIERS as mW,viewKeyAt as xW}from"efficient-easel/draw";var ma={direction:"row",share:"content",align:"center"},xa={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}},tO={gap:120,gapPhone:64},oc={...Bo,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},rO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},gl={top:24,bottom:24,topPhone:16,bottomPhone:16},ha={top:16,bottom:16,topPhone:12,bottomPhone:12},yl={justify:"between",wrap:"wrap",gap:32,separator:"none"},Sl={...Bo,letterSpacing:.1,lineHeight:1.5};var tc={top:24,bottom:24,topPhone:24,bottomPhone:24},rc={top:72,bottom:72,topPhone:72,bottomPhone:72},Nn={top:100,bottom:100,topPhone:60,bottomPhone:60},ac={top:120,bottom:120,topPhone:70,bottomPhone:70},hW={top:24,bottom:24,topPhone:24,bottomPhone:24},IW=40,nc={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},gW={top:24,bottom:24,topPhone:24,bottomPhone:24},sc={top:24,bottom:24,topPhone:24,bottomPhone:24},yW={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},wl={top:80,bottom:40,topPhone:60,bottomPhone:32},Cl={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},kl=e=>{let o=Ie(e.bandPadding)??IW;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},aO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),uh=e=>fn(e.headPlacement)==="own-box",Be=(e,o)=>({top:aO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:aO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),nO=e=>({top:e.topPhone,bottom:e.bottomPhone}),bl=e=>o=>uh(o)?{top:0,bottom:e.bottom}:e,SW=(e,o)=>{let t=uW(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},gc={Banner:{frame:()=>Be(tc)},Cards:{frame:bl(Be(rc))},Chart:{frame:()=>Be(Cl)},ContactLocations:{frame:()=>Be(Nn,nO(Nn))},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=>SW(e,r)),t=Be(ac);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Be(cc)},Grid:{frame:()=>Be(hW)},Integrations:{frame:()=>Be(pc)},KeyFeatures:{frame:()=>Be(uc)},Logos:{frame:e=>uh(e)?0:Be(kl(e))},LongRead:{frame:bl(Be(nc))},Masthead:{frame:()=>Be(wl,nO(wl))},Mockup:{frame:()=>Be(Cl)},OrderSummary:{frame:()=>Be(gW)},PaymentBadges:{frame:()=>Be(sc)},Prose:{frame:bl(Be(mc))},SectionHeader:{frame:e=>{let o=Be(xc);return oO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:bl(Be(hc))},Stats:{frame:()=>Be(Ic)},Testimonials:{frame:bl(Be(yW))},Ticker:{frame:()=>Be(xa),edge:!0}};function vle(e,o,t){let r=z(gc,e)??t;return r?na({values:el(o,po,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var sO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function bW(e,o){let t={...e};for(let r of mW)delete t[xW(o,r)];return t}function Ple(e,o,t,r){let a=z(gc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=el(o,po,!0),l=(i,d)=>na({values:bW(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:sO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:sO(n,"bottom")})}}var wW=/^(?:[^\s]*:)?p[ytb]-/;function lO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!wW.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 CW}from"efficient-easel/data";var mh=new Set(["FAQ"]);function qo(e,o){if(!mh.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:CW(t)}var fO={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}},cO=new Set(Object.keys(fO));function hh(e,o){return o?.innerPadding??z(fO,e)}var Mn=e=>hh(e)??{};var yc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),kW=new Set(["Divider"]),vW=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),iO=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={...el(n,po,t),sideSpace:X0(n.sideSpace)},l=r?na({values:s,frame:r(n)},!0).outer:Sk(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=Cr(n,{atSectionLine:!0}),x=Cr(n);return f===x?d(f):xh(of,{line:"by-box",draw:u=>d(u?x:f)})}}var pO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!vW.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:wr,unitKey:Xd,fallback:r,tablet:!0,siteSide:!0})};return}if(iO.has(o))return;let a=[wr.top,wr.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=dO(o,e);if(n){mO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!hh(o,e)){if(iO.has(o)){Ih(e);return}yc.has(o)||kW.has(o)||Ih(e,o==="Flex"?t=>Gk(t.bgImage):mh.has(o)?t=>qo(o,t):void 0,!0,dO(o,e))}}},PW=["Heading","Text","ImageBlock","ButtonBlock"],TW=["LogoBlock"],uO={Text:e=>Or(e,"text").textStyle?.startsWith("heading-")?ol.heading:ol.text,Heading:()=>ol.heading,ButtonBlock:()=>ol.text,Breadcrumb:()=>mx(gl),SpecStrip:()=>mx(ha),...Object.fromEntries(Object.entries(gc).map(([e,o])=>[e,o.frame]))};function dO(e,o){return z(uO,e)??o?.ownPad?.frame}var OW={ButtonBlock:"Outer padding"};function EW(e,o){let t=e[$t],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=bn().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{[$t]:s,...l}=e;return n.length?{...l,[$t]:n}:l}function _W(e,o,t){if(o<=0)return null;let r=Array.isArray(e[$t])?e[$t]:[];return(t?bn().filter(a=>a.startsWith(po[t])):bn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function mO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,_W,z(OW,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?EW(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var xO={name:"blockPadding",applies:(e,o,t)=>(PW.includes(e)||TW.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(uO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}mO(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 hO=gh(null);function Kle(){return Sc(hO)===!0}function qle(){return Sc(hO)!==null}var AW=gh(!1);function Vle(){return Sc(AW)}function Yle(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 Xle(){return Sc(bc)}import{jsx as Ia}from"react/jsx-runtime";import{Component as HW,createContext as WW,lazy as pie,Suspense as uie,useContext as $W,useSyncExternalStore as zW}from"react";function FW(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 Qle(e){return e.startsWith("/")||wc(e)}function wc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var vl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function IO(e,o){return FW(e,o)?{...vl}:{}}function eie(e){return typeof e=="string"?e.trim():""}var oie="data-sf-box-link",gO="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",BW="data-sf-box-jump";function LW(e){return`sf-box-jump-${e}`}function tie(e,o){return e===!0?fa(o):""}function RW({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 rie(e){let o=`[${BW}="${e}"]`,t=`.${LW(e)}`,r=`[id="${e}"]:target`;return RW({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 DW="hrefRewrite";function NW(){return en("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function MW(){return typeof process<"u"&&!0}function sie(e){let o=e?.[DW];return typeof o=="string"?o.trim():""}function yO(e){if(!e)return null;let o=NW(),t=o.rewrites.get(e);return!t&&!MW()&&o.missed.add(e),t??null}var UW={Link:fP,Image:dP},SO=WW(UW);function yie({runtime:e,children:o}){return Ia(SO.Provider,{value:e,children:o})}function bh(){return $W(SO)}function Sie(){return bh().pagePath??null}var jW=()=>()=>{},GW=()=>If()||null,KW=()=>null;function qW(){return zW(jW,GW,KW)}function ga({hrefRewrite:e,newTab:o,...t}){let{Link:r}=bh(),a=qW(),n=o===!0?{...t,...vl}:o==="auto"?{...t,...IO(t.href,a)}:t,s=yO(e);return s?Ia(Sh,{name:s.name,href:n.href,fallback:Ia(r,{...n}),children:Ia(VW,{Link:r,rewrite:s.rewrite,...n})},s.key):Ia(r,{...n})}function VW({Link:e,rewrite:o,...t}){let r=fo(o(t.href)),a=r&&Pb(r)?r:t.href;return Ia(e,{...t,href:a})}var Sh=class extends HW{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 Ia(o,{...e})}import{jsx as U3}from"react/jsx-runtime";import{jsx as ye,jsxs as vo,Fragment as H3}from"react/jsx-runtime";import{imageCopyUrl as wO,imageSrcSet as YW}from"efficient-shell/image-copies";var bO;function wh(){return bO===void 0?{}:{host:bO}}var kie="(max-width: 800px) 100vw, min(100vw, 1600px)",vie="(max-width: 960px) 100vw, 50vw";function ya(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=YW(e,{...wh(),...t===void 0?{}:{maxWidth:t}});return r?{src:wO(e,o,wh()),srcSet:r}:{src:e}}var XW=/[\s"'()\\;]/;function Pie(e){let o=wO(e,1920,wh());return o===e?XW.test(e)?`url("${xx(e)}")`:`url(${e})`:`url("${xx(o)}")`}import{parseOption as ZW}from"efficient-shell/format";var Pl="solid",JW=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function CO(e){return ZW(JW,Pl,e)}var Ch="sf-secnum-outline",kO="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",vO=`@supports (-webkit-text-stroke: 1px currentColor){.${Ch}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as PO}from"efficient-shell/format";var kh="plain",TO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],QW="line",e3={KeyFeatures:"filled"};function Tl(e){return z(e3,e)??kh}function OO(e,o){return PO(TO,Tl(o),e)}function Fie(e){return PO(TO,QW,e)}import{jsxs as wa,jsx as Ne}from"react/jsx-runtime";import{Fragment as Rh}from"react";import{Fragment as v3,jsx as Fh}from"react/jsx-runtime";import{Fragment as $O,jsx as Fl,jsxs as g3}from"react/jsx-runtime";import{createContext as Ah,useContext as Bl,useEffect as y3,useId as S3,useMemo as b3,useRef as w3}from"react";import{armEntrance as C3}from"efficient-shell/format";import{jsx as o3}from"react/jsx-runtime";import{useEffect as _O,useRef as EO,useState as t3}from"react";import{armEntrance as r3,entranceAttrs as a3,playEntrance as n3}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=EO(null),d=rf(),f=ot(),x=n?f:kr,u=Ol(i,!0,s),{attrs:h,style:I}=a3(e[u]),S=EO(Hn.seed(e)),v=JSON.stringify(e);return _O(()=>{let O=i.current;if(O){if(o){let R=Hn.next(S.current,e,u);S.current=R.seen,R.play&&n3(O);return}return r3(O)}},[v,u,o]),x.scope(o3("div",{ref:i,className:Co(`${gn}${d.fill}${t?` ${t}`:""}`,x.className),...r,...x.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:d.inner(l)}))}var Hn={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Hn.seed(o);return{play:r[t]!==e[t],seen:r}}};function Ol(e,o=!0,t=!1){return El(e,o,t)??"desktop"}function El(e,o=!0,t=!1){let[r,a]=t3(void 0),n=vr(t?"edge":"by-box"),{phone:s,tablet:l}=Uv(n);return _O(()=>{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 _l="@name",AO="@body",FO="@value",BO={[_l]:"Name",[AO]:"Body",[FO]:"Value"},s3={TimelineTrack:{"entries.date":_l,"entries.title":_l,"entries.blurb":AO},Footprint:{"offices.city":_l},Stats:{"items.label":_l,"items.value":FO}};function l3(e){let{key:o,row:t}=zt(e);return t?`${o}.${t.rowKey}`:null}function lr(e,o){if(!e)return o;let t=l3(o);return t?z(s3,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as u3,entranceAttrs as m3,scrollAttrs as x3}from"efficient-shell/format";import{parseFocal as f3,formatFocal as c3,readScroll as p3}from"efficient-shell/format";import{phoneKey as i3,tabletKey as d3}from"efficient-easel/screen/lib/content/view-tiers";var vh=[{block:"HeroSlide",upload:"mediaImage",focus:Zs.image},{block:"HeroSlide",upload:"mediaImage2",focus:Zs.image2},{block:"HeroSingle",upload:"mediaImage",focus:Zs.image},{block:"HeroSingle",upload:"mediaImage2",focus:Zs.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],LO=e=>[e,d3(e),i3(e)],qie=[...new Set(vh.flatMap(e=>LO(e.focus)))].sort();function RO(e,o){let[t,r,a]=LO(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"},Wn="_gScroll",vc="_cScroll",Pc=zd(Object.values(uo));function ir(e,o){return p3(Vs(e,uo.effect,o),Vs(e,uo.zoom,o),Vs(e,uo.start,o),Vs(e,uo.end,o))}function $n(e){let o={desktop:ir(e,"desktop"),tablet:ir(e,"tablet"),phone:ir(e,"phone")};return Qo.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}=f3(a);return c3(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function DO(e,o){return Ph(RO(e,o))}var Tc={},Th="_partMotion",Oh=[...Ud,Xo,Ge.duration,Ge.delay,...Pc];function MO(e){return hv(e,Th)}function Sa(e,o){return Iv(e,Th,o)}var h3=new Set([Go.kind,Xo,uo.effect]);function HO(e,o,t,r){let{[t]:a,...n}=Sa(e,o),s=r==null||r===""||r==="none"&&h3.has(t)?n:{...n,[t]:r};return gv(e,Th,o,Object.keys(s).length?s:null)}function Al(e){return{entrance:yn(e),hover:Ob(e),scroll:$n(e)}}function WO(e){let o=Al(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Oc(e,o){let{attrs:t,style:r}=m3(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(u3)}}function Ec(e,o){let{attrs:t,style:r}=x3(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 I3=4;function zn(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&I3)&&(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(gn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var ba="data-sf-part-lift",NO="sf-part-lift";function Ac(e){if(e.getElementById(NO))return;let o=e.createElement("style");o.id=NO,o.textContent=vv(`[${ba}]`).join(`
317
+ `),e.head.appendChild(o)}var Fc=Ah(null),UO=Ah(null),jO=Ah(null);function GO({needles:e,styles:o,motions:t=Tc,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=S3(),i=vr(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),f=Ct(),x=b3(()=>{let h=Object.keys(t).filter(I=>WO(t[I]));return zv(e,o,l,I=>lr(r,I),I=>sl(r,I),I=>h.includes(I)?Al(t[I]):null,h,I=>ia(n,I),f)},[d,f]);if(!x)return Fl($O,{children:s});let u=jv(x,{inBox:i});return g3($O,{children:[u&&Fl("style",{href:`${k3}${l}-${Uk(u)}`,precedence:qO,dangerouslySetInnerHTML:{__html:zk(u)}}),Fl(Fc.Provider,{value:x,children:s})]})}var _h=new WeakMap;function zO(e,o){let t=zn(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:zn(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(ba,"")):e.removeAttribute(ba)}function KO(e){let o=w3(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Ol(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 y3(()=>{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=C3(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),zO(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,zO(f,u),u.length||_h.delete(f))}},[i,a]),o}var qO="sf-part-styles",k3=`${qO}-`;function VO(e){let o=Bl(Fc),t=Bl(UO),r=Gv(o,e);return r&&r.stamp!==t?r:null}function hde(e){return wx(Bl(Fc),e)}function YO({stamp:e,children:o}){return Fl(UO.Provider,{value:e,children:o})}function Ide({children:e}){let o=Bl(Fc);return Fl(jO.Provider,{value:o,children:e})}function gde(e){return wx(Bl(jO),e)}function Ll({value:e,children:o}){let t=VO(e),r=KO(t);return t?Fh(YO,{stamp:t.stamp,children:Fh("span",{ref:r,[Sv]:t.stamp,...t.textStyle?{[sa]:t.textStyle}:{},children:o})}):Fh(v3,{children:o})}import{jsx as Bh,Fragment as P3}from"react/jsx-runtime";function XO({className:e}){return Bh("span",{className:e||void 0,children:"\xAE"})}function rt(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((r,a)=>{r&&t.push(r),a<o.length-1&&t.push(Bh(XO,{},`r${a}`))}),Bh(P3,{children:t})}var vde=XO;function Ve(e,o=!1,t){let r=B3(o),a=ud(e);if(a.length===1){let[s]=a,l=Tb(s),i=l?A3(l,s.children):s.children;return wa(Ll,{value:e,children:[t,Bc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(Ne("span",{"data-sf-bullet":"",className:T3,children:Bc(s.children,r)},l));return}if(s.number!=null){n.push(wa("span",{"data-sf-number":s.number,className:O3,children:[wa("span",{className:E3,children:[s.number,"."]}),Bc(s.children,r)]},l));return}l>0&&!_3(a[l-1])&&n.push(Ne("br",{},`br${l}`)),n.push(Ne(Rh,{children:Bc(s.children,r)},l))}),wa(Ll,{value:e,children:[t,n]})}var T3="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",O3="relative block pl-[2em]",E3="absolute left-0 w-[1.6em] text-right tabular-nums";function _3(e){return e.bullet||e.number!=null}var ZO="text-accent underline underline-offset-[0.18em]";function A3(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function F3(e){return jk(e)||void 0}function Bc(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(Ne("span",{children:rt(a.text)},n)),r=!0;return}r||t.push(Ne("span",{},`e${n}`)),t.push(QO(a,n,o)),r=!1}),r||t.push(Ne("span",{},"end")),t}function Lh(e,o){return e.length===1&&e[0].kind==="text"?rt(e[0].text):e.map((t,r)=>t.kind==="text"?Ne(Rh,{children:rt(t.text)},r):QO(t,r,o))}function B3(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function Dde(e){return JO(e)}function JO(e,o){let t=e.split(`
318
+ `);return wa(Ll,{value:e,children:[o,t.map((r,a)=>wa(Rh,{children:[a>0?Ne("br",{}):null,Ne("span",{children:r})]},a))]})}function QO(e,o,t){if(e.kind==="link")return wc(e.href)?Ne(ga,{newTab:"auto",href:e.href,className:ZO,children:Lh(e.children,t)},o):Ne("a",{href:e.href,className:ZO,children:Lh(e.children,t)},o);let r=Lh(e.children,t),a=Cb[e.kind];if(a)return Ne("span",{[kb]:a,children:r},o);switch(e.kind){case"underline":return Ne("u",{children:r},o);case"sup":return Ne("sup",{children:r},o);case"sub":return Ne("sub",{children:r},o);case"color":{let n=F3(e.color);return n?Ne("span",{style:{color:n},children:r},o):Ne("span",{children:r},o)}case"accent":case"highlight":return Ne("em",{className:t,children:r},o);case"bold":return Ne("strong",{className:"font-semibold",children:r},o);case"italic":return Ne("em",{className:"italic",children:r},o);case"strike":return Ne("s",{className:"line-through",children:r},o);default:return Ne("span",{children:r},o)}}function eE(e,o=!0,t=!1){let r=e.split(`
319
+ `);return Ne(Ll,{value:e,children:r.map((a,n)=>wa("span",{children:[t?JO(a):Ve(a,o),n<r.length-1?Ne("br",{}):null]},n))})}function oE(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Dh,jsxs as R3}from"react/jsx-runtime";import{jsx as L3}from"react/jsx-runtime";function tE(){return L3("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 D3(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var N3=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Nh.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,M3=`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 Un({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let l=ot(),i=s?l:kr;if(o==="line")return i.scope(R3("div",{className:Co([a,M3,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Dh(tE,{}),Dh("span",{children:Ve(e)})]}));let d=o==="filled"?N3:D3(t,r);return i.scope(Dh("span",{className:Co([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Ve(e)}))}var Ee={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)]"},rE=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Ee.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading1} ${Ee.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading2} ${Ee.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading3} ${Ee.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading4} ${Ee.shelfHeadingUpTo800Xl}`}],W3="lg";function $3(e){return(rE.find(o=>o.value===e)??rE.find(o=>o.value===W3)).cls}var jn=(e,o=!1)=>typeof e=="string"?eE(e,o):e,dr=(e,o=!1)=>typeof e=="string"?Ve(e,o):e;function aE({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=Pl,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:Jo(`${gP} 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 ${Ee.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:dr(e)}),o&&ye("h2",{className:`${$3(v)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:jn(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 ${Ee.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:dr(a)}),t&&vo(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ee.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[dr(t.text),ye("span",{"aria-hidden":!0,children:"\u2192"})]}),O&&ye("span",{className:`whitespace-nowrap font-mono ${Ee.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(Un,{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(H3,{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 ${Ee.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(Un,{text:e,look:S,className:"mb-4 block"}):ye("span",{className:"mb-4 block",children:e})),o&&ye("h2",{className:`font-heading2 ${Ee.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Ee.headingMediumUpTo800Small}`,children:jn(o)})]})}if(i==="statement"){let y=`${w} ${I}`.trim();return vo("div",{className:y||void 0,children:[e&&(typeof e=="string"?ye(Un,{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:jn(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(Un,{text:e,look:S}):ye("span",{children:e})),o&&ye("h2",{className:`font-heading2 ${Ee.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Ee.headingMediumUpTo800Small}`,children:jn(o)}),a&&ye("p",{className:`${h??`${Ee.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(Un,{text:e,look:S,className:"mb-4 block"}):ye("span",{className:"mb-4 block",children:e})),o&&ye("h2",{className:`font-heading2 ${Ee.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 ${Ee.headingSmallUpTo800}`,children:jn(o)})]})}let _=!!a||!!t,E=!!o,D=CO(l)==="outlined",b=`font-mono ${Ee.label} uppercase tracking-[0.3em]`,F=null;if(e)if(D)F=ye("span",{className:`${kO} text-fg-dim ${Ch}`,children:dr(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:dr(k)}),P&&ye("span",{className:"text-fg-dim",children:dr(P)})]})}else F=ye("span",{className:`${b} ${n?"text-accent":"text-fg-dim"}`,children:dr(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:vO}),vo("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&ye(Ek,{children:ye(Zf,{...z3(xP(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 ${Ee.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 ${Ee.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:jn(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 ${Ee.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:dr(a)}),t&&vo(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ee.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[dr(t.text),ye("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function z3(e){let o=ya(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function nE({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return U3(aE,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Dl,jsxs as X3}from"react/jsx-runtime";import{useEffect as Z3,useState as xE}from"react";import{jsx as j3}from"react/jsx-runtime";var sE="sf-photo-hover";function Lc({sheet:e,name:o=sE}){return e?j3("style",{href:o,precedence:sE,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as pE,Fragment as q3}from"react/jsx-runtime";import{createContext as V3,useContext as Dc}from"react";var G3=Xb["view-desktop"];function K3(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 pfe(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:Zt,slot:e.phone},{below:G3,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return K3(t,e.desktop)}function lE(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 iE=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,dE=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function fE(e,o){if(e===o)return e;let t=[...dE(e),...dE(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 cE(e,o){if(!o)return e;let t=lE(e),r=lE(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:fE(iE(t,s),iE(r,s))})),n=fE(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 Y3={hasWidth:!1},Rl=V3(Y3);function Ife(){return Dc(Rl).hasWidth}function gfe(e){let{bound:o}=Dc(Rl);return o&&Hh(o)||e}function uE(e){let{bound:o}=Dc(Rl);return cE(e,o&&Hh(o))}function mE({children:e}){let o=Dc(Rl);return o.bound?pE(Rl.Provider,{value:{hasWidth:o.hasWidth},children:e}):pE(q3,{children:e})}function hE({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=uE(s),I=l?h:s,[S,v]=xE(!1),[O,R]=xE(!1),T=t||"";Z3(()=>{v(!1),R(!1)},[T]);let g=gf(T),w=g&&!O?ya(T):{src:T},_=!T||S;return X3("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Dl("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:_?e:null}),Dl(Qd,{fill:tl,children:T&&(g?Dl("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)}):Dl(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)}))}),Dl(Lc,{sheet:x?.sheet})]})}import{jsx as J3}from"react/jsx-runtime";var Nl="sf-empty-hides",Wh="sf-empty-else",Nc="sf-head-core",Mc="sf-head-box",Ml="holdsHeadCore",Hl="isHeadCore",Q3=`.${Nl}:empty{display:none}.${Nl}:not(:empty)~.${Wh}{display:none}.${Mc},.${Nc}{display:contents}.${Mc}:not(:has(.${Nc}:not(:empty))){display:none}`;function Hc(){return J3("style",{children:Q3})}var No={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},IE={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},$h="sf-itc-boxes",o$="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 Yfe({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??wk({padTop:l,padBottom:i},Mn("ProcessSteps")),w=R?[]:zh(a),_=w.length>0?w:f&&!r&&!R?[1,2,3].map(y=>({tag:c("Column {n}",{n:y})})):[],E=IE[n]??IE[3],D=T?"grid-cols-1":E,b=T?"":" [&>*]:min-h-[560px]",F=I==="on-image";return _e(de,{as:"section",className:Jo(["relative z-[2] border-b border-line bg-bg",g.className].filter(Boolean).join(" "),O),style:{...g.style,...rT(u,h)},children:fr("div",{className:Jo(kC,O),children:[x?null:_e(nE,{num:e,title:o?.trim()?Ve(o,!0):void 0,desc:t?.trim()?Ve(t,!1):void 0}),r&&!R?fr(e$,{children:[_e(Hc,{}),T?_e(bc.Provider,{value:{hand:T,ids:r.blockIds??[],boxes:[]},children:_e(r,{className:`${$h} ${Nl} sf-card grid ${D} gap-[2px] border border-line bg-line${b} [&>*]:bg-bg`,minEmptyHeight:260})}):_e(r,{className:`${$h} ${Nl} sf-card grid ${D} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,R&&v?_e("div",{className:`${$h} sf-card grid ${D} gap-[2px] border border-line bg-line${b} [&>*]:bg-bg`,children:T?_e(bc.Provider,{value:{hand:T,copies:!0},children:v}):v}):null,_.length>0&&_e("div",{className:`${o$} ${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 fr("article",{className:F?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[fr("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:[_e(hE,{label:y.tag?.trim()||y.title?.trim()||`column-${k+1}`,src:y.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),_e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${qs(.55)} 0%, transparent 30%, transparent 70%, ${qs(.65)} 100%)`}}),F&&_e("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%, ${qs(.73)} 55%, ${qs(.92)} 100%)`}}),y.tag?.trim()&&_e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${No.label} uppercase tracking-[0.3em] text-accent`,children:rt(y.tag)}),y.meta?.trim()&&_e("span",{className:F?`absolute right-5 top-[18px] z-[2] font-mono ${No.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${No.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:rt(y.meta)}),F&&(y.title?.trim()||y.copy?.trim())&&fr("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()&&_e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${No.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${No.headingSmallUpTo700Small}`,children:Ve(y.title,!0)}),y.copy?.trim()&&_e("p",{className:`min-h-[3em] font-display ${No.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Ve(y.copy,!1)})]})]}),F?P.length>0&&_e("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)=>fr("div",{className:"flex flex-col gap-1",children:[C.label?.trim()&&_e("span",{className:`font-mono ${No.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:rt(C.label)}),C.value?.trim()&&_e("span",{className:`font-display ${No.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:rt(C.value)})]},B))}):fr("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()&&_e("h3",{className:`font-heading3 ${No.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${No.headingSmallUpTo700Large}`,children:Ve(y.title,!0)}),y.copy?.trim()&&_e("p",{className:`font-display ${No.bodySmall} leading-[1.55] text-fg-dim`,children:Ve(y.copy,!1)}),P.length>0&&_e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:P.map((C,B)=>fr("div",{className:"flex flex-col gap-1",children:[C.label?.trim()&&_e("span",{className:`font-mono ${No.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:rt(C.label)}),C.value?.trim()&&_e("span",{className:`font-display ${No.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:rt(C.value)})]},B))})]})]},k)})}),s?.text&&_e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:fr(ga,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${No.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[rt(s.text),_e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var t$=["selected","highlighted"],gE="data-sf-card-state",SE="pointer-events-none absolute inset-0 border border-accent",bE="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",wE="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",CE="absolute inset-y-0 left-0 w-[3px] bg-accent",kE="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",vE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",yE=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},r$={[yE("muted")]:`var(${yE("fg")})`};function Uh(e){return e?.selected===!0}function jh(e){return e?t$.filter(o=>e[o]===!0).join(" "):""}function PE(e,o="frame"){let t=jh(e);return t?o==="frame"&&Uh(e)?{[gE]:t,className:"relative isolate",style:{...r$}}:{[gE]:t,className:"relative"}:{}}var a$={highlighted:!0},n$={},Wc="badge";function ece(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Us(t,r)}))}function TE(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 oce(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?a$:n$)}}function tce(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function rce(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 OE="data-sf-card-press",EE=`${gO} appearance-none bg-transparent border-0 p-0 m-0`,_E=`${EE} cursor-pointer`,AE=EE;import{paymentMarkItems as s$,paymentMarks as l$}from"efficient-shell/icons/payment";var i$=[eb,ob],FE=e=>i$.includes(e),BE=e=>s$({name:e.label,kind:e.kind}),d$=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function LE(e){return l$(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>BE(t).some(r=>d$(r,o)))?.kind??""}))}function lce(e){return BE(e)[0]??null}var RE={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")}],f$=ld.Logos,cce={label:"Logos",drawsPictures:!0,fields:f$,defaultProps:{items:[],contained:!0}};var c$=()=>$c().map(e=>({label:e.alt}));function DE(e,o){let t=sd(e,o,c$()).rows.filter(r=>r.label);return FE(De(e))?LE(t):t}var Wl="Flex",u$="Text",$l=e=>Object.values(e??{}).filter(ME),m$=e=>e.type===ro&&De(e.props)!=="",HE=e=>{if(e.type!==Wl)return!1;let o=$l(e.props).flat();return o.length>0&&o.every(m$)},zc=e=>fn(e.props?.headPlacement)==="own-box"||HE(e),Gh=e=>e===void 0||Array.isArray(e)&&e.length===0;function WE(e){return e.type===u$?!0:e.type===Wl&&$l(e.props).every(o=>o.every(WE))}var $E={ProcessSteps:e=>Gh(e.boxes)&&zh(e.steps).length===0,Logos:e=>De(e)?x$(e):Gh(e.logos)&&Gh(e.items)};function x$(e){return sb(e)!==null&&DE(e,!1).length===0}function h$(e){return $l(e.props).flat().every(o=>!sd(o.props,!1).rows.some(TE))}function Uc(e){let o=$l(e.props).flat();return o.some(zc)&&o.every(t=>zc(t)||WE(t))}function I$(e){if(!p$(e)||!zc(e))return e;let o=HE(e)?h$(e):z($E,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Hl]:o?"empty":!0}}}function NE(e){return qe(e,o=>ze(o,I$))}function zE(e){let o=Object.entries(e.props??{}).filter(([,r])=>ME(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===Wl&&t.props?{key:o[0][0],inner:t}:null}function UE(e){if(e?.type!==Wl||!e.props)return e;if(Uc(e)){let t=NE(e);return{...t,props:{...t.props,[Ml]:!0}}}let o=zE(e);return!o||!Uc(o.inner)?e:{...e,props:{...e.props,[o.key]:[NE(o.inner)],[Ml]:!0}}}function jE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=UE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var g$=e=>z($E,String(e.type))?.(e.props??{})===!0;function y$(e){if(e.type!==Wl||!e.props)return!1;let o=Uc(e)?null:zE(e),t=o?o.inner:e;if(!Uc(t))return!1;let r=$l(t.props).flat().filter(zc);return r.some(a=>De(a.props)!=="")&&r.every(g$)}function GE(e){return qe(e,o=>S$(o))}function S$(e){let o=!1,t=[];for(let r of e){if(y$(r)){o=!0;continue}let a=GE(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function KE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(UE(a)!==a)return a;let n=GE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var b$=["DocMasthead","AlloyWheelsListing"],jc="titleLevel",w$=e=>e===2?"h2":"h1",Kh=e=>w$(e?.[jc])==="h2";function qE(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>b$.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 O$}from"efficient-easel/draw";var Gn="showFor";function VE(){return en("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var C$=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function _ce(){return VE().choices}function Ace(){return VE().revision}function YE(e){return C$(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as k$}from"efficient-easel/draw";var qh="_wallLabelId",v$="_wallLabelledBy",Vh=e=>e.props?.id==null?"":String(e.props.id);function P$(e){if(!e||e.type!=="Text"||!Vh(e))return!1;let o=k$(e.props?.text);return!o.hidden&&o.text.trim()!==""}var T$=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Vh(e)!=="",XE=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function ZE(e){let o=ze(e,r=>qe(r,ZE)),t=null;for(let r=1;r<o.length;r++){if(!T$(o[r])||!P$(o[r-1]))continue;let a=`sf-wall-label-${Vh(o[r-1])}`;t??=o.slice(),t[r-1]=XE(t[r-1],qh,a),t[r]=XE(t[r],v$,a)}return t??o}function JE(e){return rn(e,ZE)}var QE="_cardPressTitles",E$="_cardPressTitle";function zce(e,o){let t=e?.[QE],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var e_=(e,o)=>({...e,props:{...e.props,...o}});function _$(e){let o=e.props??{};return e.type!=="Text"||O$(o.text).hidden||typeof o[jo]=="string"||typeof o[qh]=="string"?"":Ht(o)}function o_(e,o,t,r){return ze(e,a=>{let n=_$(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),e_(a,{[E$]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Gn]))return a;let s=a.props?.[on],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return qe(a,(i,d)=>aa(a.type,d)?i:o_(i,l,t,r))})}function t_(e){let o,t=qe(e,(r,a)=>{let n=ze(r,t_);if(!aa(e.type,a))return n;let s=[],l=o_(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?e_(t,{[QE]:o}):t}function r_(e){return rn(e,o=>ze(o,t_))}import{pinnedDuplicateIndices as Zz}from"efficient-easel/draw";import{jsx as at,jsxs as J_}from"react/jsx-runtime";import{createContext as zz,useContext as Uz,useEffect as jz,useRef as Gz,useState as Q_}from"react";import{jsx as Br,jsxs as d_}from"react/jsx-runtime";import{useEffect as Kn,useRef as f_,useState as Ca}from"react";import{jsx as a_,Fragment as A$,jsxs as F$}from"react/jsx-runtime";import{useEffect as B$,useRef as n_,useState as L$}from"react";var R$="#t=0.001",D$=2;function N$(e,o){if(e.readyState<D$||!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 s_({src:e,objectPosition:o="50% 50%",onError:t}){let r=n_(null),a=n_(null),[n,s]=L$(!1);return B$(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{N$(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),F$(A$,{children:[a_("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&&a_("video",{ref:r,src:`${e}${R$}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var M$="data-part",qce=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 Fr(e){return{[M$]:e}}var zl={min:40,max:100,step:5,fallback:100,unit:"vh"};function H$(e){return`${typeof e=="number"?e:zl.fallback}${zl.unit}`}function l_(...e){return e.some(o=>typeof o=="number"||Ul(o)!==null)}var Yh={..._k,fallback:680,unit:"px"},Zce={ratio:"16/9",px:`${Yh.fallback}px`},W$=/^(\d{1,5}(?:\.\d{1,3})?)px$/;function Ul(e){if(typeof e!="string")return null;let o=Pk(e);if(o!==null)return{unit:"ratio",value:e,css:"auto",aspect:o};let t=W$.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 $$(e){return Object.keys(e.style??{}).some(o=>o.startsWith("--sf-hero-ar-"))}function Jce({heightDesktop:e,heightTablet:o,heightMobile:t,heightFixed:r,heightFixedTablet:a,heightFixedMobile:n}){let s=I=>Ul(I)?.value,l=l_(e,t,s(r),s(n)),i=l_(o,s(a)),d=(I,S,v)=>{let O=Ul(S);return O?.unit==="ratio"?{[`--sf-hero-h-${I}`]:O.css,[`--sf-hero-ar-${I}`]:O.aspect}:{[`--sf-hero-h-${I}`]:O?.css??H$(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=$$({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,z$="16 / 9",U$="100svh",j$=[{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 i_(e=U$){let o=`max(100vw, calc(${e} * ${z$}))`;return[...j$.map(({minDppx:t,capPx:r})=>`${t===null?kn:`${kn} and (min-resolution: ${t}dppx)`} min(${o}, ${r}px)`),"100vw"].join(", ")}function tpe(e,o){let t=Ul(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>=zl.min&&e<=zl.max)return`${e}svh`}var G$=.5;function jl({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=G$,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:x=!1,slideShown:u,laterSlide:h=!1,laterOfLead:I=!1,phoneFrame:S}){let v=i_(S),O=hP(d,f),R=hl(),[T,g]=Ca(!1),w=R==="below"&&!T,_=R==="first",E=a||"",D=n||"",b=f_(null),F=El(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]=Ca(!1),[q,$]=Ca(!1),[le,pe]=Ca(!1),[ee,xe]=Ca(!1),oe=u??!0,[ie,ge]=Ca(!1),Re=R!=="first"&&!I,[We,yo]=Ca(!1),oo=f_(null);Kn(()=>{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]),Kn(()=>{H(!1),$(!1),pe(!1),xe(!1)},[P,E,D]),Kn(()=>{oe&&ge(!0)},[oe]),Kn(()=>{let N=oo.current;N&&(oe?N.play()?.catch(()=>{}):N.pause())},[oe,ie,We]),Kn(()=>{if(!h||Re&&!We)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,We]),Kn(()=>{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?ya(E):{src:E},Xe=D&&!q?ya(D):{src:D},bo=D&&!w&&!T?[{sized:Xe,media:kn},...E?[{sized:So,media:Hs}]:[]]:[];return d_("div",{ref:b,className:"absolute inset-0 z-[1]",...Fr("hero-media"),children:[Br("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),bo.map(({sized:N,media:te})=>Br("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=Br("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?d_("picture",{children:[Br("source",{media:kn,srcSet:Xe.srcSet||Xe.src,sizes:v}),N]},`${E} ${D}`):N})():Br(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||We)&&!le&&Br("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=>Br("source",{src:N.src,type:N.type},N.src))},P),s&&x&&P&&y!==void 0&&ie&&(!Re||We)&&!ee&&(!E||B)&&Br(s_,{src:P,objectPosition:i,onError:()=>xe(!0)},P)]})}import{jsx as mo,Fragment as C_,jsxs as eI}from"react/jsx-runtime";import{jsx as qn}from"react/jsx-runtime";import{useRef as K$}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as q$,scrollAttrs as V$}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=K$(null),x=rf(),u=ot(),h=n?u:kr,I=Ol(f,!0,s),{attrs:S,style:v}=V$(e[I],o[I]),O=q$.includes(e[I].effect),R=Co(`${gn}${x.fill}${t?` ${t}`:""}`,h.className);if(O&&l==="picture")return h.scope(qn("div",{ref:f,className:R,...r,...h.attrs,...a?{style:a}:{},children:qn(Tk,{attrs:S,style:v,children:x.inner(d)})}));let T=qn(Ok,{children:x.inner(d)});if(O){let w=i??(x.fill?"h-full":void 0);return h.scope(qn("div",{ref:f,className:R,...r,...h.attrs,style:{...a,overflow:"clip"},children:qn("div",{...w?{className:w}:{},...S,style:v,children:T})}))}let g=Object.keys(v).length||a?{style:{...a,...v}}:{};return h.scope(qn("div",{ref:f,className:R,...r,...h.attrs,...S,...g,children:T}))}var ka=["media","image","image2"],cr={media:"Media",image:"Image",image2:"Image 2"},Gl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function qc(e,o){return e==="image"&&Js(o)>1?"Image 1":cr[e]}var Epe="Video file",_pe="Upload a video file",Ape="AV1 file",Fpe="Upload an AV1 file";function Y$(e,o){return Sd("mediaType",Gd,o,[e])}var X$=new Set(Object.keys(Kd)),c_="heroPart";function Z$(e,o){return{...o,[c_]:e}}function Bpe(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Gd.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 Gd)for(let i of t[l])n[i]=Ze(n[i],Y$(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=Ze(n[l],i));for(let l of ka)for(let i of o[l]??[])n[i]=Z$(l,n[i]);return n}function J$(e){let o=e?.[c_];return ka.includes(o)?o:null}function p_(e,o){let t={};for(let[r,a]of Object.entries(e))J$(a)===o&&(t[r]=a);return t}function u_(e){if(!X$.has(e.type))return[];let o=[{part:"media",label:cr.media,depth:0}];return sk(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:qc("image",e.props),depth:1}),Js(e.props)>1&&o.push({part:"image2",label:qc("image2",e.props),depth:1})),o}function va(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 ka.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var Kl="data-sf-hero-part";import{MOTION_TIMING as Q$}from"efficient-shell/format";var I_="grayscale(1) contrast(1.03)",Npe="Black and white";function ez(e){return e===!0?{filter:I_}:{}}function oz(e){let{filter:o}=ez(e);return o?{style:{filter:o}}:{}}var Pa="sf-photo-grayscale",Qh="data-sf-photo-host",m_={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Jc=`@media (hover:hover){.${Pa}{filter:${I_};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${Pa}:hover,[data-sf-photo-host]:hover .${Pa}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Pa}{transition:none}}`;function g_(e){let o=Q$.hover,t={...e.duration!==o.duration.default?{[m_.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[m_.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function y_(e,o,t){if(e===!0)return oz(!0);if(t?.kind==="mono"){let r=g_(t);return{className:Pa,sheet:Jc,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Pa}:{}}var S_="data-sf-repeat",Xh="sf-photo-zoom",tz="--sf-photo-zoom",Mpe="sf-photo-wash",Yc="sf-photo-wash-rest",ql="sf-photo-wash-hover",Zc="sf-photo-frame",b_=(e,o)=>`:not([${S_}]:not(${o}) .${e})`,Jh=(e,o)=>`[${S_}]${o} .${e}${b_(e,o)}`,Zh=(e,o)=>`${o},${Jh(e,":hover")},[${Qh}]:hover .${e}${b_(e,":hover")}`,x_=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))`,rz=`.${ql}{opacity:0}@media (hover:hover){.${Yc},.${ql}{transition:${x_("opacity")}}${Zh(ql,`.${Zc}:hover .${ql}`)}{opacity:1}${Zh(Yc,`.${Zc}:hover .${Yc}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Xh}{transition:${x_("transform")}}${Zh(Xh,`.${Zc}:hover .${Xh}`)}{transform:scale(var(${tz}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Yc},.${ql}{transition:none}}`,Hpe="sf-photo-move";function Wpe(e){if(!e||!e.zoom&&!e.darken)return null;let o=g_(e);return{className:Zc,sheet:rz,...o?{style:o}:{}}}function w_(e){return e===!0?{[Pa]:Jc}:{}}var Xc="sf-box-reveal",$pe="sf-box-reveal",az=8,h_=.3,zpe=`@media ${Hs}{.${Xc}{opacity:0;transform:translateY(${az}px);transition:opacity ${h_}s ease-out,transform ${h_}s ease-out}${Jh(Xc,":hover")},${Jh(Xc,":focus-within")}{opacity:1;transform:none}}@media ${Hs} and (prefers-reduced-motion:reduce){.${Xc}{transition:none;transform:none}}`;import{hidableText as nz}from"efficient-easel/draw";var sz={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"},lz={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 k_(e){let o=e.isVideo&&RP(e.videoSource)==="youtube",t=e.isVideo&&DP(e.videoPlayback)==="click",r=o?NP(nz(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&&Js(e)>1}}function Vl(e,o){return yn(Sa({_partMotion:e},o))}function Yl(e,o){return $n(Sa({_partMotion:e},o))}var Qc=e=>Ph({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),v_=tl.img;function P_({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 Vn(e,o){return y_(void 0,void 0,Kb(Sa({_partMotion:e},o)))}function T_(e){return ka.some(o=>Vn(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(C_,{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},...Fr("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?{[Kl]:e}:void 0;return mo(P_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:v_,children:l})}function O_({partMotion:e,editing:o,children:t}){let r=Vl(e,"media"),a=Yl(e,"media"),n=Vn(e,"media"),s=mo(Qd,{fill:tl,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(P_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:v_,children:l}):mo(C_,{children:l})}function E_({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 ${sz[o]} ${lz[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[mo(tp,{part:"image",editing:t,marked:r,entrance:Vl(a,"image"),scroll:Yl(a,"image"),origins:Qc(n),className:"relative overflow-hidden",children:eI(ep,{treatment:Vn(a,"image"),children:[mo(jl,{posterSrc:tt(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:Vl(a,"image2"),scroll:Yl(a,"image2"),origins:Qc(s),className:`relative overflow-hidden ${qv({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:eI(ep,{treatment:Vn(a,"image2"),children:[mo(jl,{posterSrc:tt(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 Lr,Fragment as iz,jsxs as dz}from"react/jsx-runtime";import{useEffect as fz,useRef as cz,useState as pz}from"react";import{PlaySolidIcon as uz}from"efficient-shell/icons/efficient-looks";function __({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=pz("large");return fz(()=>n("large"),[e]),e?dz(iz,{children:[!o&&a!=="none"&&Lr(Zf,{src:a==="large"?MP(e):HP(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&&Lr("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Lr("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 A_({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=cz(null),d=El(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?Lr("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"}):Lr("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=>Lr("source",{src:u.src,type:u.type},u.src))},f.video):Lr("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:Lr(uz,{size:28})})}function F_(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 D_}from"efficient-shell/format";var N_=["top","middle","bottom"],M_=["left","center","right"],H_="bottom",W_="left",mz={top:"Top",middle:"Middle",bottom:"Bottom"},xz={left:"Left",center:"Center",right:"Right"},yue="Up and down",Sue="Sideways",hz={top:"flex-start",middle:"center",bottom:"flex-end"},Iz={left:"flex-start",center:"center",right:"flex-end"},gz="--sf-hero-phone-y",yz="--sf-hero-phone-x";function Sz(e){return D_(N_,H_,e)}function bz(e){return D_(M_,W_,e)}function $_(e,o){let t=Sz(e),r=bz(o),a={};return t!==H_&&(a[gz]=hz[t]),r!==W_&&(a[yz]=Iz[r]),a}var wz="--sf-hero-phone-words-top",Cz="--sf-hero-phone-words-bottom",kz="--sf-hero-phone-box-gap",bue=100,wue=90,Cue=28,vz=0,Pz=200,kue="Words space top",vue="Words space bottom",Pue="Space between boxes";function oI(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(Pz,Math.max(vz,Math.round(e)))}function z_(e,o,t){let r={},a=oI(e),n=oI(o),s=oI(t);return a!==void 0&&(r[wz]=`${a}px`),n!==void 0&&(r[Cz]=`${n}px`),s!==void 0&&(r[kz]=`${s}px`),r}function Tue(){return N_.map(e=>({label:mz[e],value:e}))}function Oue(){return M_.map(e=>({label:xz[e],value:e}))}var Tz="--sf-hero-words-top",Oz="--sf-hero-words-bottom",B_="--sf-hero-words-top-t",L_="--sf-hero-words-bottom-t",Eue=140,_ue=56,Ez=0,_z=400,R_="pt-[var(--sf-hero-words-top,140px)] pb-[var(--sf-hero-words-bottom,56px)]",Az="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 Fz(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(_z,Math.max(Ez,Math.round(e)))}function U_(e,o,t,r){let a={},n=(s,l)=>{let i=Fz(l);i!==void 0&&(a[s]=`${i}px`)};return n(Tz,e),n(Oz,o),n(B_,t),n(L_,r),Object.keys(a).length===0?{className:null,style:a}:{className:B_ in a||L_ in a?`${R_} ${Az}`:R_,style:a}}import{hexToRgb as Bz}from"efficient-shell/format";var Lz=!0;var Rz=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function j_(e){let o=Bz(e);return o?`${o.r},${o.g},${o.b}`:null}function G_(e){return e==null?Lz:e!==!1}function K_(e){let o=(e?j_(e):null)??j_(rr);return`linear-gradient(180deg, ${Rz.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as q_,parseOption as Dz}from"efficient-shell/format";var V_="bottom";var Nz=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],Mz={bottom:180,top:0,left:270,right:90},Hz=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],Wz=[[null,33],[.6,67],[.94,100]];function $z(e,o){let{r:t,g:r,b:a}=q_(e)??q_(rr);return`rgba(${t},${r},${a},${o})`}function Y_(e){return Dz(Nz,V_,e)}function X_(e=rr,o=V_){let t=Y_(o),r=(t==="top"||t==="bottom"?Hz:Wz).map(([a,n])=>`${a===null?"transparent":$z(e,a)} ${n}%`);return`linear-gradient(${Mz[t]}deg, ${r.join(", ")})`}function Z_(e,o){let t=fo(e.overlayColor),r=fo(e.overlayPosition),a=fo(o)??rr;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:Y_(r)}}var Kz=zz({});function ame({name:e,process:o,mediaType:t=Kd.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:f,objectPositionPhone:x,objectPositionTablet:u,tintColor:h=rr,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=rr,tintOpacity2:k=0,videoSource:P,youtubeUrl:C,videoPlayback:B,partMotion:H,laterSlide:q=!1}){let $=vt(),le=ot(),{alignment:pe="left",textureOpacity:ee,textureOn:xe,textureColor:oe,quietVideo:ie,phoneUpDown:ge,phoneSideways:Re,phoneWordsTop:We,phoneWordsBottom:yo,phoneBoxGap:oo,wordsTop:io,wordsBottom:So,wordsTopTablet:Xe,wordsBottomTablet:bo,holdReel:N,reelHeld:te,shownSlide:he,ratioMin:$e,posterPhoneFrame:Ao}=Uz(Kz),Uo=U_(io,So,Xe,bo),Fo=hl(),ke=q&&Fo==="first",ht=Gz(null),[_s,Yr]=Q_(he===void 0?void 0:!1);jz(()=>{let Te=ht.current;Yr(he===void 0||!Te?void 0:F_(Te.closest(".hero-track"),"data-slide-name")[he]===Te)});let Yo=t==="video",Xr=Yo?tt(r):void 0,Ja=Yo?tt(n):tt(r)??tt(n),Lt=Yo?{av1:tt(s),phone:tt(l),av1Phone:tt(i),poster:tt(d)}:{},xr=typeof a=="number"?a/100:1,{fromYouTube:It,onClick:As,youTubeId:Fs,backgroundFile:gt,desktopLayout:bm,phoneLayout:od,twoPictures:td}=k_({isVideo:Yo,videoSource:P,videoPlayback:B,youtubeUrl:C,mediaLayout:w,mediaLayoutPhone:_}),[Zr,Bs]=Q_(!1);Zr&&te===!1&&Bs(!1);let Ls=!Zr,Qa=Z_({overlayColor:T,overlayPosition:g},oe),Rt=Yo?null:Vl(H,"image"),rd=Yo?null:Yl(H,"image"),ad=T_(H),nd=at(ep,{treatment:Yo?{}:Vn(H,"image"),children:at(jl,{videoSrc:gt?Xr:void 0,videoAv1Src:gt?Lt.av1:void 0,videoSrcPhone:gt?Lt.phone:void 0,videoAv1SrcPhone:gt?Lt.av1Phone:void 0,posterSrc:Ja,posterSrcPhone:Lt.poster,showVideo:gt,playbackRate:xr,objectPosition:f,objectPositionPhone:Yo?void 0:x,objectPositionTablet:Yo?void 0:u,quiet:ie,slideShown:_s,laterSlide:q,laterOfLead:ke,phoneFrame:Ao})}),G=J_("section",{ref:ht,className:Co(`${$e?"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":gt&&Xr?"video":"still",...ad.hostAttrs,...Fr("slide"),children:[at(Lc,{sheet:ad.sheet}),at(O_,{partMotion:H,editing:v,children:td?at(E_,{laterSlide:q,desktopLayout:bm,phoneLayout:od,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}}):It||Rt||rd?J_(tp,{part:Yo?"media":"image",editing:v,entrance:Rt,scroll:rd,origins:Qc({objectPosition:f,objectPositionTablet:u,objectPositionPhone:x}),className:"absolute inset-0 z-[1]",children:[nd,It&&at(__,{youTubeId:Fs,ownPoster:!!Ja,background:!As,editing:v})]}):nd}),As&&at(A_,{youTubeId:Fs,fileSrc:It?void 0:Xr,fileAv1Src:It?void 0:Lt.av1,fileSrcPhone:It?void 0:Lt.phone,fileAv1SrcPhone:It?void 0:Lt.av1Phone,playing:Zr,onPlay:()=>{Bs(!0),N?.()},editing:v}),Ls&&!td&&at(op,{color:h,opacity:I,passClicks:!1}),Ls&&G_(xe)&&at("div",{className:"absolute inset-0 z-[2]",style:{background:Qa.own?X_(Qa.color,Qa.position??void 0):K_(Qa.color),...ee!==void 0?{opacity:ee/100}:null},...Fr("overlay")}),Ls&&at("div",{className:[$e?"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)]",Uo.className??"pt-[140px] pb-14",$?bC:"",v?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...lC,...$_(ge,Re),...z_(We,yo,oo),...Uo.style},...Fr("hero-content"),children:S&&at(S,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return le.scope(ke?at(Xf,{children:G}):G)}var e1=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as n1}from"efficient-easel/draw";import{isNodeList as Vz}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:Ir()},{type:"Text"}]}}]}}),o1=()=>Array.from({length:tI},rI);var t1=["","","","","",""],r1="#ticker",Xl="strip",aI={sectionAccent:yr,line:!1};function qz(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function nI(e){return qz(e).length>0}function cme(e){return e.showTicker!==!1&&nI(e)}var s1=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,Vz(r)?r.map(a=>s1(a,o)):r]))}}),Yz=e=>{let[o]=Nt([rI()],a=>n1(a)),{id:t,...r}=s1(o,e).props;return r},nt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>e1.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Ns.toLowerCase()}`,seeds:()=>[],addBlocked:sx,notice:lx},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Ns.toLowerCase()}`,seeds:()=>[],addBlocked:sx,notice:lx},ProcessSteps:{slot:Ds,childType:K,addLabel:`Add ${Ns.toLowerCase()}`,seeds:e=>Array.from({length:tI},()=>Yz(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},a1=1,Xz={slot:Xl,childType:K,addLabel:`Add ${Ns.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=a1?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>a1?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},l1={Hero:{[Xl]:Xz}};function Cme(e){for(let[o,t]of Object.entries(e)){if(co(nt,o)&&z(nt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);nt[o]=t}}function kme(e,o){let t=z(nt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:n1(t.childType),...r}}))}:null}var Jz=["GalleryB"];function i1(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!Jz.includes(l))return s;let i=z(nt,l);if(!i?.legacy)return s;let d=s.props??{},f=d[i.slot];if(Array.isArray(f)&&f.length>0)return s;let x=i.legacy(d);if(!x.length)return s;t=!0;let u=String(d.id??l),h=x.map((I,S)=>({type:i.childType,props:{id:`${i.childType}-${u}-${S}`,...I}}));return{...s,props:{...d,[i.slot]:h}}}),a=new Set(Zz(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var Qz={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},eU={"Footprint.source":"typed"};function d1(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(Qz)){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(eU)){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&&!De(i)&&(i[to]=l),o=i,t=!0}if(e.type&&o){let r=Cd(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=qe({props:o},a=>ze(a,d1));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function f1(e){return id(e,o=>ze(o,d1))}import{readHidable as oU}from"efficient-easel/draw";var Gt=K,Kt=we;function Ta(e){if(e.theme)return or(e.theme);let o=e.site?.themePresets;return o?or({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function tU(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var p1=new Set(["id"]),Rr={},Zl=[],rU={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"]},aU=Object.keys(rU),Oa=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...aU,"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(Rr,o)&&z(Rr,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Rr[o]=t}}function Dr(e){return z(Rr,e)}function nU(e){return co(Rr,e)&&Zl.includes(e)}function u1(e,o=Oa){return co(Rr,e)&&(o.includes(e)||nU(e))}function Ume(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=>oU(e),Me=e=>sI(e).text.trim()!=="";function sU(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 lU=e=>e==="heading"?Ir():e==="eyebrow"?Qt():{};function iU(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 dU(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 c1(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 fU(e){let o=new Set([...p1,"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=>fn(e.headPlacement)==="own-box";function cU(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 pU(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 uU(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 mU(e,o,t){if(!t.press)for(let r of uU(e)){let a=pU(o,r);if(a!==void 0)return a}}function Ea(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:cU(r))??mU(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=fU(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 c1(g??[],y,_,(k,P,C)=>F(k,C?`nothing \u2014 the old value draws nothing (${E}: no ${P})`:`${b}${E}: ${P}`),t)},S=g=>Nt(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(Gt,{name:`${g.name} ${B+1}`,...D,...q.props??{},[Kt]:$})]});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"),bd(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(Gt,{name:`${C.name} ${H+1}`,...C.props??{},[Kt]:[...$,h(Gt,{name:`${C.itemsName} ${H+1}`,...C.itemsProps?.(q.length,r)??{},[Kt]:xe.length?xe.map((oe,ie)=>h(Gt,{name:`${C.rowName??`${C.itemsName} row`} ${ie+1}`,...C.rowProps??{},[Kt]: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(Gt,{name:`${g.rowName??`${g.name} row`} ${C+1}`,...k,[Kt]:[...B,...Array.from({length:H},(q,$)=>h(Gt,{name:`Empty ${$+1}`,...g.rowFiller,[Kt]:[]}))]}))}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=lU(y.role??"body"),{_partStyles:C,...B}=P,H=iU(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"?sU(k.text):y.mark==="accentItalic"?Ms(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??{},...dU(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(Gt,{name:y.name,...P,[Kt]: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=c1(g.box??[],D,r,(F,y,k)=>d(F,k?`nothing \u2014 the old value draws nothing (${_}: no ${y})`:`${_}: ${y}`),t);return{type:Gt,props:{name:g.name,...b,[Kt]:E,id:tU(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))p1.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 m1(e,o=Zl,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(Rr,s.type):void 0;if(!l)return[s];let i=Ea(s,l,t);return i.skipped!==void 0?[s]:(a=!0,i.nodes)});return a?{...e,content:n}:e}function x1(e,o=Zl,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(Rr,a.type):void 0;if(!s)return;let l=Ea(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as xU,BLOCK_SIZE_KEYS as hU,parseBlockWidthFit as ap,phoneKey as h1,parseTextFit as rp,tabletKey as I1,viewKeyAt as g1}from"efficient-easel/draw";import{sideLengthAt as IU}from"efficient-easel/screen/lib/content/length-units";var gU="sf-block-size",Jl=["width","minWidth","maxWidth"],np=e=>`${e}Unit`,Nr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,yU={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"}},w1={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"}},SU={desktop:w1.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"}},bU={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},C1="max-view-wide:grow!";function k1(e){return sp(e).mode.phone==="fill"}var wU={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},CU={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},kU="data-sf-min-width",y1={two:{desktop:"wide",phone:dx.phone},three:dx},vU={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)]"]}},PU={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)]"]}},TU=["widthFit",...Jl],S1={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!"},OU={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!"},v1={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"},EU={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:v1.phone},P1={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},b1={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:P1.phone};function T1(e){let o=sp(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>bU[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function O1(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=sp(e),n=d=>o?y1.three[d]:y1.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[CU[d]]=s[d].join(" "));return s.min.length&&(i[kU]=s.min.join(" ")),i}function sp(e){let o=TU.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?ap(n)!==void 0:Nr(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[g1(a,In(i))]=Nr(e[a]?.[i]),s[g1(n,In(i))]=e.units?.[a]?.[i];let l=i=>IU(s,{length:a},n,In(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?SU:w1,n=r?PU:iI,s=r?OU: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]:yU[k][P]),P==="fixed"&&(i[wU[k]]=mn(I[k]?.value??xU.fallback,I[k]?.unit)))}for(let k of Jl.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]:vU[k][C];i[H]=mn(B.value,B.unit),l.push(q)}}let S=rp(e.textFit?.desktop),v=rp(e.textFit?.phone),O=k=>{let P=Nr(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=Nr(e.maxWidth?.desktop),b=Nr(e.maxWidth?.tablet)??D,F={desktop:D!==void 0,tablet:b!==void 0,phone:(Nr(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,S1));return}if(l.push(H(dI,S1)),l.push(H(EU,v1)),f&&!C&&k==="desktop")for(let q of["desktop","tablet"])F[q]||l.push(b1[q]);else F[k]||l.push(H(b1,P1))};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[sr.fit]=S),w&&(d[sr.fitTablet]=w),v&&(d[sr.fitPhone]=v),R!==void 0&&(d[sr.min]=R),E!==void 0&&(d[sr.minTablet]=E),T!==void 0&&(d[sr.minPhone]=T),!r&&(w||E!==void 0)&&(d[sr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[gU,...l].join(" "),style:i,attrs:d}}function Xme(e){if(Nr(e.maxWidth?.desktop)!==void 0)return!0;let o=ap(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function E1(e){return["desktop","tablet","phone"].some(o=>{let t=ap(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Nr(e.minWidth?.[o])!==void 0})}function lp(e){let o={};for(let t of hU){let r=e[t],a=e[I1(t)],n=e[h1(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[I1(s)],phone:e[h1(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var _1={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as _U}from"efficient-shell/format";import{convertLength as AU}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as A1}from"efficient-easel/draw";var qt=(e,o,t,r)=>o===t?e:AU(e,o,t,r,{min:0,max:200,step:4}),_a={textFit:"line",textFitPhone:"wrap"},Aa={...U,[jo]:""},{label:Oxe,href:Exe,...FU}=_1.defaultProps,ao=FU,Fa={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...Wm,sectionAccent:0},Xn={sectionAccent:-1},J=[...br,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",mk.unitKey,...Ik,...ck,"anchor",Ys,...vn,Rd,...Ud,...Pc,...zd(["widthFit",...Jl,...Jl.map(np)]),...Object.values(Eo)],Yn="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:Yn,fullWidth:Yn,pageWidth:Yn,backgroundWidth:Yn,contentWidth:Yn,contentMax:Yn},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={[$t]:"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=gr(e.sectionPaddingUnit),l=gr(e.sectionPaddingUnitTablet),i=gr(e.sectionPaddingUnitPhone),d=Array.isArray(e[$t])?e[$t]:[],f=(v,O)=>d.includes(v)?0:O,x=(v,O,R,T,g,w)=>{let _=Ie(e[v]);if(_!==void 0)return _+qt(f(v,w),"px",i,"mobile");let E=T===void 0?{n:g,unit:s,key:R}:{n:T,unit:l,key:O};return qt(E.n,E.unit,i,"mobile")+qt(f(E.key,w),"px",i,"mobile")},u=(v,O,R,T,g,w)=>R!==void 0?{[v]:R+qt(f(v,w??g),"px",l,"tablet")}:w===void 0?{}:{[v]:qt(T,s,l,"tablet")+qt(f(O,w),"px",l,"tablet")},h=v=>({desktop:po[v],tablet:A1(po[v],"tablet"),phone:A1(po[v],"mobile")}),I=h("top"),S=h("bottom");return{[I.desktop]:t+qt(f(I.desktop,o.top),"px",s,"desktop"),[S.desktop]:r+qt(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 st(e,o){let t={};for(let[a,n]of ux)e[a]!==void 0&&(t[n]=e[a]);let r=Zd(e,Mn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var Mr=e=>[...ux.map(([o,t])=>[o,t,(r,a)=>st(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>st(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>st(t,e).sectionPaddingBottom]],BU={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},_xe=e=>o=>Me(o.props[e])?[BU]:[],ce=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:U,...o?{style:o}:{}}),Zn=e=>({kind:"group",name:"Chip",props:{...L,...Jt("main"),...wo(6,14)},parts:[ce(e,{color:"background",...W("label",12),weight:600,letterSpacing:.16})]}),F1=e=>e.background!=="transparent",LU=(e,o)=>{let[t,r]=[e,o].map(a=>typeof a=="string"?a.trim():"");return t?r?`[${t} ]{color=text}${r}`:`[${t}]{color=text}`:r},Ql={align:"right",alignPhone:"left"},RU=(e,o,t)=>{let r=a=>LU(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}},ei=(e,o,t,r={})=>RU(e,o,{...Aa,...Ql,...r,_partStyles:{text:{...Bo,color:"labels",...t,case:Bo.case,...Ql}}}),Jn=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ta(o)?.selected??0,B1="var(--site-surface-2)",dp=(e,o)=>Ta(o)?.themes[Jn(e.sectionAccent??0,o)],Mo=(e,o)=>(t,r)=>{if(!o?.(t,r))return Jt(e);let a=dp(t,r)?.[e];return a?{fillColor:a}:{}},fp=(e,o)=>Hr(e,o)>=0,L1=e=>e.startsWith("#")&&_U(e)!==null,cp=(e,o,t)=>{let r=e?.trim();if(r&&L1(r))return{fillColor:r};let a=hx(r);if(a)return Jt(a);let n=r===B1?dp(o,t):void 0;return n?{fillColor:$w(n)}:{}},pp=e=>{let o=e?.trim();return!o||o==="transparent"||o===jt||hx(o)||o===B1||L1(o)?void 0:"it paints a colour that no Box Fill can hold"},Hr=(e,o)=>{let t=Ta(o)?.themes;return t&&F1(e)?zw(t,Jn(e.sectionAccent,o)):-1},Wr=(e,o,t)=>{let r=Hr(o,t);return r>=0?r:e},Qn=(e,o)=>{let t=Ta(o)?.themes,r=t?Uw(t,Jn(e,o)):-1;return r>=0?r:e},Ba=(e,o)=>{let t=Hr(e,o);return t>=0?{sectionAccent:t}:{}},$r=(e,o)=>F1(e.props)&&Hr(e.props,o)<0?[{kind:"band-preset",page:Jn(e.props.sectionAccent,o)}]:[],es=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=In(o),d=(x,u,h)=>{let I=gr(u),S=Bw(x,I,"spacing",h);return S===null?null:qt(S,I,"px",i)},f=o==="desktop"?d(a,n,mC)??vC(a):d(s,l,xC)??TC(s)??_C(a,n);return qt(Math.min(r,f),"px",t,i)},oi=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),ti=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,...oi,...Mo("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 lj,newId as ij}from"efficient-easel/data";function R1(e){return Math.min(4,Math.max(2,e??3))}var Lxe={eyebrow:"Label",title:"Section *heading.*"},DU=ld.Cards,D1={label:"Cards",fields:DU,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Nxe={eyebrow:"Highlight",title:"Key *features.*"},Mxe=()=>[{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")}],N1={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as NU}from"efficient-shell/format";var pI="cardPlace",MU=["","top-line"];function zxe(e){return NU(MU,"",e[pI])}var Uxe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",jxe="data-sf-top-line",HU=new Set(["Cards",ro]);function Gxe(e){return typeof e=="string"&&HU.has(e)}var WU=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 Kxe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:WU(e)?{...e,top:0}:e}var qxe="outsideFramedCard";var up={sectionBorder:{top:0,right:1,bottom:1,left:0},...Jt("background")},$U={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},La=e=>({direction:"row",columns:e,columnsTablet:e,...$U}),M1=(e={})=>Fe(Wc,{...U,tag:"p",[pI]:"top-line"},e,!0),os=(e=ta)=>{let o=sn(e);return{...o,props:{...up,...o.props},slots:{[we]:[...o.slots?.[we]??[],M1()]}}},uI=(e=!1)=>{let o=ln(e);return{...o,props:{...up,...o.props}}},zU={name:"name",time:"time",note:"note",price:"price"},UU={textStyle:"body-1",...W("body",16),weight:500,lineHeight:1.5},jU={...Bo,...W("label",12),letterSpacing:.18,lineHeight:1.5},GU={textStyle:"body-1",...W("body",14),lineHeight:1.6},KU={textStyle:"body-1",fontRole:"heading",...W("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},qU={...W("label",11),letterSpacing:.25},VU={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},mp=e=>({direction:"row",columns:e,...VU}),mI=[...new Set([...Object.keys(La(1)),...Object.keys(mp(1))])],xI=()=>{let e=zU,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},...Jt("surface"),shadow:!0},slots:{[we]:[M1(qU),{type:K,props:{...L,name:"Words",gap:8,gapPhone:8},slots:{[we]:[Fe(e.name,{...U,...o},UU),Fe(e.time,{...re,...o},jU),Fe(e.note,{...re,...o},GU)]}},Fe(e.price,{...U,...o},KU)]}}};import{tabletKey as z1}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as xp}from"efficient-easel/draw";var hp=Zt,hI=xp,H1=960,W1=Zt,$1={min:hp,max:1600,step:10},Ip="stackBelow";function ahe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<$1.min||e>$1.max))return Math.round(e)}var YU=e=>`sf-stack-${e}`,XU=e=>`sf-stack-${e}-gutter`,ZU=e=>`sf-stack-${e}-outer`,ts=e=>`${e-.02}px`;function nhe(e,o={}){let t=o.gutter!==!1,r=`.${YU(e)}`,a=`.${XU(e)}`,n=`.${ZU(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:${ts(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:${ts(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:${ts(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${ts(e)}){${a}${a}{padding-inline:${IC.frame}}}`),t&&e<H1&&s.push(`@media (min-width:${e}px) and (max-width:${ts(H1)}){${a}${a}{padding-inline:${hC}}}`),e>W1&&s.push(`@media (min-width:${W1}px) and (max-width:${ts(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 JU}from"efficient-shell/format";var QU=["standard","editorial","simple","essay"];function Ra(e){if(e==="ProductGrid")return"shelf";let o=z(wt,e)?.headStyle;return JU(QU,"standard",o)}var ri={standard:64,editorial:60,simple:36,essay:28,shelf:20},ej={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function oj(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=K1({num:e,title:o,description:t,link:!1});return gp.set(r,n),n}var Ho={[Ip]:hI},gI={top:0,right:0,bottom:1,left:0},Wo=(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=Zt,tj=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}}),G1={...ao,align:"right",alignPhone:"left",...Fa},II=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:G1,style:{...bt(e),color:"labels"}}),U1=(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"?rj(Qt()):{},...t.style}}}}},rj=e=>e._partStyles.text??{},rs={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),...rs}):{...o,...rs}}}return{...e,parts:e.parts.map(bI)}}function aj(e,o){let t=z(ej,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?{...Wo("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,...rs,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...L,...rs,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[U1(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...L,...rs},parts:[s,...l?[U1(o.title,`Three ranges,
320
+ one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...L,...rs,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:{...G1,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 K1(e){let o=bp(e.title,{...Wo("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,...Ho},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...Ho},parts:[{kind:"group",name:"Number",props:{...L,sectionPaddingBottom:8},parts:[{...Sp(e.num,13),props:{...U,..._a}}]},wp(o,[e.title])]},{kind:"group",name:"Words",props:{...L,sectionPaddingBottom:4,maxWidth:360,[z1("maxWidth")]:tj,maxWidthPhone:yI},parts:e.description?[SI(e.description,14,void 0,{lineHeight:1.5},{[z1("align")]:"left"})]:[]}]}}function j1(e,o){return{kind:"group",name:"Header",props:{...L,gap:16,gapPhone:16},parts:[Sp(e.num,13),bp(e.title,o)]}}var q1=[["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}]],nj=e=>q1.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function sj(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}),...q1.map(([o,t])=>({...bp(e.title,t),when:r=>nj(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 Ra(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 lt(e){let o=gp.get(e);if(o)return o;let t=oj(e),r=Ra(e),a=r==="editorial"?K1(t):r==="simple"?j1(t,wI):r==="essay"?j1(t,{...W("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?sj(t):aj(e,t);return gp.set(e,a),a}var Da={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:jt,Stats:void 0};var ai=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),tA=e=>o=>R1(Ie(o.columns)??Ie(e.columns)),dj="inline is the head the row draws; an own-box node is skipped (`skip`)",fj={kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-3",...wI}},vp=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Series);return o&&o!=="transparent"?o:void 0},kp=e=>vp(e)===jt,cj={...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},V1={...L,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[vI("share")]:"content"},pj=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},Y1=e=>Me(e.viewLabel)&&!PI(e.viewLabel).hidden,it=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}:{}})),uj=TI([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),mj=TI([["label","Label"],["value","Value"],["body","Card body",!0]]),ni=(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=>Ad(r(l),t)},slots:(l,i)=>({[Pe]:[a(l,i)]})}]}),rA=e=>Array.isArray(e.cards)?e.cards:[],aA=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Pp({title:it(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Us(Vm(o),t),...o})),xj=e=>aA(e).some(o=>fo(o.href)!==void 0),nA=[{key:zm.label,label:"Feature label"},{key:zm.href,label:"Link",kind:"link"}],X1=e=>OO(e.eyebrowLook,"KeyFeatures")==="filled",hj={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...Mo("surface")(e,o),...ai(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:[{...Zn("eyebrow"),when:X1},{...ce("eyebrow"),when:e=>!X1(e)},fj]},ni("Cards",e=>({...L,...La(tA(N1.defaultProps)(e))}),nA,aA,e=>uI(xj(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"}},Z1=(e,o)=>({...up,...Mo("background")(e,o)}),J1=e=>{let o=tA(D1.defaultProps)(e);return{...L,...La(o)}},Ij=TI([["title","Card title"],["body","Card body",!0]]),sA=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Us(Vm(o),t),title:it(o?.title),body:it(o?.body)})),lA=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(lj(a)?t[r]=a.map(lA):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},Q1=(e,o)=>{let t=kI(e)?uI(gj(e)):os(),r=Array.isArray(e.template)?e.template.map(lA):[t],[a]=r;return r.length===1&&a.type===K?{...a,props:{...Z1(e,o),...a.props}}:{type:K,props:{...L,...Z1(e,o),name:"Card"},slots:{[we]:r}}},kI=e=>e.cardStyle==="label-only",iA=e=>sA(e).map((o,t)=>{let r=e.items[t]?.href;return Pp({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),gj=e=>iA(e).some(o=>fo(o.href)!==void 0),eA=e=>Array.isArray(e.template)&&e.template.length===0,oA=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function dA(){let e=t=>({key:ij("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 yj={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...Mo("surface")(e,o),...ne(e,rc)}),box:[...J,...fe(rc)],parts:[{...lt("Cards"),when:e=>!lI(e)},{...ni("Cards",J1,Ij,sA,Q1,{reads:["items"],keep:oA}),when:e=>!eA(e)&&!kI(e)},{...ni("Cards",J1,nA,iA,Q1,{reads:["items"],keep:oA}),when:e=>!eA(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)"}},Sj={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...ai(0,0,1,0),...Ho,...kp(e)?Ba(e,o):{},...cp(vp(e),e,o),...ne(e,hc)}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>kp(o)?Wr(e,o,t):e],...fe(hc)],skip:e=>pp(vp(e)),site:(e,o)=>kp(e.props)?$r(e,o):[],parts:[lt("Series"),ni("Cards",pj,uj,e=>rA(e).map(o=>Pp({num:it(o.num),since:it(o.since),title:it(o.title),body:it(o.desc),count:it(o.entries),countLabel:it(o.entriesLabel)})),(e,o)=>({type:K,props:{...cj,...Mo("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:{...V1,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:{...V1,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...ai(1,0,0,0),...Y1(e)?{}:{[on]:["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)]}},...Y1(e)?[{type:K,props:{...L,name:"View",maxWidthPhone:266},slots:{[we]:[{type:"Text",props:{...U,text:PI(e.viewLabel).text,_partStyles:{text:{...Qt()._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:dj}},bj={...L,direction:"row",columns:3,gap:40,gapPhone:16},wj={...L,gap:8,gapPhone:8,...wo(24),...ai(1,1,1,1)},Cj={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...ai(0,0,1,0),...ne(e,fc)}),box:[...J,...fe(fc)],parts:[ni("Cards",bj,mj,e=>rA(e).map(o=>Pp({label:it(o.label),value:it(o.value),body:it(o.desc)})),(e,o)=>({type:K,props:{...wj,...Mo("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}},fA={Cards:yj,KeyFeatures:hj,Series:Sj,DocMetaCards:Cj};import{SITE_SIDE as YB}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as Tj}from"efficient-easel/draw";import{newId as Oj}from"efficient-easel/data";import{phoneKey as kj}from"efficient-easel/draw";import{isNode as si}from"efficient-easel/data";var as="cardStyle";function cA(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,[kj("share")]:"content"},card:{justify:"between",gap:12,gapPhone:12,sectionHeightMode:"fixed",sectionHeightValue:242,sectionHeightUnit:"px",widthFitPhone:"fixed",widthPhone:800,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1}}},list:{items:{gap:32,gapPhone:32,phoneRow:2},grid:{gap:32,gapPhone:32},row:{gap:32,gapPhone:32},card:{justify:"start",gap:8,gapPhone:8,sectionPaddingTop:20,sectionPaddingBottom:0,sectionBorder:{top:1,right:0,bottom:0,left:0}}}},dt={table:{...Tp.table,listCard:cA(Tp.table.card)},list:{...Tp.list,listCard:cA(Tp.list.card)}},Ghe=[{label:"Table",value:"table"},{label:"List",value:"list"}],Khe=e=>e==="table"||e==="list",vj=e=>[...new Set([...Object.keys(dt.table[e]),...Object.keys(dt.list[e])])];function li(e,o,t){let r={...e};for(let a of vj(o))delete r[a];return{...r,...structuredClone(dt[t][o])}}function Pj(e,o,t){let r=e.props??{},a=Array.isArray(r[Pe])?r[Pe]:[],n=a.findIndex(i=>si(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:li(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Pe]:l}}}function qhe(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>si(s)&&s.type===ro)){let s=a.map(l=>si(l)&&l.type===ro?Pj(l,o,t):l);return{...li(e,"items",o),[as]:o,[r]:s}}let n=a.map(s=>{if(!si(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>si(d)&&d.type===t?{...d,props:li(d.props??{},"card",o)}:d);return{...s,props:{...li(l,"row",o),[r]:i}}});return{...li(e,"grid",o),[as]:o,[r]:n}}var OI=e=>typeof e=="string"?e.trim():"";function pA(e){let o=`${OI(e.prefix)}${OI(e.value)}`,t=OI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var mA={textStyle:"heading-2",...Wo("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},EI={kind:"block",type:"Text",props:{...Aa,_partStyles:{text:mA}},box:[["value","text",(e,o)=>pA(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&pA(o)!==""},uA=e=>Me(e?.supSuffix),xA={textStyle:"body-1",fontRole:"heading",...W("body",16),lineHeight:1.5,letterSpacing:-.01},hA={color:"labels",...W("label",12),lineHeight:1.5,letterSpacing:.24},IA={...L,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[Tj("share")]:"content"},gA={textStyle:"body-5",...W("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},_I=e=>da(e.background,Da.StatsParagraph),ii=e=>_I(e)===jt,Op=e=>({...e,sectionAccent:e.sectionAccent??0}),Ej=(e,o)=>ii(e)?Mo("background",(t,r)=>fp(Op(t),r))(e,o):{},_j={name:"Stats with Text",skip:e=>_I(e)&&_I(e)!=="transparent"&&!ii(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},...Ho,...st(e,"StatsParagraph"),...ii(e)?Ba(Op(e),o):{}}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ii(o)?Wr(e,Op(o),t):e],...Mr("StatsParagraph")],site:(e,o)=>ii(e.props)?$r({props:Op(e.props)},o):[],parts:[lt("StatsParagraph"),{kind:"group",name:"Stats",props:{...L,...dt.table.grid,[as]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...dt.table.row},props:(e,o)=>({...L,...dt.table.card,...Ej(e,o)}),parts:[{...EI,when:(e,o)=>!uA(o)&&EI.when(e,o)},{kind:"group",name:"Figure",props:IA,when:(e,o)=>uA(o),parts:[EI,{kind:"text",key:"supSuffix",props:U,style:gA}]},{kind:"group",name:"Words",props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:U,style:xA},ce("sub",hA)]}]}]}],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"}},Aj=new Set(["value","label",jo]),Fj=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Stats);return!!o&&o!=="transparent"},Bj={name:"Stats",skip:e=>Fj(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Me(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Me(o?.[jo]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(o=>Object.keys(o??{}).some(t=>!Aj.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,...dt.list.grid,[as]:"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,...dt.list.row},props:{...L,...dt.list.card},parts:[{kind:"text",key:"value",props:Aa,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"}},yA={StatsParagraph:_j,Stats:Bj};function SA(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var Lj=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function bA(){let e=(o,t,r,a="")=>({key:Oj("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 Rj(e){return{type:K,props:{...L,name:"Card",...structuredClone(dt[e].listCard)},slots:{[we]:[{type:K,props:{...IA,name:"Figure"},slots:{[we]:[Fe("figure",Aa,mA),Fe("superscript",U,gA)]}},{type:K,props:{...L,name:"Words",gap:4,gapPhone:4},slots:{[we]:[Fe("label",{...U,widthFit:"fill"},xA),Fe("body",{...U,widthFit:"fill"},hA,!0)]}}]}}}function AI(e,o,t=4){return{type:K,props:{...L,name:"Stats",direction:"row",columns:t,...structuredClone(dt[o].items),[as]:o},slots:{[we]:[{type:ro,props:Ad(e,Lj),slots:{[Pe]:[Rj(o)]}}]}}}var wA={heading:"Ways to pay"},CA=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],kA=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],pIe={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as Dj}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as PA}from"efficient-shell/format";var Ep="Flex",Nj={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},Mj={FooterPayment:"PaymentLogosBlock"},Hj=e=>{let{id:o,...t}=e;return t},vA=e=>typeof e=="string"?e:"",ns={sm:12,md:13,lg:15},TA={sm:{mark:16,words:ns.sm},md:{mark:20,words:ns.md}},Wj="md",OA=1.5,$j={size:13,lineHeight:OA,width:280},zj=14,Uj=40,jj=e=>PA(["left","center","right"],"left",e);function Gj(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 Kj(e,o,t){let r=t(e,Hj(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:EA(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=kd(e,r.props);return a===r.props?r:{...r,props:a}}function EA(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Dt(r))a[n]=EA(a[n],o,t);return{...r,props:a}})}function _A(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=z(Nj,e.type)??z(Mj,e.type);if(n)return[Kj(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(Jv*((Ie(r.widthPct)??100)/100)),href:"/",align:s,...Gj(r)}),i=vA(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...$j}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&co(ns,r.size)?r.size:Wj;return[o("Text",{text:vA(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:ns[s],lineHeight:OA}}})]}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?{[Dj("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Ep,{direction:r.direction==="horizontal"?"row":"column",gap:Qv("FooterGroup",r.gap),align:PA(["start","center","end","stretch"],"start",r.align),...Nm,content:s.flatMap(l=>_A(l,o,t))})]}default:return[]}}function di(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:Uj,content:f}),s=[],l=[];for(let f of a){let x=_A(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:zj,align:"stretch",...Nm,content:x}))}(l.length||!s.length)&&s.push(n(l));let i=o(Ep,{direction:"column",content:[o("LegalLineBlock")]}),d=nP(Je,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as FI,readHidable as qj}from"efficient-easel/draw";import{parseOption as Vj}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)=>Me(r?.src)||Me(r?.[o])}]}]}),Yj={...ce("heading",{color:"labels",letterSpacing:.2}),props:{...U,align:"center"}},Xj={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...ne(e,kl(e))}),box:[...J,...fe(kl),["bandPadding","sectionPaddingTop",(e,o)=>ne(o,kl(o)).sectionPaddingTop]],parts:[Yj,{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"}},Zj={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:nw(4,"main",{sectionCorners:2})},Jj={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,Xt],props:e=>Me(e[to])?{[to]:e[to],...e[Xt]!==void 0?{[Xt]:e[Xt]}:{}}:{}},props:{...BI,look:"cards",grayscale:!1},slots:e=>({...LI("badges","label"),...Me(e[to])?{[Pe]:[jm()]}:{}})},{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=>Me(o?.text)),props:{...L,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[FI("share")]:"content"},item:e=>qj(e.text).hidden?{props:{_hidden:!0}}:{},parts:[Zj,{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`)"}},AA=e=>Jb(e.align)??"left",FA=e=>Vj(["sm","md"],"sm",e.size),BA=12,LA={name:"Payment logos",boxProps:e=>({...L,direction:"row",wrap:!0,align:"center",justify:Id[AA(e)],gap:BA,gapPhone:BA,phoneRow:2,[FI("share")]:"content"}),box:[...br],parts:[{kind:"text",key:"lead",props:re,styleFrom:e=>({size:ns[FA(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[to,Xt],props:e=>({logoHeight:TA[FA(e)].mark,align:AA(e),...Me(e[to])?{[to]:e[to],...e[Xt]!==void 0?{[Xt]:e[Xt]}:{}}:{}})},props:{...BI,look:"marks",grayscale:!1,sectionAccent:yr},slots:e=>({...LI("methods","label"),...Me(e[to])?{[Pe]:[jm()]}:{}})}],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"}},RA={Logos:Xj,PaymentBadges:Jj,FooterPayment:LA,PaymentLogosBlock:LA},DA=()=>({heading:RE.heading,items:$c()}),NA=()=>({heading:wA.heading,badges:CA(),assurances:kA()}),MA=()=>({...mf,methods:[]});import{mixHex as rG}from"efficient-shell/format";import{MOTION_EASING as Qj,MOTION_TIMING as HA,motionSeconds as WA,parseOption as $A}from"efficient-shell/format";var RI="none",_p=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function UIe(e){return $A(_p,RI,e)}var ss="_gLoop",fi={field:"loop",is:"scroll"},ci="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"}],eG={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function zA(e){return $A(DI,ci,e)}function UA(e){return e==="up"||e==="down"}function Ap(e){return WA("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var jIe=HA.loop.duration.default,oG=HA.loop.delay.default;function jA(e){return WA("loop","delay",e.loopDelay)}function GIe(e,o,t=oG){return`${eG[e]} ${o}s ${Qj.loop}${t?` ${t}s`:""} infinite`}var Fp="_gEntrance";var YIe="none",XIe=[{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 GA="sf-ticker-join";function tG(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function KA(e){return`absolute inset-x-0 ${tG(e)}`}var qA=e=>e.size==="display",aG=(e,o)=>{let t=dp(e,o),r=e.tone!=="plain"&&t?.text&&t.background?rG(t.text,t.background,.3):null;return r?{color:r}:{}},nG=(e,o)=>e.tone!=="plain"&&ox(e.sectionAccent)===null?Mo("background")(e,o):{},VA=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:re,style:e,styleFrom:aG}]}),sG={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...ma,...ec,...ow[Dm(e.separator)]===""?tO:{},...ne(e,xa),...nG(e,o)}),box:[["scrollDirection","scrollDirection",e=>zA(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=>Dm(e)],["join","join",e=>Bp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...J,["tone","sectionAccent",(e,o)=>ox(o.sectionAccent)??yr],...fe(xa)],parts:[VA(oc,e=>!qA(e)),VA(rO,qA)],drop:{...X,...ae,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},YA=e=>e?.tone==="muted",XA=e=>Fd(Ta(e)),lG={name:"Spec Strip",boxProps:(e,o)=>({...Y,...ma,...yl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:XA(o)},...ne(e,ha)}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:XA(t)],...fe(ha)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:U,style:Sl,when:(e,o)=>!YA(o)},{kind:"text",key:"text",props:re,style:Sl,when:(e,o)=>YA(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"}},ZA={Ticker:sG,SpecStrip:lG};import{tabletKey as JA}from"efficient-easel/screen/lib/content/view-tiers";var QA={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[JA("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[JA("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},NI={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as iG}from"efficient-easel/draw";var Lp={eyebrow:Oe.eyebrow,title:`Section heading
321
+ *Highlight line*`,intro:Oe.body,imageCaption:Oe.imageCaption,imageMeta:Oe.imageMeta,cta:je.text},eF=()=>[{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.")}],pge={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Rp={eyebrow:Oe.eyebrow,title:Oe.headingAccent,intro:Oe.body,cta:je.text},oF=()=>[{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}],Ige={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Kv,padTop:120,padBottom:120}};var lF={buttonBorder:{width:0}},Mp=(e,o,t={})=>({textStyle:"body-5",...W("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),ls=(e,o,t={})=>({...Mp(e,o),...Bo,...t}),Hp=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),pi=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),ft=(e,o,t={})=>({kind:"text",key:e,props:U,style:o,...t}),tF=(e,o)=>o?.future===!0,Dp=e=>oE(typeof e?.body=="string"?e.body:""),zI=e=>da(typeof e.background=="string"?e.background:void 0,Da.TimelineTrack),MI=e=>zI(e)===jt?e:{...e,background:"transparent"},dG={name:"Milestone Timeline",skip:e=>pp(zI(e)),boxProps:(e,o)=>{let t=Hr(MI(e),o);return{...Y,direction:"column",gap:60,[iG("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...Ho,...st(e,"TimelineTrack"),...cp(zI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Wr(e,MI(o),t)],...Mr("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,...Ho},parts:[{kind:"list",key:"entries",name:"Year",props:{...L,...QA},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:NI.name,props:{...L,...NI},parts:[ft("date",Mp(13,.22,{color:"accent"}),{when:(e,o)=>!tF(e,o)}),ft("date",Mp(13,.22,{color:"labels"}),{when:tF}),ft("title",{textStyle:"heading-3",...Hp(W("headingSmall",20),-.02,1.1)},{role:"heading"})]},ft("blurb",pi(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",...lF},style:ls(13,.3)}]}]}],site:(e,o)=>$r({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),iF=e=>jI(e)==="spine",fG=e=>UI(e)&&!iF(e),rF=(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:[ft("imageCaption",ls(11,.24,{color:"text"})),ft("imageMeta",ls(11,.24,{color:"accent"}),{props:{...U,align:"right"}})]}]}),aF=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...ao,...e,...lF},style:ls(13,.3)}),HI=()=>[ft("title",{textStyle:"heading-3",...Hp(W("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...U,_partStyles:{text:pi(W("body",17,16),1.6)}},box:[["body","text",(e,o)=>Ms(Dp(o)[0]??"")]],when:(e,o)=>Dp(o).length>0},{kind:"block",type:"Text",props:{...re,_partStyles:{text:pi(W("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Ms(Dp(o).slice(1).join(`
322
+
323
+ `))]],when:(e,o)=>Dp(o).length>1}],WI=()=>ft("date",Mp(13,.24,{color:"accent"})),$I=(e,o,t={})=>ft(e,o,{...t,props:{...U,...t.props??{},align:"center"}}),nF=Wo("headingMedium",40,5,76),sF={sectionBorder:{bottom:1}},cG={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",...sF,...st(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...sF,...st(e,"Timeline")},box:[...J,...Mr("Timeline")],parts:[{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24},when:Np,parts:[ft("eyebrow",ls(12,.3,{color:"accent"}),{role:"eyebrow"}),ft("title",{textStyle:"heading-2",...Hp(nF,-.03,.94)},{role:"heading",mark:"accentItalic"}),ft("intro",pi(W("body",14),1.6),{props:{...re,maxWidth:360},mark:"accentItalic"}),rF(667,419,{},()=>!0),aF()]},{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",ls(12,.3,{color:"accent"}),{role:"eyebrow"}),$I("title",{textStyle:"heading-2",...Hp(nF,-.03,.94)},{role:"heading",mark:"accentItalic"}),$I("intro",pi(W("body",14),1.6),{props:{...re,maxWidth:520},mark:"accentItalic"}),aF({align:"center"})]},rF(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:iF,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:fG,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)"}},dF=()=>({eyebrow:Lp.eyebrow,title:kt(Lp.title),intro:Lp.intro,ctaText:je.text,ctaHref:je.href,entries:eF()}),fF=()=>({eyebrow:Rp.eyebrow,title:kt(Rp.title),intro:Rp.intro,ctaText:je.text,ctaHref:je.href,entries:oF()}),cF={TimelineTrack:dG,Timeline:cG};import{tabletKey as pG}from"efficient-easel/draw";function pF(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var ct=e=>typeof e=="string"?e:e==null?"":String(e),GI=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],is=e=>ct(e.group),bF=e=>`loc-${e}`,wF=e=>ct(e.state).trim()||Cx(ct(e.region)).state,CF=e=>ct(e.country).trim()||Cx(ct(e.region)).country,uF=e=>[wF(e),CF(e)].filter(Boolean).join(" \xB7 "),uG=e=>GI(e).some(o=>ct(o.photo).trim()!==""),mG=e=>GI(e).some(o=>yw(Number(o.lat),Number(o.lng))),xG=(e,o)=>GI(e).filter(t=>is(t)===is(o)).length,hG=(e,o)=>xG(e,o)===1?"wide":uP(e.imageShape),mF=48,Pt=(e,o={})=>({...bt(e),...o}),KI={top:1,right:1,bottom:1,left:1},qI={...L,direction:"row",share:"equal",gap:0},IG=e=>o=>o>wd(o)?{...L,gap:0}:{...qI,...o>1?{phoneRow:e}:{}},VI=!0,gG={kind:"group",name:"Gallery",props:{...L,gap:20,...VI?{_hidden:!0}:{}},when:uG,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:{...ct(e.photo).trim()?{bgImage:ct(e.photo),hover:"mono"}:{},link:`#${bF(o)}`,boxShape:hG(t,e)}}),parts:[{kind:"text",key:"name",props:U,style:Pt(11,{letterSpacing:.22,color:"text"})}],groups:{of:is,name:"Group",props:{...L,gap:10},head:e=>({label:is(e[0]??{})}),parts:[ce("label",Pt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:IG(2),perRow:wd,rowName:"Row",rowProps:{...qI,phoneRow:2}}}]}]},yG={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)=>uF(t)]),when:(e,o)=>uF(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,...Fa,variant:"ghost",arrow:!1,_partStyles:{label:Pt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>pF(ct(e))??"#"]],when:(e,o)=>ct(o?.phone).trim()!==""},{kind:"text",key:"hours",props:re,style:Pt(12,{letterSpacing:.18,lineHeight:1.7})}]},SG={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)=>wF(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>CF(t)])]},bG={kind:"group",name:"Map",props:{...L,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[SG]},wG={kind:"list",key:"locations",name:"City",props:(e,o)=>({...L,gap:0,justify:"between",sectionBorder:KI,jumpHighlight:!0,sectionAccent:Hr(e,o)>=0?Jn(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:bF(o)}}),parts:[yG,bG],groups:{of:is,name:"Group",props:{...L,gap:20},head:e=>{let o=e[0]??{};return{key:is(o),groupName:ct(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)=>ct(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:wd(e),[pG("columns")]:1})}},xF=Pt(10,{letterSpacing:.25}),CG={kind:"block",type:Gt,props:{...L,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:mG,slot:Kt,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...re,text:"Location coordinates \xA9",_partStyles:{text:xF}}},{kind:"block",type:"ButtonBlock",props:{...ao,...Fa,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...xF,color:"labels"}}}}]},hF=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),IF=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],gF=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],yF=e=>e.map(o=>[o,o,(t,r)=>ne(r,Nn)[o]]),SF=["sectionAccent","sectionAccent",Wr],kG=[...br,...vn,...Object.values(Eo)],vG={name:"City pictures",skip:e=>De(e)?`fed by the data source "${De(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:40,anchor:"studios",...Ho,...hF(ne(e,Nn),IF),sectionPaddingBottom:mF,sectionPaddingBottomPhone:mF,...Ba(e,o)}),box:[...J.filter(e=>e!=="sectionAccent"&&e!=="anchor"),SF,["anchor","anchor",e=>Yv(e).trim()?e:"studios"],...yF(IF)],parts:[yp("sectionNumber","heading","tagline"),gG],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...Ho,sectionPaddingTop:0,sectionPaddingTopPhone:0,...hF(ne(e,Nn),gF),...Ba(e,o)}),box:[...kG,SF,...yF(gF)],parts:[wG,CG]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:$r,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)"}},kF={ContactLocations:vG};import{SITE_SIDE as vF,sideLengthAt as PG}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as YI}from"efficient-easel/draw";var TG=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var zr=(e,o)=>()=>({top:e,topPhone:o}),PF=e=>o=>{let t=Mn(e),r={...o,[wr.top]:Zd(o,t).top},a=i=>{let d=PG(r,wr,Xd,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>Ie(o[YI(wr.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}:{}}},OG={Collections:zr(120,70),Events:zr(120,70),FAQ:zr(ac.top,ac.topPhone),GalleryB:zr(120,70),FitmentTable:zr(120,80),SpecTable:zr(120,80),LongRead:zr(nc.top,nc.topPhone),RelatedProducts:zr(0,0),Footprint:PF("Footprint"),ProcessSteps:PF("ProcessSteps"),ProductGrid:e=>({top:Ie(e.padTop)??120,topPhone:0})};function EG(e,o={}){let t=z(wt,e),r=z(OG,e);if(!t||!r)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);let a=t.padKey,n=lt(e),s=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(ea,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=Ra(e)==="editorial"?Ho:{};return{...Y,direction:"column",gap:ri[Ra(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&&cO.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 _G={...L,direction:"accordion",rowStyle:"numbered"},AG={sectionPaddingLeft:vF,sectionPaddingRight:vF},FG={Footprint:{slots:{[Pe]:[Sw()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Ds]:o1().map(t=>({...t,props:{...t.props,...AG}}))}:{},boxProps:{gapPhone:ri.editorial}},FAQ:{slots:{[Pe]:[gw()]},pressHeading:!0,coreBox:{name:"Questions",props:_G},coreProps:{sectionAccent:yr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[Y0]:Il},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}}},TF=Object.fromEntries(TG.map(e=>[e,EG(e,z(FG,e))]));import{BLOCK_WIDTH_LIMIT as BG}from"efficient-easel/draw";var Wp={eyebrow:Oe.eyebrow,title:Oe.headingAccent,deck:"Add a sentence or two introducing this document."},xye={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var FF={minWidth:BG.min},OF=(e,o,t)=>({...ce(e,{...o,...Ql}),props:{...U,align:"right",..._a,...t}}),BF={top:1,bottom:0},ZI=(e,o,t,r)=>({kind:"group",name:e,props:{...L,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),EF={widthFit:"fill",...FF},LG={...W("label",13),letterSpacing:.22,lineHeight:1.8},_F={textStyle:"heading-1",...Wo("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},RG=()=>({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,..._a}}),{kind:"text",key:"title",role:"heading",props:{...U,tag:"h1",...EF},style:_F,mark:"accentItalic",when:e=>!Kh(e)},{kind:"text",key:"title",role:"heading",props:{...U,tag:"h2",...EF},style:_F,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:[ei("label","value",LG,_a)]}]}]},{kind:"group",name:"Deck",props:{...L,maxWidth:760,sectionBorder:BF,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"}}),LF=()=>({eyebrow:Wp.eyebrow,title:kt(Wp.title),deck:Wp.deck,meta:[{label:Oe.label,value:Oe.value},{label:Oe.label,value:Oe.value}]}),DG={...W("label",13),letterSpacing:.18,lineHeight:1.8},AF={...W("label",13),letterSpacing:.22,lineHeight:1.9},NG=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...ne(e,wl)}),box:[...J,...fe(wl)],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:[ei("lead","rest",DG)]}]}]},{kind:"group",name:"Bottom",props:{...L,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:BF,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...U,maxWidth:720,...FF},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",..._a},style:{textStyle:"body-1",fontRole:"heading",...W("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...Ql}}),{kind:"group",name:"Lines",props:{...L,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[OF("text",{color:"labels",...AF})]}]},OF("issueTotal",AF)]}]}],drop:{...X,...ae}}),XI={color:"labels",...W("label",13),letterSpacing:.2},RF=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),JI=(e,o)=>o!==void 0&&RF(e).at(-1)===o,DF=(e,o)=>o!==void 0&&RF(e).includes(o),MG=(e,o)=>DF(e,o)&&!JI(e,o)&&Me(o?.href),HG=()=>({name:"Breadcrumb",skip:e=>Me(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Y,...ma,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...ne(e,gl)}),box:[...J,...fe(gl)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:MG,props:{...ao,...Fa,icon:"none"},style:XI},{...ce("label",XI),when:(e,o)=>DF(e,o)&&!JI(e,o)&&!Me(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}}),NF={DocMasthead:RG(),Masthead:NG(),Breadcrumb:HG()};import{BLOCK_WIDTH_LIMIT as $G,hiddenKeyOf as zG}from"efficient-easel/draw";import{readHidable as QI}from"efficient-easel/draw";function WG(e,o,t){return e||(t?.isEditing?c(o):void 0)}function _ye(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function MF(e,o,t){let r=QI(e);if(!r.hidden)return WG(r.text,o,t)}function HF(e){if(e==null)return;let o=QI(e);return o.hidden?"":o.text}function Aye(e,o,t){return QI(e).hidden?"":MF(e,o,t)}function Fye(e,o,t){return{text:MF(e,je.text,t),href:o||je.href}}var UF="MenuBlock",eg=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Me(o.label)),WF=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(HF(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},$F={top:0,bottom:0,topPhone:0,bottomPhone:0},UG={...Bo,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,[zG("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>WF(e)!=="",props:e=>({...U,textFit:"line",text:WF(e),[yv]:{text:UG}})}]},jF=()=>({tabs:[],metaLabel:Oe.label,metaValue:Oe.value}),zF="the note Text inside the Box (the label, then the value in the accent); no words, no Text",GF={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:$G.min},KF=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[Sn]:0,[Qs]:!0,sectionBorder:{bottom:1},...ne(o,$F)}),box:[...J,...fe($F)]}),GG=()=>KF({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:zF,metaValue:zF},parts:[{kind:"block",type:UF,props:GF},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"}}),KG=()=>KF({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:UF,props:{...GF,[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"}}),qF={DocTabs:GG(),CategoryBar:KG()};import{jsx as Na,jsxs as og}from"react/jsx-runtime";import{slugify as e8}from"efficient-shell/format";import{jsx as zp,jsxs as XF}from"react/jsx-runtime";import{jsx as qG}from"react/jsx-runtime";import{useEffect as VG,useRef as YG}from"react";var VF="data-current",XG=1/3,ZG=2;function JG(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 QG(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=JG(n,o,t);for(let l of r)s!==null&&a(l)===s?(l.setAttribute(VF,""),l.setAttribute("aria-current","location")):(l.removeAttribute(VF),l.removeAttribute("aria-current"))}function YF(){let e=YG(null);return VG(()=>{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-ZG;QG(o,window.innerHeight*XG,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)}},[]),qG("span",{ref:e,hidden:!0})}var qye="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 ZF=(e,o)=>e?{[ra]:o}:{},JF=(e,o)=>xw(e?.[$s(o)]?.role,$p[o],yb),QF=120;function eB({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=ot(),x=l?f:kr;return x.scope(XF("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",{...ZF(a,"number"),style:JF(n,"number"),className:"text-accent",children:Wf(s,h)});return XF("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",{...ZF(a,"entry"),style:JF(n,"entry"),children:Ve(u.label||"Section")}),!d&&I]},`${h}-${u.anchor}`)}),i&&!a&&zp(YF,{})]}))}function oB(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 o8(e,o){return e8(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 oB(e.map((o,t)=>o8(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=ud(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 t8=()=>[{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.")}],r8=QF;function ySe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=r8,pad:a}){let n=vt(),s=rg(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?t8():s,i=ag(l);return Na(de,{as:"section",className:"relative z-[2] bg-bg",children:og("div",{...lO(Jo("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:[Na(eB,{title:e,entries:l.map((d,f)=>({label:d.label||"Section",anchor:i[f]})),stickyTop:r}),Na("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&&Na("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"?Na("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:x.items.map((h,I)=>Na("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):Na("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 tB=18,rB=18,aB=8,a8=10,sg=e=>typeof e=="string"&&e.trim()!=="",nB=e=>rg(e.sections),n8=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},sB={textStyle:"body-1",fontRole:"accent",...W("body",17)},s8=[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:aB,sectionPaddingBottomPhone:aB},parts:[{kind:"group",name:"Heading line",props:{...L,sectionBorder:{bottom:1},sectionPaddingBottom:rB,sectionPaddingBottomPhone:rB},parts:[{kind:"text",key:"heading",role:"heading",props:U,style:{textStyle:"heading-2",...Wo("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:n8,parts:[{kind:"text",key:"text",props:re,style:{...sB,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:re,style:{...sB,lineHeight:1.65,paragraphSpacing:a8},when:(e,o)=>o?.kind==="ul"}]}],l8=900,i8={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[Ip]:l8,sectionBorder:{bottom:1},...ne(e,ic)}),box:["anchor","sectionAccent",...br,...vn,...Object.values(Eo),...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=>nB(e),props:{...L,gap:tB,gapPhone:tB},item:(e,o,t)=>({props:{anchor:ag(nB(t))[o]??`section-${o+1}`}}),parts:s8}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},lB={DocBody:i8};import{phoneKey as p8}from"efficient-easel/draw";import{SITE_SIDE as u8}from"efficient-easel/screen/lib/content/length-units";var ASe={eyebrow:"\u2014 Label",title:`Section headline *here.*
331
+ *Highlight line*`,body:"Describe this section in a sentence or two."},FSe={text:"Learn more"},BSe={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 d8}from"efficient-shell/format";var iB="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",f8="overlay",c8=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Up(e){return d8(c8,f8,e)}var DSe={desktop:40,mobile:45,min:20,max:80,step:5};function NSe(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as m8}from"efficient-shell/format";var dB=(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(nl.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(nl.sizePhone,t?.phone)}}},x8=e=>Up(e.layout)==="stacked",fB=e=>Math.min(Math.max(Ie(e.overlay)??60,0),100),jp=e=>Ie(e)??100,h8={textStyle:"heading-1",sizeToken:{...Wo("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},I8=[ce("eyebrow",W("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:U,style:{...h8,case:e?"upper":"none"},styleFrom:o=>{let t=kx(o);return dB(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 dB(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}]}],cB=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)`,g8=()=>({name:"Scroll-Over Text",skip:e=>x8(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",...oi,placement:"left",darken:fB(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:jp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:jp(e.heightMobile),[qd]:fk}),box:[...J.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>fB(o)],["heightDesktop","sectionHeightValue",e=>jp(e)],["heightMobile","sectionHeightValuePhone",e=>jp(e)]],parts:I8,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(mP.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:cB("Button color"),buttonTextColor:cB("Button text color"),...X}}),mB={textStyle:"heading-2",...W("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},y8={textStyle:"body-1",...W("body",16),lineHeight:1.7},xB=e=>({kind:"text",key:"body",props:{...re,maxWidth:520},style:{...y8,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"},S8=(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"}},hB={boxShapePhone:"landscape"},IB="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)",b8=(e,o)=>({[e]:o,[p8(e)]:o}),w8={textStyle:"heading-2",...W("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},pB=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),C8=()=>({name:"Brand Text",boxProps:(e,o)=>({...Y,...Mo("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:ti({right:1}),sectionBorderPhone:ti({}),...oi,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:u8}),parts:[ce("eyebrow",W("label",14)),{kind:"text",key:"heading",role:"heading",props:U,style:{...mB,case:"none"},mark:"accentItalic"},xB(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(pB(e).length,1),3),...b8("sectionBorder",ti({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:pB,props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Aa,style:w8},ce("label",{...W("label",13),color:"labels",letterSpacing:.2})]}]}]}]},cI("Picture","imageSrc",hB)],drop:{...X,grayscale:IB,...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}},k8=e=>e.textAlign==="center"||e.textAlign==="right"?Id[e.textAlign]:"stretch",v8=e=>Math.min(Math.max(Ie(e.overlay)??60,0),100),gB=e=>typeof e=="string"&&e.trim()!=="",P8={...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},uB=e=>({...cI("Picture","imageSrc",(o,t)=>({...gB(o.imageSrc)&&ig(o.imageOverlay)>0?{darken:ig(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...hB,sectionBorder:ti(e?{left:1}:{right:1}),...yB(e?"left":"right",es(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:P8,style:{...bt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),yB=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},T8={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...L,justify:"center",align:k8(e),placement:m8(["left","center","right"],"left",e.textAlign),...S8(e,72),gap:24,gapPhone:24,...gB(e.textBgSrc)?{darken:v8(e),darkenStyle:"even"}:{},...oi,sectionPaddingTop:100,sectionPaddingBottom:100,...yB(t?"right":"left",es(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:mB,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Gp(e)})},{...xB(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}:{}}}}]}]},O8=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Y,...Mo("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:[uB(!1),T8,uB(!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:IB,...X,...ae}}),SB={IntroBleed:g8(),Manifesto:C8(),Split:O8()};var CB={headPlacement:void 0},bB={top:0,bottom:0,topPhone:0,bottomPhone:0},E8=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...ne(e,bB)}),box:[...J,...fe(bB)],parts:[{kind:"core",keep:"rest",props:CB}],drop:{...X,...ae}}),wB={top:120,bottom:120,topPhone:60,bottomPhone:60},_8=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...ne(e,wB)}),box:[...J,...fe(wB)],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:CB}],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'}}),kB={Form:E8(),SubmitBuild:_8()};import{phoneKey as vB}from"efficient-easel/draw";var TB=1.5,PB={textStyle:"body-1",...W("body",15),lineHeight:TB},A8={...Bo,...W("label",12),letterSpacing:.12,lineHeight:TB},OB=()=>({type:K,props:{...L,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[vB("share")]:"content",[vB("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"},PB),Fe("meta",{...re,tag:"p"},A8)]}},Fe("amount",{...U,tag:"p"},PB)]}});var F8=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...J],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Pe]:[OB()]}}],drop:{...X}}),EB={OrderSummary:F8()};import{phoneKey as B8}from"efficient-easel/draw";var fbe={eyebrow:"By the numbers",title:`A picture worth
332
+ *a thousand rows.*`},_B=["eyebrow","title","body","caption"],cbe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var AB=["eyebrow","title","body"],ube={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 LB=()=>({kind:"group",name:"Words",props:{...L,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...L,direction:"row",phoneRow:2,[B8("share")]:"content"},parts:[Zn("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:yd(16)}]}),RB=e=>(o,t)=>({...Y,sectionAccent:Qn(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...ne(o,Cl)}),DB=[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Qn(e,t)],...fe(Cl)],L8=()=>({name:"Chart",boxProps:RB([42]),box:DB,parts:[LB(),{kind:"group",name:"Chart",props:{...L,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Xn},ce("caption",{color:"muted",...W("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[..._B],drop:{...X,...ae}}),FB=e=>e.align==="left",BB={kind:"group",name:"Card",keepEmpty:!0,props:L,parts:[{kind:"core",keep:"rest",props:Xn}]},R8=()=>({name:"Mockup Card",boxProps:RB("equal"),box:DB,parts:[{...BB,when:FB},LB(),{...BB,when:e=>!FB(e)}],pressKeepsEmpty:[...AB],drop:{...X,...ae}}),NB={Chart:L8(),Mockup:R8()};import{phoneKey as N8}from"efficient-easel/draw";function MB(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function HB(e){return Math.max(e*6,30)}var M8=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),fg=e=>MB(M8(e)),H8=e=>Ap({loopDuration:HB(e)}),W8={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,[N8("share")]:"content"},parts:[Zn("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:yd(16)}]},$8=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:H8(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"]}]}]}]}),z8={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"}}]},U8=[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Qn(e,t)],...fe(pc)],j8={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:Qn(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...ne(e,pc)}),box:U8,parts:[W8,{kind:"group",name:"Rows",props:{...L,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>$8(o))},z8],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...ae}},WB={Integrations:j8},$B=()=>({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 G8={title:"Back online in",zeroText:"Almost done. Back very soon."},zB=["title"],Abe={label:"Countdown",defaultProps:{...G8,endsAt:"",showUnits:!0}};var K8={...ce("title",{...sw(12),color:"muted"}),props:{...U,align:"center"}},q8=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...ne(e,lc)}),box:[...J,...fe(lc)],parts:[K8,{kind:"core",keep:"rest",props:Xn}],pressKeepsEmpty:[...zB],drop:{...X,...ae}}),V8=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...ne(e,cc)}),box:[...J,...fe(cc)],parts:[{kind:"core",keep:"rest",props:Xn}],drop:{...X,...ae}}),UB={Countdown:q8(),FeaturedCover:V8()};var jB={top:80,bottom:80,topPhone:60,bottomPhone:60},Y8=()=>{let e=Cp("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:ri[Ra("FitmentFinder")],...ne(o,jB)}),box:[...J,...fe(jB)],parts:[lt("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...X,...ae,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},GB={FitmentFinder:Y8()};var qp={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},$be={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var ui={eyebrow:Oe.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 KB={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},Kbe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var qB={title:`Section heading
334
+ *Highlight line*`},VB=[{label:je.text,href:je.href,variant:"primary"},{label:je.text,href:je.href,variant:"outline"}],Ybe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var pr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Oe.viewAll},ewe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:Qf,num:pr.num,numStyle:Pl,title:pr.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."},awe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:il,bodySizeDesktop:il,titleSizeMobile:il,bodySizeMobile:il,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[Sn]:0,uppercase:!1}};var X8={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:[lt("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)"}},XB={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},ZB=(e,o)=>o?.variant==="primary",JB=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:ZB,variant:"primary",style:{letterSpacing:.3},props:{...ao,...XB,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!ZB(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...ao,...XB,...o}}]}),Yp=e=>Me(e.title),Z8={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},...st(e,"TitleWithButtons")}),box:[...J,...Mr("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",...Wo("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:[JB(Yp,{widthFit:"fill",iconPosition:"end"}),JB(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 J8(e,o){let t=es(o,{to:gr(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=es(o,{view:"phone",to:gr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:YB,sectionPaddingRight:YB,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var Q8={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...ne(e,xc),...J8(e,o)}),box:[...J,...fe(xc)],parts:[lt("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"}},QB={...L,direction:"row",share:[67],gap:32},eL={...L,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},oL=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),eK={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...st(e,"ParagraphsA")}),box:[...J,...Mr("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...QB,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})]},oL("Stats column",L,{kind:"group",name:"Stats",props:{...eL,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[ei("value","label",{...W("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...QB,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}}]}]},oL("Note column",{...L,justify:"end"},{kind:"group",name:"Founders",props:{...eL,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}},oK={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},...Jt("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:X8,TitleWithButtons:Z8,SectionHeader:Q8,ParagraphsA:eK,Banner:oK},tL={Prose:()=>({eyebrow:qp.eyebrow,title:kt(qp.title),body:qp.body}),TitleWithButtons:()=>({title:kt(qB.title),buttons:VB.map(e=>({...e}))}),SectionHeader:()=>({num:pr.num,title:kt(pr.title),description:pr.description,linkText:pr.linkText,linkHref:je.href}),ParagraphsA:()=>({eyebrow:ui.eyebrow,lead:Oe.body,foundersHeading:ui.foundersHeading,foundersBody:ui.foundersBody,attribution:ui.attribution}),Banner:()=>({...KB,ctaText:je.text,ctaHref:je.href}),ProcessSteps:()=>({num:pr.num,title:kt(pr.title)}),IntroBleed:()=>({eyebrow:Vp.eyebrow,title:kt(Vp.title),body:Vp.body,ctaText:je.text,ctaHref:je.href})};function Xp(){Qe(cg),Qe(yA),Qe(RA),Qe(fA),Qe(ZA),Qe(cF),Qe(kF),Qe(TF),Qe(NF),Qe(qF),Qe(lB),Qe(SB),Qe(kB),Qe(EB),Qe(GB),Qe(NB),Qe(WB),Qe(UB)}var tK=[{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=>i1(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=>f1(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(),m1(e,Zl,{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=>D0(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=>qE(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=>KE(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=>jE(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=>$0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>u0(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=>JE(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=>r_(e)}];function rK(e,o,t){let r=e;for(let a of tK)(!t||a.chrome)&&(r=a.run(r,o));return r}function rL(e,o){return rK(e,{metadata:o},!1)}import{useRef as aK}from"react";import{createRenderKeep as nK}from"efficient-easel/render";function aL(){let e=aK(null);return e.current??=nK(),e.current}import{isNode as sK,isNodeList as lK}from"efficient-easel/data";import{hidableText as iK,readHidable as dK}from"efficient-easel/draw";var sL="slotCounts",pg=e=>!dK(e).hidden&&iK(e).trim()!=="",fK=e=>typeof e=="string"&&e.trim()!=="",cK={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>fK(e.src),Text:e=>pg(e.text),Heading:e=>pg(e.text),Eyebrow:e=>pg(e.eyebrow)},pK=["widthFit","width","minWidth"],nL=e=>lK(e);function uK(e){if(Array.isArray(e.content))return nL(e.content)?e.content:null;let o=Object.values(e).filter(nL);return o.length===1?o[0]:null}function mK(e,o){return[...new Set([lb,...Object.values(z(Pw,e)??{})])].some(t=>Ht(o,t)!=="")}function xK(e){let o=e.props??{},t=z(cK,e.type);if(!t||!t(o)||mK(e.type,o)||ll(o))return!1;let r=o[Gn];if(r!=null&&r!=="")return!1;let a=lp(o);return!pK.some(n=>a[n]!==void 0)}function hK(e){let o=0;for(let t of e)if(!tr(t.props??{})){if(!xK(t))return;o+=1}return o>0?o:void 0}function IK(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!sK(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:uK(l.props);if(typeof i=="string"&&d){let f=hK(d);f!==void 0&&(o[i]=f)}for(let f of Dt(l))a(l.props[f],s||aa(l.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function lL(e,o){return{...e??{},[sL]:IK(o)}}function dCe(e){let o=e.editor?.metadata?.[sL],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 SK({config:e,data:o,metadata:t}){let r=rL(o,t),a=aL(),n=L0(e,B0(r.content)),s=Yf(r.content),l=s.length>0?{...t,[F0]:s}:t;return iL(Xf,{children:iL(yK,{config:n,metadata:lL(l,r.content),keep:a,data:r})})}var dL=gK(SK);import{jsx as $o,Fragment as P7,jsxs as aR}from"react/jsx-runtime";import{Suspense as T7,useMemo as O7}from"react";import{jsx as bK}from"react/jsx-runtime";import{createContext as wK,useCallback as CK,useContext as kK,useState as ug}from"react";var fL=wK({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function bCe({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=ug(null),[n,s]=ug(null),[l,i]=ug(0),d=CK(()=>i(f=>f+1),[]);return bK(fL.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var cL=()=>kK(fL);import{jsx as vK,jsxs as PK}from"react/jsx-runtime";import{createContext as TK,useContext as OK}from"react";var pL=TK(!1);function PCe(){return OK(pL)}function uL({grayscale:e,children:o}){let t=e===!0;return PK(pL.Provider,{value:t,children:[Object.entries(w_(e)).map(([r,a])=>vK("style",{children:a},r)),o]})}import{jsx as EK}from"react/jsx-runtime";import{createContext as _K,useContext as AK}from"react";var mL=_K(null);function _Ce(){return AK(mL)}function xL({ink:e,children:o}){return EK(mL.Provider,{value:e??null,children:o})}import{parseOption as FK}from"efficient-shell/format";var hL="data-lead-ink",RCe="data-header-ink",BK=["auto","light","dark"],LK="auto";function RK(e){return e.type==="IntroBleed"?Up(e.props?.layout)!=="stacked":!0}function IL(e){let o=bf(e);return o&&yP(e)&&RK(o)?"light":null}function DCe(e){return FK(BK,LK,e)}import{useEasel as Pg}from"efficient-easel/easel";import{useEffect as qK}from"react";import{useEaselApi as VK}from"efficient-easel/easel";import{find as DK,walk as gL}from"efficient-easel/data";var NK=()=>"",MK=e=>Km(Nt([e],NK));function bL(e,o,t){if(!Array.isArray(e)||e.length!==1)return null;let r=t.keys??=Object.fromEntries(Object.entries(o()).map(([n,s])=>[n,new Set(s.map(MK))])),a=Km(e);return Object.keys(r).find(n=>r[n].has(a))??null}var HK=()=>({press:[os(ta),os(Ws)],delivery:[xI()]}),WK={},mg=e=>bL(e,HK,WK),$K=e=>De(e)===tb?"delivery":"press";function VCe(e,o){if(!o||De(e)===De(o))return e;let t=mg(e[Pe]),r=$K(e);if(!t||t===r)return e;let a=$m(e,ro),n=r==="delivery"?xI():os(De(e)?Ws:ta),s=Nt([n],Um(a));return{...e,[Pe]:s}}var zK=()=>({cards:[sn(ta),sn(Ws)],label:[ln(!1),ln(!0)]}),UK={},jK=e=>bL(e,zK,UK);function YCe(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=$m(e,lw),n=Array.isArray(e.items)&&e.items.some(i=>fo(i?.href)!==void 0),s=r==="label"?ln(n):sn(De(e)?Ws:ta),l=Nt([s],Um(a));return{...e,[Pe]:l}}var yL=(e,o)=>mI.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function SL(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 GK(e,o){let t=xg(e),r=xg(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||De(t.props)===De(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"&&yL(e,La(n))?SL(e,mp(n)):a==="press"&&yL(e,mp(n))?SL(e,La(n)):e}function wL(e){let o=Zp.get(e);o?o.count+=1:Zp.set(e,{count:1,stop:KK(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 KK(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;gL(t,e.config,n=>{if(n.type!==K||!xg(n.props))return;let s=DK(r,e.config,n.props.id);if(!s||s.node===n)return;let l=GK(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>gL(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function CL(){let e=YK();qK(()=>e?wL(e):void 0,[e])}function YK(){try{return VK()}catch{return null}}import{jsx as Jp}from"react/jsx-runtime";import{useEffect as XK}from"react";import{armScrollProgress as ZK}from"efficient-shell/format";function kL({armed:e,children:o}){return XK(()=>e?ZK():void 0,[e]),o}function hg(){return{style:{"--sf-page-width":Ro}}}function JK({children:e}){return Jp("div",{style:hg().style,children:e})}function ike({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(kL,{armed:!t,children:Jp(JK,{children:r})})})}import{jsx as vL,Fragment as QK}from"react/jsx-runtime";import{createContext as TL,useContext as PL}from"react";var OL=TL({}),EL=OL.Provider,_L=TL(void 0),AL=_L.Provider;function pke(e){let{SectionTextParts:o}=PL(OL),t=PL(_L);return o?vL(o,{...e,sizeCaps:t}):vL(QK,{children:e.children})}import{jsx as g7}from"react/jsx-runtime";import{useEffect as y7,useRef as S7}from"react";var FL="data-easel-overlay-portal";function Qp(e){return e.setAttribute(FL,"true"),()=>{e.removeAttribute(FL)}}import{jsx as f7}from"react/jsx-runtime";import{useEffect as c7,useRef as qL}from"react";import{usePreviewParts as p7}from"efficient-easel/draw/client";import{jsx as e7}from"react/jsx-runtime";import{createContext as o7,useContext as t7,useMemo as r7,useState as a7}from"react";var n7={partStyle:null,setPartStyle:()=>{}},BL=o7(n7);function Ike({children:e}){let[o,t]=a7(null),r=r7(()=>({partStyle:o,setPartStyle:t}),[o]);return e7(BL.Provider,{value:r,children:e})}function ds(){return t7(BL)}import{usePreviewDevice as u7}from"efficient-easel/draw/client";import{shownTier as m7}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as VL,encodePartId as x7}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as h7}from"efficient-easel/canvas";import{createPreviewSelectionContext as s7}from"efficient-easel/draw/client";var Ma="Scrolling Bar",{Provider:Ske,useSelection:LL}=s7("selectedHeroId"),Ig="data-sf-hero-ticker";function RL(e){return`${e}::ticker`}function DL(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as Ur}from"efficient-easel/canvas";import{createPreviewSelectionContext as l7}from"efficient-easel/draw/client";var{Provider:Cke,useSelection:NL}=l7("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(`[${Ur}]`)?.getAttribute(Ur)===o}function ML(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(iv);if(!_)continue;let E=a.get(_);n.push({element:w,partId:Ut(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 _=fv(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===lv(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:Cn(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=Cn(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=Cn(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:Ut(o,_[0].partKey),...E?{label:E}:{}});continue}new Set(_.map(E=>E.key)).size===1&&T.push({element:g,partId:Ut(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 $L(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let f=t(),x=f?.getAttribute(Ur)??null;if(!f||!x)return!1;s=x;let u=ML(e,x,o);return a(f,x,gg(e,x,u)),i=n(()=>{let h=ML(e,x,o);i7(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 i7(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function Ake(e,o){let t=e?.closest?.(`[${Ue}],[${Tr}]`),r=t?.getAttribute(Ue)??t?.getAttribute(Tr),a=r?sv(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:WL(t,r),label:HL(t,r)};let n=e?.closest?.(UL.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${Ur}]`)?.getAttribute(Ur)===o?jL(n,o):null;return s?{id:s,element:n,whole:WL(n,s),label:HL(n,s)}:null}function HL(e,o){let t=ou(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=Vc(o);return r?cr[r.part]:DL(o)?Ma:e.getAttribute(yg)??void 0}var zL="data-loc-pick",UL=[Ue,Tr,Kl,Ig,zL];function jL(e,o){let t=e.getAttribute(Ue)??e.getAttribute(Tr);if(t)return t;let r=e.getAttribute(Kl);if(r)return va(o,r);if(e.getAttribute(Ig)!==null)return RL(o);let a=e.getAttribute(zL)?.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 WL(e,o){let t=e.closest?.(`[${Ur}]`),r=t?.getAttribute(Ur);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(UL.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${Ur}]`)!==t)continue;let s=jL(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as GL,playEntrance as d7}from"efficient-shell/format";var bg=new WeakMap;function KL(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?Hn.next(u,x,a):null;r.set(d,h?h.seen:Hn.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=>Al(o(I.partKey)??{}),u=zn(f.filter(I=>x(I).entrance));if(u){let I=o(u.partKey)??{};n.push(Oc(d,Xs(I,a)));let S=bg.get(d);bg.set(d,u.partKey),(s.get(u.partKey)||S!==void 0&&S!==u.partKey)&&d.hasAttribute(GL)&&d7(d)}else bg.delete(d);let h=d.hasAttribute(GL)?void 0:zn(f.filter(I=>ir(o(I.partKey)??{},a).effect!=="none"));h&&n.push(Ec(d,ir(o(h.partKey)??{},a))),f.some(I=>x(I).hover==="lift")&&(Ac(d.ownerDocument),d.setAttribute(ba,""),n.push(()=>d.removeAttribute(ba)))}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??=Jm(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=Bv({fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,textAlign:n.textAlign,textTransform:n.textTransform,paddingTop:n.paddingTop},Lv(n.fontFamily,i=>s.getPropertyValue(i),t));for(let i of bx)r[i]=a[i];return l}function YL({needles:e,styles:o,motions:t=Tc,type:r,sizeCaps:a,children:n}){let s=qL(null),{selectedPartId:l}=p7(),{setPartStyle:i}=ds(),d=m7(u7()),f=Ct(),x=JSON.stringify(e),u=JSON.stringify(o),h=JSON.stringify(t),I=qL(new Map);return c7(()=>{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:[h7]}),()=>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=$L(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=Rv(F,l,k,B=>bb(B)!==null||Jm(B)!==null);if(P&&l){let B=P,H=VL(l)?.propKey??"",q=al(B)?{}:Fv(Dv(_,lr(r,H)),d,{blockDrawsStyle:sl(r,H),sizeCap:ia(a,H),fonts:f});i({partId:l,...wg(B),base:tu(B,q,f),inks:lf(B),...(()=>{let $=al(B);return $?{styleOwner:$}:{}})()})}Sx(y.filter(B=>!al(B)).map(B=>({element:B,partId:B.getAttribute(Ue)??""})),_,B=>tu(B,void 0,f),B=>lr(r,B),void 0,d,B=>sl(r,B),B=>ia(a,B),f);let C=[...S.querySelectorAll(`[${dv}="${CSS.escape(F)}"][${pf}]`)];C.length&&Sx(C.map(B=>({element:B,partId:x7(F,B.getAttribute(pf)??"")})),_,void 0,B=>B,void 0,d,void 0,void 0,f),g.push(KL([...y.filter(B=>!al(B)).map(B=>{let H=B,q=VL(H.getAttribute(Ue)??"")?.propKey??"";return{element:H,partKey:lr(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]),f7("div",{ref:s,[Eh]:"",style:{display:"contents"},children:n})}import{shownTier as b7}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as w7,usePreviewParts as C7}from"efficient-easel/draw/client";var mi={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)]"},I7={tag:{label:"Tag",follows:"Labels",builtIn:cn(mi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:cn(mi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:cn(mi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:cn(mi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:cn(mi.link),writable:!0}},XL=I7;var fve=ra,ZL={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 JL={SpecTable:ZL,FAQ:hw,Collections:XL,Contents:$p};function QL(){return en("efficient.section-text-regions",()=>new Map)}function gve(e){let o=QL();for(let[t,r]of Object.entries(e)){if(co(JL,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 fs(e){return e?z(JL,e)??QL().get(e)??null:null}function eR({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=S7(null),{selectedPartId:s}=C7(),{setPartStyle:l}=ds(),i=b7(w7()),d=Ct(),f=JSON.stringify([t??null,r??null]);return y7(()=>{let x=n.current,u=fs(o);if(!x||!e||!u)return;let h=[],I=Array.from(x.querySelectorAll(`[${ra}]`));for(let S of I){let v=Gm(u,S.getAttribute(ra));if(!v)continue;let O=Qp(S);O&&h.push(O);let R=$s(v),T=Ut(e,R);S.setAttribute(Tr,T);let g=t?.[R];if(u[v].sized&&Nv(g)){let w=Mv(g,i,{sizeCap:ia(r,R),fonts:d}),_={fontFamily:S.style.fontFamily,fontSize:S.style.fontSize},E=S.getAttribute(sa);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;bv(b)&&S.setAttribute(sa,b),h.push(()=>{$v(S.style,_,D),E===null?S.removeAttribute(sa):S.setAttribute(sa,E)})}if(T===s){let w=tu(S,Wv(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(Tr)}},[e,o,s,l,i,f,d]),g7("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as Cg,Fragment as oR}from"react/jsx-runtime";import{createContext as k7,useContext as tR,useMemo as v7}from"react";var kg=k7(null),rR=e=>e==null||e===""?void 0:String(e);function vg({content:e,children:o}){let t=v7(()=>Qx(e),[e]);return Cg(kg.Provider,{value:t,children:o})}function Dve({id:e,children:o}){let t=tR(kg),r=rR(e);return Cg(oR,{children:o(r?t?.entries.get(r):void 0)})}function Nve({id:e,children:o}){let t=tR(kg),r=rR(e);return Cg(oR,{children:o(r?t?.numbers.get(r):void 0)})}var E7={SectionTextParts:eR},_7="color-mix(in oklab, var(--bg) 40%, #ffffff)",A7="12vh";function F7({style:e,children:o}){let{appState:t}=Pg(u=>u),r=t.data.content,a=t.data.root;if(SP(r))return $o("div",{className:"sf-themed-content",style:{...e,background:_7,minHeight:"100vh",paddingBottom:A7},children:$o("div",{style:{background:"var(--bg)"},children:$o(vg,{content:r,children:o})})});let n=vx(r)&&wP(a,r),s=vx(r)?CP(a,r):null,l=s?{[bP]:s}:null,i=RC(a?.widthChoice),d=i?{[LC]:i}:null,f=n?null:IL(r),x=f?{[hL]:f}:null;return $o("div",{className:`sf-themed-content${n?` ${IP}`:""}`,style:e,...x,...l,...d,children:$o("div",{style:{background:"var(--bg)",minHeight:"100%"},children:$o(vg,{content:r,children:o})})})}function cPe({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:f,children:x}){CL();let u=Pg(I=>I.appState.data.root?.props),h=Pg(I=>VP(I.appState.data.content));return $o(Tg,{siteFooterRootProps:u?.kind===Zv?u:void 0,inPlaceFooterProps:h,propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,body:I=>aR(P7,{children:[$o(F7,{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}=cL(),h=O7(()=>YP(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,We=[WT(HT($?void 0:H),le),$T(oC(Re).italicStrong)].filter(Boolean).join(`
336
+ `),yo=hg(),oo={...Dw(pe),...Gw(xe),...tC(Re),...yo.style,...l?{}:Tf(s)};return aR("div",{className:`sf-theme-surfaces sf-theme-accent ${[EC($?void 0:b),tP($?void 0:y)].filter(Boolean).join(" ")}`.trim(),style:{...wb(ee,le),...vb($?null:q,le),...Nw(pe),...Hw(pe),...Ww(pe),...Bd(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),...eP($?void 0:F,ie.blockGapUnit),...oP($?void 0:y,ie.blockGapPhoneUnit),...Nd($?void 0:C)},"data-sf-headings":eC(ge),[gC]:Dd(d??h),[Jd]:vk(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:[We?$o("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:We}}):null,$o(uL,{grayscale:$?void 0:B,children:$o(EL,{value:E7,children:$o(xL,{ink:Rw(pe),children:$o(T7,{fallback:null,children:$o(q0,{rootProps:d??h,children:x(oo)})})})})})]})}var nR=e=>{e.target?.closest?.("a")&&e.preventDefault()};var B7=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function L7(e,o){return e.replace(B7,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function lR(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=L7(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function iR(e,o){for(let t of Array.from(e)){let r=t.style;r&&lR(r,o);let a=t.cssRules;a&&iR(a,o)}}function sR(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}iR(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))lR(t.style,o)}function dR(e,o){sR(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,sR(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 $7=1440,Eg=800;function cR({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=pl(),[s,l]=Og(null),[i,d]=Og(Eg),[f,x]=Og(null);return R7(()=>{if(!s)return;let u=dR(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]),fR("div",{className:"sf-starter",children:[fR(M7,{padding:"none",className:"sf-starter-picture",children:[Tt("div",{inert:!0,className:"sf-starter-frame",children:Tt(H7,{width:$7,height:i,children:Tt(D7,{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:nR,body:u=>Tt("div",{className:"sf-themed-content",style:u,children:Tt("div",{ref:x,style:{background:"var(--bg)"},children:Tt(dL,{config:o,data:e.layout,metadata:t})})})})})})})}),Tt("div",{className:"sf-starter-add",children:Tt(N7,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Tt(W7,{size:"sm",children:e.title})]})}import{useMemo as JX}from"react";import{sessionRegistry as QX}from"efficient-easel/screen/lib/session";import{useEaselSession as eZ}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as z7}from"efficient-easel/screen/lib/session";var U7={general:!0,commerce:!0,service:!0};function _g(e){let o=e?.sets;return o?Object.fromEntries(ib.map(t=>[t,o.includes(t)])):U7}function Ag(e=z7()){return _g(e.blocks)}import{currentEaselSession as kR}from"efficient-easel/screen/lib/session";import{SITE_SIDE as mR}from"efficient-easel/screen/lib/content/length-units";var pR=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],_Pe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:Qb,separator:ew,scrollDirection:ci}};var uR=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],BPe={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 xR(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:mR,sectionPaddingRight:mR,content:[xo("Text",e,o,Qt()),xo("Text",e,o,Ir()),xo("Text",e,o),xo("Stats",e,o)]}),xR(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,Qt()),xo("Text",e,o,Ir()),xo("Text",e,o),xo("ButtonBlock",e,o)]}),xR(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,Ir()),xo("Text",e,o),xo("Form",e,o)]}}),Ticker:(e,o)=>hR("Scrolling Bar",ec,xa,pR.map(t=>({text:t.text,style:oc,muted:!0})),e,o),SpecStrip:(e,o,t)=>hR("Spec Strip",t?.theme?{...yl,sectionAccent:Fd(or(t.theme))}:{...yl,sectionBorder:{top:1}},ha,uR().map(r=>({text:r.text??"",style:Sl,muted:r.tone==="muted"})),e,o)};function hR(e,o,t,r,a,n){return xo(K,a,n,{...ma,...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 IR(e){return z(ru,e)??null}import{isNodeList as Fg}from"efficient-easel/data";var aTe=Object.keys(cg),j7={Logos:DA,DocMasthead:LF,DocTabs:jF,Timeline:dF,TimelineTrack:fF},G7={PaymentBadges:NA,PaymentLogosBlock:MA,Integrations:$B};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 gR=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function xi(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Ea({type:e,props:{...a(e),...r(),id:n(e)}},o,gR(s));return au(l[t],a,n)}}var K7={Stats:V7,Cards:q7};function q7(){let e=Dr("Cards");if(!e)return null;let o=xi("Cards",e,0,dA);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function V7(){let e=Dr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Ea({type:"StatsParagraph",props:{...o("StatsParagraph"),...SA(),id:t("StatsParagraph")}},e,gR(r)),n=a[0],s=Fg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=SR(AI(bA(),"table")),i=s.map(yR),d=au({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function yR(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(yR)}}:e}var SR=e=>Nt([e],(o,t)=>`${o}-seed-${t}`)[0];function Y7(e,o){if(!u1(e,o))return null;let t=z(K7,e);if(t)return t();let r=Dr(e);return r?xi(e,r,0,z(j7,e)??z(tL,e)??z(G7,e)):null}function X7(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=au(SR(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 cs(e,o=Oa){let t=IR(e);return t?X7(t):Y7(e,o)}import{blockTypesIn as bR}from"efficient-easel/screen/lib/document/block-types-in";var wR=()=>({}),CR=new Map;function Z7(e){let o=CR.get(e);if(o)return o;let t=new Set,r=z(nt,e);if(r)for(let s of r.seeds(wR))for(let l of bR({type:r.childType,props:s}))t.add(l);let a=cs(e);if(a){let s=0;for(let l of bR(a(wR,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return CR.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)&&Z7(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var J7="block-offer";function Lg(e=kR()){return e.cache(J7,()=>Bg(un(e)))}function vR(e,o=kR()){let t=Lg(o);return t?t.offers(e):!0}var PR={name:"catalogueLabel",applies:e=>co(ea,e),draw(e,o){e.label=z(ea,o)}};import{jsx as Hg}from"react/jsx-runtime";import{parseBlockWidthFit as rq,phoneKey as Ot,tabletKey as pt}from"efficient-easel/draw";import{jsx as Q7}from"react/jsx-runtime";import{phoneKey as nu}from"efficient-easel/draw";var TR={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)),OR={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 _R=Array.from(new Set([...mb.map(e=>e.type),...Rg]));function Dg(e,o){return _R.includes(e)||o?.sitsInBox===!0}var eq=Array.from(new Set([..._R,...dd,"GalleryItem"])),oq={not:{context:"parentOffersPositions",is:!1}},tq={not:{context:"parentTileSlot",is:!1}},ER=[ix,nu("gridSpan"),nu("gridRowSpan")],AR={name:"cellWidth",applies:(e,o,t)=>(eq.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=Lo(e.fields??{},a.filter(n=>!ER.includes(n)),oq),e.fields=Lo(e.fields??{},ER,tq)},draw(e){let o=e.render;e.render=t=>{let r=GC(t.gridSpan),a=qC(t.gridRowSpan),n=YC(t[ix]),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 Q7(de,{className:"sf-grid-cell",style:f,...d,children:i})}}};function FR(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 hi={not:{context:"heldByANode",is:!0}};function su(e,o){return"parent"in o?o.parent!=null:!!Vt(o.appState,e.props?.id)}function Vt(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 tn(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var aq=new Set(["Text","Heading"]),nq=new Set(["h1","h2","h3","h4","h5","h6"]);function BR(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&nq.has(o.tag)?!0:Or(o,"text").textStyle?.startsWith("heading-")===!0}var jr={not:{context:"blockOutsideBox",is:!0}},LR={all:[jr,{not:{context:"boxSharesWidth",is:!0}}]},RR={all:[jr,{not:{context:"boxSharesWidthPhone",is:!0}}]},DR={all:[jr,{not:{context:"boxSharesWidthTablet",is:!0}}]};function WR(e,o,t){return{any:[{field:pt(e),is:o},{all:[{field:pt(e),set:!1},t??{field:e,is:o}]}]}}function $R(e,o,t){return{any:[{field:Ot(e),is:o},{all:[{field:Ot(e),set:!1},t??{field:e,is:o}]}]}}var zR={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},sq=[[["_gBlockSize","minWidth",pt("minWidth"),Ot("minWidth"),"maxWidth",pt("maxWidth"),Ot("maxWidth")],jr],[["widthFit"],LR],[[pt("widthFit")],DR],[[Ot("widthFit")],RR],[["width"],{all:[LR,{field:"widthFit",is:"fixed"}]}],[[pt("width")],{all:[DR,WR("widthFit","fixed")]}],[[Ot("width")],{all:[RR,$R("widthFit","fixed")]}]],NR=WR("textFit","shrink",zR),MR=[[["_gText","textFit",pt("textFit"),Ot("textFit")],jr],[["minFont"],{all:[jr,zR]}],[[pt("minFont")],{all:[jr,NR]}],[[Ot("minFont")],{all:[jr,$R("textFit","shrink",NR)]}]],lu=(e,o)=>Vt(o.appState,e.props?.id),iu=e=>!!e&&typeof e.type=="string"&&fd(e.type)!==null,Ng=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Pn(e.type,e.props?.direction)==="row",Mg=e=>{let o=rq(e);return o!==void 0&&o!=="fit"},lq={blockOutsideBox:(e,o)=>!iu(lu(e,o)),boxSharesWidth:(e,o)=>{let t=lu(e,o);return!iu(t)||!Ng(t)?!1:Hm({...t.props,direction:"row"})!==""?!0:Mm(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?.[pt("columns")])!==""||Hm({...t.props,direction:"row"})!=="")return!0;let r=tw(t.props?.[pt("share")])??t.props?.share;return Mm(r)!==""&&!Mg(e.props?.[pt("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)}},iq=e=>/^_[gds][A-Z]/.test(e);function dq(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&&!iq(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function HR(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function fq(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return HR(o,r.indexOf("_dSize")+1,n)}return cq.has(e)&&r.includes("_gSpacing")?HR(o,r.indexOf("_gSpacing"),t):{...o,...t}}var cq=new Set(["Text","Heading"]);function pq(e,o){let{_gText:t,...r}=o;return dq(e,"_gText",r)??{...e,...o}}function uq(e){let o=new WeakMap;return t=>{if(!t||!("textFit"in t))return t;let r=o.get(t);if(!r){r={...t};for(let a of["textFit",pt("textFit"),Ot("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var UR={name:"blockSize",applies:(e,o,t)=>Dg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=aq.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=fq(o,e.fields??{},Zo(n,sq));if(r){let l=Zo(a,MR);if(s=pq(s,l),o==="Text"){let i=Zo(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,MR),d=uq(i),f=e.resolveFields,x=(u,h)=>{let I=f?f(u,h):h.fields,S=v=>BR(o,u?.props??{})?d(v??h.fields):v;return I instanceof Promise?I.then(S):S(I)};e.resolveFields=x}}e.fields=s,Mt(e,{...lq,textWrapsByDefault:l=>!BR(o,l.props??{})})},draw(e,o){mq(e,o)}};function mq(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(xq,{size:n,sectionSize:l??n,atEdge:o===K,canvasAttrs:r.editor?.isEditing?O1(a):jR,inCell:T1(a),fillsPhone:k1(a),widens:E1(a),children:s})}}var jR={};function xq({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=tf(),d=vr(t?"edge":"by-box"),f=d?e:o,x=f.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?Hg(mE,{children:l}):l;return Hg(Pr,{className:[x,u?a:"",h?C1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==jR?{...f.attrs,...r}:f.attrs,children:I})}import{Fragment as Tq,jsx as pu}from"react/jsx-runtime";import{jsx as Po,Fragment as Ug}from"react/jsx-runtime";import{createContext as ps,useContext as Et}from"react";var hq=new Set(["Flex","Grid"]);function Gr(e){return typeof e=="string"&&hq.has(e)}var Ha="contentWidth",Wg="full",$g="content";function gi(e){let o=e?.[Ha];return o===Wg?!1:o===$g?!0:void 0}function GR(e,o){return e&&!o}function du(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!Kk(e)&&!UA(e.scrollDirection)}function Ii(e,o){return Gr(e)&&du(rl(o,!1))?hn({}):hn(o)}function fu(e,o){return typeof e!="string"||!Md(e)||Ks[e]==="rawMarkup"?Ii(e,o).background??"full":Ii(e,o).background??Hd(o).background}function cu(e){return e!=="full"}function KR(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=Gr(d?.type),u=(l?Ii(d?.type,f).content:null)==="content"?!0:s,h=x&&(n.inBox?gi(f)??u:u),I={insideGutter:n.insideGutter||h||x&&du(rl(f,i)),inBox:n.inBox||x};for(let S of Dt({type:d?.type,props:f})){let v=f[S],O=r(v,I,u,!1,i||aa(d?.type,S));if(O!==void 0)return O}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var Iq=" [--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))))]",gq="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",yq="[--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)))]",qR="max-w-[100vw]",Sq=`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))] ${qR}`;function VR(e,o=!1){let t={},r=e.pad??{},a=bk({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=Sr(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${Iq}`:`${gq}${l?` ${s.className}`:""}`,d=o?` ${wC}${e.gutter?` ${CC}`:""}`:"";return{className:`${i} ${yq}${d}`,style:t}}function e0e(e,o=!1){let{className:t,style:r}=VR(e,o);return{className:`${t} ${Sq}`,...Object.keys(r).length?{style:r}:{}}}var bq="[--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 wq="--sf-edge-beyond";function YR(e){return`max(0px,calc((${e===null?Gs:`min(${Gs},${e})`} - ${Ro}) / 2))`}var Cq=`${bq} 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))] ${qR}`;function o0e(e){let{className:o,style:t}=VR(e);return{className:`${o} ${Cq}`,style:{...t,[wq]:e.beyond??"0px"}}}var yi=ps(!1);function p0e(){return Et(yi)}function u0e({children:e}){return Po(yi.Provider,{value:!0,children:e})}var zg=ps(!1);function jg({children:e}){return Po(zg.Provider,{value:!0,children:e})}var XR=ps(null);function Gg({ground:e,children:o}){return Po(XR.Provider,{value:e,children:o})}var Kg=ps(!1);function kq(){return Et(Kg)}function ZR({atTop:e,nested:o}){return Po(Ug,{children:kq()?o:e})}var Si=ps(void 0);function JR({children:e}){return Po(Si.Provider,{value:null,children:e})}function qg(){return Et(Si)===void 0&&!Et(Kg)&&!Et(yi)}function us({own:e,followed:o}){return Po(Ug,{children:qg()?e():o()})}var QR=ps(null);function eD({value:e,children:o}){return Po(QR.Provider,{value:e,children:o})}function oD({draw:e}){return Po(Ug,{children:e(Et(QR))})}function m0e(){return Et(Si)??null}function tD({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(yi),R=vt(),T=R?` ${Sr(I?"site":"box").onceFrame}`:"",g=Et(zg),w=GR(e,O),_=w&&!g,E=ot(),D=!!(l&&_),b=D?u:Co(u??"",E.className)||void 0,F=D||!E.className?i:{...i,...E.attrs},y=s?na(s,_):null,k=y&&R?{root:y.root?{...y.root,className:Jo(y.root.className,!0)}:null,outer:y.outer?{...y.outer,className:Jo(y.outer.className,!0)}:null}:y,P=k?.root??null,C=l&&!_?l:null,B=d&&!h?R?`${tx} ${SC(I?"site":"box")}`:tx:null,H=[_?`${o}${T}`:t,_?B:null,P?.className,C?hk:null].filter(Boolean).join(" "),q=vq(h&&_,P||C?{...a,...P?.style,...C}:a),$=Et(Si),le=Et(XR),pe=d&&f&&$===void 0?{gutter:w,...s?{pad:s.values}:{},beyond:w&&g?YR(le):"0px",...I&&w?{site:!0}:{}}:null,ee=d?Po(Kg.Provider,{value:!0,children:Po(Si.Provider,{value:pe,children:v})}):v,xe=w?Po(yi.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 vq(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as Pq}from"react/jsx-runtime";function rD({children:e}){return Pq(de,{className:GA,children:e})}function Oq({side:e,children:o}){return qg()?pu(rD,{children:pu(de,{className:KA(e),children:o})}):pu(Tq,{children:o})}var aD={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(Oq,{side:r,children:o(t)}):o(t)}}};var nD=(e,o)=>e.fields?.[o]?.type==="slot",Eq=(e,o)=>nD(o,Pe)||Od(e).some(t=>nD(o,t)),sD={name:"cardTemplateOnInsert",applies:(e,o,t)=>Eq(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?kd(o,n):s==="copy"?Cd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as wi}from"react/jsx-runtime";import{Fragment as Wa,jsx as He,jsxs as Vg}from"react/jsx-runtime";import{createContext as Yg,useContext as Kr,useId as Rq}from"react";import{REPEAT_ATTRIBUTE as Dq,REPEAT_INDEX_ATTRIBUTE as Nq}from"efficient-easel/draw";import{jsx as B0e}from"react/jsx-runtime";import{createContext as Fq,useContext as fD,useMemo as Bq}from"react";var lD="title";function iD(e){return`${e}Alt`}function _q(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function dD(e,o){let t={[lD]: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}=_q(n);t[r]=s,t[iD(r)]=l}}return t}function Aq(e,o){return typeof o!="string"?o.flatMap(t=>Aq(e,t)):e===wf||!kP(e)?[]:o==="image"?Px(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:iD(t.key)})):o!=="text"?[]:[{key:lD,label:c("Title")},...Px(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var cD=Fq(null);function Lq(){return fD(cD)?.record??null}function N0e(e){let o=Lq();return o!==null&&o.type===e?o:null}function pD(){let e=fD(cD);return Bq(()=>e&&e.record.type!==wf?dD(e.record,e.dateWords):null,[e])}function X0e({props:e,editing:o,children:t}){let r=Kr(bi);return!o&&Ym(e,r?.row)?null:He(Wa,{children:t})}var mu=Yg(null);function Z0e({field:e,children:o}){let t=Kr(mu);return He(Wa,{children:o(t&&t.field===e?t.id:void 0)})}function Mq(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Ym({[on]:r},o)))?.field??""}var bi=Yg(null),uu=Yg(null),Hq={label:"text-[length:var(--size-label,12px)]"},Wq=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${Hq.label} text-fg-dim`;function J0e({name:e,label:o,editing:t}){let r=Kr(uu)?.(e),a=ef()!=="";return r!=null&&r!==!1?a?He(de,{className:"contents",children:r}):He(Wa,{children:r}):t?He(de,{className:Wq,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function Q0e(){return Kr(bi)}function Xg({type:e,props:o,children:t}){let r=Kr(bi),a=pD(),n=r?.row??a;return He(Wa,{children:t(Ew(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function $q({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=Rq(),{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} ${vE}`:yh,children:[He("button",{type:"button",[OE]:"",className:i?AE:_E,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),He(mu.Provider,{value:f,children:n})]})}function eOe({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=Kr(bi),T=Kr(mu),g=Kr(uu);if(!r||(r.blockCount??0)<=0)return He(Wa,{children:u});let w=R!==null,_=Cw(o),E=x??R?.previewHover,D=r.blockCount===1?He($k,{children:He(r,{className:Fk})}):He(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(Wa,{children:[D,i==="under"?He("span",{"aria-hidden":"true",className:bE}):Uh(C)?Vg("span",{"aria-hidden":"true",className:wE,children:[He("span",{className:CE}),He("span",{className:kE})]}):He("span",{"aria-hidden":"true",className:SE})]}):D,q={[Dq]:`${e}:${t}`,[Nq]:P,...typeof h=="function"?h(B):h},$=d?.[P],le=PE(C,i),pe=$?He($q,{attrs:{...q,...le},selected:C?.selected===!0,hover:i!=="under",action:$,titleField:Mq(f,k),children:H}):T?He("div",{...q,...le,children:He(mu.Provider,{value:null,children:H})}):He("div",{...q,...le,children:H}),ee=I?I(pe,B):pe;return He(bi.Provider,{value:B,children:v?He(uu.Provider,{value:xe=>v(B,xe),children:ee}):g?He(uu.Provider,{value:null,children:ee}):ee},F(B,P))});return He(Wa,{children:O(y)})}var uD={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==ro&&e!==pn,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)=>uv(a(),f,x=>Tw(o,d,x));r.render=d=>{let f=Pv(d),x=MO(d);return d.editor?.isEditing&&l?wi(Xg,{type:o,props:d,children:u=>wi(l,{needles:i(d,u),styles:f,motions:x,type:o,sizeCaps:n,children:wi(AL,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(x).length?s(d):wi(Xg,{type:o,props:d,children:u=>wi(GO,{needles:i(d,u),styles:f,motions:x,type:o,atEdge:o===K,sizeCaps:n,children:s(d)})})}}};import{jsx as mD}from"react/jsx-runtime";var xD={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=xk(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?mD(de,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},Zg=["CollectionCard"],hD={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=WP(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?mD(de,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var ID={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 gD={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 yD,jsxs as zq}from"react/jsx-runtime";var Uq="Flex",SD=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,bD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>SD(t,Hl)?yD(de,{className:Nc,children:t[Hl]==="empty"?null:o(t)}):o(t)}},wD={name:"headBox",applies:(e,o,t)=>e===Uq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>SD(t,Ml)?zq(de,{className:Mc,children:[yD(Hc,{}),o(t)]}):o(t)}};import{createElement as jq}from"react";var CD={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(tr(n))return null;let s=ll(n),l=Hk(s,Vv(n),{sectionClassName:ll(n,{atSectionLine:!0}),line:r});return jq(Dk.Provider,{value:l},a(n))}}};import{jsx as Vq}from"react/jsx-runtime";import{createContext as vD,createElement as kD,useContext as Gq}from"react";var PD=vD(null),Kq=vD(!1),EOe=PD.Provider;function qq(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function TD({name:e,editing:o,children:t}){let r=Gq(PD);return o||qq(e,r?.selected??null,r?.known??[])?t:kD("div",{hidden:!0,style:{display:"none"}},kD(Kq.Provider,{value:!0},t))}var Yq="Flex",OD={name:"showFor",applies:(e,o,t)=>e===Yq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=YE(t[Gn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return Vq(TD,{name:r,editing:a,children:o(t)})}}};var ED=kf.mediaFields,Xq=e=>BP(e)?e.src:e;function Zq(e,o){let t=o;for(let r of z(ED,e)??[])t=LP(t,r,Xq);return t}var _D={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(z(ED,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(Zq(o,r))}};import{jsx as Ci,Fragment as AD,jsxs as FD}from"react/jsx-runtime";var Jq="!grow-0 !shrink-0 !basis-0",Qq=["[.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(" "),e9="flex flex-col w-full min-w-0 [&>*]:grow";function BD({anchor:e}){let o=fa(e),t=vr(),r=ef();return o?Ci("span",{id:o,className:Co(t?`sf-section-anchor ${Jq} ${Qq}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function o9({anchor:e,copiesInBox:o,children:t}){let r=tf()?.columnsRow===!0,a=Wk(),n=fa(e)!=="";return o?Ci(AD,{children:t}):r&&!a&&n?FD(de,{className:e9,children:[Ci(BD,{anchor:e}),t]}):FD(AD,{children:[Ci(BD,{anchor:e}),t]})}var LD={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=>Ci(o9,{anchor:r.anchor,copiesInBox:qo(o,r),children:t(r)})}};import{jsx as t9}from"react/jsx-runtime";var RD=Object.fromEntries(Ub.map(e=>[e,"picture"])),r9={[K]:"box",Ticker:"marquee",...Object.fromEntries(md.map(e=>[e,"cards"])),...RD},DD=(e,o)=>!jd.has(e)&&!!o&&typeof o.render=="function";function ND(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function MD(e,o){let t=e,r=t.render;t.render=a=>{let n=yn(a);return!n||qo(o,a)?r(a):t9(kc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===K,children:r(a)})}}var HD={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&DD(e,t),panel:(e,o,t)=>ND(e,z(r9,o)??"section",t,o),draw:(e,o)=>MD(e,o)},WD={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&DD(e,t),panel:(e,o,t)=>ND(e,z(RD,o)??"block",t,o),draw:(e,o)=>MD(e,o)};import{jsx as a9}from"react/jsx-runtime";var $D=(e,o)=>!jd.has(e)&&!!o&&typeof o.render=="function";function n9(e){let o=vh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function zD(e,o){let t=e,r=t.render,a=n9(o),n=e.drawsPictures===!0;t.render=s=>{let l=$n(s);return!l||qo(o,s)?r(s):a9(Kc,{views:l,...a?{origins:DO(s,a)}:{},takesViewHide:!0,atEdge:o===K,zoomInside:n?"picture":"layer",children:r(s)})}}var UD={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&$D(e,t),draw:(e,o)=>zD(e,o)},jD={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&$D(e,t),draw:(e,o)=>zD(e,o)};import{jsx as s9}from"react/jsx-runtime";import{createElement as l9}from"react";var Jg=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function i9(e,o){let t=e.props??{};return Jg.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Vt(o.appState,t.id))?.type===K}var Qg={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!Ak.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=>i9(i??{},d)?s(u??d.fields):u;return f instanceof Promise?f.then(x):x(f)}},draw(e,o){let t=e.render;e.render=r=>{if(qo(o,r))return t(r);let a=Rk(r);return a?s9(Pr,{className:a.className,style:a.style,...o===K?{attrs:Zb}:null,children:t(r)}):t(r)}}},GD={name:"sectionHeightFillRoot",applies:Qg.applies,draw(e,o){let t=e.render;e.render=r=>{let a=qo(o,r)?null:Mk(Lk(r),Bk(r).join(" "));return l9(Nk.Provider,{value:a},t(r))}}};import{jsx as xu}from"react/jsx-runtime";import{PIN_ATTR as KD,PIN_FRAME_ATTR as d9}from"efficient-shell/format";var VD=XD("sectionSticky",(e,o,t)=>o.isSection(e)&&!pk.has(e)&&!!t&&typeof t.render=="function",!0),YD=XD("cardSticky",(e,o,t)=>Zg.includes(e)&&!!t&&typeof t.render=="function",!1);function XD(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=fx.has(a);r.fields=c9(r.fields??{},Zo(n.stickFields({intro:s,screens:t,above:t}),p9(s))),t&&Mt(r,{heldByANode:su})},draw(r,a){let n=r.render,s=fx.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[KD]===""?xu("div",{[d9]:"",children:u}):u})},f=t?px(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[KD]!==""?d(i):xu(us,{own:()=>d(f),followed:()=>d(i)})}}}}var qD=[St,ss],f9="_gStick";function c9(e,o){let t=Object.keys(e),r=e[Wn];if(!r){let O=t.findIndex(R=>qD.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{[f9]:a,...n}=o,s=O=>O.startsWith(Sn),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(Wn),x=t.findIndex((O,R)=>R>f&&qD.includes(O)),u=x<0?t.length:x,h=t.indexOf(vc),I=h>f&&h<u?h:u,S=O=>[O,O===Wn?{...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 p9(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},uk]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,hi,{not:{field:Qs,is:!0}}]}),[n,s,l]=dk;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],er(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],er(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(er(["stickTopTablet","stickTop"],o,r))],[[l],a(er(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[qd],cx],[[Qs],cx]]}import{jsx as u9}from"react/jsx-runtime";var ZD={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=yk(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,gk(r)),n=t(r);return a?u9(de,{className:Vd,style:{display:"contents",...a},children:n}):n}}};import{jsx as ey}from"react/jsx-runtime";var JD={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=ex.has(o);e.fields={...e.fields,...n?r(Ld,a):r()}},draw(e,o){let t=ex.has(o),r=e.render;e.render=a=>{let n=fC(t?{...a,sectionAccent:Ld(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>ey(Pr,{className:n.className,style:d,children:s}),i=n.style;return qo(o,a)?ey("div",{className:n.className,style:{...i,display:"contents"},children:s}):fu(o,a)!=="content"?l(i):ey(us,{own:()=>l({...i,...js(Ro)}),followed:()=>l(i)})}}},QD={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(Ld,a)})}};import{jsx as Ke}from"react/jsx-runtime";var eN=null;function oy(e){eN=e}function oN(){return eN}import{jsx as m9}from"react/jsx-runtime";var x9="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",tN=Sr("box").frame,ki=`${x9} ${tN}`,h9=Sr("site").frame,I9=Sr("none").frame;function qEe(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?I9:o==="site"?h9:tN}var g9="mx-auto w-full max-w-[1280px] px-[60px]",y9="max-[960px]:px-6",VEe=`${g9} ${y9}`;function YEe({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return m9(tD,{contained:e,framedClass:`${ki} ${o}`,fillClass:`${a} ${o}`,columnClass:ki,style:t,pad:r,part:n,children:s})}var ms="--sf-sw-site",S9="--sf-sw-content",b9="--sf-bg-cap",w9="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",aN="contents view-wide:[--sf-site-width:100vw]",ry=({held:e},o,t)=>e?t:Ke(de,{className:o,children:t}),C9=`contents view-wide:[--sf-site-width:100vw] ${iB} view-wide:[--sf-site-gutter:var(--intro-edge)]`,ay=(e,o,t)=>o==="content"?`min(${mn(e,t)},var(${ms}))`:mn(e,t);function vi({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Gs:null:o===null?null:ay(o,r,t)}function Pi(e,o){return o===null?e:Ke(de,{className:"contents",style:{[ms]:Ro},children:Ke(de,{className:w9,style:{[S9]:o},children:e})})}var k9="--sf-content-cap",v9="contents max-view-wide:[--sf-content-cap:none]";function P9({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?ay(o,r,t):r==="content"?null:`var(${ms})`}function T9(e,o){return o===null?e:Ke(de,{className:"contents",style:{[ms]:Ro},children:Ke(de,{className:v9,style:{[k9]:o},children:e})})}var nN=`var(${ms},${Ro})`,qr=(e,o,t="")=>e==="content"?Ke(de,{className:t||void 0,style:js(Ro),children:Ke(Gg,{ground:nN,children:o})}):o;function sN(e,o,t,r,a){if(ty(t))return qr(r,ry(t,aN,Ke(jg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return qr(r,e({...o,contained:!1}),a);let n=vi(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):qr(r,Pi(Ke(jg,{children:e({...o,contained:!0})}),n),a)}function O9(e,o,t,r,a){if(t==="hero"){let l=Pi(e(o),vi(r,r.band));return r.band==="full"?Ke(de,{style:{[AC]:"none",[FC]:"initial",[BC]:"initial"},children:l}):r.band==="content"?Ke(de,{style:Nd(!0),children:l}):l}let n=r.band??"full",s=Cr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return qr(n,e(o),s);let l=r.contentMax===null?Ro:ay(r.contentMax,n,r.contentMaxUnit);return Ke(de,{className:"contents",style:{[ms]:Ro},children:qr(n,Ke(de,{className:s||void 0,style:js(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=ty(r)?ry(r,C9,e({...o,fullWidth:!1})):Pi(e({...o,fullWidth:l}),l?null:vi(r,n));return n==="content"?Ke(de,{className:"contents",style:{[b9]:Ro},children:i}):i}switch(t){case"both":return qr(n,T9(e(o),P9(r,n)),s);case"contained":return sN(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,aN,e({...o,widthMode:i})):Pi(e({...o,widthMode:i}),r.content==="full"?null:vi(r,n));return t==="productGrid"&&!r.own?n==="content"?Ke(Jf,{className:s?`${ki} ${s}`:ki,children:f=>Ke(de,{className:f,children:d})}):d:qr(n,d,s)}default:return qr(n,Pi(e(o),vi(r,n)),s)}}function rN(e,o,t,r,a){let n=a===K?"edge":"by-box",s=l=>O9(e,o,t,r,l);return n==="edge"?s(!0):Cr(o)===Cr(o,{atSectionLine:!0})?s(!1):Ke(of,{line:n,draw:s})}function E9(e,o){let t=z(Ks,o);if(!t)return;let r=e.render;e.render=a=>{let n=Hd(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):Ke(oD,{draw:I=>I?.background==="content"?Ke(Gg,{ground:nN,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=rN(r,a,t,S,o);if(!Gr(o))return v;let O=gi(a),R=O===void 0?S.content:O?"content":"full";return R===S.content?v:Ke(ZR,{atTop:v,nested:sN(r,a,{...S,content:R,own:!1},S.band??"full",Cr(a))})},d=Ii(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(us,{own:()=>Ke(eD,{value:{background:h.band,content:h.content},children:rN(r,a,t,h,o)}),followed:l})}}var _9={all:[hi,{not:{context:"runsEdgeToEdge",is:!0}}]},lN={name:"sectionWidth",applies:(e,o,t)=>Md(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:z(Ks,o)==="rawMarkup"}),a=Gr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Gr(o)?fN(o,e,n,[Ha]):n;Mt(e,{heldByANode:su}),Gr(o)&&Mt(e,{runsEdgeToEdge:(l,i)=>du(rl(l.props??{},Aw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Lo(s,[Eo.background,Eo.content],Gr(o)?_9:hi)},draw(e,o){E9(e,o)}};function A9(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 F9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),iN={name:"containedWidth",applies:(e,o,t)=>F9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=fN(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=rx(n?.props??{},"page"),d=f=>A9(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}=rx(t,"page");return o({...t,contained:r!=="full"})}}},B9={not:{context:"inHeroGroupRow",is:!0}},dN={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Lo(o.fields??{},["align"],B9),Mt(o,{inHeroGroupRow:(t,r)=>{let a=Vt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Pn("HeroGroup",a.props?.direction)==="row"}})}};function L9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var R9={any:[]},D9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},N9={not:{context:"widthCappedByParent",is:!0}};function fN(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Lo(t,["_gWidth",...r],R9);if(L9(t)){let a=(n,s)=>KR(s.appState?.data?.content,n.props?.id,cu(oN()));return Mt(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Lo(t,r,D9)}return Mt(o,{widthCappedByParent:(a,n)=>"parent"in n?uw(n.parent):FR({props:a.props??{}},n)}),Lo(t,r,N9)}var M9=new Set(["Reviews","Cards","FAQ","Prose","ProductHero","SpecTable","ProductGrid","ParagraphsA","KeyFeatures","Integrations","Stats","StatsParagraph","Chart","Mockup","Testimonials","Logos","ContactRouting","ContactLocations","SubmitBuild","ReviewForm","Form","AppointmentBooking","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Collections","AlloyWheelsListing","CatalogFilterBar","FitmentFinder","GalleryB","DocMasthead","DocBody","DocMetaCards","Masthead","FeaturedCover","LongRead","Series","Events","ArticleBody","SectionHeader","Grid","Flex","Spacer","Divider","CustomHTML","Breadcrumb","CategoryBar","DocTabs","Hero","HeroSingle","IntroBleed","Manifesto","Timeline","TimelineTrack","Footprint","Banner","TitleWithButtons","Ticker","SubscribeBlogs","TyreSizes","TyreFitment","EuTyreLabel","SpecStrip","ProcessSteps","DetailRows","FitmentTable","CompatibleTyres","RelatedProducts","BundleOffer","Split","Gallery","Subscribe","Countdown"]),cN={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(M9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},H9=new Set(["HeroSlide","HeroGroup"]),pN={name:"blockGroups",applies:(e,o,t)=>H9.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 W9=new Set(["Flex","Grid"]),uN=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),$9=(e,o)=>e.fields?.[o]?.ownPictures===!0,z9=["blockCount","blockIds"],U9=new WeakMap,j9=new WeakMap;function G9(e,o){let t=o?j9:U9,r=t.get(e);if(r)return r;let a=e,n=s=>ny(JR,{children:ny(af,{ownPictures:o,children:ny(a,{...s})})});Object.assign(n,e);for(let s of z9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var mN={name:"slotsStartAfresh",applies:(e,o,t)=>!W9.has(e)&&typeof t?.render=="function"&&uN(t).length>0,draw(e){let o=uN(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=G9(s,$9(e,n)))}return t(a)}}};var K9=new Set(["Form","Stats","Logos"]);function xN(){return[...K9]}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,...dd,...xN()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!Pd(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var q9=[mN,_D,bD,TR,OR,pO,xD,ZD,hD,xO,WD,jD,AR,lN,iN,dN,Qg,G0,LD,JD,HD,UD,VD,YD,aD,QD,UR,cN,pN,gD,ID,uD,wD,OD,GD,CD,PR,sD];function hN(e,o,t){let r=o;for(let a of q9)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 V9,DurationIcon as Y9}from"efficient-easel/icons";import{MOTION_TIMING as IN}from"efficient-shell/format";import{useSelectedHost as X9}from"efficient-easel/easel";function xs(e){let{min:o,max:t,step:r,default:a}=IN[e].duration;return _r("Duration",ly(Y9,{}),o,t,r,a,"s")}function hs(e){let{min:o,max:t,step:r,default:a}=IN[e].delay;return _r("Delay",ly(V9,{}),o,t,r,a,"s")}function Is(e,o){let t=e.render,r=a=>{let n=X9();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>ly(r,{...a})}}function hu({readsSpeed:e}){return Is(xs("loop"),(o,t)=>Ap({loopDuration:o,speed:e?t?.speed:void 0}))}function Iu(){return Is(hs("loop"),e=>jA({loopDelay:e}))}import{jsx as no}from"react/jsx-runtime";import{DirectionDownIcon as Z9,DirectionIcon as J9,DirectionLeftIcon as Q9,DirectionRightIcon as eV,DirectionUpIcon as oV,EntranceBounceIcon as tV,EntranceFadeIcon as rV,EntranceFlipIcon as aV,EntranceGlideIcon as nV,EntranceRevealIcon as sV,EntranceRiseIcon as lV,EntranceScaleIcon as iV,EntranceSpinIcon as dV,NoSymbolIcon as fV}from"efficient-easel/icons";import{NoControlMark as cV,noControlField as pV}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as uV,group as mV}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as xV,ENTRANCE_FROM_DEFAULT as yN,ENTRANCE_KINDS as SN,ENTRANCE_KINDS_WITH_FROM as hV,entranceAttrs as IV,playEntrance as gV,readEntrance as yV}from"efficient-shell/format";var SV={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},bV={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},wV={top:()=>no(Z9,{}),bottom:()=>no(oV,{}),left:()=>no(eV,{}),right:()=>no(Q9,{})},bN="Entrance",dy=SN.filter(e=>e!=="none"),wN=e=>({any:[{field:Go.kind,in:e},{all:[{field:Go.kind,set:!1},{field:Ys,in:e}]}]}),gN=(e,o)=>er(Qo.slice(0,Qo.indexOf(e)+1).reverse().map(t=>et(Go.kind,t)),t=>({field:t,set:!0}),t=>t===Go.kind?wN(o):{field:t,in:o}),CV={any:[wN(dy),...Qo.slice(1).map(e=>({field:et(Go.kind,e),in:dy}))]},kV=Qo.flatMap(e=>[[[et(Go.from,e)],gN(e,hV)],[[et(Go.duration,e),et(Go.delay,e)],gN(e,dy)]]),vV={none:()=>no(fV,{}),fade:()=>no(rV,{}),rise:()=>no(lV,{}),scale:()=>no(iV,{}),glide:()=>no(nV,{}),bounce:()=>no(tV,{}),flip:()=>no(aV,{}),reveal:()=>no(sV,{}),spin:()=>no(dV,{})},CN="data-entrance-tile";function PV({kind:e}){let{attrs:o}=IV(yV(e,yN));return no("span",{className:"sf-entrance-stage",[CN]:e,children:no("i",{...o,children:vV[e]()})})}var TV=(e,o)=>{let t=e.querySelector(`[${CN}="${o}"] > i`);t&&gV(t)},OV="Effect",EV=()=>Lf(Go.kind,{label:bN,tileWord:OV,values:SN,fallback:"none",word:e=>SV[e],picture:e=>no(PV,{kind:e}),read:(e,o)=>Xs(e,o).kind,preview:TV}),iy=(e,o)=>Bf(Go[e],o,(t,r)=>Xs(t,r)[e]),_V=xV.map(e=>({label:bV[e],value:e,picture:wV[e]()}));function _t(){let e={[Fp]:mV(bN,{dot:CV}),...EV(),[Ys]:pV({type:"custom",render:()=>no(cV,{})},"always"),_cEntrance:uV(),...iy("from",Tn("From",no(J9,{}),_V,yN)),...iy("duration",xs("entrance")),...iy("delay",hs("entrance"))};return Zo(e,kV)}import{jsx as ut}from"react/jsx-runtime";import{EntranceRevealIcon as AV,NoSymbolIcon as FV,PercentIcon as kN,ScrollFadeInIcon as BV,ScrollFadeOutIcon as LV,ScrollMoveDownIcon as RV,ScrollMoveUpIcon as DV,ScrollParallaxIcon as NV,ScrollZoomInIcon as MV,ScrollZoomOutIcon as HV,ZoomInIcon as WV}from"efficient-easel/icons";import{customize as $V,group as zV}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as PN,SCROLL_EFFECTS_WITH_ZOOM as UV,SCROLL_END as jV,SCROLL_START as GV,SCROLL_ZOOM as KV}from"efficient-shell/format";var TN="Scroll",qV={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"},VV={none:()=>ut(FV,{}),"zoom-in":()=>ut(MV,{}),"zoom-out":()=>ut(HV,{}),"fade-in":()=>ut(BV,{}),"fade-out":()=>ut(LV,{}),"move-up":()=>ut(DV,{}),"move-down":()=>ut(RV,{}),reveal:()=>ut(AV,{}),parallax:()=>ut(NV,{})},YV="Effect",ON=PN.filter(e=>e!=="none"),vN=(e,o)=>er(Qo.slice(0,Qo.indexOf(e)+1).reverse().map(t=>et(uo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),XV={any:Qo.map(e=>({field:et(uo.effect,e),in:ON}))},ZV=Qo.flatMap(e=>[[[et(uo.zoom,e)],vN(e,UV)],[[et(uo.start,e),et(uo.end,e)],vN(e,ON)]]),JV=()=>Lf(uo.effect,{label:TN,tileWord:YV,values:PN,fallback:"none",word:e=>qV[e],picture:e=>VV[e](),read:(e,o)=>ir(e,o).effect}),fy=(e,o,t,r,a)=>Bf(e,_r(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>ir(n,s)[o]);function $a(){let e={[Wn]:zV(TN,{dot:XV}),...JV(),[vc]:$V(),...fy(uo.zoom,"zoom","Zoom",ut(WV,{}),KV),...fy(uo.start,"start","Start",ut(kN,{}),GV),...fy(uo.end,"end","End",ut(kN,{}),jV)};return Zo(e,ZV)}import{jsx as _o}from"react/jsx-runtime";import{AccentIcon as QV,ContrastIcon as eY,EyeIcon as oY,ExpandIcon as tY,FinishIcon as rY,ImagesIcon as aY,NoSymbolIcon as _N,HoverLiftIcon as nY,HoverNextImageIcon as sY,HoverRotateIcon as lY,HoverZoomIcon as AN,OpacityIcon as iY}from"efficient-easel/icons";import{customize as dY,describedAs as FN,group as fY}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as BN}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as ho}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as cY,noControlField as pY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var gu=e=>ho("desktop",fY("Hover",{dot:e})),LN=()=>ho("desktop",dY()),uY="What this does when a shopper points at it, or taps it on a phone.",mY="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",xY="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.",hY="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.",IY="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",gY="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.",yY="Which of the product's pictures the card shows.",SY="Same finish shows the photos of the finish the card shows, else the first group.",bY="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",wY={none:()=>_o(_N,{}),nextImage:()=>_o(sY,{}),rotate:()=>_o(lY,{}),zoom:()=>_o(AN,{}),lift:()=>_o(nY,{}),mono:()=>_o(eY,{})};function cy(e,o){let t=BN({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(vm[r]),picture:wY[r]()})),fallback:o});return FN(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:vm[r]}))})}function RN(){return{[St]:gu({field:Xo,in:Em.filter(e=>e!=="none")}),[Xo]:ho("desktop",{...cy(Em,"none"),description:uY})}}function DN(e){let o=$b(e),t=hd(),r=jP(Fb);return{[St]:gu({any:[o,t]}),[Ge.kind]:ho("desktop",{...Is(cy(Eb,e),(a,n)=>Hb(n??{},e)),description:gY}),...py(t),[_b]:pY({type:"custom",render:()=>_o(cY,{})},"always"),_cHover:LN(),[Ge.angle]:ho("desktop",Ze(Is(r,a=>Wb(a)),o)),[Ge.duration]:ho("desktop",Ze(xs("hover"),o)),[Ge.delay]:ho("desktop",Ze(hs("hover"),o))}}function py(e){let o=zP("Type",_o(aY,{}),Bb.map(a=>({value:a,label:Lb[a]})),xd.kind),t=Tn("Group",_o(rY,{}),Rb.map(a=>({value:a,label:Db[a]})),xd.group),r=Tn("Covers",_o(tY,{}),Nb.map(a=>({value:a,label:Mb[a]})),xd.cover);return{[Ge.mediaKind]:ho("desktop",Ze({...o,description:yY},e)),[Ge.mediaGroup]:ho("desktop",Ze({...t,description:SY},e)),[Ge.cover]:ho("desktop",Ze({...r,description:bY},e))}}function uy(e,o="",t=Lm.includes(o)){let r=Rm(e),a=Vb(e);return{[St]:gu(r),[Ge.kind]:my(zb,e,mY),...Lm.includes(o)?py(hd()):{},_cHover:LN(),...t?NN():{},[Ge.duration]:ho("desktop",Ze(xs("hover"),a)),[Ge.delay]:ho("desktop",Ze(hs("hover"),a))}}function NN(e=!1){let o=a=>e?a:Ze(a,qb()),t=_r("Zoom",_o(AN,{}),nn.min,nn.max,nn.step,nn.min,nn.unit),r=_r("Darken on hover",_o(iY,{}),wn.min,wn.max,wn.step,wn.fallback,wn.unit);return{[Am.zoom]:ho("desktop",o(t)),[Am.darken]:ho("desktop",o(r))}}function my(e,o,t){let r=ho("desktop",{...Is(cy(e,o),a=>Gb({[Xo]:a},o,e)),description:t});return Object.assign(r,{[MN]:o})}var MN="sfPictureResting",EN=new WeakMap;function V1e(e,o,t){let r=e[Ge.kind],a=r?.[MN];if(!r||!a)return e;let n=o.props?.[Xo]==="nextImage",s=n?null:_d(t.appState,o.props?.id);if(!n&&!md.includes(String(s?.type??"")))return e;let l=EN.get(e);return l||(l={...e,[Ge.kind]:my(_m,a,xY)},EN.set(e,l)),l}var CY="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.",kY={none:()=>_o(_N,{}),[Pm]:()=>_o(QV,{})},Y1e=ho("desktop",{...FN(BN({label:c("Hover effect"),options:Tm.map(e=>({value:e,label:c(Om[e]),picture:kY[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Tm.map(e=>({value:e,label:Om[e]}))}),description:CY}),vY=ho("desktop",{...Tn("Show",_o(oY,{}),[{value:Bm,label:"Always"},{value:Fm,label:"On card hover"}],Bm),description:IY});function HN(){let e={any:[Rm("none"),{field:Xo,is:Pm},{field:oa,is:Fm}]},{[St]:o,[Ge.kind]:t,...r}=uy("none","",!0);return{[St]:gu(e),[Ge.kind]:t,[oa]:vY,...py(hd()),...r,...NN(!0)}}var X1e=my(_m,"none",hY);import{jsx as Ti}from"react/jsx-runtime";import{isNodeList as EY}from"efficient-easel/data";import{useEasel as _Y}from"efficient-easel/easel";import{hiddenInView as AY,hiddenKeyOf as xy,hidePatch as FY,slotChildName as BY,slotChildRowName as LY}from"efficient-easel/draw";var PY=new Set(["BookingBox","SubmitBox"]);function TY(e){return typeof e=="string"&&PY.has(e)}var OY=JP(TY,BT);function yu(e,o){return OY(e)||uT(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 RY}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as DY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var WN="notCardOfTemplate",$N={not:{context:WN,is:!0}},hy={any:[gd,$N]},hAe={[WN]:(e,o)=>{let t=Xm(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function bu(e){let o=e.props?.content;return EY(o)?o:[]}var Cu=(e,o)=>AY(e.props??{},o),NY=(e,o)=>e.props?.[xy(o)]!==void 0;function zN(e,o=()=>!1,t="desktop"){return bu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:bu(r).length&&!Cu(r,t)?zN(r,o,t):o(r)?[]:[r])}function MY(e,o,t,r="desktop"){let a=zN(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):NY(a,t);return bu(e).flatMap(a=>r(a)?o(a)?[]:[a,...wu(a,o,t)]:wu(a,o,t))}function HY(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=HY(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 UN(e,o,t,r="desktop"){return Iy(e,o,a=>r==="desktop"&&Cu({props:a},r)===!t?{}:FY(a,r,!t))}function WY(e,o,t){return t==="desktop"?UN(e,o,!0,t):Iy(e,o,()=>({[xy(t)]:void 0}))}function $Y(e,o,t,r,a,n){return BY(e).trim()?t(e):vw({ownerType:o,owner:r,fields:a,slot:n},Ht(e.props))?.label??t(e)}var zY="This page is read-only.";function UY({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>LY(u,n,an,void 0,Su),f=u=>yu(u.type,u),x=MY(e,u=>$Y(u,o,d,t,r,a),f,i);return x.length?Ti(Hx,{parts:x,changed:wu(e,f,i).length>0,shown:u=>x.find(h=>h.id===u)?.shown??!0,disabledReason:l?zY:void 0,onPress:(u,h)=>s(I=>UN(I,u,h,i)),onReset:()=>s(u=>wu(u,f,i).reduce((h,I)=>WY(h,String(I.props.id),i),u))}):Ti(DY,{})}function jY(){try{let e=_Y(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Xm(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 GY({readOnly:e,view:o}){let t=jY(),r=fl();return t?Ti(UY,{...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}})}}):Ti(Hx,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function IAe(e){return Ze(RY(e,{type:"custom",render:({readOnly:o})=>Ti(GY,{readOnly:o,view:e})}),$N)}import{customize as oX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as gy}from"react/jsx-runtime";import{DirectionIcon as KY,LoopMarqueeIcon as qY,NoSymbolIcon as VY}from"efficient-easel/icons";import{customize as YY,describedAs as XY,group as ZY}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as JY}from"efficient-easel/screen/lib/document/effect-tiles";function yy(){return OT("Direction",DI,ci,"A marquee cannot run diagonally, so the corners are not answers.",gy(KY,{}),TT)}var Sy=e=>ZY("Loop",e?{dot:e}:void 0),QY={none:()=>gy(VY,{}),scroll:()=>gy(qY,{})};function eX(){let e=JY({label:c("Loop"),options:_p.map(({value:o,label:t})=>({value:o,label:c(t),picture:QY[o]()})),fallback:RI});return XY(e,{type:"select",label:"Loop",options:_p.map(({value:o,label:t})=>({value:o,label:t}))})}function jN(){return{[ss]:Sy(fi),loop:eX(),_cLoop:YY(),scrollDirection:Ze(yy(),fi),loopDuration:Ze(hu({readsSpeed:!1}),fi),loopDelay:Ze(Iu(),fi)}}var GN={field:oa,set:!0};function tX(){let e=HN(),o=[St,Xo],t=Lo(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==oa),gd),r=Lo(t,[oa],GN),a=Lo(r,[Xo],hy);return Lo(a,[St],{any:[hy,GN]})}function ku(e,o=""){switch(e){case"section":case"block":return{..._t(),...$a()};case"box":return{..._t(),...$a(),...jN(),...tX()};case"picture":return{..._t(),...$a(),...uy(jb(o),o)};case"textPart":return{..._t(),...$a(),...RN()};case"cards":return{..._t(),...$a(),...DN(Ab(o))};case"marquee":return{..._t(),...$a(),[ss]:Sy(),_cLoop:oX(),scrollDirection:yy(),loopDuration:hu({readsSpeed:!0}),loopDelay:Iu()}}}import{blockSizeFieldSet as qX}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as VX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as KN,Fragment as rX,jsxs as aX}from"react/jsx-runtime";import{useSelectedHost as qN}from"efficient-easel/easel";import{VIEW_TIERS as nX,viewKeyAt as sX}from"efficient-easel/draw";var VN=e=>nX.find(o=>Object.values(po).some(t=>sX(t,o)===e))??"desktop";function lX(e,o,t){let r=e(o),a=VN(t);return{top:Yd(r,"top",a),bottom:Yd(r,"bottom",a)}}var iX=e=>e.startsWith(po.bottom)?"bottom":"top";function dX(e,o,t,r){let a=iX(r);return o(t,Yd(e(t),a,VN(r)),a)}function fX({frameOf:e,note:o,rowKey:t}){let r=qN()?.values,a=r?dX(e,o,r,t):null;return a?KN("p",{className:"es-field-hint",children:a}):null}var cX=new Set(bn());function YN(e,o,t){let r=Ar({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=qN()?.values;return n?lX(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!cX.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>aX(rX,{children:[s(l),KN(fX,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as pX}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as uX,deviceMetaOf as JN}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as wy,SETTINGS_BUCKETS as mX}from"efficient-easel/panel";import{BUCKET_KEY as Io,DESIGN_GROUP_KEY as gs}from"efficient-easel/screen/lib/document/field-buckets";var Oi=mX;var xX="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",[xX]:"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"},QN={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},eM={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function XN(e,o,t){let r=`${e}.${o}`;return z(eM,r)??z(QN,r)??z(Cy,t)}function hX(e){return e==="Animation"?[Io.Animation]:[Io.Design,gs[e]]}function vu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=JN(r),n=nr(a?a.inner:r),s=n?z(Cy,n.label):void 0;if(s)for(let l of hX(s))o.includes(l)||o.push(l)}return o}var oFe=[...vu(Ar({tablet:!0,siteSide:!0}),_n("full"),An(),Fn(),cl()),...Object.keys(Ar({tablet:!0,siteSide:!0})),...Object.keys(_n("full")),...Object.keys(An()),...Object.keys(Fn()),...Object.keys(cl())],tFe=[...vu(On()),...Object.keys(On())],rFe=[...vu(En()),...Object.keys(En())],aFe=[...vu(_t()),...Object.keys(_t())],nFe=Object.keys(AT()),sFe=Object.keys(FT()),IX={"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)"},oM={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={...Ar({tablet:!0,siteSide:!0}),..._n("full"),...An(),...Fn(),...On(),...En(),..._t()};for(let o of Object.keys(by)){let t=nr(e[o]),r=t?z(Cy,t.label):void 0;if(!t||t.level!==2||!r||!oM[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 gX=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),yX=new Map([[Io.Design,"Content"],[Io.Animation,"Animation"],...wy.map(e=>[gs[e],e])]);function SX(e){let o=`${e}.`;return Object.keys(IX).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function bX(e,o){let t=JN(e),r=pX(o);return t?uX(t.tier,r):r}function wX(e,o){let t=nr(o);return t?e==="Content"||e==="Animation"?yT(o,t.label):ST(o):o}function ZN(e){return e==="Design"?wy:["Animation"]}function Pu(e,o){let t=[],r=new Set(SX(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=nr(h);if(gX.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=yX.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=XN(o,u,I.label);if(I.level!==2||!O||!oM[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=XN(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:bX(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>nr(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",eM],["KEY_GROUP",QN]]){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=Oi.filter(u=>ZN(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 ZN(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[gs[h]]=Lx(h));for(let O of I)for(let[R,T]of O.entries)x[R]=wX(h,T)}}return x}function tM(e){return Io.Design in e?e:{[Io.Design]:Af("Design",null),[gs.Content]:Lx("Content"),...e}}function rM(e){return Oi.some(o=>Io[o]in e)}function Tu(e){let o=Oi.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 CX}from"efficient-easel/icons";import{SettingsField as kX,SettingsSwitch as vX}from"efficient-easel/panel";import{group as PX,iconOf as TX,sharedStyleKinds as OX}from"efficient-easel/screen/lib/document/box-fields";var EX="Gutter";function _X({value:e,onChange:o,labelId:t}){let r=cu(dl()),a=gi({[Ha]:e})??r,n=s=>o(s?r?void 0:$g:Wg);return Ou(kX,{label:c(EX),labelId:t,icon:TX(Ou(CX,{})),action:Ou(vX,{checked:a,onChange:n,ariaLabelledBy:t})})}function aM(){return OX({_gWidth:PX(Ff),[Ha]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>Ou(_X,{value:e,onChange:o,labelId:`${t??r??Ha}-label`})}})}import{jsx as vy}from"react/jsx-runtime";import{group as AX,sharedStyleKinds as sM}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as FX}from"efficient-easel/screen/lib/document/device-fields";var BX="Content cannot be wider than the background.",ky=e=>c(e==="content"?"Content width":"Full width");function lM(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=ko(),n=Ie(o)??xn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var LX={read:hn},RX={read:hn,drawsFullOnItsOwn:!0},DX={read:DC,clearOnContent:{fullWidth:void 0}};function NX({source:e}){let o=e.read(Nx()),t=fl(),r=lM(e);return vy(RT,{value:o.background??r.background,changed:o.background!==null,detail:ky(r.background),onChange:a=>t(MC(a)),onReset:()=>t(nx("background"))})}function MX({source:e}){let o=e.read(Nx()),t=fl(),r=i=>t({...i,...e.clearOnContent}),a=lM(e),n=(o.background??a.background)==="content",s=bT({row:ax,label:LT,grid:{min:xn.min,max:n?a.px:xn.max,step:xn.step},valueKey:Eo.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return vy(DT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:xn.max,changed:o.content!==null,detail:a.content==="full"?ky("full"):`${ky("content")} ${a.px}px`,fullClosed:n,hint:n?BX:void 0,onMode:i=>r(HC(i)),onPx:i=>r({...WC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(nx("content"))})}var nM=(e,o)=>FX("desktop",{type:"custom",render:()=>vy(e,{source:o})}),iM=e=>({[Eo.background]:nM(NX,e),[Eo.content]:nM(MX,e),[Eo.contentMax]:Dx(),...UP(ax,Eo.content)});function dM(e){let o=e?.drawsFullOnItsOwn?RX:LX;return sM({_gWidth:AX(Ff),...iM(o)})}function OFe(){return sM({...iM(DX),fullWidth:Dx()})}import{deviceMetaOf as cM}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as HX}from"efficient-easel/screen/lib/document/panel-no-control-mark";function WX(e,o){let t=cM(o),r=t?t.inner:o;if(nr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=HX(r);return a==="always"?!1:a==="authored-copy"?Xk(e):!0}function fM(e){let o=cM(e),t=o?o.inner:e,r=nr(t);return r?gT(t)?0:r.level:null}function $X(e,o,t){return t?o===0&&e===Io.Design||o===1&&e===gs.Content:!1}var zX=new WeakMap,UX=new WeakMap;function pM(e,o="section"){let t=o==="page"?UX:zX,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([x,u])=>({key:x,field:u,level:fM(u),draws:WX(x,u)||o==="page"&&fM(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&&!$X(a[x].key,u,n)&&s.add(a[x].key)}let l=n&&rM(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?tM(d):d);return t.set(e,f),f}import{isShown as jX,showWhenFactReaders as GX}from"efficient-shell/format";var uM=new WeakMap,KX=new Set(Object.values(Io));function mM(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=GX(r,o,t),l=FP(t,{...s,parentOffersPositions:()=>{let I=Vt(t.appState,n);return I===void 0?void 0:ok(I,n)},parentTileSlot:()=>{let I=Vt(t.appState,n);return I===void 0?void 0:tk(I,n)},heroGroupDepth:()=>$d(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,S]of Object.entries(e)){let v=cw(S);!v||AP(v,"device")||jX(v,a,l)||i.push(I)}if(i.length===0)return e;let d=uM.get(e);d||uM.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=>KX.has(I))&&(h=Tu(h)),d.set(f,h),h}var xM={spacingFields:vT,sidesPaddingFields:Ar,ownPaddingFields:YN,sectionShapeFields:En,cardShapeFields:wT,cellWidthFields:CT,widthField:_n,boxGutterFields:aM,sectionOwnWidthFields:dM,heightFields:An,anchorFields:Fn,customCssFields:PT,stickFields:cl,sectionThemeFields:On,animationTabFields:ku,blockSizeFields:({tablet:e,...o}={})=>qX({...o,shorten:!0,say:$P,lengthUnits:vf,...e?{phone:VX}:{}}),assignSectionGroups:Pu,dropEmptyHeadings:pM,rowsShownForNode:mM,SECTION_THEME_FOLLOW_LABEL:fT,BLOCK_THEME_FOLLOW_LABEL:cT,PartAnchors:YL};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 YX(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=hN(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 XX(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];ZX(e,o,a);for(let n of a){let s=n.components.filter(Pd);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(!Td(n))continue;let s=vd(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 ZX(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${pn}". 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(pn)&&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(pn,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function hM(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Bg(o);if(XX(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:xM};for(let[I,S]of t){let v=YX(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 IM(){let e=eZ();return JX(()=>hM(QX(e),un(e)),[e])}import{jsx as Ey,Fragment as SZ,jsxs as bZ}from"react/jsx-runtime";import{useContext as wZ,useEffect as CZ,useMemo as Ru,useRef as NM}from"react";import{EaselCanvas as kZ,repeatCopyAt as vZ,useEasel as PZ}from"efficient-easel/easel";import{jsx as Ty}from"react/jsx-runtime";import{useEffect as aZ,useState as nZ}from"react";import{Banner as sZ}from"efficient-shell/ui";import{useSyncExternalStore as oZ}from"react";import{useScreenDocument as tZ}from"efficient-easel/screen/components/ScreenDocumentContext";var rZ=()=>()=>{},gM=()=>null;function _u(e){return oZ(e?e.subscribe:rZ,e?e.state:gM,e?e.state:gM)}function Au(){let{adapter:e}=tZ();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."},lZ={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."},iZ=Fu.load,dZ=Fu.lock,fZ=Fu.conflict,cZ=Fu.save;function pZ(e){if(!e)return null;if(e.loadFailed)return c(iZ);if(e.lockHolder)return c(dZ,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(fZ);if(e.saveFailed)return c(cZ);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(lZ[o.problem],{section:t,name:r})}function uZ({report:e}){let o=pZ(_u(e)),[t,r]=nZ(null);return aZ(()=>{o||r(null)},[o]),!o||t===o?null:Ty("aside",{className:"sf-canvas-notice",children:Ty(sZ,{tone:"warning",onDismiss:()=>r(o),children:o})})}function yM(){return Ty(uZ,{report:Au()})}import{jsx as Lu}from"react/jsx-runtime";import{useState as RM}from"react";import{Banner as xZ,Button as hZ}from"efficient-shell/ui";import{UndoIcon as IZ}from"efficient-shell/icons/efficient";import{useScreenDocument as gZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as wM}from"react";var Ei=!1,ys=null,Oy=new Set;function Ai(){for(let e of Oy)e()}function CM(e){return Oy.add(e),()=>{Oy.delete(e)}}function kM(){Ei||(Ei=!0,Ai())}function vM(){Ei&&(Ei=!1,Ai())}function SM(){return Ei}function PM(){return wM(CM,SM,SM)}function bM(){return ys}function Bu(){ys&&(ys=null,Ai())}function TM(){return wM(CM,bM,bM)}var _i=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function OM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new _i;let n=await e.restore(o,t);return Of(n.liveState),a(),n}async function EM({access:e,version:o,page:t,...r}){let a=await OM(e,o.id,t?{page:t.id}:{},r);ys={title:mZ(o,t??null),undo:a.undo},Ai()}async function _M({access:e,...o}){let t=ys?.undo;t&&(await OM(e,t,{},o),ys=null,Ai())}function AM(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function mZ(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 FM(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Wt("{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(Qm(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function BM(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function LM(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Qm(),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 yZ}from"efficient-easel/easel";function DM(){let e=TM(),{adapter:o,flushSave:t,reloadFromServer:r}=gZ(),a=o.siteVersions,[n,s]=RM(!1),[l,i]=RM(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await _M({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=yZ({onPress:()=>{d()},busy:n});return e?Lu("aside",{className:"sf-canvas-notice",children:Lu(xZ,{tone:l?"danger":"info",title:e.title,onDismiss:Bu,action:a&&e.undo?Lu(hZ,{variant:"secondary",size:"sm",leftIcon:Lu(IZ,{}),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 TZ,REPEAT_ATTRIBUTE as _y,REPEAT_INDEX_ATTRIBUTE as Ay}from"efficient-easel/draw";import{usePreviewParts as OZ}from"efficient-easel/draw/client";import{ScreenDocumentContext as EZ}from"efficient-easel/screen/components/ScreenDocumentContext";function MM(e){let{mirrorHostStyles:o}=pl(),t=JT(),r=Fy(),a=dl(),n=wZ(EZ),s=oT(n?.docId??null),l=PZ(v=>v.appState.data),i=tT(s,l),d=JSON.stringify(i),f=Ru(()=>i,[d]),x=Ru(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);CZ(()=>(oy(a),()=>oy(null)),[a]);let u=NM(null),h=_Z(u),{onDocument:I}=e,S=v=>{u.current=v,I?.(v)};return bZ(SZ,{children:[Ey(DM,{}),Ey(yM,{}),Ey(kZ,{...e,onDocument:S,typing:h,metadata:x,height:"fill",mirrorStyles:o,frameWrapper:Vf})]})}function Fy(){let{sectionBackgroundWidth:e,themeFromDocument:o}=ko(),t=dl();return Ru(()=>$C(o?null:e,t),[e,t,o])}function _Z(e){let o=Mf(),t=OZ(),r=NM({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?vZ(f):null,u=x?TZ(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=>y0(n,o),copyValue:n=>g0(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"]}],Ss="all",Nu="template";function HM(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 WM(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>HM(o.s.slug)-HM(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function By(e){return e.filter(o=>o.source==="template")}function $M(e){let o=new Set(WM(e).map(t=>t.slug));return Du.filter(t=>t.slugs.some(r=>o.has(r)))}function zM(e,o){if(e===Nu)return By(o);let t=WM(o);if(e===Ss)return t;let r=Du.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var UM=3;function jM(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function VM({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=DZ(),{adapter:n,siteId:s,templateId:l}=RZ(),i=Oo(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=BZ(()=>s?{siteId:s}:{},[s]),x=IM(),u=Fy(),[h,I]=Ly(null),[S,v]=Ly(Ss),[O,R]=Ly(null),T=LZ(null),g=FZ();AZ(()=>{if(!e)return;if(v(Ss),!d){I([]);return}let P=!0;return I(null),i.starters(f).then(C=>P&&I(C),()=>{P&&(I([]),qM.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{qM.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:KM(P,t),title:P,layout:{}}))},E=P=>{w(P.id,()=>i.createFromStarter(P.id,{title:P.title,slug:KM(P.slug,t),...f}))},D=h??[],b=$M(D),F=zM(S,D),y=jM(UM,F),k=GM("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[To(Ry,{label:c("All pages"),active:S===Ss,onClick:()=>v(Ss)}),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(HZ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:T,children:To(UZ,{sidebarTop:To("div",{className:"sf-add-page-blank",children:To(MZ,{variant:"secondary",size:"md",leftIcon:To(NZ,{"aria-hidden":!0}),onClick:_,disabled:!n.createPage||O!==null,children:c("Blank page")})}),sidebar:k,children:GM("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(zZ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?To($Z,{label:c("Loading\u2026")}):F.length===0?To(WZ,{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(cR,{starter:B,config:x,metadata:u,busy:O===B.id,onAdd:E},B.id))},C))})]})})})}import{jsx as GZ}from"react/jsx-runtime";import{createContext as KZ,useContext as YM,useEffect as qZ,useRef as XM}from"react";var Dy=KZ(null);function bLe({open:e,children:o}){let t=XM(!!e);return GZ(Dy.Provider,{value:t,children:o})}function ZM(){let e=YM(Dy);return()=>e?.current?(e.current=!1,!0):!1}function JM(e){let o=YM(Dy),t=XM(e);t.current=e,qZ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var aH="sf-editor-pages-collapsed-groups";function pJ(){let e=My(),{siteId:o,templateId:t}=nH(),r=Oo(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function sH({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=My().chrome?.pageRows,n=dJ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=nH(),f=Bn(),{rows:x,reload:u,setRows:h,getRows:I}=xl(),[S,v]=za(""),[O,R]=za(!1),[T,g]=za(null),[w,_]=za(!1),E=!!Oo(My()).pages.createFromStarter,D=pJ(),[b,F]=za(null),[y,k]=za(()=>{if(typeof window>"u")return new Set;try{let N=window.localStorage.getItem(aH);return new Set(N?JSON.parse(N):[])}catch{return new Set}});QM(()=>{try{window.localStorage.setItem(aH,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=eH(()=>OP(x??[]),[x]),B=S.trim().toLowerCase(),H=N=>!B||N.toLowerCase().includes(B),q=N=>B?!0:!y.has(N),$=eH(()=>new Set((x??[]).map(N=>N.slug)),[x]),le=()=>{if(l.pageCreationInAdminForm&&!E){n.send("storefront-editor:new-page");return}g(null),_(!0)},pe=ZM();QM(()=>{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(mT(c("New popup"),$));await u(),e(N.slug)}catch{g(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{R(!1)}}},oe=XZ(null),[ie,ge]=za(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)})},We=N=>{let te=x??[],he=s.deletePage;if(!i||O||!he||te.length<=1)return;let $e=te.findIndex(ke=>ke.id===N.id),Ao=te.filter(ke=>ke.id!==N.id),Uo=N.slug===d;Kf(N.id,!0),h(Ao),g(null),Uo&&Ao[0]&&e(Ao[0].slug);let Fo=()=>{Kf(N.id,!1);let ke=I()??[];if(ke.some(_s=>_s.id===N.id))return;let ht=[...ke];ht.splice(Math.max(0,Math.min($e,ht.length)),0,N),h(ht)};tH.undoable(c("Deleted \u201C{name}\u201D",{name:N.label}),{actionLabel:c("Undo"),commit:async ke=>{await he(N.id,ke),Kf(N.id,!1)},undo:()=>{Fo(),Uo&&e(N.slug)},onFail:()=>{Fo(),tH.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,$e=Cf(N),Ao=TP(N),Uo=[...$e?[{label:c("Dynamic"),tone:"info"}]:[],...Ao?[{label:c("Lightbox"),tone:"success"}]:[],...N.draft?[{label:c("draft"),tone:"draft"}]:[]],Fo=Uo.length>0?Uo:void 0,ke=!!D&&fJ(N),ht=ke||l.pageCreationInAdminForm||he?Mu(VZ,{children:[ke&&ve(Hu,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:N.label}),disabled:O,onClick:()=>F(N),children:ve(nJ,{size:13})}),l.pageCreationInAdminForm&&ve(Hu,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:N.label}),onClick:()=>yo(N.slug),children:ve(lJ,{size:13})}),he&&ve(Hu,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:N.label}),disabled:O,onClick:()=>We(N),children:ve(Ny,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ve(rH,{icon:ve(sJ,{size:14}),name:N.label,selected:te,onSelect:()=>e(N.slug),badge:Fo,actions:ht,rowProps:{"data-page-slug":N.slug}},N.id)},io=(N,te,he)=>{let $e=he.filter(Boolean);if($e.length===0)return null;let Ao=q(N);return Mu(YZ,{children:[ve(rJ,{count:$e.length,countLabel:Wt("{n} page","{n} pages",$e.length),expanded:Ao,onToggle:()=>P(N),children:te}),Ao&&$e]},N)},So=(a?.rows??[]).filter(N=>H(N.label)).map(N=>{let te=t===N.key;return ve(rH,{icon:N.icon,name:N.label,selected:te,onSelect:()=>r(N.key),badge:{label:c("Preview"),tone:"warning"},actions:ve(Hu,{kind:"plain",label:c("Open the {name} in a new tab",{name:N.label}),onClick:()=>window.open(N.href,"_blank","noopener,noreferrer"),children:ve(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 $e=he.key===PP||he.label===vP?c(he.label):he.label;N.push(io(he.key,$e,he.rows.map(oo)))}return Xe&&!te&&N.push(io("shop",a.title,So)),N})();return Mu("div",{className:"sf-pages",children:[ve(ZZ,{icon:ve(iJ,{}),title:c("Pages"),context:f,actions:ve(JZ,{buttonRef:oe,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?ie!==null:void 0,onClick:Re,children:ve(aJ,{size:15})})}),ie&&ve(oJ,{portal:!0,style:{top:ie.top,right:ie.right},onClose:()=>ge(null),children:Mu("div",{role:"menu","aria-label":c("Add"),children:[ve(oH,{role:"menuitem",onClick:()=>{ge(null),le()},children:c("Page")}),ve(oH,{role:"menuitem",disabled:O,onClick:()=>{ge(null),xe()},children:c("Popup")})]})}),ve("div",{className:"sf-pages-find",children:ve(QZ,{type:"search",leftIcon:ve(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&&ve("div",{className:"sf-note sf-note--error",role:"alert",children:T}),bo===null?ve(eJ,{label:c("Loading\u2026")}):bo.some(Boolean)?ve(tJ,{ariaLabel:c("Pages"),className:"sf-scroll",children:bo}):ve("div",{className:"sf-note",children:S.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),D&&b&&ve(cJ,{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?ve(VM,{open:!0,onClose:()=>_(!1),takenSlugs:$,onCreated:N=>{_(!1),u(),e(N.slug)}}):null]})}import{jsx as dH}from"react/jsx-runtime";import{createContext as hJ,useCallback as IJ,useContext as gJ,useMemo as yJ,useState as SJ}from"react";import{CanvasChromeContext as bJ}from"efficient-easel/easel";import{useSelectHandler as wJ}from"efficient-easel/draw/client";import{parseHexColor as uJ,parseOption as mJ}from"efficient-shell/format";var Wu=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],bs=Wu[0],xJ=["right","left"],Ua="right";function $u(e){return Wu.includes(e??"")?e:bs}function lH(e){return mJ(xJ,Ua,e)}function iH(e){return e&&uJ(e)===e.toLowerCase()?e.toLowerCase():""}var fH="chat",zu={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Ua,launcherLabel:"",showOnPhones:!0};function QLe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:iH(e.launcherColor),launcherIcon:e.launcherIcon?$u(e.launcherIcon):"",launcherPosition:lH(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var cH=hJ({chat:zu,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function eRe({children:e,chat:o=zu,onChatChange:t}){let[r,a]=SJ(!1),n=IJ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=wJ(),i=yJ(()=>({selected:()=>r?fH:null,select:d=>d===fH&&s()}),[r,s]);return dH(cH.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:dH(bJ.Provider,{value:i,children:e})})}var Uu=()=>gJ(cH);import{jsx as Hy}from"react/jsx-runtime";import{DesktopIcon as CJ,PhoneIcon as kJ,TabletIcon as vJ}from"efficient-easel/icons";import{VIEW_TIERS as PJ,VIEW_TIER_LABEL as TJ}from"efficient-easel/draw";var OJ={desktop:Hy(CJ,{}),tablet:Hy(vJ,{}),mobile:Hy(kJ,{})},pH=PJ.map(e=>({id:e,get label(){return c(TJ[e])},icon:OJ[e]}));import{PreviewDeviceContext as $ae}from"efficient-easel/draw/client";import{jsx as EJ}from"react/jsx-runtime";import{createContext as _J,useCallback as uH,useContext as AJ,useMemo as FJ,useRef as BJ}from"react";var LJ=Object.fromEntries(Rf.map(e=>[e,{value:"",error:null}])),mH=_J({links:MT,rows:LJ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function fRe({children:e,value:o}){let t=BJ(()=>{}),r=uH(()=>t.current(),[]),a=uH(s=>{t.current=s},[]),n=FJ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return EJ(mH.Provider,{value:n,children:e})}var Fi=()=>AJ(mH);import{jsx as RJ}from"react/jsx-runtime";import{createContext as DJ,useContext as NJ,useMemo as MJ,useState as HJ}from"react";var xH=DJ(null);function mRe({children:e}){let[o,t]=HJ(null),r=MJ(()=>({surface:o,setSurface:t}),[o]);return RJ(xH.Provider,{value:r,children:e})}function hH(){return NJ(xH)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as WJ}from"efficient-easel/draw/client";var{Provider:IRe,useSelection:ju}=WJ("selectedHeroPart");import{jsx as be,jsxs as Vr,Fragment as A2}from"react/jsx-runtime";import{useEasel as mte,useRootFields as xte}from"efficient-easel/easel";import{EmptyState as hte}from"efficient-shell/ui";function IH({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:Cf({kind:e})?c("Template"):c("Page")}}import{headWords as R2,InspectorHead as Ite,InspectorIconButton as F2}from"efficient-easel/chrome";import{DuplicateIcon as gte,TrashIcon as yte}from"efficient-easel/icons";import{panelFieldsOf as Ste}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 UJ,BlockBoxIcon as jJ,BlockButtonIcon as GJ,BlockDividerIcon as yH,BlockFooterIcon as SH,BlockHeadingIcon as KJ,BlockProductIcon as qJ,BlockSocialIcon as VJ,BlockTextIcon as YJ,CardPaymentIcon as XJ,ChatIcon as ZJ,AccountIcon as JJ,GlobeIcon as QJ,GridIcon as eQ,ImageIcon as $y,MapIcon as oQ,MediaIcon as tQ,PageIcon as rQ}from"efficient-easel/icons";import{jsx as Wy,Fragment as $J,jsxs as zJ}from"react/jsx-runtime";var gH=zJ($J,{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 aQ={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:gH,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"})},nQ=M("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),sQ={footer:SH,Footer:SH,Divider:yH,FooterDivider:yH,Banner:UJ,Flex:jJ,FooterSocial:VJ,FooterPayment:XJ,page:rQ,website:QJ,AccountBlock:JJ,chat:ZJ,Heading:KJ,Text:YJ,ImageBlock:$y,ButtonBlock:GJ,LocationMap:oQ,Grid:eQ,ProductRef:qJ,heroMedia:tQ,heroImage:$y,heroImage2:$y},lQ={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function ja({type:e,size:o=16,className:t}){let r=lQ[e]??e,a=sQ[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:aQ[r]??nQ})}import{PanelHideButton as B2}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as bte}from"efficient-easel/screen/lib/session-context";import{jsx as Se,jsxs as Bi,Fragment as iQ}from"react/jsx-runtime";import{useEffect as dQ,useId as bH,useState as fQ}from"react";import{IconPicker as cQ}from"efficient-shell/ui";import{SettingsDefaultReset as pQ,SettingsField as Li,SettingsSegmented as uQ,SettingsSwitch as wH}from"efficient-easel/panel";import{ButtonIcon as mQ,ButtonIconIcon as xQ,EyeIcon as hQ,PhoneIcon as IQ,PlacementIcon as gQ,TypeIcon as yQ}from"efficient-easel/icons";var SQ="Chat with us",bQ="We usually reply within a few minutes",wQ="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]=fQ(o);dQ(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return Se(Li,{label:e,icon:Se(yQ,{}),changed:o!=="",action:Se(Ri,{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 Ri({label:e,changed:o,onReset:t}){return Se(pQ,{words:aC()?.panel,label:e,changed:o,onReset:t})}function CQ({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=bH();return Se(Li,{label:e,labelId:s,icon:o,changed:t!==r,action:Bi("span",{className:"inline-flex items-center gap-2",children:[Se(wH,{checked:t,onChange:a,ariaLabelledBy:s}),Se(Ri,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var kQ=Wu.map(e=>({value:e,icon:aT(e)}));function vQ(){let{theme:e}=ko(),o=or(e).themes[0];return Mw(o)??o?.accent??""}function CH(){let{chat:e,setChat:o}=Uu(),t=bH(),r=vQ(),a=e.launcherIcon?$u(e.launcherIcon):bs;return Bi(iQ,{children:[Se(Li,{label:c("Show the chat bubble"),labelId:t,icon:Se(hQ,{}),changed:!e.enabled,action:Bi("span",{className:"inline-flex items-center gap-2",children:[Se(wH,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Se(Ri,{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.")}),Bi(Rx,{title:c("Look"),children:[Se(sT,{label:c("Button color"),icon:Se(mQ,{}),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(Li,{label:c("Icon"),icon:Se(xQ,{}),value:Se(GP,{value:a}),changed:a!==bs,action:Se(Ri,{label:c("Icon"),changed:a!==bs,onReset:()=>o({launcherIcon:""})}),children:Se(cQ,{label:c("Icon"),value:a,options:kQ,onChange:n=>o({launcherIcon:n===bs?"":n})})}),Se(Li,{label:c("Position"),icon:Se(gQ,{}),changed:e.launcherPosition!==Ua,action:Se(Ri,{label:c("Position"),changed:e.launcherPosition!==Ua,onReset:()=>o({launcherPosition:Ua})}),children:Se(uQ,{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(CQ,{label:c("Show on phones"),icon:Se(IQ,{}),checked:e.showOnPhones,fallback:zu.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Bi(Rx,{title:c("Wording"),children:[Se(Gu,{label:c("Title"),value:e.title,placeholder:SQ,onCommit:n=>o({title:n})}),Se(Gu,{label:c("Subtitle"),value:e.subtitle,placeholder:bQ,onCommit:n=>o({subtitle:n})}),Se(Gu,{label:c("Greeting message"),value:e.greeting,placeholder:wQ,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 Ga,Fragment as dS,jsxs as OH}from"react/jsx-runtime";import{useEffect as oee,useId as PH,useState as TH}from"react";import{SettingsField as tee}from"efficient-easel/panel";import{jsx as KQ}from"react/jsx-runtime";import{forwardRef as PQ,createElement as zy}from"react";var kH={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=PQ(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...x},u)=>zy("svg",{ref:u,...kH[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 TQ=[["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",TQ);var OQ=[["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",OQ);var EQ=[["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",EQ);var _Q=[["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",_Q);var AQ=[["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",AQ);var FQ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Vy=se("outline","brand-telegram","BrandTelegram",FQ);var BQ=[["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",BQ);var LQ=[["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",LQ);var RQ=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],Zy=se("outline","brand-whatsapp","BrandWhatsapp",RQ);var DQ=[["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",DQ);var NQ=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3l0 -6",key:"svg-1"}]],Qy=se("outline","brand-youtube","BrandYoutube",NQ);var MQ=[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]],eS=se("filled","brand-facebook-filled","BrandFacebookFilled",MQ);var HQ=[["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",HQ);var WQ=[["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",WQ);var $Q=[["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",$Q);var zQ=[["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",zQ);var UQ=[["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",UQ);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 GQ=[["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",GQ);var eNe="outline",Ku={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},qQ={},iS={fillRule:"evenodd"},VQ=[["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"}]],YQ=[["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",{...qQ,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("")}]],XQ=[["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("")}]],ZQ=se("filled","brand-telegram-filled","BrandTelegramFilled",VQ),JQ=se("filled","brand-line-filled","BrandLineFilled",YQ),QQ=se("filled","brand-wechat-filled","BrandWechatFilled",XQ),eee={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:ZQ},line:{outline:Gy,solid:JQ},wechat:{outline:Xy,solid:QQ}};function vH({platform:e,iconStyle:o,size:t}){let r=eee[e][o];return KQ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var ree={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 aee({platform:e}){let{rows:o,saveLink:t}=Fi(),{value:r,error:a}=o[e],[n,s]=TH(r),[l,i]=TH(!1),d=PH(),f=PH();oee(()=>s(r),[r]);let x=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=NT[e];return OH(dS,{children:[Ga(tee,{label:c(u),htmlFor:d,icon:Ga(vH,{platform:e,iconStyle:"outline",size:18}),children:Ga("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:ree[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&&Ga("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function EH({unavailable:e}){let{canSave:o}=Fi();return!o&&e?Ga(dS,{children:e}):OH(dS,{children:[Ga("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=>Ga(aee,{platform:t},t))]})}import{jsx as Va,Fragment as _ee,jsxs as Aee}from"react/jsx-runtime";import{useId as Fee,useMemo as Bee}from"react";import{useEasel as Lee}from"efficient-easel/easel";import{SettingsField as Ree,SettingsSwitch as Dee}from"efficient-easel/panel";import{EyeIcon as Nee}from"efficient-easel/icons";import{fieldShownInView as Mee}from"efficient-easel/fields";import{usePreviewDevice as Hee}from"efficient-easel/draw/client";import{ROOT_ZONE as Wee}from"efficient-easel/draw";import{jsx as qa,Fragment as lee}from"react/jsx-runtime";import{createContext as iee,useContext as dee,useLayoutEffect as fee,useMemo as AH,useRef as cee,useState as FH}from"react";import{useEasel as BH,useSelectedFields as pee}from"efficient-easel/easel";import{fieldShownInView as uee,Inspector as mee,LEAD_BAND_KEY as xee,planFields as LH}from"efficient-easel/fields";function _H({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 nee}from"react/jsx-runtime";import{EmptyState as see}from"efficient-shell/ui";function Ka(){return nee(see,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as hee}from"efficient-easel/draw/client";import{deviceField as Iee}from"efficient-easel/screen/lib/document/device-fields";var gee="Text",fS=new Map,qu=new Set,yee=Object.fromEntries(Oi.map(e=>{let o=IT[e];return[e,qa(o,{},e)]})),RH=iee(null),See={_partBody:Iee("each",{type:"custom",render:()=>qa(bee,{})})};function bee(){return qa(lee,{children:dee(RH)})}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}=pee(),u=AH(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(ee,xe)=>a?.keys.has(ee)?a.onChange(ee,xe):x(ee,xe),I=hee(),{appState:S,config:v}=BH(ee=>ee),O=_P(I,v,S.data.content??[],S.ui.itemSelector),R=n===void 0?p_(i,t):See,T=AH(()=>{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,_]=FH(()=>new Set(qu)),E=uee({},I),D={key:xee,title:gee},b=BH(ee=>ee.selectedItem)!==null,F=a?.part??t??"",y=`${l}:${F}:${String(I)}`,[k,P]=FH(()=>({tab:fS.get(y)})),C=`${l}:${F}`,B=cee(null),H={...O,node:u},q=LH(g,{values:u,context:H}).buckets,$=_H({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($)&&(LH(Tx(T,u,{...O,device:"desktop"}),{values:u,context:{...H,device:"desktop"}}).buckets.includes($)||$==="Design"&&o>0);fee(()=>{B.current={panel:C,tab:$}});let pe=$==="Design";return qa(RH.Provider,{value:n??null,children:qa(kT.Provider,{value:a?u:null,children:qa(mee,{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:yee,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&&qa(Ka,{})})})})}import{useMemo as wee}from"react";import{useEasel as Cee}from"efficient-easel/easel";import{useSectionOps as kee}from"efficient-easel/screen/lib/document/use-section-ops";var DH=new Map,vee=e=>{let o=DH.get(e);return o||DH.set(e,o=Pu(ku(e),`part:${e}`)),o},Pee=new Set(Oh);function ws(e,o,t){let{getItemById:r,getSelectorForId:a}=Cee(f=>f),n=kee(),s=r(e)?.props??{},l=Sa(s,o),i=JSON.stringify(l),d=wee(()=>Object.fromEntries(Oh.map(f=>[f,l[f]])),[i]);return{part:o,fields:vee(t),values:d,keys:Pee,onChange:(f,x)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=HO(h.props??{},o,f,x);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as Tee,createElement as Oee}from"react";import{deviceField as cS}from"efficient-easel/screen/lib/document/device-fields";var go=()=>({type:"custom",render:()=>Oee(Tee)});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()},Eee=["fontSize","align"];function NH(e){return Eee.includes(e)}var MH={showTicker:go(),items:go()};function HH({heroId:e}){let{appState:o,dispatch:t}=Lee(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=Bee(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:t1.map(I=>({text:I}))},[n]),i=Fee(),d=Hee(),f=h=>Mee(MH[h],d),x=ws(e,r1,"block");if(!n)return Va("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:Wee,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return Va(At,{motion:x,body:Aee(_ee,{children:[!f("showTicker")&&!f("items")&&Va(Ka,{}),f("showTicker")&&Va(Ree,{label:c("Show ticker"),labelId:i,icon:Va(Nee,{}),action:Va(Dee,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&Va(ET,{label:Mx.label,icon:Mx.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as Mi,jsxs as mt}from"react/jsx-runtime";import{useContext as eoe,useEffect as uS,useRef as ooe,useState as XH}from"react";import{FieldSelect as toe,InspectorField as roe,fieldShownInView as aoe}from"efficient-easel/fields";import{InertHint as n2,SettingsField as noe}from"efficient-easel/panel";import{InspectorUpLevel as Qu}from"efficient-easel/chrome";import{StylesIcon as soe,TypeIcon as loe}from"efficient-easel/icons";import{useEasel as ioe}from"efficient-easel/easel";import{TextPartPanel as ZH}from"efficient-easel/copy";import{Button as doe,IconButton as foe,Tooltip as coe}from"efficient-shell/ui";import{jsx as zH,jsxs as $ee}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as zee}from"efficient-easel/strings";import{COPY_CELLS as Cs,COPY_CELL_LENGTHS as WH,CopyBox as Uee,lengthCellUnits as jee}from"efficient-easel/copy";import{PaddingYIcon as Gee}from"efficient-easel/icons";import{onDesktopWords as Kee}from"efficient-easel/screen/lib/document/box-fields";var $H=zee.copy.cells,qee={kind:"spacing"},Vee=["left","center","right","justify"];function Vu(e,o,t,r="desktop"){let a=Ov(e),n=_v(r),s=e[n]??e.size??o.sizePx,l=Av(e,r),i=(f,x,u,h,I)=>{let S=nl[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:zH(Gee,{}),unit:"px",step:kv,shiftStep:10,min:wv,max:Cv};return[{...Cs.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(Cs.fontSize,WH.fontSize,n,Math.round(o.sizePx),$H.fontSize),...n==="size"?{}:{reset:{detail:l?Kee(f=>c(f),`${l.px}px`,l.view):void 0}}},{...Cs.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...Cs.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...Cs.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...i(Cs.paragraphSpacing,WH.paragraphSpacing,"paragraphSpacing",0,$H.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,qee,"padding",o.paddingPx,"Padding")}]}function UH({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 $ee("div",{className:"sf-part-textbox",children:[x,zH(Uee,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:pd,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:nf,align:a?{value:n.align??s.align,allow:Vee,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 JH}from"efficient-easel/draw/client";import{jsx as Yu,Fragment as Yee,jsxs as Xee}from"react/jsx-runtime";import{Button as jH,Dialog as Zee}from"efficient-shell/ui";function GH({styleName:e,onCancel:o,onConfirm:t}){return Yu(Zee,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:Xee(Yee,{children:[Yu(jH,{variant:"secondary",onClick:o,children:c("Cancel")}),Yu(jH,{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 poe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as uoe}from"efficient-easel/draw/client";import{shownTier as Zu}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as moe,viewKeyAt as xoe}from"efficient-easel/draw";import{useSectionOps as hoe}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as Ioe}from"efficient-easel/screen/lib/host";function Jee(e){let o=new Set([...Object.keys(z(Vk,e)??{}),...z(Yk,e)??[]]);for(let[t,r]of Object.entries(z(Zk,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var Qee={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},KH={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},qH="Open",VH={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 ks(e){let o=e?.source?.slug;return fo(o)}function Di(e){return z(Qee,e)??null}function YH(e,o){let t=Di(e);return t&&Jee(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 QH(e){return e.kind==="role"?km[e.role]:e.kind==="custom"?"Custom":null}function goe(e){let o=gb(e.role);return o?{kind:"role",role:o}:null}function yoe(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 goe(Or(e,o))??yoe(t,r)}function Soe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function e2(e,o){return[{value:Ni,label:c("No style"),description:c("Section\u2019s own")},...e.map(t=>({value:t.id,label:t.name,description:t.values.font?cd(t.values.font,o)?.label:void 0}))]}var Ni="";function boe({face:e,base:o,onPick:t}){let r=Ct(),a=e.kind==="role"?e.role:Ni,n=[{label:c("No style"),value:Ni},...Ib.map(s=>({label:c(km[s]),value:s}))];return Z(toe,{ariaLabel:c("Style"),value:a,options:n,inline:!0,onChange:s=>t(s===Ni?null:s),renderOption:s=>s.value===Ni?mt(Mi,{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(${cd(o.fontKey,r)?.cssVar})`:void 0,fontWeight:o?.weight},children:mS(QH(e))}),valueText:s=>mS(QH(e))??s?.label??""})}var s2=["regionNote","regionStyle"],woe=Object.keys(pS).filter(e=>!s2.includes(e));function l2(e,o){return!e.some(o)}function Coe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=mt(Mi,{children:[t,r,a]});return mt("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=Ioe(),a=VH[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:mt(n2,{children:[c(KH[e]),n?mt(Mi,{children:[" ",Z(doe,{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(qH)})]}):null]})})}var o2=4,koe=120;function t2(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 r2({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:f}){let x=e.follows;return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c(e.label)})}),i("regionNote")&&!f&&Z("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(x),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(x)})}),d?mt(Mi,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:t2(e)})]}):a?i("regionStyle")?Z(Mi,{children:Z(noe,{label:c("Style"),icon:Z(soe,{}),hint:t2(e),children:Z(boe,{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,l2([...s2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&Z(Ka,{}),Z(Qu,{inline:!0,name:c("Page"),onSelect:l})]})}function voe({onBack:e}){return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part is no longer here.")})}),Z("p",{children:c("The section it belonged to has been changed or removed.")}),Z(Qu,{inline:!0,name:c("Page"),onSelect:e})]})}function Poe({onBack:e,partId:o,why:t}){return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part's settings did not open.")})}),Z("p",{children:c("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),Z("p",{className:"sf-note-detail",children:mt("code",{children:[o," \u2014 ",t]})}),Z(Qu,{inline:!0,name:c("Page"),onSelect:e})]})}function i2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=ioe(G=>G),l=hoe(),i=h0(),{partStyle:d}=ds(),{fonts:f,textStyles:x}=ko(),u=Ct(),h=eoe(poe),I=!h?.capabilities?.hasSiteTheme,{persist:S}=dT({themeFromDocument:I,tokenRef:h?.tokenRef,siteId:h?.siteId??null}),v=KT({themeFromDocument:I,persist:S}),[O,R]=XH(!1),T=uoe(),g=G=>(Zu(T)!=="tablet"||NH(G))&&aoe(pS[G],T),w=ooe(null),_=a(e),E=n(e),D=_?s.components[_.type]:void 0,{key:b,row:F}=zt(o),y=D?.fields?.[b],k=F?Rn(y,F):y,P=Ut(e,o),C=_?.props??{},B=df(k),H=_f(k),q=cv(k),$=_?Di(_.type):null,le=_?YH(_.type,b):null,pe=F?cf(C[b],F):C[b],ee=!!F&&!(Array.isArray(C[b])&&F.index<C[b].length);uS(()=>{x0(document)||w.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[P]);let[xe,oe]=XH(0);uS(()=>oe(0),[P]);let ie=!!_&&!ee&&(!E||!k);uS(()=>{if(!ie||xe>=o2)return;let G=setTimeout(()=>oe(Te=>Te+1),koe);return()=>clearTimeout(G)},[ie,xe]);let ge=ie&&xe<o2,Re=ws(e,lr(_?.type,o),"textPart");if(!_||ee)return Z(voe,{onBack:t});let We=fs(_.type),yo=We?zs(We,o):null;if(We&&yo){let G=d?.partId===P?d:null,Te=We[yo],yt=Te.writable===!0&&!!E,hr=Jr=>{E&&l.replaceComponent(E.zone,E.index,{..._,props:la(C,o,"role",Jr)})};if(yt&&mw(Te)){let Jr=Or(C,o),QS=Qr=>{if(!E)return;let wm=C;for(let[K4,q4]of Object.entries(Qr))wm=la(wm,o,K4,q4??null);l.replaceComponent(E.zone,E.index,{..._,props:wm})},U4=$x(v.saved,v.old),j4=yx(Jr)??"",G4=Vu(Jr,G?.base??a2,QS,Zu(T)).filter(Qr=>Qr.key==="fontSize"&&g(Qr.key));return Z(At,{motion:Re,body:Z(r2,{region:Te,sizePx:G?.base.sizePx??null,face:Ju(C,o,G,f),base:G?.base??null,source:$,slug:ks(C),onBack:t,shows:g,ownLook:Hv(Jr),sizedStyle:Z(ZH,{style:g("style")?{value:j4,options:e2(U4,u),onChange:Qr=>QS(Qr?{textStyle:Qr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:G4})})})}return Z(At,{motion:Re,body:Z(r2,{region:Te,sizePx:G?.base.sizePx??null,face:Ju(C,o,G,f),base:G?.base??null,onFollowStyle:yt?hr:void 0,source:$,slug:ks(C),onBack:t,shows:g})})}if(!E||!k)return ge?Z("div",{className:"sf-note","aria-busy":"true"}):Z(Poe,{onBack:t,partId:P,why:E?"no field":"no selector"});let oo=G=>{l.replaceComponent(E.zone,E.index,{..._,props:G})},io=G=>{if(pa(G).hidden!==pa(pe).hidden||!B){let Te=F?rv(C,b,F,G):{...C,[b]:G};Te&&oo(Te);return}Hf({node:_,propKey:o,kind:B,zone:E.zone,index:E.index},pa(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),$e=he?N.props??{}:C,Ao=he?G=>l.replaceComponent(te.zone,te.index,{...N,props:G}):oo,Uo=he?bo.kind:lr(_?.type,o),Fo=Or($e,Uo),ke=[{partKey:Uo,face:Ju($e,Uo,Xe,f),sizeGroup:Xe?.sizeGroup??null,base:Xe?.base??a2,style:Fo}],ht=Soe(ke,G=>G.sizeGroup),_s=sf(Xe?.inks),Yr=(G,Te)=>{let yt=$e;for(let hr of ke)yt=la(yt,hr.partKey,G,Te);Ao(yt)},Yo=G=>G?Yr("textStyle",G):Xr({textStyle:null,role:null}),Xr=G=>{let Te=$e;for(let yt of ke)for(let[hr,Jr]of Object.entries(G))Te=la(Te,yt.partKey,hr,Jr??null);Ao(Te)},Ja=B==="text"||B==="textarea",{text:Lt,hidden:xr}=pa(pe),It=k?.[moe]?.label??o,As=xr?c("Show {label} on the slide",{label:c(It)}):c("Hide {label} on the slide",{label:c(It)}),Fs=mt("div",{className:"sf-field-head",children:[Z(loe,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:c(It)}),Ja&&Z(coe,{content:As,children:Z(foe,{"aria-pressed":xr,"aria-label":As,onClick:()=>io({text:Lt,hidden:!xr}),children:xr?Z(JH,{name:"eye-off",size:14}):Z(JH,{name:"eye",size:14})})})]}),gt=!H&&q,bm=!!B&&(hT(k)||H||xr||!q),od=Ju($e,Uo,Xe,f),td=od.kind==="role"?od.role:null,Zr=yx(Fo)??zT(td),Bs=$x(v.saved,v.old),Ls=Object.entries(Fo).filter(([G,Te])=>G!=="role"&&G!=="textStyle"&&Te!==void 0).length,Qa=()=>{let G=$e;for(let Te of ke){let{role:yt,textStyle:hr}=Te.style;G=Tv(G,Te.partKey),yt&&(G=la(G,Te.partKey,"role",yt)),hr&&(G=la(G,Te.partKey,"textStyle",hr))}Ao(G)},Rt=Zr,rd=jT(ke[0].style),ad=Rt?Bs.find(G=>G.id===Rt)?.name??Rt:"",nd=()=>{R(!1),Rt&&(v.write(GT({saved:v.saved,old:v.old,styleId:Rt,values:UT(ke[0].style)}),!0),Qa())};return mt(Coe,{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:bm?Z(UH,{text:Lt,onTextChange:G=>io(Ja?{text:G,hidden:xr}:G),multiline:ff(B),markup:B!=="plainText",styled:!1,style:ke[0].style,base:ke[0].base,setValue:Xr,colors:_s,placeholder:mS(Qk(k))??void 0,ariaLabel:c(It),head:Fs,typedOnCanvas:i===P}):B?Ja?Fs:null:Z(roe,{field:k,name:o,value:So,onChange:io,id:`sf-part-${e}-${o}`})}):void 0,children:[le&&g("sourceNote")&&Z(em,{source:le,slug:ks(C),menuId:Xu(C)}),gt&&Z(ZH,{style:g("style")?{value:Zr??"",options:e2(Bs,u),onChange:G=>Yo(G||null),changed:Ls>0,onEditStyles:r,onUpdateStyle:Rt&&rd?()=>R(!0):void 0}:void 0,font:g("font")?{value:Fo.font??"",styleValue:cd(ke[0].base.fontKey,u)?.label,options:hb(u).map(G=>({label:G.label,value:G.key})),onChange:G=>Yr("font",G||null)}:void 0,italic:g("italic")?{value:Fo.italic,styleValue:Ooe(x,Zr),onChange:G=>Yr("italic",G??null)}:void 0,cells:Vu(ke[0].style,ke[0].base,Xr,Zu(T)).filter(G=>g(G.key)),align:g("align")?Toe(Fo,ke[0].base.align,Zu(T),Yr):void 0,letterCase:g("letterCase")?{value:Fo.case??"",styleValue:ke[0].base.case,onChange:G=>Yr("case",G||null)}:void 0}),O&&Rt&&Z(GH,{styleName:ad,onCancel:()=>R(!1),onConfirm:nd}),gt&&ht===null&&g("fixedSizeHint")&&Z(n2,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),l2(woe,G=>g(G)&&(G==="words"||(G==="sourceNote"?!!le:G==="fixedSizeHint"?gt&&ht===null:gt)))&&Z(Ka,{})]})}function Toe(e,o,t,r){let a=xoe("align",t),n=Ev(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Ooe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var a2={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 Roe}from"react/jsx-runtime";import{useCallback as Doe,useRef as Noe,useState as $i}from"react";import{InspectorIconButton as Moe}from"efficient-easel/chrome";import{useEasel as Hoe}from"efficient-easel/easel";import{LoadingSpinner as Woe,PopupMenu as $oe,PopupMenuItem as zoe,PopupMenuLabel as bS}from"efficient-shell/ui";import{CopyToPageIcon as Uoe}from"efficient-easel/icons";import{useEaselSession as joe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Goe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as Koe}from"efficient-easel/draw";import{newId as Aoe}from"efficient-easel/data";import{isBackendError as vs}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as g2}from"efficient-easel/screen/lib/session";var om=KP(),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 d2(e){return om.get(e)}function f2(e){return om.use(e)}function c2(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 p2(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var u2="SharedSection",Eoe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Hi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Wi=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function m2(e){if(e?.type!==u2)return null;let o=e.props?.section;return typeof o=="string"&&Eoe.test(o)?o.toLowerCase():null}function x2(e){let o=[];for(let t of Hi(e)){let r=m2(t),a=Wi(t);r&&a&&o.push({refId:a,section:r})}return o}function nm(e){let o=Hi(e)[0];return o&&typeof o=="object"&&Wi(o)?o:null}function _oe(e,o){return{type:u2,props:{id:e,section:o}}}function h2(e,o){let t=new Map,r=new Set,a=!1,n=Hi(e).map(s=>{let l=m2(s),i=Wi(s);if(!l||!i||r.has(l))return s;let d=nm(o.get(l)),f=Wi(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 I2(e,o,t){let r=new Map,a=!1,n=Hi(e).map(s=>{let l=Wi(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=Hi(d).slice(1),x=nm(d);return r.set(i.section,x===s?d:{...d,content:[s,...f]}),a=!0,i.reference??_oe(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function yS(e){return!!(e?.publish&&e.liveState)}function Foe(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 Boe(e,o){return async(t,r)=>{try{await iT()}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:[]}):ca(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),QP(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),eT(a,i.videoFrames),ca(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:yS(t)?Boe(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 Loe(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=d2(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:XP(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=()=>Aoe("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){vs(B,"changed-elsewhere")?v(y,"conflict"):vs(B,"lock-taken")?v(y,"lock",B.holder??void 0):v(y,"save")}}b.size&&ca(),S({})};return{resolve:async b=>{if(Wx(b===Er?null:_),Ax(b===Er?null:E),i=new Map,d=new Map,f=new Map,x=new Map,b===Er)return t.resolve(b);let F=!1,[y,k]=await Promise.all([t.resolve(b),e.load({slug:Er,...o}).catch(()=>(F=!0,null))]);if(k&&!xT(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=x2(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=h2(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=ZP(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=I2(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),ca(),P.layout=C.chrome,P.version=$.version,P.savedJson=q,l=!0,S({conflict:null,saveFailed:!1})}catch($){vs($,"changed-elsewhere")?S({conflict:$.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):vs($,"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){vs(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){vs(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:t0(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 LHe(e,o,t){return e.update(o,r0(t))}function RHe(e,o=Oo(),t=Ag(),r={}){let a=g2(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?Loe(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,...y2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Foe(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function DHe(e,o=Oo(),t=Ag()){let r=g2(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),...y2(gS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function y2(e){return{resolve:o=>(Wx(null),Ax(null),e(o))}}var IS="This editor's backend has no website templates.";function qoe(e,o,t){let r=Goe(e,void 0,o);return t?.(r)??r}function S2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=$i(!1),[i,d]=$i(null),f=joe(),x=Hoe(E=>E.config.components),[u,h]=$i(!1),[I,S]=$i(null),v=Noe(null),[O,R]=$i(null),T=Doe(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{d(await Oo(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=qoe(e,x,f.documentHooks?.storedNode),b=await a(()=>Voe(Oo(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(Roe,{children:[Ft("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Ft(Moe,{buttonRef:v,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:g,children:Ft(Uoe,{size:15})})}),s&&O&&Ft($oe,{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(Woe,{label:c("Loading\u2026")}):w.length===0?Ft(bS,{children:c("No other pages")}):w.map(E=>SS(zoe,{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 Voe(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===Koe);s.splice(l===-1?s.length:l,0,qP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as wte}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Cte}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as d5e,isSelectionMode as PS}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as kte}from"efficient-easel/draw/client";import{jsx as zi,jsxs as Yoe}from"react/jsx-runtime";import{SettingsDrill as Xoe}from"efficient-easel/panel";import{UiIcon as Zoe}from"efficient-easel/draw/client";var Joe="Not shown on the page";function Qoe({part:e,onOpen:o}){return zi(Xoe,{name:c(e.label),preview:e.offPage?c(Joe):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?zi("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:zi(Zoe,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function wS(e){return e.filter(o=>!o.identifier)}function b2({parts:e,onOpen:o,heading:t=!0}){let r=wS(e);return r.length?Yoe("div",{className:"sf-entries",children:[t?zi("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>zi(Qoe,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as vte,ROOT_ZONE as L2}from"efficient-easel/draw";import{newId as ete}from"efficient-easel/data";import{HEADER_TYPE as zo,FOOTER_TYPE as Le,newNodeId as ote}from"efficient-easel/draw";function lm(){return{type:zo,props:{id:ote(zo)}}}var w2=[{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"}],tte=w2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),rte="FooterGroup",C2="blocks";function k2(e){return e===Le?w2:e===rte?tte:null}function im(){let e=(o,t)=>({type:o,props:{id:ete(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...Xv}),e("FooterPayment",{...mf})]}function CS(e){switch(e?.type){case Do:case Je:return c("On every page");case zo:case Le:return c("On every page \xB7 old style");default:return null}}var v2=()=>null,P2=()=>c("Changed on every page");function dm(e,o){let t=UC(e,o);if(t)return t;let r=iP(e,o);if(!r)return null;let a=r.group===Do;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 nte,jsxs as ste}from"react/jsx-runtime";import{useState as lte}from"react";import{createNode as ite,newId as dte}from"efficient-easel/data";import{useEasel as fte}from"efficient-easel/easel";import{Banner as cte,Button as kS}from"efficient-shell/ui";import{useScreenDocument as pte}from"efficient-easel/screen/components/ScreenDocumentContext";var ate=["FooterPayment"];function T2(e,o){let{id:t,...r}=e.props;for(let a of Dt(e))r[a]=r[a].map(n=>T2(n,o));return o(e.type,r)}var Ui=(e,o)=>{if(!ate.includes(e.type))return null;Xp();let t=Dr(e.type);return t?Ea({type:e.type,props:{...e.props}},t).nodes.map(r=>T2(r,o)):null};function O2(){let{appState:e,dispatch:o,config:t}=fte(f=>f),{readOnly:r}=pte(),[a,n]=lte(!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)=>ite(t,f,x),d=()=>{let f=di(l,i,dte(Je),Ui);o({type:"setData",data:x=>({...x,content:[...hf(x.content,f)]}),recordHistory:!0}),n(!1)};return fm(cte,{tone:"info",title:c("This footer uses the old layout"),action:a?ste(nte,{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 ute}from"react/jsx-runtime";import{InspectorUpLevel as E2}from"efficient-easel/chrome";function _2({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=ju(),n=ws(e,o,"picture");return ute("div",{children:[o!=="media"?vS(E2,{inline:!0,name:c(cr.media),onSelect:()=>a(va(e,"media"))}):vS(E2,{inline:!0,name:c(t),onSelect:r}),vS(At,{part:o,motion:n,itemWord:c(cr[o])})]})}import{HintsToggle as Pte,SettingsSwitch as Tte,hintsFoldClass as Ote}from"efficient-easel/panel";import{useHints as Ete}from"efficient-easel/screen/lib/hints";var D2={kind:"header"},OS={kind:"website"},N2={kind:"website",tab:Df,revealPageGroup:!0},M2={kind:"chat"},H2={kind:"social"},ji="Part";function _te(e){return c("Part of {name}",{name:c(e)})}function Ate(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?_te(r.label):c(ji)}}function Fte(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 W2({what:e}){let o=Fte(e);return Vr("div",{className:"sf-note",children:[be("p",{children:be("strong",{children:o.title})}),Vr("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=Gl[e];return{name:cr[e],kindLabel:ji,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=R2({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(_2,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Bte={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(CH,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>be(EH,{unavailable:be(W2,{what:"Social link"})})},ticker:{name:Ma,kindLabel:ji,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Ate(o,e.heroId,c(Ma)):null,render:e=>be(HH,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:TS("media"),heroImage:TS("image"),heroImage2:TS("image2"),part:{name:ji,kindLabel:ji,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}=zt(e.propKey),n=a?Rn(t.fields[r],a):t.fields[r],s=fs(t.type),l=s?zs(s,e.propKey):null,i=s&&l?s[l].label:BO[e.propKey],d=i?c(i):nv(c(uf(pv(n??{},r))),a),f=R2({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(i2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Lte=new Set(["header","website","chat"]);function Rte(e,o){if(e==="selection")return null;let t=Bte[e];return Lte.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>be(W2,{what:t.name})}:t}function $2({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}=wte(),{rows:S}=xl(),v=S?.find(te=>te.slug===f)??null,O=xte(),R=Object.keys(O.fields).some(te=>!te.startsWith("_")&&!zx.includes(te)),{websiteName:T}=ko(),g=Cte({readOnly:h}),{select:w}=kte(),{selectedItem:_,getItemById:E,getSelectorForId:D,config:b,appState:F}=mte(te=>te),y=Ste(b,_?{type:_.type,props:_.props}:null),k=_?xv(y??b.components[_.type]?.fields,_.props):[],P=te=>b.components[te]?.label??te,C=_?D(_.props.id):void 0,B=Rte(e.kind,l),H=bte(),q={capabilities:l,tokenRef:i,hostPanels:H.chrome?.panels,describeNode:te=>{let he=E(te);if(!he)return null;let $e=b.components[he.type];return{type:he.type,label:$e?.label??he.type,fields:$e?.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=IH({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!==L2?c("Block"):c("Section"):le.kindLabel),xe=B?B.icon:_?_.type:"page",oe=PS(e)&&_?Di(_.type):null,ie=!!_&&!!C&&C.zone===L2&&_.type!==Le&&_.type!==vte,ge=dm(F?.data,_),Re=()=>{ge||C&&g.duplicateComponent(C.zone,C.index)},We=()=>{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}=Ete(),N=!!(B||_||R);return Vr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Ote(Xe)}`.trim(),children:[be(Ite,{icon:be(ja,{type:xe,size:15}),name:pe,kind:ee,actions:!a&&PS(e)&&_&&_.type!==Le?Vr(A2,{children:[be(F2,{label:c("Duplicate section"),title:ge??void 0,disabled:ge!==null,onClick:Re,children:be(gte,{size:15})}),ie&&l.hasSiteSettings&&be(S2,{node:_,currentSlug:f,siteId:x??void 0,tokenRef:i,runAuthed:u,onNotify:n}),be(F2,{label:c("Remove section"),danger:!0,onClick:We,children:be(yte,{size:15})}),s?be(B2,{side:"right",onHide:s,divider:!0}):null]}):s?be(B2,{side:"right",onHide:s}):void 0}),oo&&Vr("div",{className:"sf-preview-pin",children:[Vr("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(Tte,{checked:io,onChange:So,ariaLabel:c("Preview hover state")})]}),Vr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[B?B.render(e,q):_?Vr(A2,{children:[_.type===Le&&l.hasSiteSettings&&be(O2,{}),be(lT,{children:be(At,{entries:be(b2,{parts:k,heading:!1,onOpen:te=>w(Ut(_.props.id,te))}),entryCount:wS(k).length,itemWord:pe})}),oe&&be(em,{source:oe,slug:ks(_?.props),menuId:Xu(_?.props)})]}):R?be(At,{omit:zx}):be(hte,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),N&&be(Pte,{shown:Xe,onChange:bo,label:c("Show hints")})]})]})}import{jsx as p,jsxs as A,Fragment as K2}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 Dte={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)"},Ae=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function mr({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 z2({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return A(K2,{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",...Ae(m.paper,m.paper2,150)},children:p(mr,{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 ur({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 U2({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 Gi({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 j2({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 Nte={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",...Ae(m.paper,m.paper2,150)},children:p(mr,{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",...Ae(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(mr,{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,...Ae(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%),${Ae(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,...Ae(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(j2,{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(j2,{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",...Ae(m.ink,m.inkSoft2)},children:[p(mr,{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",...Ae(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(Gi,{n:"27k",label:"Rigs"}),p(Gi,{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",...Ae(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,...Ae(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",...Ae(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",...Ae(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",...Ae(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",...Ae(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,...Ae(m.ink,m.inkSoft2)}}),p(mr,{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,...Ae(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,...Ae(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",...Ae(m.paper,m.paper2,150)},children:p(mr,{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(ur,{k:"Subtotal",v:"$1,956"}),p(ur,{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",...Ae(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(Gi,{n:"27k",label:"Rigs fitted",tone:m.onInk}),p(Gi,{n:"12",label:"Years",tone:m.onInk}),p(Gi,{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(U2,{}),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,...Ae(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(U2,{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",...Ae(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",...Ae(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(z2,{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(mr,{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(z2,{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",...Ae(m.inkSoft,m.inkSoft2)},children:p(mr,{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,...Ae(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",...Ae(m.paper,m.paper2,150)},children:p(mr,{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(ur,{k:"Diameter",v:'20"'}),p(ur,{k:"Width",v:"9.0J"}),p(ur,{k:"Offset",v:"+12"}),p(ur,{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(ur,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(ur,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(ur,{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,...Ae(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))})},G2={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(K2,{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 q2({type:e}){let o=Dte[e]??"",t=Nte[o]??G2[o]??G2.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 Ps,jsxs as V2}from"react/jsx-runtime";import Mte from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Hte}from"efficient-easel/rail";import{Tooltip as Wte}from"efficient-shell/ui";import{HintsToggle as $te,hintsFoldClass as zte}from"efficient-easel/panel";import{useHints as Ute}from"efficient-easel/screen/lib/hints";function Y2({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Bn(),{shown:d,setShown:f}=Ute();return V2("div",{className:`sf-styles ${zte(d)}`.trim(),children:[Ps(Mte,{icon:Ps(Hte,{}),title:c("Styles"),context:Ps(Wte,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Ps("span",{className:"sf-name-text",children:i})})}),V2("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Ps(Nf,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Ps($te,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as so,jsxs as Xa,Fragment as Vte}from"react/jsx-runtime";import{Fragment as s5,useEffect as l5,useRef as NS}from"react";import{useTreeDrag as i5}from"efficient-easel/drag";import{GlobeIcon as Yte,ImageIcon as Xte,LocationIcon as Zte,MapIcon as Jte,TextLinesIcon as Qte,TrashIcon as d5}from"efficient-easel/icons";import{Subtree as f5,TreeRow as qi,TreeRowAction as c5,TreeSeam as p5}from"efficient-easel/tree";import{useEaselStrings as ere}from"efficient-easel/strings";import{isSelectionMode as ore}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as jte}from"react";var Gte={level:"groups"},Z2=Gte,FS=new Set;function Bt(e){Z2=e;for(let o of FS)o()}function Kte(e){return FS.add(e),()=>{FS.delete(e)}}var X2=()=>Z2;function J2(){return jte(Kte,X2,X2)}var Ki=e=>String(e?.group??""),BS=new WeakMap,qte=0;function um(e){let o=BS.get(e);return o||(o=`loc${++qte}`,BS.set(e,o)),o}var Q2=(e,o)=>o||e||"Ungrouped",e5={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 Ya(e){return bd(e,Ki,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),o5=(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(Ki(e[a])===o){if(r===t)return a;r++}return-1}function RS(e,o,t){let r=Ya(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=o5(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=Ya(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=o5(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),LS(n)}function t5(e,o){let t=Ya(e),r=t.find(n=>n.key===o),a={...e5,group:o,groupName:r?.name??""};return r?(r.cards.push(a),LS(t)):[...e,a]}function r5(e){let o=new Set(Ya(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...e5,group:r,groupName:""}],key:r}}function a5(e,o){return e.filter(t=>Ki(t)!==o)}function n5(e,o,t){let r=mm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function $5e(e,o,t){let r=e.flatMap((s,l)=>Ki(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 z5e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Ki(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 u5(e,o){let{readOnly:t,selected:r}=o,a=ere().tree,n=o.data?.content??[],s=ore(e),l=NS(null);l5(()=>{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}=NL(),x=J2(),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=i5({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=i5({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(()=>{});l5(()=>{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=Ya(D),F=String(T.props.id),y=s&&r?.props.id===F,k=C=>so(p5,{...t?{}:I.seam({place:{...xm(g),index:C}})},`seam:${F}:groups:${C}`),P=(C,B)=>so(p5,{...t?{}:S.seam({place:{...MS(g,C),index:B}})},`seam:${F}:cities:${C}:${B}`);return Xa(Vte,{children:[so(qi,{icon:so(Qte,{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?Q2(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 Xa(s5,{children:[B===0&&k(0),so(qi,{icon:so(Yte,{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(c5,{kind:"delete",label:Wt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",C.cards.length,{label:le}),onClick:()=>{u(g,a5(D,C.key)),Bt({level:"groups"})},children:so(d5,{size:15})}),rowProps:xe.rowProps,count:C.cards.length,countLabel:Wt("{n} city","{n} cities",C.cards.length)}),!q&&Xa(f5,{children:[C.cards.map((oe,ie)=>{let ge=mm(D,C.key,ie),Re=y&&x.level==="city"&&x.index===ge,We=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 Xa(s5,{children:[ie===0&&P(C.key,0),so(qi,{icon:so(Zte,{size:13}),name:We,words:a,onSelect:()=>R(g,{level:"city",index:ge}),selected:Re,...So,fold:{open:!oo,label:We,onToggle:()=>E(yo)},actions:so(c5,{kind:"delete",label:c("Delete {name}",{name:We}),onClick:()=>{u(g,n5(D,C.key,ie)),Bt({level:"group",key:C.key})},children:so(d5,{size:15})}),rowProps:io}),!oo&&Xa(f5,{children:[so(qi,{icon:so(Xte,{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(qi,{icon:so(Jte,{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))}),Xa("button",{type:"button",className:"sf-add-card",onClick:()=>{let oe=t5(D,C.key);u(g,oe);let ie=Ya(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)}),Xa("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:C,key:B}=r5(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 nre,useRef as sre}from"react";import{createNode as WS,newId as $S}from"efficient-easel/data";import{useEaselApi as lre}from"efficient-easel/easel";import{useScreenDocument as ire}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as dre}from"efficient-easel/screen/lib/session-context";import{useEffect as I5,useRef as tre}from"react";import{useEasel as rre}from"efficient-easel/easel";import{ROOT_ZONE as HS}from"efficient-easel/draw";var Vi={};function m5(e){return Vi={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Vi}function x5(e){Vi===e&&(Vi={})}function Ts(){return Vi}function h5(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 y5(e){let o=rre(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=ko(),i=tre(new Set);I5(()=>{let d=g5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&are(x1(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),I5(()=>{let d=m5(g5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>x5(d)},[t,r,a,n,s,l])}function g5(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=h5({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 are(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 Os,missingPinnedTypes as fre,pinnedDuplicateIds as zS}from"efficient-easel/draw";function S5(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function b5(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===zo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Do)}}async function w5(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!==Do||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Do)?!1:(e.write(hf(r,t)),!0)}function C5(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=ire(),f=dre(),{hasSiteSettings:x,hasPinnedChrome:u}=r;y5(e);let h=!!r.editsPinnedInPlace&&a!==Er,I=a===Er,S=lre().getState,v=sre(null);nre(()=>{if(!S5({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=fre(b,T);if(F.includes(Le)){let y=b.length,k=e.insertSection(Le,y);e.replaceComponent(Os,y,{type:Le,props:{id:k,blocks:im()}})}F.includes(zo)&&e.insertNode(Os,0,lm());return}if(I){let D=sP(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(Os,D.length,di(F,b,$S(Je),Ui))}return}if(h){let D=!!t?.pinnedChrome?.state().docId,b=b5(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(Os,y.length,di(P,k,$S(Je),Ui))}if(b.seedHeader&&!g(T,zo)){let k=y[0]?.type===Do?1:0;e.insertNode(Os,k,lm())}if(b.seedSiteHeader&&!g(T,Do)&&!g(T,Le)&&!g(T,Je)){let k=n;w5({blocks:un(f),make:(P,C)=>WS(o,P,C),id:$S(Do),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,zo)&&!g(T,zo)&&e.insertNode(Os,0,lm())},[n,l,s,S,e,x,u,I,h,t,f,i,d])}import{useEffect as B5,useMemo as Ire,useRef as L5}from"react";import{useEasel as gre}from"efficient-easel/easel";import{newId as yre}from"efficient-easel/data";import{useEaselHost as Sre}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as cre}from"efficient-easel/screen/lib/host";import{isNode as P5}from"efficient-easel/data";function Yi(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function pre(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function US(e,o,t,r){e.forEach((a,n)=>{if(P5(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Dt(a))US(a.props[s],a,s,r)}})}function ure(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 T5(e,o){return ure(e).find(t=>String(t.node.props.id)===o)}function O5(e,o,t){if(!t)return null;let r=T5(o,t);if(!r)return null;let a=Yi(e,r.node.type),n=r.parent?`${Yi(e,r.parent.type)} \xB7 ${pre(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var mre=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 xre(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[cre]: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=mre(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=E5(l))}return r}function E5(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=xre(r);a&&(o[t]=a)}return o}function _5(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Yi(e,t),fields:E5(r.fields),...A5(t)?{retired:!0}:{}});return o}function A5(e){return co(fb,e)}function k5(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function hre(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=>P5(t)&&String(t.props.id)===o)}function v5(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 F5(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=T5(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=hre(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}`),A5(l.type)&&d(`${Yi(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=cs(l.type),x=Object.keys(l.props??{}).filter(h=>h!=="id");f&&x.length&&d(`${Yi(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=>k5(e,h),r,a):{type:l.type,props:{...k5(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(v5(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(v5(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 R5(){let e=Sre(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=gre(u=>u),s=n,l=L5({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=L5(new Map),d=t?.props?.id,f=Ire(()=>O5(s,o.data,d),[s,o.data,d]),x=f?JSON.stringify(f):"";B5(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,x]),B5(()=>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:_5(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?F5(v,h.data,R,yre,Ts()):{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 M5,useState as H5}from"react";var Im=new Map;async function bre(e,o){try{return(await Oo().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function D5(e,o){let t=Im.get(o);return t||(t=bre(e,o),Im.set(o,t),t.catch(()=>{Im.get(o)===t&&Im.delete(o)})),t}var wre=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function KS(e){return!!e&&wre.test(e)}function N5(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===nT?"/":`/${encodeURIComponent(o)}`;if(!KS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function W5(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=H5(null),[s,l]=H5(null),i=cP();M5(()=>{try{l(new URL(pP()).hostname)}catch{l(null)}},[i]),M5(()=>{if(!KS(s)||!t||!r){n(null);return}let f=!1;return D5(r,t).then(x=>{f||n(x)}),()=>{f=!0}},[s,t,r]);let d=N5({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as Xi}from"react/jsx-runtime";import{useEffect as Cre,useRef as $5,useState as kre}from"react";import{ExternalIcon as z5}from"efficient-easel/icons";import{EaselIconButton as vre}from"efficient-easel/chrome";import{Tooltip as Pre,iconButtonClasses as Tre}from"efficient-shell/ui";import{useSettledPress as Ore}from"efficient-easel/easel";import{useScreenDocument as Ere}from"efficient-easel/screen/components/ScreenDocumentContext";async function _re({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 U5({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Ere(),a=$5(r);a.current=r;let n=Ore(),[s,l]=kre(!1),i=$5(null);if(Cre(()=>()=>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),_re({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return Xi(vre,{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:Xi(z5,{})})}return Xi(Pre,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:Xi("a",{className:Tre({className:"es-iconbtn"}),href:e,...vl,"aria-label":c("Preview the live site in a new tab"),children:Xi(z5,{})})})}import{createElement as Are,useCallback as Fre,useEffect as j5,useRef as G5,useState as Bre}from"react";import{ClockIcon as Lre}from"efficient-shell/icons/efficient";import{useScreenDocument as Rre}from"efficient-easel/screen/components/ScreenDocumentContext";function K5(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Rre(),s=c2(f2(o??null),r),l=_u(Au()),i=n.siteLiveState;j5(()=>{if(i)return Bx(i),ca(0),()=>Bx(null)},[i]);let d=Ef(),[f,x]=Bre(!1),u=G5(e);u.current=e;let h=G5(!0);j5(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=Fre(()=>{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:p2(d?.changes??[])});return n.siteVersions?{...v,menuItems:Dre()}:v}return hS({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Dre(){return[{key:"version-history",label:c("Version history"),icon:Are(Lre),onSelect:kM}]}import{jsx as Q,jsxs as Vo,Fragment as Qi}from"react/jsx-runtime";import{useCallback as Nre,useEffect as Mre,useId as Y5,useRef as Hre,useState as xt}from"react";import{useSettledAction as Wre}from"efficient-easel/easel";import{Avatar as $re,Banner as Zi,Button as Za,ColoredBadge as qS,Dialog as YS,DropdownMenu as zre,FormField as X5,iconButtonClasses as Ure,Inline as VS,Input as jre,ListRow as Gre,Select as Kre,SortableList as qre,Stack as Ji}from"efficient-shell/ui";import{EditIcon as Vre,EyeIcon as q5,MenuIcon as Yre,MoreIcon as Xre,PageIcon as Z5,RevertIcon as V5,StylesIcon as Zre}from"efficient-shell/icons/efficient";import{useScreenDocument as J5}from"efficient-easel/screen/components/ScreenDocumentContext";var Jre={page:Z5,menu:Yre};function Qre(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function eae(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 oae({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=Y5();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,x=FM(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:Vo(Qi,{children:[Q(Za,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),Q(Za,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Vo(Ji,{gap:4,children:[o&&e.pages.length>1?Q(X5,{label:c("Page"),htmlFor:i,children:Q(Kre,{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(Zi,{tone:"warning",children:Wt("{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(Zi,{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(Zi,{tone:"danger",children:a}):null]})})}function tae({version:e,onCancel:o,onSave:t}){let r=Y5(),[a,n]=xt(null),[s,l]=xt(""),[i,d]=xt(!1),[f,x]=xt(null);if(e!==a&&(n(e),l(e?.name??""),x(null)),!e)return null;let u=s.trim()===e.name,h=async()=>{if(!(i||u)){d(!0),x(null);try{await t(s.trim())}catch{x(c("The name was not saved. Try again."))}finally{d(!1)}}};return Q(YS,{open:!0,onClose:()=>{i||o()},size:"sm",title:c("Name this version"),footer:Vo(Qi,{children:[Q(Za,{variant:"secondary",onClick:o,disabled:i,children:c("Cancel")}),Q(Za,{onClick:()=>{h()},loading:i,disabled:i||u,children:c("Save")})]}),children:Q(X5,{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 rae({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(q5,{}),onSelect:r}],...i?[{key:"restore",label:l?c("Put these drafts back"):c("Restore whole website"),icon:Q(V5,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:Q(Z5,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:Q(Vre,{}),onSelect:s}]];return Q(Gre,{title:Vo("span",{className:"sf-version-title",children:[Q("span",{children:AM(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(zre,{align:"end","aria-label":c("More"),items:f,triggerClassName:Ure({variant:"ghost",size:"sm"}),trigger:Q(Xre,{})}),below:Vo(Ji,{gap:3,children:[Vo(VS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[Q($re,{name:e.createdBy,size:"xs"}),Q("span",{children:e.createdBy}),Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:LM(e.createdAt)}),d?Vo(Qi,{children:[Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:Wt("{n} change","{n} changes",d)})]}):null]}),o?Vo(Ji,{gap:3,children:[d?Q(Ji,{gap:2,children:e.changes.map(x=>{let u=Jre[x.kind]??Zre;return Vo(VS,{gap:2,align:"center",children:[Q(u,{size:16}),Q("span",{children:BM(x)})]},`${x.kind}:${x.id}`)})}):null,Vo(VS,{gap:2,children:[l?null:Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(q5,{}),onClick:r,children:c("Preview")}),i?Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(V5,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function aae({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=J5(),[l,i]=xt(null),[d,f]=xt(!1),[x,u]=xt(null),[h,I]=xt(null),[S,v]=xt(!1),[O,R]=xt(null),[T,g]=xt(null),[w,_]=xt(!1),E=Hre(0),D=Nre(()=>{let k=++E.current;f(!1),t.list().then(P=>{k===E.current&&i(P)},()=>{k===E.current&&f(!0)})},[t]);Mre(()=>{e&&D()},[e,D]);let b=k=>{_(!1),eae(t,k.id).catch(()=>_(!0))},F=async()=>{if(!(!h||S)){v(!0),R(null);try{await EM({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(k){R(k instanceof _i?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=Wre({onPress:()=>{F()},busy:S});return Vo(Qi,{children:[Q(YS,{open:e,onClose:o,size:"xl",title:c("Version history"),description:Vo(Qi,{children:[c("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",c("Products, prices and forms always show as they are now.")]}),footer:Q("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Vo(Ji,{gap:3,children:[w?Q(Zi,{tone:"danger",onDismiss:()=>_(!1),children:c("The preview did not open. Try again.")}):null,d?Q(Zi,{tone:"danger",action:Q(Za,{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(qre,{"aria-label":c("Versions"),spacing:"comfortable",children:l.map(k=>Q(rae,{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:Qre(k,s)})},onName:()=>g(k)},k.id))})]})}),Q(oae,{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(tae,{version:T,onCancel:()=>g(null),onSave:async k=>{await t.name(T.id,k),g(null),D()}})]})}function Q5(){let{adapter:e,hasUnsavedEdits:o}=J5(),t=e.siteVersions,r=PM(),a=Ef();return t?Q(aae,{open:r,onClose:vM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as M4}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as D6e,categoryLabel as N6e,paletteWithoutPinned as M6e,pinnedSection as H6e}from"efficient-easel/screen/lib/document/palette-sections";var nae={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 e4(e){return z(nae,e)?.label}var o4=ub;function sae(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 lae={Hero:{[Xl]:{newChild:sae,childLabel:ea.Ticker}}},t4=Object.fromEntries(Object.entries(l1).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...z(lae,e)?.[t]}]))]));function r4(e,o=0,t,r){let a=dae(fae(e,o,r),t),n=a?Lg():null;return a&&n?iae(a,n):a}function iae(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 dae(e,o){if(!e||e.source!=="container"||!o||!bw())return e;let t=_d({data:o.data},o.id),r=typeof t?.type=="string"?vd(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 fae(e,o,t){let r=t?z(t4,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=z(nt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=fd(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=k2(e);return s?{source:"footer",slot:C2,choices:s,spec:null}:null}function a4(e,o=Od(e.type)){return Td(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 cae}from"react";var XS=null,ZS=new Set;function n4(e){if(XS!==e){XS=e;for(let o of ZS)o()}}function pae(e){return ZS.add(e),()=>{ZS.delete(e)}}function iWe(){return cae(pae,()=>XS,()=>null)}function s4(e){return EP(e)?.ownerId??null}function l4(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 uae}from"efficient-shell/format";var mae=["pages","sections","styles"],i4="sf-editor-left-view";function d4(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(i4);return uae(mae,"pages",e)}catch{return"pages"}}function f4(e){if(!(typeof window>"u"))try{window.localStorage.setItem(i4,e)}catch{}}function c4(e,o){return e==="styles"&&!o?"sections":e}function p4(e,o){return e?"sections":o}import{copyNode as xae}from"efficient-easel/data";function u4(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=ar(),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 m4={usedOn:e=>{let o=ar(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Pf()?.openPage(e),adopt:(e,o)=>ar()?.adopt(e.props.id,o),nodeOf:e=>ar()?.place(e)??null,detach:e=>{let o=Pf()?.config;return o?xae(e,o):e},removed:()=>Pf()?.reload()};import{sharedSectionsOf as zae}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Uae,scrollPreviewToTop as A4}from"efficient-easel/screen/lib/document/preview-dom";var hae=kf.mediaFields,Iae=/video|poster|focal|phone/i;function gae(e){return(z(hae,e)??[]).find(o=>!o.includes("[]")&&!Iae.test(o))??null}function yae(e){let o=gae(e.type);return e.type!==K?o&&Ed(e.type,e.props,o)?{fromData:!0}:o:qk(e.props)?{fromData:!0}:o}var x4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:yae,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var h4={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 Sae}from"react";import{Button as bae,Tooltip as wae,toast as I4}from"efficient-shell/ui";import{TemplateIcon as Cae}from"efficient-easel/icons";import{useSettledAction as kae}from"efficient-easel/easel";import{useScreenDocument as vae}from"efficient-easel/screen/components/ScreenDocumentContext";function y4({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=vae(),[a,n]=Sae(!1),s=async()=>{if(!a){n(!0);try{await r()?t():I4.error(c(g4))}catch{I4.error(c(g4))}finally{n(!1)}}},l=kae({onPress:()=>{s()},busy:a});return gm(wae,{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(bae,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:gm(Cae,{size:15}),children:c("Save as Template")})})})}var g4="Your last changes did not save, so the template was not made. Try again.";var Pae="Save your page changes first";function S4(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:Pae}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var b4="storefront-editor:save-as-template";import{phoneKey as Tae,tabletKey as Oae}from"efficient-easel/draw";var Eae=[po.top,Oae(po.top),Tae(po.top)],ym="ContactLocations",w4="ContactRouting",C4="CityPictures",k4="CityMaps",_ae=[{key:C4,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:k4,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function v4(e=Oa,o=VI){let t=db.find(r=>r.sections.some(a=>a.type===w4))?.key;return!e.includes(ym)||!t?[]:_ae.filter(r=>!(o&&r.key===C4)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:w4,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Dr(ym);if(!i)return null;let d=Ts(),f=xi(ym,i,s)(l.nodeDefaults,l.newNodeId,d);if(!f||!(o&&r===k4))return f;let x=xi(ym,i,0)(l.nodeDefaults,h=>`${h}-above`,d),u=Object.fromEntries(Eae.filter(h=>x?.props[h]!==void 0).map(h=>[h,x.props[h]]));return{...f,props:{...f.props,...u}}}}))}function P4(e=Oa,o){return[...v4(e,o)]}function O4(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=cs(e);if(n)return n(o,t,Ts());if(pw(e)&&a(K)&&a(dn)){let l=z(wt,e);return{type:K,props:{...o(K),id:t(K),direction:"column",name:`${r(e)} section`,content:[{type:dn,props:{...o(dn),id:t(dn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...Tl(e)!==Tl(dn)?{eyebrowLook:Tl(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...T4(e,t)}}]}}}if(z(nt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=T4(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function T4(e,o){return e==="Cards"?{template:iw(t=>o(t))}:e===dw?{template:fw(t=>o(t))}:{}}import{useEffect as Aae,useState as Fae}from"react";import{useEaselSession as Bae}from"efficient-easel/screen/lib/session-context";function E4(){let e=Bae().chrome?.products?.list,[o,t]=Fae(null);return Aae(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function H4({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=LL(),a=N4().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Es(i=>{i&&(o({kind:"ticker",heroId:i}),Uae(i))},[o]);return Yt(()=>{t(s)},[s,t]),Yt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let f=String(i.props.id);return i.type==="Hero"&&nI(i.props)&&lo(R4,{icon:lo(ja,{type:"ticker",size:13}),name:c(Ma),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function W4({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=ju(),a=N4().tree,{appState:n,config:s}=D4(u=>u),l=Lae({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=ka.find(u=>Gl[u]===i.kind),f=d&&"nodeId"in i?va(String(i.nodeId),d):null,x=Es(u=>{let h=Vc(u);if(!h)return;let{data:I,config:S}=l.current,v=Wae(I,S,{kind:"node",id:h.nodeId});if(!v)return;let O={kind:Gl[h.part],nodeId:h.nodeId};o({index:v.index,zone:v.zone},O)},[o]);return Yt(()=>{t(f)},[f,t]),Yt(()=>{r(x)},[r,x]),{partRows:(u,{rowClick:h})=>{let I=String(u.props.id),S=u_(u);if(S.length===0)return null;let v=T=>{let g=va(I,T.part);return lo(R4,{icon:lo(ja,{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 ed(L4,{children:[v(O),R.length>0&&lo(Hae,{children:R.map(v)})]})}}}function $4(e,o){return{partRows:(t,r)=>ed(L4,{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=Oo(M4()).preview?.draftLink,u=K5(e.data),h=S4({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Es(()=>{!a||!r||i(b4,{siteId:a,slug:r})},[i,a,r]),S=W5({pageSlug:r,siteId:a,token:d}),v=o.previewHref?.(r)??S;return{barLead:()=>h.visible&&lo(y4,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&lo(U5,{liveHref:v,pageId:n??null,draftLink:x}),mainAction:u}}function Gae(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]=_4(VT[0].id),[u,h]=_4(!1),{surface:I,setSurface:S}=hH(),v=()=>{if(l){d("styles"),o.reveal(),A4();return}e.show(OS),e.reveal(),A4()},O={id:"pages",label:c("Pages"),icon:lo(Dae,{}),panel:({onHide:T})=>lo(sH,{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(Mae,{}),active:e.kind==="website",onSelect:v}),l&&R.push({id:"styles",label:c("Styles"),icon:lo(Nae,{}),panel:({onHide:T,notify:g})=>lo(Y2,{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=>c4(T,l),openSettings:v,openStyles:()=>{x(qT),d("styles")},openPageStyles:l?()=>{x(Df),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(N2),e.reveal()}:void 0}}function Kae(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=Sm(),a=D4(s=>s.config),n=M4();Yt(()=>(Fx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Fx(null)),[e,o,t,a]),Yt(()=>{let s=ar();if(!s||!r)return;let l=!1;return zae(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function z4(){let e=Mf();return Es(o=>{S0(o,e)},[e])}function qae(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;Yt(()=>{n4(s?.type==="BookingBox"&&s.props.region==="confirm"?s4(l(String(s.props.id))):null)},[s?.props.id]);let i=u5(e,o),{capabilities:{hasSiteSettings:d}}=Sm();Kae();let{chat:f,setChat:x,setSelected:u,setSelectHandler:h}=Uu(),I=Es(()=>n(M2),[n]),S=a==="chat";Yt(()=>{u(S)},[S,u]),Yt(()=>{h(I)},[h,I]);let{setOpenHandler:v}=Fi(),O=Es(()=>n(H2),[n]);Yt(()=>{v(O)},[v,O]);let R=$4(H4(e),W4(e)),T=jae(o),g=Gae(e,r);JM(r);let w=t.device,_=z4();return{...R,...T,...g,hasOwnRows:E=>E.type===hm,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:_,wrap:E=>lo(Gx.Provider,{value:!0,children:ed($ae.Provider,{value:w,children:[E,lo(Q5,{})]})}),addPanelRow:E=>d?ed("div",{className:"sf-addside-sitewide",children:[lo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:lo(ja,{type:"chat",size:16})}),ed("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(Rae,{checked:f.enabled,onChange:D=>x({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var F4=null,JS=new WeakMap;function Vae(e){let o=nC();if(!e||!o)return e;F4!==o&&(F4=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 Yae={isLockedBlock:(e,o)=>yu(e,o)||!!(o&&ar()?.heldElsewhere(o.props.id)),duplicateBlocked:dm,nestDepth:(e,o,t)=>o===Wd?$d(e,t):0,newSectionNode:O4,canAddTo:(e,o,t,r)=>Vae(r4(e,o,r,t)),blockIsOffered:vR,slotsOf:a4,resolveOnInsert:!0},Xae=new Proxy(h4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),Zae={labelAtLevel:(e,o,t)=>c(Cm(e,o,t)),descriptions:Xae,categoryLabel:e=>{let o=e4(e);return o===void 0?void 0:c(o)},firstSection:o4,blockRowName:l4,rowName:Su,plainText:an,Icon:ja,Thumbnail:q2,useProducts:E4,presets:P4()},Jae={desktop:2e3,tablet:800,mobile:390},B4="desktop",Qae={options:pH,initial:B4,fluid:B4,fluidMin:Yb,widths:Jae,hidesPerView:!0},ene={read:d4,write:e=>f4(e),forSelection:(e,o)=>p4(e,o)},one={first:zo,last:Le,firstGroup:Do,lastGroup:Je,isSectionGroup:rP,sectionGroupZone:aP,panelOf:e=>e===zo?D2:null,get sharedReach(){return ua()?rne:void 0},get shared(){return ar()?m4:void 0},get groupTab(){return ua()?v2:void 0},get groupBadge(){return ua()?CS({type:Je})??void 0:void 0},get changeNotice(){return ua()?P2():void 0},get band(){return ua()?tne:void 0},get groupAccepts(){return ua()?lP:void 0}},tne={foldable:!0},rne=e=>CS(e)??u4(e);function ane(e){return{...$4(H4(e),W4(e)),onCopyItem:z4(),openSettings:()=>e.show(OS)}}function nne(e,o){C5(e,o),R5()}var y$e={useOwnerName:Bn,useDocumentLabel:v0,useBridges:qae,useStandaloneBridges:ane,useDocumentPass:nne,blockRules:Yae,blockLook:Zae,devices:Qae,leftView:ene,pinned:one,Canvas:MM,canvasDrag:{media:x4},Inspector:$2};export{_g as a,Gt as b,Kt as c,Qe as d,Ume as e,lI as f,UIe as g,fi as h,ci as i,zA as j,UA as k,Ap as l,jIe as m,oG as n,jA as o,GIe as p,pR as q,_Pe as r,uR as s,BPe as t,gl as u,ha as v,fI as w,Xme as x,lp as y,LO as z,RO as A,_1 as B,V0 as C,vt as D,Jf as E,Y0 as F,dh as G,ale as H,nle as I,sle as J,X0 as K,lle as L,Qf as M,eO as N,cle as O,ple as P,oO as Q,ule as R,vle as S,Ple as T,lO as U,qo as V,Mn as W,ao as X,Fa as Y,Y as Z,Xn as _,J as $,X as aa,ae as ba,ne as ca,fe as da,_xe as ea,ce as fa,Jn as ga,Qn as ha,oi as ia,ti as ja,R1 as ka,Lxe as la,DU as ma,D1 as na,Nxe as oa,Mxe as pa,N1 as qa,kh as ra,TO as sa,QW as ta,Tl as ua,OO as va,Fie as wa,pI as xa,zxe as ya,Uxe as za,jxe as Aa,Gxe as Ba,Kxe as Ca,qxe as Da,Qle as Ea,wc as Fa,vl as Ga,eie as Ha,oie as Ia,gO as Ja,yh as Ka,BW as La,LW as Ma,tie as Na,RW as Oa,rie as Pa,gE as Qa,ece as Ra,TE as Sa,oce as Ta,tce as Ua,rce as Va,hp as Wa,hI as Xa,$1 as Ya,Ip as Za,ahe as _a,YU as $a,XU as ab,ZU as bb,nhe as cb,Wo as db,Da as eb,as as fb,Ghe as gb,Khe as hb,qhe as ib,RE as jb,$c as kb,f$ as lb,cce as mb,wA as nb,CA as ob,kA as pb,pIe as qb,TA as rb,YIe as sb,XIe as tb,Bp as ub,KA as vb,_l as wb,AO as xb,FO as yb,Th as zb,Sa as Ab,KO as Bb,hde as Cb,Ide as Db,gde as Eb,Ll as Fb,rt as Gb,vde as Hb,sie as Ib,yie as Jb,bh as Kb,Sie as Lb,ga as Mb,Cc as Nb,Ve as Ob,Dde as Pb,JO as Qb,eE as Rb,oE as Sb,Lp as Tb,eF as Ub,pge as Vb,Rp as Wb,oF as Xb,Ige as Yb,pF as Zb,EG as _b,Wp as $b,xye as ac,jc as bc,w$ as cc,Kh as dc,WG as ec,_ye as fc,MF as gc,HF as hc,Aye as ic,Fye as jc,Vx as kc,u6 as lc,Yx as mc,a0 as nc,qye as oc,QF as pc,eB as qc,oB as rc,ySe as sc,ASe as tc,FSe as uc,BSe as vc,ig as wc,iB as xc,f8 as yc,c8 as zc,Up as Ac,DSe as Bc,NSe as Cc,fbe as Dc,_B as Ec,cbe as Fc,AB as Gc,ube as Hc,MB as Ic,HB as Jc,G8 as Kc,zB as Lc,Abe as Mc,qp as Nc,$be as Oc,ui as Pc,jbe as Qc,KB as Rc,Kbe as Sc,qB as Tc,VB as Uc,Ybe as Vc,Pl as Wc,JW as Xc,pr as Yc,ewe as Zc,Vp as _c,awe as $c,Xp as ad,kie as bd,vie as cd,ya as dd,Pie as ed,lh as fd,Zf as gd,F0 as hd,Fr as id,zl as jd,H$ as kd,Yh as ld,Zce as md,Ul as nd,$$ as od,Jce as pd,tpe as qd,jl as rd,Epe as sd,_pe as td,Ape as ud,Fpe as vd,Y$ as wd,Bpe as xd,Vc as yd,Kl as zd,Npe as Ad,Qh as Bd,y_ as Cd,S_ as Dd,Xh as Ed,tz as Fd,Mpe as Gd,Yc as Hd,ql as Id,Zc as Jd,Hpe as Kd,Wpe as Ld,Xc as Md,$pe as Nd,zpe as Od,k_ as Pd,Vl as Qd,Yl as Rd,Qc as Sd,P_ as Td,Vn as Ud,T_ as Vd,ep as Wd,op as Xd,tp as Yd,O_ as Zd,E_ as _d,__ as $d,A_ as ae,F_ as be,H_ as ce,W_ as de,yue as ee,Sue as fe,bue as ge,wue as he,Cue as ie,vz as je,Pz as ke,kue as le,vue as me,Pue as ne,z_ as oe,Tue as pe,Oue as qe,Eue as re,_ue as se,Ez as te,_z as ue,Lz as ve,V_ as we,Nz as xe,X_ as ye,Z_ as ze,Lc as Ae,Kz as Be,ame as Ce,r1 as De,cme as Ee,Cme as Fe,kme as Ge,pfe as He,Rl as Ie,Ife as Je,gfe as Ke,mE as Le,hi as Me,Vt as Ne,GR as Oe,du as Pe,e0e as Qe,o0e as Re,p0e as Se,u0e as Te,kq as Ue,qg as Ve,eD as We,m0e as Xe,tD as Ye,rD as Ze,iD as _e,Aq as $e,Lq as af,N0e as bf,X0e as cf,Z0e as df,bi as ef,J0e as ff,Q0e as gf,Xg as hf,eOe as if,pke as jf,Nl as kf,Wh as lf,Hc as mf,EOe as nf,Gn as of,_ce as pf,Ace as qf,YE as rf,x9 as sf,tN as tf,ki as uf,qEe as vf,YEe as wf,sy as xf,hN as yf,Qp as zf,Ike as Af,Ske as Bf,LL as Cf,Ig as Df,RL as Ef,DL as Ff,Cke as Gf,NL as Hf,ou as If,Ake as Jf,HL as Kf,zL as Lf,WL as Mf,V1e as Nf,Y1e as Of,X1e as Pf,Su as Qf,$N as Rf,hy as Sf,hAe as Tf,IAe as Uf,xX as Vf,hX as Wf,oFe as Xf,tFe as Yf,rFe as Zf,aFe as _f,Pu as $f,Tu as ag,OFe as bg,pM as cg,xM as dg,hM as eg,IM as fg,bLe as gg,bCe as hg,_u as ig,$u as jg,lH as kg,iH as lg,fH as mg,zu as ng,QLe as og,eRe as pg,Uu as qg,LJ as rg,fRe as sg,Fi as tg,mRe as ug,hH as vg,Ln as wg,f6 as xg,vne as yg,Pne as zg,LHe as Ag,RHe as Bg,DHe as Cg,f1 as Dg,IRe as Eg,ju as Fg,xne as Gg,m6 as Hg,x6 as Ig,h6 as Jg,l0 as Kg,Gne as Lg,qf as Mg,N6 as Ng,M6 as Og,Sse as Pg,ine as Qg,aW as Rg,hO as Sg,Kle as Tg,qle as Ug,AW as Vg,Vle as Wg,Yle as Xg,bc as Yg,Xle as Zg,Un as _g,aE as $g,nE as ah,hE as bh,Yfe as ch,LE as dh,lce as eh,DE as fh,qh as gh,v$ as hh,E$ as ih,zce as jh,dCe as kh,PCe as lh,_Ce as mh,hL as nh,RCe as oh,DCe as ph,VCe as qh,YCe as rh,ike as sh,mi as th,I7 as uh,fve as vh,gve as wh,Dve as xh,Nve as yh,cPe as zh,nR as Ah,pne as Bh,eNe as Ch,vH as Dh,Le as Eh,im as Fh,Bt as Gh,J2 as Hh,Ki as Ih,Q2 as Jh,e5 as Kh,$5e as Lh,z5e as Mh,D5 as Nh,KS as Oh,N5 as Ph,r4 as Qh,iWe as Rh,y$e as Sh};