efficient-storefront-blocks 0.138.1 → 0.139.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/chunks/{CustomHtmlCodeWindow-4OS3BLNS.js → CustomHtmlCodeWindow-FSTAOP3D.js} +1 -1
  3. package/dist/chunks/{EditorPreviewCheckout-RF2M6FBA.js → EditorPreviewCheckout-KKWOYQT5.js} +1 -1
  4. package/dist/chunks/SiteEditorProvider-ESDRW5S4.js +1 -0
  5. package/dist/chunks/{chunk-LAUTWUIM.js → chunk-5KEEVCY6.js} +1 -1
  6. package/dist/chunks/{chunk-U54HRBBL.js → chunk-5NY7QUSW.js} +1 -1
  7. package/dist/chunks/{chunk-DXVVHVFA.js → chunk-A453E6SC.js} +1 -1
  8. package/dist/chunks/{chunk-OAHMFUHH.js → chunk-EN6NBFZO.js} +1 -1
  9. package/dist/chunks/chunk-EVIGYNEU.js +337 -0
  10. package/dist/chunks/{chunk-55HCCLM4.js → chunk-KDDW7HM7.js} +1 -1
  11. package/dist/chunks/{chunk-JZT76GOY.js → chunk-KMKBZF5D.js} +1 -1
  12. package/dist/chunks/{chunk-MCIZHB3Z.js → chunk-UA7ENMMT.js} +1 -1
  13. package/dist/chunks/{fitment-data-5CQLYPUS.js → fitment-data-RZDYZEJS.js} +1 -1
  14. package/dist/chunks/{section-css-style-GS3GFILD.js → section-css-style-UBORAPCW.js} +1 -1
  15. package/dist/index.js +3 -3
  16. package/dist/render/built-with.json +1 -1
  17. package/dist/routine-index.json +1 -1
  18. package/dist/value-index.json +1 -1
  19. package/package.json +3 -3
  20. package/dist/chunks/SiteEditorProvider-445QTFDY.js +0 -1
  21. package/dist/chunks/chunk-6VZXQPDK.js +0 -337
  22. /package/dist/chunks/{chunk-EWEX5KJD.js → chunk-3SSNRXHF.js} +0 -0
  23. /package/dist/chunks/{chunk-OAHMFUHH.js.LEGAL.txt → chunk-EN6NBFZO.js.LEGAL.txt} +0 -0
  24. /package/dist/chunks/{chunk-6VZXQPDK.js.LEGAL.txt → chunk-EVIGYNEU.js.LEGAL.txt} +0 -0
  25. /package/dist/chunks/{chunk-4BGF2KJJ.js → chunk-F24QIWKG.js} +0 -0
  26. /package/dist/chunks/{chunk-T3YKEXOD.js → chunk-MMTJNMVZ.js} +0 -0
@@ -0,0 +1,337 @@
1
+ import{$ as cf,D as Fk,E as Bk,F as nf,G as Rk,H as $k,I as vr,J as zk,K as Uk,L as jk,M as lt,N as sf,O as ko,P as fe,R as lf,S as Pr,T as df,X as Gk,Y as ff,Z as Tr,_ as Kk,a as Zo,b as Qs,ba as rP,c as Yd,d as wn,e as el,f as lk,fa as xP,g as Cn,h as Xd,ha as hP,ia as $f,ja as UT,ka as jT,r as ll,t as Ak}from"./chunk-UA7ENMMT.js";import{a as bP,d as kf,e as it,f as vf,g as Pf,h as _f,l as Vx}from"./chunk-F24QIWKG.js";import{$ as fx,$a as Qd,$c as bv,$d as fa,$e as Of,$f as Af,$j as Dn,A as CC,Aa as VC,Ab as tf,Ac as nv,Ad as Mv,Ae as iP,Ag as oT,Aj as Fn,Al as Nn,B as kC,Ba as YC,Bb as rf,Bc as sv,Bd as Hv,Be as dP,Bf as WP,Bg as tT,Bj as TT,Bl as Uf,C as vC,Ca as XC,Cb as Tk,Cc as lv,Cd as Wv,Ce as fP,Cg as rT,D as nt,Da as mx,Db as Io,Dc as If,Dd as $v,De as cP,Dg as Lx,Dk as Il,E as PC,Ea as JC,Eb as gx,Ec as iv,Ed as vx,Ee as wf,Eg as aT,Ej as $x,Ek as Wf,F as TC,Fa as ZC,Fb as nl,Fc as dv,Fd as zv,Fe as pP,Fg as Dx,Fj as xl,Fk as Gx,G as OC,Ga as QC,Gb as zt,Gc as fv,Gd as Uv,Ge as uP,Gg as lr,Gk as HT,H as EC,Ha as ek,Hb as vn,Hc as cv,Hd as jv,Hg as Nx,Hk as ua,I as _C,Ia as ok,Ib as sl,Ic as jt,Id as Gv,Ie as Qo,Ig as Bf,Ij as Bn,Ik as WT,J as AC,Ja as tk,Jc as ze,Jd as Kv,Je as mP,Jg as nT,Jk as $T,K as FC,Ka as wr,Kc as Or,Kd as Px,Ke as Ue,Kf as $P,Kg as sT,Kj as OT,Kk as zT,La as rk,Lb as yx,Lc as wx,Ld as qv,Le as vt,Lf as zP,Lg as lT,M as BC,Mb as na,Mc as pv,Md as Tx,Me as Te,Mf as UP,Mg as iT,Mk as GT,N as RC,Na as ak,Nb as af,Nc as uv,Nd as Vv,Ne as yP,Nf as jP,Ng as dT,O as LC,Oa as Jd,Ob as Ok,Oc as mv,Od as Yv,Of as Bx,Ok as KT,P as Ud,Pa as ol,Pb as Ek,Pc as gf,Pd as Xv,Pf as GP,Pk as Kx,Q as DC,Qa as Zd,Qb as _k,Qc as dl,Qd as Gt,Qf as KP,Qg as fT,R as NC,Ra as ik,Rb as pf,Rc as xv,Rd as Jv,Re as Ox,Rf as Rx,Rg as cT,Rk as qT,Sb as Yk,Sc as hv,Sd as da,Sj as ET,Sk as VT,Tb as uf,Tc as Iv,Tj as zx,Tk as YT,Ub as bx,Uc as yf,Ud as Zv,Ue as ul,Uj as _T,Uk as XT,Va as dk,Vb as mf,Vc as gv,Vd as En,Vf as sr,Vi as pa,Vj as AT,Vk as JT,W as dx,Wa as fk,Wc as yv,Wk as ZT,Xa as tl,Xc as Cx,Xd as nr,Xf as _n,Xi as ir,Xj as Hf,Xk as QT,Y as Js,Yc as Sv,Yd as Qv,Ye as SP,Yj as Rn,Yk as e0,Z as jd,Za as kn,Zc as On,Zd as pl,Ze as Ex,Zf as qP,Zh as gT,Zj as Ln,_ as Fo,_a as ck,_b as Pn,_d as eP,_e as wP,_f as VP,_g as Rf,_h as yT,_j as hl,a as Ao,aa as yn,ab as pk,ad as wv,ae as oP,ag as Ar,ak as FT,b as hn,ba as MC,bb as rl,bc as Xk,bd as Cv,bf as _P,bg as Ff,ca as HC,cb as uk,cc as Jk,cd as kv,ce as Sf,cj as Nf,d as nC,da as WC,db as mk,dc as Zk,dd as vv,de as _r,dg as An,e as nx,ea as $C,eb as xk,ec as il,ed as sa,ee as tP,ef as Ax,eh as pT,ej as wT,f as sC,fa as zC,fb as hk,fd as Pv,g as c,ga as cx,gb as hx,gd as kx,gh as uT,h as $t,hb as Ik,hd as Tv,hk as BT,i as gn,ia as UC,ib as al,id as Ov,ii as ST,ik as RT,j as Ys,ja as Gd,jb as gk,jd as Ev,jf as AP,ji as bT,k as Ho,kb as Ix,kd as _v,kf as FP,l as Xs,ld as Av,lf as Ef,mb as yk,md as Er,me as aP,mf as BP,mg as Fr,n as mC,nb as Sk,nd as fl,nf as RP,ng as YP,nl as qx,o as xC,od as la,og as XP,p as hC,pb as ef,pc as Tn,pd as Fv,pe as nP,pg as JP,pk as Ux,q as IC,qb as bk,qc as Ut,qe as sP,qh as Mx,qj as CT,r as gC,rb as wk,rc as Qk,rd as ia,re as lP,rh as Lf,rk as LT,s as yC,sb as Ck,sc as ev,sd as cl,sh as ca,sk as DT,t as SC,tb as kk,tc as ov,td as Bv,th as Df,tj as kT,tk as NT,u as bC,ub as of,uc as tv,ud as Rv,uf as LP,ug as ZP,uj as Mf,v as zd,vb as vk,vc as rv,vf as Fx,vh as mT,vj as Hx,vk as MT,vl as o0,w as br,wc as xf,wd as Lv,we as Wo,wf as DP,wh as xT,wj as vT,wl as t0,xc as hf,xd as Dv,xe as ao,xf as NP,xh as hT,xj as PT,xk as jx,xl as zf,y as ix,yb as Pk,yc as av,yd as Nv,yf as MP,yg as QP,yh as IT,yj as Wx,yl as r0,z as wC,za as qC,zb as Cr,ze as bf,zf as HP,zg as eT}from"./chunk-A453E6SC.js";import{a as pC,b as $d,c as uC,g as qk,h as Sx,i as Vk}from"./chunk-KDDW7HM7.js";import{$ as Ib,$a as Nb,$c as R,$e as ex,$g as fC,A as io,Ab as Jb,Ad as cw,B as an,Be as Zm,Bf as rx,Ca as ye,Cb as js,Cd as Xm,Ce as bw,Ci as vo,D as $s,Db as Zb,E as ud,Ed as pw,Ee as Qm,F as Nt,Fd as Pd,G as nn,Ga as rt,Gg as Jw,Gi as ml,H as $e,Ha as wt,Hb as Cd,Hd as at,Hg as Zw,I as Ye,Ia as Am,Ic as aw,Id as Mo,Ie as Ed,If as Lw,Ig as Qw,J as sn,Ja as Fm,Jd as ro,Je as _d,Jg as eC,K as md,Kc as Gm,Kd as Ht,Ke as ww,Kh as xx,L as fb,La as Bm,Ld as rr,Le as Ad,Lf as ar,Lh as Sn,M as cb,Ma as Rm,Mb as Qb,Md as kt,Me as Fd,Mg as oC,Mh as nk,Nd as pn,Ne as Cw,Nh as st,O as pb,Od as uw,Oe as kw,Oh as Jo,P as xd,Pd as un,Pe as Bd,Pg as tC,Ph as Vd,Q as ub,Qa as Lm,Qd as mw,Qe as Rd,Qg as rC,Qh as sk,R as ea,Ra as Eb,Rb as kd,Rc as nw,Re as aa,Rf as Dw,Rh as bn,S as mb,Sa as _b,Se as vw,Sg as aC,T as xb,Ta as Ge,U as zs,Ua as Ab,Ub as ew,Ud as ra,Ug as lC,Uh as Lk,V as Em,Va as Sd,Vb as ow,Vd as xw,Vg as iC,W as Ce,Wa as Fb,Wd as hw,We as Pw,X as K,Xa as Bb,Xb as tw,Xd as mn,Xf as Nw,Xg as Sr,Y as hb,Ya as Rb,Yc as U,Yd as Ks,Yf as Mw,Yh as Dk,Za as Lb,Zb as zm,Zc as oe,Zd as qs,Ze as Wt,Zf as Hw,Zg as dC,_ as hd,_a as Db,_c as Km,_d as Jm,_e as Vs,_f as Ww,_g as sx,a as rn,ab as Mb,ad as Co,ae as Iw,af as ox,ah as lx,b as ho,bb as Hb,bd as or,be as gw,bf as Tw,bh as Wd,c as lo,ca as Id,cb as bd,cd as sw,ce as yw,cf as Ow,cg as $w,d as Qt,da as gb,db as wd,dd as H,df as Ld,dg as zw,dh as cC,di as Nk,ea as yb,eb as Wb,ed as vd,ee as Sw,ef as Ew,ei as kr,f as Xo,fa as _m,fb as $b,fd as No,fg as Uw,g as Ws,ga as Sb,gc as Um,gd as lw,ge as Td,gg as jw,gi as Mk,h as tb,ha as bb,hb as zb,hd as Ct,hf as _w,hg as Md,hi as Hk,i as rb,ia as wb,ib as Ub,id as Mt,ie as Od,if as Dd,ig as Gw,ii as Wk,j as ab,jb as Dm,jd as qm,jf as Aw,jg as Hd,k as nb,kb as jb,kd as gr,kf as tx,kg as ax,la as Cb,lb as Gb,ld as tr,lf as Fw,ma as kb,mb as Nm,md as iw,mf as Bw,na as vb,nb as dn,nf as Nd,ng as Kw,o as sb,od as Fe,of as xn,og as qw,pa as Pb,pb as oa,pd as ta,pf as In,pi as CP,qb as Mm,qd as Gs,qf as yr,qi as kP,ra as Tb,rb as Hm,rd as fn,rg as Vw,rh as px,ri as Tf,s as lb,sa as gd,sb as Wm,sd as dw,sg as Yw,sh as Kd,si as vP,ta as Ob,tb as Kb,td as Vm,th as jC,ti as _x,u as Le,ua as yd,ub as qb,ud as cn,uf as Rw,uh as ux,ui as PP,v as ib,vb as Vb,vc as jm,vd as Ym,vg as Xw,vh as GC,w as pd,wb as $m,wi as TP,x as db,xb as Yb,xc as rw,xh as qd,xi as OP,ya as Us,yb as er,yh as KC,yi as EP,z as Pe,za as ln,zb as Xb,zd as fw,zh as Zs}from"./chunk-5NY7QUSW.js";import{a as z,b as Qe}from"./chunk-3SSNRXHF.js";import{c as IP,d as gP,e as Cf}from"./chunk-MMTJNMVZ.js";import{jsx as jf,Fragment as C6,jsxs as k6}from"react/jsx-runtime";import{createContext as v6,useContext as P6}from"react";var T6={mirrorHostStyles:!0,css:null,fontHrefs:[]},a0=v6(T6);function xse({value:e,children:o}){return jf(a0.Provider,{value:e,children:o})}function gl(){return P6(a0)}function n0(){let{mirrorHostStyles:e,css:o,fontHrefs:t}=gl(),r=Qo();return k6(C6,{children:[t.map(a=>jf("link",{rel:"stylesheet",href:a},a)),o?jf("style",{"data-sf-canvas-css":"",children:o}):null,e?null:jf(mP,{usedKeys:r.siteFonts.keys(),preload:!1})]})}import{jsx as O6}from"react/jsx-runtime";import{createContext as E6,useContext as _6}from"react";var s0=E6(void 0);function yse({metadata:e,children:o}){return O6(s0.Provider,{value:e,children:o})}var l0=()=>_6(s0);import{jsx as uo,Fragment as d6,jsxs as ld}from"react/jsx-runtime";import{useCallback as Bs,useEffect as Jt,useRef as Wne,useState as n6}from"react";import{SettingsSwitch as $ne}from"efficient-easel/panel";import{PagesIcon as zne,StylesIcon as Une}from"efficient-easel/rail";import{PaletteIcon as jne}from"efficient-shell/icons/efficient";import{Subtree as Gne,TreeRow as f6}from"efficient-easel/tree";import{useEasel as c6}from"efficient-easel/easel";import{toItemSelector as Kne}from"efficient-easel/node-ops";import{useEaselStrings as p6}from"efficient-easel/strings";import{createContext as A6,useContext as F6}from"react";var Yx=A6(!1),wse=()=>F6(Yx);import{useMemo as B6,useRef as R6}from"react";import{useEaselApi as L6}from"efficient-easel/easel";import{useSectionOps as D6}from"efficient-easel/screen/lib/document/use-section-ops";function Gf(){let e=L6(),o=D6(),t=R6(o);return t.current=o,B6(()=>({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 r3}from"efficient-easel/draw";import{insertAt as a3,moveTo as n3,removeAt as s3}from"efficient-easel/fields";import{useSyncExternalStore as X6}from"react";import{isNodeList as i0}from"efficient-easel/data";var d0="Flex";function Mn(e,o){return Wt(e)?typeof e?.[Xo]=="string"?Xx(o?.[Xo]):"":Xx(e?.[Xo])}var Xx=e=>typeof e=="string"?e.trim():"",N6=e=>e.type===io&&Array.isArray(e.props?.[Qm])&&e.props[Qm].some(o=>Xx(o?.[Xo])!==""),M6=new Intl.NumberFormat("en-US");function H6(e){return/^\d+$/.test(e)?M6.format(Number(e)):e}function Fse(e,o){let t=o?o.find(r=>r.key===e)?.value:lb(Ws).find(r=>r.key===e)?.value;return t===void 0?null:H6(t)}var W6={[Xo]:"any"};function Jx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Mn(t)!==""||o&&Mn(t,W6)!==""),a=o||N6(e),n=Ye(e,l=>$e(l,i=>{let d=Jx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==d0)return{node:n===t?e:{...e,props:n},names:r};let s=Le(n);if(r&&!s&&(n={...n,[lo]:Ws}),!r&&s===Ws){let{[lo]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function f0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of nn(r??{})){let n=f0(a,o,r.type===d0?r:t);if(n!==void 0)return n}}}function Bse(e,o){if(!i0(e))return!0;let t=f0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Le(t.props);return!r||r===Ws}function c0(e){let o=e?.content;if(!i0(o))return e;let t=o.map(r=>Jx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function p0(e){return Jx(e).node}import{decodePartId as J6}from"efficient-easel/draw";function Hn(e,o){let t=sv(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?DT(t,o.index):null:lv(e)?.[o.rowKey]??null}function Kf(e,o,t){let r=e.node.props,{key:a,row:n}=Ut(e.propKey),s=n?dv(r,a,n,e.kind,o):nv(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as x0}from"efficient-easel/draw";import{parseOption as $6}from"efficient-shell/format";var Zx=e=>String(e+1).padStart(2,"0"),z6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Qx="two-digit",u0=e=>$6(z6,Qx,e),qf=(e,o)=>e==="plain"?`${o+1}.`:Zx(o);var th="Contents",eh="Flex",m0="Text",U6="numberForm",j6="_contentsEntries",G6="_kickerNumber",h0="data-sf-kicker-number",K6=e=>x0(e).text.trim(),I0=e=>fa(e?.anchor),oh=e=>String(e.props?.id??""),q6=e=>!x0(e.props?.text).hidden&&!Mn(e.props)&&!Wt(e.props),yl=e=>nn(e);function g0(e){for(let o of yl(e))for(let t of o){if(nr(t.props??{}))continue;if(t.type===m0&&q6(t))return t;if(t.type===m0)continue;let r=g0(t);if(r)return r}}function y0(e){return yl(e).some(o=>o.some(t=>t&&!nr(t.props??{})&&(t.type===th||y0(t))))}var S0=e=>e.type===eh&&_n(eh,e.props?.direction)==="row";function b0(e){return yl(e).some(o=>o.some(t=>t&&!nr(t.props??{})&&(t.type===th||!S0(t)&&b0(t))))}function V6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||nr(n.props??{}))continue;if(n.type===th){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(S0(n)&&b0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of yl(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===eh&&I0(n.props)&&s&&!y0(n)){s.push({box:n,kicker:g0(n)});continue}for(let l of yl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function Y6(e){return e.map(o=>({label:o.kicker?ln(K6(o.kicker.props?.text)):"",anchor:I0(o.box.props)}))}function rh(e){let o=e?.length?V6(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=oh(a.contents);n&&t.set(n,Y6(a.sections));let s=u0(a.contents.props?.[U6]);a.sections.forEach((l,i)=>{let d=l.kicker?oh(l.kicker):"";d&&r.set(d,qf(s,i))})}return{entries:t,numbers:r}}var Zse=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function w0(e){let o=e;if(!o?.content?.length)return e;let t=rh(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=Ye(s,h=>$e(h,n)),i=l.props??{},d=l!==s,f=oh(s),m=f?r.get(f):void 0;m&&(i={...i,[j6]:m},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[G6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var Z6=`[${h0}]`,Q6=["bold","italic","underline","strike","link","sup","sub"],e3=["bullet","number"];function sh(e,o){return e?[...Q6,...o?e3:[]]:[]}function C0(e,o){let t=J6(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}=Ut(a),d=o.components[n.type]?.fields?.[l],f=i?Hn(d,i):d,m=xf(f);if(!m)return null;let u=n.props??{};if(gT(u)!==null||!i&&Ld(n.type,u,l)||n.type==="Text"&&l==="text"&&Mn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?If(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:m,stored:h,offPage:Nf(f),panelOnly:rv(f)}}function Vf(e,o){let t=C0(e,o);if(!t)return null;let{text:r,hidden:a}=pa(t.stored);if(!yv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=hf(t.kind);return{partId:e,value:r,rules:gd,multiline:n,skip:Z6,offered:sh(t.kind!=="plainText",n),write:s=>{let l=C0(e,o);l&&Kf({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function lh(e,o,t){return e?.isConnected&&e.getAttribute(ze)===t?e:o?.querySelector(`[${ze}="${Yf(t)}"]`)??null}function Yf(e){return e.replace(/["\\]/g,"\\$&")}function k0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var ah=null,nh=new Set;function o3(){return ah}function ih(e){if(e!==ah){ah=e;for(let o of nh)o()}}function t3(e){return nh.add(e),()=>{nh.delete(e)}}function v0(){return X6(t3,o3,()=>null)}function P0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=Cw(t.type);return!r||Le(t.props)?null:{node:t,rows:r}}function l3(e,o){let t=P0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Ew(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:r3(e.ownerId,Tn(t.rows,{index:e.index,rowKey:a}))}function Xf(e,o){let t=l3(e,o);return t?Vf(t,o):null}function T0(e,o){return Xf(e,o)?.value}function O0(e,o){let t=Xf(e,o);return t?(t.write(e.text),!0):!1}function E0(e,o){let t=P0(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=a3(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=n3(n,s,i);break}case"delete":l=s3(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 eQ,jsxs as ju}from"react/jsx-runtime";import{Fragment as oQ,useEffect as OH,useMemo as EH,useRef as tQ,useState as Ua}from"react";import{useScreenDocument as RH}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Wy}from"efficient-easel/draw/client";import rQ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as aQ}from"efficient-easel/chrome";import{Input as nQ,LoadingSpinner as sQ,PopupMenu as lQ,PopupMenuItem as _H,toast as AH}from"efficient-shell/ui";import{LayersTree as iQ,TreeGroupLabel as dQ,TreeRow as FH,TreeRowAction as Gu}from"efficient-easel/tree";import{AddIcon as fQ,DuplicateIcon as cQ,PageIcon as pQ,SettingsIcon as uQ}from"efficient-easel/icons";import{PagesIcon as mQ}from"efficient-easel/rail";import{useEaselHost as xQ}from"efficient-easel/screen/lib/host";import{useEaselSession as $y}from"efficient-easel/screen/lib/session-context";import{useCallback as Jf,useEffect as i3,useSyncExternalStore as d3}from"react";import{useScreenDocument as B0}from"efficient-easel/screen/components/ScreenDocumentContext";var _0=new WeakMap;function Sl(e){let o=_0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},_0.set(e,o)),o}function dh(e,o){e.rows=o;for(let t of e.listeners)t()}var Zf=new Set;function Qf(e,o){o?Zf.add(e):Zf.delete(e)}function A0(e){let o=Sl(e),t=e.listPages().then(r=>dh(o,Zf.size?r.filter(a=>!Zf.has(a.id)):r),()=>dh(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var F0=()=>null,f3=()=>()=>{};function bl(){let{adapter:e,ready:o}=B0(),t=Jf(l=>{let{listeners:i}=Sl(e);return i.add(l),()=>i.delete(l)},[e]),r=Jf(()=>Sl(e).rows,[e]),a=d3(o?t:f3,o?r:F0,F0);i3(()=>{if(!o)return;let l=Sl(e);l.rows===null&&!l.loading&&A0(e)},[e,o]);let n=Jf(()=>o?A0(e):Promise.resolve(),[e,o]),s=Jf(l=>dh(Sl(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function c3(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function R0(){let{currentSlug:e}=B0(),{rows:o}=bl();return c3(o,e)}import{canDuplicatePage as hQ,DuplicatePageDialog as IQ}from"efficient-easel/page-copy";import{jsx as Oo,jsxs as SH}from"react/jsx-runtime";import{useEffect as NZ,useId as MZ,useMemo as HZ,useRef as WZ,useState as Ny}from"react";import{useScreenDocument as $Z}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as zZ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as bH}from"efficient-easel/page-copy";import{AddIcon as UZ}from"efficient-easel/icons";import{Button as jZ,Dialog as GZ,EmptyState as KZ,LoadingSpinner as qZ,Paragraph as VZ,SidebarLayout as YZ,SidebarNavItem as My,Title as XZ,toast as wH}from"efficient-shell/ui";import{jsx as Ot,jsxs as NL}from"react/jsx-runtime";import{useEffect as Dq,useState as Ag}from"react";import{CanvasFrame as Nq}from"efficient-easel/easel";import{Button as Mq,Card as Hq,FitFrame as Wq,Text as $q}from"efficient-shell/ui";import{jsx as H0,Fragment as C3,jsxs as k3}from"react/jsx-runtime";import{useEffect as W0,useLayoutEffect as v3}from"react";var ec="data-theme",L0="light";function p3(e){return e.getAttribute(ec)===L0?"light":"dark"}function u3(e,o){return p3(e)===o?!1:(o==="light"?e.setAttribute(ec,L0):e.removeAttribute(ec),!0)}function m3(e){return Vx(e).getItem(rx)}function Tle(e,o){Vx(e).setItem(rx,o)}function x3(e,o,t=new Date().getHours()){return Lw({mode:o.mode,override:m3(e),switchShown:o.switchShown,hour:t})}function D0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>u3(t,x3(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[ec]}),()=>n.disconnect()}var h3="style";function I3(e,o){let t=Hd(o),r=!1;for(let a of Gw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function N0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>I3(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[h3]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as g3,VIEW_TABLET_MIN as y3}from"efficient-easel/screen/lib/content/view-tiers";var dr={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"},et=dr,S3=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),b3=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(S3([et.fit,et.fitTablet,et.fitPhone]))};
8
+ var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
9
+ var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${er};
10
+ var TABLET_MIN = ${y3}, DESKTOP_MIN = ${g3};
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(et.fitTablet)}, ${JSON.stringify(et.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(et.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(et.fit)}, ${JSON.stringify(et.fitTablet)}, ${JSON.stringify(et.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(et.min)}, ${JSON.stringify(et.minTablet)}, ${JSON.stringify(et.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(et))},
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);`,w3="storefront-fit-words";function M0(e){let o=e.createElement("script");return o.id=w3,o.textContent=b3,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var P3=`
303
+ [${ze}][${ze}] { cursor: text; }
304
+ `;function oc({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=vo(),n=ar(t);return W0(()=>{if(o)return D0(o,{mode:r,switchShown:a})},[o,r,a]),W0(()=>{if(o)return N0(o,n)},[o,n]),v3(()=>{if(o)return M0(o)},[o]),k3(C3,{children:[H0(n0,{}),H0("style",{children:P3}),e]})}import{jsx as RR}from"react/jsx-runtime";import{memo as x7}from"react";import{Render as h7}from"efficient-easel/render";import{jsx as Wn}from"react/jsx-runtime";import{createContext as T3,useContext as O3,useMemo as E3}from"react";var fh=T3(null);function _3({children:e}){return Wn(fh.Provider,{value:"first",children:e})}function rc({children:e}){return Wn(fh.Provider,{value:"below",children:e})}function wl(){return O3(fh)}function ch(){return wl()==="below"?{loading:"lazy"}:{}}function ac(e){let o=ch();return Wn("img",{...e,...o})}var $0="laterSlideIds",A3=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function z0(e){return Tf(e?.filter(o=>!o?.type||!A3.has(o.type)))}function tc(e,o=[]){if(Array.isArray(e))for(let t of e)tc(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))tc(r,o)}return o}function U0(e,o){let t=o?.type,r=o?.props?.id;return E3(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Wn(_3,{children:Wn(n,{...l})}):Wn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function j0(e){return e.props?Ye(e,o=>{let t=$e(o,j0),r=e.type===KC&&t.every(a=>a.type===Kd)?jC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function G0(e){return md(e,o=>$e(o,j0))}var F3="Flex",K0="ListSearch",q0=["FAQ"],B3="listKey";function V0(e,o){let t={search:e.type===K0,list:q0.includes(String(e.type))};return Ye(e,r=>{for(let a of r){let n=V0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===F3&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function Y0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=Ye(e,n=>$e(n,s=>Y0(s,o,r)));return r&&(e.type===K0||q0.includes(String(e.type)))?{...a,props:{...a.props,[B3]:r}}:a}function X0(e){return sn(e,o=>{let t=new Set;for(let r of o)V0(r,t);return t.size?$e(o,r=>Y0(r,t,"")):o})}import{isNode as $$,isNodeList as VE}from"efficient-easel/data";import{jsx as Ee,Fragment as E$,jsxs as pr}from"react/jsx-runtime";import{jsx as yh}from"react/jsx-runtime";import{Fragment as H3,jsx as W3}from"react/jsx-runtime";import{jsx as ph}from"react/jsx-runtime";import{createContext as D3,Fragment as N3,useContext as M3}from"react";import{jsx as J0,jsxs as R3}from"react/jsx-runtime";import{lazy as L3}from"react";var Z0=L3(()=>import("./section-css-style-UBORAPCW.js"));function Q0({css:e,id:o,attr:t}){return J0(Z0,{css:e,id:o,attr:t})}var eO={name:"sectionCustomCss",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.customCssFields()}},draw(e){e.defaultProps={...e.defaultProps,[$d]:""};let o=e.render;e.render=t=>{let r=uC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):R3(Tr,{className:"sf-section-css",attrs:{[pC]:a},children:[J0(Z0,{css:r,id:a}),o(t)]})}}};var oO=D3(null);function tO({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=Ek(t),a=ph(N3,{children:o},"page");return ph(oO.Provider,{value:t,children:r?[ph(Q0,{css:r,id:Ok,attr:af},"css"),a]:a})}function rO(){return M3(oO)}function Pt(){return zd(rO())===bC}function nc({className:e,children:o}){let t=Pt();return W3(H3,{children:o(nt(e,t))})}import{SITE_SIDE as $3}from"efficient-easel/screen/lib/content/length-units";var aO="sideSpace",Cl=$3,uh="none",cie=[{value:"box",label:"Box"},{value:Cl,label:"Site"},{value:uh,label:"None"}],pie="box",uie="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 nO(e){return e===Cl||e===uh?e:"box"}function mie(e){return e===Cl||e===uh?e:void 0}import{parseOption as hh}from"efficient-shell/format";var sc="standard",dO=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],xh=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],mh=[...xh,"description"],sO={standard:["eyebrowLook"],editorial:[...xh,"eyebrowLook"],simple:mh,statement:mh,natural:xh,essay:mh},lO=["gap-5","gap-3"],iO=["text-[length:var(--size-body,16px)]","text-[15px]"];function gie(e){return hh(lO,lO[0],e)}function yie(e){return hh(iO,iO[0],e)}function fO(e){return hh(dO,sc,e)}function Sie(e){let o=dO.map(r=>r.value),t=[...new Set(Object.values(sO).flat())];return at(e,t.map(r=>[[r],Pd("headStyle",o,sc,o.filter(a=>!sO[a].includes(r)))]))}import{readHidable as z3,VIEW_TIERS as U3,viewKeyAt as j3}from"efficient-easel/draw";var ma={direction:"row",share:"content",align:"center"},xa={top:14,bottom:14,topPhone:12,bottomPhone:12},lc={wrap:"nowrap",loop:"scroll",sectionAccent:fC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},cO={gap:120,gapPhone:64},ic={...No,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},pO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},kl={top:24,bottom:24,topPhone:16,bottomPhone:16},ha={top:16,bottom:16,topPhone:12,bottomPhone:12},vl={justify:"between",wrap:"wrap",gap:32,separator:"none"},Pl={...No,letterSpacing:.1,lineHeight:1.5};var dc={top:24,bottom:24,topPhone:24,bottomPhone:24},fc={top:72,bottom:72,topPhone:72,bottomPhone:72},$n={top:100,bottom:100,topPhone:60,bottomPhone:60},cc={top:120,bottom:120,topPhone:70,bottomPhone:70},G3={top:24,bottom:24,topPhone:24,bottomPhone:24},K3=40,pc={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},q3={top:24,bottom:24,topPhone:24,bottomPhone:24},uc={top:24,bottom:24,topPhone:24,bottomPhone:24},V3={top:84,bottom:84,topPhone:84,bottomPhone:84},mc={top:48,bottom:48,topPhone:48,bottomPhone:48},xc={top:80,bottom:80,topPhone:60,bottomPhone:60},hc={top:100,bottom:60,topPhone:60,bottomPhone:40},Ic={top:60,bottom:60,topPhone:40,bottomPhone:40},gc={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},yc={top:76,bottom:76,topPhone:76,bottomPhone:76},Sc={top:76,bottom:76,topPhone:76,bottomPhone:76},Ol={top:80,bottom:40,topPhone:60,bottomPhone:32},El={top:76,bottom:76,topPhone:76,bottomPhone:76},bc={top:72,bottom:72,topPhone:72,bottomPhone:72},wc={top:40,bottom:64,topPhone:24,bottomPhone:36},Cc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},kc={top:48,bottom:48,topPhone:48,bottomPhone:48},_l=e=>{let o=ye(e.bandPadding)??K3;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},uO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),Ih=e=>un(e.headPlacement)==="own-box",Be=(e,o)=>({top:uO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:uO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),mO=e=>({top:e.topPhone,bottom:e.bottomPhone}),Tl=e=>o=>Ih(o)?{top:0,bottom:e.bottom}:e,Y3=(e,o)=>{let t=z3(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},vc={Banner:{frame:()=>Be(dc)},Cards:{frame:Tl(Be(fc))},Chart:{frame:()=>Be(El)},ContactLocations:{frame:()=>Be($n,mO($n))},Countdown:{frame:()=>Be(mc)},DocBody:{frame:()=>Be(xc)},DocMasthead:{frame:()=>Be(hc)},DocMetaCards:{frame:()=>Be(Ic)},FAQ:{frame:e=>{let o=Ih(e)||!["num","title","linkText"].some(r=>Y3(e,r)),t=Be(cc);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Be(gc)},Grid:{frame:()=>Be(G3)},Integrations:{frame:()=>Be(yc)},KeyFeatures:{frame:()=>Be(Sc)},Logos:{frame:e=>Ih(e)?0:Be(_l(e))},LongRead:{frame:Tl(Be(pc))},Masthead:{frame:()=>Be(Ol,mO(Ol))},Mockup:{frame:()=>Be(El)},OrderSummary:{frame:()=>Be(q3)},PaymentBadges:{frame:()=>Be(uc)},Prose:{frame:Tl(Be(bc))},SectionHeader:{frame:e=>{let o=Be(wc);return fO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:Tl(Be(Cc))},Stats:{frame:()=>Be(kc)},Testimonials:{frame:Tl(Be(V3))},Ticker:{frame:()=>Be(xa),edge:!0}};function Fie(e,o,t){let r=z(vc,e)??t;return r?na({values:nl(o,Io,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var xO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function X3(e,o){let t={...e};for(let r of U3)delete t[j3(o,r)];return t}function Bie(e,o,t,r){let a=z(vc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=nl(o,Io,!0),l=(i,d)=>na({values:X3(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:xO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:xO(n,"bottom")})}}var J3=/^(?:[^\s]*:)?p[ytb]-/;function hO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!J3.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 Z3}from"efficient-easel/data";var gh=new Set(["FAQ"]);function ot(e,o){if(!gh.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:Z3(t)}var yO={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}},SO=new Set(Object.keys(yO));function Sh(e,o){return o?.innerPadding??z(yO,e)}var zn=e=>Sh(e)??{};var Pc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),Q3=new Set(["Divider"]),eW=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),IO=new Set(["ProductGrid"]);function bh(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...nl(n,Io,t),sideSpace:nO(n.sideSpace)},l=r?na({values:s,frame:r(n)},!0).outer:vk(s),i=a(n);if(!l)return i;let d=u=>yh(nc,{className:u?`${l.className} ${u}`:l.className,children:h=>yh(fe,{className:h,style:l.style,children:i})}),f=kr(n,{atSectionLine:!0}),m=kr(n);return f===m?d(f):yh(lf,{line:"by-box",draw:u=>d(u?m:f)})}}var bO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!eW.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=Sh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:Cr,unitKey:tf,fallback:r,tablet:!0,siteSide:!0})};return}if(IO.has(o))return;let a=[Cr.top,Cr.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=gO(o,e);if(n){CO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!Sh(o,e)){if(IO.has(o)){bh(e);return}Pc.has(o)||Q3.has(o)||bh(e,o==="Flex"?t=>Xk(t.bgImage):gh.has(o)?t=>ot(o,t):void 0,!0,gO(o,e))}}},oW=["Heading","Text","ImageBlock","ButtonBlock"],tW=["LogoBlock"],wO={Text:e=>Er(e,"text").textStyle?.startsWith("heading-")?sl.heading:sl.text,Heading:()=>sl.heading,ButtonBlock:()=>sl.text,Breadcrumb:()=>yx(kl),SpecStrip:()=>yx(ha),...Object.fromEntries(Object.entries(vc).map(([e,o])=>[e,o.frame]))};function gO(e,o){return z(wO,e)??o?.ownPad?.frame}var rW={ButtonBlock:"Outer padding"};function aW(e,o){let t=e[zt],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=vn().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{[zt]:s,...l}=e;return n.length?{...l,[zt]:n}:l}function nW(e,o,t){if(o<=0)return null;let r=Array.isArray(e[zt])?e[zt]:[];return(t?vn().filter(a=>a.startsWith(Io[t])):vn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function CO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,nW,z(rW,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?aW(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var kO={name:"blockPadding",applies:(e,o,t)=>(oW.includes(e)||tW.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(wO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}CO(e,o,t,r)},draw(e,o){Pc.has(o)||bh(e,void 0,!0)}};import{createContext as wh,useContext as Tc}from"react";var vO=wh(null);function Qie(){return Tc(vO)===!0}function ede(){return Tc(vO)!==null}var sW=wh(!1);function ode(){return Tc(sW)}function tde(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 Oc=wh(null);function rde(){return Tc(Oc)}import{jsx as Ia}from"react/jsx-runtime";import{Component as mW,createContext as xW,lazy as yde,Suspense as Sde,useContext as hW,useSyncExternalStore as IW}from"react";function lW(e,o){let t=e.trim();if(!Ec(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 sde(e){return e.startsWith("/")||Ec(e)}function Ec(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Al=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function PO(e,o){return lW(e,o)?{...Al}:{}}function lde(e){return typeof e=="string"?e.trim():""}var ide="data-sf-box-link",TO="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",Ch="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",iW="data-sf-box-jump";function dW(e){return`sf-box-jump-${e}`}function dde(e,o){return e===!0?fa(o):""}function fW({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 fde(e){let o=`[${iW}="${e}"]`,t=`.${dW(e)}`,r=`[id="${e}"]:target`;return fW({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 cW="hrefRewrite";function pW(){return rn("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function uW(){return typeof process<"u"&&!0}function ude(e){let o=e?.[cW];return typeof o=="string"?o.trim():""}function OO(e){if(!e)return null;let o=pW(),t=o.rewrites.get(e);return!t&&!uW()&&o.missed.add(e),t??null}var gW={Link:hP,Image:xP},EO=xW(gW);function Pde({runtime:e,children:o}){return Ia(EO.Provider,{value:e,children:o})}function vh(){return hW(EO)}function Tde(){return vh().pagePath??null}var yW=()=>()=>{},SW=()=>Cf()||null,bW=()=>null;function wW(){return IW(yW,SW,bW)}function ga({hrefRewrite:e,newTab:o,...t}){let{Link:r}=vh(),a=wW(),n=o===!0?{...t,...Al}:o==="auto"?{...t,...PO(t.href,a)}:t,s=OO(e);return s?Ia(kh,{name:s.name,href:n.href,fallback:Ia(r,{...n}),children:Ia(CW,{Link:r,rewrite:s.rewrite,...n})},s.key):Ia(r,{...n})}function CW({Link:e,rewrite:o,...t}){let r=ho(o(t.href)),a=r&&Tb(r)?r:t.href;return Ia(e,{...t,href:a})}var kh=class extends mW{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 _c(e){let{Image:o}=vh();return Ia(o,{...e})}import{jsx as g$}from"react/jsx-runtime";import{jsx as Se,jsxs as Po,Fragment as m$}from"react/jsx-runtime";import{imageCopyUrl as AO,imageSrcSet as kW,originalOfCopy as FO}from"efficient-shell/image-copies";var _O;function Fl(){return _O===void 0?{}:{host:_O}}var Ade="(max-width: 800px) 100vw, min(100vw, 1600px)",Fde="(max-width: 960px) 100vw, 50vw";function ya(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=FO(e,Fl()),a=kW(r,{...Fl(),...t===void 0?{}:{maxWidth:t}});return a?{src:AO(r,o,Fl()),srcSet:a}:{src:e}}var vW=/[\s"'()\\;]/;function Bde(e){let o=AO(FO(e,Fl()),1920,Fl());return o===e?vW.test(e)?`url("${Sx(e)}")`:`url(${e})`:`url("${Sx(o)}")`}import{parseOption as PW}from"efficient-shell/format";var Bl="solid",TW=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function BO(e){return PW(TW,Bl,e)}var Ph="sf-secnum-outline",RO="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",LO=`@supports (-webkit-text-stroke: 1px currentColor){.${Ph}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as DO}from"efficient-shell/format";var Th="plain",NO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],OW="line",EW={KeyFeatures:"filled"};function Rl(e){return z(EW,e)??Th}function MO(e,o){return DO(NO,Rl(o),e)}function Hde(e){return DO(NO,OW,e)}import{jsxs as wa,jsx as De}from"react/jsx-runtime";import{Fragment as Mh}from"react";import{Fragment as e$,jsx as Lh}from"react/jsx-runtime";import{Fragment as JO,jsx as Hl,jsxs as qW}from"react/jsx-runtime";import{createContext as Rh,useContext as Wl,useEffect as VW,useId as YW,useMemo as XW,useRef as JW}from"react";import{armEntrance as ZW}from"efficient-shell/format";import{jsx as _W}from"react/jsx-runtime";import{useEffect as WO,useRef as HO,useState as AW}from"react";import{armEntrance as FW,entranceAttrs as BW,playEntrance as RW}from"efficient-shell/format";function Ac({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=HO(null),d=ff(),f=lt(),m=n?f:vr,u=Ll(i,!0,s),{attrs:h,style:I}=BW(e[u]),S=HO(Un.seed(e)),T=JSON.stringify(e);return WO(()=>{let P=i.current;if(P){if(o){let L=Un.next(S.current,e,u);S.current=L.seen,L.play&&RW(P);return}return FW(P)}},[T,u,o]),m.scope(_W("div",{ref:i,className:ko(`${wn}${d.fill}${t?` ${t}`:""}`,m.className),...r,...m.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:d.inner(l)}))}var Un={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Un.seed(o);return{play:r[t]!==e[t],seen:r}}};function Ll(e,o=!0,t=!1){return Dl(e,o,t)??"desktop"}function Dl(e,o=!0,t=!1){let[r,a]=AW(void 0),n=Pr(t?"edge":"by-box"),{phone:s,tablet:l}=Vv(n);return WO(()=>{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),m=()=>a(d.matches?"phone":f.matches?"tablet":"desktop");return m(),d.addEventListener("change",m),f.addEventListener("change",m),()=>{d.removeEventListener("change",m),f.removeEventListener("change",m)}},[e,o,s,l]),r}var Nl="@name",$O="@body",zO="@value",UO={[Nl]:"Name",[$O]:"Body",[zO]:"Value"},LW={TimelineTrack:{"entries.date":Nl,"entries.title":Nl,"entries.blurb":$O},Footprint:{"offices.city":Nl},Stats:{"items.label":Nl,"items.value":zO}};function DW(e){let{key:o,row:t}=Ut(e);return t?`${o}.${t.rowKey}`:null}function fr(e,o){if(!e)return o;let t=DW(o);return t?z(LW,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as zW,entranceAttrs as UW,scrollAttrs as jW}from"efficient-shell/format";import{parseFocal as HW,formatFocal as WW,readScroll as $W}from"efficient-shell/format";import{phoneKey as NW,tabletKey as MW}from"efficient-easel/screen/lib/content/view-tiers";var Oh=[{block:"HeroSlide",upload:"mediaImage",focus:ol.image},{block:"HeroSlide",upload:"mediaImage2",focus:ol.image2},{block:"HeroSingle",upload:"mediaImage",focus:ol.image},{block:"HeroSingle",upload:"mediaImage2",focus:ol.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],jO=e=>[e,MW(e),NW(e)],efe=[...new Set(Oh.flatMap(e=>jO(e.focus)))].sort();function GO(e,o){let[t,r,a]=jO(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var eo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd",ease:"scrollEase"},jn="_gScroll",Fc="_cScroll",Bc=Vd(Object.values(eo));function Kt(e,o){return $W(bn(e,eo.effect,o),bn(e,eo.zoom,o),bn(e,eo.start,o),bn(e,eo.end,o),bn(e,eo.ease,o))}function Gn(e){let o={desktop:Kt(e,"desktop"),tablet:Kt(e,"tablet"),phone:Kt(e,"phone")};return st.every(t=>o[t].effect==="none")?null:o}function Eh(e){let o=sk(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=HW(a);return WW(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function KO(e,o){return Eh(GO(e,o))}var Rc={},_h="_partMotion",Ah=[...Yd,rt,Ge.duration,Ge.delay,...Bc];function VO(e){return bv(e,_h)}function Sa(e,o){return wv(e,_h,o)}var GW=new Set([Zo.kind,rt,eo.effect]);function YO(e,o,t,r){let{[t]:a,...n}=Sa(e,o),s=r==null||r===""||r==="none"&&GW.has(t)?n:{...n,[t]:r};return Cv(e,_h,o,Object.keys(s).length?s:null)}function Ml(e){return{entrance:Cn(e),hover:Eb(e),scroll:Gn(e)}}function XO(e){let o=Ml(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Lc(e,o){let{attrs:t,style:r}=UW(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(zW)}}function Dc(e,o){let{attrs:t,style:r}=jW(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 KW=4;function Kn(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&KW)&&(o=t);return o}var Fh="data-sf-part-host";function Nc(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Fh)&&!t.classList.contains(wn);){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",qO="sf-part-lift";function Mc(e){if(e.getElementById(qO))return;let o=e.createElement("style");o.id=qO,o.textContent=_v(`[${ba}]`).join(`
317
+ `),e.head.appendChild(o)}var Hc=Rh(null),QO=Rh(null),eE=Rh(null);function oE({needles:e,styles:o,motions:t=Rc,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=YW(),i=Pr(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),f=Qo(),m=XW(()=>{let h=Object.keys(t).filter(I=>XO(t[I]));return qv(e,o,l,I=>fr(r,I),I=>cl(r,I),I=>h.includes(I)?Ml(t[I]):null,h,I=>ia(n,I),f)},[d,f]);if(!m)return Hl(JO,{children:s});let u=Yv(m,{inBox:i});return qW(JO,{children:[u&&Hl("style",{href:`${QW}${l}-${Vk(u)}`,precedence:rE,dangerouslySetInnerHTML:{__html:qk(u)}}),Hl(Hc.Provider,{value:m,children:s})]})}var Bh=new WeakMap;function ZO(e,o){let t=Kn(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Kn(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)?(Mc(e.ownerDocument),e.setAttribute(ba,"")):e.removeAttribute(ba)}function tE(e){let o=JW(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Ll(o,t!==null||r!==null),s=t?t[n]:null,l=r&&r[n].effect!=="none"?r[n]:null,i=JSON.stringify([s,l]);return VW(()=>{let d=o.current,f=Nc(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let m=s?()=>{let I=Lc(f,s),S=ZW(f);return()=>{S?.(),I()}}:null,u=Bh.get(f)??[];Bh.set(f,u);let h={element:d,arm:m,entering:s!==null&&s.kind!=="none",scroll:l?()=>Dc(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||Bh.delete(f))}},[i,a]),o}var rE="sf-part-styles",QW=`${rE}-`;function aE(e){let o=Wl(Hc),t=Wl(QO),r=Xv(o,e);return r&&r.stamp!==t?r:null}function Cfe(e){return Tx(Wl(Hc),e)}function nE({stamp:e,children:o}){return Hl(QO.Provider,{value:e,children:o})}function kfe({children:e}){let o=Wl(Hc);return Hl(eE.Provider,{value:o,children:e})}function vfe(e){return Tx(Wl(eE),e)}function $l({value:e,children:o}){let t=aE(e),r=tE(t);return t?Lh(nE,{stamp:t.stamp,children:Lh("span",{ref:r,[vv]:t.stamp,...t.textStyle?{[sa]:t.textStyle}:{},children:o})}):Lh(e$,{children:o})}import{jsx as Dh,Fragment as o$}from"react/jsx-runtime";function sE({className:e}){return Dh("span",{className:e||void 0,children:"\xAE"})}function dt(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(Dh(sE,{},`r${a}`))}),Dh(o$,{children:t})}var Ffe=sE;function Xe(e,o=!1,t){let r=i$(o),a=yd(e);if(a.length===1){let[s]=a,l=Ob(s),i=l?s$(l,s.children):s.children;return wa($l,{value:e,children:[t,Wc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(De("span",{"data-sf-bullet":"",className:t$,children:Wc(s.children,r)},l));return}if(s.number!=null){n.push(wa("span",{"data-sf-number":s.number,className:r$,children:[wa("span",{className:a$,children:[s.number,"."]}),Wc(s.children,r)]},l));return}l>0&&!n$(a[l-1])&&n.push(De("br",{},`br${l}`)),n.push(De(Mh,{children:Wc(s.children,r)},l))}),wa($l,{value:e,children:[t,n]})}var t$="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",r$="relative block pl-[2em]",a$="absolute left-0 w-[1.6em] text-right tabular-nums";function n$(e){return e.bullet||e.number!=null}var lE="text-accent underline underline-offset-[0.18em]";function s$(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function l$(e){return Yk(e)||void 0}function Wc(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(De("span",{children:dt(a.text)},n)),r=!0;return}r||t.push(De("span",{},`e${n}`)),t.push(dE(a,n,o)),r=!1}),r||t.push(De("span",{},"end")),t}function Nh(e,o){return e.length===1&&e[0].kind==="text"?dt(e[0].text):e.map((t,r)=>t.kind==="text"?De(Mh,{children:dt(t.text)},r):dE(t,r,o))}function i$(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function Ufe(e){return iE(e)}function iE(e,o){let t=e.split(`
318
+ `);return wa($l,{value:e,children:[o,t.map((r,a)=>wa(Mh,{children:[a>0?De("br",{}):null,De("span",{children:r})]},a))]})}function dE(e,o,t){if(e.kind==="link")return Ec(e.href)?De(ga,{newTab:"auto",href:e.href,className:lE,children:Nh(e.children,t)},o):De("a",{href:e.href,className:lE,children:Nh(e.children,t)},o);let r=Nh(e.children,t),a=kb[e.kind];if(a)return De("span",{[vb]:a,children:r},o);switch(e.kind){case"underline":return De("u",{children:r},o);case"sup":return De("sup",{children:r},o);case"sub":return De("sub",{children:r},o);case"color":{let n=l$(e.color);return n?De("span",{style:{color:n},children:r},o):De("span",{children:r},o)}case"accent":case"highlight":return De("em",{className:t,children:r},o);case"bold":return De("strong",{className:"font-semibold",children:r},o);case"italic":return De("em",{className:"italic",children:r},o);case"strike":return De("s",{className:"line-through",children:r},o);default:return De("span",{children:r},o)}}function fE(e,o=!0,t=!1){let r=e.split(`
319
+ `);return De($l,{value:e,children:r.map((a,n)=>wa("span",{children:[t?iE(a):Xe(a,o),n<r.length-1?De("br",{}):null]},n))})}function cE(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Hh,jsxs as f$}from"react/jsx-runtime";import{jsx as d$}from"react/jsx-runtime";function pE(){return d$("span",{className:"block h-px w-[30px] bg-current"})}var Wh={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 c$(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var p$=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Wh.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,u$=`flex items-center gap-3.5 font-mono ${Wh.labelLarge} uppercase tracking-[0.3em] opacity-80 ${Wh.labelUpTo800} max-view-wide:tracking-[0.25em]`;function qn({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let l=lt(),i=s?l:vr;if(o==="line")return i.scope(f$("div",{className:ko([a,u$,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Hh(pE,{}),Hh("span",{children:Xe(e)})]}));let d=o==="filled"?p$:c$(t,r);return i.scope(Hh("span",{className:ko([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Xe(e)}))}var Oe={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},uE=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Oe.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading1} ${Oe.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading2} ${Oe.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading3} ${Oe.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading4} ${Oe.shelfHeadingUpTo800Xl}`}],x$="lg";function h$(e){return(uE.find(o=>o.value===e)??uE.find(o=>o.value===x$)).cls}var Vn=(e,o=!1)=>typeof e=="string"?fE(e,o):e,cr=(e,o=!1)=>typeof e=="string"?Xe(e,o):e;function mE({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=Bl,look:i="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:m,rowGap:u,descriptionSize:h,className:I="",eyebrowLook:S=Th,titleSize:T,count:P,capped:L=!1,rootPadsBottom:C=!1}){let y=Pt(),b=m??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?Po("div",{className:nt(`${kP} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${L?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,y),children:[Po("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Se("span",{className:`font-mono ${Oe.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:cr(e)}),o&&Se("h2",{className:`${h$(T)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:Vn(o)})]}),(a||t||P)&&Po("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&Se("span",{className:`max-w-[340px] truncate font-display ${Oe.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:cr(a)}),t&&Po(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Oe.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[cr(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]}),P&&Se("span",{className:`whitespace-nowrap font-mono ${Oe.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:P})]})]}):null;if(i==="editorial"){let g=!!o||!!d;return Po("header",{className:`${b} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${I}`.trim(),children:[e&&(typeof e=="string"?Se(qn,{text:e,className:"pb-2"}):Se("span",{className:"pb-2",children:e})),g&&Po("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&&Po(m$,{children:[" ",Se("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:f},children:d})]})]}),a&&Se("p",{className:`max-w-[360px] pb-1 text-right font-display ${Oe.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(i==="simple"){let g=`${b} ${I}`.trim();return Po("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(qn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Oe.headingMediumUpTo800Small}`,children:Vn(o)})]})}if(i==="statement"){let g=`${b} ${I}`.trim();return Po("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(qn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,72px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-none tracking-[-0.03em] text-fg",children:Vn(o,!0)})]})}if(i==="natural"){let g=`flex max-w-[680px] flex-col ${u??"gap-5"} ${b} ${I}`.replace(/\s+/g," ").trim();return Po("div",{className:g,children:[e&&(typeof e=="string"?Se(qn,{text:e,look:S}):Se("span",{children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Oe.headingMediumUpTo800Small}`,children:Vn(o)}),a&&Se("p",{className:`${h??`${Oe.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let g=`${b} ${I}`.trim();return Po("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(qn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Oe.headingSmallUpTo800}`,children:Vn(o)})]})}let F=!!a||!!t,_=!!o,D=BO(l)==="outlined",w=`font-mono ${Oe.label} uppercase tracking-[0.3em]`,E=null;if(e)if(D)E=Se("span",{className:`${RO} text-fg-dim ${Ph}`,children:cr(e)});else if(s&&!n&&typeof e=="string"){let g=e.indexOf("/"),v=g===-1?e:e.slice(0,g),O=g===-1?"":e.slice(g);E=Po("span",{className:w,children:[Se("span",{className:"text-accent",children:cr(v)}),O&&Se("span",{className:"text-fg-dim",children:cr(O)})]})}else E=Se("span",{className:`${w} ${n?"text-accent":"text-fg-dim"}`,children:cr(e)});return Po("div",{className:C?"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&&Se("style",{children:LO}),Po("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Se(Rk,{children:Se(ac,{...I$(bP(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),E]}),_&&Se("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Oe.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Oe.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:Vn(o)}),F&&Po("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Se("p",{className:`max-w-[340px] font-display ${Oe.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:cr(a)}),t&&Po(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Oe.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[cr(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function I$(e){let o=ya(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function xE({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return g$(mE,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Ul,jsxs as v$}from"react/jsx-runtime";import{useEffect as P$,useState as vE}from"react";import{jsx as y$}from"react/jsx-runtime";var hE="sf-photo-hover";function $c({sheet:e,name:o=hE}){return e?y$("style",{href:o,precedence:hE,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as wE,Fragment as w$}from"react/jsx-runtime";import{createContext as C$,useContext as Uc}from"react";var S$=Jb["view-desktop"];function b$(e,o){return[...[...e].sort((t,r)=>t.below-r.below).map(t=>`(max-width: ${t.below-.02}px) ${t.slot}`),o].join(", ")}var $h=e=>`${Math.ceil(e*1e4-1e-6)/100}vw`,zc=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function yce(e,o){return{phone:$h(e.phone*zc(o?.phone)),tablet:$h(e.tablet*zc(o?.tablet)),desktop:$h(e.desktop*zc(o?.desktop))}}function zh(e){if([e.phone,e.tablet,e.desktop].every(r=>zc(r)>=1))return;let o=[{below:er,slot:e.phone},{below:S$,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return b$(t,e.desktop)}function IE(e){let o=e.split(/,\s*(?![^()]*\))/).map(a=>a.trim()),t=[];for(let a of o.slice(0,-1)){let n=/^\(max-width:\s*([\d.]+)px\)\s+(.+)$/.exec(a);if(!n)return null;let s=Number(n[1]);if(t.length&&s<=t[t.length-1].edge)return null;t.push({edge:s,slot:n[2]})}let r=o[o.length-1];return!r||r.startsWith("(")?null:{steps:t,last:r}}var gE=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,yE=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function SE(e,o){if(e===o)return e;let t=[...yE(e),...yE(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 bE(e,o){if(!o)return e;let t=IE(e),r=IE(o);if(!t||!r)return e;let a=[...new Set([...t.steps,...r.steps].map(s=>s.edge))].sort((s,l)=>s-l).map(s=>({edge:s,slot:SE(gE(t,s),gE(r,s))})),n=SE(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 k$={hasWidth:!1},zl=C$(k$);function kce(){return Uc(zl).hasWidth}function vce(e){let{bound:o}=Uc(zl);return o&&zh(o)||e}function CE(e){let{bound:o}=Uc(zl);return bE(e,o&&zh(o))}function kE({children:e}){let o=Uc(zl);return o.bound?wE(zl.Provider,{value:{hasWidth:o.hasWidth},children:e}):wE(w$,{children:e})}function PE({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:m}){let u=ch(),h=CE(s),I=l?h:s,[S,T]=vE(!1),[P,L]=vE(!1),C=t||"";P$(()=>{T(!1),L(!1)},[C]);let y=kf(C),b=y&&!P?ya(C):{src:C},F=!C||S;return v$("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Ul("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:F?e:null}),Ul(nf,{fill:ll,children:C&&(y?Ul("img",{src:b.src,alt:r,...b.srcSet?{srcSet:b.srcSet,sizes:I}:{},decoding:"async",...d?{loading:"lazy"}:u,className:`absolute inset-0 h-full w-full${m?.className?` ${m.className}`:""}`,style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...m?.style??{}},onError:()=>b.srcSet?L(!0):T(!0)}):Ul(_c,{src:C,alt:r,fill:!0,sizes:I,priority:i,...m?.className?{className:m.className}:{},style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...m?.style??{}},onError:()=>T(!0)}))}),Ul($c,{sheet:m?.sheet})]})}import{jsx as T$}from"react/jsx-runtime";var jl="sf-empty-hides",Uh="sf-empty-else",jc="sf-head-core",Gc="sf-head-box",Gl="holdsHeadCore",Kl="isHeadCore",O$=`.${jl}:empty{display:none}.${jl}:not(:empty)~.${Uh}{display:none}.${Gc},.${jc}{display:contents}.${Gc}:not(:has(.${jc}:not(:empty))){display:none}`;function Kc(){return T$("style",{children:O$})}var $o={headingSmallUpTo700Small:"max-[700px]:text-[length:var(--size-headingSmall,26px)]",headingSmallUpTo700Large:"max-[700px]:text-[length:var(--size-headingSmall,28px)]",bodySmall:"text-[length:var(--size-body,15px)]",bodyLarge:"text-[length:var(--size-body,18px)]",headingSmall1:"text-[length:var(--size-headingSmall,28px)]",headingSmall2:"text-[length:var(--size-headingSmall,34px)]",labelSmall:"text-[length:var(--size-label,11px)]",label:"text-[length:var(--size-label,12px)]",labelLarge:"text-[length:var(--size-label,13px)]"},TE={2:"grid-cols-2 max-[900px]:grid-cols-1",3:"grid-cols-3 max-view-desktop:grid-cols-1",4:"grid-cols-4 max-view-desktop:grid-cols-2 max-[700px]:grid-cols-1"},jh="sf-itc-boxes",_$="sf-itc-steps";function Gh(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 tpe({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:m=!1,cardImage:u,cardImageUnit:h,cardText:I,rows:S,copies:T}){let P=Pt(),L=T!==void 0,C=S&&(L||(r?.blockCount??0)>0)?S:null,y=d??Tk({padTop:l,padBottom:i},zn("ProcessSteps")),b=L?[]:Gh(a),F=b.length>0?b:f&&!r&&!L?[1,2,3].map(g=>({tag:c("Column {n}",{n:g})})):[],_=TE[n]??TE[3],D=C?"grid-cols-1":_,w=C?"":" [&>*]:min-h-[560px]",E=I==="on-image";return Ee(fe,{as:"section",className:nt(["relative z-[2] border-b border-line bg-bg",y.className].filter(Boolean).join(" "),P),style:{...y.style,...dT(u,h)},children:pr("div",{className:nt(PC,P),children:[m?null:Ee(xE,{num:e,title:o?.trim()?Xe(o,!0):void 0,desc:t?.trim()?Xe(t,!1):void 0}),r&&!L?pr(E$,{children:[Ee(Kc,{}),C?Ee(Oc.Provider,{value:{hand:C,ids:r.blockIds??[],boxes:[]},children:Ee(r,{className:`${jh} ${jl} sf-card grid ${D} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,minEmptyHeight:260})}):Ee(r,{className:`${jh} ${jl} sf-card grid ${D} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,L&&T?Ee("div",{className:`${jh} sf-card grid ${D} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,children:C?Ee(Oc.Provider,{value:{hand:C,copies:!0},children:T}):T}):null,F.length>0&&Ee("div",{className:`${_$} ${Uh} sf-card grid ${_} gap-[2px] border border-line bg-line`,children:F.map((g,v)=>{let O=(g.specs??[]).filter(k=>(k?.label??"").trim()||(k?.value??"").trim());return pr("article",{className:E?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[pr("div",{className:E?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[Ee(PE,{label:g.tag?.trim()||g.title?.trim()||`column-${v+1}`,src:g.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),Ee("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${Zs(.55)} 0%, transparent 30%, transparent 70%, ${Zs(.65)} 100%)`}}),E&&Ee("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${Zs(.73)} 55%, ${Zs(.92)} 100%)`}}),g.tag?.trim()&&Ee("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${$o.label} uppercase tracking-[0.3em] text-accent`,children:dt(g.tag)}),g.meta?.trim()&&Ee("span",{className:E?`absolute right-5 top-[18px] z-[2] font-mono ${$o.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${$o.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:dt(g.meta)}),E&&(g.title?.trim()||g.copy?.trim())&&pr("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[g.title?.trim()&&Ee("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${$o.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${$o.headingSmallUpTo700Small}`,children:Xe(g.title,!0)}),g.copy?.trim()&&Ee("p",{className:`min-h-[3em] font-display ${$o.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Xe(g.copy,!1)})]})]}),E?O.length>0&&Ee("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:O.map((k,A)=>pr("div",{className:"flex flex-col gap-1",children:[k.label?.trim()&&Ee("span",{className:`font-mono ${$o.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:dt(k.label)}),k.value?.trim()&&Ee("span",{className:`font-display ${$o.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:dt(k.value)})]},A))}):pr("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[g.title?.trim()&&Ee("h3",{className:`font-heading3 ${$o.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${$o.headingSmallUpTo700Large}`,children:Xe(g.title,!0)}),g.copy?.trim()&&Ee("p",{className:`font-display ${$o.bodySmall} leading-[1.55] text-fg-dim`,children:Xe(g.copy,!1)}),O.length>0&&Ee("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:O.map((k,A)=>pr("div",{className:"flex flex-col gap-1",children:[k.label?.trim()&&Ee("span",{className:`font-mono ${$o.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:dt(k.label)}),k.value?.trim()&&Ee("span",{className:`font-display ${$o.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:dt(k.value)})]},A))})]})]},v)})}),s?.text&&Ee("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:pr(ga,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${$o.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[dt(s.text),Ee("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var A$=["selected","highlighted"],OE="data-sf-card-state",_E="pointer-events-none absolute inset-0 border border-accent",AE="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",FE="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",BE="absolute inset-y-0 left-0 w-[3px] bg-accent",RE="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",LE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",EE=e=>{let o=lC.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},F$={[EE("muted")]:`var(${EE("fg")})`};function Kh(e){return e?.selected===!0}function qh(e){return e?A$.filter(o=>e[o]===!0).join(" "):""}function DE(e,o="frame"){let t=qh(e);return t?o==="frame"&&Kh(e)?{[OE]:t,className:"relative isolate",style:{...F$}}:{[OE]:t,className:"relative"}:{}}var B$={highlighted:!0},R$={},qc="badge";function lpe(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Vs(t,r)}))}function NE(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===qc||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function ipe(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,[qc]:s===a?t:""})),states:e.map((n,s)=>s===a?B$:R$)}}function dpe(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function fpe(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 ME="data-sf-card-press",HE=`${TO} appearance-none bg-transparent border-0 p-0 m-0`,WE=`${HE} cursor-pointer`,$E=HE;import{paymentMarkItems as L$,paymentMarks as D$}from"efficient-shell/icons/payment";var N$=[tb,rb],zE=e=>N$.includes(e),UE=e=>L$({name:e.label,kind:e.kind}),M$=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function jE(e){return D$(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>UE(t).some(r=>M$(r,o)))?.kind??""}))}function mpe(e){return UE(e)[0]??null}var GE={heading:"Trusted by *teams worldwide*"},Vc=()=>[{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")}],H$=ud.Logos,gpe={label:"Logos",drawsPictures:!0,fields:H$,defaultProps:{items:[],contained:!0}};var W$=()=>Vc().map(e=>({label:e.alt}));function KE(e,o){let t=pd(e,o,W$()).rows.filter(r=>r.label);return zE(Le(e))?jE(t):t}var ql="Flex",z$="Text",Vl=e=>Object.values(e??{}).filter(VE),U$=e=>e.type===io&&Le(e.props)!=="",YE=e=>{if(e.type!==ql)return!1;let o=Vl(e.props).flat();return o.length>0&&o.every(U$)},Yc=e=>un(e.props?.headPlacement)==="own-box"||YE(e),Vh=e=>e===void 0||Array.isArray(e)&&e.length===0;function XE(e){return e.type===z$?!0:e.type===ql&&Vl(e.props).every(o=>o.every(XE))}var JE={ProcessSteps:e=>Vh(e.boxes)&&Gh(e.steps).length===0,Logos:e=>Le(e)?j$(e):Vh(e.logos)&&Vh(e.items)};function j$(e){return ib(e)!==null&&KE(e,!1).length===0}function G$(e){return Vl(e.props).flat().every(o=>!pd(o.props,!1).rows.some(NE))}function Xc(e){let o=Vl(e.props).flat();return o.some(Yc)&&o.every(t=>Yc(t)||XE(t))}function K$(e){if(!$$(e)||!Yc(e))return e;let o=YE(e)?G$(e):z(JE,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Kl]:o?"empty":!0}}}function qE(e){return Ye(e,o=>$e(o,K$))}function ZE(e){let o=Object.entries(e.props??{}).filter(([,r])=>VE(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===ql&&t.props?{key:o[0][0],inner:t}:null}function QE(e){if(e?.type!==ql||!e.props)return e;if(Xc(e)){let t=qE(e);return{...t,props:{...t.props,[Gl]:!0}}}let o=ZE(e);return!o||!Xc(o.inner)?e:{...e,props:{...e.props,[o.key]:[qE(o.inner)],[Gl]:!0}}}function e_(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=QE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var q$=e=>z(JE,String(e.type))?.(e.props??{})===!0;function V$(e){if(e.type!==ql||!e.props)return!1;let o=Xc(e)?null:ZE(e),t=o?o.inner:e;if(!Xc(t))return!1;let r=Vl(t.props).flat().filter(Yc);return r.some(a=>Le(a.props)!=="")&&r.every(q$)}function o_(e){return Ye(e,o=>Y$(o))}function Y$(e){let o=!1,t=[];for(let r of e){if(V$(r)){o=!0;continue}let a=o_(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function t_(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(QE(a)!==a)return a;let n=o_(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var X$=["DocMasthead","AlloyWheelsListing"],Jc="titleLevel",J$=e=>e===2?"h2":"h1",Yh=e=>J$(e?.[Jc])==="h2";function r_(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>X$.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 rz}from"efficient-easel/draw";var Yn="showFor";function a_(){return rn("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var Z$=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Npe(){return a_().choices}function Mpe(){return a_().revision}function n_(e){return Z$(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as Q$}from"efficient-easel/draw";var Xh="_wallLabelId",ez="_wallLabelledBy",Jh=e=>e.props?.id==null?"":String(e.props.id);function oz(e){if(!e||e.type!=="Text"||!Jh(e))return!1;let o=Q$(e.props?.text);return!o.hidden&&o.text.trim()!==""}var tz=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Jh(e)!=="",s_=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function l_(e){let o=$e(e,r=>Ye(r,l_)),t=null;for(let r=1;r<o.length;r++){if(!tz(o[r])||!oz(o[r-1]))continue;let a=`sf-wall-label-${Jh(o[r-1])}`;t??=o.slice(),t[r-1]=s_(t[r-1],Xh,a),t[r]=s_(t[r],ez,a)}return t??o}function i_(e){return sn(e,l_)}var d_="_cardPressTitles",az="_cardPressTitle";function Ype(e,o){let t=e?.[d_],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var f_=(e,o)=>({...e,props:{...e.props,...o}});function nz(e){let o=e.props??{};return e.type!=="Text"||rz(o.text).hidden||typeof o[Xo]=="string"||typeof o[Xh]=="string"?"":Wt(o)}function c_(e,o,t,r){return $e(e,a=>{let n=nz(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),f_(a,{[az]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Yn]))return a;let s=a.props?.[an],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return Ye(a,(i,d)=>aa(a.type,d)?i:c_(i,l,t,r))})}function p_(e){let o,t=Ye(e,(r,a)=>{let n=$e(r,p_);if(!aa(e.type,a))return n;let s=[],l=c_(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?f_(t,{[d_]:o}):t}function u_(e){return sn(e,o=>$e(o,p_))}import{pinnedDuplicateIndices as VU}from"efficient-easel/draw";import{jsx as zo,jsxs as C1}from"react/jsx-runtime";import{createContext as WU,useContext as $U,useEffect as zU,useRef as k1,useState as v1}from"react";import{jsx as Br,jsxs as A_}from"react/jsx-runtime";import{useEffect as Xn,useRef as F_,useState as Ca}from"react";import{jsx as m_,Fragment as sz,jsxs as lz}from"react/jsx-runtime";import{useEffect as iz,useRef as x_,useState as dz}from"react";var fz="#t=0.001",cz=2;function pz(e,o){if(e.readyState<cz||!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 h_({src:e,objectPosition:o="50% 50%",onError:t}){let r=x_(null),a=x_(null),[n,s]=dz(!1);return iz(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{pz(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),lz(sz,{children:[m_("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&&m_("video",{ref:r,src:`${e}${fz}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{useEffect as hz}from"react";import{PIN_SCRUB as Iz,PIN_STEPS_ATTR as w_}from"efficient-shell/format";var I_="video-time";function g_(e,o,t){if(!Number.isFinite(t)||t<=0)return e;let r=(e+o*t)%t;return r<0?r+t:r}function y_(e,o,t,r){if(!Number.isFinite(r)||r<=0)return e;let a=Math.max(0,r-mz),n=Math.min(a,Math.max(0,e)),s=Math.min(1,Math.max(0,t));return s>=o?o>=1?a:n+(s-o)/(1-o)*(a-n):o<=0?0:n*(s/o)}function S_(e,o){return!(o&&e>=1-uz)}var uz=.005,mz=.05;function b_(e,o){let t=e.height-o,r=t>0?-e.top/t:(o-e.top)/(o+e.height);return Math.min(1,Math.max(0,r))}function C_(e,o,t){hz(()=>{let r=t.current;if(!e||!r)return;let a=r.ownerDocument.defaultView??window,n=r.closest("[data-motion-pin]"),s=n??r;n?.setAttribute(w_,Iz);let l=()=>{let C=s.getBoundingClientRect();return b_({top:C.top,height:C.height},a.innerHeight)},i=l(),d=!1,f=0,m=0,u=0,h=!1,I=0,S=()=>{let C=o.current;if(C){if(Math.abs(C.currentTime-f)<.01){h=!1;return}h=!0,C.currentTime=f}},T=()=>{h=!1;let C=o.current;d&&C&&Math.abs(C.currentTime-f)>.02&&S()},P=()=>{let C=l(),y=C-i;i=C;let b=o.current;y===0||!b||!b.duration||(d||(d=!0,b.pause(),f=b.currentTime,m=C-y,u=f),f=n?y_(u,m,C,b.duration):g_(f,y,b.duration),h||S(),a.clearTimeout(I),I=a.setTimeout(()=>{d=!1,S_(l(),!!n)&&o.current?.play()?.catch(()=>{})},150))},L=()=>{i=l()};return r.addEventListener("seeked",T,!0),a.addEventListener("scroll",P,{passive:!0}),a.addEventListener("resize",L),()=>{n?.removeAttribute(w_),r.removeEventListener("seeked",T,!0),a.removeEventListener("scroll",P),a.removeEventListener("resize",L),a.clearTimeout(I)}},[e,o,t])}import{useEffect as yz}from"react";var k_="video-name-ticks";var v_='[data-part="text"] a[href]';function P_(e,o,t){if(t<=0)return[];if(!Number.isFinite(o)||o<=0)return Array.from({length:t},()=>0);let r=o/t;return Array.from({length:t},(a,n)=>Math.min(1,Math.max(0,(e-n*r)/r)))}function T_(e,o,t){return t<=0||!Number.isFinite(o)||o<=0?0:Math.min(t-1,Math.max(0,Math.floor(e/(o/t))))}var Sz="var(--overlay-fg)",bz="color-mix(in srgb, var(--overlay-fg) 25%, transparent)";function O_(e,o,t){yz(()=>{let r=t?.current;if(e==="none"||!r)return;let a=r.ownerDocument.defaultView??window,n=r.closest("section")??r.parentElement,s=e==="names"&&n?[...n.querySelectorAll(v_)]:[],l=[];if(e==="names"){r.replaceChildren();for(let m=0;m<s.length;m++){let u=r.ownerDocument.createElement("b");u.style.background=bz;let h=r.ownerDocument.createElement("i");h.style.background=Sz,h.style.transform="scaleX(0)",u.appendChild(h),r.appendChild(u),l.push(h)}}let i=s.map(m=>m.style.opacity),d=0,f=()=>{let m=o.current;if(m&&m.duration)if(e==="bar")r.style.transform=`scaleX(${Math.min(1,m.currentTime/m.duration)})`;else{let u=P_(m.currentTime,m.duration,l.length);l.forEach((I,S)=>{I.style.transform=`scaleX(${u[S]})`});let h=T_(m.currentTime,m.duration,s.length);s.forEach((I,S)=>{I.style.opacity=S===h?"":String(.55)})}d=a.requestAnimationFrame(f)};return d=a.requestAnimationFrame(f),()=>{a.cancelAnimationFrame(d),s.forEach((m,u)=>{m.style.opacity=i[u]??""}),e==="names"&&r.replaceChildren()}},[e,o,t])}var wz="data-part",due=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","video-time","video-name-ticks"]),HeroSingle:Object.freeze(["hero","hero-media","tint","overlay","hero-content","video-time","video-name-ticks"]),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 ft(e){return{[wz]:e}}var Yl={min:40,max:100,step:5,fallback:100,unit:"vh"};function Cz(e){return`${typeof e=="number"?e:Yl.fallback}${Yl.unit}`}function E_(...e){return e.some(o=>typeof o=="number"||Xl(o)!==null)}var Zh={...Lk,fallback:680,unit:"px"},uue={ratio:"16/9",px:`${Zh.fallback}px`},kz=/^(\d{1,5}(?:\.\d{1,3})?)px$/;function Xl(e){if(typeof e!="string")return null;let o=Ak(e);if(o!==null)return{unit:"ratio",value:e,css:"auto",aspect:o};let t=kz.exec(e);if(t&&Number(t[1])>0){let r=Math.min(Zh.max,Math.max(Zh.min,Number(t[1])));return{unit:"px",value:`${r}px`,px:r,css:`${r}px`}}return null}function vz(e){return Object.keys(e.style??{}).some(o=>o.startsWith("--sf-hero-ar-"))}function mue({heightDesktop:e,heightTablet:o,heightMobile:t,heightFixed:r,heightFixedTablet:a,heightFixedMobile:n}){let s=I=>Xl(I)?.value,l=E_(e,t,s(r),s(n)),i=E_(o,s(a)),d=(I,S,T)=>{let P=Xl(S);return P?.unit==="ratio"?{[`--sf-hero-h-${I}`]:P.css,[`--sf-hero-ar-${I}`]:P.aspect}:{[`--sf-hero-h-${I}`]:P?.css??Cz(T)}},f="view-tablet:max-view-desktop:h-[var(--sf-hero-h-t)]",m=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:m,style:void 0};let u={...l?d("d",r,e):{},...i?d("t",a,o):{},...l?d("m",n,t):{}},h=vz({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:`${m}${h}`,style:u}}var Zc=2560,Pz="16 / 9",Tz="100svh",Oz=[{minDppx:3.01,dppx:4,capPx:Math.floor(Zc/4)},{minDppx:2.01,dppx:3,capPx:Math.floor(Zc/3)},{minDppx:1.01,dppx:2,capPx:Math.floor(Zc/2)},{minDppx:null,dppx:1,capPx:Zc}];function __(e=Tz){let o=`max(100vw, calc(${e} * ${Pz}))`;return[...Oz.map(({minDppx:t,capPx:r})=>`${t===null?On:`${On} and (min-resolution: ${t}dppx)`} min(${o}, ${r}px)`),"100vw"].join(", ")}function gue(e,o){let t=Xl(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>=Yl.min&&e<=Yl.max)return`${e}svh`}var Ez=.5;function Jl({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=Ez,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:m=!1,slideShown:u,laterSlide:h=!1,laterOfLead:I=!1,phoneFrame:S,followsScroll:T=!1,progress:P,followScrollBar:L}){let C=__(S),y=wP(d,f),b=wl(),[F,_]=Ca(!1),D=b==="below"&&!F,w=b==="first",E=a||"",g=n||"",v=F_(null),O=Dl(v,!0,!0),k=O===void 0?void 0:O==="phone",A=Pf({video:e,av1:o,videoPhone:t,av1Phone:r},k===!0),M=A.video||"",G=vf(M,A.av1),[$,de]=Ca(!1),[le,ee]=Ca(!1),[Ie,ae]=Ca(!1),[xe,ge]=Ca(!1),Je=u??!0,[Ze,mo]=Ca(!1),qe=b!=="first"&&!I,[to,Eo]=Ca(!1),_o=F_(null),xo=L?{kind:"bar",fill:L}:void 0;C_(T||!!L,_o,v),O_((P??xo)?.kind??"none",_o,(P??xo)?.fill),Xn(()=>{if(!qe)return;if(document.readyState==="complete"){Eo(!0);return}let ne=()=>Eo(!0);return window.addEventListener("load",ne,{once:!0}),()=>window.removeEventListener("load",ne)},[qe]),Xn(()=>{de(!1),ee(!1),ae(!1),ge(!1)},[M,E,g]),Xn(()=>{Je&&mo(!0)},[Je]),Xn(()=>{let ne=_o.current;ne&&(Je?ne.play()?.catch(()=>{}):ne.pause())},[Je,Ze,to]),Xn(()=>{if(!h||qe&&!to)return;let ne=()=>_(!0);if(typeof window.requestIdleCallback=="function"){let Yo=window.requestIdleCallback(ne,{timeout:2e3});return()=>window.cancelIdleCallback(Yo)}let He=setTimeout(ne,800);return()=>clearTimeout(He)},[h,qe,to]),Xn(()=>{let ne=_o.current;if(!ne)return;let He=()=>{ne.playbackRate=l};return He(),ne.addEventListener("loadedmetadata",He),()=>ne.removeEventListener("loadedmetadata",He)},[M,l]);let W=kf(E),ie=E&&(W||g)&&!le?ya(E):{src:E},he=g&&!le?ya(g):{src:g},Ve=g&&!D&&!F?[{sized:he,media:On},...E?[{sized:ie,media:js}]:[]]:[];return A_("div",{ref:v,className:"absolute inset-0 z-[1]",...ft("hero-media"),children:[Br("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),Ve.map(({sized:ne,media:He})=>Br("link",{rel:"preload",as:"image",href:ne.src,media:He,fetchPriority:"high",...ne.srcSet?{imageSrcSet:ne.srcSet,imageSizes:C}:{}},He)),(E||g)&&(W||g?(()=>{let ne=Br("img",{...E?{src:ie.src}:{},...ie.srcSet?{srcSet:ie.srcSet,sizes:C}:{},alt:"",...D?{loading:"lazy"}:{},...w?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${y.className}`.trim(),style:{display:$?"none":"block",objectPosition:i,...y.style},onError:He=>{He.currentTarget.currentSrc&&(ie.srcSet||he.srcSet?ee(!0):de(!0))}},g?void 0:E);return g?A_("picture",{children:[Br("source",{media:On,srcSet:he.srcSet||he.src,sizes:C}),ne]},`${E} ${g}`):ne})():Br(_c,{src:E,alt:"",fill:!0,...D?{}:F?{loading:"eager"}:{priority:!0},sizes:C,className:`z-[2] object-cover ${y.className}`.trim(),style:{display:$?"none":"block",objectPosition:i,...y.style},onError:()=>de(!0)},E)),s&&!m&&M&&k!==void 0&&Ze&&(!qe||to)&&!Ie&&Br("video",{ref:_o,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:()=>ae(!0),children:G.map(ne=>Br("source",{src:ne.src,type:ne.type},ne.src))},M),s&&m&&M&&k!==void 0&&Ze&&(!qe||to)&&!xe&&(!E||$)&&Br(h_,{src:M,objectPosition:i,onError:()=>ge(!0)},M)]})}import{jsx as B_}from"react/jsx-runtime";import{forwardRef as _z}from"react";var Az=_z(function(e,o){return B_("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[2] h-0.5",style:{background:"color-mix(in srgb, var(--overlay-fg) 22%, transparent)"},...ft(I_),children:B_("i",{ref:o,className:"block h-full w-full origin-left",style:{background:"var(--overlay-fg)",transform:"scaleX(0)"}})})}),R_=Az;import{jsx as Fz}from"react/jsx-runtime";import{forwardRef as Bz}from"react";var Rz=Bz(function(e,o){return Fz("div",{ref:o,"aria-hidden":!0,className:"pointer-events-none absolute bottom-6 left-1/2 z-[4] flex -translate-x-1/2 gap-1 view-wide:bottom-12 view-wide:gap-2 [&>b]:relative [&>b]:block [&>b]:h-px [&>b]:w-10 [&>b]:overflow-hidden view-wide:[&>b]:w-14 [&_i]:absolute [&_i]:inset-0 [&_i]:origin-left",...ft(k_)})}),L_=Rz;import{jsx as go,Fragment as V_,jsxs as rI}from"react/jsx-runtime";import{jsx as Jn}from"react/jsx-runtime";import{useRef as Lz}from"react";import{EXPAND_SIDE_VAR as Dz,SCROLL_EFFECTS_WITH_ZOOM as Nz,scrollAttrs as Mz}from"efficient-shell/format";var Hz={[Dz]:`var(${hC}, 0px)`};function Qc({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=Lz(null),m=ff(),u=lt(),h=n?u:vr,I=Ll(f,!0,s),S=Mz(e[I],o[I]),{attrs:T}=S,P=e[I].effect==="expand"?{...S.style,...Hz}:S.style,L=Nz.includes(e[I].effect),C=ko(`${wn}${m.fill}${t?` ${t}`:""}`,h.className);if(L&&l==="picture")return h.scope(Jn("div",{ref:f,className:C,...r,...h.attrs,...a?{style:a}:{},children:Jn(Fk,{attrs:T,style:P,children:m.inner(d)})}));let y=Jn(Bk,{children:m.inner(d)});if(L){let F=i??(m.fill?"h-full":void 0);return h.scope(Jn("div",{ref:f,className:C,...r,...h.attrs,style:{...a,overflow:"clip"},children:Jn("div",{...F?{className:F}:{},...T,style:P,children:y})}))}let b=Object.keys(P).length||a?{style:{...a,...P}}:{};return h.scope(Jn("div",{ref:f,className:C,...r,...h.attrs,...T,...b,children:y}))}var ka=["media","image","image2"],ur={media:"Media",image:"Image",image2:"Image 2"},Zl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function ep(e,o){return e==="image"&&tl(o)>1?"Image 1":ur[e]}var ame="Video file",nme="Upload a video file",sme="AV1 file",lme="Upload an AV1 file";function Wz(e,o){return Pd("mediaType",Jd,o,[e])}var $z=new Set(Object.keys(Zd)),D_="heroPart";function zz(e,o){return{...o,[D_]:e}}function ime(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Jd.flatMap(l=>t[l])].filter(l=>!(l in e));if(s.length)throw new Error(`heroMediaFields: ${s.join(", ")} is not a row of this block`);for(let l of Jd)for(let i of t[l])n[i]=ro(n[i],Wz(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=ro(n[l],i));for(let l of ka)for(let i of o[l]??[])n[i]=zz(l,n[i]);return n}function Uz(e){let o=e?.[D_];return ka.includes(o)?o:null}function N_(e,o){let t={};for(let[r,a]of Object.entries(e))Uz(a)===o&&(t[r]=a);return t}function M_(e){if(!$z.has(e.type))return[];let o=[{part:"media",label:ur.media,depth:0}];return ik(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:ep("image",e.props),depth:1}),tl(e.props)>1&&o.push({part:"image2",label:ep("image2",e.props),depth:1})),o}function va(e,o){return`${e}::${o}`}function op(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 Ql="data-sf-hero-part";import{MOTION_TIMING as jz}from"efficient-shell/format";var z_="grayscale(1) contrast(1.03)",pme="Black and white";function Gz(e){return e===!0?{filter:z_}:{}}function Kz(e){let{filter:o}=Gz(e);return o?{style:{filter:o}}:{}}var Pa="sf-photo-grayscale",tI="data-sf-photo-host",H_={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},np=`@media (hover:hover){.${Pa}{filter:${z_};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 U_(e){let o=jz.hover,t={...e.duration!==o.duration.default?{[H_.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[H_.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function j_(e,o,t){if(e===!0)return Kz(!0);if(t?.kind==="mono"){let r=U_(t);return{className:Pa,sheet:np,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Pa}:{}}var G_="data-sf-repeat",Qh="sf-photo-zoom",qz="--sf-photo-zoom",ume="sf-photo-wash",tp="sf-photo-wash-rest",ei="sf-photo-wash-hover",ap="sf-photo-frame",K_=(e,o)=>`:not([${G_}]:not(${o}) .${e})`,oI=(e,o)=>`[${G_}]${o} .${e}${K_(e,o)}`,eI=(e,o)=>`${o},${oI(e,":hover")},[${tI}]:hover .${e}${K_(e,":hover")}`,W_=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))`,Vz=`.${ei}{opacity:0}@media (hover:hover){.${tp},.${ei}{transition:${W_("opacity")}}${eI(ei,`.${ap}:hover .${ei}`)}{opacity:1}${eI(tp,`.${ap}:hover .${tp}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Qh}{transition:${W_("transform")}}${eI(Qh,`.${ap}:hover .${Qh}`)}{transform:scale(var(${qz}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${tp},.${ei}{transition:none}}`,mme="sf-photo-move";function xme(e){if(!e||!e.zoom&&!e.darken)return null;let o=U_(e);return{className:ap,sheet:Vz,...o?{style:o}:{}}}function q_(e){return e===!0?{[Pa]:np}:{}}var rp="sf-box-reveal",hme="sf-box-reveal",Yz=8,$_=.3,Ime=`@media ${js}{.${rp}{opacity:0;transform:translateY(${Yz}px);transition:opacity ${$_}s ease-out,transform ${$_}s ease-out}${oI(rp,":hover")},${oI(rp,":focus-within")}{opacity:1;transform:none}}@media ${js} and (prefers-reduced-motion:reduce){.${rp}{transition:none;transform:none}}`;import{hidableText as Xz}from"efficient-easel/draw";var Jz={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"},Zz={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 Y_(e){let o=e.isVideo&&zP(e.videoSource)==="youtube",t=e.isVideo?UP(e.videoPlayback):null,r=t==="click",a=o?jP(Xz(e.youtubeUrl)):null,n=dk(e.mediaLayout);return{fromYouTube:o,onClick:r,youTubeId:a,backgroundFile:e.isVideo&&!o&&!r,followsScroll:t==="scroll"&&!o,progress:t?$P(e.videoProgress,t,o):"none",desktopLayout:n,phoneLayout:fk(e.mediaLayoutPhone,n),twoPictures:!e.isVideo&&tl(e)>1}}function oi(e,o){return Cn(Sa({_partMotion:e},o))}function ti(e,o){return Gn(Sa({_partMotion:e},o))}var sp=e=>Eh({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),X_=ll.img;function J_({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?go(Ac,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?go(Qc,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:i}):go("div",{className:a,...n,...s?{style:s}:{},children:i})}function Zn(e,o){return j_(void 0,void 0,qb(Sa({_partMotion:e},o)))}function Z_(e){return ka.some(o=>Zn(e,o).className)?{hostAttrs:{[tI]:""},sheet:np}:{}}function lp({treatment:e,children:o}){return e.className?go("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):go(V_,{children:o})}function ip({color:e,opacity:o,passClicks:t=!0}){return o>0?go("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},...ft("tint")}):null}function dp({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let i=o&&t?{[Ql]:e}:void 0;return go(J_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:X_,children:l})}function Q_({partMotion:e,editing:o,children:t}){let r=oi(e,"media"),a=ti(e,"media"),n=Zn(e,"media"),s=go(nf,{fill:ll,children:t}),l=n.className?go("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?go(J_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:X_,children:l}):go(V_,{children:l})}function e1({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return rI("div",{className:`absolute inset-0 z-[1] grid ${Jz[o]} ${Zz[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[go(dp,{part:"image",editing:t,marked:r,entrance:oi(a,"image"),scroll:ti(a,"image"),origins:sp(n),className:"relative overflow-hidden",children:rI(lp,{treatment:Zn(a,"image"),children:[go(Jl,{posterSrc:it(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),go(ip,{color:n.tintColor,opacity:n.tintOpacity})]})}),go(dp,{part:"image2",editing:t,marked:r,entrance:oi(a,"image2"),scroll:ti(a,"image2"),origins:sp(s),className:`relative overflow-hidden ${Zv({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:rI(lp,{treatment:Zn(a,"image2"),children:[go(Jl,{posterSrc:it(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),go(ip,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Rr,Fragment as Qz,jsxs as eU}from"react/jsx-runtime";import{useEffect as oU,useRef as tU,useState as rU}from"react";import{PlaySolidIcon as aU}from"efficient-shell/icons/efficient-looks";function o1({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=rU("large");return oU(()=>n("large"),[e]),e?eU(Qz,{children:[!o&&a!=="none"&&Rr(ac,{src:a==="large"?GP(e):KP(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&&Rr("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Rr("iframe",{src:Bx(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 t1({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=tU(null),d=Dl(i,!0,!0)==="phone";if(!e&&!o)return null;let f=Pf({video:o,av1:t,videoPhone:r,av1Phone:a},d),m=vf(f.video,f.av1);return n&&!l?e?Rr("iframe",{src:Bx(e,"click"),title:Rx,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"}):Rr("video",{ref:u=>{i.current=u},...m.length===1?{src:m[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:m.length>1&&m.map(u=>Rr("source",{src:u.src,type:u.type},u.src))},f.video):Rr("button",{ref:u=>{i.current=u},type:"button","aria-label":Rx,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:Rr(aU,{size:28})})}function r1(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 l1}from"efficient-shell/format";var i1=["top","middle","bottom"],d1=["left","center","right"],f1="bottom",c1="left",nU={top:"Top",middle:"Middle",bottom:"Bottom"},sU={left:"Left",center:"Center",right:"Right"},Vme="Up and down",Yme="Sideways",lU={top:"flex-start",middle:"center",bottom:"flex-end"},iU={left:"flex-start",center:"center",right:"flex-end"},dU="--sf-hero-phone-y",fU="--sf-hero-phone-x";function cU(e){return l1(i1,f1,e)}function pU(e){return l1(d1,c1,e)}function p1(e,o){let t=cU(e),r=pU(o),a={};return t!==f1&&(a[dU]=lU[t]),r!==c1&&(a[fU]=iU[r]),a}var uU="--sf-hero-phone-words-top",mU="--sf-hero-phone-words-bottom",xU="--sf-hero-phone-box-gap",Xme=100,Jme=90,Zme=28,hU=0,IU=200,Qme="Words space top",exe="Words space bottom",oxe="Space between boxes";function aI(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(IU,Math.max(hU,Math.round(e)))}function u1(e,o,t){let r={},a=aI(e),n=aI(o),s=aI(t);return a!==void 0&&(r[uU]=`${a}px`),n!==void 0&&(r[mU]=`${n}px`),s!==void 0&&(r[xU]=`${s}px`),r}function txe(){return i1.map(e=>({label:nU[e],value:e}))}function rxe(){return d1.map(e=>({label:sU[e],value:e}))}var gU="--sf-hero-words-top",yU="--sf-hero-words-bottom",a1="--sf-hero-words-top-t",n1="--sf-hero-words-bottom-t",axe=140,nxe=56,SU=0,bU=400,s1="pt-[var(--sf-hero-words-top,140px)] pb-[var(--sf-hero-words-bottom,56px)]",wU="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 CU(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(bU,Math.max(SU,Math.round(e)))}function m1(e,o,t,r){let a={},n=(s,l)=>{let i=CU(l);i!==void 0&&(a[s]=`${i}px`)};return n(gU,e),n(yU,o),n(a1,t),n(n1,r),Object.keys(a).length===0?{className:null,style:a}:{className:a1 in a||n1 in a?`${s1} ${wU}`:s1,style:a}}import{hexToRgb as kU,parseOption as vU}from"efficient-shell/format";var PU=!0;var TU=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function x1(e){let o=kU(e);return o?`${o.r},${o.g},${o.b}`:null}function h1(e){return e==null?PU:e!==!1}var OU="classic",EU=[{label:"Classic",value:"classic"},{label:"Edges",value:"edges"}],_U=160,AU=62,FU=".38";function BU(e){return vU(EU,OU,e)}function I1(e,o){let t=(e?x1(e):null)??x1(sr);if(BU(o)==="edges"){let r=`rgba(${t},${FU})`,a=`rgba(${t},0)`;return`linear-gradient(180deg, ${r} 0px, ${a} ${_U}px), linear-gradient(180deg, ${a} ${AU}%, ${r} 100%)`}return`linear-gradient(180deg, ${TU.map(([r,a])=>`rgba(${t},${a}) ${r}%`).join(", ")})`}import{hexToRgb as g1,parseOption as RU}from"efficient-shell/format";var y1="bottom";var LU=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],DU={bottom:180,top:0,left:270,right:90},NU=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],MU=[[null,33],[.6,67],[.94,100]];function HU(e,o){let{r:t,g:r,b:a}=g1(e)??g1(sr);return`rgba(${t},${r},${a},${o})`}function S1(e){return RU(LU,y1,e)}function b1(e=sr,o=y1){let t=S1(o),r=(t==="top"||t==="bottom"?NU:MU).map(([a,n])=>`${a===null?"transparent":HU(e,a)} ${n}%`);return`linear-gradient(${DU[t]}deg, ${r.join(", ")})`}function w1(e,o){let t=ho(e.overlayColor),r=ho(e.overlayPosition),a=ho(o)??sr;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:S1(r)}}var UU=WU({});function Lxe({name:e,process:o,mediaType:t=Zd.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:f,objectPositionPhone:m,objectPositionTablet:u,tintColor:h=sr,tintOpacity:I=0,groups:S,editing:T=!1,themeClassName:P,themeStyle:L,overlayColor:C,overlayPosition:y,mediaLayout:b,mediaLayoutPhone:F,mediaImage2:_,objectPosition2:D,objectPosition2Phone:w,objectPosition2Tablet:E,tintColor2:g=sr,tintOpacity2:v=0,videoSource:O,youtubeUrl:k,videoPlayback:A,videoProgress:M,partMotion:G,laterSlide:$=!1}){let de=Pt(),le=lt(),{alignment:ee="left",textureOpacity:Ie,textureOn:ae,textureColor:xe,textureShape:ge,quietVideo:Je,phoneUpDown:Ze,phoneSideways:mo,phoneWordsTop:qe,phoneWordsBottom:to,phoneBoxGap:Eo,wordsTop:_o,wordsBottom:xo,wordsTopTablet:W,wordsBottomTablet:ie,holdReel:he,reelHeld:Ve,shownSlide:ne,ratioMin:He,posterPhoneFrame:Yo}=$U(UU),We=m1(_o,xo,W,ie),je=wl(),Yr=$&&je==="first",id=k1(null),[Xr,Tm]=v1(ne===void 0?void 0:!1);zU(()=>{let tn=id.current;Tm(ne===void 0||!tn?void 0:r1(tn.closest(".hero-track"),"data-slide-name")[ne]===tn)});let Ro=t==="video",Jr=Ro?it(r):void 0,Rs=Ro?it(n):it(r)??it(n),Lo=Ro?{av1:it(s),phone:it(l),av1Phone:it(i),poster:it(d)}:{},Qa=typeof a=="number"?a/100:1,{fromYouTube:Zt,onClick:Ls,youTubeId:Zr,backgroundFile:Ir,followsScroll:dd,progress:en,desktopLayout:Ds,phoneLayout:fd,twoPictures:cd}=Y_({isVideo:Ro,videoSource:O,videoPlayback:A,videoProgress:M,youtubeUrl:k,mediaLayout:b,mediaLayoutPhone:F}),[Ns,Lt]=v1(!1),Ms=k1(null);Ns&&Ve===!1&&Lt(!1);let Hs=!Ns,on=w1({overlayColor:C,overlayPosition:y},xe),q=Ro?null:oi(G,"image"),Ae=Ro?null:ti(G,"image"),Do=Z_(G),bt=zo(lp,{treatment:Ro?{}:Zn(G,"image"),children:zo(Jl,{videoSrc:Ir?Jr:void 0,videoAv1Src:Ir?Lo.av1:void 0,videoSrcPhone:Ir?Lo.phone:void 0,videoAv1SrcPhone:Ir?Lo.av1Phone:void 0,posterSrc:Rs,posterSrcPhone:Lo.poster,showVideo:Ir,playbackRate:Qa,objectPosition:f,objectPositionPhone:Ro?void 0:m,objectPositionTablet:Ro?void 0:u,quiet:Je,slideShown:Xr,laterSlide:$,laterOfLead:Yr,phoneFrame:Yo,followsScroll:dd,progress:en==="none"?void 0:{kind:en,fill:Ms}})}),Dt=C1("section",{ref:id,className:ko(`${He?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${P?` ${P}`:""}`,le.className),...le.attrs,style:L,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Ir&&Jr?"video":"still",...Do.hostAttrs,...ft("slide"),children:[zo($c,{sheet:Do.sheet}),zo(Q_,{partMotion:G,editing:T,children:cd?zo(e1,{laterSlide:$,desktopLayout:Ds,phoneLayout:fd,editing:T,partMotion:G,first:{src:r,objectPosition:f,objectPositionPhone:m,objectPositionTablet:u,tintColor:h,tintOpacity:I},second:{src:_,objectPosition:D,objectPositionPhone:w,objectPositionTablet:E,tintColor:g,tintOpacity:v}}):Zt||q||Ae?C1(dp,{part:Ro?"media":"image",editing:T,entrance:q,scroll:Ae,origins:sp({objectPosition:f,objectPositionTablet:u,objectPositionPhone:m}),className:"absolute inset-0 z-[1]",children:[bt,Zt&&zo(o1,{youTubeId:Zr,ownPoster:!!Rs,background:!Ls,editing:T})]}):bt}),Ls&&zo(t1,{youTubeId:Zr,fileSrc:Zt?void 0:Jr,fileAv1Src:Zt?void 0:Lo.av1,fileSrcPhone:Zt?void 0:Lo.phone,fileAv1SrcPhone:Zt?void 0:Lo.av1Phone,playing:Ns,onPlay:()=>{Lt(!0),he?.()},editing:T}),Hs&&!cd&&zo(ip,{color:h,opacity:I,passClicks:!1}),Hs&&h1(ae)&&zo("div",{className:"absolute inset-0 z-[2]",style:{background:on.own?b1(on.color,on.position??void 0):I1(on.color,ge),...Ie!==void 0?{opacity:Ie/100}:null},...ft("overlay")}),Hs&&zo("div",{className:[He?"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)]",We.className??"pt-[140px] pb-14",de?CC:"",T?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...iC,...p1(Ze,mo),...u1(qe,to,Eo),...We.style},...ft("hero-content"),children:S&&zo(S,{className:"sf-hero-group-zone",minEmptyHeight:160})}),en==="bar"?zo(R_,{ref:Ms}):en==="names"?zo(L_,{ref:Ms}):null]});return le.scope(Yr?zo(rc,{children:Dt}):Dt)}var P1=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as A1}from"efficient-easel/draw";import{isNodeList as GU}from"efficient-easel/data";var nI=3,sI=()=>({type:K,props:{direction:"column"},slots:{[Ce]:[{type:"ImageBlock"},{type:K,props:{direction:"column"},slots:{[Ce]:[{type:"Text",props:gr()},{type:"Text"}]}}]}}),T1=()=>Array.from({length:nI},sI);var O1=["","","","","",""],E1="#ticker",ri="strip",lI={sectionAccent:Sr,line:!1};function jU(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function iI(e){return jU(e).length>0}function zxe(e){return e.showTicker!==!1&&iI(e)}var F1=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,GU(r)?r.map(a=>F1(a,o)):r]))}}),KU=e=>{let[o]=Mt([sI()],a=>A1(a)),{id:t,...r}=F1(o,e).props;return r},ct={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>P1.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${zs.toLowerCase()}`,seeds:()=>[],addBlocked:px,notice:ux},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${zs.toLowerCase()}`,seeds:()=>[],addBlocked:px,notice:ux},ProcessSteps:{slot:$s,childType:K,addLabel:`Add ${zs.toLowerCase()}`,seeds:e=>Array.from({length:nI},()=>KU(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},_1=1,qU={slot:ri,childType:K,addLabel:`Add ${zs.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=_1?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>_1?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},B1={Hero:{[ri]:qU}};function ehe(e){for(let[o,t]of Object.entries(e)){if(Qe(ct,o)&&z(ct,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);ct[o]=t}}function ohe(e,o){let t=z(ct,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:A1(t.childType),...r}}))}:null}var YU=["GalleryB"];function R1(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!YU.includes(l))return s;let i=z(ct,l);if(!i?.legacy)return s;let d=s.props??{},f=d[i.slot];if(Array.isArray(f)&&f.length>0)return s;let m=i.legacy(d);if(!m.length)return s;t=!0;let u=String(d.id??l),h=m.map((I,S)=>({type:i.childType,props:{id:`${i.childType}-${u}-${S}`,...I}}));return{...s,props:{...d,[i.slot]:h}}}),a=new Set(VU(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var XU={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},JU={"Footprint.source":"typed"};function L1(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(XU)){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(JU)){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],sb(l)&&l!==a&&!Le(i)&&(i[lo]=l),o=i,t=!0}if(e.type&&o){let r=Ed(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=Ye({props:o},a=>$e(a,L1));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function D1(e){return md(e,o=>$e(o,L1))}import{readHidable as ZU}from"efficient-easel/draw";var qt=K,Vt=Ce;function Ta(e){if(e.theme)return ar(e.theme);let o=e.site?.themePresets;return o?ar({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function QU(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var M1=new Set(["id"]),Lr={},ai=[],ej={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"]},oj=Object.keys(ej),Oa=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...oj,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function no(e){for(let[o,t]of Object.entries(e)){if(Qe(Lr,o)&&z(Lr,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Lr[o]=t}}function Dr(e){return z(Lr,e)}function tj(e){return Qe(Lr,e)&&ai.includes(e)}function H1(e,o=Oa){return Qe(Lr,e)&&(o.includes(e)||tj(e))}function She(e){let o=z(kt,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 dI=e=>ZU(e),Ne=e=>dI(e).text.trim()!=="";function rj(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 aj=e=>e==="heading"?gr():e==="eyebrow"?tr():{};function nj(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 sj(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 N1(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 lj(e){let o=new Set([...M1,"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 fI=e=>un(e.headPlacement)==="own-box";function ij(e){return fI(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function dj(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 fj(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 cj(e,o,t){if(!t.press)for(let r of fj(e)){let a=dj(o,r);if(a!==void 0)return a}}function Ea(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:ij(r))??cj(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],l=[],i=new Set,d=(y,b)=>{s.push({key:y,home:b}),i.add(y)},f=r._partStyles??{},m=lj(o),u=0,h=(y,b)=>({type:y,props:{...b,id:`${n}~${y}-${++u}`}}),I=(y,b,F,_,D,w,E)=>{if(D){for(let v of y??[]){let O=typeof v=="string"?v:v[0];F[O]!==void 0&&E(O,`nothing \u2014 the ${_} has no parts, so it is not drawn`)}return}let g=typeof b=="function"?b(r,t):b??{};return N1(y??[],g,F,(v,O,k)=>E(v,k?`nothing \u2014 the old value draws nothing (${_}: no ${O})`:`${w}${_}: ${O}`),t)},S=y=>Mt(y,b=>`${n}~${b}-${++u}`),T=(y,b,F)=>{let _=y.of?y.of(b):Array.isArray(b[y.key])?b[y.key]:[],D=typeof y.props=="function"?y.props(r,t):y.props??{},w=_.map((k,A)=>{let M=k??{},G=y.item?.(M,A,r)??{},$=P(G.reverse?[...y.parts].reverse():y.parts,M,!1,`item ${A+1}: `);return y.flat?G.props?$.map(de=>({...de,props:{...de.props,...G.props,id:de.props.id}})):$:[h(qt,{name:`${y.name} ${A+1}`,...D,...G.props??{},[Vt]:$})]});if(y.groups){let k=y.groups;return F(y.key,_.length?`one Box per item (${_.length}), in a Box per group`:"nothing \u2014 the list is empty"),Td(_.map(A=>A??{}),k.of,k.of).map((A,M)=>{let G=A.items.map(ae=>ae.item),$=k.parts?P(k.parts,k.head?.(G,r)??{},!1,`group ${M+1}: `):[],de=A.items.map(ae=>w[ae.index]),le=k.perRow?.(G.length,r),ee=Number.isInteger(le)&&le>=1?le:1,Ie=[];if(k.perRow&&ee<de.length)for(let ae=0;ae*ee<de.length;ae++)Ie.push(de.slice(ae*ee,(ae+1)*ee).flat());return h(qt,{name:`${k.name} ${M+1}`,...k.props??{},[Vt]:[...$,h(qt,{name:`${k.itemsName} ${M+1}`,...k.itemsProps?.(G.length,r)??{},[Vt]:Ie.length?Ie.map((ae,xe)=>h(qt,{name:`${k.rowName??`${k.itemsName} row`} ${xe+1}`,...k.rowProps??{},[Vt]:ae})):de.flat()})]})})}let E=y.perRow?.(r),g=y.perRow?Number.isInteger(E)&&E>=1?E:1:0;if(F(y.key,(_.length?y.flat?`each item's parts (${_.length} items), in order`:`one Box per item (${_.length}), its parts inside`:"nothing \u2014 the list is empty")+(g&&_.length?`, in rows of ${g}`:"")),!g)return w.flat();let v=typeof y.rowProps=="function"?y.rowProps(r,t):y.rowProps??{},O=[];for(let k=0;k*g<w.length;k++){let A=w.slice(k*g,(k+1)*g).flat(),M=y.rowFiller?g-w.slice(k*g,(k+1)*g).length:0;O.push(h(qt,{name:`${y.rowName??`${y.name} row`} ${k+1}`,...v,[Vt]:[...A,...Array.from({length:M},(G,$)=>h(qt,{name:`Empty ${$+1}`,...y.rowFiller,[Vt]:[]}))]}))}return O},P=(y,b,F,_)=>{let D=[],w=(g,v)=>F?d(g,v):void 0,E=g=>F?f[g]:void 0;for(let g of y)if(!(g.when&&!g.when(r,F?void 0:b)))switch(g.kind){case"text":{let v=dI(b[g.key]);if(!v.text.trim()&&!(F&&t.press&&o.pressKeepsEmpty?.includes(g.key))){w(g.key,"nothing \u2014 empty words draw nothing, so no block");break}let O=aj(g.role??"body"),{_partStyles:k,...A}=O,M=nj(O,g.styleFrom?{...g.style,...g.styleFrom(r,t)}:g.style,E(g.key),g.props?.align);D.push(h("Text",{text:g.mark==="accentLead"?rj(v.text):g.mark==="accentItalic"?Us(v.text):v.text,...A,...g.props??{},...M,...v.hidden?{_hidden:!0}:{}})),w(g.key,`${_}Text block: its words${v.hidden?", hidden":""}`);break}case"button":{let v=dI(b[g.key]);if(!v.text.trim()){w(g.key,"nothing \u2014 no words, no button"),w(g.href,"nothing \u2014 no button to link"),typeof g.variant=="object"&&w(g.variant.key,"nothing \u2014 no button to style");break}let O=typeof b[g.href]=="string"&&b[g.href]?b[g.href]:"#",k={...g.style??{},...E(g.key)??{}};D.push(h("ButtonBlock",{label:v.text,href:O,...typeof g.props=="function"?g.props(b,t):g.props??{},...sj(g.variant,b),...Object.keys(k).length?{_partStyles:{label:k}}:{},...v.hidden?{_hidden:!0}:{}})),w(g.key,`${_}Button block: its words`),w(g.href,`${_}Button block: its link`),typeof g.variant=="object"&&w(g.variant.key,`${_}Button block: its Style`);break}case"image":{let v=b[g.key];if(typeof v!="string"||!v){w(g.key,"nothing \u2014 no picture, no block"),g.alt&&w(g.alt,"nothing \u2014 no picture to describe");break}let O=g.alt&&typeof b[g.alt]=="string"?b[g.alt]:"";D.push(h("ImageBlock",{src:v,alt:O,...g.props??{}})),w(g.key,`${_}Image block: its picture`),g.alt&&w(g.alt,`${_}Image block: its alt text`);break}case"list":{D.push(...T(g,b,w));break}case"group":{let v=P(g.parts,b,F,_),O=I(g.box,g.props,b,`${g.name} Box`,!v.length&&!g.keepEmpty,_,w);O&&D.push(h(qt,{name:g.name,...O,[Vt]:v}));break}case"block":{let v=g.parts?P(g.parts,b,F,_):[],O=I(g.box,g.props,b,`${g.type} block`,!!g.parts&&!v.length&&!g.keepEmpty,_,w);O&&D.push(h(g.type,{...O,...g.slot?{[g.slot]:v}:{}}));break}case"core":{let v=g.as??e.type,O={...g.headless?{}:{headPlacement:"own-box"},...g.props??{}},k=g.keep==="rest"?Object.keys(b).filter(M=>!m.has(M)&&!(M in O)):g.keep;for(let M of k)b[M]!==void 0&&(O[M]=b[M],w(M,`the ${v} block inside the Box`));if(g.keep==="rest"){for(let G of Object.keys(g.props??{}))b[G]!==void 0&&!m.has(G)&&w(G,`nothing \u2014 the ${v} block inside the Box has the row's own value`);b.headPlacement!==void 0&&w("headPlacement",`the ${v} block inside the Box: own-box`);let M=Object.fromEntries(Object.entries(f).filter(([G])=>!m.has(G)));Object.keys(M).length&&(O._partStyles=M)}for(let[M,G]of Object.entries(g.rename??{}))b[M]!==void 0&&(O[G]=b[M],w(M,`the ${v} block inside the Box: ${G}`));if(g.derive){Object.assign(O,g.derive.props(b,t));for(let M of g.derive.reads)b[M]!==void 0&&w(M,`the ${v} block inside the Box`)}let A=typeof g.slots=="function"?g.slots(b,t):g.slots??{};for(let[M,G]of Object.entries(A))O[M]=G.flatMap($=>"kind"in $?T($,b,w):S([$]));D.push(h(v,O));break}}return D},L=(y,b)=>{let F=b===0?"Box":`${y.name} Box`,_=P(y.parts,r,!0,b===0?"":`${F}: `),D=typeof y.boxProps=="function"?y.boxProps(r,t):y.boxProps??{},w=N1(y.box??[],D,r,(E,g,v)=>d(E,v?`nothing \u2014 the old value draws nothing (${F}: no ${g})`:`${F}: ${g}`),t);return{type:qt,props:{name:y.name,...w,[Vt]:_,id:QU(n,b)}}},C=[o,...o.also??[]].map(L);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[y,b]of Object.entries(o.reads??{}))r[y]!==void 0&&d(y,b);for(let[y,b]of Object.entries(o.drop??{}))y in r&&(l.push({key:y,why:b}),i.add(y));for(let y of Object.keys(r))M1.has(y)||i.has(y)||l.push({key:y,why:"not in the row \u2014 not carried"});return{node:C[0],nodes:C,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function W1(e,o=ai,t={}){let r=e.content;if(!Array.isArray(r))return e;let a=!1,n=r.flatMap(s=>{let l=s&&typeof s.type=="string"&&o.includes(s.type)?z(Lr,s.type):void 0;if(!l)return[s];let i=Ea(s,l,t);return i.skipped!==void 0?[s]:(a=!0,i.nodes)});return a?{...e,content:n}:e}function $1(e,o=ai,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?z(Lr,a.type):void 0;if(!s)return;let l=Ea(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as pj,BLOCK_SIZE_KEYS as uj,parseBlockWidthFit as cp,phoneKey as z1,parseTextFit as fp,tabletKey as U1,viewKeyAt as j1}from"efficient-easel/draw";import{sideLengthAt as mj}from"efficient-easel/screen/lib/content/length-units";var xj="sf-block-size",ni=["width","minWidth","maxWidth"],pp=e=>`${e}Unit`,Nr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,hj={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"}},V1={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"}},Ij={desktop:V1.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"}},gj={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},Y1="max-view-wide:grow!";function X1(e){return up(e).mode.phone==="fill"}var yj={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Sj={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},bj="data-sf-min-width",G1={two:{desktop:"wide",phone:xx.phone},three:xx},wj={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)]"]}},cI={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)]"]}},Cj={minWidth:{desktop:cI.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:cI.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)]"]}},kj=["widthFit",...ni],K1={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},pI={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!"},vj={desktop:pI.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!"},J1={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"},Pj={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:J1.phone},Z1={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},q1={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:Z1.phone};function Q1(e){let o=up(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>gj[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function eA(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=up(e),n=d=>o?G1.three[d]:G1.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[Sj[d]]=s[d].join(" "));return s.min.length&&(i[bj]=s.min.join(" ")),i}function up(e){let o=kj.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?cp(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=pp(a),s={};for(let i of t)s[j1(a,Sn(i))]=Nr(e[a]?.[i]),s[j1(n,Sn(i))]=e.units?.[a]?.[i];let l=i=>mj(s,{length:a},n,Sn(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(cp,e.widthFit)}}function uI(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(v=>fp(e.textFit?.[v])==="ellipsis"),r=o&&!t,a=r?Ij:V1,n=r?Cj:cI,s=r?vj:pI,l=[],i={},d={},{three:f,sides:m,lengthPerSide:u,mode:h}=up(e),I=u("width");for(let v of m){let O=h[v];!O||O==="fit"||(l.push(f?a[v][O]:hj[v][O]),O==="fixed"&&(i[yj[v]]=In(I[v]?.value??pj.fallback,I[v]?.unit)))}for(let v of ni.filter(O=>O!=="width")){let O=u(v);for(let k of m){let A=O[k];if(A===void 0)continue;let[M,G]=f?n[v][k]:wj[v][k];i[M]=In(A.value,A.unit),l.push(G)}}let S=fp(e.textFit?.desktop),T=fp(e.textFit?.phone),P=v=>{let O=Nr(e.minFont?.[v]);return O===void 0?void 0:e.units?.minFont?.[v]==="vw"?`${O}vw`:String(O)},L=P("desktop"),C=P("phone"),y=fp(e.textFit?.tablet),b=y!==S||T!==void 0?y:void 0,F=P("tablet"),_=F!==L||C!==void 0?F:void 0,D=Nr(e.maxWidth?.desktop),w=Nr(e.maxWidth?.tablet)??D,E={desktop:D!==void 0,tablet:w!==void 0,phone:(Nr(e.maxWidth?.phone)??w)!==void 0},g=(v,O,k)=>{if(O!=="line"&&O!=="ellipsis")return;let A=v==="tablet"?void 0:v,M=(G,$)=>k||!A?G[v]:$[A];if(O==="line"){l.push(M(s,K1));return}if(l.push(M(pI,K1)),l.push(M(Pj,J1)),f&&!k&&v==="desktop")for(let G of["desktop","tablet"])E[G]||l.push(q1[G]);else E[v]||l.push(M(q1,Z1))};return b?(g("desktop",S,!0),g("tablet",b,!0),g("phone",T??b,!0)):(g("desktop",S,!1),g("phone",T??S,!1)),S&&(d[dr.fit]=S),b&&(d[dr.fitTablet]=b),T&&(d[dr.fitPhone]=T),L!==void 0&&(d[dr.min]=L),_!==void 0&&(d[dr.minTablet]=_),C!==void 0&&(d[dr.minPhone]=C),!r&&(b||_!==void 0)&&(d[dr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[xj,...l].join(" "),style:i,attrs:d}}function The(e){if(Nr(e.maxWidth?.desktop)!==void 0)return!0;let o=cp(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function oA(e){return["desktop","tablet","phone"].some(o=>{let t=cp(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Nr(e.minWidth?.[o])!==void 0})}function mp(e){let o={};for(let t of uj){let r=e[t],a=e[U1(t)],n=e[z1(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=pp(t),l={desktop:e[s],tablet:e[U1(s)],phone:e[z1(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var tA={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as Tj}from"efficient-shell/format";import{convertLength as Oj}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as rA}from"efficient-easel/draw";var Yt=(e,o,t,r)=>o===t?e:Oj(e,o,t,r,{min:0,max:200,step:4}),_a={textFit:"line",textFitPhone:"wrap"},Aa={...U,[Xo]:""},{label:nIe,href:sIe,...Ej}=tA.defaultProps,fo=Ej,Fa={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...Km,sectionAccent:0},es={sectionAccent:-1},Z=[...wr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",yk.unitKey,...wk,...hk,"anchor",Qs,...En,$d,...Yd,...Bc,...Vd(["widthFit",...ni,...ni.map(pp)]),...Object.values(Fo)],Qn="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",X={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Qn,fullWidth:Qn,pageWidth:Qn,backgroundWidth:Qn,contentWidth:Qn,contentMax:Qn},te=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(e=>[e,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"])),xp={[zt]:"read by `wrapperPad`: a value named here is drawn as it is, so the section's own px is not added; the Box's padding is the total"};function re(e,o){let t=ye(e.sectionPaddingTop)??0,r=ye(e.sectionPaddingBottom)??0,a=ye(e.sectionPaddingTopTablet),n=ye(e.sectionPaddingBottomTablet),s=yr(e.sectionPaddingUnit),l=yr(e.sectionPaddingUnitTablet),i=yr(e.sectionPaddingUnitPhone),d=Array.isArray(e[zt])?e[zt]:[],f=(T,P)=>d.includes(T)?0:P,m=(T,P,L,C,y,b)=>{let F=ye(e[T]);if(F!==void 0)return F+Yt(f(T,b),"px",i,"mobile");let _=C===void 0?{n:y,unit:s,key:L}:{n:C,unit:l,key:P};return Yt(_.n,_.unit,i,"mobile")+Yt(f(_.key,b),"px",i,"mobile")},u=(T,P,L,C,y,b)=>L!==void 0?{[T]:L+Yt(f(T,b??y),"px",l,"tablet")}:b===void 0?{}:{[T]:Yt(C,s,l,"tablet")+Yt(f(P,b),"px",l,"tablet")},h=T=>({desktop:Io[T],tablet:rA(Io[T],"tablet"),phone:rA(Io[T],"mobile")}),I=h("top"),S=h("bottom");return{[I.desktop]:t+Yt(f(I.desktop,o.top),"px",s,"desktop"),[S.desktop]:r+Yt(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]:m(I.phone,I.tablet,I.desktop,a,t,o.topPhone),[S.phone]:m(S.phone,S.tablet,S.desktop,n,r,o.bottomPhone)}}var ce=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>re(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function pt(e,o){let t={};for(let[a,n]of gx)e[a]!==void 0&&(t[n]=e[a]);let r=rf(e,zn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var Mr=e=>[...gx.map(([o,t])=>[o,t,(r,a)=>pt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>pt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>pt(t,e).sectionPaddingBottom]],_j={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},lIe=e=>o=>Ne(o.props[e])?[_j]:[],pe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:U,...o?{style:o}:{}}),os=e=>({kind:"group",name:"Chip",props:{...R,...or("main"),...Co(6,14)},parts:[pe(e,{color:"background",...H("label",12),weight:600,letterSpacing:.16})]}),aA=e=>e.background!=="transparent",Aj=(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},si={align:"right",alignPhone:"left"},Fj=(e,o,t)=>{let r=a=>Aj(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}},li=(e,o,t,r={})=>Fj(e,o,{...Aa,...si,...r,_partStyles:{text:{...No,color:"labels",...t,case:No.case,...si}}}),ts=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ta(o)?.selected??0,nA="var(--site-surface-2)",hp=(e,o)=>Ta(o)?.themes[ts(e.sectionAccent??0,o)],Uo=(e,o)=>(t,r)=>{if(!o?.(t,r))return or(e);let a=hp(t,r)?.[e];return a?{fillColor:a}:{}},Ip=(e,o)=>Hr(e,o)>=0,sA=e=>e.startsWith("#")&&Tj(e)!==null,gp=(e,o,t)=>{let r=e?.trim();if(r&&sA(r))return{fillColor:r};let a=bx(r);if(a)return or(a);let n=r===nA?hp(o,t):void 0;return n?{fillColor:zw(n)}:{}},yp=e=>{let o=e?.trim();return!o||o==="transparent"||o===Gt||bx(o)||o===nA||sA(o)?void 0:"it paints a colour that no Box Fill can hold"},Hr=(e,o)=>{let t=Ta(o)?.themes;return t&&aA(e)?Uw(t,ts(e.sectionAccent,o)):-1},Wr=(e,o,t)=>{let r=Hr(o,t);return r>=0?r:e},rs=(e,o)=>{let t=Ta(o)?.themes,r=t?jw(t,ts(e,o)):-1;return r>=0?r:e},Ba=(e,o)=>{let t=Hr(e,o);return t>=0?{sectionAccent:t}:{}},$r=(e,o)=>aA(e.props)&&Hr(e.props,o)<0?[{kind:"band-preset",page:ts(e.props.sectionAccent,o)}]:[],as=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=Sn(o),d=(m,u,h)=>{let I=yr(u),S=Rw(m,I,"spacing",h);return S===null?null:Yt(S,I,"px",i)},f=o==="desktop"?d(a,n,xC)??TC(a):d(s,l,IC)??EC(s)??FC(a,n);return Yt(Math.min(r,f),"px",t,i)},ii=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),di=e=>({top:0,right:0,bottom:0,left:0,...e}),mI=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...R,...ii,...Uo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],Ge.kind,Ge.duration,Ge.delay],parts:r});import{phoneKey as OI,readHidable as EI}from"efficient-easel/draw";import{isNodeList as aG,newId as nG}from"efficient-easel/data";function lA(e){return Math.min(4,Math.max(2,e??3))}var cIe={eyebrow:"Label",title:"Section *heading.*"},Bj=ud.Cards,iA={label:"Cards",fields:Bj,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var mIe={eyebrow:"Highlight",title:"Key *features.*"},xIe=()=>[{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")}],dA={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as Rj}from"efficient-shell/format";var xI="cardPlace",Lj=["","top-line"];function yIe(e){return Rj(Lj,"",e[xI])}var SIe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",bIe="data-sf-top-line",Dj=new Set(["Cards",io]);function wIe(e){return typeof e=="string"&&Dj.has(e)}var Nj=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 CIe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Nj(e)?{...e,top:0}:e}var kIe="outsideFramedCard";var Sp={sectionBorder:{top:0,right:1,bottom:1,left:0},...or("background")},Mj={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Ra=e=>({direction:"row",columns:e,columnsTablet:e,...Mj}),fA=(e={})=>Fe(qc,{...U,tag:"p",[xI]:"top-line"},e,!0),ns=(e=ta)=>{let o=fn(e);return{...o,props:{...Sp,...o.props},slots:{[Ce]:[...o.slots?.[Ce]??[],fA()]}}},hI=(e=!1)=>{let o=cn(e);return{...o,props:{...Sp,...o.props}}},Hj={name:"name",time:"time",note:"note",price:"price"},Wj={textStyle:"body-1",...H("body",16),weight:500,lineHeight:1.5},$j={...No,...H("label",12),letterSpacing:.18,lineHeight:1.5},zj={textStyle:"body-1",...H("body",14),lineHeight:1.6},Uj={textStyle:"body-1",fontRole:"heading",...H("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},jj={...H("label",11),letterSpacing:.25},Gj={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},bp=e=>({direction:"row",columns:e,...Gj}),II=[...new Set([...Object.keys(Ra(1)),...Object.keys(bp(1))])],gI=()=>{let e=Hj,o={tag:"p",widthFit:"fill"};return{type:K,props:{...R,name:"Card",justify:"between",gap:16,gapPhone:16,...Co(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...or("surface"),shadow:!0},slots:{[Ce]:[fA(jj),{type:K,props:{...R,name:"Words",gap:8,gapPhone:8},slots:{[Ce]:[Fe(e.name,{...U,...o},Wj),Fe(e.time,{...oe,...o},$j),Fe(e.note,{...oe,...o},zj)]}},Fe(e.price,{...U,...o},Uj)]}}};import{tabletKey as mA}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as wp}from"efficient-easel/draw";var Cp=er,yI=wp,cA=960,pA=er,uA={min:Cp,max:1600,step:10},kp="stackBelow";function LIe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<uA.min||e>uA.max))return Math.round(e)}var Kj=e=>`sf-stack-${e}`,qj=e=>`sf-stack-${e}-gutter`,Vj=e=>`sf-stack-${e}-outer`,ss=e=>`${e-.02}px`;function DIe(e,o={}){let t=o.gutter!==!1,r=`.${Kj(e)}`,a=`.${qj(e)}`,n=`.${Vj(e)}`,s=[];if(e>Cp){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,wp);s.push(`@media (min-width:${Cp}px) and (max-width:${ss(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:${Cp}px) and (max-width:${ss(i)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>wp&&s.push(`@media (min-width:${wp}px) and (max-width:${ss(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${ss(e)}){${a}${a}{padding-inline:${yC.frame}}}`),t&&e<cA&&s.push(`@media (min-width:${e}px) and (max-width:${ss(cA)}){${a}${a}{padding-inline:${gC}}}`),e>pA&&s.push(`@media (min-width:${pA}px) and (max-width:${ss(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 Yj}from"efficient-shell/format";var Xj=["standard","editorial","simple","essay"];function La(e){if(e==="ProductGrid")return"shelf";let o=z(kt,e)?.headStyle;return Yj(Xj,"standard",o)}var fi={standard:64,editorial:60,simple:36,essay:28,shelf:20},Jj={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function Zj(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=z(kt,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 Pp(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=vp.get(r);if(a)return a;let n=gA({num:e,title:o,description:t,link:!1});return vp.set(r,n),n}var jo={[kp]:yI},bI={top:0,right:0,bottom:1,left:0},Go=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Tp=(e,o,t={})=>pe(e,{...H("label",o),...t}),Op=(e,o)=>({kind:"text",key:e,role:"heading",props:U,style:{textStyle:"heading-2",...o}}),wI=er,Qj=yI,CI=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...oe,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:wI}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...H("body",o),...r,...a}}),IA={...fo,align:"right",alignPhone:"left",...Fa},SI=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:IA,style:{...Ct(e),color:"labels"}}),xA=(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"?eG(tr()):{},...t.style}}}}},eG=e=>e._partStyles.text??{},ls={widthFitPhone:"fill"};function kI(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),...ls}):{...o,...ls}}}return{...e,parts:e.parts.map(kI)}}function oG(e,o){let t=z(Jj,e),r=t==="accent",a=Tp(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=Op(o.title,r?{...Go("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...H("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),l=e==="Collections";return{kind:"group",name:"Header",props:{...R,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:bI,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...R,...ls,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...R,...ls,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[xA(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...R,...ls},parts:[s,...l?[xA(o.title,`Three ranges,
320
+ one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...R,...ls,gap:12,maxWidth:340,maxWidthPhone:wI},parts:[...o.description?[CI(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[SI(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...IA,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:SI(14).style}}}]:[]]}]}}function Ep(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>Ep(t,o))}:e}function gA(e){let o=Op(e.title,{...Go("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...R,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:bI,sectionPaddingBottom:32,...jo},parts:[{kind:"group",name:"Title",props:{...R,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...jo},parts:[{kind:"group",name:"Number",props:{...R,sectionPaddingBottom:8},parts:[{...Tp(e.num,13),props:{...U,..._a}}]},Ep(o,[e.title])]},{kind:"group",name:"Words",props:{...R,sectionPaddingBottom:4,maxWidth:360,[mA("maxWidth")]:Qj,maxWidthPhone:wI},parts:e.description?[CI(e.description,14,void 0,{lineHeight:1.5},{[mA("align")]:"left"})]:[]}]}}function hA(e,o){return{kind:"group",name:"Header",props:{...R,gap:16,gapPhone:16},parts:[Tp(e.num,13),Op(e.title,o)]}}var yA=[["para",{...Ct(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...H("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...H("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...H("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...H("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],tG=e=>yA.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function rG(e){return{kind:"group",name:"Header",props:{...R,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:bI,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...R,direction:"row",align:"end",gap:24,share:"content"},parts:[Tp(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...yA.map(([o,t])=>({...Op(e.title,t),when:r=>tG(r)===o}))]},{kind:"group",name:"Words",props:{...R,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[CI(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[SI(13)]:[]]}]}}function _p(e){return La(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}var vp=new Map,vI={...H("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function ut(e){let o=vp.get(e);if(o)return o;let t=Zj(e),r=La(e),a=r==="editorial"?gA(t):r==="simple"?hA(t,vI):r==="essay"?hA(t,{...H("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?rG(t):oG(e,t);return vp.set(e,a),a}var Da={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Gt,Stats:void 0};var ci=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),OA=e=>o=>lA(ye(o.columns)??ye(e.columns)),sG="inline is the head the row draws; an own-box node is skipped (`skip`)",lG={kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-3",...vI}},Fp=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Series);return o&&o!=="transparent"?o:void 0},Ap=e=>Fp(e)===Gt,iG={...R,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},SA={...R,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[OI("share")]:"content"},dG=e=>{let o=Fp(e)?1:2;return{...R,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},PI={...Ct(12),letterSpacing:.22,lineHeight:1.5},bA=e=>Ne(e.viewLabel)&&!EI(e.viewLabel).hidden,mt=e=>EI(e).text?.trim?.()??"",Bp=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>ho(o)!==void 0)),_I=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),fG=_I([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),cG=_I([["label","Label"],["value","Value"],["body","Card body",!0]]),pi=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:io,headless:!0,keep:s,derive:{reads:n,props:l=>Nd(r(l),t)},slots:(l,i)=>({[Pe]:[a(l,i)]})}]}),EA=e=>Array.isArray(e.cards)?e.cards:[],_A=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Bp({title:mt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Vs(ex(o),t),...o})),pG=e=>_A(e).some(o=>ho(o.href)!==void 0),AA=[{key:Vm.label,label:"Feature label"},{key:Vm.href,label:"Link",kind:"link"}],wA=e=>MO(e.eyebrowLook,"KeyFeatures")==="filled",uG={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...Uo("surface")(e,o),...ci(1,0,1,0),...re(e,Sc)}),box:[...Z,...ce(Sc)],parts:[{kind:"group",name:"Heading",props:{...R,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[OI("share")]:"content"},parts:[{...os("eyebrow"),when:wA},{...pe("eyebrow"),when:e=>!wA(e)},lG]},pi("Cards",e=>({...R,...Ra(OA(dA.defaultProps)(e))}),AA,_A,e=>hI(pG(e)),{reads:["items"]})],drop:{...X,...te,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},CA=(e,o)=>({...Sp,...Uo("background")(e,o)}),kA=e=>{let o=OA(iA.defaultProps)(e);return{...R,...Ra(o)}},mG=_I([["title","Card title"],["body","Card body",!0]]),FA=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Vs(ex(o),t),title:mt(o?.title),body:mt(o?.body)})),BA=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(aG(a)?t[r]=a.map(BA):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},vA=(e,o)=>{let t=TI(e)?hI(xG(e)):ns(),r=Array.isArray(e.template)?e.template.map(BA):[t],[a]=r;return r.length===1&&a.type===K?{...a,props:{...CA(e,o),...a.props}}:{type:K,props:{...R,...CA(e,o),name:"Card"},slots:{[Ce]:r}}},TI=e=>e.cardStyle==="label-only",RA=e=>FA(e).map((o,t)=>{let r=e.items[t]?.href;return Bp({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),xG=e=>RA(e).some(o=>ho(o.href)!==void 0),PA=e=>Array.isArray(e.template)&&e.template.length===0,TA=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function LA(){let e=t=>({key:nG("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 hG={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...Uo("surface")(e,o),...re(e,fc)}),box:[...Z,...ce(fc)],parts:[{...ut("Cards"),when:e=>!fI(e)},{...pi("Cards",kA,mG,FA,vA,{reads:["items"],keep:TA}),when:e=>!PA(e)&&!TI(e)},{...pi("Cards",kA,AA,RA,vA,{reads:["items"],keep:TA}),when:e=>!PA(e)&&TI(e)}],drop:{...X,...te,columns:'Box "Cards": its Columns and tablet Columns',fillLastRow:"a Box's cells have no span: a short last row lands with its cells one column each, as the switch off draws (a cell can be widened by hand)",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)"}},IG={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...ci(0,0,1,0),...jo,...Ap(e)?Ba(e,o):{},...gp(Fp(e),e,o),...re(e,Cc)}),box:[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ap(o)?Wr(e,o,t):e],...ce(Cc)],skip:e=>yp(Fp(e)),site:(e,o)=>Ap(e.props)?$r(e,o):[],parts:[ut("Series"),pi("Cards",dG,fG,e=>EA(e).map(o=>Bp({num:mt(o.num),since:mt(o.since),title:mt(o.title),body:mt(o.desc),count:mt(o.entries),countLabel:mt(o.entriesLabel)})),(e,o)=>({type:K,props:{...iG,...Uo("background",(t,r)=>Ap(t)&&Ip(t,r))(e,o),name:"Card"},slots:{[Ce]:[{type:K,props:{...R,name:"Words",gap:16,gapPhone:16},slots:{[Ce]:[{type:K,props:{...SA,name:"Top"},slots:{[Ce]:[Fe("num",U,H("label",13),!0),Fe("since",U,H("label",13),!0)]}},Fe("title",{...U,tag:"h3"},{textStyle:"heading-3",...H("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Fe("body",oe,{textStyle:"body-5",fontRole:"heading",...H("body",14),lineHeight:1.6})]}},{type:K,props:{...SA,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...ci(1,0,0,0),...bA(e)?{}:{[an]:["count","countLabel"]}},slots:{[Ce]:[{type:K,props:{...R,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[OI("share")]:"content"},slots:{[Ce]:[Fe("count",U,PI),Fe("countLabel",oe,PI)]}},...bA(e)?[{type:K,props:{...R,name:"View",maxWidthPhone:266},slots:{[Ce]:[{type:"Text",props:{...U,text:EI(e.viewLabel).text,_partStyles:{text:{...tr()._partStyles.text,...PI}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...X,...te,headPlacement:sG}},gG={...R,direction:"row",columns:3,gap:40,gapPhone:16},yG={...R,gap:8,gapPhone:8,...Co(24),...ci(1,1,1,1)},SG={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...ci(0,0,1,0),...re(e,Ic)}),box:[...Z,...ce(Ic)],parts:[pi("Cards",gG,cG,e=>EA(e).map(o=>Bp({label:mt(o.label),value:mt(o.value),body:mt(o.desc)})),(e,o)=>({type:K,props:{...yG,...Uo("surface")(e,o),name:"Card"},slots:{[Ce]:[Fe("label",U,{...H("label",12),lineHeight:1.5},!0),{type:K,props:{...R,name:"Words",gap:14,gapPhone:14},slots:{[Ce]:[Fe("value",U,{textStyle:"heading-3",...H("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Fe("body",oe,{textStyle:"body-5",fontRole:"accent",...H("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...X,...te}},DA={Cards:hG,KeyFeatures:uG,Series:IG,DocMetaCards:SG};import{SITE_SIDE as bR}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as kG}from"efficient-easel/draw";import{newId as vG}from"efficient-easel/data";import{phoneKey as bG}from"efficient-easel/draw";import{isNode as ui}from"efficient-easel/data";var is="cardStyle";function NA(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var Rp={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[bG("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}}}},xt={table:{...Rp.table,listCard:NA(Rp.table.card)},list:{...Rp.list,listCard:NA(Rp.list.card)}},wge=[{label:"Table",value:"table"},{label:"List",value:"list"}],Cge=e=>e==="table"||e==="list",wG=e=>[...new Set([...Object.keys(xt.table[e]),...Object.keys(xt.list[e])])];function mi(e,o,t){let r={...e};for(let a of wG(o))delete r[a];return{...r,...structuredClone(xt[t][o])}}function CG(e,o,t){let r=e.props??{},a=Array.isArray(r[Pe])?r[Pe]:[],n=a.findIndex(i=>ui(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:mi(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Pe]:l}}}function kge(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>ui(s)&&s.type===io)){let s=a.map(l=>ui(l)&&l.type===io?CG(l,o,t):l);return{...mi(e,"items",o),[is]:o,[r]:s}}let n=a.map(s=>{if(!ui(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>ui(d)&&d.type===t?{...d,props:mi(d.props??{},"card",o)}:d);return{...s,props:{...mi(l,"row",o),[r]:i}}});return{...mi(e,"grid",o),[is]:o,[r]:n}}var AI=e=>typeof e=="string"?e.trim():"";function MA(e){let o=`${AI(e.prefix)}${AI(e.value)}`,t=AI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var WA={textStyle:"heading-2",...Go("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},FI={kind:"block",type:"Text",props:{...Aa,_partStyles:{text:WA}},box:[["value","text",(e,o)=>MA(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&MA(o)!==""},HA=e=>Ne(e?.supSuffix),$A={textStyle:"body-1",fontRole:"heading",...H("body",16),lineHeight:1.5,letterSpacing:-.01},zA={color:"labels",...H("label",12),lineHeight:1.5,letterSpacing:.24},UA={...R,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[kG("share")]:"content"},jA={textStyle:"body-5",...H("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},BI=e=>da(e.background,Da.StatsParagraph),xi=e=>BI(e)===Gt,Lp=e=>({...e,sectionAccent:e.sectionAccent??0}),PG=(e,o)=>xi(e)?Uo("background",(t,r)=>Ip(Lp(t),r))(e,o):{},TG={name:"Stats with Text",skip:e=>BI(e)&&BI(e)!=="transparent"&&!xi(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},...jo,...pt(e,"StatsParagraph"),...xi(e)?Ba(Lp(e),o):{}}),box:[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>xi(o)?Wr(e,Lp(o),t):e],...Mr("StatsParagraph")],site:(e,o)=>xi(e.props)?$r({props:Lp(e.props)},o):[],parts:[ut("StatsParagraph"),{kind:"group",name:"Stats",props:{...R,...xt.table.grid,[is]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...R,direction:"row",share:"equal",phoneRow:2,...xt.table.row},props:(e,o)=>({...R,...xt.table.card,...PG(e,o)}),parts:[{...FI,when:(e,o)=>!HA(o)&&FI.when(e,o)},{kind:"group",name:"Figure",props:UA,when:(e,o)=>HA(o),parts:[FI,{kind:"text",key:"supSuffix",props:U,style:jA}]},{kind:"group",name:"Words",props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:U,style:$A},pe("sub",zA)]}]}]}],drop:{...X,...te,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},OG=new Set(["value","label",Xo]),EG=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Stats);return!!o&&o!=="transparent"},_G={name:"Stats",skip:e=>EG(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Ne(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Ne(o?.[Xo]))?"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=>!OG.has(t)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(o=>o!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...Y,direction:"column",gap:24,gapPhone:24,...re(e,kc)}),box:[...Z,...ce(kc)],parts:[pe("heading",{color:"labels",...H("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...R,...xt.list.grid,[is]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>ye(e.columns)??4,rowName:"Stats row",rowProps:{...R,direction:"row",share:"equal",phoneRow:2,...xt.list.row},props:{...R,...xt.list.card},parts:[{kind:"text",key:"value",props:Aa,style:{textStyle:"heading-2",...H("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},pe("label",{color:"labels",...H("label",12),letterSpacing:.2})]}]}],drop:{...X,...te,columns:"the rows of N: one row Box per `columns` figures, which the Box draws",dataSource:"an empty source is typed figures, what the row draws; a sourced node is skipped (0 Hartes nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 Hartes nodes)",contained:"the Box draws the site frame now; each figure fills the Box's column",background:"only no fill reaches here: a node that paints a colour is skipped"}},GA={StatsParagraph:TG,Stats:_G};function KA(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var AG=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function qA(){let e=(o,t,r,a="")=>({key:vG("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 FG(e){return{type:K,props:{...R,name:"Card",...structuredClone(xt[e].listCard)},slots:{[Ce]:[{type:K,props:{...UA,name:"Figure"},slots:{[Ce]:[Fe("figure",Aa,WA),Fe("superscript",U,jA)]}},{type:K,props:{...R,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Fe("label",{...U,widthFit:"fill"},$A),Fe("body",{...U,widthFit:"fill"},zA,!0)]}}]}}}function RI(e,o,t=4){return{type:K,props:{...R,name:"Stats",direction:"row",columns:t,...structuredClone(xt[o].items),[is]:o},slots:{[Ce]:[{type:io,props:Nd(e,AG),slots:{[Pe]:[FG(o)]}}]}}}var VA={heading:"Ways to pay"},YA=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],XA=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],Uge={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as BG}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as ZA}from"efficient-shell/format";var Dp="Flex",RG={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},LG={FooterPayment:"PaymentLogosBlock"},DG=e=>{let{id:o,...t}=e;return t},JA=e=>typeof e=="string"?e:"",ds={sm:12,md:13,lg:15},QA={sm:{mark:16,words:ds.sm},md:{mark:20,words:ds.md}},NG="md",eF=1.5,MG={size:13,lineHeight:eF,width:280},HG=14,WG=40,$G=e=>ZA(["left","center","right"],"left",e);function zG(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=ye(e[r]);n&&(o[a]=n)}return o}function UG(e,o,t){let r=t(e,DG(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:oF(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=_d(e,r.props);return a===r.props?r:{...r,props:a}}function oF(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Nt(r))a[n]=oF(a[n],o,t);return{...r,props:a}})}function tF(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=z(RG,e.type)??z(LG,e.type);if(n)return[UG(n,r,o)];switch(e.type){case"FooterLogo":{let s=$G(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(rP*((ye(r.widthPct)??100)/100)),href:"/",align:s,...zG(r)}),i=JA(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...MG}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&Qe(ds,r.size)?r.size:NG;return[o("Text",{text:JA(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:ds[s],lineHeight:eF}}})]}case"FooterDivider":{let s=ye(r.thickness),l=ye(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...l!==void 0?{lengthPct:l}:{},...r.hideOnMobile===!0?{[BG("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Dp,{direction:r.direction==="horizontal"?"row":"column",gap:aP("FooterGroup",r.gap),align:ZA(["start","center","end","stretch"],"start",r.align),...Um,content:s.flatMap(l=>tF(l,o,t))})]}default:return[]}}function hi(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Dp,{direction:"row",wrap:!0,share:"equal",gap:WG,content:f}),s=[],l=[];for(let f of a){let m=tF(f,o,r);if(f.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...m);continue}m.length<=1?l.push(...m):l.push(o(Dp,{direction:"column",gap:HG,align:"stretch",...Um,content:m}))}(l.length||!s.length)&&s.push(n(l));let i=o(Dp,{direction:"column",content:[o("LegalLineBlock")]}),d=fP(ao,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as LI,readHidable as jG}from"efficient-easel/draw";import{parseOption as GG}from"efficient-shell/format";var DI={contained:!1},NI=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Ne(r?.src)||Ne(r?.[o])}]}]}),KG={...pe("heading",{color:"labels",letterSpacing:.2}),props:{...U,align:"center"}},qG={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...re(e,_l(e))}),box:[...Z,...ce(_l),["bandPadding","sectionPaddingTop",(e,o)=>re(o,_l(o)).sectionPaddingTop]],parts:[KG,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:DI,slots:NI("items","alt")}],drop:{...X,...te,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},VG={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:sw(4,"main",{sectionCorners:2})},YG={name:"Payment Methods",boxProps:e=>({...Y,direction:"column",...re(e,uc)}),box:[...Z,...ce(uc)],parts:[{kind:"group",name:"Methods",props:{...R,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...pe("heading",{color:"labels"}),props:{...U,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[lo,Qt],props:e=>Ne(e[lo])?{[lo]:e[lo],...e[Qt]!==void 0?{[Qt]:e[Qt]}:{}}:{}},props:{...DI,look:"cards",grayscale:!1},slots:e=>({...NI("badges","label"),...Ne(e[lo])?{[Pe]:[Xm()]}:{}})},{kind:"group",name:"Reassurance",props:{...R,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[LI("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Ne(o?.text)),props:{...R,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[LI("share")]:"content"},item:e=>jG(e.text).hidden?{props:{_hidden:!0}}:{},parts:[VG,{kind:"text",key:"text",props:{...U,align:"center"},style:{...H("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...X,...te,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},rF=e=>Qb(e.align)??"left",aF=e=>GG(["sm","md"],"sm",e.size),nF=12,sF={name:"Payment logos",boxProps:e=>({...R,direction:"row",wrap:!0,align:"center",justify:Cd[rF(e)],gap:nF,gapPhone:nF,phoneRow:2,[LI("share")]:"content"}),box:[...wr],parts:[{kind:"text",key:"lead",props:oe,styleFrom:e=>({size:ds[aF(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[lo,Qt],props:e=>({logoHeight:QA[aF(e)].mark,align:rF(e),...Ne(e[lo])?{[lo]:e[lo],...e[Qt]!==void 0?{[Qt]:e[Qt]}:{}}:{}})},props:{...DI,look:"marks",grayscale:!1,sectionAccent:Sr},slots:e=>({...NI("methods","label"),...Ne(e[lo])?{[Pe]:[Xm()]}:{}})}],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"}},lF={Logos:qG,PaymentBadges:YG,FooterPayment:sF,PaymentLogosBlock:sF},iF=()=>({heading:GE.heading,items:Vc()}),dF=()=>({heading:VA.heading,badges:YA(),assurances:XA()}),fF=()=>({...Sf,methods:[]});import{mixHex as e8}from"efficient-shell/format";import{MOTION_EASING as XG,MOTION_TIMING as cF,motionSeconds as pF,parseOption as uF}from"efficient-shell/format";var MI="none",Np=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function Sye(e){return uF(Np,MI,e)}var fs="_gLoop",Ii={field:"loop",is:"scroll"},gi="left",HI=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],JG={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function mF(e){return uF(HI,gi,e)}function xF(e){return e==="up"||e==="down"}function Mp(e){return pF("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var bye=cF.loop.duration.default,ZG=cF.loop.delay.default;function hF(e){return pF("loop","delay",e.loopDelay)}function wye(e,o,t=ZG){return`${JG[e]} ${o}s ${XG.loop}${t?` ${t}s`:""} infinite`}var Hp="_gEntrance";var Pye="none",Tye=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function Wp(e){return e==="above"||e==="below"?e:null}var IF="sf-ticker-join";function QG(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function gF(e){return`absolute inset-x-0 ${QG(e)}`}var yF=e=>e.size==="display",o8=(e,o)=>{let t=hp(e,o),r=e.tone!=="plain"&&t?.text&&t.background?e8(t.text,t.background,.3):null;return r?{color:r}:{}},t8=(e,o)=>e.tone!=="plain"&&lx(e.sectionAccent)===null?Uo("background")(e,o):{},SF=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:oe,style:e,styleFrom:o8}]}),r8={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...ma,...lc,...tw[zm(e.separator)]===""?cO:{},...re(e,xa),...t8(e,o)}),box:[["scrollDirection","scrollDirection",e=>mF(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=>zm(e)],["join","join",e=>Wp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...Z,["tone","sectionAccent",(e,o)=>lx(o.sectionAccent)??Sr],...ce(xa)],parts:[SF(ic,e=>!yF(e)),SF(pO,yF)],drop:{...X,...te,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},bF=e=>e?.tone==="muted",wF=e=>Md(Ta(e)),a8={name:"Spec Strip",boxProps:(e,o)=>({...Y,...ma,...vl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:wF(o)},...re(e,ha)}),box:[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:wF(t)],...ce(ha)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:U,style:Pl,when:(e,o)=>!bF(o)},{kind:"text",key:"text",props:oe,style:Pl,when:(e,o)=>bF(o)}]}],drop:{...X,...te,...xp,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"}},CF={Ticker:r8,SpecStrip:a8};import{tabletKey as kF}from"efficient-easel/screen/lib/content/view-tiers";var vF={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[kF("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[kF("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},WI={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as n8}from"efficient-easel/draw";var $p={eyebrow:Te.eyebrow,title:`Section heading
321
+ *Highlight line*`,intro:Te.body,imageCaption:Te.imageCaption,imageMeta:Te.imageMeta,cta:Ue.text},PF=()=>[{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.")}],Uye={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var zp={eyebrow:Te.eyebrow,title:Te.headingAccent,intro:Te.body,cta:Ue.text},TF=()=>[{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year"),title:c("Milestone"),blurb:c("A short line about this milestone."),future:!1},{date:c("Year \u2192"),title:c("Upcoming"),blurb:c("A milestone still to come."),future:!0}],Vye={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Jv,padTop:120,padBottom:120}};var BF={buttonBorder:{width:0}},Gp=(e,o,t={})=>({textStyle:"body-5",...H("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),cs=(e,o,t={})=>({...Gp(e,o),...No,...t}),Kp=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),yi=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),ht=(e,o,t={})=>({kind:"text",key:e,props:U,style:o,...t}),OF=(e,o)=>o?.future===!0,Up=e=>cE(typeof e?.body=="string"?e.body:""),GI=e=>da(typeof e.background=="string"?e.background:void 0,Da.TimelineTrack),$I=e=>GI(e)===Gt?e:{...e,background:"transparent"},s8={name:"Milestone Timeline",skip:e=>yp(GI(e)),boxProps:(e,o)=>{let t=Hr($I(e),o);return{...Y,direction:"column",gap:60,[n8("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...jo,...pt(e,"TimelineTrack"),...gp(GI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Wr(e,$I(o),t)],...Mr("TimelineTrack")],parts:[kI(Ep(Pp("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...R,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...R,direction:"row",share:"equal",gap:0,line:!0,...jo},parts:[{kind:"list",key:"entries",name:"Year",props:{...R,...vF},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:WI.name,props:{...R,...WI},parts:[ht("date",Gp(13,.22,{color:"accent"}),{when:(e,o)=>!OF(e,o)}),ht("date",Gp(13,.22,{color:"labels"}),{when:OF}),ht("title",{textStyle:"heading-3",...Kp(H("headingSmall",20),-.02,1.1)},{role:"heading"})]},ht("blurb",yi(H("body",13),1.55),{props:oe,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...R,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...fo,align:"right",...BF},style:cs(13,.3)}]}]}],site:(e,o)=>$r({props:$I(e.props)},o),drop:{...X,...te,background:"another colour is the Box's Fill, or a skip if no Fill holds it; the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},qI=e=>typeof e.layout=="string"?e.layout:"split",jp=e=>qI(e)==="split",KI=e=>!jp(e),RF=e=>qI(e)==="spine",l8=e=>KI(e)&&!RF(e),EF=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...R,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...Co(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...R,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[ht("imageCaption",cs(11,.24,{color:"text"})),ht("imageMeta",cs(11,.24,{color:"accent"}),{props:{...U,align:"right"}})]}]}),_F=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...fo,...e,...BF},style:cs(13,.3)}),zI=()=>[ht("title",{textStyle:"heading-3",...Kp(H("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...U,_partStyles:{text:yi(H("body",17,16),1.6)}},box:[["body","text",(e,o)=>Us(Up(o)[0]??"")]],when:(e,o)=>Up(o).length>0},{kind:"block",type:"Text",props:{...oe,_partStyles:{text:yi(H("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Us(Up(o).slice(1).join(`
322
+
323
+ `))]],when:(e,o)=>Up(o).length>1}],UI=()=>ht("date",Gp(13,.24,{color:"accent"})),jI=(e,o,t={})=>ht(e,o,{...t,props:{...U,...t.props??{},align:"center"}}),AF=Go("headingMedium",40,5,76),FF={sectionBorder:{bottom:1}},i8={name:"Story Timeline",skip:e=>qI(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>jp(e)?{...Y,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...FF,...pt(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...FF,...pt(e,"Timeline")},box:[...Z,...Mr("Timeline")],parts:[{kind:"group",name:"Heading",props:{...R,gap:24,gapPhone:24},when:jp,parts:[ht("eyebrow",cs(12,.3,{color:"accent"}),{role:"eyebrow"}),ht("title",{textStyle:"heading-2",...Kp(AF,-.03,.94)},{role:"heading",mark:"accentItalic"}),ht("intro",yi(H("body",14),1.6),{props:{...oe,maxWidth:360},mark:"accentItalic"}),EF(667,419,{},()=>!0),_F()]},{kind:"group",name:"Chapters",props:{...R,gap:48,gapPhone:48,line:!1},when:jp,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...R,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[UI(),{kind:"group",name:"Words",props:{...R,gap:14,gapPhone:14},parts:zI()}]}]},{kind:"group",name:"Heading",props:{...R,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:KI,parts:[jI("eyebrow",cs(12,.3,{color:"accent"}),{role:"eyebrow"}),jI("title",{textStyle:"heading-2",...Kp(AF,-.03,.94)},{role:"heading",mark:"accentItalic"}),jI("intro",yi(H("body",14),1.6),{props:{...oe,maxWidth:520},mark:"accentItalic"}),_F({align:"center"})]},EF(506,192,{maxWidth:900,widthFit:"fill"},KI),{kind:"group",name:"Chapters",props:{...R,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:RF,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...R,gap:8,gapPhone:8},parts:[UI(),{kind:"group",name:"Words",props:{...R,gap:14,gapPhone:14},parts:zI()}]}]},{kind:"group",name:"Chapters",props:{...R,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:l8,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...R,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...R,gap:8,gapPhone:8},parts:[UI(),{kind:"group",name:"Words",props:{...R,gap:14,gapPhone:14},parts:zI()}]},{kind:"group",name:"Spacer",props:{...R},keepEmpty:!0,parts:[]}]}]}],drop:{...X,...te,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},LF=()=>({eyebrow:$p.eyebrow,title:vt($p.title),intro:$p.intro,ctaText:Ue.text,ctaHref:Ue.href,entries:PF()}),DF=()=>({eyebrow:zp.eyebrow,title:vt(zp.title),intro:zp.intro,ctaText:Ue.text,ctaHref:Ue.href,entries:TF()}),NF={TimelineTrack:s8,Timeline:i8};import{tabletKey as d8}from"efficient-easel/draw";function MF(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var It=e=>typeof e=="string"?e:e==null?"":String(e),VI=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],ps=e=>It(e.group),qF=e=>`loc-${e}`,VF=e=>It(e.state).trim()||Ox(It(e.region)).state,YF=e=>It(e.country).trim()||Ox(It(e.region)).country,HF=e=>[VF(e),YF(e)].filter(Boolean).join(" \xB7 "),f8=e=>VI(e).some(o=>It(o.photo).trim()!==""),c8=e=>VI(e).some(o=>Sw(Number(o.lat),Number(o.lng))),p8=(e,o)=>VI(e).filter(t=>ps(t)===ps(o)).length,u8=(e,o)=>p8(e,o)===1?"wide":yP(e.imageShape),WF=48,Tt=(e,o={})=>({...Ct(e),...o}),YI={top:1,right:1,bottom:1,left:1},XI={...R,direction:"row",share:"equal",gap:0},m8=e=>o=>o>Od(o)?{...R,gap:0}:{...XI,...o>1?{phoneRow:e}:{}},JI=!0,x8={kind:"group",name:"Gallery",props:{...R,gap:20,...JI?{_hidden:!0}:{}},when:f8,parts:[{kind:"group",name:"Gallery head",props:{...R,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[pe("galleryKicker",Tt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...oe,align:"right",alignPhone:"left"},style:Tt(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...R,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...R,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:YI,...Co(12,12)},item:(e,o,t)=>({props:{...It(e.photo).trim()?{bgImage:It(e.photo),hover:"mono"}:{},link:`#${qF(o)}`,boxShape:u8(t,e)}}),parts:[{kind:"text",key:"name",props:U,style:Tt(11,{letterSpacing:.22,color:"text"})}],groups:{of:ps,name:"Group",props:{...R,gap:10},head:e=>({label:ps(e[0]??{})}),parts:[pe("label",Tt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:m8(2),perRow:Od,rowName:"Row",rowProps:{...XI,phoneRow:2}}}]}]},h8={kind:"group",name:"Words",props:{...R,gap:12,gapPhone:12,...Co(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...R,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:{...R,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:U,style:{textStyle:"heading-3",...H("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...U,_partStyles:{text:Tt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>HF(t)]),when:(e,o)=>HF(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...R,sectionBorder:YI,...Co(6,10)},parts:[{kind:"text",key:"timezone",props:{...oe,textFit:"line"},style:Tt(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:oe,style:{textStyle:"body-5",fontRole:"heading",...H("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...fo,...Fa,variant:"ghost",arrow:!1,_partStyles:{label:Tt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>MF(It(e))??"#"]],when:(e,o)=>It(o?.phone).trim()!==""},{kind:"text",key:"hours",props:oe,style:Tt(12,{letterSpacing:.18,lineHeight:1.7})}]},I8={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)=>VF(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>YF(t)])]},g8={kind:"group",name:"Map",props:{...R,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[I8]},y8={kind:"list",key:"locations",name:"City",props:(e,o)=>({...R,gap:0,justify:"between",sectionBorder:YI,jumpHighlight:!0,sectionAccent:Hr(e,o)>=0?ts(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:qF(o)}}),parts:[h8,g8],groups:{of:ps,name:"Group",props:{...R,gap:20},head:e=>{let o=e[0]??{};return{key:ps(o),groupName:It(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...R,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>It(o?.key).trim()!=="",parts:[pe("key",Tt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:U,style:{textStyle:"heading-3",...H("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:oe,style:Tt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...XI,columns:Od(e),[d8("columns")]:1})}},$F=Tt(10,{letterSpacing:.25}),S8={kind:"block",type:qt,props:{...R,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:c8,slot:Vt,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...oe,text:"Location coordinates \xA9",_partStyles:{text:$F}}},{kind:"block",type:"ButtonBlock",props:{...fo,...Fa,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...$F,color:"labels"}}}}]},zF=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),UF=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],jF=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],GF=e=>e.map(o=>[o,o,(t,r)=>re(r,$n)[o]]),KF=["sectionAccent","sectionAccent",Wr],b8=[...wr,...En,...Object.values(Fo)],w8={name:"City pictures",skip:e=>Le(e)?`fed by the data source "${Le(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:40,anchor:"studios",...jo,...zF(re(e,$n),UF),sectionPaddingBottom:WF,sectionPaddingBottomPhone:WF,...Ba(e,o)}),box:[...Z.filter(e=>e!=="sectionAccent"&&e!=="anchor"),KF,["anchor","anchor",e=>eP(e).trim()?e:"studios"],...GF(UF)],parts:[Pp("sectionNumber","heading","tagline"),x8],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...jo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...zF(re(e,$n),jF),...Ba(e,o)}),box:[...b8,KF,...GF(jF)],parts:[y8,S8]}],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,...te,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},XF={ContactLocations:w8};import{SITE_SIDE as JF,sideLengthAt as C8}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as ZI}from"efficient-easel/draw";var k8=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var zr=(e,o)=>()=>({top:e,topPhone:o}),ZF=e=>o=>{let t=zn(e),r={...o,[Cr.top]:rf(o,t).top},a=i=>{let d=C8(r,Cr,tf,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>ye(o[ZI(Cr.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}:{}}},v8={Collections:zr(120,70),Events:zr(120,70),FAQ:zr(cc.top,cc.topPhone),GalleryB:zr(120,70),FitmentTable:zr(120,80),SpecTable:zr(120,80),LongRead:zr(pc.top,pc.topPhone),RelatedProducts:zr(0,0),Footprint:ZF("Footprint"),ProcessSteps:ZF("ProcessSteps"),ProductGrid:e=>({top:ye(e.padTop)??120,topPhone:0})};function P8(e,o={}){let t=z(kt,e),r=z(v8,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=ut(e),s=_p(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 m=r(d),u=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(d,f):o.boxProps??{},I=La(e)==="editorial"?jo:{};return{...Y,direction:"column",gap:fi[La(e)],sectionPaddingTop:m.top,...m.topTablet!==void 0?{sectionPaddingTopTablet:m.topTablet}:{},...m.topPhone!==void 0?{sectionPaddingTopPhone:m.topPhone}:{},...I,...u,...h}},box:[...Z,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&SO.has(e)?{[ZI(a,"tablet")]:0,[ZI(a,"mobile")]:0}:{},f={...a?{[a]:0}:{},...d,...o.coreProps},m={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:[m]}:m]})(),...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 T8={...R,direction:"accordion",rowStyle:"numbered"},O8={sectionPaddingLeft:JF,sectionPaddingRight:JF},E8={Footprint:{slots:{[Pe]:[bw()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[$s]:T1().map(t=>({...t,props:{...t.props,...O8}}))}:{},boxProps:{gapPhone:fi.editorial}},FAQ:{slots:{[Pe]:[yw()]},pressHeading:!0,coreBox:{name:"Questions",props:T8},coreProps:{sectionAccent:Sr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[aO]:Cl},skip:e=>{let o=e._partStyles??{},t=gw().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}}},QF=Object.fromEntries(k8.map(e=>[e,P8(e,z(E8,e))]));import{BLOCK_WIDTH_LIMIT as _8}from"efficient-easel/draw";var qp={eyebrow:Te.eyebrow,title:Te.headingAccent,deck:"Add a sentence or two introducing this document."},KSe={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var aB={minWidth:_8.min},eB=(e,o,t)=>({...pe(e,{...o,...si}),props:{...U,align:"right",..._a,...t}}),nB={top:1,bottom:0},eg=(e,o,t,r)=>({kind:"group",name:e,props:{...R,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),oB={widthFit:"fill",...aB},A8={...H("label",13),letterSpacing:.22,lineHeight:1.8},tB={textStyle:"heading-1",...Go("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},F8=()=>({name:"Page Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,hc)}),box:[...Z,...ce(hc)],parts:[{kind:"group",name:"Header",props:{...R,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[eg("Eyebrow",12,0,{...pe("eyebrow",H("label",13)),props:{...U,..._a}}),{kind:"text",key:"title",role:"heading",props:{...U,tag:"h1",...oB},style:tB,mark:"accentItalic",when:e=>!Yh(e)},{kind:"text",key:"title",role:"heading",props:{...U,tag:"h2",...oB},style:tB,mark:"accentItalic",when:Yh},{kind:"group",name:"Details",props:{...R,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[li("label","value",A8,_a)]}]}]},{kind:"group",name:"Deck",props:{...R,maxWidth:760,sectionBorder:nB,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:oe,style:{textStyle:"body-1",fontRole:"accent",...H("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...X,...te,[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"}}),sB=()=>({eyebrow:qp.eyebrow,title:vt(qp.title),deck:qp.deck,meta:[{label:Te.label,value:Te.value},{label:Te.label,value:Te.value}]}),B8={...H("label",13),letterSpacing:.18,lineHeight:1.8},rB={...H("label",13),letterSpacing:.22,lineHeight:1.9},R8=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,Ol)}),box:[...Z,...ce(Ol)],parts:[{kind:"group",name:"Top",props:{...R,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[eg("Eyebrow",14,14,pe("eyebrow",H("label",14))),{kind:"group",name:"Issue",props:{...R,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[li("lead","rest",B8)]}]}]},{kind:"group",name:"Bottom",props:{...R,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:nB,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...U,maxWidth:720,...aB},style:{textStyle:"body-1",fontRole:"heading3",...H("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...R,align:"stretch",gap:0},parts:[eg("Heading",6,6,{kind:"text",key:"issueHeading",props:{...U,align:"right",..._a},style:{textStyle:"body-1",fontRole:"heading",...H("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...si}}),{kind:"group",name:"Lines",props:{...R,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[eB("text",{color:"labels",...rB})]}]},eB("issueTotal",rB)]}]}],drop:{...X,...te}}),QI={color:"labels",...H("label",13),letterSpacing:.2},lB=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),og=(e,o)=>o!==void 0&&lB(e).at(-1)===o,iB=(e,o)=>o!==void 0&&lB(e).includes(o),L8=(e,o)=>iB(e,o)&&!og(e,o)&&Ne(o?.href),D8=()=>({name:"Breadcrumb",skip:e=>Ne(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},...re(e,kl)}),box:[...Z,...ce(kl)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:L8,props:{...fo,...Fa,icon:"none"},style:QI},{...pe("label",QI),when:(e,o)=>iB(e,o)&&!og(e,o)&&!Ne(o?.href)},{...pe("label",{...QI,color:"text"}),when:og}]}],drop:{...X,...te,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing",...xp}}),dB={DocMasthead:F8(),Masthead:R8(),Breadcrumb:D8()};import{BLOCK_WIDTH_LIMIT as M8,hiddenKeyOf as H8}from"efficient-easel/draw";import{readHidable as tg}from"efficient-easel/draw";function N8(e,o,t){return e||(t?.isEditing?c(o):void 0)}function lbe(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function fB(e,o,t){let r=tg(e);if(!r.hidden)return N8(r.text,o,t)}function cB(e){if(e==null)return;let o=tg(e);return o.hidden?"":o.text}function ibe(e,o,t){return tg(e).hidden?"":fB(e,o,t)}function dbe(e,o,t){return{text:fB(e,Ue.text,t),href:o||Ue.href}}var xB="MenuBlock",rg=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Ne(o.label)),pB=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(cB(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},uB={top:0,bottom:0,topPhone:0,bottomPhone:0},W8={...No,color:"labels",...H("label",12),letterSpacing:.24},$8={kind:"group",name:"Note",props:{...R,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[H8("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>pB(e)!=="",props:e=>({...U,textFit:"line",text:pB(e),[kv]:{text:W8}})}]},hB=()=>({tabs:[],metaLabel:Te.label,metaValue:Te.value}),mB="the note Text inside the Box (the label, then the value in the accent); no words, no Text",IB={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:M8.min},gB=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[kn]:0,[rl]:!0,sectionBorder:{bottom:1},...re(o,uB)}),box:[...Z,...ce(uB)]}),z8=()=>gB({name:"Tab Bar",skip:e=>rg(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:mB,metaValue:mB},parts:[{kind:"block",type:xB,props:IB},$8],drop:{...X,...te,tabs:"a node whose tabs hold words is skipped (`skip`): typed tabs are not a Console menu; a list of blank tabs draws nothing, so nothing is lost"}}),U8=()=>gB({name:"Category Bar",skip:e=>{if(rg(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(rg(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:xB,props:{...IB,[lo]:nb}}],drop:{...X,...te,tabs:"a node whose tabs hold words is skipped (`skip`); blank tabs draw nothing on a page, so nothing is lost. The Menu draws the blog's own categories",activeTab:"the Menu marks the page's own entry (Current page), not a typed active tab",links:"a node whose links hold words is skipped (`skip`); blank links draw nothing",sticky:"the bar is always pinned (the Box's own pin, Stays above): the merchant turns the Box's pin off",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}}),yB={DocTabs:z8(),CategoryBar:U8()};import{jsx as Na,jsxs as ag}from"react/jsx-runtime";import{slugify as J8}from"efficient-shell/format";import{jsx as Yp,jsxs as wB}from"react/jsx-runtime";import{jsx as j8}from"react/jsx-runtime";import{useEffect as G8,useRef as K8}from"react";var SB="data-current",q8=1/3,V8=2;function Y8(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 X8(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=Y8(n,o,t);for(let l of r)s!==null&&a(l)===s?(l.setAttribute(SB,""),l.setAttribute("aria-current","location")):(l.removeAttribute(SB),l.removeAttribute("aria-current"))}function bB(){let e=K8(null);return G8(()=>{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-V8;X8(o,window.innerHeight*q8,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)}},[]),j8("span",{ref:e,hidden:!0})}var kbe="sticky top-[120px]";var Vp={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var CB=(e,o)=>e?{[ra]:o}:{},kB=(e,o)=>hw(e?.[Ks(o)]?.role,Vp[o],Sb),vB=120;function PB({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Qx,takesViewHide:l=!1,markCurrent:i=!1}){let d=s==="plain",f=lt(),m=l?f:vr;return m.scope(wB("aside",{className:ko(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,m.className),style:r?{top:t}:void 0,...m.attrs,children:[e&&Yp("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Xe(e)}),o.map((u,h)=>{let I=Yp("span",{...CB(a,"number"),style:kB(n,"number"),className:"text-accent",children:qf(s,h)});return wB("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,Yp("span",{...CB(a,"entry"),style:kB(n,"entry"),children:Xe(u.label||"Section")}),!d&&I]},`${h}-${u.anchor}`)}),i&&!a&&Yp(bB,{})]}))}function TB(e){let o=new Set;return e.map(t=>{if(!t)return"";let r=t,a=2;for(;o.has(r);)r=`${t}-${a++}`;return o.add(r),r})}function Z8(e,o){return J8(e)||`section-${o+1}`}var ng=e=>typeof e=="string"&&e.trim()!=="";function sg(e){return(e??[]).filter(o=>ng(o.heading)||ng(o.label)||ng(o.body))}function lg(e){return TB(e.map((o,t)=>Z8(o.label||o.heading||"",t)))}function ig(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=yd(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 Q8=()=>[{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.")}],eK=vB;function Xbe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=eK,pad:a}){let n=Pt(),s=sg(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?Q8():s,i=lg(l);return Na(fe,{as:"section",className:"relative z-[2] bg-bg",children:ag("div",{...hO(nt("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(PB,{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)=>ag("article",{id:i[f],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[ag("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Zx(f)," \xB7 ",Xe(d.label||"Section")]}),d.heading&&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:Xe(d.heading)}),ig(d.body??"").map((m,u)=>m.type==="ul"?Na("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:m.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:Xe(h)},I))},u):Na("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Xe(m.text)},u))]},i[f]))})]})})}var OB=18,EB=18,_B=8,oK=10,dg=e=>typeof e=="string"&&e.trim()!=="",AB=e=>sg(e.sections),tK=e=>ig(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}),fg={...Ct(12),letterSpacing:.3,color:"accent",lineHeight:1.5},FB={textStyle:"body-1",fontRole:"accent",...H("body",17)},rK=[pe("label",fg),{...pe("title",fg),when:(e,o)=>!dg(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!dg(o?.label)&&!dg(o?.title),props:{...U,text:"Section",_partStyles:{text:fg}}},{kind:"group",name:"Heading",props:{...R,sectionPaddingBottom:_B,sectionPaddingBottomPhone:_B},parts:[{kind:"group",name:"Heading line",props:{...R,sectionBorder:{bottom:1},sectionPaddingBottom:EB,sectionPaddingBottomPhone:EB},parts:[{kind:"text",key:"heading",role:"heading",props:U,style:{textStyle:"heading-2",...Go("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:tK,parts:[{kind:"text",key:"text",props:oe,style:{...FB,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:oe,style:{...FB,lineHeight:1.65,paragraphSpacing:oK},when:(e,o)=>o?.kind==="ul"}]}],aK=900,nK={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[kp]:aK,sectionBorder:{bottom:1},...re(e,xc)}),box:["anchor","sectionAccent",...wr,...En,...Object.values(Fo),...ce(xc)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...R,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>AB(e),props:{...R,gap:OB,gapPhone:OB},item:(e,o,t)=>({props:{anchor:lg(AB(t))[o]??`section-${o+1}`}}),parts:rK}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},BB={DocBody:nK};import{phoneKey as dK}from"efficient-easel/draw";import{SITE_SIDE as fK}from"efficient-easel/screen/lib/content/length-units";var iwe={eyebrow:"\u2014 Label",title:`Section headline *here.*
331
+ *Highlight line*`,body:"Describe this section in a sentence or two."},dwe={text:"Learn more"},fwe={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 cg(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}import{parseOption as sK}from"efficient-shell/format";var RB="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",lK="overlay",iK=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Xp(e){return sK(iK,lK,e)}var uwe={desktop:40,mobile:45,min:20,max:80,step:5};function mwe(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as cK}from"efficient-shell/format";var LB=(e,o,t)=>{let r=ye(e),a=ye(o),n=(s,l)=>l&&l!=="px"?{[s]:l}:{};return{...r===void 0?{}:{size:r,...n(fl.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(fl.sizePhone,t?.phone)}}},pK=e=>Xp(e.layout)==="stacked",DB=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),Jp=e=>ye(e)??100,uK={textStyle:"heading-1",sizeToken:{...Go("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},mK=[pe("eyebrow",H("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:U,style:{...uK,case:e?"upper":"none"},styleFrom:o=>{let t=Ex(o);return LB(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...oe,maxWidth:560},style:{textStyle:"body-1",...H("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=Ex(e);return LB(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...R,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:fo}]}],NB=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)`,xK=()=>({name:"Scroll-Over Text",skip:e=>pK(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",...ii,placement:"left",darken:DB(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Jp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Jp(e.heightMobile),[Qd]:pk}),box:[...Z.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>DB(o)],["heightDesktop","sectionHeightValue",e=>Jp(e)],["heightMobile","sectionHeightValuePhone",e=>Jp(e)]],parts:mK,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(SP.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:NB("Button color"),buttonTextColor:NB("Button text color"),...X}}),WB={textStyle:"heading-2",...H("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},hK={textStyle:"body-1",...H("body",16),lineHeight:1.7},$B=e=>({kind:"text",key:"body",props:{...oe,maxWidth:520},style:{...hK,paragraphSpacing:e}}),Qp={top:0,bottom:0,topPhone:0,bottomPhone:0},pg=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},IK=(e,o)=>{let t=pg(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"}},zB={boxShapePhone:"landscape"},UB="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)",gK=(e,o)=>({[e]:o,[dK(e)]:o}),yK={textStyle:"heading-2",...H("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},MB=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),SK=()=>({name:"Brand Text",boxProps:(e,o)=>({...Y,...Uo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Qp),...pg(e,100)}),box:[...Z,...ce(Qp)],parts:[{kind:"group",name:"Words",props:()=>({...R,justify:"center",gap:28,gapPhone:28,sectionBorder:di({right:1}),sectionBorderPhone:di({}),...ii,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:fK}),parts:[pe("eyebrow",H("label",14)),{kind:"text",key:"heading",role:"heading",props:U,style:{...WB,case:"none"},mark:"accentItalic"},$B(28),{kind:"group",name:"Stats",props:{...R,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...R,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(MB(e).length,1),3),...gK("sectionBorder",di({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:MB,props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Aa,style:yK},pe("label",{...H("label",13),color:"labels",letterSpacing:.2})]}]}]}]},mI("Picture","imageSrc",zB)],drop:{...X,grayscale:UB,...te}}),Zp=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}},bK=e=>e.textAlign==="center"||e.textAlign==="right"?Cd[e.textAlign]:"stretch",wK=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),jB=e=>typeof e=="string"&&e.trim()!=="",CK={...fo,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},HB=e=>({...mI("Picture","imageSrc",(o,t)=>({...jB(o.imageSrc)&&cg(o.imageOverlay)>0?{darken:cg(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...zB,sectionBorder:di(e?{left:1}:{right:1}),...GB(e?"left":"right",as(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:CK,style:{...Ct(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),GB=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},kK={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...R,justify:"center",align:bK(e),placement:cK(["left","center","right"],"left",e.textAlign),...IK(e,72),gap:24,gapPhone:24,...jB(e.textBgSrc)?{darken:wK(e),darkenStyle:"even"}:{},...ii,sectionPaddingTop:100,sectionPaddingBottom:100,...GB(t?"right":"left",as(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...pe("eyebrow",H("label",14)),styleFrom:Zp},{kind:"text",key:"title",role:"heading",props:U,style:WB,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Zp(e)})},{...$B(24),styleFrom:Zp},{kind:"group",name:"Button",props:{...R,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Zp(e);return{...fo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},vK=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Y,...Uo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Qp),...pg(e,72)}),box:[...Z,...ce(Qp)],parts:[HB(!1),kK,HB(!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:UB,...X,...te}}),KB={IntroBleed:xK(),Manifesto:SK(),Split:vK()};var YB={headPlacement:void 0},qB={top:0,bottom:0,topPhone:0,bottomPhone:0},PK=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...re(e,qB)}),box:[...Z,...ce(qB)],parts:[{kind:"core",keep:"rest",props:YB}],drop:{...X,...te}}),VB={top:120,bottom:120,topPhone:60,bottomPhone:60},TK=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...re(e,VB)}),box:[...Z,...ce(VB)],parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:oe},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:YB}],skip:e=>e.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...X,...te,layout:'the marker of the two-region drawing; a node that has it is skipped (above), so here it is never "boxes"',boxes:'the SubmitBox regions, drawn only under layout "boxes", which this row skips (above); without that marker they draw nothing'}}),XB={Form:PK(),SubmitBuild:TK()};import{phoneKey as JB}from"efficient-easel/draw";var QB=1.5,ZB={textStyle:"body-1",...H("body",15),lineHeight:QB},OK={...No,...H("label",12),letterSpacing:.12,lineHeight:QB},eR=()=>({type:K,props:{...R,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[JB("share")]:"content",[JB("wrap")]:"nowrap",...Co(12,0),sectionBorder:{top:1},name:"Item"},slots:{[Ce]:[{type:K,props:{...R,gap:0,gapPhone:0,name:"Item words"},slots:{[Ce]:[Fe("label",{...U,tag:"p"},ZB),Fe("meta",{...oe,tag:"p"},OK)]}},Fe("amount",{...U,tag:"p"},ZB)]}});var EK=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...Z],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Pe]:[eR()]}}],drop:{...X}}),oR={OrderSummary:EK()};import{phoneKey as _K}from"efficient-easel/draw";var $we={eyebrow:"By the numbers",title:`A picture worth
332
+ *a thousand rows.*`},tR=["eyebrow","title","body","caption"],zwe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var rR=["eyebrow","title","body"],jwe={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 sR=()=>({kind:"group",name:"Words",props:{...R,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...R,direction:"row",phoneRow:2,[_K("share")]:"content"},parts:[os("eyebrow")]},{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2",...H("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...oe,maxWidth:435},style:vd(16)}]}),lR=e=>(o,t)=>({...Y,sectionAccent:rs(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...re(o,El)}),iR=[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>rs(e,t)],...ce(El)],AK=()=>({name:"Chart",boxProps:lR([42]),box:iR,parts:[sR(),{kind:"group",name:"Chart",props:{...R,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:es},pe("caption",{color:"muted",...H("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...tR],drop:{...X,...te}}),aR=e=>e.align==="left",nR={kind:"group",name:"Card",keepEmpty:!0,props:R,parts:[{kind:"core",keep:"rest",props:es}]},FK=()=>({name:"Mockup Card",boxProps:lR("equal"),box:iR,parts:[{...nR,when:aR},sR(),{...nR,when:e=>!aR(e)}],pressKeepsEmpty:[...rR],drop:{...X,...te}}),dR={Chart:AK(),Mockup:FK()};import{phoneKey as RK}from"efficient-easel/draw";function fR(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function cR(e){return Math.max(e*6,30)}var LK=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),ug=e=>fR(LK(e)),DK=e=>Mp({loopDuration:cR(e)}),NK={kind:"group",name:"Header",props:{...R,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...R,direction:"row",justify:"center",phoneRow:2,[RK("share")]:"content"},parts:[os("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...U,align:"center"},style:{textStyle:"heading-2",...H("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...oe,align:"center",maxWidth:568},style:vd(16)}]},MK=e=>({kind:"group",name:`Row ${e+1}`,when:o=>ug(o)[e].length>0,props:o=>({...R,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:DK(ug(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=>ug(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),HK={kind:"group",name:"Stat",props:{...R,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...R,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...U,align:"center"},style:{textStyle:"heading-1",...H("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...U,align:"center"},style:{textStyle:"heading-3",...H("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...U,align:"center",maxWidth:428},style:{textStyle:"body-1",...H("label",14),lineHeight:1.625,color:"muted"}}]},WK=[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>rs(e,t)],...ce(yc)],$K={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:rs(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...re(e,yc)}),box:WK,parts:[NK,{kind:"group",name:"Rows",props:{...R,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>MK(o))},HK],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...te}},pR={Integrations:$K},uR=()=>({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 zK={title:"Back online in",zeroText:"Almost done. Back very soon."},mR=["title"],iCe={label:"Countdown",defaultProps:{...zK,endsAt:"",showUnits:!0}};var UK={...pe("title",{...lw(12),color:"muted"}),props:{...U,align:"center"}},jK=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...re(e,mc)}),box:[...Z,...ce(mc)],parts:[UK,{kind:"core",keep:"rest",props:es}],pressKeepsEmpty:[...mR],drop:{...X,...te}}),GK=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...re(e,gc)}),box:[...Z,...ce(gc)],parts:[{kind:"core",keep:"rest",props:es}],drop:{...X,...te}}),xR={Countdown:jK(),FeaturedCover:GK()};var hR={top:80,bottom:80,topPhone:60,bottomPhone:60},KK=()=>{let e=_p("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:fi[La("FitmentFinder")],...re(o,hR)}),box:[...Z,...ce(hR)],parts:[ut("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...X,...te,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},IR={FitmentFinder:KK()};var eu={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},gCe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var Si={eyebrow:Te.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},bCe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var gR={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},CCe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var yR={title:`Section heading
334
+ *Highlight line*`},SR=[{label:Ue.text,href:Ue.href,variant:"primary"},{label:Ue.text,href:Ue.href,variant:"outline"}],PCe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var mr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Te.viewAll},ACe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:sc,num:mr.num,numStyle:Bl,title:mr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var ou={eyebrow:"\u2014 Label",title:`Section headline
335
+ *Highlight line*`,body:"A sentence or two of supporting copy."},LCe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:ul,bodySizeDesktop:ul,titleSizeMobile:ul,bodySizeMobile:ul,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[kn]:0,uppercase:!1}};var qK={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...re(e,bc)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...Z,...ce(bc)],parts:[ut("Prose"),{kind:"text",key:"body",props:oe,style:{textStyle:"body-1",...H("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...X,...te,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},wR={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},CR=(e,o)=>o?.variant==="primary",kR=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:CR,variant:"primary",style:{letterSpacing:.3},props:{...fo,...wR,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!CR(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...fo,...wR,...o}}]}),tu=e=>Ne(e.title),VK={name:"Call-to-Action Heading",boxProps:e=>({...Y,direction:"row",align:"center",justify:tu(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...pt(e,"TitleWithButtons")}),box:[...Z,...Mr("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...R,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-1",...Go("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...R,gap:14,gapPhone:14,widthFitPhone:"fill",...tu(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[kR(tu,{widthFit:"fill",iconPosition:"end"}),kR(e=>!tu(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 YK(e,o){let t=as(o,{to:yr(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=as(o,{view:"phone",to:yr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:bR,sectionPaddingRight:bR,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var XK={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...re(e,wc),...YK(e,o)}),box:[...Z,...ce(wc)],parts:[ut("SectionHeader")],drop:{...X,...te,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},vR={...R,direction:"row",share:[67],gap:32},PR={...R,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},TR=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),JK={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...pt(e,"ParagraphsA")}),box:[...Z,...Mr("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...vR,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...R,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[pe("eyebrow",{color:"labels",...H("label",12),letterSpacing:.24})]},TR("Stats column",R,{kind:"group",name:"Stats",props:{...PR,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[li("value","label",{...H("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...vR,gapPhone:28},parts:[{kind:"group",name:"Lead",props:R,parts:[{kind:"group",name:"Measure",props:{...R,maxWidth:780},parts:[{kind:"text",key:"lead",props:U,style:{textStyle:"heading-3",...H("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},TR("Note column",{...R,justify:"end"},{kind:"group",name:"Founders",props:{...PR,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...R,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:U,style:{textStyle:"body-1",fontRole:"heading",...H("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:oe,style:{textStyle:"body-5",fontRole:"heading",...H("body",14,12),lineHeight:1.7}}]},pe("attribution",{...H("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...X}},ZK={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...re(e,dc)}),box:[...Z,"contained",...ce(dc)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...R,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...or("surface"),...Co(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(ye(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...R,gap:20,gapPhone:20},parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...U,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...H("headingMedium",44,32)}},{kind:"text",key:"body",props:{...U,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...H("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:fo}]}],drop:{...X,...te}},mg={Prose:qK,TitleWithButtons:VK,SectionHeader:XK,ParagraphsA:JK,Banner:ZK},OR={Prose:()=>({eyebrow:eu.eyebrow,title:vt(eu.title),body:eu.body}),TitleWithButtons:()=>({title:vt(yR.title),buttons:SR.map(e=>({...e}))}),SectionHeader:()=>({num:mr.num,title:vt(mr.title),description:mr.description,linkText:mr.linkText,linkHref:Ue.href}),ParagraphsA:()=>({eyebrow:Si.eyebrow,lead:Te.body,foundersHeading:Si.foundersHeading,foundersBody:Si.foundersBody,attribution:Si.attribution}),Banner:()=>({...gR,ctaText:Ue.text,ctaHref:Ue.href}),ProcessSteps:()=>({num:mr.num,title:vt(mr.title)}),IntroBleed:()=>({eyebrow:ou.eyebrow,title:vt(ou.title),body:ou.body,ctaText:Ue.text,ctaHref:Ue.href})};function ru(){no(mg),no(GA),no(lF),no(DA),no(CF),no(NF),no(XF),no(QF),no(dB),no(yB),no(BB),no(KB),no(XB),no(oR),no(IR),no(dR),no(pR),no(xR)}var QK=[{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=>R1(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=>D1(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})=>(ru(),W1(e,ai,{theme:aC(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=>G0(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=>r_(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=>t_(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=>e_(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=>X0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>w0(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=>i_(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=>u_(e)}];function e7(e,o,t){let r=e;for(let a of QK)(!t||a.chrome)&&(r=a.run(r,o));return r}function ER(e,o){return e7(e,{metadata:o},!1)}import{useRef as o7}from"react";import{createRenderKeep as t7}from"efficient-easel/render";function _R(){let e=o7(null);return e.current??=t7(),e.current}import{isNode as r7,isNodeList as a7}from"efficient-easel/data";import{hidableText as n7,readHidable as s7}from"efficient-easel/draw";var FR="slotCounts",xg=e=>!s7(e).hidden&&n7(e).trim()!=="",l7=e=>typeof e=="string"&&e.trim()!=="",i7={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>l7(e.src),Text:e=>xg(e.text),Heading:e=>xg(e.text),Eyebrow:e=>xg(e.eyebrow)},d7=["widthFit","width","minWidth"],AR=e=>a7(e);function f7(e){if(Array.isArray(e.content))return AR(e.content)?e.content:null;let o=Object.values(e).filter(AR);return o.length===1?o[0]:null}function c7(e,o){return[...new Set([db,...Object.values(z(Tw,e)??{})])].some(t=>Wt(o,t)!=="")}function p7(e){let o=e.props??{},t=z(i7,e.type);if(!t||!t(o)||c7(e.type,o)||pl(o))return!1;let r=o[Yn];if(r!=null&&r!=="")return!1;let a=mp(o);return!d7.some(n=>a[n]!==void 0)}function u7(e){let o=0;for(let t of e)if(!nr(t.props??{})){if(!p7(t))return;o+=1}return o>0?o:void 0}function m7(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!r7(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:f7(l.props);if(typeof i=="string"&&d){let f=u7(d);f!==void 0&&(o[i]=f)}for(let f of Nt(l))a(l.props[f],s||aa(l.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function BR(e,o){return{...e??{},[FR]:m7(o)}}function Wke(e){let o=e.editor?.metadata?.[FR],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 I7({config:e,data:o,metadata:t}){let r=ER(o,t),a=_R(),n=U0(e,z0(r.content)),s=tc(r.content),l=s.length>0?{...t,[$0]:s}:t;return RR(rc,{children:RR(h7,{config:n,metadata:BR(l,r.content),keep:a,data:r})})}var LR=x7(I7);import{jsx as Ko,Fragment as Tq,jsxs as AL}from"react/jsx-runtime";import{Suspense as Oq,useMemo as Eq}from"react";import{jsx as g7}from"react/jsx-runtime";import{createContext as y7,useCallback as S7,useContext as b7,useState as hg}from"react";var DR=y7({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function Zke({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=hg(null),[n,s]=hg(null),[l,i]=hg(0),d=S7(()=>i(f=>f+1),[]);return g7(DR.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var NR=()=>b7(DR);import{jsx as w7,jsxs as C7}from"react/jsx-runtime";import{createContext as k7,useContext as v7}from"react";var MR=k7(!1);function rve(){return v7(MR)}function HR({grayscale:e,children:o}){let t=e===!0;return C7(MR.Provider,{value:t,children:[Object.entries(q_(e)).map(([r,a])=>w7("style",{children:a},r)),o]})}import{jsx as P7}from"react/jsx-runtime";import{createContext as T7,useContext as O7}from"react";var WR=T7(null);function lve(){return O7(WR)}function $R({ink:e,children:o}){return P7(WR.Provider,{value:e??null,children:o})}import{parseOption as E7}from"efficient-shell/format";var zR="data-lead-ink",pve="data-header-ink",_7=["auto","light","dark"],A7="auto";function F7(e){return e.type==="IntroBleed"?Xp(e.props?.layout)!=="stacked":!0}function UR(e){let o=Tf(e);return o&&vP(e)&&F7(o)?"light":null}function uve(e){return E7(_7,A7,e)}import{useEasel as Eg}from"efficient-easel/easel";import{useEffect as j7}from"react";import{useEaselApi as G7}from"efficient-easel/easel";import{find as B7,walk as jR}from"efficient-easel/data";var R7=()=>"",L7=e=>Zm(Mt([e],R7));function qR(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(L7))])),a=Zm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var D7=()=>({press:[ns(ta),ns(Gs)],delivery:[gI()]}),N7={},Ig=e=>qR(e,D7,N7),M7=e=>Le(e)===ab?"delivery":"press";function vve(e,o){if(!o||Le(e)===Le(o))return e;let t=Ig(e[Pe]),r=M7(e);if(!t||t===r)return e;let a=qm(e,io),n=r==="delivery"?gI():ns(Le(e)?Gs:ta),s=Mt([n],Ym(a));return{...e,[Pe]:s}}var H7=()=>({cards:[fn(ta),fn(Gs)],label:[cn(!1),cn(!0)]}),W7={},$7=e=>qR(e,H7,W7);function Pve(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=$7(e[Pe]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=qm(e,iw),n=Array.isArray(e.items)&&e.items.some(i=>ho(i?.href)!==void 0),s=r==="label"?cn(n):fn(Le(e)?Gs:ta),l=Mt([s],Ym(a));return{...e,[Pe]:l}}var GR=(e,o)=>II.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function KR(e,o){let t={...e};for(let r of II)delete t[r];return{...t,...structuredClone(o)}}function gg(e){let o=e?.[Ce];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===io&&t.props?t:null}function z7(e,o){let t=gg(e),r=gg(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||Le(t.props)===Le(r.props))return e;let a=Ig(t.props[Pe]);if(!a||a===Ig(r.props[Pe]))return e;let n=ye(e.columns);return n===void 0?e:a==="delivery"&&GR(e,Ra(n))?KR(e,bp(n)):a==="press"&&GR(e,bp(n))?KR(e,Ra(n)):e}function VR(e){let o=au.get(e);o?o.count+=1:au.set(e,{count:1,stop:U7(e)});let t=!1;return()=>{let r=au.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),au.delete(e)))}}var au=new WeakMap;function U7(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;jR(t,e.config,n=>{if(n.type!==K||!gg(n.props))return;let s=B7(r,e.config,n.props.id);if(!s||s.node===n)return;let l=z7(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>jR(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function YR(){let e=K7();j7(()=>e?VR(e):void 0,[e])}function K7(){try{return G7()}catch{return null}}import{jsx as nu}from"react/jsx-runtime";import{useEffect as q7}from"react";import{armPinSteps as V7,armScrollProgress as Y7,PIN_ATTR as XR,PIN_CENTRE_ATTR as X7,PIN_SETTLE_ATTR as J7}from"efficient-shell/format";var Z7=`[${XR}]:not([${XR}="stick"]), [${X7}], [${J7}]`;function JR({armed:e,children:o}){return q7(()=>{if(!e)return;let t=Y7(),r=document.querySelector(Z7)?V7(document):()=>{};return()=>{r(),t()}},[e]),o}function yg(){return{style:{"--sf-page-width":Ho}}}function Q7({children:e}){return nu("div",{style:yg().style,children:e})}function Hve({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return nu("div",{style:{...o?{}:Rf(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:nu(JR,{armed:!t,children:nu(Q7,{children:r})})})}import{jsx as ZR,Fragment as eq}from"react/jsx-runtime";import{createContext as eL,useContext as QR}from"react";var oL=eL({}),tL=oL.Provider,rL=eL(void 0),aL=rL.Provider;function Uve(e){let{SectionTextParts:o}=QR(oL),t=QR(rL);return o?ZR(o,{...e,sizeCaps:t}):ZR(eq,{children:e.children})}import{jsx as yq}from"react/jsx-runtime";import{useEffect as Sq,useRef as bq}from"react";var nL="data-easel-overlay-portal";function su(e){return e.setAttribute(nL,"true"),()=>{e.removeAttribute(nL)}}import{jsx as cq}from"react/jsx-runtime";import{useEffect as pq,useRef as SL}from"react";import{usePreviewParts as uq}from"efficient-easel/draw/client";import{jsx as oq}from"react/jsx-runtime";import{createContext as tq,useContext as rq,useMemo as aq,useState as nq}from"react";var sq={partStyle:null,setPartStyle:()=>{}},sL=tq(sq);function Vve({children:e}){let[o,t]=nq(null),r=aq(()=>({partStyle:o,setPartStyle:t}),[o]);return oq(sL.Provider,{value:r,children:e})}function us(){return rq(sL)}import{usePreviewDevice as mq}from"efficient-easel/draw/client";import{shownTier as xq}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as bL,encodePartId as hq}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as Iq}from"efficient-easel/canvas";import{createPreviewSelectionContext as lq}from"efficient-easel/draw/client";var Ma="Scrolling Bar",{Provider:Jve,useSelection:lL}=lq("selectedHeroId"),Sg="data-sf-hero-ticker";function iL(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 iq}from"efficient-easel/draw/client";var{Provider:ePe,useSelection:fL}=iq("selectedLocationPartId");function lu(e,o,t){return`${e}::${o}::${t}`}function iu(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 wg="data-sf-part-label";function Cg(e,o){return e.closest(`[${Ur}]`)?.getAttribute(Ur)===o}function cL(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(y=>[y.key,yf(y.label)])),n=[],s=new Set;for(let y=0;y<r.length;y+=1){let b=r[y];if(!Cg(b,o))continue;let F=b.getAttribute(uv);if(!F)continue;let _=a.get(F);n.push({element:b,partId:jt(o,F),..._?{label:_}:{}}),s.add(b)}let l=[],i=new Set;for(let y=0;y<r.length;y+=1){let b=r[y];if(!Cg(b,o)||s.has(b))continue;let F=xv(b.textContent??"");if(!F)continue;let _=b.closest(`[${wx}]`)?.getAttribute(wx)||null;_&&i.add(_.replace(/\[\d+\]$/u,"")),l.push({element:b,text:F,row:_})}let d=y=>l.filter(b=>b.row===pv(y.key,y.row.index)),f=l.filter(y=>y.row===null),m=y=>y.row&&i.has(y.key)?d(y):i.size?f:l,u=new Map,h=[],I=y=>y.row?`${y.key}.${y.row.rowKey}`:null,S=new Map;for(let y of t){let b=I(y);if(!b||i.has(y.key))continue;let F=S.get(b);F?F.push(y):S.set(b,[y])}let T=new Set;for(let[y,b]of S){if(b.length<2)continue;let F=b.flatMap(w=>w.texts);if(new Set(F).size===F.length)continue;let _=m(b[0]).filter(w=>F.includes(w.text));if(_.length!==b.length)continue;let D=[...b].sort((w,E)=>(w.row?.index??0)-(E.row?.index??0));for(let w=0;w<D.length;w+=1){let E=D[w],g=_[w].element,v={key:E.key,partKey:Tn(E.key,E.row),exact:!0},O=u.get(g);O?O.push(v):(u.set(g,[v]),h.push(g))}T.add(y)}let P=new Map;for(let y of t){if(T.has(I(y)??""))continue;let b=Tn(y.key,y.row);for(let F of y.texts)for(let _ of m(y)){if(_.text!==F)continue;let D=P.get(_.element);D?D.add(b):P.set(_.element,new Set([b]))}}let L=(y,b)=>[...P].some(([F,_])=>F!==y&&!_.has(b)&&F.contains(y));for(let y of t){if(T.has(I(y)??""))continue;let b=Tn(y.key,y.row);for(let F of y.texts){let _=[],D=null;for(let g of m(y))g.text===F?L(g.element,b)||_.push(g.element):!_.length&&g.text.includes(F)&&(!D||g.text.length<=D.length)&&(D={element:g.element,length:g.text.length});let w=_.length?_:D?[D.element]:[],E=w.filter(g=>!w.some(v=>v!==g&&g.contains(v)));for(let g of E){let v={key:y.key,partKey:b,exact:_.length>0},O=u.get(g);O?O.push(v):(u.set(g,[v]),h.push(g))}}}let C=[...n];for(let y of h){let b=u.get(y)??[],F=b.some(_=>_.exact)?b.filter(_=>_.exact):b;if(new Set(F.map(_=>_.partKey)).size===1){let _=a.get(F[0].key);C.push({element:y,partId:jt(o,F[0].partKey),..._?{label:_}:{}});continue}new Set(F.map(_=>_.key)).size===1&&C.push({element:y,partId:jt(o,F[0].key)})}return C}function bg(e,o,t){let r=e.querySelectorAll(`[${ze}]`);for(let n=0;n<r.length;n+=1){let s=r[n];Cg(s,o)&&(s.removeAttribute(ze),s.removeAttribute(wg))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute(ze,s),l&&n.setAttribute(wg,l),a.push(n);return a}function mL(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let f=t(),m=f?.getAttribute(Ur)??null;if(!f||!m)return!1;s=m;let u=cL(e,m,o);return a(f,m,bg(e,m,u)),i=n(()=>{let h=cL(e,m,o);dq(u,h)||(u=h,a(f,m,bg(e,m,h)))}),!0};return d()||(l=r(()=>{(s||d())&&(l?.(),l=null)})),()=>{l?.(),l=null,i?.(),i=null,s&&bg(e,s,[])}}function dq(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function iPe(e,o){let t=e?.closest?.(`[${ze}],[${Or}]`),r=t?.getAttribute(ze)??t?.getAttribute(Or),a=r?cv(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:uL(t,r),label:pL(t,r)};let n=e?.closest?.(hL.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${Ur}]`)?.getAttribute(Ur)===o?IL(n,o):null;return s?{id:s,element:n,whole:uL(n,s),label:pL(n,s)}:null}function pL(e,o){let t=iu(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=op(o);return r?ur[r.part]:dL(o)?Ma:e.getAttribute(wg)??void 0}var xL="data-loc-pick",hL=[ze,Or,Ql,Sg,xL];function IL(e,o){let t=e.getAttribute(ze)??e.getAttribute(Or);if(t)return t;let r=e.getAttribute(Ql);if(r)return va(o,r);if(e.getAttribute(Sg)!==null)return iL(o);let a=e.getAttribute(xL)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?lu(o,Number(a[0]),a[1]):null}function uL(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(hL.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${Ur}]`)!==t)continue;let s=IL(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as gL,playEntrance as fq}from"efficient-shell/format";var kg=new WeakMap;function yL(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)??{},m=lk(f),u=r.get(d),h=u?Un.next(u,m,a):null;r.set(d,h?h.seen:Un.seed(m)),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=Nc(d.element);f&&l.set(f,[...l.get(f)??[],d])}for(let[d,f]of l){let m=I=>Ml(o(I.partKey)??{}),u=Kn(f.filter(I=>m(I).entrance));if(u){let I=o(u.partKey)??{};n.push(Lc(d,el(I,a)));let S=kg.get(d);kg.set(d,u.partKey),(s.get(u.partKey)||S!==void 0&&S!==u.partKey)&&d.hasAttribute(gL)&&fq(d)}else kg.delete(d);let h=d.hasAttribute(gL)?void 0:Kn(f.filter(I=>Kt(o(I.partKey)??{},a).effect!=="none"));h&&n.push(Dc(d,Kt(o(h.partKey)??{},a))),f.some(I=>m(I).hover==="lift")&&(Mc(d.ownerDocument),d.setAttribute(ba,""),n.push(()=>d.removeAttribute(ba)))}return()=>n.forEach(d=>d())}function vg(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=bb(a),t??=ax(a)}return{faceRole:o??"body",sizeGroup:t}}function du(e,o={},t=Ib){let r=e.style,a={};for(let i of Px)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=Mv({fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,textAlign:n.textAlign,textTransform:n.textTransform,paddingTop:n.paddingTop},Hv(n.fontFamily,i=>s.getPropertyValue(i),t));for(let i of Px)r[i]=a[i];return l}function wL({needles:e,styles:o,motions:t=Rc,type:r,sizeCaps:a,children:n}){let s=SL(null),{selectedPartId:l}=uq(),{setPartStyle:i}=us(),d=xq(mq()),f=Qo(),m=JSON.stringify(e),u=JSON.stringify(o),h=JSON.stringify(t),I=SL(new Map);return pq(()=>{let S=s.current;if(!S)return;let T=[],P=()=>S.parentElement,L=w=>{let E=P();if(!E)return null;let g=new MutationObserver(w);return g.observe(E,{attributes:!0,attributeFilter:[Iq]}),()=>g.disconnect()},C=w=>{let E=new MutationObserver(w);return E.observe(S,{childList:!0,subtree:!0,characterData:!0}),()=>E.disconnect()},y=[];T.push(()=>{for(let w of y)w();y=[]});let b=JSON.parse(m),F=JSON.parse(u),_=JSON.parse(h),D=mL(S,b,P,L,(w,E,g)=>{for(let A of y)A();y=[];let v=[];for(let A of g){let M=A,G=su(M);G&&y.push(G),M.getAttribute(ze)===l&&v.push(M)}let O=Wv(E,l,v,A=>wb(A)!==null||ax(A)!==null);if(O&&l){let A=O,M=bL(l)?.propKey??"",G=dl(A)?{}:Nv($v(F,fr(r,M)),d,{blockDrawsStyle:cl(r,M),sizeCap:ia(a,M),fonts:f});i({partId:l,...vg(A),base:du(A,G,f),inks:mf(A),...(()=>{let $=dl(A);return $?{styleOwner:$}:{}})()})}vx(g.filter(A=>!dl(A)).map(A=>({element:A,partId:A.getAttribute(ze)??""})),F,A=>du(A,void 0,f),A=>fr(r,A),void 0,d,A=>cl(r,A),A=>ia(a,A),f);let k=[...S.querySelectorAll(`[${mv}="${CSS.escape(E)}"][${gf}]`)];k.length&&vx(k.map(A=>({element:A,partId:hq(E,A.getAttribute(gf)??"")})),F,void 0,A=>A,void 0,d,void 0,void 0,f),y.push(yL([...g.filter(A=>!dl(A)).map(A=>{let M=A,G=bL(M.getAttribute(ze)??"")?.propKey??"";return{element:M,partKey:fr(r,G)}}),...k.map(A=>({element:A,partKey:A.getAttribute(gf)??""}))],A=>_[A],nk(d),I.current))},C);return()=>{D();for(let w of T)w()}},[m,u,h,l,i,d,r,f]),cq("div",{ref:s,[Fh]:"",style:{display:"contents"},children:n})}import{shownTier as wq}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as Cq,usePreviewParts as kq}from"efficient-easel/draw/client";var bi={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)]"},gq={tag:{label:"Tag",follows:"Labels",builtIn:mn(bi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:mn(bi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:mn(bi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:mn(bi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:mn(bi.link),writable:!0}},CL=gq;var $Pe=ra,kL={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 vL={SpecTable:kL,FAQ:Iw,Collections:CL,Contents:Vp};function PL(){return rn("efficient.section-text-regions",()=>new Map)}function YPe(e){let o=PL();for(let[t,r]of Object.entries(e)){if(Qe(vL,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 ms(e){return e?z(vL,e)??PL().get(e)??null:null}function TL({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=bq(null),{selectedPartId:s}=kq(),{setPartStyle:l}=us(),i=wq(Cq()),d=Qo(),f=JSON.stringify([t??null,r??null]);return Sq(()=>{let m=n.current,u=ms(o);if(!m||!e||!u)return;let h=[],I=Array.from(m.querySelectorAll(`[${ra}]`));for(let S of I){let T=Jm(u,S.getAttribute(ra));if(!T)continue;let P=su(S);P&&h.push(P);let L=Ks(T),C=jt(e,L);S.setAttribute(Or,C);let y=t?.[L];if(u[T].sized&&zv(y)){let b=Uv(y,i,{sizeCap:ia(r,L),fonts:d}),F={fontFamily:S.style.fontFamily,fontSize:S.style.fontSize},_=S.getAttribute(sa);b.fontFamily&&(S.style.fontFamily=b.fontFamily),b.fontSize&&(S.style.fontSize=b.fontSize);let D={fontFamily:b.fontFamily?S.style.fontFamily:void 0,fontSize:b.fontSize?S.style.fontSize:void 0},w=y?.textStyle;Pv(w)&&S.setAttribute(sa,w),h.push(()=>{Kv(S.style,F,D),_===null?S.removeAttribute(sa):S.setAttribute(sa,_)})}if(C===s){let b=du(S,Gv(y,u[T],i,d),d);l({partId:C,...vg(S),base:b})}}return()=>{for(let S of h)S();for(let S of I)S.removeAttribute(Or)}},[e,o,s,l,i,f,d]),yq("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as Pg,Fragment as OL}from"react/jsx-runtime";import{createContext as vq,useContext as EL,useMemo as Pq}from"react";var Tg=vq(null),_L=e=>e==null||e===""?void 0:String(e);function Og({content:e,children:o}){let t=Pq(()=>rh(e),[e]);return Pg(Tg.Provider,{value:t,children:o})}function uTe({id:e,children:o}){let t=EL(Tg),r=_L(e);return Pg(OL,{children:o(r?t?.entries.get(r):void 0)})}function mTe({id:e,children:o}){let t=EL(Tg),r=_L(e);return Pg(OL,{children:o(r?t?.numbers.get(r):void 0)})}var _q={SectionTextParts:TL},Aq="color-mix(in oklab, var(--bg) 40%, #ffffff)",Fq="12vh";function Bq({style:e,children:o}){let{appState:t}=Eg(u=>u),r=t.data.content,a=t.data.root;if(PP(r))return Ko("div",{className:"sf-themed-content",style:{...e,background:Aq,minHeight:"100vh",paddingBottom:Fq},children:Ko("div",{style:{background:"var(--bg)"},children:Ko(Og,{content:r,children:o})})});let n=_x(r)&&OP(a,r),s=_x(r)?EP(a,r):null,l=s?{[TP]:s}:null,i=NC(a?.widthChoice),d=i?{[DC]:i}:null,f=n?null:UR(r),m=f?{[zR]:f}:null;return Ko("div",{className:`sf-themed-content${n?` ${CP}`:""}`,style:e,...m,...l,...d,children:Ko("div",{style:{background:"var(--bg)",minHeight:"100%"},children:Ko(Og,{content:r,children:o})})})}function zTe({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:f,children:m}){YR();let u=Eg(I=>I.appState.data.root?.props),h=Eg(I=>eT(I.appState.data.content));return Ko(_g,{siteFooterRootProps:u?.kind===tP?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=>AL(Tq,{children:[Ko(Bq,{style:I,children:m}),d,f]})})}function _g({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,siteFooterRootProps:d,inPlaceFooterProps:f,body:m}){let{chromeRootProps:u}=NR(),h=Eq(()=>oT(u,f),[u,f]),{theme:I,fonts:S,sizes:T,cornerRadiusPx:P,cardShadow:L,shadowColor:C,cardGap:y,hoverEffect:b,headingCompression:F,siteWidth:_,siteGutter:D,siteGutterPhone:w,blockGap:E,blockGapPhone:g,siteLengthUnits:v,headingTypography:O,heroBackgroundFollowsWidth:k,photographyGrayscale:A,textStyles:M,wordStyles:G,themeFromDocument:$}=vo(),de=Qo(),le=$?e:I,ee=$?o:S,Ie=$?void 0:T,ae=$?r===void 0?Vw[qw(t)]:Yw(r):P,xe=$?{}:v,ge=$?a:F,Je=$?n:O,Ze=[qT(KT($?void 0:M),de),VT(tC(Je).italicStrong)].filter(Boolean).join(`
336
+ `),mo=yg(),qe={...Nw(le),...Kw(Ie),...rC(Je),...mo.style,...l?{}:Rf(s)};return AL("div",{className:`sf-theme-surfaces sf-theme-accent ${[AC($?void 0:w),lP($?void 0:g)].filter(Boolean).join(" ")}`.trim(),style:{...Cb(ee,de),...Pb($?null:G,de),...Mw(le),...Ww(le),...$w(le),...Hd(le),...Xw(ae,xe.cornerRadiusUnit),...eC($?void 0:L,$?void 0:C,$?void 0:b),...mC($?void 0:_,xe.siteWidthUnit),...OC($?void 0:D,xe.siteGutterUnit),..._C($?void 0:w,xe.siteGutterPhoneUnit),...nP($?void 0:E,xe.blockGapUnit),...sP($?void 0:g,xe.blockGapPhoneUnit),...Ud($?void 0:k)},"data-sf-headings":oC(ge),[SC]:zd(d??h),[af]:_k(d??h),"data-sf-card-shadow":$?void 0:Jw(L),"data-sf-card-gap":$?void 0:Zw(y),"data-sf-card-hover":$?void 0:Qw(b),onClickCapture:i,children:[Ze?Ko("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:Ze}}):null,Ko(HR,{grayscale:$?void 0:A,children:Ko(tL,{value:_q,children:Ko($R,{ink:Dw(le),children:Ko(Oq,{fallback:null,children:Ko(tO,{rootProps:d??h,children:m(qe)})})})})})]})}var FL=e=>{e.target?.closest?.("a")&&e.preventDefault()};var Rq=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function Lq(e,o){return e.replace(Rq,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function RL(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=Lq(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function LL(e,o){for(let t of Array.from(e)){let r=t.style;r&&RL(r,o);let a=t.cssRules;a&&LL(a,o)}}function BL(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}LL(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))RL(t.style,o)}function DL(e,o){BL(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,BL(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 zq=1440,Fg=800;function ML({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=gl(),[s,l]=Ag(null),[i,d]=Ag(Fg),[f,m]=Ag(null);return Dq(()=>{if(!s)return;let u=DL(s,Fg),h=s.defaultView,I=()=>{f&&d(Math.max(Fg,Math.ceil(f.getBoundingClientRect().height)))},S=h&&f?new h.ResizeObserver(I):null;return f&&S?.observe(f),I(),()=>{u(),S?.disconnect()}},[s,f]),NL("div",{className:"sf-starter",children:[NL(Hq,{padding:"none",className:"sf-starter-picture",children:[Ot("div",{inert:!0,className:"sf-starter-frame",children:Ot(Wq,{width:zq,height:i,children:Ot(Nq,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:Ot(oc,{document:s??void 0,children:Ot(_g,{onClickCapture:FL,body:u=>Ot("div",{className:"sf-themed-content",style:u,children:Ot("div",{ref:m,style:{background:"var(--bg)"},children:Ot(LR,{config:o,data:e.layout,metadata:t})})})})})})})}),Ot("div",{className:"sf-starter-add",children:Ot(Mq,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Ot($q,{size:"sm",children:e.title})]})}import{useMemo as aZ}from"react";import{sessionRegistry as nZ}from"efficient-easel/screen/lib/session";import{useEaselSession as sZ}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as Uq}from"efficient-easel/screen/lib/session";var jq={general:!0,commerce:!0,service:!0};function Bg(e){let o=e?.sets;return o?Object.fromEntries(fb.map(t=>[t,o.includes(t)])):jq}function Rg(e=Uq()){return Bg(e.blocks)}import{currentEaselSession as JL}from"efficient-easel/screen/lib/session";import{SITE_SIDE as $L}from"efficient-easel/screen/lib/content/length-units";var HL=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],l0e={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:ew,separator:ow,scrollDirection:gi}};var WL=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],f0e={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function yo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function zL(e,o,t){return yo(K,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var fu={Manifesto:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[yo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:$L,sectionPaddingRight:$L,content:[yo("Text",e,o,tr()),yo("Text",e,o,gr()),yo("Text",e,o),yo("Stats",e,o)]}),zL(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:[yo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[yo("Text",e,o,tr()),yo("Text",e,o,gr()),yo("Text",e,o),yo("ButtonBlock",e,o)]}),zL(e,o,{direction:"column",name:"Image",content:[yo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"column",name:"Subscribe",content:[yo("Text",e,o,gr()),yo("Text",e,o),yo("Form",e,o)]}}),Ticker:(e,o)=>UL("Scrolling Bar",lc,xa,HL.map(t=>({text:t.text,style:ic,muted:!0})),e,o),SpecStrip:(e,o,t)=>UL("Spec Strip",t?.theme?{...vl,sectionAccent:Md(ar(t.theme))}:{...vl,sectionBorder:{top:1}},ha,WL().map(r=>({text:r.text??"",style:Pl,muted:r.tone==="muted"})),e,o)};function UL(e,o,t,r,a,n){return yo(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=>yo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function jL(e){return z(fu,e)??null}import{isNodeList as Lg}from"efficient-easel/data";var L0e=Object.keys(mg),Gq={Logos:iF,DocMasthead:sB,DocTabs:hB,Timeline:LF,TimelineTrack:DF},Kq={PaymentBadges:dF,PaymentLogosBlock:fF,Integrations:uR};function cu(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]=Lg(n)?n.map(s=>cu(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var GL=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function wi(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Ea({type:e,props:{...a(e),...r(),id:n(e)}},o,GL(s));return cu(l[t],a,n)}}var qq={Stats:Yq,Cards:Vq};function Vq(){let e=Dr("Cards");if(!e)return null;let o=wi("Cards",e,0,LA);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Yq(){let e=Dr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Ea({type:"StatsParagraph",props:{...o("StatsParagraph"),...KA(),id:t("StatsParagraph")}},e,GL(r)),n=a[0],s=Lg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=qL(RI(qA(),"table")),i=s.map(KL),d=cu({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function KL(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Lg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(KL)}}:e}var qL=e=>Mt([e],(o,t)=>`${o}-seed-${t}`)[0];function Xq(e,o){if(!H1(e,o))return null;let t=z(qq,e);if(t)return t();let r=Dr(e);return r?wi(e,r,0,z(Gq,e)??z(OR,e)??z(Kq,e)):null}function Jq(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=cu(qL(RI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=Ye(n,l=>$e(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function xs(e,o=Oa){let t=jL(e);return t?Jq(t):Xq(e,o)}import{blockTypesIn as VL}from"efficient-easel/screen/lib/document/block-types-in";var YL=()=>({}),XL=new Map;function Zq(e){let o=XL.get(e);if(o)return o;let t=new Set,r=z(ct,e);if(r)for(let s of r.seeds(YL))for(let l of VL({type:r.childType,props:s}))t.add(l);let a=xs(e);if(a){let s=0;for(let l of VL(a(YL,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return XL.set(e,n),n}function Dg(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Bg(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=mb(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)&&Zq(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var Qq="block-offer";function Ng(e=JL()){return e.cache(Qq,()=>Dg(hn(e)))}function ZL(e,o=JL()){let t=Ng(o);return t?t.offers(e):!0}var QL={name:"catalogueLabel",applies:e=>Qe(ea,e),draw(e,o){e.label=z(ea,o)}};import{jsx as zg}from"react/jsx-runtime";import{parseBlockWidthFit as aV,phoneKey as Et,tabletKey as gt}from"efficient-easel/draw";import{jsx as eV}from"react/jsx-runtime";import{phoneKey as pu}from"efficient-easel/draw";var eD={name:"sectionGroupAllow",applies:e=>bf.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Mg=new Set(Object.keys(kt)),oD={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=>!Mg.has(i)):a;s.disallow=Array.from(new Set([...s.disallow??[],...l]))}}};var rD=Array.from(new Set([...hb.map(e=>e.type),...Mg]));function Hg(e,o){return rD.includes(e)||o?.sitsInBox===!0}var oV=Array.from(new Set([...rD,...xd,"GalleryItem"])),tV={not:{context:"parentOffersPositions",is:!1}},rV={not:{context:"parentTileSlot",is:!1}},tD=[mx,pu("gridSpan"),pu("gridRowSpan")],aD={name:"cellWidth",applies:(e,o,t)=>(oV.includes(e)||Hg(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=Mo(e.fields??{},a.filter(n=>!tD.includes(n)),tV),e.fields=Mo(e.fields??{},tD,rV)},draw(e){let o=e.render;e.render=t=>{let r=qC(t.gridSpan),a=YC(t.gridRowSpan),n=JC(t[mx]),s=QC(t[pu("gridSpan")]),l=ek(t[pu("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[VC]=String(r)),a!=null&&(d[XC]=String(a)),s!=null&&(d[ok]=String(s)),l!=null&&(d[tk]=String(l));let f=n!=null?{[ZC]:n}:void 0;return eV(fe,{className:"sf-grid-cell",style:f,...d,children:i})}}};function nD(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 Ci={not:{context:"heldByANode",is:!0}};function uu(e,o){return"parent"in o?o.parent!=null:!!Xt(o.appState,e.props?.id)}function Xt(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 nn(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var nV=new Set(["Text","Heading"]),sV=new Set(["h1","h2","h3","h4","h5","h6"]);function sD(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&sV.has(o.tag)?!0:Er(o,"text").textStyle?.startsWith("heading-")===!0}var jr={not:{context:"blockOutsideBox",is:!0}},lD={all:[jr,{not:{context:"boxSharesWidth",is:!0}}]},iD={all:[jr,{not:{context:"boxSharesWidthPhone",is:!0}}]},dD={all:[jr,{not:{context:"boxSharesWidthTablet",is:!0}}]};function uD(e,o,t){return{any:[{field:gt(e),is:o},{all:[{field:gt(e),set:!1},t??{field:e,is:o}]}]}}function mD(e,o,t){return{any:[{field:Et(e),is:o},{all:[{field:Et(e),set:!1},t??{field:e,is:o}]}]}}var xD={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},lV=[[["_gBlockSize","minWidth",gt("minWidth"),Et("minWidth"),"maxWidth",gt("maxWidth"),Et("maxWidth")],jr],[["widthFit"],lD],[[gt("widthFit")],dD],[[Et("widthFit")],iD],[["width"],{all:[lD,{field:"widthFit",is:"fixed"}]}],[[gt("width")],{all:[dD,uD("widthFit","fixed")]}],[[Et("width")],{all:[iD,mD("widthFit","fixed")]}]],fD=uD("textFit","shrink",xD),cD=[[["_gText","textFit",gt("textFit"),Et("textFit")],jr],[["minFont"],{all:[jr,xD]}],[[gt("minFont")],{all:[jr,fD]}],[[Et("minFont")],{all:[jr,mD("textFit","shrink",fD)]}]],mu=(e,o)=>Xt(o.appState,e.props?.id),xu=e=>!!e&&typeof e.type=="string"&&hd(e.type)!==null,Wg=e=>(e.type==="Flex"||e.type==="HeroGroup")&&_n(e.type,e.props?.direction)==="row",$g=e=>{let o=aV(e);return o!==void 0&&o!=="fit"},iV={blockOutsideBox:(e,o)=>!xu(mu(e,o)),boxSharesWidth:(e,o)=>{let t=mu(e,o);return!xu(t)||!Wg(t)?!1:Gm({...t.props,direction:"row"})!==""?!0:jm(t.props?.share)!==""&&!$g(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=mu(e,o);if(!xu(t)||!Wg(t))return!1;if(aw(t.props?.[gt("columns")])!==""||Gm({...t.props,direction:"row"})!=="")return!0;let r=rw(t.props?.[gt("share")])??t.props?.share;return jm(r)!==""&&!$g(e.props?.[gt("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=mu(e,o);if(!xu(t)||!Wg(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!nw(r,t.props?.[Et("share")])&&!$g(e.props?.[Et("widthFit")]??e.props?.widthFit)}},dV=e=>/^_[gds][A-Z]/.test(e);function fV(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&&!dV(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function pD(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function cV(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return pD(o,r.indexOf("_dSize")+1,n)}return pV.has(e)&&r.includes("_gSpacing")?pD(o,r.indexOf("_gSpacing"),t):{...o,...t}}var pV=new Set(["Text","Heading"]);function uV(e,o){let{_gText:t,...r}=o;return fV(e,"_gText",r)??{...e,...o}}function mV(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",gt("textFit"),Et("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var hD={name:"blockSize",applies:(e,o,t)=>Hg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=nV.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=cV(o,e.fields??{},at(n,lV));if(r){let l=at(a,cD);if(s=uV(s,l),o==="Text"){let i=at(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,cD),d=mV(i),f=e.resolveFields,m=(u,h)=>{let I=f?f(u,h):h.fields,S=T=>sD(o,u?.props??{})?d(T??h.fields):T;return I instanceof Promise?I.then(S):S(I)};e.resolveFields=m}}e.fields=s,Ht(e,{...iV,textWrapsByDefault:l=>!sD(o,l.props??{})})},draw(e,o){xV(e,o)}};function xV(e,o){let t=e.render;e.render=r=>{let a=mp(r),n=uI(a),s=t(r),l=n&&uI(a,{atSectionLine:!0});return n===null?s:zg(hV,{size:n,sectionSize:l??n,atEdge:o===K,canvasAttrs:r.editor?.isEditing?eA(a):ID,inCell:Q1(a),fillsPhone:X1(a),widens:oA(a),children:s})}}var ID={};function hV({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=df(),d=Pr(t?"edge":"by-box"),f=d?e:o,m=f.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?zg(kE,{children:l}):l;return zg(Tr,{className:[m,u?a:"",h?Y1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==ID?{...f.attrs,...r}:f.attrs,children:I})}import{Fragment as OV,jsx as yu}from"react/jsx-runtime";import{jsx as To,Fragment as Kg}from"react/jsx-runtime";import{createContext as hs,useContext as _t}from"react";var IV=new Set(["Flex","Grid"]);function Gr(e){return typeof e=="string"&&IV.has(e)}var Ha="contentWidth",Ug="full",jg="content";function vi(e){let o=e?.[Ha];return o===Ug?!1:o===jg?!0:void 0}function gD(e,o){return e&&!o}function hu(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!Jk(e)&&!xF(e.scrollDirection)}function ki(e,o){return Gr(e)&&hu(il(o,!1))?yn({}):yn(o)}function Iu(e,o){return typeof e!="string"||!jd(e)||Js[e]==="rawMarkup"?ki(e,o).background??"full":ki(e,o).background??Gd(o).background}function gu(e){return e!=="full"}function yD(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 m=Gr(d?.type),u=(l?ki(d?.type,f).content:null)==="content"?!0:s,h=m&&(n.inBox?vi(f)??u:u),I={insideGutter:n.insideGutter||h||m&&hu(il(f,i)),inBox:n.inBox||m};for(let S of Nt({type:d?.type,props:f})){let T=f[S],P=r(T,I,u,!1,i||aa(d?.type,S));if(P!==void 0)return P}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var gV=" [--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))))]",yV="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",SV="[--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)))]",SD="max-w-[100vw]",bV=`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))] ${SD}`;function bD(e,o=!1){let t={},r=e.pad??{},a=Pk({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,m]of[["l","paddingLeft"],["r","paddingRight"]]){let u=n[m];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=br(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${gV}`:`${yV}${l?` ${s.className}`:""}`,d=o?` ${kC}${e.gutter?` ${vC}`:""}`:"";return{className:`${i} ${SV}${d}`,style:t}}function AOe(e,o=!1){let{className:t,style:r}=bD(e,o);return{className:`${t} ${bV}`,...Object.keys(r).length?{style:r}:{}}}var wV="[--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 CV="--sf-edge-beyond";function wD(e){return`max(0px,calc((${e===null?Xs:`min(${Xs},${e})`} - ${Ho}) / 2))`}var kV=`${wV} 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))] ${SD}`;function FOe(e){let{className:o,style:t}=bD(e);return{className:`${o} ${kV}`,style:{...t,[CV]:e.beyond??"0px"}}}var Pi=hs(!1);function UOe(){return _t(Pi)}function jOe({children:e}){return To(Pi.Provider,{value:!0,children:e})}var Gg=hs(!1);function qg({children:e}){return To(Gg.Provider,{value:!0,children:e})}var CD=hs(null);function Vg({ground:e,children:o}){return To(CD.Provider,{value:e,children:o})}var Yg=hs(!1);function vV(){return _t(Yg)}function kD({atTop:e,nested:o}){return To(Kg,{children:vV()?o:e})}var Ti=hs(void 0);function vD({children:e}){return To(Ti.Provider,{value:null,children:e})}function Xg(){return _t(Ti)===void 0&&!_t(Yg)&&!_t(Pi)}function Wa({own:e,followed:o}){return To(Kg,{children:Xg()?e():o()})}var PD=hs(null);function TD({value:e,children:o}){return To(PD.Provider,{value:e,children:o})}function OD({draw:e}){return To(Kg,{children:e(_t(PD))})}function GOe(){return _t(Ti)??null}function ED({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:m,outerClass:u,bleed:h=!1,siteSide:I=!1,part:S,children:T}){let P=_t(Pi),L=Pt(),C=L?` ${br(I?"site":"box").onceFrame}`:"",y=_t(Gg),b=gD(e,P),F=b&&!y,_=lt(),D=!!(l&&F),w=D?u:ko(u??"",_.className)||void 0,E=D||!_.className?i:{...i,..._.attrs},g=s?na(s,F):null,v=g&&L?{root:g.root?{...g.root,className:nt(g.root.className,!0)}:null,outer:g.outer?{...g.outer,className:nt(g.outer.className,!0)}:null}:g,O=v?.root??null,k=l&&!F?l:null,A=d&&!h?L?`${ix} ${wC(I?"site":"box")}`:ix:null,M=[F?`${o}${C}`:t,F?A:null,O?.className,k?bk:null].filter(Boolean).join(" "),G=PV(h&&F,O||k?{...a,...O?.style,...k}:a),$=_t(Ti),de=_t(CD),le=d&&f&&$===void 0?{gutter:b,...s?{pad:s.values}:{},beyond:b&&y?wD(de):"0px",...I&&b?{site:!0}:{}}:null,ee=d?To(Yg.Provider,{value:!0,children:To(Ti.Provider,{value:le,children:T})}):T,Ie=b?To(Pi.Provider,{value:!0,children:ee}):ee,ae=v?.outer??null,xe=E&&Object.keys(E).length>0?E:null,ge=To("div",{...ae?null:xe,className:!ae&&w?M?`${M} ${w}`:w:M,style:ae||!m?G:{...G,...m},"data-tab-label":n,...ae?null:S,children:y?To(Gg.Provider,{value:!1,children:b&&!h?To("div",{className:A?`${r}${C} ${A}`:`${r}${C}`,children:Ie}):Ie}):Ie}),Je=ae?To("div",{...xe,className:w?`${ae.className} ${w}`:ae.className,style:m?{...ae.style,...m}:ae.style,...S,children:ge}):ge;return _.scope(l&&F?To("div",{className:ko(ef,_.className),style:{display:"contents",...l},..._.attrs,children:Je}):Je)}function PV(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as TV}from"react/jsx-runtime";function _D({children:e}){return TV(fe,{className:IF,children:e})}function EV({side:e,children:o}){return Xg()?yu(_D,{children:yu(fe,{className:gF(e),children:o})}):yu(OV,{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=Wp(t.join);return r?yu(EV,{side:r,children:o(t)}):o(t)}}};var FD=(e,o)=>e.fields?.[o]?.type==="slot",_V=(e,o)=>FD(o,Pe)||Rd(e).some(t=>FD(o,t)),BD={name:"cardTemplateOnInsert",applies:(e,o,t)=>_V(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?_d(o,n):s==="copy"?Ed(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as Ei}from"react/jsx-runtime";import{Fragment as $a,jsx as Me,jsxs as Jg}from"react/jsx-runtime";import{createContext as Zg,useContext as Kr,useId as DV}from"react";import{REPEAT_ATTRIBUTE as NV,REPEAT_INDEX_ATTRIBUTE as MV}from"efficient-easel/draw";import{jsx as fEe}from"react/jsx-runtime";import{createContext as BV,useContext as ND,useMemo as RV}from"react";var RD="title";function LD(e){return`${e}Alt`}function AV(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={[RD]: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}=AV(n);t[r]=s,t[LD(r)]=l}}return t}function FV(e,o){return typeof o!="string"?o.flatMap(t=>FV(e,t)):e===Of||!_P(e)?[]:o==="image"?Ax(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:LD(t.key)})):o!=="text"?[]:[{key:RD,label:c("Title")},...Ax(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var MD=BV(null);function LV(){return ND(MD)?.record??null}function mEe(e){let o=LV();return o!==null&&o.type===e?o:null}function HD(){let e=ND(MD);return RV(()=>e&&e.record.type!==Of?DD(e.record,e.dateWords):null,[e])}function TEe({props:e,editing:o,children:t}){let r=Kr(Oi);return!o&&ox(e,r?.row)?null:Me($a,{children:t})}var bu=Zg(null);function OEe({field:e,children:o}){let t=Kr(bu);return Me($a,{children:o(t&&t.field===e?t.id:void 0)})}function HV(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>ox({[an]:r},o)))?.field??""}var Oi=Zg(null),Su=Zg(null),WV={label:"text-[length:var(--size-label,12px)]"},$V=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${WV.label} text-fg-dim`;function EEe({name:e,label:o,editing:t}){let r=Kr(Su)?.(e),a=sf()!=="";return r!=null&&r!==!1?a?Me(fe,{className:"contents",children:r}):Me($a,{children:r}):t?Me(fe,{className:$V,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function _Ee(){return Kr(Oi)}function Qg({type:e,props:o,children:t}){let r=Kr(Oi),a=HD(),n=r?.row??a;return Me($a,{children:t(_w(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function zV({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=DV(),{press:l,disabled:i}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return Jg("div",{...e,id:s,className:t&&!i?`${Ch} ${LE}`:Ch,children:[Me("button",{type:"button",[ME]:"",className:i?$E:WE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),Me(bu.Provider,{value:f,children:n})]})}function AEe({ownerId:e,ownerType:o,slot:t=Pe,Template:r,rows:a,items:n,fields:s,states:l,stateLine:i,actions:d,pressTitles:f,previewHover:m,fallback:u,copyAttrs:h,wrapCopy:I,rowKey:S,hostParts:T,children:P}){let L=Kr(Oi),C=Kr(bu),y=Kr(Su);if(!r||(r.blockCount??0)<=0)return Me($a,{children:u});let b=L!==null,F=kw(o),_=m??L?.previewHover,D=r.blockCount===1?Me(Kk,{children:Me(r,{className:Nk})}):Me(r,{}),w=new Set,E=(v,O)=>{if(!S)return O;let k=S(v,O);for(;w.has(k);)k=`${k}#${O}`;return w.add(k),k},g=a.map((v,O)=>{let k=l?.[O],A={row:v,index:O,ownerType:o,slot:t,item:n?.[O],nested:b,...s?{fields:s}:null,...k?{state:k}:null,...F?{linesBetween:F}:null,..._?{previewHover:_}:null},M=qh(k)?Jg($a,{children:[D,i==="under"?Me("span",{"aria-hidden":"true",className:AE}):Kh(k)?Jg("span",{"aria-hidden":"true",className:FE,children:[Me("span",{className:BE}),Me("span",{className:RE})]}):Me("span",{"aria-hidden":"true",className:_E})]}):D,G={[NV]:`${e}:${t}`,[MV]:O,...typeof h=="function"?h(A):h},$=d?.[O],de=DE(k,i),le=$?Me(zV,{attrs:{...G,...de},selected:k?.selected===!0,hover:i!=="under",action:$,titleField:HV(f,v),children:M}):C?Me("div",{...G,...de,children:Me(bu.Provider,{value:null,children:M})}):Me("div",{...G,...de,children:M}),ee=I?I(le,A):le;return Me(Oi.Provider,{value:A,children:T?Me(Su.Provider,{value:Ie=>T(A,Ie),children:ee}):y?Me(Su.Provider,{value:null,children:ee}):ee},E(A,O))});return Me($a,{children:P(g)})}var WD={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==io&&e!==xn,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)=>gv(a(),f,m=>Ow(o,d,m));r.render=d=>{let f=Av(d),m=VO(d);return d.editor?.isEditing&&l?Ei(Qg,{type:o,props:d,children:u=>Ei(l,{needles:i(d,u),styles:f,motions:m,type:o,sizeCaps:n,children:Ei(aL,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(m).length?s(d):Ei(Qg,{type:o,props:d,children:u=>Ei(oE,{needles:i(d,u),styles:f,motions:m,type:o,atEdge:o===K,sizeCaps:n,children:s(d)})})}}};import{jsx as $D}from"react/jsx-runtime";var zD={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=Sk(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?$D(fe,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},ey=["CollectionCard"],UD={name:"cardCorners",applies:(e,o,t)=>ey.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=qP(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?$D(fe,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var jD={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 KD,jsxs as UV}from"react/jsx-runtime";var jV="Flex",qD=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,VD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>qD(t,Kl)?KD(fe,{className:jc,children:t[Kl]==="empty"?null:o(t)}):o(t)}},YD={name:"headBox",applies:(e,o,t)=>e===jV&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>qD(t,Gl)?UV(fe,{className:Gc,children:[KD(Kc,{}),o(t)]}):o(t)}};import{createElement as GV}from"react";var XD={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(nr(n))return null;let s=pl(n),l=jk(s,Qv(n),{sectionClassName:pl(n,{atSectionLine:!0}),line:r});return GV($k.Provider,{value:l},a(n))}}};import{jsx as YV}from"react/jsx-runtime";import{createContext as ZD,createElement as JD,useContext as KV}from"react";var QD=ZD(null),qV=ZD(!1),s_e=QD.Provider;function VV(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function eN({name:e,editing:o,children:t}){let r=KV(QD);return o||VV(e,r?.selected??null,r?.known??[])?t:JD("div",{hidden:!0,style:{display:"none"}},JD(qV.Provider,{value:!0},t))}var XV="Flex",oN={name:"showFor",applies:(e,o,t)=>e===XV&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=n_(t[Yn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return YV(eN,{name:r,editing:a,children:o(t)})}}};var tN=_f.mediaFields,JV=e=>HP(e)?e.src:e;function ZV(e,o){let t=o;for(let r of z(tN,e)??[])t=WP(t,r,JV);return t}var rN={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(z(tN,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(ZV(o,r))}};import{jsx as _i,Fragment as aN,jsxs as nN}from"react/jsx-runtime";var QV="!grow-0 !shrink-0 !basis-0",e9=["[.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(" "),o9="flex flex-col w-full min-w-0 [&>*]:grow";function sN({anchor:e}){let o=fa(e),t=Pr(),r=sf();return o?_i("span",{id:o,className:ko(t?`sf-section-anchor ${QV} ${e9}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function t9({anchor:e,copiesInBox:o,children:t}){let r=df()?.columnsRow===!0,a=Gk(),n=fa(e)!=="";return o?_i(aN,{children:t}):r&&!a&&n?nN(fe,{className:o9,children:[_i(sN,{anchor:e}),t]}):nN(aN,{children:[_i(sN,{anchor:e}),t]})}var lN={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=>_i(t9,{anchor:r.anchor,copiesInBox:ot(o,r),children:t(r)})}};import{jsx as r9}from"react/jsx-runtime";var iN=Object.fromEntries(jb.map(e=>[e,"picture"])),a9={[K]:"box",Ticker:"marquee",...Object.fromEntries(Sd.map(e=>[e,"cards"])),...iN},dN=(e,o)=>!Xd.has(e)&&!!o&&typeof o.render=="function";function fN(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function cN(e,o){let t=e,r=t.render;t.render=a=>{let n=Cn(a);return!n||ot(o,a)?r(a):r9(Ac,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===K,children:r(a)})}}var pN={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&dN(e,t),panel:(e,o,t)=>fN(e,z(a9,o)??"section",t,o),draw:(e,o)=>cN(e,o)},uN={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&dN(e,t),panel:(e,o,t)=>fN(e,z(iN,o)??"block",t,o),draw:(e,o)=>cN(e,o)};import{jsx as n9}from"react/jsx-runtime";var mN=(e,o)=>!Xd.has(e)&&!!o&&typeof o.render=="function";function s9(e){let o=Oh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function xN(e,o){let t=e,r=t.render,a=s9(o),n=e.drawsPictures===!0;t.render=s=>{let l=Gn(s);return!l||ot(o,s)?r(s):n9(Qc,{views:l,...a?{origins:KO(s,a)}:{},takesViewHide:!0,atEdge:o===K,zoomInside:n?"picture":"layer",children:r(s)})}}var hN={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&mN(e,t),draw:(e,o)=>xN(e,o)},IN={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&mN(e,t),draw:(e,o)=>xN(e,o)};import{jsx as l9}from"react/jsx-runtime";import{createElement as i9}from"react";var oy=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function d9(e,o){let t=e.props??{};return oy.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Xt(o.appState,t.id))?.type===K}var ty={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!Dk.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||!oy.some(f=>f in i))return i;let d=n.get(i);if(!d){d={...i};for(let f of oy)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,m=u=>d9(i??{},d)?s(u??d.fields):u;return f instanceof Promise?f.then(m):m(f)}},draw(e,o){let t=e.render;e.render=r=>{if(ot(o,r))return t(r);let a=Wk(r);return a?l9(Tr,{className:a.className,style:a.style,...o===K?{attrs:Zb}:null,children:t(r)}):t(r)}}},gN={name:"sectionHeightFillRoot",applies:ty.applies,draw(e,o){let t=e.render;e.render=r=>{let a=ot(o,r)?null:Uk(Hk(r),Mk(r).join(" "));return i9(zk.Provider,{value:a},t(r))}}};import{jsx as Is}from"react/jsx-runtime";import{PIN_ATTR as yN,PIN_CENTRE_ATTR as f9,PIN_FRAME_ATTR as c9}from"efficient-shell/format";var bN=CN("sectionSticky",(e,o,t)=>o.isSection(e)&&!Ik.has(e)&&!!t&&typeof t.render=="function",!0),wN=CN("cardSticky",(e,o,t)=>ey.includes(e)&&!!t&&typeof t.render=="function",!1);function CN(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=hx.has(a);r.fields=u9(r.fields??{},at(n.stickFields({intro:s,screens:t,above:t,center:t}),m9(s))),t&&Ht(r,{heldByANode:uu})},draw(r,a){let n=r.render,s=hx.has(a);r.render=l=>{let i=Ix(l,{atScreenTop:s,above:t});if(!i)return!t||s||!xk(l)?n(l):Is(Wa,{own:()=>Is(fe,{[f9]:"",children:n(l)}),followed:()=>n(l)});let d=m=>{let u=Is(cf,{children:n(l)});return Is(fe,{...m.attrs,style:m.style,children:m.attrs[yN]===""?Is("div",{[c9]:"",children:u}):u})},f=t?Ix(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[yN]!==""?d(i):Is(Wa,{own:()=>d(f),followed:()=>d(i)})}}}}var SN=[wt,fs],p9="_gStick";function u9(e,o){let t=Object.keys(e),r=e[jn];if(!r){let P=t.findIndex(L=>SN.includes(L));return P<0?{...e,...o}:Object.fromEntries([...t.slice(0,P).map(L=>[L,e[L]]),...Object.entries(o),...t.slice(P).map(L=>[L,e[L]])])}let{[p9]:a,...n}=o,s=P=>P.startsWith(kn),l=Object.entries(n).filter(([P])=>!s(P)),i=Object.entries(n).filter(([P])=>s(P)),d=[r.dot,a?.dot].filter(P=>!!P),f=t.indexOf(jn),m=t.findIndex((P,L)=>L>f&&SN.includes(P)),u=m<0?t.length:m,h=t.indexOf(Fc),I=h>f&&h<u?h:u,S=P=>[P,P===jn?{...r,dot:{any:d}}:e[P]],T=[...t.slice(0,I).map(S),...l,...t.slice(I,u).map(S),...i,...t.slice(u).map(S)];return Object.fromEntries(T)}function m9(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},gk]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,Ci,{not:{field:rl,is:!0}}]}),[n,s,l]=ck;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],rr(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],rr(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(rr(["stickTopTablet","stickTop"],o,r))],[[l],a(rr(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Qd],al],[[rl],al],[[uk],a(al)],[[mk],{not:al}]]}import{jsx as x9}from"react/jsx-runtime";var kN={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(Pc.has(o))return;let t=e.render;e.render=r=>{let a=kk(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,Ck(r)),n=t(r);return a?x9(fe,{className:ef,style:{display:"contents",...a},children:n}):n}}};import{jsx as ry}from"react/jsx-runtime";var vN={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!dC.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=sx.has(o);e.fields={...e.fields,...n?r(Wd,a):r()}},draw(e,o){let t=sx.has(o),r=e.render;e.render=a=>{let n=cC(t?{...a,sectionAccent:Wd(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>ry(Tr,{className:n.className,style:d,children:s}),i=n.style;return ot(o,a)?ry("div",{className:n.className,style:{...i,display:"contents"},children:s}):Iu(o,a)!=="content"?l(i):ry(Wa,{own:()=>l({...i,...Ys(Ho)}),followed:()=>l(i)})}}},PN={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(Wd,a)})}};import{jsx as Ke}from"react/jsx-runtime";var TN=null;function ay(e){TN=e}function ON(){return TN}import{jsx as h9}from"react/jsx-runtime";var I9="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",EN=br("box").frame,Ai=`${I9} ${EN}`,g9=br("site").frame,y9=br("none").frame;function k1e(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?y9:o==="site"?g9:EN}var S9="mx-auto w-full max-w-[1280px] px-[60px]",b9="max-[960px]:px-6",v1e=`${S9} ${b9}`;function P1e({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return h9(ED,{contained:e,framedClass:`${Ai} ${o}`,fillClass:`${a} ${o}`,columnClass:Ai,style:t,pad:r,part:n,children:s})}var gs="--sf-sw-site",w9="--sf-sw-content",C9="--sf-bg-cap",k9="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",ny=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",AN="contents view-wide:[--sf-site-width:100vw]",sy=({held:e},o,t)=>e?t:Ke(fe,{className:o,children:t}),v9=`contents view-wide:[--sf-site-width:100vw] ${RB} view-wide:[--sf-site-gutter:var(--intro-edge)]`,ly=(e,o,t)=>o==="content"?`min(${In(e,t)},var(${gs}))`:In(e,t);function Fi({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Xs:null:o===null?null:ly(o,r,t)}function Bi(e,o){return o===null?e:Ke(fe,{className:"contents",style:{[gs]:Ho},children:Ke(fe,{className:k9,style:{[w9]:o},children:e})})}var P9="--sf-content-cap",T9="contents max-view-wide:[--sf-content-cap:none]";function O9({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?ly(o,r,t):r==="content"?null:`var(${gs})`}function E9(e,o){return o===null?e:Ke(fe,{className:"contents",style:{[gs]:Ho},children:Ke(fe,{className:T9,style:{[P9]:o},children:e})})}var FN=`var(${gs},${Ho})`,qr=(e,o,t="")=>e==="content"?Ke(fe,{className:t||void 0,style:Ys(Ho),children:Ke(Vg,{ground:FN,children:o})}):o;function BN(e,o,t,r,a){if(ny(t))return qr(r,sy(t,AN,Ke(qg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return qr(r,e({...o,contained:!1}),a);let n=Fi(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):qr(r,Bi(Ke(qg,{children:e({...o,contained:!0})}),n),a)}function _9(e,o,t,r,a){if(t==="hero"){let l=Bi(e(o),Fi(r,r.band));return r.band==="full"?Ke(fe,{style:{[BC]:"none",[RC]:"initial",[LC]:"initial"},children:l}):r.band==="content"?Ke(fe,{style:Ud(!0),children:l}):l}let n=r.band??"full",s=kr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return qr(n,e(o),s);let l=r.contentMax===null?Ho:ly(r.contentMax,n,r.contentMaxUnit);return Ke(fe,{className:"contents",style:{[gs]:Ho},children:qr(n,Ke(fe,{className:s||void 0,style:Ys(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=ny(r)?sy(r,v9,e({...o,fullWidth:!1})):Bi(e({...o,fullWidth:l}),l?null:Fi(r,n));return n==="content"?Ke(fe,{className:"contents",style:{[C9]:Ho},children:i}):i}switch(t){case"both":return qr(n,E9(e(o),O9(r,n)),s);case"contained":return BN(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let l=ny(r),i=r.content==="full"&&!l?"full":"page",d=l?sy(r,AN,e({...o,widthMode:i})):Bi(e({...o,widthMode:i}),r.content==="full"?null:Fi(r,n));return t==="productGrid"&&!r.own?n==="content"?Ke(nc,{className:s?`${Ai} ${s}`:Ai,children:f=>Ke(fe,{className:f,children:d})}):d:qr(n,d,s)}default:return qr(n,Bi(e(o),Fi(r,n)),s)}}function _N(e,o,t,r,a){let n=a===K?"edge":"by-box",s=l=>_9(e,o,t,r,l);return n==="edge"?s(!0):kr(o)===kr(o,{atSectionLine:!0})?s(!1):Ke(lf,{line:n,draw:s})}function A9(e,o){let t=z(Js,o);if(!t)return;let r=e.render;e.render=a=>{let n=Gd(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):Ke(OD,{draw:I=>I?.background==="content"?Ke(Vg,{ground:FN,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,T=_N(r,a,t,S,o);if(!Gr(o))return T;let P=vi(a),L=P===void 0?S.content:P?"content":"full";return L===S.content?T:Ke(kD,{atTop:T,nested:BN(r,a,{...S,content:L,own:!1},S.band??"full",kr(a))})},d=ki(o,a);if(!HC(d))return l();let f=t==="rawMarkup",m=Iu(o,a),u=d.content??(f?"full":s.content),h={band:m,content:m==="content"?"content":u,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!f,siteContent:s.content};return Ke(Wa,{own:()=>Ke(TD,{value:{background:h.band,content:h.content},children:_N(r,a,t,h,o)}),followed:l})}}var F9={all:[Ci,{not:{context:"runsEdgeToEdge",is:!0}}]},RN={name:"sectionWidth",applies:(e,o,t)=>jd(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:z(Js,o)==="rawMarkup"}),a=Gr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Gr(o)?NN(o,e,n,[Ha]):n;Ht(e,{heldByANode:uu}),Gr(o)&&Ht(e,{runsEdgeToEdge:(l,i)=>hu(il(l.props??{},Fw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Mo(s,[Fo.background,Fo.content],Gr(o)?F9:Ci)},draw(e,o){A9(e,o)}};function B9(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 R9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),LN={name:"containedWidth",applies:(e,o,t)=>R9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=NN(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=dx(n?.props??{},"page"),d=f=>B9(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}=dx(t,"page");return o({...t,contained:r!=="full"})}}},L9={not:{context:"inHeroGroupRow",is:!0}},DN={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Mo(o.fields??{},["align"],L9),Ht(o,{inHeroGroupRow:(t,r)=>{let a=Xt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&_n("HeroGroup",a.props?.direction)==="row"}})}};function D9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var N9={any:[]},M9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},H9={not:{context:"widthCappedByParent",is:!0}};function NN(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Mo(t,["_gWidth",...r],N9);if(D9(t)){let a=(n,s)=>yD(s.appState?.data?.content,n.props?.id,gu(ON()));return Ht(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Mo(t,r,M9)}return Ht(o,{widthCappedByParent:(a,n)=>"parent"in n?mw(n.parent):nD({props:a.props??{}},n)}),Mo(t,r,H9)}var W9=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"]),MN={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(W9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},$9=new Set(["HeroSlide","HeroGroup"]),HN={name:"blockGroups",applies:(e,o,t)=>$9.has(e)||!o.isSection(e)&&Hp in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as iy}from"react/jsx-runtime";var z9=new Set(["Flex","Grid"]),WN=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),U9=(e,o)=>e.fields?.[o]?.ownPictures===!0,j9=["blockCount","blockIds"],G9=new WeakMap,K9=new WeakMap;function q9(e,o){let t=o?K9:G9,r=t.get(e);if(r)return r;let a=e,n=s=>iy(vD,{children:iy(cf,{ownPictures:o,children:iy(a,{...s})})});Object.assign(n,e);for(let s of j9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var $N={name:"slotsStartAfresh",applies:(e,o,t)=>!z9.has(e)&&typeof t?.render=="function"&&WN(t).length>0,draw(e){let o=WN(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=q9(s,U9(e,n)))}return t(a)}}};var V9=new Set(["Form","Stats","Logos"]);function zN(){return[...V9]}function dy(e,o,t=[]){let r=new Set(e),a=ub.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!bf.includes(d)),s=new Set([...o,...xd,...zN()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!Fd(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var Y9=[$N,rN,VD,eD,oD,bO,zD,kN,UD,kO,uN,IN,aD,RN,LN,DN,ty,eO,lN,vN,pN,hN,bN,wN,AD,PN,hD,MN,HN,GD,jD,WD,YD,oN,gN,XD,QL,BD];function UN(e,o,t){let r=o;for(let a of Y9)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as fy}from"react/jsx-runtime";import{ClockIcon as X9,DurationIcon as J9}from"efficient-easel/icons";import{MOTION_TIMING as jN}from"efficient-shell/format";import{useSelectedHost as Z9}from"efficient-easel/easel";function ys(e){let{min:o,max:t,step:r,default:a}=jN[e].duration;return Ar("Duration",fy(J9,{}),o,t,r,a,"s")}function Ss(e){let{min:o,max:t,step:r,default:a}=jN[e].delay;return Ar("Delay",fy(X9,{}),o,t,r,a,"s")}function bs(e,o){let t=e.render,r=a=>{let n=Z9();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>fy(r,{...a})}}function wu({readsSpeed:e}){return bs(ys("loop"),(o,t)=>Mp({loopDuration:o,speed:e?t?.speed:void 0}))}function Cu(){return bs(Ss("loop"),e=>hF({loopDelay:e}))}import{jsx as co}from"react/jsx-runtime";import{DirectionDownIcon as Q9,DirectionIcon as eY,DirectionLeftIcon as oY,DirectionRightIcon as tY,DirectionUpIcon as rY,EntranceBounceIcon as aY,EntranceFadeIcon as nY,EntranceFlipIcon as sY,EntranceGlideIcon as lY,EntranceRevealIcon as iY,EntranceRiseIcon as dY,EntranceScaleIcon as fY,EntranceSpinIcon as cY,NoSymbolIcon as pY}from"efficient-easel/icons";import{NoControlMark as uY,noControlField as mY}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as xY,group as hY}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as IY,ENTRANCE_FROM_DEFAULT as KN,ENTRANCE_KINDS as qN,ENTRANCE_KINDS_WITH_FROM as gY,entranceAttrs as yY,playEntrance as SY,readEntrance as bY}from"efficient-shell/format";var wY={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},CY={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},kY={top:()=>co(Q9,{}),bottom:()=>co(rY,{}),left:()=>co(tY,{}),right:()=>co(oY,{})},VN="Entrance",py=qN.filter(e=>e!=="none"),YN=e=>({any:[{field:Zo.kind,in:e},{all:[{field:Zo.kind,set:!1},{field:Qs,in:e}]}]}),GN=(e,o)=>rr(st.slice(0,st.indexOf(e)+1).reverse().map(t=>Jo(Zo.kind,t)),t=>({field:t,set:!0}),t=>t===Zo.kind?YN(o):{field:t,in:o}),vY={any:[YN(py),...st.slice(1).map(e=>({field:Jo(Zo.kind,e),in:py}))]},PY=st.flatMap(e=>[[[Jo(Zo.from,e)],GN(e,gY)],[[Jo(Zo.duration,e),Jo(Zo.delay,e)],GN(e,py)]]),TY={none:()=>co(pY,{}),fade:()=>co(nY,{}),rise:()=>co(dY,{}),scale:()=>co(fY,{}),glide:()=>co(lY,{}),bounce:()=>co(aY,{}),flip:()=>co(sY,{}),reveal:()=>co(iY,{}),spin:()=>co(cY,{})},XN="data-entrance-tile";function OY({kind:e}){let{attrs:o}=yY(bY(e,KN));return co("span",{className:"sf-entrance-stage",[XN]:e,children:co("i",{...o,children:TY[e]()})})}var EY=(e,o)=>{let t=e.querySelector(`[${XN}="${o}"] > i`);t&&SY(t)},_Y="Effect",AY=()=>Wf(Zo.kind,{label:VN,tileWord:_Y,values:qN,fallback:"none",word:e=>wY[e],picture:e=>co(OY,{kind:e}),read:(e,o)=>el(e,o).kind,preview:EY}),cy=(e,o)=>Il(Zo[e],o,(t,r)=>el(t,r)[e]),FY=IY.map(e=>({label:CY[e],value:e,picture:kY[e]()}));function At(){let e={[Hp]:hY(VN,{dot:vY}),...AY(),[Qs]:mY({type:"custom",render:()=>co(uY,{})},"always"),_cEntrance:xY(),...cy("from",An("From",co(eY,{}),FY,KN)),...cy("duration",ys("entrance")),...cy("delay",Ss("entrance"))};return at(e,PY)}import{jsx as qo}from"react/jsx-runtime";import{EntranceRevealIcon as BY,NoSymbolIcon as RY,PercentIcon as JN,ScrollFadeInIcon as LY,ScrollFadeOutIcon as DY,ScrollMoveDownIcon as NY,ScrollMoveUpIcon as MY,DurationIcon as HY,ScrollExpandIcon as WY,ScrollParallaxIcon as $Y,ScrollZoomInIcon as zY,ScrollZoomOutIcon as UY,ZoomInIcon as jY}from"efficient-easel/icons";import{customize as GY,group as KY}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EASES as qY,SCROLL_EFFECTS as QN,SCROLL_EFFECTS_WITH_ZOOM as VY,SCROLL_END as YY,SCROLL_START as XY,SCROLL_ZOOM as JY}from"efficient-shell/format";var eM="Scroll",oM={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",expand:"Expand"},ZY={linear:"Linear",smooth:"Smooth",arrive:"Ease out"},tM={none:()=>qo(RY,{}),"zoom-in":()=>qo(zY,{}),"zoom-out":()=>qo(UY,{}),"fade-in":()=>qo(LY,{}),"fade-out":()=>qo(DY,{}),"move-up":()=>qo(MY,{}),"move-down":()=>qo(NY,{}),reveal:()=>qo(BY,{}),parallax:()=>qo($Y,{}),expand:()=>qo(WY,{})},QY=QN.filter(e=>Qe(oM,e)&&Qe(tM,e)),eX="Effect",rM=QN.filter(e=>e!=="none"),ZN=(e,o)=>rr(st.slice(0,st.indexOf(e)+1).reverse().map(t=>Jo(eo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),oX={any:st.map(e=>({field:Jo(eo.effect,e),in:rM}))},tX=st.flatMap(e=>[[[Jo(eo.zoom,e)],ZN(e,VY)],[[Jo(eo.start,e),Jo(eo.end,e),Jo(eo.ease,e)],ZN(e,rM)]]),rX=()=>Wf(eo.effect,{label:eM,tileWord:eX,values:QY,fallback:"none",word:e=>oM[e],picture:e=>tM[e](),read:(e,o)=>Kt(e,o).effect}),uy=(e,o,t,r,a)=>Il(e,Ar(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Kt(n,s)[o]),aX=()=>Il(eo.ease,Ff("Speed",qo(HY,{}),qY.map(e=>({label:ZY[e],value:e})),"linear"),(e,o)=>Kt(e,o).ease);function za(){let e={[jn]:KY(eM,{dot:oX}),...rX(),[Fc]:GY(),...uy(eo.zoom,"zoom","Zoom",qo(jY,{}),JY),...uy(eo.start,"start","Start",qo(JN,{}),XY),...uy(eo.end,"end","End",qo(JN,{}),YY),...aX()};return at(e,tX)}import{jsx as Bo}from"react/jsx-runtime";import{AccentIcon as nX,ContrastIcon as sX,EyeIcon as lX,ExpandIcon as iX,FinishIcon as dX,ImagesIcon as fX,NoSymbolIcon as nM,HoverLiftIcon as cX,HoverNextImageIcon as pX,HoverRotateIcon as uX,HoverZoomIcon as sM,OpacityIcon as mX}from"efficient-easel/icons";import{customize as xX,describedAs as lM,group as hX}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as iM}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as So}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as IX,noControlField as gX}from"efficient-easel/screen/lib/document/panel-no-control-mark";var ku=e=>So("desktop",hX("Hover",{dot:e})),dM=()=>So("desktop",xX()),yX="What this does when a shopper points at it, or taps it on a phone.",SX="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",bX="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; a phone shows the picture as it is. Black and white shows it in grey until then.",wX="What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos; a phone shows the picture as it is. Black and white shows it in grey until then.",CX="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",kX="What each card does when a shopper points at it. Show next image covers the card with this product's photos; a phone shows the card as it is. Rotate turns the wheel picture.",vX="Which of the product's pictures the card shows.",PX="Same finish shows the photos of the finish the card shows, else the first group.",TX="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",OX={none:()=>Bo(nM,{}),nextImage:()=>Bo(pX,{}),rotate:()=>Bo(uX,{}),zoom:()=>Bo(sM,{}),lift:()=>Bo(cX,{}),mono:()=>Bo(sX,{})};function my(e,o){let t=iM({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(Am[r]),picture:OX[r]()})),fallback:o});return lM(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Am[r]}))})}function fM(){return{[wt]:ku({field:rt,in:Lm.filter(e=>e!=="none")}),[rt]:So("desktop",{...my(Lm,"none"),description:yX})}}function cM(e){let o=zb(e),t=wd(),r=XP(Bb);return{[wt]:ku({any:[o,t]}),[Ge.kind]:So("desktop",{...bs(my(_b,e),(a,n)=>Wb(n??{},e)),description:kX}),...xy(t),[Ab]:gX({type:"custom",render:()=>Bo(IX,{})},"always"),_cHover:dM(),[Ge.angle]:So("desktop",ro(bs(r,a=>$b(a)),o)),[Ge.duration]:So("desktop",ro(ys("hover"),o)),[Ge.delay]:So("desktop",ro(Ss("hover"),o))}}function xy(e){let o=Ff("Type",Bo(fX,{}),Rb.map(a=>({value:a,label:Lb[a]})),bd.kind),t=An("Group",Bo(dX,{}),Db.map(a=>({value:a,label:Nb[a]})),bd.group),r=An("Covers",Bo(iX,{}),Mb.map(a=>({value:a,label:Hb[a]})),bd.cover);return{[Ge.mediaKind]:So("desktop",ro({...o,description:vX},e)),[Ge.mediaGroup]:So("desktop",ro({...t,description:PX},e)),[Ge.cover]:So("desktop",ro({...r,description:TX},e))}}function hy(e,o="",t=Wm.includes(o)){let r=$m(e),a=Yb(e);return{[wt]:ku(r),[Ge.kind]:Iy(Ub,e,SX),...Wm.includes(o)?xy(wd()):{},_cHover:dM(),...t?pM():{},[Ge.duration]:So("desktop",ro(ys("hover"),a)),[Ge.delay]:So("desktop",ro(Ss("hover"),a))}}function pM(e=!1){let o=a=>e?a:ro(a,Vb()),t=Ar("Zoom",Bo(sM,{}),dn.min,dn.max,dn.step,dn.min,dn.unit),r=Ar("Darken on hover",Bo(mX,{}),Pn.min,Pn.max,Pn.step,Pn.fallback,Pn.unit);return{[Nm.zoom]:So("desktop",o(t)),[Nm.darken]:So("desktop",o(r))}}function Iy(e,o,t){let r=So("desktop",{...bs(my(e,o),a=>Kb({[rt]:a},o,e)),description:t});return Object.assign(r,{[uM]:o})}var uM="sfPictureResting",aM=new WeakMap;function PFe(e,o,t){let r=e[Ge.kind],a=r?.[uM];if(!r||!a)return e;let n=o.props?.[rt]==="nextImage",s=n?null:Dd(t.appState,o.props?.id);if(!n&&!Sd.includes(String(s?.type??"")))return e;let l=aM.get(e);return l||(l={...e,[Ge.kind]:Iy(Dm,a,bX)},aM.set(e,l)),l}var EX="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.",_X={none:()=>Bo(nM,{}),[Fm]:()=>Bo(nX,{})},TFe=So("desktop",{...lM(iM({label:c("Hover effect"),options:Bm.map(e=>({value:e,label:c(Rm[e]),picture:_X[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Bm.map(e=>({value:e,label:Rm[e]}))}),description:EX}),AX=So("desktop",{...An("Show",Bo(lX,{}),[{value:Hm,label:"Always"},{value:Mm,label:"On card hover"}],Hm),description:CX});function mM(){let e={any:[$m("none"),{field:rt,is:Fm},{field:oa,is:Mm}]},{[wt]:o,[Ge.kind]:t,...r}=hy("none","",!0);return{[wt]:ku(e),[Ge.kind]:t,[oa]:AX,...xy(wd()),...r,...pM(!0)}}var OFe=Iy(Dm,"none",wX);import{jsx as Ri}from"react/jsx-runtime";import{isNodeList as LX}from"efficient-easel/data";import{useEasel as DX}from"efficient-easel/easel";import{hiddenInView as NX,hiddenKeyOf as gy,hidePatch as MX,slotChildName as HX,slotChildRowName as WX}from"efficient-easel/draw";var FX=new Set(["BookingBox","SubmitBox"]);function BX(e){return typeof e=="string"&&FX.has(e)}var RX=aT(BX,HT);function vu(e,o){return RX(e)||yT(o)}var Pu=(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 $X}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as zX}from"efficient-easel/screen/lib/document/panel-no-control-mark";var xM="notCardOfTemplate",hM={not:{context:xM,is:!0}},yy={any:[kd,hM]},VFe={[xM]:(e,o)=>{let t=tx(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Tu(e){let o=e.props?.content;return LX(o)?o:[]}var Eu=(e,o)=>NX(e.props??{},o),UX=(e,o)=>e.props?.[gy(o)]!==void 0;function IM(e,o=()=>!1,t="desktop"){return Tu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Tu(r).length&&!Eu(r,t)?IM(r,o,t):o(r)?[]:[r])}function jX(e,o,t,r="desktop"){let a=IM(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:!Eu(l,r)}})}function Ou(e,o,t){let r=a=>t==="desktop"?Eu(a,t):UX(a,t);return Tu(e).flatMap(a=>r(a)?o(a)?[]:[a,...Ou(a,o,t)]:Ou(a,o,t))}function GX(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===gy("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 Sy(e,o,t){let r=Tu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=GX(s.props,t(s.props));i!==s.props&&(l={...s,props:i})}else l=Sy(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function gM(e,o,t,r="desktop"){return Sy(e,o,a=>r==="desktop"&&Eu({props:a},r)===!t?{}:MX(a,r,!t))}function KX(e,o,t){return t==="desktop"?gM(e,o,!0,t):Sy(e,o,()=>({[gy(t)]:void 0}))}function qX(e,o,t,r,a,n){return HX(e).trim()?t(e):Pw({ownerType:o,owner:r,fields:a,slot:n},Wt(e.props))?.label??t(e)}var VX="This page is read-only.";function YX({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>WX(u,n,ln,void 0,Pu),f=u=>vu(u.type,u),m=jX(e,u=>qX(u,o,d,t,r,a),f,i);return m.length?Ri(jx,{parts:m,changed:Ou(e,f,i).length>0,shown:u=>m.find(h=>h.id===u)?.shown??!0,disabledReason:l?VX:void 0,onPress:(u,h)=>s(I=>gM(I,u,h,i)),onReset:()=>s(u=>Ou(u,f,i).reduce((h,I)=>KX(h,String(I.props.id),i),u))}):Ri(zX,{})}function XX(){try{let e=DX(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=tx(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:Bw(e.appState,r),slot:Aw(e.appState,t.props?.id)??void 0}}catch{return null}}function JX({readOnly:e,view:o}){let t=XX(),r=xl();return t?Ri(YX,{...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}})}}):Ri(jx,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function YFe(e){return ro($X(e,{type:"custom",render:({readOnly:o})=>Ri(JX,{readOnly:o,view:e})}),hM)}import{customize as lJ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as by}from"react/jsx-runtime";import{DirectionIcon as ZX,LoopMarqueeIcon as QX,NoSymbolIcon as eJ}from"efficient-easel/icons";import{customize as oJ,describedAs as tJ,group as rJ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as aJ}from"efficient-easel/screen/lib/document/effect-tiles";function wy(){return RT("Direction",HI,gi,"A marquee cannot run diagonally, so the corners are not answers.",by(ZX,{}),BT)}var Cy=e=>rJ("Loop",e?{dot:e}:void 0),nJ={none:()=>by(eJ,{}),scroll:()=>by(QX,{})};function sJ(){let e=aJ({label:c("Loop"),options:Np.map(({value:o,label:t})=>({value:o,label:c(t),picture:nJ[o]()})),fallback:MI});return tJ(e,{type:"select",label:"Loop",options:Np.map(({value:o,label:t})=>({value:o,label:t}))})}function yM(){return{[fs]:Cy(Ii),loop:sJ(),_cLoop:oJ(),scrollDirection:ro(wy(),Ii),loopDuration:ro(wu({readsSpeed:!1}),Ii),loopDelay:ro(Cu(),Ii)}}var SM={field:oa,set:!0};function iJ(){let e=mM(),o=[wt,rt],t=Mo(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==oa),kd),r=Mo(t,[oa],SM),a=Mo(r,[rt],yy);return Mo(a,[wt],{any:[yy,SM]})}function _u(e,o=""){switch(e){case"section":case"block":return{...At(),...za()};case"box":return{...At(),...za(),...yM(),...iJ()};case"picture":return{...At(),...za(),...hy(Gb(o),o)};case"textPart":return{...At(),...za(),...fM()};case"cards":return{...At(),...za(),...cM(Fb(o))};case"marquee":return{...At(),...za(),[fs]:Cy(),_cLoop:lJ(),scrollDirection:wy(),loopDuration:wu({readsSpeed:!0}),loopDelay:Cu()}}}import{blockSizeFieldSet as QJ}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as eZ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as bM,Fragment as dJ,jsxs as fJ}from"react/jsx-runtime";import{useSelectedHost as wM}from"efficient-easel/easel";import{VIEW_TIERS as cJ,viewKeyAt as pJ}from"efficient-easel/draw";var CM=e=>cJ.find(o=>Object.values(Io).some(t=>pJ(t,o)===e))??"desktop";function uJ(e,o,t){let r=e(o),a=CM(t);return{top:of(r,"top",a),bottom:of(r,"bottom",a)}}var mJ=e=>e.startsWith(Io.bottom)?"bottom":"top";function xJ(e,o,t,r){let a=mJ(r);return o(t,of(e(t),a,CM(r)),a)}function hJ({frameOf:e,note:o,rowKey:t}){let r=wM()?.values,a=r?xJ(e,o,r,t):null;return a?bM("p",{className:"es-field-hint",children:a}):null}var IJ=new Set(vn());function kM(e,o,t){let r=Fr({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=wM()?.values;return n?uJ(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!IJ.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>fJ(dJ,{children:[s(l),bM(hJ,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as gJ}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as yJ,deviceMetaOf as TM}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as vy,SETTINGS_BUCKETS as SJ}from"efficient-easel/panel";import{BUCKET_KEY as bo,DESIGN_GROUP_KEY as ws}from"efficient-easel/screen/lib/document/field-buckets";var Li=SJ;var bJ="Editor only \u2014 not shown live",Py={"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",[bJ]:"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"},OM={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},EM={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function vM(e,o,t){let r=`${e}.${o}`;return z(EM,r)??z(OM,r)??z(Py,t)}function wJ(e){return e==="Animation"?[bo.Animation]:[bo.Design,ws[e]]}function Au(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=TM(r),n=ir(a?a.inner:r),s=n?z(Py,n.label):void 0;if(s)for(let l of wJ(s))o.includes(l)||o.push(l)}return o}var BBe=[...Au(Fr({tablet:!0,siteSide:!0}),Rn("full"),Ln(),Dn(),hl()),...Object.keys(Fr({tablet:!0,siteSide:!0})),...Object.keys(Rn("full")),...Object.keys(Ln()),...Object.keys(Dn()),...Object.keys(hl())],RBe=[...Au(Fn()),...Object.keys(Fn())],LBe=[...Au(Bn()),...Object.keys(Bn())],DBe=[...Au(At()),...Object.keys(At())],NBe=Object.keys(NT()),MBe=Object.keys(MT()),CJ={"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)"},_M={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},ky={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Fr({tablet:!0,siteSide:!0}),...Rn("full"),...Ln(),...Dn(),...Fn(),...Bn(),...At()};for(let o of Object.keys(ky)){let t=ir(e[o]),r=t?z(Py,t.label):void 0;if(!t||t.level!==2||!r||!_M[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 kJ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),vJ=new Map([[bo.Design,"Content"],[bo.Animation,"Animation"],...vy.map(e=>[ws[e],e])]);function PJ(e){let o=`${e}.`;return Object.keys(CJ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function TJ(e,o){let t=TM(e),r=gJ(o);return t?yJ(t.tier,r):r}function OJ(e,o){let t=ir(o);return t?e==="Content"||e==="Animation"?vT(o,t.label):PT(o):o}function PM(e){return e==="Design"?vy:["Animation"]}function Fu(e,o){let t=[],r=new Set(PJ(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=ir(h);if(kJ.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=vJ.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===bo.Design||u===bo.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)||Qe(ky,u)){let P=vM(o,u,I.label);if(I.level!==2||!P||!_M[P].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 ${P??"(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:P,entries:[],uniform:Qe(ky,u)});continue}let T=vM(o,u,I.label);if(!T)throw new Error(`${o}.${u}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...vy,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:T,entries:[[u,I.level===2?h:TJ(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>ir(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",EM],["KEY_GROUP",OM]]){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=Li.filter(u=>PM(u).some(h=>d.has(h))),m={};for(let u of f){m[bo[u]]=Mf(u,u===f[0]?f:null);for(let h of PM(u)){if(!d.has(h))continue;let I=t.filter(P=>P.place===h),S=I.findIndex(P=>P.adopted);S>0&&I.unshift(...I.splice(S,1));let T=I.filter(P=>P.uniform);if(T.length>0){let P=I.filter(C=>!C.uniform),L=I[0]?.adopted?1:0;I.splice(0,I.length,...P.slice(0,L),...T,...P.slice(L))}u==="Design"&&(m[ws[h]]=Hx(h));for(let P of I)for(let[L,C]of P.entries)m[L]=OJ(h,C)}}return m}function AM(e){return bo.Design in e?e:{[bo.Design]:Mf("Design",null),[ws.Content]:Hx("Content"),...e}}function FM(e){return Li.some(o=>bo[o]in e)}function Bu(e){let o=Li.filter(r=>bo[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[bo[r]]=Mf(r,r===o[0]?o:null);return t}import{jsx as Ru}from"react/jsx-runtime";import{WidthIcon as EJ}from"efficient-easel/icons";import{SettingsField as _J,SettingsSwitch as AJ}from"efficient-easel/panel";import{group as FJ,iconOf as BJ,sharedStyleKinds as RJ}from"efficient-easel/screen/lib/document/box-fields";var LJ="Gutter";function DJ({value:e,onChange:o,labelId:t}){let r=gu(ml()),a=vi({[Ha]:e})??r,n=s=>o(s?r?void 0:jg:Ug);return Ru(_J,{label:c(LJ),labelId:t,icon:BJ(Ru(EJ,{})),action:Ru(AJ,{checked:a,onChange:n,ariaLabelledBy:t})})}function BM(){return RJ({_gWidth:FJ(Hf),[Ha]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>Ru(DJ,{value:e,onChange:o,labelId:`${t??r??Ha}-label`})}})}import{jsx as Oy}from"react/jsx-runtime";import{group as NJ,sharedStyleKinds as LM}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as MJ}from"efficient-easel/screen/lib/document/device-fields";var HJ="Content cannot be wider than the background.",Ty=e=>c(e==="content"?"Content width":"Full width");function DM(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=vo(),n=ye(o)??gn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var WJ={read:yn},$J={read:yn,drawsFullOnItsOwn:!0},zJ={read:MC,clearOnContent:{fullWidth:void 0}};function UJ({source:e}){let o=e.read(zx()),t=xl(),r=DM(e);return Oy($T,{value:o.background??r.background,changed:o.background!==null,detail:Ty(r.background),onChange:a=>t(WC(a)),onReset:()=>t(cx("background"))})}function jJ({source:e}){let o=e.read(zx()),t=xl(),r=i=>t({...i,...e.clearOnContent}),a=DM(e),n=(o.background??a.background)==="content",s=TT({row:fx,label:WT,grid:{min:gn.min,max:n?a.px:gn.max,step:gn.step},valueKey:Fo.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return Oy(zT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:gn.max,changed:o.content!==null,detail:a.content==="full"?Ty("full"):`${Ty("content")} ${a.px}px`,fullClosed:n,hint:n?HJ:void 0,onMode:i=>r($C(i)),onPx:i=>r({...zC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(cx("content"))})}var RM=(e,o)=>MJ("desktop",{type:"custom",render:()=>Oy(e,{source:o})}),NM=e=>({[Fo.background]:RM(UJ,e),[Fo.content]:RM(jJ,e),[Fo.contentMax]:$x(),...YP(fx,Fo.content)});function MM(e){let o=e?.drawsFullOnItsOwn?$J:WJ;return LM({_gWidth:NJ(Hf),...NM(o)})}function sRe(){return LM({...NM(zJ),fullWidth:$x()})}import{deviceMetaOf as WM}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as GJ}from"efficient-easel/screen/lib/document/panel-no-control-mark";function KJ(e,o){let t=WM(o),r=t?t.inner:o;if(ir(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=GJ(r);return a==="always"?!1:a==="authored-copy"?ov(e):!0}function HM(e){let o=WM(e),t=o?o.inner:e,r=ir(t);return r?kT(t)?0:r.level:null}function qJ(e,o,t){return t?o===0&&e===bo.Design||o===1&&e===ws.Content:!1}var VJ=new WeakMap,YJ=new WeakMap;function $M(e,o="section"){let t=o==="page"?YJ:VJ,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([m,u])=>({key:m,field:u,level:HM(u),draws:KJ(m,u)||o==="page"&&HM(u)===null&&Cx(m,u)})),n=o==="section"&&a.some(m=>Cx(m.key,m.field)),s=new Set;for(let m=0;m<a.length;m++){let u=a[m].level;if(u===null)continue;let h=0;for(let I=m+1;I<a.length;I++){let S=a[I].level;if(S!==null&&S<=u)break;a[I].draws&&(h+=1)}h===0&&!qJ(a[m].key,u,n)&&s.add(a[m].key)}let l=n&&FM(e),i=l&&!(bo.Design in e);if(!s.size&&!i)return t.set(e,e),e;let d={};for(let m of a)s.has(m.key)||(d[m.key]=m.field);let f=Bu(l?AM(d):d);return t.set(e,f),f}import{isShown as XJ,showWhenFactReaders as JJ}from"efficient-shell/format";var zM=new WeakMap,ZJ=new Set(Object.values(bo));function UM(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=JJ(r,o,t),l=MP(t,{...s,parentOffersPositions:()=>{let I=Xt(t.appState,n);return I===void 0?void 0:rk(I,n)},parentTileSlot:()=>{let I=Xt(t.appState,n);return I===void 0?void 0:ak(I,n)},heroGroupDepth:()=>qd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,S]of Object.entries(e)){let T=pw(S);!T||NP(T,"device")||XJ(T,a,l)||i.push(I)}if(i.length===0)return e;let d=zM.get(e);d||zM.set(e,d=new Map);let f=i.join("\0"),m=d.get(f);if(m)return m;let u=new Set(i),h={};for(let[I,S]of Object.entries(e))u.has(I)||(h[I]=S);return i.some(I=>ZJ.has(I))&&(h=Bu(h)),d.set(f,h),h}var jM={spacingFields:AT,sidesPaddingFields:Fr,ownPaddingFields:kM,sectionShapeFields:Bn,cardShapeFields:OT,cellWidthFields:ET,widthField:Rn,boxGutterFields:BM,sectionOwnWidthFields:MM,heightFields:Ln,anchorFields:Dn,customCssFields:FT,stickFields:hl,sectionThemeFields:Fn,animationTabFields:_u,blockSizeFields:({tablet:e,...o}={})=>QJ({...o,shorten:!0,say:VP,lengthUnits:Af,...e?{phone:eZ}:{}}),assignSectionGroups:Fu,dropEmptyHeadings:$M,rowsShownForNode:UM,SECTION_THEME_FOLLOW_LABEL:hT,BLOCK_THEME_FOLLOW_LABEL:IT,PartAnchors:wL};function Lu(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=Lu(s.arrayFields,o,t),d=Lu(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 oZ(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=UN(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 tZ(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];rZ(e,o,a);for(let n of a){let s=n.components.filter(Fd);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(!Bd(n))continue;let s=Ad(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 Ey(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(...Ey(e,o,s.arrayFields,`${l}.`),...Ey(e,o,s.objectFields,`${l}.`))}return a}function rZ(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${xn}". 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(xn)&&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=Ey(xn,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function GM(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Dg(o);if(tZ(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([m])=>m).filter(m=>m in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(m=>`"${m}"`).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=m=>a?a.offers(m):!0,i=Object.keys(n).filter(m=>!l(m)),d={};for(let[m,u]of Object.entries(n)){let h=a?Lu(u?.fields,l,i):u?.fields;d[m]=h===u?.fields?u:{...u,fields:h}}if(t.length>0){let m=new Set(t.map(([I])=>I)),u=e.categories?.structure?.components??[],h={...dy(Object.keys(n),u,m),isHostBlock:I=>m.has(I),inspector:jM};for(let[I,S]of t){let T=oZ(I,S,h),P=Lu(T.fields,l,i);d[I]=P===T.fields?T:{...T,fields:P}}}let f=[];for(let[m,u]of Object.entries(e.categories??{})){let h=u?.components??[],I=h.filter(l);I.length===h.length?f.push([m,u]):I.length>0&&f.push([m,{...u,components:I}])}for(let m of r){let u=m.components.filter(T=>T in d&&l(T));if(u.length===0)continue;let h=f.find(([T])=>T===m.key);if(h){let[,T]=h,P=new Set(T.components??[]);h[1]={...T,components:[...T.components??[],...u.filter(L=>!P.has(L))]};continue}let I=[m.key,{title:m.title,components:u}],S=m.before?f.findIndex(([T])=>T===m.before):-1;S===-1?f.push(I):f.splice(S,0,I)}return{...e,components:d,categories:Object.fromEntries(f)}}function KM(){let e=sZ();return aZ(()=>GM(nZ(e),hn(e)),[e])}import{jsx as Fy,Fragment as PZ,jsxs as TZ}from"react/jsx-runtime";import{useContext as OZ,useEffect as EZ,useMemo as $u,useRef as pH}from"react";import{EaselCanvas as _Z,repeatCopyAt as AZ,useEasel as FZ}from"efficient-easel/easel";import{jsx as _y}from"react/jsx-runtime";import{useEffect as fZ,useState as cZ}from"react";import{Banner as pZ}from"efficient-shell/ui";import{useSyncExternalStore as lZ}from"react";import{useScreenDocument as iZ}from"efficient-easel/screen/components/ScreenDocumentContext";var dZ=()=>()=>{},qM=()=>null;function Du(e){return lZ(e?e.subscribe:dZ,e?e.state:qM,e?e.state:qM)}function Nu(){let{adapter:e}=iZ();return e?.pinnedChrome}var Mu={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."},uZ={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."},mZ=Mu.load,xZ=Mu.lock,hZ=Mu.conflict,IZ=Mu.save;function gZ(e){if(!e)return null;if(e.loadFailed)return c(mZ);if(e.lockHolder)return c(xZ,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(hZ);if(e.saveFailed)return c(IZ);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(uZ[o.problem],{section:t,name:r})}function yZ({report:e}){let o=gZ(Du(e)),[t,r]=cZ(null);return fZ(()=>{o||r(null)},[o]),!o||t===o?null:_y("aside",{className:"sf-canvas-notice",children:_y(pZ,{tone:"warning",onDismiss:()=>r(o),children:o})})}function VM(){return _y(yZ,{report:Nu()})}import{jsx as Wu}from"react/jsx-runtime";import{useState as fH}from"react";import{Banner as bZ,Button as wZ}from"efficient-shell/ui";import{UndoIcon as CZ}from"efficient-shell/icons/efficient";import{useScreenDocument as kZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as JM}from"react";var Di=!1,Cs=null,Ay=new Set;function Mi(){for(let e of Ay)e()}function ZM(e){return Ay.add(e),()=>{Ay.delete(e)}}function QM(){Di||(Di=!0,Mi())}function eH(){Di&&(Di=!1,Mi())}function YM(){return Di}function oH(){return JM(ZM,YM,YM)}function XM(){return Cs}function Hu(){Cs&&(Cs=null,Mi())}function tH(){return JM(ZM,XM,XM)}var Ni=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function rH(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Ni;let n=await e.restore(o,t);return Lf(n.liveState),a(),n}async function aH({access:e,version:o,page:t,...r}){let a=await rH(e,o.id,t?{page:t.id}:{},r);Cs={title:SZ(o,t??null),undo:a.undo},Mi()}async function nH({access:e,...o}){let t=Cs?.undo;t&&(await rH(e,t,{},o),Cs=null,Mi())}function sH(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function SZ(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 lH(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[$t("{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(nx(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function iH(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function dH(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=nx(),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 vZ}from"efficient-easel/easel";function cH(){let e=tH(),{adapter:o,flushSave:t,reloadFromServer:r}=kZ(),a=o.siteVersions,[n,s]=fH(!1),[l,i]=fH(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await nH({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=vZ({onPress:()=>{d()},busy:n});return e?Wu("aside",{className:"sf-canvas-notice",children:Wu(bZ,{tone:l?"danger":"info",title:e.title,onDismiss:Hu,action:a&&e.undo?Wu(wZ,{variant:"secondary",size:"sm",leftIcon:Wu(CZ,{}),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 BZ,REPEAT_ATTRIBUTE as By,REPEAT_INDEX_ATTRIBUTE as Ry}from"efficient-easel/draw";import{usePreviewParts as RZ}from"efficient-easel/draw/client";import{ScreenDocumentContext as LZ}from"efficient-easel/screen/components/ScreenDocumentContext";function uH(e){let{mirrorHostStyles:o}=gl(),t=l0(),r=Ly(),a=ml(),n=OZ(LZ),s=lT(n?.docId??null),l=FZ(T=>T.appState.data),i=iT(s,l),d=JSON.stringify(i),f=$u(()=>i,[d]),m=$u(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);EZ(()=>(ay(a),()=>ay(null)),[a]);let u=pH(null),h=DZ(u),{onDocument:I}=e,S=T=>{u.current=T,I?.(T)};return TZ(PZ,{children:[Fy(cH,{}),Fy(VM,{}),Fy(_Z,{...e,onDocument:S,typing:h,metadata:m,height:"fill",mirrorStyles:o,frameWrapper:oc})]})}function Ly(){let{sectionBackgroundWidth:e,themeFromDocument:o}=vo(),t=ml();return $u(()=>UC(o?null:e,t),[e,t,o])}function DZ(e){let o=Gf(),t=RZ(),r=pH({parts:t});return r.current={parts:t},$u(()=>{let a=(n,s)=>{let l=Vf(n,o),i,d=null,f=s??(l?null:lh(null,e.current,n)),m=!l&&f?AZ(f):null,u=m?BZ(n):null;if(m&&f&&u?.propKey){l=Xf({...m,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let T=f.closest(`[${By}][${Ry}]`),P=`[${By}="${Yf(T?.getAttribute(By)??"")}"][${Ry}="${Yf(T?.getAttribute(Ry)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(P)??null}if(!l)return null;let h=f,I=()=>(h=lh(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?uf(mf(S)):void 0,colorNameOf:pf}}:null};return{at:n=>{let s=n.closest(`[${ze}]`),l=s?.getAttribute(ze);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>O0(n,o),copyValue:n=>T0(n,o),onChange:n=>{if(!n.typing){ih(null);return}let s=n.element.closest(`[${ze}]`)?.getAttribute(ze)??null;ih(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var zu=[{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"]}],ks="all",Uu="template";function mH(e){for(let o=0;o<zu.length;o++){let t=zu[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function xH(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>mH(o.s.slug)-mH(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function Dy(e){return e.filter(o=>o.source==="template")}function hH(e){let o=new Set(xH(e).map(t=>t.slug));return zu.filter(t=>t.slugs.some(r=>o.has(r)))}function IH(e,o){if(e===Uu)return Dy(o);let t=xH(o);if(e===ks)return t;let r=zu.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var gH=3;function yH(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function CH({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=zZ(),{adapter:n,siteId:s,templateId:l}=$Z(),i=Ao(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=HZ(()=>s?{siteId:s}:{},[s]),m=KM(),u=Ly(),[h,I]=Ny(null),[S,T]=Ny(ks),[P,L]=Ny(null),C=WZ(null),y=MZ();NZ(()=>{if(!e)return;if(T(ks),!d){I([]);return}let O=!0;return I(null),i.starters(f).then(k=>O&&I(k),()=>{O&&(I([]),wH.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{O=!1}},[e,d,i,f]);let b=async(O,k)=>{if(!P){L(O);try{r(await k())}catch{wH.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{L(null)}}},F=()=>{if(!n.createPage)return;let O=c("New page");b("blank",()=>n.createPage({slug:bH(O,t),title:O,layout:{}}))},_=O=>{b(O.id,()=>i.createFromStarter(O.id,{title:O.title,slug:bH(O.slug,t),...f}))},D=h??[],w=hH(D),E=IH(S,D),g=yH(gH,E),v=SH("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Oo(My,{label:c("All pages"),active:S===ks,onClick:()=>T(ks)}),w.map(O=>Oo(My,{label:c(O.label),active:S===O.key,onClick:()=>T(O.key)},O.key)),Dy(D).length>0?Oo("div",{className:"sf-add-page-group",children:Oo(My,{label:c("From your template"),active:S===Uu,onClick:()=>T(Uu)})}):null]});return Oo(GZ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:C,children:Oo(YZ,{sidebarTop:Oo("div",{className:"sf-add-page-blank",children:Oo(jZ,{variant:"secondary",size:"md",leftIcon:Oo(UZ,{"aria-hidden":!0}),onClick:F,disabled:!n.createPage||P!==null,children:c("Blank page")})}),sidebar:v,children:SH("div",{ref:C,tabIndex:-1,role:"region","aria-labelledby":y,className:"sf-add-page",children:[Oo(XZ,{id:y,level:2,as:"h3",children:c("Pages for your site")}),Oo(VZ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?Oo(qZ,{label:c("Loading\u2026")}):E.length===0?Oo(KZ,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Oo("div",{className:"sf-add-page-cards",children:g.map((O,k)=>Oo("div",{className:"sf-add-page-column",children:O.map(A=>Oo(ML,{starter:A,config:m,metadata:u,busy:P===A.id,onAdd:_},A.id))},k))})]})})})}import{jsx as JZ}from"react/jsx-runtime";import{createContext as ZZ,useContext as kH,useEffect as QZ,useRef as vH}from"react";var Hy=ZZ(null);function QLe({open:e,children:o}){let t=vH(!!e);return JZ(Hy.Provider,{value:t,children:o})}function PH(){let e=kH(Hy);return()=>e?.current?(e.current=!1,!0):!1}function TH(e){let o=kH(Hy),t=vH(e);t.current=e,QZ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var BH="sf-editor-pages-collapsed-groups";function gQ(){let e=$y(),{siteId:o,templateId:t}=RH(),r=Ao(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function LH({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=$y().chrome?.pageRows,n=xQ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=RH(),f=Nn(),{rows:m,reload:u,setRows:h,getRows:I}=bl(),[S,T]=Ua(""),[P,L]=Ua(!1),[C,y]=Ua(null),[b,F]=Ua(!1),_=!!Ao($y()).pages.createFromStarter,D=gQ(),[w,E]=Ua(null),[g,v]=Ua(()=>{if(typeof window>"u")return new Set;try{let W=window.localStorage.getItem(BH);return new Set(W?JSON.parse(W):[])}catch{return new Set}});OH(()=>{try{window.localStorage.setItem(BH,JSON.stringify([...g]))}catch{}},[g]);let O=W=>v(ie=>{let he=new Set(ie);return he.has(W)?he.delete(W):he.add(W),he}),k=EH(()=>RP(m??[]),[m]),A=S.trim().toLowerCase(),M=W=>!A||W.toLowerCase().includes(A),G=W=>A?!0:!g.has(W),$=EH(()=>new Set((m??[]).map(W=>W.slug)),[m]),de=()=>{if(l.pageCreationInAdminForm&&!_){n.send("storefront-editor:new-page");return}y(null),F(!0)},le=PH();OH(()=>{le()&&de()},[]);let ee=l.hasSiteSettings&&!!s.createPage,Ie=async()=>{if(!(!i||P||!s.createPage)){L(!0),y(null);try{let W=await s.createPage(ST(c("New popup"),$));await u(),e(W.slug)}catch{y(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{L(!1)}}},ae=tQ(null),[xe,ge]=Ua(null),Je=()=>{if(!ee)return de();if(xe)return ge(null);let W=ae.current?.getBoundingClientRect();W&&ge({top:W.bottom+6,right:Math.max(8,window.innerWidth-W.right)})},Ze=W=>{let ie=m??[],he=s.deletePage;if(!i||P||!he||ie.length<=1)return;let Ve=ie.findIndex(We=>We.id===W.id),ne=ie.filter(We=>We.id!==W.id),He=W.slug===d;Qf(W.id,!0),h(ne),y(null),He&&ne[0]&&e(ne[0].slug);let Yo=()=>{Qf(W.id,!1);let We=I()??[];if(We.some(Yr=>Yr.id===W.id))return;let je=[...We];je.splice(Math.max(0,Math.min(Ve,je.length)),0,W),h(je)};AH.undoable(c("Deleted \u201C{name}\u201D",{name:W.label}),{actionLabel:c("Undo"),commit:async We=>{await he(W.id,We),Qf(W.id,!1)},undo:()=>{Yo(),He&&e(W.slug)},onFail:()=>{Yo(),AH.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},mo=W=>n.send("storefront-editor:open-page",{slug:W}),qe=W=>{if(!M(W.label))return null;let ie=!t&&W.slug===d,he=l.canDeletePagesInline&&(m??[]).length>1,Ve=Ef(W),ne=BP(W),He=[...Ve?[{label:c("Dynamic"),tone:"info"}]:[],...ne?[{label:c("Lightbox"),tone:"success"}]:[],...W.draft?[{label:c("draft"),tone:"draft"}]:[]],Yo=He.length>0?He:void 0,We=!!D&&hQ(W),je=We||l.pageCreationInAdminForm||he?ju(eQ,{children:[We&&ve(Gu,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:W.label}),disabled:P,onClick:()=>E(W),children:ve(cQ,{size:13})}),l.pageCreationInAdminForm&&ve(Gu,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:W.label}),onClick:()=>mo(W.slug),children:ve(uQ,{size:13})}),he&&ve(Gu,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:W.label}),disabled:P,onClick:()=>Ze(W),children:ve(Wy,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ve(FH,{icon:ve(pQ,{size:14}),name:W.label,selected:ie,onSelect:()=>e(W.slug),badge:Yo,actions:je,rowProps:{"data-page-slug":W.slug}},W.id)},to=(W,ie,he)=>{let Ve=he.filter(Boolean);if(Ve.length===0)return null;let ne=G(W);return ju(oQ,{children:[ve(dQ,{count:Ve.length,countLabel:$t("{n} page","{n} pages",Ve.length),expanded:ne,onToggle:()=>O(W),children:ie}),ne&&Ve]},W)},Eo=(a?.rows??[]).filter(W=>M(W.label)).map(W=>{let ie=t===W.key;return ve(FH,{icon:W.icon,name:W.label,selected:ie,onSelect:()=>r(W.key),badge:{label:c("Preview"),tone:"warning"},actions:ve(Gu,{kind:"plain",label:c("Open the {name} in a new tab",{name:W.label}),onClick:()=>window.open(W.href,"_blank","noopener,noreferrer"),children:ve(Wy,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":W.key}},W.key)}),_o=l.hasSiteSettings&&!!a,xo=(()=>{if(m===null)return null;let W=[],ie=!1;for(let he of k){_o&&!ie&&he.key.startsWith("system:")&&(W.push(to("shop",a.title,Eo)),ie=!0);let Ve=he.key===FP||he.label===AP?c(he.label):he.label;W.push(to(he.key,Ve,he.rows.map(qe)))}return _o&&!ie&&W.push(to("shop",a.title,Eo)),W})();return ju("div",{className:"sf-pages",children:[ve(rQ,{icon:ve(mQ,{}),title:c("Pages"),context:f,actions:ve(aQ,{buttonRef:ae,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?xe!==null:void 0,onClick:Je,children:ve(fQ,{size:15})})}),xe&&ve(lQ,{portal:!0,style:{top:xe.top,right:xe.right},onClose:()=>ge(null),children:ju("div",{role:"menu","aria-label":c("Add"),children:[ve(_H,{role:"menuitem",onClick:()=>{ge(null),de()},children:c("Page")}),ve(_H,{role:"menuitem",disabled:P,onClick:()=>{ge(null),Ie()},children:c("Popup")})]})}),ve("div",{className:"sf-pages-find",children:ve(nQ,{type:"search",leftIcon:ve(Wy,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:S,onChange:W=>T(W.target.value),"aria-label":c("Search all pages")})}),C&&!b&&ve("div",{className:"sf-note sf-note--error",role:"alert",children:C}),xo===null?ve(sQ,{label:c("Loading\u2026")}):xo.some(Boolean)?ve(iQ,{ariaLabel:c("Pages"),className:"sf-scroll",children:xo}):ve("div",{className:"sf-note",children:S.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),D&&w&&ve(IQ,{source:{title:w.label,slug:w.slug},taken:$,host:Cf(),duplicate:W=>D(w,W),onClose:()=>E(null),onDuplicated:W=>{E(null),u(),e(W.slug)}},w.id),b?ve(CH,{open:!0,onClose:()=>F(!1),takenSlugs:$,onCreated:W=>{F(!1),u(),e(W.slug)}}):null]})}import{jsx as MH}from"react/jsx-runtime";import{createContext as wQ,useCallback as CQ,useContext as kQ,useMemo as vQ,useState as PQ}from"react";import{CanvasChromeContext as TQ}from"efficient-easel/easel";import{useSelectHandler as OQ}from"efficient-easel/draw/client";import{parseHexColor as yQ,parseOption as SQ}from"efficient-shell/format";var Ku=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],vs=Ku[0],bQ=["right","left"],ja="right";function qu(e){return Ku.includes(e??"")?e:vs}function DH(e){return SQ(bQ,ja,e)}function NH(e){return e&&yQ(e)===e.toLowerCase()?e.toLowerCase():""}var HH="chat",Vu={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:ja,launcherLabel:"",showOnPhones:!0};function ADe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:NH(e.launcherColor),launcherIcon:e.launcherIcon?qu(e.launcherIcon):"",launcherPosition:DH(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var WH=wQ({chat:Vu,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function FDe({children:e,chat:o=Vu,onChatChange:t}){let[r,a]=PQ(!1),n=CQ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=OQ(),i=vQ(()=>({selected:()=>r?HH:null,select:d=>d===HH&&s()}),[r,s]);return MH(WH.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:MH(TQ.Provider,{value:i,children:e})})}var Yu=()=>kQ(WH);import{jsx as zy}from"react/jsx-runtime";import{DesktopIcon as EQ,PhoneIcon as _Q,TabletIcon as AQ}from"efficient-easel/icons";import{VIEW_TIERS as FQ,VIEW_TIER_LABEL as BQ}from"efficient-easel/draw";var RQ={desktop:zy(EQ,{}),tablet:zy(AQ,{}),mobile:zy(_Q,{})},$H=FQ.map(e=>({id:e,get label(){return c(BQ[e])},icon:RQ[e]}));import{PreviewDeviceContext as qne}from"efficient-easel/draw/client";import{jsx as LQ}from"react/jsx-runtime";import{createContext as DQ,useCallback as zH,useContext as NQ,useMemo as MQ,useRef as HQ}from"react";var WQ=Object.fromEntries($f.map(e=>[e,{value:"",error:null}])),UH=DQ({links:jT,rows:WQ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function zDe({children:e,value:o}){let t=HQ(()=>{}),r=zH(()=>t.current(),[]),a=zH(s=>{t.current=s},[]),n=MQ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return LQ(UH.Provider,{value:n,children:e})}var Hi=()=>NQ(UH);import{jsx as $Q}from"react/jsx-runtime";import{createContext as zQ,useContext as UQ,useMemo as jQ,useState as GQ}from"react";var jH=zQ(null);function KDe({children:e}){let[o,t]=GQ(null),r=jQ(()=>({surface:o,setSurface:t}),[o]);return $Q(jH.Provider,{value:r,children:e})}function GH(){return UQ(jH)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as KQ}from"efficient-easel/draw/client";var{Provider:YDe,useSelection:Xu}=KQ("selectedHeroPart");import{jsx as we,jsxs as Vr,Fragment as s5}from"react/jsx-runtime";import{useEasel as Sre,useRootFields as bre}from"efficient-easel/easel";import{EmptyState as wre}from"efficient-shell/ui";function KH({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:Ef({kind:e})?c("Template"):c("Page")}}import{headWords as f5,InspectorHead as Cre,InspectorIconButton as l5}from"efficient-easel/chrome";import{DuplicateIcon as kre,TrashIcon as vre}from"efficient-easel/icons";import{panelFieldsOf as Pre}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as N,Fragment as ue,jsxs as me}from"react/jsx-runtime";import{BlockBannerIcon as YQ,BlockBoxIcon as XQ,BlockButtonIcon as JQ,BlockDividerIcon as VH,BlockFooterIcon as YH,BlockHeadingIcon as ZQ,BlockProductIcon as QQ,BlockSocialIcon as eee,BlockTextIcon as oee,CardPaymentIcon as tee,ChatIcon as ree,AccountIcon as aee,GlobeIcon as nee,GridIcon as see,ImageIcon as jy,MapIcon as lee,MediaIcon as iee,PageIcon as dee}from"efficient-easel/icons";import{jsx as Uy,Fragment as qQ,jsxs as VQ}from"react/jsx-runtime";var qH=VQ(qQ,{children:[Uy("circle",{cx:"9",cy:"20",r:"1.3"}),Uy("circle",{cx:"18",cy:"20",r:"1.3"}),Uy("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 fee={header:me(ue,{children:[N("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),N("path",{d:"M3 9.5h18"})]}),social:me(ue,{children:[N("circle",{cx:"6",cy:"12",r:"2.5"}),N("circle",{cx:"18",cy:"6",r:"2.5"}),N("circle",{cx:"18",cy:"18",r:"2.5"}),N("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:me(ue,{children:[N("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),N("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:me(ue,{children:[N("path",{d:"M4 15.5h6M4 18h4"}),N("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:N("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:me(ue,{children:[N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),N("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:N("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:me(ue,{children:[N("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),N("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:me(ue,{children:[N("circle",{cx:"11",cy:"11",r:"6"}),N("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:qH,CountrySwitchBlock:me(ue,{children:[N("circle",{cx:"12",cy:"12",r:"8.5"}),N("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:[N("circle",{cx:"12",cy:"12",r:"8.5"}),N("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:me(ue,{children:[N("path",{d:"M3 9h18"}),N("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:me(ue,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:me(ue,{children:[N("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),N("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:me(ue,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),N("path",{d:"M7 17h7"})]}),Collections:me(ue,{children:[N("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),N("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),N("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:me(ue,{children:[N("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),N("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:me(ue,{children:[N("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),N("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),N("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:me(ue,{children:[N("path",{d:"M3 7h9M15.5 7H21"}),N("circle",{cx:"13.5",cy:"7",r:"1.7"}),N("path",{d:"M3 12h4M10.5 12H21"}),N("circle",{cx:"8.5",cy:"12",r:"1.7"}),N("path",{d:"M3 17h9M15.5 17H21"}),N("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:me(ue,{children:[N("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),N("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:me(ue,{children:[N("path",{d:"M3 5h10"}),N("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),N("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),N("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:me(ue,{children:[N("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),N("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),N("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:me(ue,{children:[N("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),N("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:me(ue,{children:[N("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),N("circle",{cx:"9",cy:"10",r:"1.6"}),N("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:me(ue,{children:[N("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),N("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:me(ue,{children:[N("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),N("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),N("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:me(ue,{children:[N("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),N("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:me(ue,{children:[N("path",{d:"M3.5 20h17"}),N("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:me(ue,{children:[N("circle",{cx:"6",cy:"12",r:"2.6"}),N("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),N("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:me(ue,{children:[N("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),N("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:me(ue,{children:[N("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),N("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:me(ue,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:me(ue,{children:[N("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),N("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:me(ue,{children:[N("path",{d:"M4 8.5h4.5M11 8.5h9"}),N("path",{d:"M4 14.5h16"})]}),HeroGroup:me(ue,{children:[N("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),N("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:me(ue,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M6.5 9h11M6.5 12.5h11"}),N("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:N(ue,{children:N("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:[N("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),N("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:me(ue,{children:[N("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),N("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),N("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),N("path",{d:"M4 13.5h11M4 17.5h7"}),N("path",{d:"M17 15l3 2-3 2"})]}),Contents:me(ue,{children:[N("path",{d:"M4 7h2M4 12h2M4 17h2"}),N("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:me(ue,{children:[N("path",{d:"M4 6h9M4 11h5M4 16h5"}),N("circle",{cx:"15",cy:"15",r:"4"}),N("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:N("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},cee=N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),pee={footer:YH,Footer:YH,Divider:VH,FooterDivider:VH,Banner:YQ,Flex:XQ,FooterSocial:eee,FooterPayment:tee,page:dee,website:nee,AccountBlock:aee,chat:ree,Heading:ZQ,Text:oee,ImageBlock:jy,ButtonBlock:JQ,LocationMap:lee,Grid:see,ProductRef:QQ,heroMedia:iee,heroImage:jy,heroImage2:jy},uee={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Ga({type:e,size:o=16,className:t}){let r=uee[e]??e,a=pee[r];return a?N(a,{size:o,className:t}):N("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:fee[r]??cee})}import{PanelHideButton as i5}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Tre}from"efficient-easel/screen/lib/session-context";import{jsx as be,jsxs as Wi,Fragment as mee}from"react/jsx-runtime";import{useEffect as xee,useId as XH,useState as hee}from"react";import{IconPicker as Iee}from"efficient-shell/ui";import{SettingsDefaultReset as gee,SettingsField as $i,SettingsSegmented as yee,SettingsSwitch as JH}from"efficient-easel/panel";import{ButtonIcon as See,ButtonIconIcon as bee,EyeIcon as wee,PhoneIcon as Cee,PlacementIcon as kee,TypeIcon as vee}from"efficient-easel/icons";var Pee="Chat with us",Tee="We usually reply within a few minutes",Oee="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Ju({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=hee(o);xee(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return be($i,{label:e,icon:be(vee,{}),changed:o!=="",action:be(zi,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?be("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:i,"aria-label":e}):be("input",{type:"text",value:s,placeholder:t,onChange:d=>l(d.target.value),onBlur:i,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function zi({label:e,changed:o,onReset:t}){return be(gee,{words:nC()?.panel,label:e,changed:o,onReset:t})}function Eee({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=XH();return be($i,{label:e,labelId:s,icon:o,changed:t!==r,action:Wi("span",{className:"inline-flex items-center gap-2",children:[be(JH,{checked:t,onChange:a,ariaLabelledBy:s}),be(zi,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var _ee=Ku.map(e=>({value:e,icon:fT(e)}));function Aee(){let{theme:e}=vo(),o=ar(e).themes[0];return Hw(o)??o?.accent??""}function ZH(){let{chat:e,setChat:o}=Yu(),t=XH(),r=Aee(),a=e.launcherIcon?qu(e.launcherIcon):vs;return Wi(mee,{children:[be($i,{label:c("Show the chat bubble"),labelId:t,icon:be(wee,{}),changed:!e.enabled,action:Wi("span",{className:"inline-flex items-center gap-2",children:[be(JH,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),be(zi,{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.")}),Wi(Wx,{title:c("Look"),children:[be(pT,{label:c("Button color"),icon:be(See,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:c("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),be($i,{label:c("Icon"),icon:be(bee,{}),value:be(JP,{value:a}),changed:a!==vs,action:be(zi,{label:c("Icon"),changed:a!==vs,onReset:()=>o({launcherIcon:""})}),children:be(Iee,{label:c("Icon"),value:a,options:_ee,onChange:n=>o({launcherIcon:n===vs?"":n})})}),be($i,{label:c("Position"),icon:be(kee,{}),changed:e.launcherPosition!==ja,action:be(zi,{label:c("Position"),changed:e.launcherPosition!==ja,onReset:()=>o({launcherPosition:ja})}),children:be(yee,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),be(Ju,{label:c("Label"),value:e.launcherLabel,placeholder:c("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:c("Shows when a visitor points at the button")}),be(Eee,{label:c("Show on phones"),icon:be(Cee,{}),checked:e.showOnPhones,fallback:Vu.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Wi(Wx,{title:c("Wording"),children:[be(Ju,{label:c("Title"),value:e.title,placeholder:Pee,onCommit:n=>o({title:n})}),be(Ju,{label:c("Subtitle"),value:e.subtitle,placeholder:Tee,onCommit:n=>o({subtitle:n})}),be(Ju,{label:c("Greeting message"),value:e.greeting,placeholder:Oee,onCommit:n=>o({greeting:n}),multiline:!0}),be("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as Ka,Fragment as pS,jsxs as r2}from"react/jsx-runtime";import{useEffect as loe,useId as o2,useState as t2}from"react";import{SettingsField as ioe}from"efficient-easel/panel";import{jsx as Zee}from"react/jsx-runtime";import{forwardRef as Fee,createElement as Gy}from"react";var QH={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=Fee(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...m},u)=>Gy("svg",{ref:u,...QH[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,d].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...m},[i&&Gy("title",{key:"svg-title"},i),...r.map(([h,I])=>Gy(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var Bee=[["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"}]],Ky=se("outline","brand-facebook","BrandFacebook",Bee);var Ree=[["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"}]],qy=se("outline","brand-instagram","BrandInstagram",Ree);var Lee=[["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"}]],Vy=se("outline","brand-line","BrandLine",Lee);var Dee=[["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"}]],Yy=se("outline","brand-linkedin","BrandLinkedin",Dee);var Nee=[["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"}]],Xy=se("outline","brand-pinterest","BrandPinterest",Nee);var Mee=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Jy=se("outline","brand-telegram","BrandTelegram",Mee);var Hee=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],Zy=se("outline","brand-tiktok","BrandTiktok",Hee);var Wee=[["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"}]],Qy=se("outline","brand-wechat","BrandWechat",Wee);var $ee=[["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"}]],eS=se("outline","brand-whatsapp","BrandWhatsapp",$ee);var zee=[["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"}]],oS=se("outline","brand-x","BrandX",zee);var Uee=[["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"}]],tS=se("outline","brand-youtube","BrandYoutube",Uee);var jee=[["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"}]],rS=se("filled","brand-facebook-filled","BrandFacebookFilled",jee);var Gee=[["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"}]],aS=se("filled","brand-instagram-filled","BrandInstagramFilled",Gee);var Kee=[["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"}]],nS=se("filled","brand-linkedin-filled","BrandLinkedinFilled",Kee);var qee=[["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"}]],sS=se("filled","brand-pinterest-filled","BrandPinterestFilled",qee);var Vee=[["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"}]],lS=se("filled","brand-tiktok-filled","BrandTiktokFilled",Vee);var Yee=[["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"}]],iS=se("filled","brand-whatsapp-filled","BrandWhatsappFilled",Yee);var Xee=[["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"}]],dS=se("filled","brand-x-filled","BrandXFilled",Xee);var Jee=[["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"}]],fS=se("filled","brand-youtube-filled","BrandYoutubeFilled",Jee);var FMe="outline",Zu={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},Qee={},cS={fillRule:"evenodd"},eoe=[["path",{...Zu,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...cS,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],ooe=[["path",{...Zu,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",{...Qee,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("")}]],toe=[["path",{...Zu,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",{...Zu,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",{...cS,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",{...cS,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("")}]],roe=se("filled","brand-telegram-filled","BrandTelegramFilled",eoe),aoe=se("filled","brand-line-filled","BrandLineFilled",ooe),noe=se("filled","brand-wechat-filled","BrandWechatFilled",toe),soe={instagram:{outline:qy,solid:aS},facebook:{outline:Ky,solid:rS},tiktok:{outline:Zy,solid:lS},youtube:{outline:tS,solid:fS},x:{outline:oS,solid:dS},linkedin:{outline:Yy,solid:nS},pinterest:{outline:Xy,solid:sS},whatsapp:{outline:eS,solid:iS},telegram:{outline:Jy,solid:roe},line:{outline:Vy,solid:aoe},wechat:{outline:Qy,solid:noe}};function e2({platform:e,iconStyle:o,size:t}){let r=soe[e][o];return Zee(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var doe={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 foe({platform:e}){let{rows:o,saveLink:t}=Hi(),{value:r,error:a}=o[e],[n,s]=t2(r),[l,i]=t2(!1),d=o2(),f=o2();loe(()=>s(r),[r]);let m=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=UT[e];return r2(pS,{children:[Ka(ioe,{label:c(u),htmlFor:d,icon:Ka(e2,{platform:e,iconStyle:"outline",size:18}),children:Ka("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:doe[e],onChange:h=>s(h.target.value),onBlur:()=>{m()},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&&Ka("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function a2({unavailable:e}){let{canSave:o}=Hi();return!o&&e?Ka(pS,{children:e}):r2(pS,{children:[Ka("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),$f.map(t=>Ka(foe,{platform:t},t))]})}import{jsx as Ya,Fragment as Doe,jsxs as Noe}from"react/jsx-runtime";import{useId as Moe,useMemo as Hoe}from"react";import{useEasel as Woe}from"efficient-easel/easel";import{SettingsField as $oe,SettingsSwitch as zoe}from"efficient-easel/panel";import{EyeIcon as Uoe}from"efficient-easel/icons";import{fieldShownInView as joe}from"efficient-easel/fields";import{usePreviewDevice as Goe}from"efficient-easel/draw/client";import{ROOT_ZONE as Koe}from"efficient-easel/draw";import{jsx as Va,Fragment as uoe}from"react/jsx-runtime";import{createContext as moe,useContext as xoe,useLayoutEffect as hoe,useMemo as s2,useRef as Ioe,useState as l2}from"react";import{useEasel as i2,useSelectedFields as goe}from"efficient-easel/easel";import{fieldShownInView as yoe,Inspector as Soe,LEAD_BAND_KEY as boe,planFields as d2}from"efficient-easel/fields";function n2({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 coe}from"react/jsx-runtime";import{EmptyState as poe}from"efficient-shell/ui";function qa(){return coe(poe,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as woe}from"efficient-easel/draw/client";import{deviceField as Coe}from"efficient-easel/screen/lib/document/device-fields";var koe="Text",uS=new Map,Qu=new Set,voe=Object.fromEntries(Li.map(e=>{let o=CT[e];return[e,Va(o,{},e)]})),f2=moe(null),Poe={_partBody:Coe("each",{type:"custom",render:()=>Va(Toe,{})})};function Toe(){return Va(uoe,{children:xoe(f2)})}function Ft({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:m}=goe(),u=s2(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(ee,Ie)=>a?.keys.has(ee)?a.onChange(ee,Ie):m(ee,Ie),I=woe(),{appState:S,config:T}=i2(ee=>ee),P=DP(I,T,S.data.content??[],S.ui.itemSelector),L=n===void 0?N_(i,t):Poe,C=s2(()=>{let ee=r?.length?Object.fromEntries(Object.entries(L).filter(([Ie])=>!r.includes(Ie))):L;return a?{...ee,...a.fields}:ee},[L,r,a?.fields]),y=Fx(C,u,P),[b,F]=l2(()=>new Set(Qu)),_=yoe({},I),D={key:boe,title:koe},w=i2(ee=>ee.selectedItem)!==null,E=a?.part??t??"",g=`${l}:${E}:${String(I)}`,[v,O]=l2(()=>({tab:uS.get(g)})),k=`${l}:${E}`,A=Ioe(null),M={...P,node:u},G=d2(y,{values:u,context:M}).buckets,$=n2({allTabs:w,remembered:uS.get(g),inherited:A.current?.panel===k?A.current.tab:v.tab,buckets:G,hasText:_&&o>0}),de=!_&&!G.includes($)&&(d2(Fx(C,u,{...P,device:"desktop"}),{values:u,context:{...M,device:"desktop"}}).buckets.includes($)||$==="Design"&&o>0);hoe(()=>{A.current={panel:k,tab:$}});let le=$==="Design";return Va(f2.Provider,{value:n??null,children:Va(_T.Provider,{value:a?u:null,children:Va(Soe,{fields:y,values:u,onChange:h,readOnly:f,allTabs:w,showWhenContext:M,context:{itemWord:s},tab:$,onTab:ee=>{uS.set(g,ee),O({tab:ee})},tabIcons:voe,idPrefix:l,ariaLabel:c("Section settings"),lead:le?e:null,leadFold:D,closedFolds:b,onFold:(ee,Ie)=>{Ie?Qu.delete(ee):Qu.add(ee),F(new Set(Qu))},children:de&&Va(qa,{})})})})}import{useMemo as Ooe}from"react";import{useEasel as Eoe}from"efficient-easel/easel";import{useSectionOps as _oe}from"efficient-easel/screen/lib/document/use-section-ops";var c2=new Map,Aoe=e=>{let o=c2.get(e);return o||c2.set(e,o=Fu(_u(e),`part:${e}`)),o},Foe=new Set(Ah);function Ps(e,o,t){let{getItemById:r,getSelectorForId:a}=Eoe(f=>f),n=_oe(),s=r(e)?.props??{},l=Sa(s,o),i=JSON.stringify(l),d=Ooe(()=>Object.fromEntries(Ah.map(f=>[f,l[f]])),[i]);return{part:o,fields:Aoe(t),values:d,keys:Foe,onChange:(f,m)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=YO(h.props??{},o,f,m);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as Boe,createElement as Roe}from"react";import{deviceField as mS}from"efficient-easel/screen/lib/document/device-fields";var wo=()=>({type:"custom",render:()=>Roe(Boe)});var xS={words:wo(),sourceNote:wo(),style:wo(),font:wo(),italic:wo(),fontSize:mS("each",wo()),lineHeight:wo(),letterSpacing:wo(),paragraphSpacing:wo(),padding:wo(),align:mS("each",wo()),letterCase:wo(),fixedSizeHint:mS("each",wo()),regionNote:wo(),regionStyle:wo()},Loe=["fontSize","align"];function p2(e){return Loe.includes(e)}var u2={showTicker:wo(),items:wo()};function m2({heroId:e}){let{appState:o,dispatch:t}=Woe(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=Hoe(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:O1.map(I=>({text:I}))},[n]),i=Moe(),d=Goe(),f=h=>joe(u2[h],d),m=Ps(e,E1,"block");if(!n)return Ya("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:Koe,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return Ya(Ft,{motion:m,body:Noe(Doe,{children:[!f("showTicker")&&!f("items")&&Ya(qa,{}),f("showTicker")&&Ya($oe,{label:c("Show ticker"),labelId:i,icon:Ya(Uoe,{}),action:Ya(zoe,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&Ya(LT,{label:Ux.label,icon:Ux.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as J,Fragment as Gi,jsxs as yt}from"react/jsx-runtime";import{useContext as ste,useEffect as hS,useRef as lte,useState as v2}from"react";import{FieldSelect as ite,InspectorField as dte,fieldShownInView as fte}from"efficient-easel/fields";import{InertHint as R2,SettingsField as cte}from"efficient-easel/panel";import{InspectorUpLevel as nm}from"efficient-easel/chrome";import{StylesIcon as pte,TypeIcon as ute}from"efficient-easel/icons";import{useEasel as mte}from"efficient-easel/easel";import{TextPartPanel as P2}from"efficient-easel/copy";import{Button as xte,IconButton as hte,Tooltip as Ite}from"efficient-shell/ui";import{jsx as I2,jsxs as qoe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as Voe}from"efficient-easel/strings";import{COPY_CELLS as Ts,COPY_CELL_LENGTHS as x2,CopyBox as Yoe,lengthCellUnits as Xoe}from"efficient-easel/copy";import{PaddingYIcon as Joe}from"efficient-easel/icons";import{onDesktopWords as Zoe}from"efficient-easel/screen/lib/document/box-fields";var h2=Voe.copy.cells,Qoe={kind:"spacing"},ete=["left","center","right","justify"];function em(e,o,t,r="desktop"){let a=Bv(e),n=Lv(r),s=e[n]??e.size??o.sizePx,l=Dv(e,r),i=(f,m,u,h,I)=>{let S=fl[u];return Xoe({preset:f,row:m,table:Af,unit:e[S],value:e[u],tier:r,styleValue:h,label:c(I),onPick:(T,P)=>t({[S]:T??null,[u]:P??null}),onChange:(T,P)=>t({...P?{[S]:P.unit??null}:{},[u]:T??null})})},d={key:"padding",name:c("Padding"),icon:I2(Joe,{}),unit:"px",step:Ev,shiftStep:10,min:Tv,max:Ov};return[{...Ts.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(Ts.fontSize,x2.fontSize,n,Math.round(o.sizePx),h2.fontSize),...n==="size"?{}:{reset:{detail:l?Zoe(f=>c(f),`${l.px}px`,l.view):void 0}}},{...Ts.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...Ts.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...Ts.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...i(Ts.paragraphSpacing,x2.paragraphSpacing,"paragraphSpacing",0,h2.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,Qoe,"padding",o.paddingPx,"Padding")}]}function g2({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:m,typedOnCanvas:u=!1}){let h=em(n,s,l),I=sh(r,t);return qoe("div",{className:"sf-part-textbox",children:[m,I2(Yoe,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:gd,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:pf,align:a?{value:n.align??s.align,allow:ete,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 T2}from"efficient-easel/draw/client";import{jsx as om,Fragment as ote,jsxs as tte}from"react/jsx-runtime";import{Button as y2,Dialog as rte}from"efficient-shell/ui";function S2({styleName:e,onCancel:o,onConfirm:t}){return om(rte,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:tte(ote,{children:[om(y2,{variant:"secondary",onClick:o,children:c("Cancel")}),om(y2,{variant:"primary",onClick:t,children:c("Update style")})]}),children:om("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 gte}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as yte}from"efficient-easel/draw/client";import{shownTier as rm}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as Ste,viewKeyAt as bte}from"efficient-easel/draw";import{useSectionOps as wte}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as Cte}from"efficient-easel/screen/lib/host";function ate(e){let o=new Set([...Object.keys(z(Qk,e)??{}),...z(ev,e)??[]]);for(let[t,r]of Object.entries(z(tv,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var nte={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},b2={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},w2="Open",C2={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 Os(e){let o=e?.source?.slug;return ho(o)}function Ui(e){return z(nte,e)??null}function k2(e,o){let t=Ui(e);return t&&ate(e).includes(o)?t:null}function tm(e){let o=e?.menu?.id;return ho(o)}function IS(e){return e?c(e):null}function O2(e){return e.kind==="role"?_m[e.role]:e.kind==="custom"?"Custom":null}function kte(e){let o=yb(e.role);return o?{kind:"role",role:o}:null}function vte(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 am(e,o,t,r){return kte(Er(e,o))??vte(t,r)}function Pte(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:ji,label:c("No style"),description:c("Section\u2019s own")},...e.map(t=>({value:t.id,label:t.name,description:t.values.font?Id(t.values.font,o)?.label:void 0}))]}var ji="";function Tte({face:e,base:o,onPick:t}){let r=Qo(),a=e.kind==="role"?e.role:ji,n=[{label:c("No style"),value:ji},...gb.map(s=>({label:c(_m[s]),value:s}))];return J(ite,{ariaLabel:c("Style"),value:a,options:n,inline:!0,onChange:s=>t(s===ji?null:s),renderOption:s=>s.value===ji?yt(Gi,{children:[J("span",{className:"es-fsel-label sf-part-style-keep",children:s.label}),J("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):J("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${s.value})`},children:s.label}),renderValue:()=>J("span",{style:{fontFamily:o?.fontKey?`var(${Id(o.fontKey,r)?.cssVar})`:void 0,fontWeight:o?.weight},children:IS(O2(e))}),valueText:s=>IS(O2(e))??s?.label??""})}var L2=["regionNote","regionStyle"],Ote=Object.keys(xS).filter(e=>!L2.includes(e));function D2(e,o){return!e.some(o)}function Ete({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=yt(Gi,{children:[t,r,a]});return yt("div",{className:"sf-part-panel",children:[J(nm,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function sm({source:e,slug:o,menuId:t}){let r=Cte(),a=C2[e],n=!a.needsSlug||!!o;return J("div",{className:"sf-note sf-note--source",children:yt(R2,{children:[c(b2[e]),n?yt(Gi,{children:[" ",J(xte,{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(w2)})]}):null]})})}var _2=4,_te=120;function A2(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 F2({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:f}){let m=e.follows;return yt("div",{className:"sf-note",children:[J("p",{children:J("strong",{children:c(e.label)})}),i("regionNote")&&!f&&J("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(m),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(m)})}),d?yt(Gi,{children:[d,i("regionStyle")&&J("p",{className:"es-field-hint",children:A2(e)})]}):a?i("regionStyle")?J(Gi,{children:J(cte,{label:c("Style"),icon:J(pte,{}),hint:A2(e),children:J(Tte,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&J("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")?J(sm,{source:n,slug:s}):null,D2([...L2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&J(qa,{}),J(nm,{inline:!0,name:c("Page"),onSelect:l})]})}function Ate({onBack:e}){return yt("div",{className:"sf-note",children:[J("p",{children:J("strong",{children:c("This part is no longer here.")})}),J("p",{children:c("The section it belonged to has been changed or removed.")}),J(nm,{inline:!0,name:c("Page"),onSelect:e})]})}function Fte({onBack:e,partId:o,why:t}){return yt("div",{className:"sf-note",children:[J("p",{children:J("strong",{children:c("This part's settings did not open.")})}),J("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.")}),J("p",{className:"sf-note-detail",children:yt("code",{children:[o," \u2014 ",t]})}),J(nm,{inline:!0,name:c("Page"),onSelect:e})]})}function N2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=mte(q=>q),l=wte(),i=v0(),{partStyle:d}=us(),{fonts:f,textStyles:m}=vo(),u=Qo(),h=GT(),I=ste(gte),S=!I?.capabilities?.hasSiteTheme,{persist:T}=xT({themeFromDocument:S,tokenRef:I?.tokenRef,siteId:I?.siteId??null}),P=o0({themeFromDocument:S,persist:T}),[L,C]=v2(!1),y=yte(),b=q=>(rm(y)!=="tablet"||p2(q))&&fte(xS[q],y),F=lte(null),_=a(e),D=n(e),w=_?s.components[_.type]:void 0,{key:E,row:g}=Ut(o),v=w?.fields?.[E],O=g?Hn(v,g):v,k=jt(e,o),A=_?.props??{},M=xf(O),G=Nf(O),$=hv(O),de=_?Ui(_.type):null,le=_?k2(_.type,E):null,ee=g?If(A[E],g):A[E],Ie=!!g&&!(Array.isArray(A[E])&&g.index<A[E].length);hS(()=>{k0(document)||F.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[k]);let[ae,xe]=v2(0);hS(()=>xe(0),[k]);let ge=!!_&&!Ie&&(!D||!O);hS(()=>{if(!ge||ae>=_2)return;let q=setTimeout(()=>xe(Ae=>Ae+1),_te);return()=>clearTimeout(q)},[ge,ae]);let Je=ge&&ae<_2,Ze=Ps(e,fr(_?.type,o),"textPart");if(!_||Ie)return J(Ate,{onBack:t});let mo=ms(_.type),qe=mo?qs(mo,o):null;if(mo&&qe){let q=d?.partId===k?d:null,Ae=mo[qe],Do=Ae.writable===!0&&!!D,bt=Dt=>{D&&l.replaceComponent(D.zone,D.index,{..._,props:la(A,o,"role",Dt)})};if(Do&&xw(Ae)){let Dt=Er(A,o),tn=Qr=>{if(!D)return;let Om=A;for(let[b6,w6]of Object.entries(Qr))Om=la(Om,o,b6,w6??null);l.replaceComponent(D.zone,D.index,{..._,props:Om})},g6=Kx(P.saved,P.old),y6=kx(Dt)??"",S6=em(Dt,q?.base??B2,tn,rm(y)).filter(Qr=>Qr.key==="fontSize"&&b(Qr.key));return J(Ft,{motion:Ze,body:J(F2,{region:Ae,sizePx:q?.base.sizePx??null,face:am(A,o,q,f),base:q?.base??null,source:de,slug:Os(A),onBack:t,shows:b,ownLook:jv(Dt),sizedStyle:J(P2,{style:b("style")?{value:y6,options:E2(g6,u),onChange:Qr=>tn(Qr?{textStyle:Qr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:S6})})})}return J(Ft,{motion:Ze,body:J(F2,{region:Ae,sizePx:q?.base.sizePx??null,face:am(A,o,q,f),base:q?.base??null,onFollowStyle:Do?bt:void 0,source:de,slug:Os(A),onBack:t,shows:b})})}if(!D||!O)return Je?J("div",{className:"sf-note","aria-busy":"true"}):J(Fte,{onBack:t,partId:k,why:D?"no field":"no selector"});let to=q=>{l.replaceComponent(D.zone,D.index,{..._,props:q})},Eo=q=>{if(pa(q).hidden!==pa(ee).hidden||!M){let Ae=g?iv(A,E,g,q):{...A,[E]:q};Ae&&to(Ae);return}Kf({node:_,propKey:o,kind:M,zone:D.zone,index:D.index},pa(q).text,l.replaceComponent)},_o=ee,xo=d?.partId===k?d:null,W=xo?.styleOwner,ie=W?a(W.owner):null,he=W&&ie?n(W.owner):null,Ve=!!(W&&ie&&he),ne=Ve?ie.props??{}:A,He=Ve?q=>l.replaceComponent(he.zone,he.index,{...ie,props:q}):to,Yo=Ve?W.kind:fr(_?.type,o),We=Er(ne,Yo),je=[{partKey:Yo,face:am(ne,Yo,xo,f),sizeGroup:xo?.sizeGroup??null,base:xo?.base??B2,style:We}],Yr=Pte(je,q=>q.sizeGroup),id=uf(xo?.inks),Xr=(q,Ae)=>{let Do=ne;for(let bt of je)Do=la(Do,bt.partKey,q,Ae);He(Do)},Tm=q=>q?Xr("textStyle",q):Ro({textStyle:null,role:null}),Ro=q=>{let Ae=ne;for(let Do of je)for(let[bt,Dt]of Object.entries(q))Ae=la(Ae,Do.partKey,bt,Dt??null);He(Ae)},Jr=M==="text"||M==="textarea",{text:Rs,hidden:Lo}=pa(ee),Qa=O?.[Ste]?.label??o,Zt=Lo?c("Show {label} on the slide",{label:c(Qa)}):c("Hide {label} on the slide",{label:c(Qa)}),Ls=yt("div",{className:"sf-field-head",children:[J(ute,{}),J("span",{className:"sf-field-label sf-field-label--inline",children:c(Qa)}),Jr&&J(Ite,{content:Zt,children:J(hte,{"aria-pressed":Lo,"aria-label":Zt,onClick:()=>Eo({text:Rs,hidden:!Lo}),children:Lo?J(T2,{name:"eye-off",size:14}):J(T2,{name:"eye",size:14})})})]}),Zr=!G&&$,Ir=!!M&&(wT(O)||G||Lo||!$),dd=am(ne,Yo,xo,f),en=dd.kind==="role"?dd.role:null,Ds=kx(We)??YT(en),fd=Kx(P.saved,P.old),cd=Object.entries(We).filter(([q,Ae])=>q!=="role"&&q!=="textStyle"&&Ae!==void 0).length,Ns=()=>{let q=ne;for(let Ae of je){let{role:Do,textStyle:bt}=Ae.style;q=Fv(q,Ae.partKey),Do&&(q=la(q,Ae.partKey,"role",Do)),bt&&(q=la(q,Ae.partKey,"textStyle",bt))}He(q)},Lt=Ds,Ms=JT(je[0].style),Hs=Lt?fd.find(q=>q.id===Lt)?.name??Lt:"",on=()=>{C(!1),Lt&&(P.write(ZT({saved:P.saved,old:P.old,styleId:Lt,values:XT(je[0].style)}),!0),Ns())};return yt(Ete,{sectionName:w?.label??_.type,onBack:t,tabs:q=>J(Ft,{motion:Ze,body:q}),textEditor:b("words")?J("div",{ref:F,className:"sf-part-text",children:Ir?J(g2,{text:Rs,onTextChange:q=>Eo(Jr?{text:q,hidden:Lo}:q),multiline:hf(M),markup:M!=="plainText",styled:!1,style:je[0].style,base:je[0].base,setValue:Ro,colors:id,placeholder:IS(av(O))??void 0,ariaLabel:c(Qa),head:Ls,typedOnCanvas:i===k}):M?Jr?Ls:null:J(dte,{field:O,name:o,value:_o,onChange:Eo,id:`sf-part-${e}-${o}`})}):void 0,children:[le&&b("sourceNote")&&J(sm,{source:le,slug:Os(A),menuId:tm(A)}),Zr&&J(P2,{style:b("style")?{value:Ds??"",options:E2(fd,u),onChange:q=>Tm(q||null),changed:cd>0,onEditStyles:r,onUpdateStyle:Lt&&Ms?()=>C(!0):void 0}:void 0,font:b("font")?{value:We.font??"",styleValue:Id(je[0].base.fontKey,u)?.label,options:QT(u,e0(h,[We.font,je[0].base.fontKey])),onChange:q=>Xr("font",q||null)}:void 0,italic:b("italic")?{value:We.italic,styleValue:Rte(m,Ds),onChange:q=>Xr("italic",q??null)}:void 0,cells:em(je[0].style,je[0].base,Ro,rm(y)).filter(q=>b(q.key)),align:b("align")?Bte(We,je[0].base.align,rm(y),Xr):void 0,letterCase:b("letterCase")?{value:We.case??"",styleValue:je[0].base.case,onChange:q=>Xr("case",q||null)}:void 0}),L&&Lt&&J(S2,{styleName:Hs,onCancel:()=>C(!1),onConfirm:on}),Zr&&Yr===null&&b("fixedSizeHint")&&J(R2,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),D2(Ote,q=>b(q)&&(q==="words"||(q==="sourceNote"?!!le:q==="fixedSizeHint"?Zr&&Yr===null:Zr)))&&J(qa,{})]})}function Bte(e,o,t,r){let a=bte("align",t),n=Rv(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Rte(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var B2={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Bt,jsxs as CS,Fragment as $te}from"react/jsx-runtime";import{useCallback as zte,useRef as Ute,useState as Vi}from"react";import{InspectorIconButton as jte}from"efficient-easel/chrome";import{useEasel as Gte}from"efficient-easel/easel";import{LoadingSpinner as Kte,PopupMenu as qte,PopupMenuItem as Vte,PopupMenuLabel as kS}from"efficient-shell/ui";import{CopyToPageIcon as Yte}from"efficient-easel/icons";import{useEaselSession as Xte}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Jte}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as Zte}from"efficient-easel/draw";import{newId as Nte}from"efficient-easel/data";import{isBackendError as Es}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as q2}from"efficient-easel/screen/lib/session";var lm=ZP(),gS=lm.set;function im(e,o){gS(e,o)}function dm(e,o){let t=lm.get(e);gS(e,o??(t==="live"?"changed":t))}function fm(e,o){gS(e,o??"live")}function M2(e){return lm.get(e)}function H2(e){return lm.use(e)}function W2(e,o){return e==="live"&&o?"changed":e}function yS({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 $2(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var z2="SharedSection",Lte=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Ki=e=>{let o=e?.content;return Array.isArray(o)?o:[]},qi=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function U2(e){if(e?.type!==z2)return null;let o=e.props?.section;return typeof o=="string"&&Lte.test(o)?o.toLowerCase():null}function j2(e){let o=[];for(let t of Ki(e)){let r=U2(t),a=qi(t);r&&a&&o.push({refId:a,section:r})}return o}function cm(e){let o=Ki(e)[0];return o&&typeof o=="object"&&qi(o)?o:null}function Dte(e,o){return{type:z2,props:{id:e,section:o}}}function G2(e,o){let t=new Map,r=new Set,a=!1,n=Ki(e).map(s=>{let l=U2(s),i=qi(s);if(!l||!i||r.has(l))return s;let d=cm(o.get(l)),f=qi(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 K2(e,o,t){let r=new Map,a=!1,n=Ki(e).map(s=>{let l=qi(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=Ki(d).slice(1),m=cm(d);return r.set(i.section,m===s?d:{...d,content:[s,...f]}),a=!0,i.reference??Dte(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function wS(e){return!!(e?.publish&&e.liveState)}function Mte(e,o){if(!wS(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 Hte(e,o){return async(t,r)=>{try{await mT()}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"?Lf({state:"live",changes:[]}):ca(0),{version:r??null}}}function bS(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(im(n.id,n.live),nT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(dm(a,i.live),sT(a,i.videoFrames),ca(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:wS(t)?Hte(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(fm(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 Wte(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,f=new Map,m=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 w=M2(n.id);return w==="changed"||w==="never"||w===void 0&&l},S=w=>{u={...u,...w,docId:n?.id??null,unpublished:I(),sections:[...f.values()],rootProps:tT(n?.layout)};for(let E of h)E()},T=(w,E,g)=>{E?f.set(w,{section:w,title:i.get(w)?.title??"",problem:E,holder:g}):f.delete(w)},P=w=>w&&typeof w=="object"&&!Array.isArray(w)?w:{},L=w=>s.has(w),C=()=>new Map([...i].map(([w,E])=>[w,E.layout])),y=()=>Nte("SharedSection"),b=(w,E,g,v)=>{let O=P(E);i.set(w,{layout:O,version:g,savedJson:JSON.stringify(O),title:v})},F={state:()=>u,subscribe:w=>(h.add(w),()=>{h.delete(w)})},_={sectionOf:w=>d.get(w)?.section??null,heldElsewhere:w=>{let E=d.get(w)?.section;return!!(E&&f.get(E)?.problem==="lock")},adopt:(w,E)=>{b(E.id,E.layout,E.layout_updated_at,E.title),d.set(w,{section:E.id,refId:y()}),m.set(E.id,E.used_on),S({})},place:w=>{if([...d.values()].some(v=>v.section===w.id))return null;let E=cm(P(w.layout)),g=typeof E?.props?.id=="string"?E.props.id:null;return!E||!g||!E.type?null:(b(w.id,w.layout,w.layout_updated_at,w.title),d.set(g,{section:w.id,refId:y()}),m.set(w.id,w.used_on),E)},usedOn:w=>m.get(w)??null,learn:w=>{for(let E of w){m.set(E.id,E.used_on);let g=i.get(E.id);g&&(g.title=E.title);let v=f.get(E.id);v&&f.set(E.id,{...v,title:E.title})}S({})}},D=async(w,E)=>{for(let[g,v]of w){let O=i.get(g),k=JSON.stringify(v);if(!(!O||k===O.savedJson||f.get(g)?.problem==="lock"))try{let A=await e.save(g,{layout:v},{version:O.version,clientId:E??""});dm(g,A.live),O.layout=v,O.version=A.version,O.savedJson=k,T(g,null)}catch(A){Es(A,"changed-elsewhere")?T(g,"conflict"):Es(A,"lock-taken")?T(g,"lock",A.holder??void 0):T(g,"save")}}w.size&&ca(),S({})};return{resolve:async w=>{if(Gx(w===_r?null:F),Dx(w===_r?null:_),i=new Map,d=new Map,f=new Map,m=new Map,w===_r)return t.resolve(w);let E=!1,[g,v]=await Promise.all([t.resolve(w),e.load({slug:_r,...o}).catch(()=>(E=!0,null))]);if(v&&!bT(g?.layout)){im(v.id,v.live);let $=P(v.layout);n={id:v.id,layout:$,version:v.version,savedJson:""}}else n=null;if(l=!1,!g)return S({conflict:null,saveFailed:!1,loadFailed:E}),g;let O=P(g.layout),k=j2(O),A=await Promise.all(k.map($=>e.load({id:$.section,...o}).catch(()=>null)));k.forEach(($,de)=>{let le=A[de];le?(im(le.id,le.live),b($.section,le.layout,le.version,"")):(i.delete($.section),f.set($.section,{section:$.section,title:"",problem:"load"}))});let M=G2(O,C());if(d=M.held,!n)return d.size&&s.add(g.id),S({conflict:null,saveFailed:!1,loadFailed:E}),d.size?{...g,layout:M.working}:g;let G=rT(M.working,n.layout);return n.savedJson=JSON.stringify(Lx(G,n.layout).chrome),s.add(g.id),S({conflict:null,saveFailed:!1,loadFailed:!1}),{...g,layout:G}},saveLayout:async(w,E,g,v)=>{if(!L(w))return t.saveLayout(w,E,g,v);let O=n,k=O?Lx(E,O.layout):{page:E,chrome:null},A=K2(k.page,d,C()),M=await t.saveLayout(w,A.page,g,v);if(await D(A.docs,v),!O)return M;let G=JSON.stringify(k.chrome);if(!k.chrome||G===O.savedJson||u.lockHolder)return M;try{let $=await e.save(O.id,{layout:k.chrome},{version:O.version,clientId:v??""});dm(O.id,$.live),ca(),O.layout=k.chrome,O.version=$.version,O.savedJson=G,l=!0,S({conflict:null,saveFailed:!1})}catch($){Es($,"changed-elsewhere")?S({conflict:$.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Es($,"lock-taken")?S({lockHolder:$.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):S({saveFailed:!0})}return M},publish:t.publish?async(w,E)=>{let g=await t.publish(w,E),v=n;if(v&&L(w)&&!a&&e.publish&&I()&&!u.lockHolder){let O=await e.publish(v.id,v.version?{version:v.version}:void 0);fm(v.id,O.live),O.version!==null&&(v.version=O.version),l=!1,S({})}if(L(w)&&!a&&e.publish)for(let[O,k]of i){if(f.get(O)?.problem==="lock")continue;let A=await e.publish(O,k.version?{version:k.version}:void 0);fm(O,A.live),A.version!==null&&(k.version=A.version)}return g}:void 0,lock:r?{claim:async(w,E,g)=>{let v=await r.claim(w,E,g);if(!L(w))return v;let O=n;if(O)try{await r.claim(O.id,E,!1),u.lockHolder&&S({lockHolder:null})}catch(k){Es(k,"lock-taken")&&S({lockHolder:k.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let k of i.keys())try{await r.claim(k,E,!1),f.get(k)?.problem==="lock"&&T(k,null)}catch(A){Es(A,"lock-taken")&&T(k,"lock",A.holder??void 0)}return i.size&&S({}),v},release:async(w,E)=>{if(await r.release(w,E),!L(w))return;let g=n;g&&!u.lockHolder&&await r.release(g.id,E).catch(()=>{});for(let v of i.keys())f.get(v)?.problem!=="lock"&&await r.release(v,E).catch(()=>{})}}:void 0,pinnedChrome:F}}function pm(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:c0(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 m5e(e,o,t){return e.update(o,p0(t))}function x5e(e,o=Ao(),t=Rg(),r={}){let a=q2(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=wS(o.site)?o.site:void 0,m=pm(o.pages),u=bS(m,e,f),h=d?Wte(m,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,...V2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Mte(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function h5e(e,o=Ao(),t=Rg()){let r=q2(o),a=o.templates,n=a?pm(a.pages(e)):{list:()=>Promise.reject(new Error(SS)),load:()=>Promise.reject(new Error(SS)),save:()=>Promise.reject(new Error(SS))};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},...bS(n,void 0),...V2(bS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function V2(e){return{resolve:o=>(Gx(null),Dx(null),e(o))}}var SS="This editor's backend has no website templates.";function Qte(e,o,t){let r=Jte(e,void 0,o);return t?.(r)??r}function Y2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Vi(!1),[i,d]=Vi(null),f=Xte(),m=Gte(_=>_.config.components),[u,h]=Vi(!1),[I,S]=Vi(null),T=Ute(null),[P,L]=Vi(null),C=zte(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{d(await Ao(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),y=()=>{if(s){l(!1);return}let _=T.current?.getBoundingClientRect();_&&L({top:_.bottom+6,right:Math.max(8,window.innerWidth-_.right)}),d(null),h(!1),C(),l(!0)},b=(i??[]).filter(_=>_.slug!==o),F=async _=>{if(I)return;S(_.slug);let D=Qte(e,m,f.documentHooks?.storedNode),w=await a(()=>ere(Ao(f).pages,_,D));S(null),l(!1),n?.(w?c("Duplicated to \u201C{name}\u201D",{name:_.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),w?"success":"error")};return CS($te,{children:[Bt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Bt(jte,{buttonRef:T,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:Bt(Yte,{size:15})})}),s&&P&&Bt(qte,{portal:!0,style:{top:P.top,right:P.right},onClose:()=>l(!1),children:CS("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Bt(kS,{children:c("Duplicate to page")}),u?Bt(kS,{children:c("Couldn\u2019t load pages")}):i===null?Bt(Kte,{label:c("Loading\u2026")}):b.length===0?Bt(kS,{children:c("No other pages")}):b.map(_=>CS(Vte,{role:"menuitem",disabled:I!==null,onClick:()=>{F(_)},children:[Bt("span",{className:"min-w-0 flex-1 truncate",children:_.label}),I===_.slug?Bt("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):_.draft&&Bt("span",{className:"shrink-0 text-xs",children:c("draft")})]},_.id))]})})]})}async function ere(e,o,t){let r=pm(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===Zte);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 Ore}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Ere}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as U4e,isSelectionMode as ES}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as _re}from"efficient-easel/draw/client";import{jsx as Yi,jsxs as ore}from"react/jsx-runtime";import{SettingsDrill as tre}from"efficient-easel/panel";import{UiIcon as rre}from"efficient-easel/draw/client";var are="Not shown on the page";function nre({part:e,onOpen:o}){return Yi(tre,{name:c(e.label),preview:e.offPage?c(are):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?Yi("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:Yi(rre,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function vS(e){return e.filter(o=>!o.identifier)}function X2({parts:e,onOpen:o,heading:t=!0}){let r=vS(e);return r.length?ore("div",{className:"sf-entries",children:[t?Yi("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>Yi(nre,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Are,ROOT_ZONE as d5}from"efficient-easel/draw";import{newId as sre}from"efficient-easel/data";import{HEADER_TYPE as Vo,FOOTER_TYPE as Re,newNodeId as lre}from"efficient-easel/draw";function um(){return{type:Vo,props:{id:lre(Vo)}}}var J2=[{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"}],ire=J2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),dre="FooterGroup",Z2="blocks";function Q2(e){return e===Re?J2:e===dre?ire:null}function mm(){let e=(o,t)=>({type:o,props:{id:sre(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...oP}),e("FooterPayment",{...Sf})]}function PS(e){switch(e?.type){case Wo:case ao:return c("On every page");case Vo:case Re:return c("On every page \xB7 old style");default:return null}}var e5=()=>null,o5=()=>c("Changed on every page");function xm(e,o){let t=GC(e,o);if(t)return t;let r=uP(e,o);if(!r)return null;let a=r.group===Wo;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 hm,Fragment as cre,jsxs as pre}from"react/jsx-runtime";import{useState as ure}from"react";import{createNode as mre,newId as xre}from"efficient-easel/data";import{useEasel as hre}from"efficient-easel/easel";import{Banner as Ire,Button as TS}from"efficient-shell/ui";import{useScreenDocument as gre}from"efficient-easel/screen/components/ScreenDocumentContext";var fre=["FooterPayment"];function t5(e,o){let{id:t,...r}=e.props;for(let a of Nt(e))r[a]=r[a].map(n=>t5(n,o));return o(e.type,r)}var Xi=(e,o)=>{if(!fre.includes(e.type))return null;ru();let t=Dr(e.type);return t?Ea({type:e.type,props:{...e.props}},t).nodes.map(r=>t5(r,o)):null};function r5(){let{appState:e,dispatch:o,config:t}=hre(f=>f),{readOnly:r}=gre(),[a,n]=ure(!1),s=e.data.content;if(r||s.some(f=>f.type===ao))return null;let l=s.find(f=>f.type===Re)??null,i=(f,m)=>mre(t,f,m),d=()=>{let f=hi(l,i,xre(ao),Xi);o({type:"setData",data:m=>({...m,content:[...wf(m.content,f)]}),recordHistory:!0}),n(!1)};return hm(Ire,{tone:"info",title:c("This footer uses the old layout"),action:a?pre(cre,{children:[hm(TS,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),hm(TS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):hm(TS,{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 OS,jsxs as yre}from"react/jsx-runtime";import{InspectorUpLevel as a5}from"efficient-easel/chrome";function n5({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Xu(),n=Ps(e,o,"picture");return yre("div",{children:[o!=="media"?OS(a5,{inline:!0,name:c(ur.media),onSelect:()=>a(va(e,"media"))}):OS(a5,{inline:!0,name:c(t),onSelect:r}),OS(Ft,{part:o,motion:n,itemWord:c(ur[o])})]})}import{HintsToggle as Fre,SettingsSwitch as Bre,hintsFoldClass as Rre}from"efficient-easel/panel";import{useHints as Lre}from"efficient-easel/screen/lib/hints";var c5={kind:"header"},AS={kind:"website"},p5={kind:"website",tab:zf,revealPageGroup:!0},u5={kind:"chat"},m5={kind:"social"},Ji="Part";function Dre(e){return c("Part of {name}",{name:c(e)})}function Nre(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Dre(r.label):c(Ji)}}function Mre(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 x5({what:e}){let o=Mre(e);return Vr("div",{className:"sf-note",children:[we("p",{children:we("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 _S(e){let o=Zl[e];return{name:ur[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=f5({name:c(ep(e,a.props)),tier:"part",of:c(a.label)},{partOf:({name:s})=>c("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?we(n5,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Hre={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?we(t,{placeholderMode:o.capabilities.placeholderFrames,tokenRef:o.tokenRef,siteId:o.siteId,websiteName:o.websiteName,onOpenWebsiteSettings:o.onOpenWebsiteSettings,onAuthExpired:()=>o.notifyParent("storefront-editor:auth-expired")}):null}},website:{name:"Appearance",kindLabel:"Site settings",icon:"website",render:(e,o)=>we(Uf,{initialTab:e.tab,revealPageGroup:e.revealPageGroup,themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify},e.tab??"")},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>we(ZH,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>we(a2,{unavailable:we(x5,{what:"Social link"})})},ticker:{name:Ma,kindLabel:Ji,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Nre(o,e.heroId,c(Ma)):null,render:e=>we(m2,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:_S("media"),heroImage:_S("image"),heroImage2:_S("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}=Ut(e.propKey),n=a?Hn(t.fields[r],a):t.fields[r],s=ms(t.type),l=s?qs(s,e.propKey):null,i=s&&l?s[l].label:UO[e.propKey],d=i?c(i):fv(c(yf(Iv(n??{},r))),a),f=f5({name:d,tier:"part",of:c(t.label)},{partOf:({name:m})=>c("Part of {name}",{name:m})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?we(N2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Wre=new Set(["header","website","chat"]);function $re(e,o){if(e==="selection")return null;let t=Hre[e];return Wre.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>we(x5,{what:t.name})}:t}function h5({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:m,runAuthed:u,readOnly:h,navigate:I}=Ore(),{rows:S}=bl(),T=S?.find(ie=>ie.slug===f)??null,P=bre(),L=Object.keys(P.fields).some(ie=>!ie.startsWith("_")&&!qx.includes(ie)),{websiteName:C}=vo(),y=Ere({readOnly:h}),{select:b}=_re(),{selectedItem:F,getItemById:_,getSelectorForId:D,config:w,appState:E}=Sre(ie=>ie),g=Pre(w,F?{type:F.type,props:F.props}:null),v=F?Sv(g??w.components[F.type]?.fields,F.props):[],O=ie=>w.components[ie]?.label??ie,k=F?D(F.props.id):void 0,A=$re(e.kind,l),M=Tre(),G={capabilities:l,tokenRef:i,hostPanels:M.chrome?.panels,describeNode:ie=>{let he=_(ie);if(!he)return null;let Ve=w.components[he.type];return{type:he.type,label:Ve?.label??he.type,fields:Ve?.fields??{},props:he.props??{}}},siteId:m,websiteName:C??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},$=A?.head?.(e,G)??null,de=KH({kind:T?.kind,pageName:T?.label}),le=$?.name??(A?c(A.name):F?c(O(F.type)):de.name),ee=$?.kindLabel??(A?c(A.kindLabel):F?k&&k.zone!==d5?c("Block"):c("Section"):de.kindLabel),Ie=A?A.icon:F?F.type:"page",ae=ES(e)&&F?Ui(F.type):null,xe=!!F&&!!k&&k.zone===d5&&F.type!==Re&&F.type!==Are,ge=xm(E?.data,F),Je=()=>{ge||k&&y.duplicateComponent(k.zone,k.index)},Ze=()=>{k&&(y.removeComponent(k.zone,k.index),y.select(null))},mo=F?w.components[F.type]?.defaultProps?.previewHover:void 0,qe=ES(e)&&!!F&&!!k&&mo!==void 0,to=qe&&F.props.previewHover===!0,Eo=()=>{!F||!k||y.replaceComponent(k.zone,k.index,{...F,props:{...F.props,previewHover:!to}})},{shown:_o,setShown:xo}=Lre(),W=!!(A||F||L);return Vr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Rre(_o)}`.trim(),children:[we(Cre,{icon:we(Ga,{type:Ie,size:15}),name:le,kind:ee,actions:!a&&ES(e)&&F&&F.type!==Re?Vr(s5,{children:[we(l5,{label:c("Duplicate section"),title:ge??void 0,disabled:ge!==null,onClick:Je,children:we(kre,{size:15})}),xe&&l.hasSiteSettings&&we(Y2,{node:F,currentSlug:f,siteId:m??void 0,tokenRef:i,runAuthed:u,onNotify:n}),we(l5,{label:c("Remove section"),danger:!0,onClick:Ze,children:we(vre,{size:15})}),s?we(i5,{side:"right",onHide:s,divider:!0}):null]}):s?we(i5,{side:"right",onHide:s}):void 0}),qe&&Vr("div",{className:"sf-preview-pin",children:[Vr("div",{className:"sf-preview-pin-text",children:[we("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),we("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),we(Bre,{checked:to,onChange:Eo,ariaLabel:c("Preview hover state")})]}),Vr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[A?A.render(e,G):F?Vr(s5,{children:[F.type===Re&&l.hasSiteSettings&&we(r5,{}),we(uT,{children:we(Ft,{entries:we(X2,{parts:v,heading:!1,onOpen:ie=>b(jt(F.props.id,ie))}),entryCount:vS(v).length,itemWord:le})}),ae&&we(sm,{source:ae,slug:Os(F?.props),menuId:tm(F?.props)})]}):L?we(Ft,{omit:qx}):we(wre,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),W&&we(Fre,{shown:_o,onChange:xo,label:c("Show hints")})]})]})}import{jsx as p,jsxs as B,Fragment as b5}from"react/jsx-runtime";var so={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)"},FS="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:so[t],flex:"none",...a}})}var zre={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},x={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},_e=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function hr({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 B("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[p("span",{style:r("8% 26% 30% 6%",x.mark1)}),p("span",{style:r("26% 6% 8% 30%",x.mark2,"multiply")})]})}function gm({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function I5({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return B(b5,{children:[e&&p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),p("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:l},children:t}),a&&p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:n,color:s},children:a})]})}function BS({name:e,price:o}){return B("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",..._e(x.paper,x.paper2,150)},children:p(hr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:x.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o})]})}function xr({k:e,v:o,ok:t}){return B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${x.rule}`,fontSize:"3.98cqw",color:x.muted},children:[p("span",{children:e}),B("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("b",{style:{color:x.text,fontWeight:700},children:o}),t&&p("span",{style:{color:x.rust,fontWeight:700},children:"\u2713"})]})]})}function ke({title:e,children:o}){return B("div",{style:{...V,background:x.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(gm,{children:e}),o]})}function g5({size:e=14}){return p("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${x.mark1},${x.mark2})`}})}function RS({filled:e=5,size:o=6}){return B("span",{style:{fontSize:o,letterSpacing:"0.06em",color:x.rust,lineHeight:1},children:["\u2605".repeat(e),p("span",{style:{color:x.mark1},children:"\u2605".repeat(5-e)})]})}function Zi({n:e,label:o,tone:t=x.text}){return B("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 oo({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:x.muted,width:o,display:"block"},children:e})}function Im({label:e,w:o="100%",filled:t}){return B("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:e}),p("span",{style:{height:9,borderRadius:3,border:`1px solid ${x.rule}`,background:t?x.paper:x.card}})]})}function y5({children:e}){return p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:e})}var Ure={wheelslisting:p(ke,{title:"All wheels",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",..._e(x.paper,x.paper2,150)},children:p(hr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:x.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:B("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[B("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>B("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:x.text,color:x.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,p("span",{style:{opacity:.6},children:"\u2715"})]},e)),p("span",{style:{fontSize:"3.65cqw",color:x.rust,fontWeight:700},children:"Clear"})]}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"128 results"}),p("span",{style:{fontSize:"3.65cqw",color:x.muted,border:`1px solid ${x.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:B("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",..._e(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:x.onInk},children:"Will it fit your rig?"}),B("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>B("span",{style:{flex:1,fontSize:"3.65cqw",color:x.text,background:x.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",p("span",{style:{color:x.muted},children:"\u25BE"})]},e)),p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:x.warm,color:x.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:p(ke,{title:"Tyres that suit",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>B("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:x.ink},children:p("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${x.mark2}`,boxSizing:"border-box"}})}),p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),p("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o})]},e))})}),tyresizes:p(ke,{title:"Available sizes",children:p("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>p("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?x.rust:x.rule}`,color:o===0?x.rust:x.text,background:o===0?x.paper:x.card},children:e},e))})}),tyrefitment:B(ke,{title:"Will it fit your car?",children:[p("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>B("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:x.muted,background:x.paper,border:`1px solid ${x.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",p("span",{style:{color:x.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])=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${x.rule}`,paddingTop:3},children:[p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text},children:e}),p("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?x.warm:x.muted},children:o})]},e))})]}),eutyrelabel:B("div",{style:{...V,background:x.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)=>B("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?x.rust:x.mark1}}),p("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?x.rust:x.muted},children:e})]},e))}),B("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[p("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.text},children:"72"}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:x.muted},children:"dB"})]})]}),bundleoffer:B("div",{style:{...V,background:x.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(gm,{children:"Buy it with"}),B("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:x.card},children:p(hr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.muted},children:"+"}),B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[p("span",{style:{fontSize:"3.65cqw",color:x.muted,textDecoration:"line-through"},children:"$1,024"}),p("b",{style:{fontSize:"6.02cqw",color:x.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:B("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,..._e(x.ink,x.ink2)},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:x.warm,fontWeight:700},children:"READY TO ORDER"}),p("b",{style:{fontSize:"6.63cqw",color:x.onInk,lineHeight:1},children:"$1,956"}),p("span",{style:{fontSize:"3.65cqw",color:x.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:x.warm,color:x.ink,flex:"none"},children:"CHECKOUT"})]}),contact:p(ke,{title:"Who do you need?",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),p("span",{style:{fontSize:"4.64cqw",color:x.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:p(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>B("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o}),p("span",{style:{fontSize:"3.32cqw",color:x.rust,fontWeight:700},children:t})]},e))})}),citypictures:p(ke,{title:"Our studios",children:B("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:x.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=>B("div",{style:{position:"relative",minHeight:0},children:[p(j,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${x.scrim} 45%),${_e(x.ink,x.inkSoft2).background}`}}),p("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:x.onInk},children:e})]},e))})]})}),citymaps:p(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>B("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 ${x.rule}`}}),p("b",{style:{position:"relative",fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{position:"relative",fontSize:"3.32cqw",color:x.muted},children:o}),B("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(j,{r:3,style:{...V,..._e(x.paper,x.paper2,150)}}),p(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:x.mark1,opacity:.75}}),p(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:x.rust}})]})]},e))})}),form:p(ke,{title:"Send us a message",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[B("div",{style:{display:"flex",gap:5},children:[p(Im,{label:"Name"}),p(Im,{label:"Email"})]}),p(Im,{label:"Message",filled:!0}),p(y5,{children:"SEND"})]})}),appointmentbooking:p(ke,{title:"Book a fitting",children:B("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?x.text:x.paper,color:o===2?x.onInk:x.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?x.rust:x.rule}`,color:o===1?x.rust:x.muted,background:o===3?x.paper:x.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:p(ke,{title:"Leave a review",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(RS,{filled:4,size:14}),p(Im,{label:"Your review",filled:!0}),p(y5,{children:"POST"})]})}),submitbuild:p(ke,{title:"Show us your build",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${x.mark1}`,borderRadius:5,background:x.paper},children:[p("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.rust,fontWeight:300},children:"+"}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Drop a photo of your rig"})]})}),masthead:B("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[p("span",{style:{height:1.5,background:x.text}}),p("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:x.text,lineHeight:1},children:"THE TRACK"}),B("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:x.muted},children:[p("span",{children:"Issue 14"}),p("span",{children:"Spring 2026"})]}),p("span",{style:{height:1,background:x.rule}})]}),featuredcover:B("div",{style:{...V,overflow:"hidden",..._e(x.ink,x.inkSoft2)},children:[p(hr,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${x.scrim},transparent 62%)`}}),B("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:x.warm},children:"FEATURE"}),p("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:x.onInk},children:"Four days on the Madigan Line"})]})]}),longread:B("div",{style:{...V,background:x.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:x.rust},children:"12 MIN READ"}),p("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"What breaks first, and why"}),p(oo,{children:"Every failure starts in the same place:"}),p(oo,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:B("div",{style:{...V,background:x.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:x.text},children:"Why offset beats width"}),p(oo,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(oo,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(oo,{w:"80%",children:"Width follows from the space left."})]}),series:p(ke,{title:"Recurring columns",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:3,height:12,borderRadius:2,background:x.rust,flex:"none"}}),p("b",{style:{flex:1,fontSize:"4.64cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},e))})}),events:p(ke,{title:"Latest posts",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[x.inkSoft,x.inkSoft2,"Madigan Line, four days"],[x.rust,x.warm,"Why offset beats width"]].map(([e,o,t])=>B("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{width:24,height:18,borderRadius:3,flex:"none",..._e(e,o,150)}}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:x.text},children:t}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:B("div",{style:{...V,background:x.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:x.muted},children:"POLICY"}),p("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:x.text,lineHeight:1.1},children:"Returns & refunds"}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),p("span",{style:{height:2,width:26,background:x.rust,borderRadius:1}})]}),docbody:p("div",{style:{...V,background:x.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])=>B("div",{style:{display:"flex",gap:5},children:[p("b",{style:{fontSize:"3.98cqw",color:x.rust,flex:"none"},children:e}),p(oo,{children:o})]},e))}),docmetacards:p(ke,{title:"At a glance",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>B("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"5.31cqw",color:x.text,lineHeight:1},children:e}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},o))})}),doctabs:B("div",{style:{...V,background:x.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?x.text:x.muted,background:o===0?x.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?x.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),p("span",{style:{height:1,background:x.rule}}),B("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(oo,{children:"Unfitted wheels come back within 30 days, no questions."}),p(oo,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:B("div",{style:{...V,background:x.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:x.text},children:"The right wheel is the boring one."}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(oo,{children:"Forged, correctly offset, rated for what you actually"}),p(oo,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:p(ke,{title:"Key features",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>B("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{fontSize:"4.64cqw",color:x.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),p("span",{style:{fontSize:"4.31cqw",color:x.text},children:e})]},e))})}),statsparagraph:B("div",{style:{...V,background:x.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[B("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p(Zi,{n:"27k",label:"Rigs"}),p(Zi,{n:"4.9",label:"Rating"})]}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(oo,{children:"Twelve years of fitting the same three questions, and the"}),p(oo,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:B(ke,{title:"Load vs weight",children:[p("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>p("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?x.rust:x.mark1}},o))}),p("span",{style:{height:1,background:x.rule,marginTop:-4}})]}),mockup:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",..._e(x.inkSoft,x.ink)},children:B("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:x.card,boxShadow:`0 6px 14px ${x.scrim}`},children:[p("div",{style:{height:9,background:x.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:x.mark1}},e))}),B("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{height:4,width:"56%",borderRadius:1,background:x.mark2}}),p("span",{style:{height:14,borderRadius:2,..._e(x.paper,x.paper2,150)}}),p("span",{style:{height:3,width:"38%",borderRadius:1,background:x.rust}})]})]})}),manifesto:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",..._e(x.ink,x.ink2)},children:B("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:x.onInk},children:["We build for the ",p("span",{style:{color:x.warm},children:"last"})," ten percent of the track."]})}),timeline:p(ke,{title:"Our story",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>B("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:x.rule}}),p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:x.rust,zIndex:1}}),B("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),p(oo,{children:o})]})]},e))})}),timelinetrack:B("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",..._e(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"Milestones"}),B("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:x.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>B("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?x.warm:x.mark1}}),p("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?x.warm:x.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:B("div",{style:{...V,overflow:"hidden",..._e(x.paper,x.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:x.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:x.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:x.rust}},e)),p("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:x.text},children:"3 fitting bays"})]}),banner:B("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:x.rust},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("b",{style:{fontSize:"6.02cqw",color:x.onInk},children:"End of season \xB7 20% off"}),p("span",{style:{fontSize:"3.98cqw",color:x.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:x.onInk,color:x.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:B("div",{style:{...V,background:x.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:x.text},children:"Not sure what fits?"}),B("div",{style:{display:"flex",gap:5},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:"FIND MY FIT"}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${x.text}`,color:x.text},children:"CALL US"})]})]}),ticker:p("div",{style:{...V,overflow:"hidden",background:x.ink,display:"flex",alignItems:"center"},children:p("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:x.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:B("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",..._e(x.ink,x.ink2)},children:[p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:x.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)=>B("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&p("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:x.warm},children:":"}),B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[p("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:x.onInk,fontVariantNumeric:"tabular-nums"},children:e}),p("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:x.onInk},children:o})]})]},o))})]}),breadcrumb:p("div",{style:{...V,background:x.card,display:"flex",alignItems:"center",padding:"0 13px"},children:B("span",{style:{fontSize:"4.64cqw",color:x.muted},children:["Home ",p("span",{style:{opacity:.5},children:"/"})," Wheels ",p("span",{style:{opacity:.5},children:"/"})," ",p("span",{style:{color:x.text,fontWeight:700},children:"20 inch"})]})}),categorybar:B("div",{style:{...V,background:x.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?x.text:x.paper,color:o===0?x.onInk:x.muted},children:e},e))}),p("span",{style:{height:1,background:x.rule}})]}),intro:B("div",{style:{...V,overflow:"hidden",background:x.card},children:[p("div",{style:{position:"absolute",inset:0,..._e(x.ink,x.inkSoft2)}}),p(hr,{size:64,style:{right:8,top:6}}),B("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:x.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${x.scrim}`},children:[p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.text},children:"Since 1998"}),p(oo,{children:"One shed, one lathe, one idea."}),p(oo,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:p(ke,{title:"Photo gallery",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.inkSoft,x.ink],[x.paper2,x.mark2],[x.ink,x.inkSoft2],[x.warm,x.paper2],[x.mark2,x.inkSoft]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,140+t*22)}},t))})}),gallery:B(ke,{title:"Gallery",children:[p("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?x.text:x.muted,borderBottom:`1.5px solid ${o===0?x.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.ink,x.inkSoft],[x.paper2,x.mark2]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,150+t*20)}},t))})]}),ordersummary:B(ke,{title:"Order summary",children:[B("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[p("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",..._e(x.paper,x.paper2,150)},children:p(hr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:x.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),B("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(xr,{k:"Subtotal",v:"$1,956"}),p(xr,{k:"Fitting",v:"Free"}),B("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[p("b",{style:{color:x.text},children:"Total"}),p("b",{style:{color:x.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:p(ke,{title:"Delivery",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>B("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?x.rust:x.rule}`,background:r?x.paper:x.card},children:[p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?x.rust:x.mark1}`,background:r?x.rust:"transparent"}}),p("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:x.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:x.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:x.text},children:t})]},e))})}),paymentbadges:B("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(gm,{children:"Ways to pay"}),p("div",{style:{display:"flex",gap:5},children:[["VISA",x.ink],["MC",x.rust],["AMEX",x.inkSoft],["PayPal",x.ink2]].map(([e,o])=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:x.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:B("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",..._e(x.ink,x.ink2)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"By the numbers"}),B("div",{style:{display:"flex",gap:8},children:[p(Zi,{n:"27k",label:"Rigs fitted",tone:x.onInk}),p(Zi,{n:"12",label:"Years",tone:x.onInk}),p(Zi,{n:"4.9",label:"Avg rating",tone:x.warm})]})]}),testimonials:B("div",{style:{...V,overflow:"hidden",background:x.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:x.rust,opacity:.16},children:"\u201D"}),p(RS,{filled:5,size:7}),p("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:x.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p(g5,{}),p("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:B(ke,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[x.inkSoft,x.inkSoft2],[x.rust,x.warm],[x.ink,x.inkSoft],[x.mark2,x.mark1]].map(([e,o],t)=>p("div",{style:{flex:1,borderRadius:3,..._e(e,o,140+t*15)}},t))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>B("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(g5,{size:12}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[B("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[p("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),p(RS,{filled:o})]}),p(oo,{children:t})]})]},e))})]}),logos:B("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",..._e(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.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:x.onInk,opacity:.82},children:e},e))})]}),prose:B("div",{style:{...V,background:x.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:x.text},children:"Why offset matters"}),B("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:x.rust,marginTop:1},children:"T"}),B("div",{style:{display:"flex",flexDirection:"column"},children:[p(oo,{children:"he number on the back of your wheel decides whether the"}),p(oo,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:p(ke,{title:"What you get",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>B("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:3,background:x.rust,opacity:.9}}),p("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),p(oo,{children:o})]},e))})}),faq:p(ke,{title:"Questions",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>B("div",{style:{borderBottom:`1px solid ${x.rule}`,padding:"4px 2px"},children:[B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[p("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),p("span",{style:{fontSize:"4.64cqw",color:x.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&p(oo,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:B("div",{style:{...V,overflow:"hidden",..._e(x.ink,x.ink2)},children:[p("div",{style:{...V,background:`linear-gradient(90deg,${x.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(I5,{over:"NEW \xB7 SUMMER",overTone:x.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:x.warm,ctaFg:x.ink,tone:x.onInk})}),p(hr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:B("div",{style:{...V,display:"flex",background:x.paper,overflow:"hidden"},children:[p("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:p(I5,{over:"ALL-TERRAIN",overTone:x.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:x.text,ctaFg:x.onInk,tone:x.text})}),p("div",{style:{flex:1,position:"relative",..._e(x.inkSoft,x.inkSoft2)},children:p(hr,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(ke,{title:"Best sellers",children:B("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[p(BS,{name:"Ridge 19",price:"$365"}),p(BS,{name:"Ridge 29",price:"$410"}),p(BS,{name:"Ridge 39",price:"$455"})]})}),collections:p(ke,{title:"Shop by category",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",x.inkSoft,x.inkSoft2],["Tyres",x.rust,x.warm],["Lift kits",x.ink,x.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:x.onInk,..._e(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:B("div",{style:{...V,display:"flex",background:x.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",..._e(x.paper,x.paper2,150)},children:p(hr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("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:x.rust},children:"NITTO"}),p("b",{style:{fontSize:"6.29cqw",color:x.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:x.text},children:"$489"}),p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:x.text,color:x.onInk},children:"ADD TO CART"})]})]}),spectable:p(ke,{title:"Specifications",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(xr,{k:"Diameter",v:'20"'}),p(xr,{k:"Width",v:"9.0J"}),p(xr,{k:"Offset",v:"+12"}),p(xr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(ke,{title:"Will it fit?",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(xr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(xr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(xr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:B("div",{style:{...V,background:x.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(gm,{children:"How it works"}),p("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:"50%",background:x.text,color:x.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),p("span",{style:{fontSize:"3.98cqw",color:x.text,fontWeight:600},children:e})]},e))})]}),detailrows:p("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=p("div",{style:{flex:1,..._e(t?x.rust:x.inkSoft,t?x.warm:x.inkSoft2)}},"art"),a=B("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[p("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:x.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:x.ink,color:x.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>B("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:x.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},S5={subscribe:B("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[B("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:so.line,marginBottom:10}}),B("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${so.line}`,borderRadius:7,padding:10},children:[B("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}}),B("div",{style:{display:"flex",gap:5,marginTop:4},children:[p("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${so.line}`,background:so.block}}),p(j,{w:34,h:13,r:5,tone:"accent"})]})]}),B("div",{style:{flex:1,background:so.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)=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${so.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:B("div",{style:{...V,display:"flex"},children:[p("div",{style:{width:"44%",background:FS}}),B("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:B(b5,{children:[p(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),B("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[B("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:B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(j,{w:"22%",h:12,r:4,tone:"dark"}),B("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:B("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[B("div",{style:{display:"flex",gap:14},children:[B("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=>B("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:so.line}}),B("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:so.block}},o))}),blanksection:p("div",{style:{...V,padding:14,display:"flex"},children:B("div",{style:{flex:1,border:`1px dashed ${so.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:B("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:B("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:FS},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:B("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:FS}}),button:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center"},children:p(j,{w:"34%",h:16,r:8,tone:"accent"})}),menu:B("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:B("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(j,{w:"56%",h:8,r:3,tone:"dark"}),B("div",{style:{display:"flex",gap:6},children:[p("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${so.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:B("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:B("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${so.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[p("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${so.dark}`}}),p(j,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:B("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 ${so.dark}`}}),p("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${so.dark}`},children:p(j,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:B("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[B("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${so.line}`},children:[p(j,{w:22,h:6,r:2,tone:"dark"}),p(j,{w:6,h:4,r:1,tone:"soft"})]}),B("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${so.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:B("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p("div",{style:{height:1,background:so.line}}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"38%",h:5,r:2,tone:"soft"}),B("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:so.block}})};function w5({type:e}){let o=zre[e]??"",t=Ure[o]??S5[o]??S5.fallback;return p("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as Pm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as _s,jsxs as C5}from"react/jsx-runtime";import jre from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Gre}from"efficient-easel/rail";import{Tooltip as Kre}from"efficient-shell/ui";import{HintsToggle as qre,hintsFoldClass as Vre}from"efficient-easel/panel";import{useHints as Yre}from"efficient-easel/screen/lib/hints";function k5({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Nn(),{shown:d,setShown:f}=Yre();return C5("div",{className:`sf-styles ${Vre(d)}`.trim(),children:[_s(jre,{icon:_s(Gre,{}),title:c("Styles"),context:_s(Kre,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:_s("span",{className:"sf-name-text",children:i})})}),C5("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[_s(Uf,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),_s(qre,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as po,jsxs as Ja,Fragment as eae}from"react/jsx-runtime";import{Fragment as L5,useEffect as D5,useRef as WS}from"react";import{useTreeDrag as N5}from"efficient-easel/drag";import{GlobeIcon as oae,ImageIcon as tae,LocationIcon as rae,MapIcon as aae,TextLinesIcon as nae,TrashIcon as M5}from"efficient-easel/icons";import{Subtree as H5,TreeRow as ed,TreeRowAction as W5,TreeSeam as $5}from"efficient-easel/tree";import{useEaselStrings as sae}from"efficient-easel/strings";import{isSelectionMode as lae}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Xre}from"react";var Jre={level:"groups"},P5=Jre,LS=new Set;function Rt(e){P5=e;for(let o of LS)o()}function Zre(e){return LS.add(e),()=>{LS.delete(e)}}var v5=()=>P5;function T5(){return Xre(Zre,v5,v5)}var Qi=e=>String(e?.group??""),DS=new WeakMap,Qre=0;function ym(e){let o=DS.get(e);return o||(o=`loc${++Qre}`,DS.set(e,o)),o}var O5=(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 Xa(e){return Td(e,Qi,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var NS=e=>e.flatMap(o=>o.cards),_5=(e,o,t)=>Math.min(Math.max(e,o),t);function Sm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Qi(e[a])===o){if(r===t)return a;r++}return-1}function MS(e,o,t){let r=Xa(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=_5(o<t?t-1:t,0,r.length);return r.splice(n,0,a),NS(r)}function HS(e,o,t,r,a){let n=Xa(e),s=n.find(m=>m.key===o),l=n.find(m=>m.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&&DS.set(d,ym(i));let f=_5(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),NS(n)}function A5(e,o){let t=Xa(e),r=t.find(n=>n.key===o),a={...E5,group:o,groupName:r?.name??""};return r?(r.cards.push(a),NS(t)):[...e,a]}function F5(e){let o=new Set(Xa(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 B5(e,o){return e.filter(t=>Qi(t)!==o)}function R5(e,o,t){let r=Sm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function b6e(e,o,t){let r=e.flatMap((s,l)=>Qi(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 w6e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Qi(n)===r);return a.length?a:t(r)})}var wm="ContactLocations",bm=e=>({parentId:`locations-${e}`,slot:"groups"}),$S=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function z5(e,o){let{readOnly:t,selected:r}=o,a=sae().tree,n=o.data?.content??[],s=lae(e),l=WS(null);D5(()=>{let C=r?.type===wm?String(r.props.id):null;C&&C!==l.current&&Rt({level:"groups"}),l.current=C},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:f}=fL(),m=T5(),u=(C,y)=>{let b=n[C];b&&o.replace(C,{type:b.type,props:{...b.props,locations:y}})},h=C=>{let y=n[C]?.props?.locations;return Array.isArray(y)?y:[]},I=N5({keyOf:C=>`group:${C.si}:${C.index}`,readOnly:!!t,canDrop:(C,y)=>y.parentId===bm(C.si).parentId&&y.slot==="groups",onDrop:(C,y)=>{u(C.si,MS(h(C.si),C.index,y.index)),m.level==="city"&&Rt({level:"groups"})},onStep:(C,y)=>{u(C.si,MS(h(C.si),C.index,y<0?C.index-1:C.index+2)),m.level==="city"&&Rt({level:"groups"})}}),S=N5({keyOf:C=>`city:${C.si}:${C.group}:${C.index}`,readOnly:!!t,canDrop:(C,y)=>y.parentId===bm(C.si).parentId&&y.slot.startsWith("cities:"),onDrop:(C,y)=>{let b=y.slot.slice(7);u(C.si,HS(h(C.si),C.group,C.index,b,y.index)),Rt({level:"group",key:b})},onStep:(C,y)=>{u(C.si,HS(h(C.si),C.group,C.index,C.group,y<0?C.index-1:C.index+2)),m.level==="city"&&Rt({level:"group",key:C.group})}}),T=WS(n);T.current=n;let P=WS(()=>{});D5(()=>{f(C=>{let y=iu(C);if(!y)return;let b=T.current.findIndex(F=>F.props?.id===y.nodeId);b<0||P.current(b,{level:y.part,index:y.index})})},[f]);let L=(C,y)=>{l.current=n[C]?.props?.id??null,o.select(C),Rt(y),e.reveal();let b=n[C]?.props?.id;typeof b=="string"&&(y.level==="city"||y.level==="image"||y.level==="map")?d(lu(b,y.index,y.level)):d(null),typeof b=="string"&&o.scrollTo(b)};return P.current=L,{renderLocationTree:(C,y,{rowClick:b,isCollapsed:F,toggleCollapse:_})=>{let D=h(y),w=Xa(D),E=String(C.props.id),g=s&&r?.props.id===E,v=k=>po($5,{...t?{}:I.seam({place:{...bm(y),index:k}})},`seam:${E}:groups:${k}`),O=(k,A)=>po($5,{...t?{}:S.seam({place:{...$S(y,k),index:A}})},`seam:${E}:cities:${k}:${A}`);return Ja(eae,{children:[po(ed,{icon:po(nae,{size:13}),name:c("Texts"),words:a,onSelect:()=>L(y,{level:"texts"}),selected:g&&m.level==="texts",rowProps:{onClick:b(()=>L(y,{level:"texts"}))}}),w.map((k,A)=>{let M=`${E}::grp::${k.key}`,G=F(M),$=g&&m.level==="group"&&m.key===k.key,de=k.name||k.key?O5(k.key,k.name):c("Ungrouped"),le={...$S(y,k.key),index:k.cards.length},ee=S.row({item:{si:y,group:k.key,index:-1},place:le,into:le,canDrag:!1},{onClick:b(()=>L(y,{level:"group",key:k.key}))}),Ie=I.row({item:{si:y,index:A},place:{...bm(y),index:A}},ee.rowProps);return Ja(L5,{children:[A===0&&v(0),po(ed,{icon:po(oae,{size:13}),name:de,words:a,onSelect:()=>L(y,{level:"group",key:k.key}),selected:$,draggable:Ie.draggable,dragging:Ie.dragging,drop:Ie.drop??ee.drop,fold:{open:!G,label:c("group"),onToggle:()=>_(M)},actions:po(W5,{kind:"delete",label:$t("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",k.cards.length,{label:de}),onClick:()=>{u(y,B5(D,k.key)),Rt({level:"groups"})},children:po(M5,{size:15})}),rowProps:Ie.rowProps,count:k.cards.length,countLabel:$t("{n} city","{n} cities",k.cards.length)}),!G&&Ja(H5,{children:[k.cards.map((ae,xe)=>{let ge=Sm(D,k.key,xe),Je=g&&m.level==="city"&&m.index===ge,Ze=String(ae?.name??"")||c("City"),mo=`${E}::city::${ym(ae)}`,qe=F(mo),{rowProps:to,...Eo}=S.row({item:{si:y,group:k.key,index:xe},place:{...$S(y,k.key),index:xe}},{onClick:b(()=>L(y,{level:"city",index:ge}))});return Ja(L5,{children:[xe===0&&O(k.key,0),po(ed,{icon:po(rae,{size:13}),name:Ze,words:a,onSelect:()=>L(y,{level:"city",index:ge}),selected:Je,...Eo,fold:{open:!qe,label:Ze,onToggle:()=>_(mo)},actions:po(W5,{kind:"delete",label:c("Delete {name}",{name:Ze}),onClick:()=>{u(y,R5(D,k.key,xe)),Rt({level:"group",key:k.key})},children:po(M5,{size:15})}),rowProps:to}),!qe&&Ja(H5,{children:[po(ed,{icon:po(tae,{size:13}),name:c("Image"),words:a,onSelect:()=>L(y,{level:"image",index:ge}),selected:g&&m.level==="image"&&m.index===ge,rowProps:{onClick:b(()=>L(y,{level:"image",index:ge}))}}),po(ed,{icon:po(aae,{size:13}),name:c("Map"),words:a,onSelect:()=>L(y,{level:"map",index:ge}),selected:g&&m.level==="map"&&m.index===ge,rowProps:{onClick:b(()=>L(y,{level:"map",index:ge}))}})]}),O(k.key,xe+1)]},ym(ae))}),Ja("button",{type:"button",className:"sf-add-card",onClick:()=>{let ae=A5(D,k.key);u(y,ae);let xe=Xa(ae).find(ge=>ge.key===k.key);Rt(xe&&xe.cards.length?{level:"city",index:Sm(ae,k.key,xe.cards.length-1)}:{level:"group",key:k.key})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),v(A+1)]},M)}),Ja("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:k,key:A}=F5(D);u(y,k),L(y,{level:"group",key:A})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:C=>{C?.type===wm&&Rt({level:"groups"})}}}import{useEffect as cae,useRef as pae}from"react";import{createNode as US,newId as jS}from"efficient-easel/data";import{useEaselApi as uae}from"efficient-easel/easel";import{useScreenDocument as mae}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as xae}from"efficient-easel/screen/lib/session-context";import{useEffect as K5,useRef as iae}from"react";import{useEasel as dae}from"efficient-easel/easel";import{ROOT_ZONE as zS}from"efficient-easel/draw";var od={};function U5(e){return od={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},od}function j5(e){od===e&&(od={})}function As(){return od}function G5(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 V5(e){let o=dae(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=vo(),i=iae(new Set);K5(()=>{let d=q5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&fae($1(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),K5(()=>{let d=U5(q5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>j5(d)},[t,r,a,n,s,l])}function q5(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=G5({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 fae(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(zS,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(zS,r+1+l,s),o.replaceComponent(zS,r+1+l,s)}))}}import{ROOT_ZONE as Fs,missingPinnedTypes as hae,pinnedDuplicateIds as GS}from"efficient-easel/draw";function Y5(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function X5(e,o){let t=e.some(l=>l?.type===ao),r=e[e.length-1],a=!t&&r?.type===Re?r:null,n=e.filter(l=>l?.type===Re&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Vo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Wo)}}async function J5(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!==Wo||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Wo)?!1:(e.write(wf(r,t)),!0)}function Z5(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=mae(),f=xae(),{hasSiteSettings:m,hasPinnedChrome:u}=r;V5(e);let h=!!r.editsPinnedInPlace&&a!==_r,I=a===_r,S=uae().getState,T=pae(null);cae(()=>{if(!Y5({docId:n,saveStatus:l,seededDocId:T.current})||(T.current=n,!u))return;let P=S().appState.data,L=P.content,C=s?.content??[],y=(D,w)=>D.some(E=>E?.type===w);if(!m){let D=new Set(GS(L)),w=D.size?L.filter(g=>!D.has(g.props.id)):L;if(D.size&&e.setDocument({...P,content:w}),I)return;let E=hae(w,C);if(E.includes(Re)){let g=w.length,v=e.insertSection(Re,g);e.replaceComponent(Fs,g,{type:Re,props:{id:v,blocks:mm()}})}E.includes(Vo)&&e.insertNode(Fs,0,um());return}if(I){let D=cP(L);if(D!==L&&e.setDocument({...P,content:[...D]}),!D.find(w=>w.type===Re)&&!y(C,Re)&&!y(D,ao)&&!y(C,ao)){let w=(g,v)=>US(o,g,v),E={type:Re,props:{blocks:mm()}};e.insertNode(Fs,D.length,hi(E,w,jS(ao),Xi))}return}if(h){let D=!!t?.pinnedChrome?.state().docId,w=X5(L,{hasChromeDoc:D}),E=new Set([...w.remove,...GS(L.filter(v=>!w.remove.includes(String(v.props.id))))]),g=E.size?L.filter(v=>!E.has(String(v.props.id))):L;if(g.length!==L.length&&e.setDocument({...P,content:g}),w.seedFooter&&!y(C,Re)&&!y(C,ao)){let v=(k,A)=>US(o,k,A),O={type:Re,props:{blocks:mm()}};e.insertNode(Fs,g.length,hi(O,v,jS(ao),Xi))}if(w.seedHeader&&!y(C,Vo)){let v=g[0]?.type===Wo?1:0;e.insertNode(Fs,v,um())}if(w.seedSiteHeader&&!y(C,Wo)&&!y(C,Re)&&!y(C,ao)){let v=n;J5({blocks:hn(f),make:(O,k)=>US(o,O,k),id:jS(Wo),siteId:i??null,token:d.current,latest:()=>S().appState.data.content,stillOpen:()=>T.current===v,write:O=>{let k=S().appState.data;e.setDocument({...k,content:[...O]})}})}return}let b=L.filter(D=>D.type!==Re),F=new Set(GS(b)),_=F.size?b.filter(D=>!F.has(D.props.id)):b;_.length!==L.length&&e.setDocument({...P,content:_}),!y(_,Vo)&&!y(C,Vo)&&e.insertNode(Fs,0,um())},[n,l,s,S,e,m,u,I,h,t,f,i,d])}import{useEffect as i4,useMemo as Cae,useRef as d4}from"react";import{useEasel as kae}from"efficient-easel/easel";import{newId as vae}from"efficient-easel/data";import{useEaselHost as Pae}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Iae}from"efficient-easel/screen/lib/host";import{isNode as o4}from"efficient-easel/data";function td(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function gae(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function KS(e,o,t,r){e.forEach((a,n)=>{if(o4(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Nt(a))KS(a.props[s],a,s,r)}})}function yae(e){let o=[];KS(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&KS(t,null,"",o);return o}function t4(e,o){return yae(e).find(t=>String(t.node.props.id)===o)}function r4(e,o,t){if(!t)return null;let r=t4(o,t);if(!r)return null;let a=td(e,r.node.type),n=r.parent?`${td(e,r.parent.type)} \xB7 ${gae(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var Sae=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 bae(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Iae]: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=Sae(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=a4(l))}return r}function a4(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=bae(r);a&&(o[t]=a)}return o}function n4(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:td(e,t),fields:a4(r.fields),...s4(t)?{retired:!0}:{}});return o}function s4(e){return Qe(pb,e)}function Q5(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function wae(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 qS(e,o){return e.findIndex(t=>o4(t)&&String(t.props.id)===o)}function e4(e,o,t){let r=o||t;if(!r)return e.length;let a=qS(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function l4(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=t4(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 m=wae(f.node.props,l.path)??d(`there is no ${l.path} in that block`);Object.assign(m,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??d(`there is no block type ${l.type}`),s4(l.type)&&d(`${td(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=xs(l.type),m=Object.keys(l.props??{}).filter(h=>h!=="id");f&&m.length&&d(`${td(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=>Q5(e,h),r,a):{type:l.type,props:{...Q5(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(e4(s,l.after,l.before),0,u);break}case"remove_block":{let f=qS(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=qS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`);let[m]=s.splice(f,1);s.splice(e4(s,l.after,l.before),0,m);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 VS=e=>ho(e.requestId)??null;function f4(){let e=Pae(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=kae(u=>u),s=n,l=d4({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=d4(new Map),d=t?.props?.id,f=Cae(()=>r4(s,o.data,d),[s,o.data,d]),m=f?JSON.stringify(f):"";i4(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,m]),i4(()=>e.subscribe(u=>{let{appState:h,dispatch:I,history:S,blockConfig:T}=l.current;switch(u.type){case"storefront-editor:request-document":{let P=VS(u);if(!P)return;e.send("storefront-editor:document",{requestId:P,document:h.data,blocks:n4(T)});return}case"storefront-editor:apply-page-edits":{let P=VS(u);if(!P)return;let L=Array.isArray(u.ops)?u.ops:[],C=L.length?l4(T,h.data,L,vae,As()):{ok:!1,reason:"no changes"};C.ok&&(I({type:"setData",data:C.document,recordHistory:!0}),i.current.set(P,JSON.stringify(C.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:P,applied:C.ok,reason:C.ok?null:C.reason});return}case"storefront-editor:undo-page-edits":{let P=VS(u);if(!P)return;let L=i.current.get(P),C=L!==void 0&&L===JSON.stringify(h.data.content??[]);C&&S.hasPast&&(S.back(),i.current.delete(P)),e.send("storefront-editor:page-edits-result",{requestId:P,applied:C&&S.hasPast,reason:C?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 u4,useState as m4}from"react";var Cm=new Map;async function Tae(e,o){try{return(await Ao().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function c4(e,o){let t=Cm.get(o);return t||(t=Tae(e,o),Cm.set(o,t),t.catch(()=>{Cm.get(o)===t&&Cm.delete(o)})),t}var Oae=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function YS(e){return!!e&&Oae.test(e)}function p4(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===cT?"/":`/${encodeURIComponent(o)}`;if(!YS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function x4(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=m4(null),[s,l]=m4(null),i=IP();u4(()=>{try{l(new URL(gP()).hostname)}catch{l(null)}},[i]),u4(()=>{if(!YS(s)||!t||!r){n(null);return}let f=!1;return c4(r,t).then(m=>{f||n(m)}),()=>{f=!0}},[s,t,r]);let d=p4({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as rd}from"react/jsx-runtime";import{useEffect as Eae,useRef as h4,useState as _ae}from"react";import{ExternalIcon as I4}from"efficient-easel/icons";import{EaselIconButton as Aae}from"efficient-easel/chrome";import{Tooltip as Fae,iconButtonClasses as Bae}from"efficient-shell/ui";import{useSettledPress as Rae}from"efficient-easel/easel";import{useScreenDocument as Lae}from"efficient-easel/screen/components/ScreenDocumentContext";async function Dae({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 g4({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Lae(),a=h4(r);a.current=r;let n=Rae(),[s,l]=_ae(!1),i=h4(null);if(Eae(()=>()=>i.current?.(),[]),t&&o){let d=()=>new Promise((m,u)=>{i.current=()=>m(!1),n.run(()=>{i.current=null,a.current().then(m,u)})}),f=()=>{s||n.waiting||(l(!0),Dae({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return rd(Aae,{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:rd(I4,{})})}return rd(Fae,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:rd("a",{className:Bae({className:"es-iconbtn"}),href:e,...Al,"aria-label":c("Preview the live site in a new tab"),children:rd(I4,{})})})}import{createElement as Nae,useCallback as Mae,useEffect as y4,useRef as S4,useState as Hae}from"react";import{ClockIcon as Wae}from"efficient-shell/icons/efficient";import{useScreenDocument as $ae}from"efficient-easel/screen/components/ScreenDocumentContext";function b4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=$ae(),s=W2(H2(o??null),r),l=Du(Nu()),i=n.siteLiveState;y4(()=>{if(i)return Mx(i),ca(0),()=>Mx(null)},[i]);let d=Df(),[f,m]=Hae(!1),u=S4(e);u.current=e;let h=S4(!0);y4(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=Mae(()=>{m(!0),a(u.current).then(()=>{Hu()}).finally(()=>{h.current&&m(!1)})},[a]);if(t.canPublish){if(i){let S=d===void 0?void 0:r||d.state==="changed"?"changed":"live",T=yS({live:S,onPress:I,busy:f,goingLive:$2(d?.changes??[])});return n.siteVersions?{...T,menuItems:zae()}:T}return yS({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function zae(){return[{key:"version-history",label:c("Version history"),icon:Nae(Wae),onSelect:QM}]}import{jsx as Q,jsxs as tt,Fragment as sd}from"react/jsx-runtime";import{useCallback as Uae,useEffect as jae,useId as k4,useRef as Gae,useState as St}from"react";import{useSettledAction as Kae}from"efficient-easel/easel";import{Avatar as qae,Banner as ad,Button as Za,ColoredBadge as XS,Dialog as ZS,DropdownMenu as Vae,FormField as v4,iconButtonClasses as Yae,Inline as JS,Input as Xae,ListRow as Jae,Select as Zae,SortableList as Qae,Stack as nd}from"efficient-shell/ui";import{EditIcon as ene,EyeIcon as w4,MenuIcon as one,MoreIcon as tne,PageIcon as P4,RevertIcon as C4,StylesIcon as rne}from"efficient-shell/icons/efficient";import{useScreenDocument as T4}from"efficient-easel/screen/components/ScreenDocumentContext";var ane={page:P4,menu:one};function nne(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function sne(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 lne({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=k4();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,m=lH(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}):m?c("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:m}):c("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return Q(ZS,{open:!0,onClose:()=>{r||n()},size:"sm",title:u,footer:tt(sd,{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:tt(nd,{gap:4,children:[o&&e.pages.length>1?Q(v4,{label:c("Page"),htmlFor:i,children:Q(Zae,{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(ad,{tone:"warning",children:$t("{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(ad,{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(ad,{tone:"danger",children:a}):null]})})}function ine({version:e,onCancel:o,onSave:t}){let r=k4(),[a,n]=St(null),[s,l]=St(""),[i,d]=St(!1),[f,m]=St(null);if(e!==a&&(n(e),l(e?.name??""),m(null)),!e)return null;let u=s.trim()===e.name,h=async()=>{if(!(i||u)){d(!0),m(null);try{await t(s.trim())}catch{m(c("The name was not saved. Try again."))}finally{d(!1)}}};return Q(ZS,{open:!0,onClose:()=>{i||o()},size:"sm",title:c("Name this version"),footer:tt(sd,{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(v4,{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(Xae,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function dne({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(w4,{}),onSelect:r}],...i?[{key:"restore",label:l?c("Put these drafts back"):c("Restore whole website"),icon:Q(C4,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:Q(P4,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:Q(ene,{}),onSelect:s}]];return Q(Jae,{title:tt("span",{className:"sf-version-title",children:[Q("span",{children:sH(e)}),e.live?Q(XS,{tone:"success",size:"xs",children:c("Live")}):null,e.name?Q(XS,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,l?Q(XS,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:Q(Vae,{align:"end","aria-label":c("More"),items:f,triggerClassName:Yae({variant:"ghost",size:"sm"}),trigger:Q(tne,{})}),below:tt(nd,{gap:3,children:[tt(JS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[Q(qae,{name:e.createdBy,size:"xs"}),Q("span",{children:e.createdBy}),Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:dH(e.createdAt)}),d?tt(sd,{children:[Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:$t("{n} change","{n} changes",d)})]}):null]}),o?tt(nd,{gap:3,children:[d?Q(nd,{gap:2,children:e.changes.map(m=>{let u=ane[m.kind]??rne;return tt(JS,{gap:2,align:"center",children:[Q(u,{size:16}),Q("span",{children:iH(m)})]},`${m.kind}:${m.id}`)})}):null,tt(JS,{gap:2,children:[l?null:Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(w4,{}),onClick:r,children:c("Preview")}),i?Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(C4,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function fne({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=T4(),[l,i]=St(null),[d,f]=St(!1),[m,u]=St(null),[h,I]=St(null),[S,T]=St(!1),[P,L]=St(null),[C,y]=St(null),[b,F]=St(!1),_=Gae(0),D=Uae(()=>{let v=++_.current;f(!1),t.list().then(O=>{v===_.current&&i(O)},()=>{v===_.current&&f(!0)})},[t]);jae(()=>{e&&D()},[e,D]);let w=v=>{F(!1),sne(t,v.id).catch(()=>F(!0))},E=async()=>{if(!(!h||S)){T(!0),L(null);try{await aH({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(v){L(v instanceof Ni?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{T(!1)}}},g=Kae({onPress:()=>{E()},busy:S});return tt(sd,{children:[Q(ZS,{open:e,onClose:o,size:"xl",title:c("Version history"),description:tt(sd,{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:tt(nd,{gap:3,children:[b?Q(ad,{tone:"danger",onDismiss:()=>F(!1),children:c("The preview did not open. Try again.")}):null,d?Q(ad,{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(Qae,{"aria-label":c("Versions"),spacing:"comfortable",children:l.map(v=>Q(dne,{version:v,expanded:m===v.id,onToggle:()=>u(O=>O===v.id?null:v.id),onPreview:()=>w(v),onRestore:()=>{L(null),I({version:v,page:null})},onRestorePage:()=>{L(null),I({version:v,page:nne(v,s)})},onName:()=>y(v)},v.id))})]})}),Q(lne,{version:h?.version??null,page:h?.page??null,waiting:r,busy:g.busy===!0,error:P,onCancel:()=>I(null),onConfirm:g.onPress,onPage:v=>I(O=>O&&{...O,page:O.version.pages.find(k=>k.id===v)??O.page})}),Q(ine,{version:C,onCancel:()=>y(null),onSave:async v=>{await t.name(C.id,v),y(null),D()}})]})}function O4(){let{adapter:e,hasUnsavedEdits:o}=T4(),t=e.siteVersions,r=oH(),a=Df();return t?Q(fne,{open:r,onClose:eH,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as u6}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as hWe,categoryLabel as IWe,paletteWithoutPinned as gWe,pinnedSection as yWe}from"efficient-easel/screen/lib/document/palette-sections";var cne={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(cne,e)?.label}var _4=xb;function pne(e){let o=fu.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=lI.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:lI.sectionAccent}}}var une={Hero:{[ri]:{newChild:pne,childLabel:ea.Ticker}}},A4=Object.fromEntries(Object.entries(B1).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...z(une,e)?.[t]}]))]));function F4(e,o=0,t,r){let a=xne(hne(e,o,r),t),n=a?Ng():null;return a&&n?mne(a,n):a}function mne(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 xne(e,o){if(!e||e.source!=="container"||!o||!ww())return e;let t=Dd({data:o.data},o.id),r=typeof t?.type=="string"?Ad(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 hne(e,o,t){let r=t?z(A4,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=z(ct,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=hd(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=Q2(e);return s?{source:"footer",slot:Z2,choices:s,spec:null}:null}function B4(e,o=Rd(e.type)){return Bd(e.type)?o.map(t=>{let r=vw(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as Ine}from"react";var QS=null,eb=new Set;function R4(e){if(QS!==e){QS=e;for(let o of eb)o()}}function gne(e){return eb.add(e),()=>{eb.delete(e)}}function zWe(){return Ine(gne,()=>QS,()=>null)}function L4(e){return LP(e)?.ownerId??null}function D4(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 yne}from"efficient-shell/format";var Sne=["pages","sections","styles"],N4="sf-editor-left-view";function M4(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(N4);return yne(Sne,"pages",e)}catch{return"pages"}}function H4(e){if(!(typeof window>"u"))try{window.localStorage.setItem(N4,e)}catch{}}function W4(e,o){return e==="styles"&&!o?"sections":e}function $4(e,o){return e?"sections":o}import{copyNode as bne}from"efficient-easel/data";function z4(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=lr(),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 U4={usedOn:e=>{let o=lr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Bf()?.openPage(e),adopt:(e,o)=>lr()?.adopt(e.props.id,o),nodeOf:e=>lr()?.place(e)??null,detach:e=>{let o=Bf()?.config;return o?bne(e,o):e},removed:()=>Bf()?.reload()};import{sharedSectionsOf as Vne}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Yne,scrollPreviewToTop as s6}from"efficient-easel/screen/lib/document/preview-dom";var wne=_f.mediaFields,Cne=/video|poster|focal|phone/i;function kne(e){return(z(wne,e)??[]).find(o=>!o.includes("[]")&&!Cne.test(o))??null}function vne(e){let o=kne(e.type);return e.type!==K?o&&Ld(e.type,e.props,o)?{fromData:!0}:o:Zk(e.props)?{fromData:!0}:o}var j4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:vne,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var G4={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 km}from"react/jsx-runtime";import{useState as Pne}from"react";import{Button as Tne,Tooltip as One,toast as K4}from"efficient-shell/ui";import{TemplateIcon as Ene}from"efficient-easel/icons";import{useSettledAction as _ne}from"efficient-easel/easel";import{useScreenDocument as Ane}from"efficient-easel/screen/components/ScreenDocumentContext";function V4({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=Ane(),[a,n]=Pne(!1),s=async()=>{if(!a){n(!0);try{await r()?t():K4.error(c(q4))}catch{K4.error(c(q4))}finally{n(!1)}}},l=_ne({onPress:()=>{s()},busy:a});return km(One,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:km("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:km(Tne,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:km(Ene,{size:15}),children:c("Save as Template")})})})}var q4="Your last changes did not save, so the template was not made. Try again.";var Fne="Save your page changes first";function Y4(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:Fne}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var X4="storefront-editor:save-as-template";import{phoneKey as Bne,tabletKey as Rne}from"efficient-easel/draw";var Lne=[Io.top,Rne(Io.top),Bne(Io.top)],vm="ContactLocations",J4="ContactRouting",Z4="CityPictures",Q4="CityMaps",Dne=[{key:Z4,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:Q4,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function e6(e=Oa,o=JI){let t=cb.find(r=>r.sections.some(a=>a.type===J4))?.key;return!e.includes(vm)||!t?[]:Dne.filter(r=>!(o&&r.key===Z4)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:J4,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Dr(vm);if(!i)return null;let d=As(),f=wi(vm,i,s)(l.nodeDefaults,l.newNodeId,d);if(!f||!(o&&r===Q4))return f;let m=wi(vm,i,0)(l.nodeDefaults,h=>`${h}-above`,d),u=Object.fromEntries(Lne.filter(h=>m?.props[h]!==void 0).map(h=>[h,m.props[h]]));return{...f,props:{...f.props,...u}}}}))}function o6(e=Oa,o){return[...e6(e,o)]}function r6(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=xs(e);if(n)return n(o,t,As());if(uw(e)&&a(K)&&a(pn)){let l=z(kt,e);return{type:K,props:{...o(K),id:t(K),direction:"column",name:`${r(e)} section`,content:[{type:pn,props:{...o(pn),id:t(pn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...Rl(e)!==Rl(pn)?{eyebrowLook:Rl(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...t6(e,t)}}]}}}if(z(ct,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=t6(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function t6(e,o){return e==="Cards"?{template:dw(t=>o(t))}:e===fw?{template:cw(t=>o(t))}:{}}import{useEffect as Nne,useState as Mne}from"react";import{useEaselSession as Hne}from"efficient-easel/screen/lib/session-context";function a6(){let e=Hne().chrome?.products?.list,[o,t]=Mne(null);return Nne(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function m6({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=lL(),a=p6().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Bs(i=>{i&&(o({kind:"ticker",heroId:i}),Yne(i))},[o]);return Jt(()=>{t(s)},[s,t]),Jt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let f=String(i.props.id);return i.type==="Hero"&&iI(i.props)&&uo(f6,{icon:uo(Ga,{type:"ticker",size:13}),name:c(Ma),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function x6({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Xu(),a=p6().tree,{appState:n,config:s}=c6(u=>u),l=Wne({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=ka.find(u=>Zl[u]===i.kind),f=d&&"nodeId"in i?va(String(i.nodeId),d):null,m=Bs(u=>{let h=op(u);if(!h)return;let{data:I,config:S}=l.current,T=Kne(I,S,{kind:"node",id:h.nodeId});if(!T)return;let P={kind:Zl[h.part],nodeId:h.nodeId};o({index:T.index,zone:T.zone},P)},[o]);return Jt(()=>{t(f)},[f,t]),Jt(()=>{r(m)},[r,m]),{partRows:(u,{rowClick:h})=>{let I=String(u.props.id),S=M_(u);if(S.length===0)return null;let T=C=>{let y=va(I,C.part);return uo(f6,{icon:uo(Ga,{type:C.part==="media"?"heroMedia":"heroImage",size:13}),name:c(C.label),onSelect:()=>m(y),selected:f===y,rowProps:{onClick:h(()=>m(y))},words:a},y)},[P,...L]=S;return ld(d6,{children:[T(P),L.length>0&&uo(Gne,{children:L.map(T)})]})}}}function h6(e,o){return{partRows:(t,r)=>ld(d6,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Xne(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=Pm(),{hasPreviewLink:f}=t,m=Ao(u6()).preview?.draftLink,u=b4(e.data),h=Y4({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Bs(()=>{!a||!r||i(X4,{siteId:a,slug:r})},[i,a,r]),S=x4({pageSlug:r,siteId:a,token:d}),T=o.previewHref?.(r)??S;return{barLead:()=>h.visible&&uo(V4,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&uo(g4,{liveHref:T,pageId:n??null,draftLink:m}),mainAction:u}}function Jne(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=Pm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=C=>o.setView(C),[f,m]=n6(r0[0].id),[u,h]=n6(!1),{surface:I,setSurface:S}=GH(),T=()=>{if(l){d("styles"),o.reveal(),s6();return}e.show(AS),e.reveal(),s6()},P={id:"pages",label:c("Pages"),icon:uo(zne,{}),panel:({onHide:C})=>uo(LH,{activeSurface:I,onPreviewSurface:S,onNavigate:y=>{S(null),s(r?{kind:"template",id:r,pageSlug:y}:{kind:"page",slug:y,siteId:a??void 0})},onClose:C})},L=[];return!l&&i&&L.push({id:"appearance",label:c("Appearance"),icon:uo(jne,{}),active:e.kind==="website",onSelect:T}),l&&L.push({id:"styles",label:c("Styles"),icon:uo(Une,{}),panel:({onHide:C,notify:y})=>uo(k5,{tokenRef:n,siteId:a??void 0,onClose:C,onNotify:y,tab:f,onTabChange:m,revealPageGroup:u,onPageGroupRevealed:()=>h(!1)})}),{railLead:[P],railTrail:L,resolveLeftView:C=>W4(C,l),openSettings:T,openStyles:()=>{m(t0),d("styles")},openPageStyles:l?()=>{m(zf),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(p5),e.reveal()}:void 0}}function Zne(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=Pm(),a=c6(s=>s.config),n=u6();Jt(()=>(Nx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Nx(null)),[e,o,t,a]),Jt(()=>{let s=lr();if(!s||!r)return;let l=!1;return Vne(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function I6(){let e=Gf();return Bs(o=>{E0(o,e)},[e])}function Qne(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;Jt(()=>{R4(s?.type==="BookingBox"&&s.props.region==="confirm"?L4(l(String(s.props.id))):null)},[s?.props.id]);let i=z5(e,o),{capabilities:{hasSiteSettings:d}}=Pm();Zne();let{chat:f,setChat:m,setSelected:u,setSelectHandler:h}=Yu(),I=Bs(()=>n(u5),[n]),S=a==="chat";Jt(()=>{u(S)},[S,u]),Jt(()=>{h(I)},[h,I]);let{setOpenHandler:T}=Hi(),P=Bs(()=>n(m5),[n]);Jt(()=>{T(P)},[T,P]);let L=h6(m6(e),x6(e)),C=Xne(o),y=Jne(e,r);TH(r);let b=t.device,F=I6();return{...L,...C,...y,hasOwnRows:_=>_.type===wm,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:F,wrap:_=>uo(Yx.Provider,{value:!0,children:ld(qne.Provider,{value:b,children:[_,uo(O4,{})]})}),addPanelRow:_=>d?ld("div",{className:"sf-addside-sitewide",children:[uo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:uo(Ga,{type:"chat",size:16})}),ld("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{_(),I()},children:[c("Live chat"),uo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),uo($ne,{checked:f.enabled,onChange:D=>m({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var l6=null,ob=new WeakMap;function ese(e){let o=sC();if(!e||!o)return e;l6!==o&&(l6=o,ob=new WeakMap);let t=ob.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},ob.set(e,t)),t}var ose={isLockedBlock:(e,o)=>vu(e,o)||!!(o&&lr()?.heldElsewhere(o.props.id)),duplicateBlocked:xm,nestDepth:(e,o,t)=>o===Kd?qd(e,t):0,newSectionNode:r6,canAddTo:(e,o,t,r)=>ese(F4(e,o,r,t)),blockIsOffered:ZL,slotsOf:B4,resolveOnInsert:!0},tse=new Proxy(G4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),rse={labelAtLevel:(e,o,t)=>c(Em(e,o,t)),descriptions:tse,categoryLabel:e=>{let o=E4(e);return o===void 0?void 0:c(o)},firstSection:_4,blockRowName:D4,rowName:Pu,plainText:ln,Icon:Ga,Thumbnail:w5,useProducts:a6,presets:o6()},ase={desktop:2e3,tablet:800,mobile:390},i6="desktop",nse={options:$H,initial:i6,fluid:i6,fluidMin:Xb,widths:ase,hidesPerView:!0},sse={read:M4,write:e=>H4(e),forSelection:(e,o)=>$4(e,o)},lse={first:Vo,last:Re,firstGroup:Wo,lastGroup:ao,isSectionGroup:iP,sectionGroupZone:dP,panelOf:e=>e===Vo?c5:null,get sharedReach(){return ua()?dse:void 0},get shared(){return lr()?U4:void 0},get groupTab(){return ua()?e5:void 0},get groupBadge(){return ua()?PS({type:ao})??void 0:void 0},get changeNotice(){return ua()?o5():void 0},get band(){return ua()?ise:void 0},get groupAccepts(){return ua()?pP:void 0}},ise={foldable:!0},dse=e=>PS(e)??z4(e);function fse(e){return{...h6(m6(e),x6(e)),onCopyItem:I6(),openSettings:()=>e.show(AS)}}function cse(e,o){Z5(e,o),f4()}var Qze={useOwnerName:Nn,useDocumentLabel:R0,useBridges:Qne,useStandaloneBridges:fse,useDocumentPass:cse,blockRules:ose,blockLook:rse,devices:nse,leftView:sse,pinned:lse,Canvas:uH,canvasDrag:{media:j4},Inspector:h5};export{Bg as a,qt as b,Vt as c,no as d,She as e,fI as f,Sye as g,Ii as h,gi as i,mF as j,xF as k,Mp as l,bye as m,ZG as n,hF as o,wye as p,HL as q,l0e as r,WL as s,f0e as t,kl as u,ha as v,uI as w,The as x,mp as y,jO as z,GO as A,tA as B,rO as C,Pt as D,nc as E,aO as F,uh as G,cie as H,pie as I,uie as J,nO as K,mie as L,sc as M,dO as N,gie as O,yie as P,fO as Q,Sie as R,Fie as S,Bie as T,hO as U,ot as V,zn as W,fo as X,Fa as Y,Y as Z,es as _,Z as $,X as aa,te as ba,re as ca,ce as da,lIe as ea,pe as fa,ts as ga,rs as ha,ii as ia,di as ja,lA as ka,cIe as la,Bj as ma,iA as na,mIe as oa,xIe as pa,dA as qa,Th as ra,NO as sa,OW as ta,Rl as ua,MO as va,Hde as wa,xI as xa,yIe as ya,SIe as za,bIe as Aa,wIe as Ba,CIe as Ca,kIe as Da,sde as Ea,Ec as Fa,Al as Ga,lde as Ha,ide as Ia,TO as Ja,Ch as Ka,iW as La,dW as Ma,dde as Na,fW as Oa,fde as Pa,OE as Qa,lpe as Ra,NE as Sa,ipe as Ta,dpe as Ua,fpe as Va,Cp as Wa,yI as Xa,uA as Ya,kp as Za,LIe as _a,Kj as $a,qj as ab,Vj as bb,DIe as cb,Go as db,Da as eb,is as fb,wge as gb,Cge as hb,kge as ib,GE as jb,Vc as kb,H$ as lb,gpe as mb,VA as nb,YA as ob,XA as pb,Uge as qb,QA as rb,Pye as sb,Tye as tb,Wp as ub,gF as vb,Nl as wb,$O as xb,zO as yb,_h as zb,Sa as Ab,tE as Bb,Cfe as Cb,kfe as Db,vfe as Eb,$l as Fb,dt as Gb,Ffe as Hb,ude as Ib,Pde as Jb,vh as Kb,Tde as Lb,ga as Mb,_c as Nb,Xe as Ob,Ufe as Pb,iE as Qb,fE as Rb,cE as Sb,$p as Tb,PF as Ub,Uye as Vb,zp as Wb,TF as Xb,Vye as Yb,MF as Zb,P8 as _b,qp as $b,KSe as ac,Jc as bc,J$ as cc,Yh as dc,N8 as ec,lbe as fc,fB as gc,cB as hc,ibe as ic,dbe as jc,Zx as kc,z6 as lc,Qx as mc,u0 as nc,kbe as oc,vB as pc,PB as qc,TB as rc,Xbe as sc,iwe as tc,dwe as uc,fwe as vc,cg as wc,RB as xc,lK as yc,iK as zc,Xp as Ac,uwe as Bc,mwe as Cc,$we as Dc,tR as Ec,zwe as Fc,rR as Gc,jwe as Hc,fR as Ic,cR as Jc,zK as Kc,mR as Lc,iCe as Mc,eu as Nc,gCe as Oc,Si as Pc,bCe as Qc,gR as Rc,CCe as Sc,yR as Tc,SR as Uc,PCe as Vc,Bl as Wc,TW as Xc,mr as Yc,ACe as Zc,ou as _c,LCe as $c,ru as ad,Ade as bd,Fde as cd,ya as dd,Bde as ed,ch as fd,ac as gd,$0 as hd,ft as id,Yl as jd,Cz as kd,Zh as ld,uue as md,Xl as nd,vz as od,mue as pd,gue as qd,Jl as rd,R_ as sd,L_ as td,ame as ud,nme as vd,sme as wd,lme as xd,Wz as yd,ime as zd,op as Ad,Ql as Bd,pme as Cd,tI as Dd,j_ as Ed,G_ as Fd,Qh as Gd,qz as Hd,ume as Id,tp as Jd,ei as Kd,ap as Ld,mme as Md,xme as Nd,rp as Od,hme as Pd,Ime as Qd,Y_ as Rd,oi as Sd,ti as Td,sp as Ud,J_ as Vd,Zn as Wd,Z_ as Xd,lp as Yd,ip as Zd,dp as _d,Q_ as $d,e1 as ae,o1 as be,t1 as ce,r1 as de,f1 as ee,c1 as fe,Vme as ge,Yme as he,Xme as ie,Jme as je,Zme as ke,hU as le,IU as me,Qme as ne,exe as oe,oxe as pe,u1 as qe,txe as re,rxe as se,axe as te,nxe as ue,SU as ve,bU as we,PU as xe,OU as ye,EU as ze,y1 as Ae,LU as Be,b1 as Ce,w1 as De,$c as Ee,UU as Fe,Lxe as Ge,E1 as He,zxe as Ie,ehe as Je,ohe as Ke,yce as Le,zl as Me,kce as Ne,vce as Oe,kE as Pe,Ci as Qe,Xt as Re,gD as Se,hu as Te,AOe as Ue,FOe as Ve,UOe as We,jOe as Xe,vV as Ye,Xg as Ze,TD as _e,GOe as $e,ED as af,_D as bf,LD as cf,FV as df,LV as ef,mEe as ff,TEe as gf,OEe as hf,Oi as if,EEe as jf,_Ee as kf,Qg as lf,AEe as mf,Uve as nf,jl as of,Uh as pf,Kc as qf,s_e as rf,Yn as sf,Npe as tf,Mpe as uf,n_ as vf,I9 as wf,EN as xf,Ai as yf,k1e as zf,P1e as Af,dy as Bf,UN as Cf,su as Df,Vve as Ef,Jve as Ff,lL as Gf,Sg as Hf,iL as If,dL as Jf,ePe as Kf,fL as Lf,iu as Mf,iPe as Nf,pL as Of,xL as Pf,uL as Qf,hy as Rf,PFe as Sf,TFe as Tf,OFe as Uf,Pu as Vf,hM as Wf,yy as Xf,VFe as Yf,YFe as Zf,bJ as _f,wJ as $f,BBe as ag,RBe as bg,LBe as cg,DBe as dg,Fu as eg,Bu as fg,sRe as gg,$M as hg,jM as ig,GM as jg,KM as kg,QLe as lg,Zke as mg,Du as ng,qu as og,DH as pg,NH as qg,HH as rg,Vu as sg,ADe as tg,FDe as ug,Yu as vg,WQ as wg,zDe as xg,Hi as yg,KDe as zg,GH as Ag,Mn as Bg,H6 as Cg,Fse as Dg,Bse as Eg,m5e as Fg,x5e as Gg,h5e as Hg,D1 as Ig,YDe as Jg,Xu as Kg,wse as Lg,U6 as Mg,j6 as Ng,G6 as Og,h0 as Pg,Zse as Qg,ec as Rg,p3 as Sg,u3 as Tg,Tle as Ug,xse as Vg,B3 as Wg,vO as Xg,Qie as Yg,ede as Zg,sW as _g,ode as $g,tde as ah,Oc as bh,rde as ch,qn as dh,mE as eh,xE as fh,PE as gh,tpe as hh,jE as ih,mpe as jh,KE as kh,Xh as lh,ez as mh,az as nh,Ype as oh,Wke as ph,rve as qh,lve as rh,zR as sh,pve as th,uve as uh,vve as vh,Pve as wh,Hve as xh,bi as yh,gq as zh,$Pe as Ah,YPe as Bh,uTe as Ch,mTe as Dh,zTe as Eh,FL as Fh,yse as Gh,FMe as Hh,e2 as Ih,Re as Jh,mm as Kh,Rt as Lh,T5 as Mh,Qi as Nh,O5 as Oh,E5 as Ph,b6e as Qh,w6e as Rh,c4 as Sh,YS as Th,p4 as Uh,F4 as Vh,zWe as Wh,Qze as Xh};