efficient-storefront-blocks 0.130.15 → 0.131.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/chunks/{CustomHtmlCodeWindow-DHCKPXRN.js → CustomHtmlCodeWindow-JINOMDUB.js} +1 -1
  3. package/dist/chunks/{EditorPreviewCheckout-WPWX5CLZ.js → EditorPreviewCheckout-B5B4BHEG.js} +1 -1
  4. package/dist/chunks/SiteEditorProvider-CJRYE2LF.js +1 -0
  5. package/dist/chunks/{chunk-66NNRDRA.js → chunk-3QCDDPXL.js} +1 -1
  6. package/dist/chunks/{chunk-HEKC2QYZ.js → chunk-43XANC6T.js} +1 -1
  7. package/dist/chunks/{chunk-AL6K3KD7.js → chunk-7W33H2GG.js} +1 -1
  8. package/dist/chunks/{chunk-LSEWOQRA.js → chunk-GVSVEV2H.js} +8 -8
  9. package/dist/chunks/{chunk-43DAA6QE.js → chunk-PJVO662Y.js} +1 -1
  10. package/dist/chunks/chunk-QYTBEMMG.js +337 -0
  11. package/dist/chunks/{chunk-4J3EMW4L.js → chunk-R5FDAR72.js} +1 -1
  12. package/dist/chunks/{chunk-NOV6LTTJ.js → chunk-SV3VVDBH.js} +1 -1
  13. package/dist/chunks/{fitment-data-JY77OFQP.js → fitment-data-FRSLYOCL.js} +1 -1
  14. package/dist/chunks/{section-css-style-TB33NIO4.js → section-css-style-3IQWMPDP.js} +1 -1
  15. package/dist/editor/lib/document/blocks/service/Form/fields.js +1 -1
  16. package/dist/editor/lib/document/config.js +1 -1
  17. package/dist/index.js +26 -26
  18. package/dist/links.js +1 -1
  19. package/dist/render/app/globals.css +17 -0
  20. package/dist/render/built-with.json +1 -1
  21. package/dist/render/components/FormBlock.d.ts +19 -2
  22. package/dist/render/components/FormBlock.js +1 -1
  23. package/dist/render/lib/document/blocks/service/Form/render.js +1 -1
  24. package/dist/render/lib/document/blocks/text-part-shapes.json +1 -1
  25. package/dist/render/lib/document/footer-page-blocks.d.ts +1 -0
  26. package/dist/render/lib/document/footer-page-blocks.js +1 -1
  27. package/dist/routine-index.json +1 -1
  28. package/dist/value-index.json +1 -1
  29. package/dist/words.d.ts +8 -0
  30. package/dist/words.js +4 -4
  31. package/package.json +4 -4
  32. package/dist/chunks/SiteEditorProvider-CKIUIYEI.js +0 -1
  33. package/dist/chunks/chunk-KZNWKZDS.js +0 -337
  34. /package/dist/chunks/{chunk-HEKC2QYZ.js.LEGAL.txt → chunk-43XANC6T.js.LEGAL.txt} +0 -0
  35. /package/dist/chunks/{chunk-5OXXOEE7.js → chunk-FVHAKC6L.js} +0 -0
  36. /package/dist/chunks/{chunk-KZNWKZDS.js.LEGAL.txt → chunk-QYTBEMMG.js.LEGAL.txt} +0 -0
  37. /package/dist/chunks/{chunk-RCXMXKPT.js → chunk-T5PQ7BY4.js} +0 -0
  38. /package/dist/chunks/{chunk-3DKV2YJ6.js → chunk-TICXZI44.js} +0 -0
@@ -0,0 +1,337 @@
1
+ import{$ as sf,D as Av,E as Fv,F as of,G as Bv,H as Wv,I as Or,J as $v,K as zv,L as Uv,M as nt,N as tf,O as vo,P as fe,R as rf,S as Er,T as af,X as jv,Y as nf,Z as _r,_ as Gv,a as Xo,b as Ys,ba as tP,c as jd,d as yn,e as Xs,f as iv,fa as uP,g as Sn,h as Gd,ha as mP,ia as Nf,ja as $T,ka as zT,r as tl,t as _v}from"./chunk-7W33H2GG.js";import{a as yP,d as Sf,e as st,f as bf,g as wf,h as Pf,l as Kx}from"./chunk-T5PQ7BY4.js";import{$ as ix,$a as mv,$b as rl,$c as sa,$e as bP,$j as Wx,$k as VT,A as vC,Aa as px,Ab as el,Ac as ik,Ad as $k,Ae as pP,Ah as ca,Ak as LT,Al as ZT,B as kC,Ba as JC,Bb as zt,Bc as dk,Bd as zk,Bh as Ff,Bj as wT,Bk as RT,Bl as Mf,C as PC,Ca as QC,Cb as wn,Cc as fk,Cd as Uk,Ce as vt,Cj as Lf,Cl as JT,D as rt,Da as ev,Db as ol,Dc as jt,Dd as jk,Df as BP,Dg as XP,Dh as pT,Dj as Nx,Dk as DT,E as TC,Ea as ov,Ec as Ue,Ed as Gk,Ee as je,Ef as _x,Eh as uT,Ej as CT,El as Ln,F as OC,Fa as tv,Fc as Ar,Fd as vx,Fe as kt,Ff as LP,Fh as mT,Fj as vT,Fk as zx,Fl as Hf,G as EC,Ga as rv,Gb as Ix,Gc as Sx,Gd as Kk,Ge as Oe,Gf as RP,Gh as xT,Gj as Mx,H as _C,Ha as kr,Hb as na,Hc as ck,Hd as kx,He as IP,Hf as DP,Hg as ZP,I as AC,Ia as av,Ib as ef,Ic as pk,Id as qk,If as NP,Ig as JP,Ij as En,J as FC,Jb as Tv,Jc as uk,Jd as Vk,Jg as QP,Jj as kT,K as BC,Ka as nv,Kb as Ov,Kc as mf,Kd as Yk,Kf as MP,Kg as eT,La as Kd,Lb as Ev,Lc as al,Ld as Gt,Le as Px,Lg as oT,Lk as pl,M as LC,Ma as Zs,Mb as lf,Mc as mk,Md as Xk,Mg as Bx,Mj as Hx,Mk as Df,N as RC,Na as qd,Nb as Vv,Nc as xk,Nd as da,Ng as tT,Nj as fl,Nk as Ux,O as DC,Oa as dv,Ob as df,Oc as hk,Od as Zk,Oe as il,Og as Lx,Ok as NT,P as Md,Pb as yx,Pc as xf,Pd as Pn,Pg as dr,Pk as ua,Q as NC,Qb as ff,Qc as Ik,Qg as Rx,Qj as _n,Qk as MT,R as MC,Rc as gk,Rd as lr,Rg as Ef,Rk as HT,Sa as fv,Sc as bx,Sd as Jk,Se as gP,Sg as rT,Sj as PT,Sk as WT,Ta as cv,Tc as yk,Td as ll,Te as Tx,Tf as HP,Tg as aT,Ua as Js,Uc as kn,Ud as Qk,Ue as SP,Uf as WP,Ug as nT,Uk as UT,Vb as Cn,Vd as fa,Vf as $P,Vg as sT,Vk as jx,W as lx,Wa as bn,Wc as Sk,Wd as eP,Wf as zP,Wg as lT,Xa as pv,Xc as bk,Xf as Ax,Xk as jT,Y as qs,Ya as Vd,Yb as Yv,Yc as wk,Yd as hf,Yf as UP,Yk as GT,Z as Hd,Za as uv,Zb as Xv,Zc as Ck,Zd as Br,Zf as jP,Zg as iT,Zk as KT,_ as Ao,_a as Qs,_b as Zv,_c as vk,_d as oP,_f as Fx,_g as dT,_j as TT,_k as qT,a as _o,aa as hn,ab as xv,ad as kk,af as wP,ak as OT,al as YT,b as un,ba as HC,bb as mx,bd as wx,bf as Cf,bj as pa,bk as ET,ca as WC,cb as hv,cd as Pk,cf as CP,cg as ir,d as sC,da as $C,db as Yd,dd as Tk,df as Ox,dj as fr,dk as Rf,e as rx,ea as zC,eb as Iv,ed as Ok,ef as vP,eg as Tn,ek as An,f as lC,fa as UC,fb as xx,fd as Ek,ff as kP,fi as hT,fk as Fn,g as c,ga as dx,gd as _k,ge as rP,gf as PP,gg as GP,gh as _f,gi as IT,gk as cl,h as $t,hb as gv,hd as Fr,hf as TP,hg as KP,hk as Bn,i as xn,ia as jC,ib as yv,id as nl,if as vf,ig as Tf,ik as _T,j as Gs,ja as Wd,jd as la,je as aP,jg as Lr,k as No,kb as Xd,kc as vn,kd as Ak,ke as nP,kf as OP,kg as Of,kj as Bf,l as Ks,lb as Sv,lc as Ut,le as sP,mb as bv,mc as Jv,md as ia,mg as On,mh as fT,mj as ST,n as xC,nb as wv,nc as Qv,nd as sl,nf as Ex,o as hC,ob as Cv,oc as ek,od as Fk,oh as cT,p as IC,pb as Zd,pc as ok,pd as Bk,pk as AT,q as gC,qb as vv,qc as tk,qe as Mo,qi as gT,qk as FT,r as yC,rc as cf,rd as Lk,re as ao,ri as yT,rl as Gx,s as SC,sc as pf,sd as Rk,sf as EP,t as bC,tb as kv,tc as rk,td as Dk,te as If,tf as _P,u as wC,ub as Pr,ue as lP,uf as kf,v as Nd,vb as Jd,vc as ak,vd as Nk,ve as iP,vf as AP,vg as Rr,w as vr,wa as VC,wb as Qd,wc as nk,wd as Mk,we as dP,wf as FP,wg as qP,xa as YC,xb as Pv,xc as sk,xd as Hk,xe as fP,xg as VP,xk as $x,y as sx,ya as XC,yb as ho,yc as uf,yd as Wk,ye as gf,yg as YP,yh as Dx,yj as bT,z as CC,za as ZC,zb as hx,zc as lk,zd as Cx,ze as cP,zh as Af,zk as BT,zl as XT}from"./chunk-GVSVEV2H.js";import{a as uC,b as Dd,c as mC,g as Kv,h as gx,i as qv}from"./chunk-SV3VVDBH.js";import{$ as Ib,$a as Mb,$c as R,$e as Jm,$g as cC,A as io,Ab as Jb,Ad as pw,B as on,Be as Xm,Bf as ox,Ca as ye,Cb as Ws,Cd as Vm,Ce as ww,D as Ns,Db as Qb,E as id,Ed as uw,Ee as Zm,F as Nt,Fd as bd,G as tn,Ga as ot,Gg as Jw,H as ze,Ha as bt,Hb as gd,Hd as tt,Hg as Qw,I as Xe,Ia as Em,Ic as nw,Id as Do,Ie as vd,If as Dw,Ig as eC,J as rn,Ja as _m,Jd as ro,Je as kd,Jg as oC,K as dd,Kc as Um,Kd as Ht,Ke as Cw,Kh as ux,L as fb,La as Am,Ld as nr,Le as Pd,Lf as sr,Lh as In,M as cb,Ma as Fm,Mb as ew,Md as Ct,Me as Td,Mg as tC,Mh as sv,Nd as dn,Ne as vw,Nh as at,O as pb,Od as mw,Oe as kw,Oh as Yo,P as fd,Pd as fn,Pe as Od,Pg as rC,Ph as Ud,Q as ub,Qa as Bm,Qd as xw,Qe as Ed,Qg as aC,Qh as lv,R as ea,Ra as _b,Rb as yd,Rc as sw,Re as aa,Rf as Nw,Rh as gn,S as mb,Sa as Ab,Se as Pw,Sg as nC,T as xb,Ta as Ke,U as Ms,Ua as Fb,Ub as ow,Ud as ra,Ug as iC,Uh as Lv,V as Tm,Va as xd,Vb as tw,Vd as hw,Vg as dC,W as Ce,Wa as Bb,Wd as Iw,We as Tw,X as q,Xa as Lb,Xb as rw,Xd as cn,Xf as Mw,Xg as Cr,Y as hb,Ya as Rb,Yc as U,Yd as zs,Yf as Hw,Yh as Rv,Za as Db,Zb as Wm,Zc as oe,Zd as Us,Ze as Wt,Zf as Ww,Zg as fC,_ as cd,_a as Nb,_c as jm,_d as Ym,_e as js,_f as $w,_g as ax,a as en,ab as Hb,ad as Co,ae as gw,af as Qm,ah as nx,b as xo,ba as gb,bb as Wb,bd as rr,be as yw,bf as Ow,bh as Rd,c as lo,ca as pd,cb as hd,cd as lw,ce as Sw,cf as Ew,cg as zw,d as or,da as yb,db as Id,dd as H,df as _d,dg as Uw,dh as pC,di as Dv,ea as Sb,eb as $b,ed as Sd,ee as bw,ef as _w,ei as Tr,f as Vo,fa as Om,fb as zb,fd as Ro,fg as jw,g as Ds,ga as bb,gc as $m,gd as iw,ge as wd,gg as Gw,gi as Nv,h as tb,ha as wb,hb as Ub,hd as wt,hf as Aw,hg as Bd,hi as Mv,i as rb,ia as Cb,ib as jb,id as Mt,ie as Cd,if as Ad,ig as Kw,ii as Hv,j as ab,jb as Lm,jd as Gm,jf as Fw,jg as Ld,k as nb,kb as Gb,kd as br,kf as ex,kg as tx,la as vb,lb as Kb,ld as ar,lf as Bw,ma as kb,mb as Rm,md as dw,mf as Lw,mi as ko,na as Pb,nb as nn,nf as Fd,ng as qw,o as sb,od as Be,of as pn,og as Vw,pa as Tb,pb as oa,pd as ta,pf as mn,qb as Dm,qd as $s,qf as wr,qi as dl,ra as Ob,rb as Nm,rd as sn,rg as Yw,rh as fx,s as lb,sa as ud,sb as Mm,sd as fw,sg as Xw,sh as $d,ta as Eb,tb as qb,td as Km,th as GC,u as Me,ua as md,ub as Vb,ud as ln,uf as Rw,uh as cx,v as ib,vb as Yb,vc as zm,vd as qm,vg as Zw,vh as KC,w as ld,wb as Hm,x as db,xb as Xb,xc as aw,xh as zd,ya as Hs,yb as tr,yh as qC,z as Te,za as an,zb as Zb,zd as cw,zh as Vs}from"./chunk-3QCDDPXL.js";import{a as z,b as eo}from"./chunk-FVHAKC6L.js";import{c as xP,d as hP,e as yf}from"./chunk-TICXZI44.js";import{jsx as qx,Fragment as p6,jsxs as u6}from"react/jsx-runtime";import{createContext as m6,useContext as x6}from"react";var h6={mirrorHostStyles:!0,css:null,fontHrefs:[]},QT=m6(h6);function Yne({value:e,children:o}){return qx(QT.Provider,{value:e,children:o})}function ul(){return x6(QT)}function e0(){let{css:e,fontHrefs:o}=ul();return u6(p6,{children:[o.map(t=>qx("link",{rel:"stylesheet",href:t},t)),e?qx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as I6}from"react/jsx-runtime";import{createContext as g6,useContext as y6}from"react";var o0=g6(void 0);function Qne({metadata:e,children:o}){return I6(o0.Provider,{value:e,children:o})}var t0=()=>y6(o0);import{jsx as uo,Fragment as Q4,jsxs as od}from"react/jsx-runtime";import{useCallback as _s,useEffect as Zt,useRef as bne,useState as Y4}from"react";import{SettingsSwitch as wne}from"efficient-easel/panel";import{PagesIcon as Cne,StylesIcon as vne}from"efficient-easel/rail";import{PaletteIcon as kne}from"efficient-shell/icons/efficient";import{Subtree as Pne,TreeRow as e6}from"efficient-easel/tree";import{useEasel as o6}from"efficient-easel/easel";import{toItemSelector as Tne}from"efficient-easel/node-ops";import{useEaselStrings as t6}from"efficient-easel/strings";import{createContext as S6,useContext as b6}from"react";var Vx=S6(!1),tse=()=>b6(Vx);import{useMemo as w6,useRef as C6}from"react";import{useEaselApi as v6}from"efficient-easel/easel";import{useSectionOps as k6}from"efficient-easel/screen/lib/document/use-section-ops";function Wf(){let e=v6(),o=k6(),t=C6(o);return t.current=o,w6(()=>({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 K6}from"efficient-easel/draw";import{insertAt as q6,moveTo as V6,removeAt as Y6}from"efficient-easel/fields";import{useSyncExternalStore as H6}from"react";import{isNodeList as r0}from"efficient-easel/data";var a0="Flex";function Rn(e,o){return Wt(e)?typeof e?.[Vo]=="string"?Yx(o?.[Vo]):"":Yx(e?.[Vo])}var Yx=e=>typeof e=="string"?e.trim():"",P6=e=>e.type===io&&Array.isArray(e.props?.[Zm])&&e.props[Zm].some(o=>Yx(o?.[Vo])!==""),T6=new Intl.NumberFormat("en-US");function O6(e){return/^\d+$/.test(e)?T6.format(Number(e)):e}function pse(e,o){let t=o?o.find(r=>r.key===e)?.value:lb(Ds).find(r=>r.key===e)?.value;return t===void 0?null:O6(t)}var E6={[Vo]:"any"};function Xx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Rn(t)!==""||o&&Rn(t,E6)!==""),a=o||P6(e),n=Xe(e,l=>ze(l,i=>{let d=Xx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==a0)return{node:n===t?e:{...e,props:n},names:r};let s=Me(n);if(r&&!s&&(n={...n,[lo]:Ds}),!r&&s===Ds){let{[lo]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function n0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of tn(r??{})){let n=n0(a,o,r.type===a0?r:t);if(n!==void 0)return n}}}function use(e,o){if(!r0(e))return!0;let t=n0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Me(t.props);return!r||r===Ds}function s0(e){let o=e?.content;if(!r0(o))return e;let t=o.map(r=>Xx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function l0(e){return Xx(e).node}import{decodePartId as W6}from"efficient-easel/draw";function Dn(e,o){let t=nk(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?LT(t,o.index):null:sk(e)?.[o.rowKey]??null}function $f(e,o,t){let r=e.node.props,{key:a,row:n}=Ut(e.propKey),s=n?ik(r,a,n,e.kind,o):ak(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as f0}from"efficient-easel/draw";import{parseOption as _6}from"efficient-shell/format";var Zx=e=>String(e+1).padStart(2,"0"),A6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Jx="two-digit",i0=e=>_6(A6,Jx,e),zf=(e,o)=>e==="plain"?`${o+1}.`:Zx(o);var oh="Contents",Qx="Flex",d0="Text",F6="numberForm",B6="_contentsEntries",L6="_kickerNumber",c0="data-sf-kicker-number",R6=e=>f0(e).text.trim(),p0=e=>fa(e?.anchor),eh=e=>String(e.props?.id??""),D6=e=>!f0(e.props?.text).hidden&&!Rn(e.props)&&!Wt(e.props),ml=e=>tn(e);function u0(e){for(let o of ml(e))for(let t of o){if(lr(t.props??{}))continue;if(t.type===d0&&D6(t))return t;if(t.type===d0)continue;let r=u0(t);if(r)return r}}function m0(e){return ml(e).some(o=>o.some(t=>t&&!lr(t.props??{})&&(t.type===oh||m0(t))))}var x0=e=>e.type===Qx&&Tn(Qx,e.props?.direction)==="row";function h0(e){return ml(e).some(o=>o.some(t=>t&&!lr(t.props??{})&&(t.type===oh||!x0(t)&&h0(t))))}function N6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||lr(n.props??{}))continue;if(n.type===oh){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(x0(n)&&h0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of ml(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Qx&&p0(n.props)&&s&&!m0(n)){s.push({box:n,kicker:u0(n)});continue}for(let l of ml(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function M6(e){return e.map(o=>({label:o.kicker?an(R6(o.kicker.props?.text)):"",anchor:p0(o.box.props)}))}function th(e){let o=e?.length?N6(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=eh(a.contents);n&&t.set(n,M6(a.sections));let s=i0(a.contents.props?.[F6]);a.sections.forEach((l,i)=>{let d=l.kicker?eh(l.kicker):"";d&&r.set(d,zf(s,i))})}return{entries:t,numbers:r}}var Fse=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function I0(e){let o=e;if(!o?.content?.length)return e;let t=th(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=Xe(s,h=>ze(h,n)),i=l.props??{},d=l!==s,f=eh(s),m=f?r.get(f):void 0;m&&(i={...i,[B6]:m},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[L6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var $6=`[${c0}]`,z6=["bold","italic","underline","strike","link","sup","sub"],U6=["bullet","number"];function nh(e,o){return e?[...z6,...o?U6:[]]:[]}function g0(e,o){let t=W6(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:l,row:i}=Ut(a),d=o.components[n.type]?.fields?.[l],f=i?Dn(d,i):d,m=cf(f);if(!m)return null;let u=n.props??{};if(hT(u)!==null||!i&&_d(n.type,u,l)||n.type==="Text"&&l==="text"&&Rn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?uf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:m,stored:h,offPage:Bf(f),panelOnly:tk(f)}}function Uf(e,o){let t=g0(e,o);if(!t)return null;let{text:r,hidden:a}=pa(t.stored);if(!gk({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=pf(t.kind);return{partId:e,value:r,rules:ud,multiline:n,skip:$6,offered:nh(t.kind!=="plainText",n),write:s=>{let l=g0(e,o);l&&$f({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function sh(e,o,t){return e?.isConnected&&e.getAttribute(Ue)===t?e:o?.querySelector(`[${Ue}="${jf(t)}"]`)??null}function jf(e){return e.replace(/["\\]/g,"\\$&")}function y0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var rh=null,ah=new Set;function j6(){return rh}function lh(e){if(e!==rh){rh=e;for(let o of ah)o()}}function G6(e){return ah.add(e),()=>{ah.delete(e)}}function S0(){return H6(G6,j6,()=>null)}function b0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=vw(t.type);return!r||Me(t.props)?null:{node:t,rows:r}}function X6(e,o){let t=b0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=_w(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:K6(e.ownerId,vn(t.rows,{index:e.index,rowKey:a}))}function Gf(e,o){let t=X6(e,o);return t?Uf(t,o):null}function w0(e,o){return Gf(e,o)?.value}function C0(e,o){let t=Gf(e,o);return t?(t.write(e.text),!0):!1}function v0(e,o){let t=b0(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=q6(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=V6(n,s,i);break}case"delete":l=Y6(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as Pe,Fragment as RJ,jsxs as Wu}from"react/jsx-runtime";import{Fragment as DJ,useEffect as gH,useMemo as yH,useRef as NJ,useState as za}from"react";import{useScreenDocument as vH}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Wy}from"efficient-easel/draw/client";import MJ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as HJ}from"efficient-easel/chrome";import{Input as WJ,LoadingSpinner as $J,PopupMenu as zJ,PopupMenuItem as SH,toast as bH}from"efficient-shell/ui";import{LayersTree as UJ,TreeGroupLabel as jJ,TreeRow as wH,TreeRowAction as $u}from"efficient-easel/tree";import{AddIcon as GJ,DuplicateIcon as KJ,PageIcon as qJ,SettingsIcon as VJ}from"efficient-easel/icons";import{PagesIcon as YJ}from"efficient-easel/rail";import{useEaselHost as XJ}from"efficient-easel/screen/lib/host";import{useEaselSession as $y}from"efficient-easel/screen/lib/session-context";import{useCallback as Kf,useEffect as Z6,useSyncExternalStore as J6}from"react";import{useScreenDocument as O0}from"efficient-easel/screen/components/ScreenDocumentContext";var k0=new WeakMap;function xl(e){let o=k0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},k0.set(e,o)),o}function ih(e,o){e.rows=o;for(let t of e.listeners)t()}var qf=new Set;function Vf(e,o){o?qf.add(e):qf.delete(e)}function P0(e){let o=xl(e),t=e.listPages().then(r=>ih(o,qf.size?r.filter(a=>!qf.has(a.id)):r),()=>ih(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var T0=()=>null,Q6=()=>()=>{};function hl(){let{adapter:e,ready:o}=O0(),t=Kf(l=>{let{listeners:i}=xl(e);return i.add(l),()=>i.delete(l)},[e]),r=Kf(()=>xl(e).rows,[e]),a=J6(o?t:Q6,o?r:T0,T0);Z6(()=>{if(!o)return;let l=xl(e);l.rows===null&&!l.loading&&P0(e)},[e,o]);let n=Kf(()=>o?P0(e):Promise.resolve(),[e,o]),s=Kf(l=>ih(xl(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function e3(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function E0(){let{currentSlug:e}=O0(),{rows:o}=hl();return e3(o,e)}import{canDuplicatePage as ZJ,DuplicatePageDialog as JJ}from"efficient-easel/page-copy";import{jsx as Oo,jsxs as fH}from"react/jsx-runtime";import{useEffect as gJ,useId as yJ,useMemo as SJ,useRef as bJ,useState as Ny}from"react";import{useScreenDocument as wJ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as CJ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as cH}from"efficient-easel/page-copy";import{AddIcon as vJ}from"efficient-easel/icons";import{Button as kJ,Dialog as PJ,EmptyState as TJ,LoadingSpinner as OJ,Paragraph as EJ,SidebarLayout as _J,SidebarNavItem as My,Title as AJ,toast as pH}from"efficient-shell/ui";import{jsx as Ot,jsxs as TR}from"react/jsx-runtime";import{useEffect as gq,useState as Ag}from"react";import{CanvasFrame as yq}from"efficient-easel/easel";import{Button as Sq,Card as bq,FitFrame as wq,Text as Cq}from"efficient-shell/ui";import{jsx as L0,Fragment as p3,jsxs as u3}from"react/jsx-runtime";import{useEffect as R0,useLayoutEffect as m3}from"react";var Yf="data-theme",_0="light";function o3(e){return e.getAttribute(Yf)===_0?"light":"dark"}function t3(e,o){return o3(e)===o?!1:(o==="light"?e.setAttribute(Yf,_0):e.removeAttribute(Yf),!0)}function r3(e){return Kx(e).getItem(ox)}function lle(e,o){Kx(e).setItem(ox,o)}function a3(e,o,t=new Date().getHours()){return Dw({mode:o.mode,override:r3(e),switchShown:o.switchShown,hour:t})}function A0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>t3(t,a3(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Yf]}),()=>n.disconnect()}var n3="style";function s3(e,o){let t=Ld(o),r=!1;for(let a of Kw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function F0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>s3(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[n3]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as l3,VIEW_TABLET_MIN as i3}from"efficient-easel/screen/lib/content/view-tiers";var cr={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"},Zo=cr,d3=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),f3=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(d3([Zo.fit,Zo.fitTablet,Zo.fitPhone]))};
8
+ var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
9
+ var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${tr};
10
+ var TABLET_MIN = ${i3}, DESKTOP_MIN = ${l3};
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(Zo.fitTablet)}, ${JSON.stringify(Zo.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(Zo.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(Zo.fit)}, ${JSON.stringify(Zo.fitTablet)}, ${JSON.stringify(Zo.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(Zo.min)}, ${JSON.stringify(Zo.minTablet)}, ${JSON.stringify(Zo.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(Zo))},
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);`,c3="storefront-fit-words";function B0(e){let o=e.createElement("script");return o.id=c3,o.textContent=f3,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var x3=`
303
+ [${Ue}][${Ue}] { cursor: text; }
304
+ `;function Xf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ko(),n=sr(t);return R0(()=>{if(o)return A0(o,{mode:r,switchShown:a})},[o,r,a]),R0(()=>{if(o)return F0(o,n)},[o,n]),m3(()=>{if(o)return B0(o)},[o]),u3(p3,{children:[L0(e0,{}),L0("style",{children:x3}),e]})}import{jsx as kL}from"react/jsx-runtime";import{memo as o7}from"react";import{Render as t7}from"efficient-easel/render";import{jsx as Nn}from"react/jsx-runtime";import{createContext as h3,useContext as I3,useMemo as g3}from"react";var dh=h3(null);function y3({children:e}){return Nn(dh.Provider,{value:"first",children:e})}function Jf({children:e}){return Nn(dh.Provider,{value:"below",children:e})}function Il(){return I3(dh)}function fh(){return Il()==="below"?{loading:"lazy"}:{}}function Qf(e){let o=fh();return Nn("img",{...e,...o})}var D0="laterSlideIds",S3=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function N0(e){return Cf(e?.filter(o=>!o?.type||!S3.has(o.type)))}function Zf(e,o=[]){if(Array.isArray(e))for(let t of e)Zf(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))Zf(r,o)}return o}function M0(e,o){let t=o?.type,r=o?.props?.id;return g3(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Nn(y3,{children:Nn(n,{...l})}):Nn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function H0(e){return e.props?Xe(e,o=>{let t=ze(o,H0),r=e.type===qC&&t.every(a=>a.type===$d)?GC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function W0(e){return dd(e,o=>ze(o,H0))}var b3="Flex",$0="ListSearch",z0=["FAQ"],w3="listKey";function U0(e,o){let t={search:e.type===$0,list:z0.includes(String(e.type))};return Xe(e,r=>{for(let a of r){let n=U0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===b3&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function j0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=Xe(e,n=>ze(n,s=>j0(s,o,r)));return r&&(e.type===$0||z0.includes(String(e.type)))?{...a,props:{...a.props,[w3]:r}}:a}function G0(e){return rn(e,o=>{let t=new Set;for(let r of o)U0(r,t);return t.size?ze(o,r=>j0(r,t,"")):o})}import{isNode as _$,isNodeList as zE}from"efficient-easel/data";import{jsx as _e,Fragment as g$,jsxs as mr}from"react/jsx-runtime";import{jsx as gh}from"react/jsx-runtime";import{Fragment as O3,jsx as E3}from"react/jsx-runtime";import{jsx as ch}from"react/jsx-runtime";import{createContext as k3,Fragment as P3,useContext as T3}from"react";import{jsx as K0,jsxs as C3}from"react/jsx-runtime";import{lazy as v3}from"react";var q0=v3(()=>import("./section-css-style-3IQWMPDP.js"));function V0({css:e,id:o,attr:t}){return K0(q0,{css:e,id:o,attr:t})}var Y0={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,[Dd]:""};let o=e.render;e.render=t=>{let r=mC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):C3(_r,{className:"sf-section-css",attrs:{[uC]:a},children:[K0(q0,{css:r,id:a}),o(t)]})}}};var X0=k3(null);function Z0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=Ov(t),a=ch(P3,{children:o},"page");return ch(X0.Provider,{value:t,children:r?[ch(V0,{css:r,id:Tv,attr:ef},"css"),a]:a})}function J0(){return T3(X0)}function Pt(){return Nd(J0())===wC}function ec({className:e,children:o}){let t=Pt();return E3(O3,{children:o(rt(e,t))})}import{SITE_SIDE as _3}from"efficient-easel/screen/lib/content/length-units";var Q0="sideSpace",gl=_3,ph="none",Gle=[{value:"box",label:"Box"},{value:gl,label:"Site"},{value:ph,label:"None"}],Kle="box",qle="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 eO(e){return e===gl||e===ph?e:"box"}function Vle(e){return e===gl||e===ph?e:void 0}import{parseOption as xh}from"efficient-shell/format";var oc="standard",aO=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],mh=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],uh=[...mh,"description"],oO={standard:["eyebrowLook"],editorial:[...mh,"eyebrowLook"],simple:uh,statement:uh,natural:mh,essay:uh},tO=["gap-5","gap-3"],rO=["text-[length:var(--size-body,16px)]","text-[15px]"];function Jle(e){return xh(tO,tO[0],e)}function Qle(e){return xh(rO,rO[0],e)}function nO(e){return xh(aO,oc,e)}function eie(e){let o=aO.map(r=>r.value),t=[...new Set(Object.values(oO).flat())];return tt(e,t.map(r=>[[r],bd("headStyle",o,oc,o.filter(a=>!oO[a].includes(r)))]))}import{readHidable as A3,VIEW_TIERS as F3,viewKeyAt as B3}from"efficient-easel/draw";var ma={direction:"row",share:"content",align:"center"},xa={top:14,bottom:14,topPhone:12,bottomPhone:12},tc={wrap:"nowrap",loop:"scroll",sectionAccent:cC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},sO={gap:120,gapPhone:64},rc={...Ro,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},lO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},yl={top:24,bottom:24,topPhone:16,bottomPhone:16},ha={top:16,bottom:16,topPhone:12,bottomPhone:12},Sl={justify:"between",wrap:"wrap",gap:32,separator:"none"},bl={...Ro,letterSpacing:.1,lineHeight:1.5};var ac={top:24,bottom:24,topPhone:24,bottomPhone:24},nc={top:72,bottom:72,topPhone:72,bottomPhone:72},Mn={top:100,bottom:100,topPhone:60,bottomPhone:60},sc={top:120,bottom:120,topPhone:70,bottomPhone:70},L3={top:24,bottom:24,topPhone:24,bottomPhone:24},R3=40,lc={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},D3={top:24,bottom:24,topPhone:24,bottomPhone:24},ic={top:24,bottom:24,topPhone:24,bottomPhone:24},N3={top:84,bottom:84,topPhone:84,bottomPhone:84},dc={top:48,bottom:48,topPhone:48,bottomPhone:48},fc={top:80,bottom:80,topPhone:60,bottomPhone:60},cc={top:100,bottom:60,topPhone:60,bottomPhone:40},pc={top:60,bottom:60,topPhone:40,bottomPhone:40},uc={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},mc={top:76,bottom:76,topPhone:76,bottomPhone:76},xc={top:76,bottom:76,topPhone:76,bottomPhone:76},Cl={top:80,bottom:40,topPhone:60,bottomPhone:32},vl={top:76,bottom:76,topPhone:76,bottomPhone:76},hc={top:72,bottom:72,topPhone:72,bottomPhone:72},Ic={top:40,bottom:64,topPhone:24,bottomPhone:36},gc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},yc={top:48,bottom:48,topPhone:48,bottomPhone:48},kl=e=>{let o=ye(e.bandPadding)??R3;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},iO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),hh=e=>fn(e.headPlacement)==="own-box",Le=(e,o)=>({top:iO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:iO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),dO=e=>({top:e.topPhone,bottom:e.bottomPhone}),wl=e=>o=>hh(o)?{top:0,bottom:e.bottom}:e,M3=(e,o)=>{let t=A3(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},Sc={Banner:{frame:()=>Le(ac)},Cards:{frame:wl(Le(nc))},Chart:{frame:()=>Le(vl)},ContactLocations:{frame:()=>Le(Mn,dO(Mn))},Countdown:{frame:()=>Le(dc)},DocBody:{frame:()=>Le(fc)},DocMasthead:{frame:()=>Le(cc)},DocMetaCards:{frame:()=>Le(pc)},FAQ:{frame:e=>{let o=hh(e)||!["num","title","linkText"].some(r=>M3(e,r)),t=Le(sc);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Le(uc)},Grid:{frame:()=>Le(L3)},Integrations:{frame:()=>Le(mc)},KeyFeatures:{frame:()=>Le(xc)},Logos:{frame:e=>hh(e)?0:Le(kl(e))},LongRead:{frame:wl(Le(lc))},Masthead:{frame:()=>Le(Cl,dO(Cl))},Mockup:{frame:()=>Le(vl)},OrderSummary:{frame:()=>Le(D3)},PaymentBadges:{frame:()=>Le(ic)},Prose:{frame:wl(Le(hc))},SectionHeader:{frame:e=>{let o=Le(Ic);return nO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:wl(Le(gc))},Stats:{frame:()=>Le(yc)},Testimonials:{frame:wl(Le(N3))},Ticker:{frame:()=>Le(xa),edge:!0}};function pie(e,o,t){let r=z(Sc,e)??t;return r?na({values:el(o,ho,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var fO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function H3(e,o){let t={...e};for(let r of F3)delete t[B3(o,r)];return t}function uie(e,o,t,r){let a=z(Sc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=el(o,ho,!0),l=(i,d)=>na({values:H3(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:fO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:fO(n,"bottom")})}}var W3=/^(?:[^\s]*:)?p[ytb]-/;function cO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!W3.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 $3}from"efficient-easel/data";var Ih=new Set(["FAQ"]);function Jo(e,o){if(!Ih.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:$3(t)}var mO={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}},xO=new Set(Object.keys(mO));function yh(e,o){return o?.innerPadding??z(mO,e)}var Hn=e=>yh(e)??{};var bc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),z3=new Set(["Divider"]),U3=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),pO=new Set(["ProductGrid"]);function Sh(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...el(n,ho,t),sideSpace:eO(n.sideSpace)},l=r?na({values:s,frame:r(n)},!0).outer:vv(s),i=a(n);if(!l)return i;let d=u=>gh(ec,{className:u?`${l.className} ${u}`:l.className,children:h=>gh(fe,{className:h,style:l.style,children:i})}),f=Tr(n,{atSectionLine:!0}),m=Tr(n);return f===m?d(f):gh(rf,{line:"by-box",draw:u=>d(u?m:f)})}}var hO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!U3.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=yh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:Pr,unitKey:Jd,fallback:r,tablet:!0,siteSide:!0})};return}if(pO.has(o))return;let a=[Pr.top,Pr.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=uO(o,e);if(n){gO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!yh(o,e)){if(pO.has(o)){Sh(e);return}bc.has(o)||z3.has(o)||Sh(e,o==="Flex"?t=>Yv(t.bgImage):Ih.has(o)?t=>Jo(o,t):void 0,!0,uO(o,e))}}},j3=["Heading","Text","ImageBlock","ButtonBlock"],G3=["LogoBlock"],IO={Text:e=>Fr(e,"text").textStyle?.startsWith("heading-")?ol.heading:ol.text,Heading:()=>ol.heading,ButtonBlock:()=>ol.text,Breadcrumb:()=>Ix(yl),SpecStrip:()=>Ix(ha),...Object.fromEntries(Object.entries(Sc).map(([e,o])=>[e,o.frame]))};function uO(e,o){return z(IO,e)??o?.ownPad?.frame}var K3={ButtonBlock:"Outer padding"};function q3(e,o){let t=e[zt],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=wn().filter(i=>o?.[i]);if(!a.length)return e;let n=[...r.filter(i=>!a.includes(i)),...a.filter(i=>typeof e[i]=="number")];if(n.length===r.length&&n.every((i,d)=>i===r[d]))return e;let{[zt]:s,...l}=e;return n.length?{...l,[zt]:n}:l}function V3(e,o,t){if(o<=0)return null;let r=Array.isArray(e[zt])?e[zt]:[];return(t?wn().filter(a=>a.startsWith(ho[t])):wn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function gO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,V3,z(K3,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?q3(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var yO={name:"blockPadding",applies:(e,o,t)=>(j3.includes(e)||G3.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(IO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}gO(e,o,t,r)},draw(e,o){bc.has(o)||Sh(e,void 0,!0)}};import{createContext as bh,useContext as wc}from"react";var SO=bh(null);function Bie(){return wc(SO)===!0}function Lie(){return wc(SO)!==null}var Y3=bh(!1);function Rie(){return wc(Y3)}function Die(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 Cc=bh(null);function Nie(){return wc(Cc)}import{jsx as Ia}from"react/jsx-runtime";import{Component as rW,createContext as aW,lazy as Qie,Suspense as ede,useContext as nW,useSyncExternalStore as sW}from"react";function X3(e,o){let t=e.trim();if(!vc(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 Wie(e){return e.startsWith("/")||vc(e)}function vc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Pl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function bO(e,o){return X3(e,o)?{...Pl}:{}}function $ie(e){return typeof e=="string"?e.trim():""}var zie="data-sf-box-link",wO="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",wh="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",Z3="data-sf-box-jump";function J3(e){return`sf-box-jump-${e}`}function Uie(e,o){return e===!0?fa(o):""}function Q3({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 jie(e){let o=`[${Z3}="${e}"]`,t=`.${J3(e)}`,r=`[id="${e}"]:target`;return Q3({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 eW="hrefRewrite";function oW(){return en("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function tW(){return typeof process<"u"&&!0}function qie(e){let o=e?.[eW];return typeof o=="string"?o.trim():""}function CO(e){if(!e)return null;let o=oW(),t=o.rewrites.get(e);return!t&&!tW()&&o.missed.add(e),t??null}var lW={Link:mP,Image:uP},vO=aW(lW);function sde({runtime:e,children:o}){return Ia(vO.Provider,{value:e,children:o})}function vh(){return nW(vO)}function lde(){return vh().pagePath??null}var iW=()=>()=>{},dW=()=>yf()||null,fW=()=>null;function cW(){return sW(iW,dW,fW)}function ga({hrefRewrite:e,newTab:o,...t}){let{Link:r}=vh(),a=cW(),n=o===!0?{...t,...Pl}:o==="auto"?{...t,...bO(t.href,a)}:t,s=CO(e);return s?Ia(Ch,{name:s.name,href:n.href,fallback:Ia(r,{...n}),children:Ia(pW,{Link:r,rewrite:s.rewrite,...n})},s.key):Ia(r,{...n})}function pW({Link:e,rewrite:o,...t}){let r=xo(o(t.href)),a=r&&Ob(r)?r:t.href;return Ia(e,{...t,href:a})}var Ch=class extends rW{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 kc(e){let{Image:o}=vh();return Ia(o,{...e})}import{jsx as l$}from"react/jsx-runtime";import{jsx as Se,jsxs as Po,Fragment as r$}from"react/jsx-runtime";import{imageCopyUrl as PO,imageSrcSet as uW}from"efficient-shell/image-copies";var kO;function kh(){return kO===void 0?{}:{host:kO}}var cde="(max-width: 800px) 100vw, min(100vw, 1600px)",pde="(max-width: 960px) 100vw, 50vw";function ya(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=uW(e,{...kh(),...t===void 0?{}:{maxWidth:t}});return r?{src:PO(e,o,kh()),srcSet:r}:{src:e}}var mW=/[\s"'()\\;]/;function ude(e){let o=PO(e,1920,kh());return o===e?mW.test(e)?`url("${gx(e)}")`:`url(${e})`:`url("${gx(o)}")`}import{parseOption as xW}from"efficient-shell/format";var Tl="solid",hW=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function TO(e){return xW(hW,Tl,e)}var Ph="sf-secnum-outline",OO="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",EO=`@supports (-webkit-text-stroke: 1px currentColor){.${Ph}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as _O}from"efficient-shell/format";var Th="plain",AO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],IW="line",gW={KeyFeatures:"filled"};function Ol(e){return z(gW,e)??Th}function FO(e,o){return _O(AO,Ol(o),e)}function yde(e){return _O(AO,IW,e)}import{jsxs as wa,jsx as He}from"react/jsx-runtime";import{Fragment as Mh}from"react";import{Fragment as UW,jsx as Rh}from"react/jsx-runtime";import{Fragment as GO,jsx as Bl,jsxs as DW}from"react/jsx-runtime";import{createContext as Lh,useContext as Ll,useEffect as NW,useId as MW,useMemo as HW,useRef as WW}from"react";import{armEntrance as $W}from"efficient-shell/format";import{jsx as yW}from"react/jsx-runtime";import{useEffect as LO,useRef as BO,useState as SW}from"react";import{armEntrance as bW,entranceAttrs as wW,playEntrance as CW}from"efficient-shell/format";function Pc({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=BO(null),d=nf(),f=nt(),m=n?f:Or,u=El(i,!0,s),{attrs:h,style:I}=wW(e[u]),S=BO(Wn.seed(e)),w=JSON.stringify(e);return LO(()=>{let T=i.current;if(T){if(o){let B=Wn.next(S.current,e,u);S.current=B.seen,B.play&&CW(T);return}return bW(T)}},[w,u,o]),m.scope(yW("div",{ref:i,className:vo(`${yn}${d.fill}${t?` ${t}`:""}`,m.className),...r,...m.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:d.inner(l)}))}var Wn={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Wn.seed(o);return{play:r[t]!==e[t],seen:r}}};function El(e,o=!0,t=!1){return _l(e,o,t)??"desktop"}function _l(e,o=!0,t=!1){let[r,a]=SW(void 0),n=Er(t?"edge":"by-box"),{phone:s,tablet:l}=qk(n);return LO(()=>{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 Al="@name",RO="@body",DO="@value",NO={[Al]:"Name",[RO]:"Body",[DO]:"Value"},vW={TimelineTrack:{"entries.date":Al,"entries.title":Al,"entries.blurb":RO},Footprint:{"offices.city":Al},Stats:{"items.label":Al,"items.value":DO}};function kW(e){let{key:o,row:t}=Ut(e);return t?`${o}.${t.rowKey}`:null}function pr(e,o){if(!e)return o;let t=kW(o);return t?z(vW,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as AW,entranceAttrs as FW,scrollAttrs as BW}from"efficient-shell/format";import{parseFocal as OW,formatFocal as EW,readScroll as _W}from"efficient-shell/format";import{phoneKey as PW,tabletKey as TW}from"efficient-easel/screen/lib/content/view-tiers";var Oh=[{block:"HeroSlide",upload:"mediaImage",focus:Zs.image},{block:"HeroSlide",upload:"mediaImage2",focus:Zs.image2},{block:"HeroSingle",upload:"mediaImage",focus:Zs.image},{block:"HeroSingle",upload:"mediaImage2",focus:Zs.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],MO=e=>[e,TW(e),PW(e)],Lde=[...new Set(Oh.flatMap(e=>MO(e.focus)))].sort();function HO(e,o){let[t,r,a]=MO(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var oo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd",ease:"scrollEase"},$n="_gScroll",Tc="_cScroll",Oc=Ud(Object.values(oo));function Kt(e,o){return _W(gn(e,oo.effect,o),gn(e,oo.zoom,o),gn(e,oo.start,o),gn(e,oo.end,o),gn(e,oo.ease,o))}function zn(e){let o={desktop:Kt(e,"desktop"),tablet:Kt(e,"tablet"),phone:Kt(e,"phone")};return at.every(t=>o[t].effect==="none")?null:o}function Eh(e){let o=lv(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=OW(a);return EW(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function WO(e,o){return Eh(HO(e,o))}var Ec={},_h="_partMotion",Ah=[...jd,ot,Ke.duration,Ke.delay,...Oc];function zO(e){return Sk(e,_h)}function Sa(e,o){return bk(e,_h,o)}var LW=new Set([Xo.kind,ot,oo.effect]);function UO(e,o,t,r){let{[t]:a,...n}=Sa(e,o),s=r==null||r===""||r==="none"&&LW.has(t)?n:{...n,[t]:r};return wk(e,_h,o,Object.keys(s).length?s:null)}function Fl(e){return{entrance:Sn(e),hover:_b(e),scroll:zn(e)}}function jO(e){let o=Fl(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function _c(e,o){let{attrs:t,style:r}=FW(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(AW)}}function Ac(e,o){let{attrs:t,style:r}=BW(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 RW=4;function Un(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&RW)&&(o=t);return o}var Fh="data-sf-part-host";function Fc(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Fh)&&!t.classList.contains(yn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var ba="data-sf-part-lift",$O="sf-part-lift";function Bc(e){if(e.getElementById($O))return;let o=e.createElement("style");o.id=$O,o.textContent=Ek(`[${ba}]`).join(`
317
+ `),e.head.appendChild(o)}var Lc=Lh(null),qO=Lh(null),VO=Lh(null);function YO({needles:e,styles:o,motions:t=Ec,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=MW(),i=Er(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),f=vt(),m=HW(()=>{let h=Object.keys(t).filter(I=>jO(t[I]));return Kk(e,o,l,I=>pr(r,I),I=>sl(r,I),I=>h.includes(I)?Fl(t[I]):null,h,I=>ia(n,I),f)},[d,f]);if(!m)return Bl(GO,{children:s});let u=Vk(m,{inBox:i});return DW(GO,{children:[u&&Bl("style",{href:`${zW}${l}-${qv(u)}`,precedence:ZO,dangerouslySetInnerHTML:{__html:Kv(u)}}),Bl(Lc.Provider,{value:m,children:s})]})}var Bh=new WeakMap;function KO(e,o){let t=Un(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Un(o.filter(a=>a.scroll));for(let a of o)a!==t&&a.undo&&(a.undo(),a.undo=void 0),a!==r&&a.undoScroll&&(a.undoScroll(),a.undoScroll=void 0);t?.arm&&!t.undo&&(t.undo=t.arm()),r?.scroll&&!r.undoScroll&&(r.undoScroll=r.scroll()),o.some(a=>a.lift)?(Bc(e.ownerDocument),e.setAttribute(ba,"")):e.removeAttribute(ba)}function XO(e){let o=WW(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=El(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 NW(()=>{let d=o.current,f=Fc(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let m=s?()=>{let I=_c(f,s),S=$W(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?()=>Ac(f,l):null,lift:a};return u.push(h),KO(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,KO(f,u),u.length||Bh.delete(f))}},[i,a]),o}var ZO="sf-part-styles",zW=`${ZO}-`;function JO(e){let o=Ll(Lc),t=Ll(qO),r=Yk(o,e);return r&&r.stamp!==t?r:null}function rfe(e){return kx(Ll(Lc),e)}function QO({stamp:e,children:o}){return Bl(qO.Provider,{value:e,children:o})}function afe({children:e}){let o=Ll(Lc);return Bl(VO.Provider,{value:o,children:e})}function nfe(e){return kx(Ll(VO),e)}function Rl({value:e,children:o}){let t=JO(e),r=XO(t);return t?Rh(QO,{stamp:t.stamp,children:Rh("span",{ref:r,[vk]:t.stamp,...t.textStyle?{[sa]:t.textStyle}:{},children:o})}):Rh(UW,{children:o})}import{jsx as Dh,Fragment as jW}from"react/jsx-runtime";function eE({className:e}){return Dh("span",{className:e||void 0,children:"\xAE"})}function lt(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(eE,{},`r${a}`))}),Dh(jW,{children:t})}var pfe=eE;function Ze(e,o=!1,t){let r=ZW(o),a=md(e);if(a.length===1){let[s]=a,l=Eb(s),i=l?YW(l,s.children):s.children;return wa(Rl,{value:e,children:[t,Rc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(He("span",{"data-sf-bullet":"",className:GW,children:Rc(s.children,r)},l));return}if(s.number!=null){n.push(wa("span",{"data-sf-number":s.number,className:KW,children:[wa("span",{className:qW,children:[s.number,"."]}),Rc(s.children,r)]},l));return}l>0&&!VW(a[l-1])&&n.push(He("br",{},`br${l}`)),n.push(He(Mh,{children:Rc(s.children,r)},l))}),wa(Rl,{value:e,children:[t,n]})}var GW="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",KW="relative block pl-[2em]",qW="absolute left-0 w-[1.6em] text-right tabular-nums";function VW(e){return e.bullet||e.number!=null}var oE="text-accent underline underline-offset-[0.18em]";function YW(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function XW(e){return Vv(e)||void 0}function Rc(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(He("span",{children:lt(a.text)},n)),r=!0;return}r||t.push(He("span",{},`e${n}`)),t.push(rE(a,n,o)),r=!1}),r||t.push(He("span",{},"end")),t}function Nh(e,o){return e.length===1&&e[0].kind==="text"?lt(e[0].text):e.map((t,r)=>t.kind==="text"?He(Mh,{children:lt(t.text)},r):rE(t,r,o))}function ZW(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function Cfe(e){return tE(e)}function tE(e,o){let t=e.split(`
318
+ `);return wa(Rl,{value:e,children:[o,t.map((r,a)=>wa(Mh,{children:[a>0?He("br",{}):null,He("span",{children:r})]},a))]})}function rE(e,o,t){if(e.kind==="link")return vc(e.href)?He(ga,{newTab:"auto",href:e.href,className:oE,children:Nh(e.children,t)},o):He("a",{href:e.href,className:oE,children:Nh(e.children,t)},o);let r=Nh(e.children,t),a=kb[e.kind];if(a)return He("span",{[Pb]:a,children:r},o);switch(e.kind){case"underline":return He("u",{children:r},o);case"sup":return He("sup",{children:r},o);case"sub":return He("sub",{children:r},o);case"color":{let n=XW(e.color);return n?He("span",{style:{color:n},children:r},o):He("span",{children:r},o)}case"accent":case"highlight":return He("em",{className:t,children:r},o);case"bold":return He("strong",{className:"font-semibold",children:r},o);case"italic":return He("em",{className:"italic",children:r},o);case"strike":return He("s",{className:"line-through",children:r},o);default:return He("span",{children:r},o)}}function aE(e,o=!0,t=!1){let r=e.split(`
319
+ `);return He(Rl,{value:e,children:r.map((a,n)=>wa("span",{children:[t?tE(a):Ze(a,o),n<r.length-1?He("br",{}):null]},n))})}function nE(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Hh,jsxs as QW}from"react/jsx-runtime";import{jsx as JW}from"react/jsx-runtime";function sE(){return JW("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 e$(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var o$=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Wh.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,t$=`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 jn({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let l=nt(),i=s?l:Or;if(o==="line")return i.scope(QW("div",{className:vo([a,t$,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Hh(sE,{}),Hh("span",{children:Ze(e)})]}));let d=o==="filled"?o$:e$(t,r);return i.scope(Hh("span",{className:vo([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Ze(e)}))}var Ee={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},lE=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Ee.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading1} ${Ee.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading2} ${Ee.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading3} ${Ee.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Ee.shelfHeading4} ${Ee.shelfHeadingUpTo800Xl}`}],a$="lg";function n$(e){return(lE.find(o=>o.value===e)??lE.find(o=>o.value===a$)).cls}var Gn=(e,o=!1)=>typeof e=="string"?aE(e,o):e,ur=(e,o=!1)=>typeof e=="string"?Ze(e,o):e;function iE({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=Tl,look:i="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:m,rowGap:u,descriptionSize:h,className:I="",eyebrowLook:S=Th,titleSize:w,count:T,capped:B=!1,rootPadsBottom:P=!1}){let g=Pt(),C=m??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?Po("div",{className:rt(`${wP} 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 ${B?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,g),children:[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 ${Ee.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:ur(e)}),o&&Se("h2",{className:`${n$(w)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:Gn(o)})]}),(a||t||T)&&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 ${Ee.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:ur(a)}),t&&Po(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ee.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[ur(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]}),T&&Se("span",{className:`whitespace-nowrap font-mono ${Ee.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:T})]})]}):null;if(i==="editorial"){let y=!!o||!!d;return Po("header",{className:`${C} 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(jn,{text:e,className:"pb-2"}):Se("span",{className:"pb-2",children:e})),y&&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(r$,{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 ${Ee.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(i==="simple"){let y=`${C} ${I}`.trim();return Po("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se(jn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Ee.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Ee.headingMediumUpTo800Small}`,children:Gn(o)})]})}if(i==="statement"){let y=`${C} ${I}`.trim();return Po("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se(jn,{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:Gn(o,!0)})]})}if(i==="natural"){let y=`flex max-w-[680px] flex-col ${u??"gap-5"} ${C} ${I}`.replace(/\s+/g," ").trim();return Po("div",{className:y,children:[e&&(typeof e=="string"?Se(jn,{text:e,look:S}):Se("span",{children:e})),o&&Se("h2",{className:`font-heading2 ${Ee.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Ee.headingMediumUpTo800Small}`,children:Gn(o)}),a&&Se("p",{className:`${h??`${Ee.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let y=`${C} ${I}`.trim();return Po("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se(jn,{text:e,look:S,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Ee.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Ee.headingSmallUpTo800}`,children:Gn(o)})]})}let E=!!a||!!t,A=!!o,N=TO(l)==="outlined",b=`font-mono ${Ee.label} uppercase tracking-[0.3em]`,_=null;if(e)if(N)_=Se("span",{className:`${OO} text-fg-dim ${Ph}`,children:ur(e)});else if(s&&!n&&typeof e=="string"){let y=e.indexOf("/"),k=y===-1?e:e.slice(0,y),O=y===-1?"":e.slice(y);_=Po("span",{className:b,children:[Se("span",{className:"text-accent",children:ur(k)}),O&&Se("span",{className:"text-fg-dim",children:ur(O)})]})}else _=Se("span",{className:`${b} ${n?"text-accent":"text-fg-dim"}`,children:ur(e)});return Po("div",{className:P?"grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5":"mb-16 grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-6 max-view-wide:mb-9 max-view-wide:grid-cols-1 max-view-wide:gap-3 max-view-wide:pb-5",children:[N&&e&&Se("style",{children:EO}),Po("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Se(Bv,{children:Se(Qf,{...s$(yP(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),_]}),A&&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 ${Ee.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Ee.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:Gn(o)}),E&&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 ${Ee.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:ur(a)}),t&&Po(ga,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Ee.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[ur(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function s$(e){let o=ya(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function dE({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return l$(iE,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Nl,jsxs as m$}from"react/jsx-runtime";import{useEffect as x$,useState as yE}from"react";import{jsx as i$}from"react/jsx-runtime";var fE="sf-photo-hover";function Dc({sheet:e,name:o=fE}){return e?i$("style",{href:o,precedence:fE,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as hE,Fragment as c$}from"react/jsx-runtime";import{createContext as p$,useContext as Mc}from"react";var d$=Jb["view-desktop"];function f$(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`,Nc=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function Qfe(e,o){return{phone:$h(e.phone*Nc(o?.phone)),tablet:$h(e.tablet*Nc(o?.tablet)),desktop:$h(e.desktop*Nc(o?.desktop))}}function zh(e){if([e.phone,e.tablet,e.desktop].every(r=>Nc(r)>=1))return;let o=[{below:tr,slot:e.phone},{below:d$,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return f$(t,e.desktop)}function cE(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 pE=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,uE=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function mE(e,o){if(e===o)return e;let t=[...uE(e),...uE(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 xE(e,o){if(!o)return e;let t=cE(e),r=cE(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:mE(pE(t,s),pE(r,s))})),n=mE(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 u$={hasWidth:!1},Dl=p$(u$);function ace(){return Mc(Dl).hasWidth}function nce(e){let{bound:o}=Mc(Dl);return o&&zh(o)||e}function IE(e){let{bound:o}=Mc(Dl);return xE(e,o&&zh(o))}function gE({children:e}){let o=Mc(Dl);return o.bound?hE(Dl.Provider,{value:{hasWidth:o.hasWidth},children:e}):hE(c$,{children:e})}function SE({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=fh(),h=IE(s),I=l?h:s,[S,w]=yE(!1),[T,B]=yE(!1),P=t||"";x$(()=>{w(!1),B(!1)},[P]);let g=Sf(P),C=g&&!T?ya(P):{src:P},E=!P||S;return m$("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Nl("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:E?e:null}),Nl(of,{fill:tl,children:P&&(g?Nl("img",{src:C.src,alt:r,...C.srcSet?{srcSet:C.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:()=>C.srcSet?B(!0):w(!0)}):Nl(kc,{src:P,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:()=>w(!0)}))}),Nl(Dc,{sheet:m?.sheet})]})}import{jsx as h$}from"react/jsx-runtime";var Ml="sf-empty-hides",Uh="sf-empty-else",Hc="sf-head-core",Wc="sf-head-box",Hl="holdsHeadCore",Wl="isHeadCore",I$=`.${Ml}:empty{display:none}.${Ml}:not(:empty)~.${Uh}{display:none}.${Wc},.${Hc}{display:contents}.${Wc}:not(:has(.${Hc}:not(:empty))){display:none}`;function $c(){return h$("style",{children:I$})}var Ho={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)]"},bE={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",y$="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 Dce({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:w}){let T=Pt(),B=w!==void 0,P=S&&(B||(r?.blockCount??0)>0)?S:null,g=d??Pv({padTop:l,padBottom:i},Hn("ProcessSteps")),C=B?[]:Gh(a),E=C.length>0?C:f&&!r&&!B?[1,2,3].map(y=>({tag:c("Column {n}",{n:y})})):[],A=bE[n]??bE[3],N=P?"grid-cols-1":A,b=P?"":" [&>*]:min-h-[560px]",_=I==="on-image";return _e(fe,{as:"section",className:rt(["relative z-[2] border-b border-line bg-bg",g.className].filter(Boolean).join(" "),T),style:{...g.style,...lT(u,h)},children:mr("div",{className:rt(TC,T),children:[m?null:_e(dE,{num:e,title:o?.trim()?Ze(o,!0):void 0,desc:t?.trim()?Ze(t,!1):void 0}),r&&!B?mr(g$,{children:[_e($c,{}),P?_e(Cc.Provider,{value:{hand:P,ids:r.blockIds??[],boxes:[]},children:_e(r,{className:`${jh} ${Ml} sf-card grid ${N} gap-[2px] border border-line bg-line${b} [&>*]:bg-bg`,minEmptyHeight:260})}):_e(r,{className:`${jh} ${Ml} sf-card grid ${N} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,B&&w?_e("div",{className:`${jh} sf-card grid ${N} gap-[2px] border border-line bg-line${b} [&>*]:bg-bg`,children:P?_e(Cc.Provider,{value:{hand:P,copies:!0},children:w}):w}):null,E.length>0&&_e("div",{className:`${y$} ${Uh} sf-card grid ${A} gap-[2px] border border-line bg-line`,children:E.map((y,k)=>{let O=(y.specs??[]).filter(v=>(v?.label??"").trim()||(v?.value??"").trim());return mr("article",{className:_?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[mr("div",{className:_?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[_e(SE,{label:y.tag?.trim()||y.title?.trim()||`column-${k+1}`,src:y.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),_e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${Vs(.55)} 0%, transparent 30%, transparent 70%, ${Vs(.65)} 100%)`}}),_&&_e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${Vs(.73)} 55%, ${Vs(.92)} 100%)`}}),y.tag?.trim()&&_e("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${Ho.label} uppercase tracking-[0.3em] text-accent`,children:lt(y.tag)}),y.meta?.trim()&&_e("span",{className:_?`absolute right-5 top-[18px] z-[2] font-mono ${Ho.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${Ho.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:lt(y.meta)}),_&&(y.title?.trim()||y.copy?.trim())&&mr("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[y.title?.trim()&&_e("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${Ho.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${Ho.headingSmallUpTo700Small}`,children:Ze(y.title,!0)}),y.copy?.trim()&&_e("p",{className:`min-h-[3em] font-display ${Ho.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Ze(y.copy,!1)})]})]}),_?O.length>0&&_e("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:O.map((v,L)=>mr("div",{className:"flex flex-col gap-1",children:[v.label?.trim()&&_e("span",{className:`font-mono ${Ho.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:lt(v.label)}),v.value?.trim()&&_e("span",{className:`font-display ${Ho.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:lt(v.value)})]},L))}):mr("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[y.title?.trim()&&_e("h3",{className:`font-heading3 ${Ho.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${Ho.headingSmallUpTo700Large}`,children:Ze(y.title,!0)}),y.copy?.trim()&&_e("p",{className:`font-display ${Ho.bodySmall} leading-[1.55] text-fg-dim`,children:Ze(y.copy,!1)}),O.length>0&&_e("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:O.map((v,L)=>mr("div",{className:"flex flex-col gap-1",children:[v.label?.trim()&&_e("span",{className:`font-mono ${Ho.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:lt(v.label)}),v.value?.trim()&&_e("span",{className:`font-display ${Ho.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:lt(v.value)})]},L))})]})]},k)})}),s?.text&&_e("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:mr(ga,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${Ho.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[lt(s.text),_e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var S$=["selected","highlighted"],wE="data-sf-card-state",vE="pointer-events-none absolute inset-0 border border-accent",kE="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",PE="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",TE="absolute inset-y-0 left-0 w-[3px] bg-accent",OE="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",EE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",CE=e=>{let o=iC.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},b$={[CE("muted")]:`var(${CE("fg")})`};function Kh(e){return e?.selected===!0}function qh(e){return e?S$.filter(o=>e[o]===!0).join(" "):""}function _E(e,o="frame"){let t=qh(e);return t?o==="frame"&&Kh(e)?{[wE]:t,className:"relative isolate",style:{...b$}}:{[wE]:t,className:"relative"}:{}}var w$={highlighted:!0},C$={},zc="badge";function $ce(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||js(t,r)}))}function AE(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===zc||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function zce(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,[zc]:s===a?t:""})),states:e.map((n,s)=>s===a?w$:C$)}}function Uce(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function jce(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 FE="data-sf-card-press",BE=`${wO} appearance-none bg-transparent border-0 p-0 m-0`,LE=`${BE} cursor-pointer`,RE=BE;import{paymentMarkItems as v$,paymentMarks as k$}from"efficient-shell/icons/payment";var P$=[tb,rb],DE=e=>P$.includes(e),NE=e=>v$({name:e.label,kind:e.kind}),T$=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function ME(e){return k$(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>NE(t).some(r=>T$(r,o)))?.kind??""}))}function Vce(e){return NE(e)[0]??null}var HE={heading:"Trusted by *teams worldwide*"},Uc=()=>[{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")}],O$=id.Logos,Jce={label:"Logos",drawsPictures:!0,fields:O$,defaultProps:{items:[],contained:!0}};var E$=()=>Uc().map(e=>({label:e.alt}));function WE(e,o){let t=ld(e,o,E$()).rows.filter(r=>r.label);return DE(Me(e))?ME(t):t}var $l="Flex",A$="Text",zl=e=>Object.values(e??{}).filter(zE),F$=e=>e.type===io&&Me(e.props)!=="",UE=e=>{if(e.type!==$l)return!1;let o=zl(e.props).flat();return o.length>0&&o.every(F$)},jc=e=>fn(e.props?.headPlacement)==="own-box"||UE(e),Vh=e=>e===void 0||Array.isArray(e)&&e.length===0;function jE(e){return e.type===A$?!0:e.type===$l&&zl(e.props).every(o=>o.every(jE))}var GE={ProcessSteps:e=>Vh(e.boxes)&&Gh(e.steps).length===0,Logos:e=>Me(e)?B$(e):Vh(e.logos)&&Vh(e.items)};function B$(e){return ib(e)!==null&&WE(e,!1).length===0}function L$(e){return zl(e.props).flat().every(o=>!ld(o.props,!1).rows.some(AE))}function Gc(e){let o=zl(e.props).flat();return o.some(jc)&&o.every(t=>jc(t)||jE(t))}function R$(e){if(!_$(e)||!jc(e))return e;let o=UE(e)?L$(e):z(GE,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Wl]:o?"empty":!0}}}function $E(e){return Xe(e,o=>ze(o,R$))}function KE(e){let o=Object.entries(e.props??{}).filter(([,r])=>zE(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===$l&&t.props?{key:o[0][0],inner:t}:null}function qE(e){if(e?.type!==$l||!e.props)return e;if(Gc(e)){let t=$E(e);return{...t,props:{...t.props,[Hl]:!0}}}let o=KE(e);return!o||!Gc(o.inner)?e:{...e,props:{...e.props,[o.key]:[$E(o.inner)],[Hl]:!0}}}function VE(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 D$=e=>z(GE,String(e.type))?.(e.props??{})===!0;function N$(e){if(e.type!==$l||!e.props)return!1;let o=Gc(e)?null:KE(e),t=o?o.inner:e;if(!Gc(t))return!1;let r=zl(t.props).flat().filter(jc);return r.some(a=>Me(a.props)!=="")&&r.every(D$)}function YE(e){return Xe(e,o=>M$(o))}function M$(e){let o=!1,t=[];for(let r of e){if(N$(r)){o=!0;continue}let a=YE(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function XE(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=YE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var H$=["DocMasthead","AlloyWheelsListing"],Kc="titleLevel",W$=e=>e===2?"h2":"h1",Yh=e=>W$(e?.[Kc])==="h2";function ZE(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>H$.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[Kc]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as K$}from"efficient-easel/draw";var Kn="showFor";function JE(){return en("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var $$=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Ipe(){return JE().choices}function gpe(){return JE().revision}function QE(e){return $$(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as z$}from"efficient-easel/draw";var Xh="_wallLabelId",U$="_wallLabelledBy",Zh=e=>e.props?.id==null?"":String(e.props.id);function j$(e){if(!e||e.type!=="Text"||!Zh(e))return!1;let o=z$(e.props?.text);return!o.hidden&&o.text.trim()!==""}var G$=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Zh(e)!=="",e_=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function o_(e){let o=ze(e,r=>Xe(r,o_)),t=null;for(let r=1;r<o.length;r++){if(!G$(o[r])||!j$(o[r-1]))continue;let a=`sf-wall-label-${Zh(o[r-1])}`;t??=o.slice(),t[r-1]=e_(t[r-1],Xh,a),t[r]=e_(t[r],U$,a)}return t??o}function t_(e){return rn(e,o_)}var r_="_cardPressTitles",q$="_cardPressTitle";function Epe(e,o){let t=e?.[r_],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var a_=(e,o)=>({...e,props:{...e.props,...o}});function V$(e){let o=e.props??{};return e.type!=="Text"||K$(o.text).hidden||typeof o[Vo]=="string"||typeof o[Xh]=="string"?"":Wt(o)}function n_(e,o,t,r){return ze(e,a=>{let n=V$(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),a_(a,{[q$]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Kn]))return a;let s=a.props?.[on],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return Xe(a,(i,d)=>aa(a.type,d)?i:n_(i,l,t,r))})}function s_(e){let o,t=Xe(e,(r,a)=>{let n=ze(r,s_);if(!aa(e.type,a))return n;let s=[],l=n_(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?a_(t,{[r_]:o}):t}function l_(e){return rn(e,o=>ze(o,s_))}import{pinnedDuplicateIndices as LU}from"efficient-easel/draw";import{jsx as Wo,jsxs as m1}from"react/jsx-runtime";import{createContext as PU,useContext as TU,useEffect as OU,useRef as x1,useState as h1}from"react";import{jsx as Dr,jsxs as w_}from"react/jsx-runtime";import{useEffect as qn,useRef as C_,useState as Ca}from"react";import{jsx as i_,Fragment as Y$,jsxs as X$}from"react/jsx-runtime";import{useEffect as Z$,useRef as d_,useState as J$}from"react";var Q$="#t=0.001",ez=2;function oz(e,o){if(e.readyState<ez||!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 f_({src:e,objectPosition:o="50% 50%",onError:t}){let r=d_(null),a=d_(null),[n,s]=J$(!1);return Z$(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{oz(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),X$(Y$,{children:[i_("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&&i_("video",{ref:r,src:`${e}${Q$}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{useEffect as rz}from"react";var c_="video-time";function p_(e,o,t){if(!Number.isFinite(t)||t<=0)return e;let r=(e+o*t)%t;return r<0?r+t:r}function u_(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 m_(e,o,t){rz(()=>{let r=t.current;if(!e||!r)return;let a=r.ownerDocument.defaultView??window,n=r.closest("[data-motion-pin]")??r,s=()=>{let w=n.getBoundingClientRect();return u_({top:w.top,height:w.height},a.innerHeight)},l=s(),i=!1,d=0,f=!1,m=0,u=()=>{let w=o.current;if(w){if(Math.abs(w.currentTime-d)<.01){f=!1;return}f=!0,w.currentTime=d}},h=()=>{f=!1;let w=o.current;i&&w&&Math.abs(w.currentTime-d)>.02&&u()},I=()=>{let w=s(),T=w-l;l=w;let B=o.current;T===0||!B||!B.duration||(i||(i=!0,B.pause(),d=B.currentTime),d=p_(d,T,B.duration),f||u(),a.clearTimeout(m),m=a.setTimeout(()=>{i=!1,o.current?.play()?.catch(()=>{})},150))},S=()=>{l=s()};return r.addEventListener("seeked",h,!0),a.addEventListener("scroll",I,{passive:!0}),a.addEventListener("resize",S),()=>{r.removeEventListener("seeked",h,!0),a.removeEventListener("scroll",I),a.removeEventListener("resize",S),a.clearTimeout(m)}},[e,o,t])}import{useEffect as nz}from"react";var x_="video-name-ticks";var h_='[data-part="text"] a[href]';function I_(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 g_(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)",lz="color-mix(in srgb, var(--overlay-fg) 25%, transparent)";function y_(e,o,t){nz(()=>{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(h_)]:[],l=[];if(e==="names"){r.replaceChildren();for(let m=0;m<s.length;m++){let u=r.ownerDocument.createElement("b");u.style.background=lz;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=I_(m.currentTime,m.duration,l.length);l.forEach((I,S)=>{I.style.transform=`scaleX(${u[S]})`});let h=g_(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 iz="data-part",zpe=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 it(e){return{[iz]:e}}var Ul={min:40,max:100,step:5,fallback:100,unit:"vh"};function dz(e){return`${typeof e=="number"?e:Ul.fallback}${Ul.unit}`}function S_(...e){return e.some(o=>typeof o=="number"||jl(o)!==null)}var Jh={...Lv,fallback:680,unit:"px"},Kpe={ratio:"16/9",px:`${Jh.fallback}px`},fz=/^(\d{1,5}(?:\.\d{1,3})?)px$/;function jl(e){if(typeof e!="string")return null;let o=_v(e);if(o!==null)return{unit:"ratio",value:e,css:"auto",aspect:o};let t=fz.exec(e);if(t&&Number(t[1])>0){let r=Math.min(Jh.max,Math.max(Jh.min,Number(t[1])));return{unit:"px",value:`${r}px`,px:r,css:`${r}px`}}return null}function cz(e){return Object.keys(e.style??{}).some(o=>o.startsWith("--sf-hero-ar-"))}function qpe({heightDesktop:e,heightTablet:o,heightMobile:t,heightFixed:r,heightFixedTablet:a,heightFixedMobile:n}){let s=I=>jl(I)?.value,l=S_(e,t,s(r),s(n)),i=S_(o,s(a)),d=(I,S,w)=>{let T=jl(S);return T?.unit==="ratio"?{[`--sf-hero-h-${I}`]:T.css,[`--sf-hero-ar-${I}`]:T.aspect}:{[`--sf-hero-h-${I}`]:T?.css??dz(w)}},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=cz({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 qc=1280,pz="16 / 9",uz="100svh",mz=[{minDppx:3.01,dppx:4,capPx:Math.floor(qc/4)},{minDppx:2.01,dppx:3,capPx:Math.floor(qc/3)},{minDppx:1.01,dppx:2,capPx:Math.floor(qc/2)},{minDppx:null,dppx:1,capPx:qc}];function b_(e=uz){let o=`max(100vw, calc(${e} * ${pz}))`;return[...mz.map(({minDppx:t,capPx:r})=>`${t===null?kn:`${kn} and (min-resolution: ${t}dppx)`} min(${o}, ${r}px)`),"100vw"].join(", ")}function Zpe(e,o){let t=jl(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>=Ul.min&&e<=Ul.max)return`${e}svh`}var xz=.5;function Gl({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=xz,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:m=!1,slideShown:u,laterSlide:h=!1,laterOfLead:I=!1,phoneFrame:S,followsScroll:w=!1,progress:T,followScrollBar:B}){let P=b_(S),g=SP(d,f),C=Il(),[E,A]=Ca(!1),N=C==="below"&&!E,b=C==="first",_=a||"",y=n||"",k=C_(null),O=_l(k,!0,!0),v=O===void 0?void 0:O==="phone",L=wf({video:e,av1:o,videoPhone:t,av1Phone:r},v===!0),M=L.video||"",K=bf(M,L.av1),[W,se]=Ca(!1),[le,ee]=Ca(!1),[Ie,ae]=Ca(!1),[me,ge]=Ca(!1),Ge=u??!0,[Ve,Eo]=Ca(!1),Ye=C!=="first"&&!I,[Je,qo]=Ca(!1),Qe=C_(null),mo=B?{kind:"bar",fill:B}:void 0;m_(w||!!B,Qe,k),y_((T??mo)?.kind??"none",Qe,(T??mo)?.fill),qn(()=>{if(!Ye)return;if(document.readyState==="complete"){qo(!0);return}let ie=()=>qo(!0);return window.addEventListener("load",ie,{once:!0}),()=>window.removeEventListener("load",ie)},[Ye]),qn(()=>{se(!1),ee(!1),ae(!1),ge(!1)},[M,_,y]),qn(()=>{Ge&&Eo(!0)},[Ge]),qn(()=>{let ie=Qe.current;ie&&(Ge?ie.play()?.catch(()=>{}):ie.pause())},[Ge,Ve,Je]),qn(()=>{if(!h||Ye&&!Je)return;let ie=()=>A(!0);if(typeof window.requestIdleCallback=="function"){let wo=window.requestIdleCallback(ie,{timeout:2e3});return()=>window.cancelIdleCallback(wo)}let Ne=setTimeout(ie,800);return()=>clearTimeout(Ne)},[h,Ye,Je]),qn(()=>{let ie=Qe.current;if(!ie)return;let Ne=()=>{ie.playbackRate=l};return Ne(),ie.addEventListener("loadedmetadata",Ne),()=>ie.removeEventListener("loadedmetadata",Ne)},[M,l]);let $=Sf(_),de=_&&($||y)&&!le?ya(_):{src:_},he=y&&!le?ya(y):{src:y},De=y&&!N&&!E?[{sized:he,media:kn},..._?[{sized:de,media:Ws}]:[]]:[];return w_("div",{ref:k,className:"absolute inset-0 z-[1]",...it("hero-media"),children:[Dr("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),De.map(({sized:ie,media:Ne})=>Dr("link",{rel:"preload",as:"image",href:ie.src,media:Ne,fetchPriority:"high",...ie.srcSet?{imageSrcSet:ie.srcSet,imageSizes:P}:{}},Ne)),(_||y)&&($||y?(()=>{let ie=Dr("img",{..._?{src:de.src}:{},...de.srcSet?{srcSet:de.srcSet,sizes:P}:{},alt:"",...N?{loading:"lazy"}:{},...b?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${g.className}`.trim(),style:{display:W?"none":"block",objectPosition:i,...g.style},onError:Ne=>{Ne.currentTarget.currentSrc&&(de.srcSet||he.srcSet?ee(!0):se(!0))}},y?void 0:_);return y?w_("picture",{children:[Dr("source",{media:kn,srcSet:he.srcSet||he.src,sizes:P}),ie]},`${_} ${y}`):ie})():Dr(kc,{src:_,alt:"",fill:!0,...N?{}:E?{loading:"eager"}:{priority:!0},sizes:P,className:`z-[2] object-cover ${g.className}`.trim(),style:{display:W?"none":"block",objectPosition:i,...g.style},onError:()=>se(!0)},_)),s&&!m&&M&&v!==void 0&&Ve&&(!Ye||Je)&&!Ie&&Dr("video",{ref:Qe,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:i},onError:()=>ae(!0),children:K.map(ie=>Dr("source",{src:ie.src,type:ie.type},ie.src))},M),s&&m&&M&&v!==void 0&&Ve&&(!Ye||Je)&&!me&&(!_||W)&&Dr(f_,{src:M,objectPosition:i,onError:()=>ge(!0)},M)]})}import{jsx as v_}from"react/jsx-runtime";import{forwardRef as hz}from"react";var Iz=hz(function(e,o){return v_("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)"},...it(c_),children:v_("i",{ref:o,className:"block h-full w-full origin-left",style:{background:"var(--overlay-fg)",transform:"scaleX(0)"}})})}),k_=Iz;import{jsx as gz}from"react/jsx-runtime";import{forwardRef as yz}from"react";var Sz=yz(function(e,o){return gz("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",...it(x_)})}),P_=Sz;import{jsx as Io,Fragment as H_,jsxs as rI}from"react/jsx-runtime";import{jsx as Vn}from"react/jsx-runtime";import{useRef as bz}from"react";import{EXPAND_SIDE_VAR as wz,SCROLL_EFFECTS_WITH_ZOOM as Cz,scrollAttrs as vz}from"efficient-shell/format";var kz={[wz]:`var(${IC}, 0px)`};function Vc({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=bz(null),m=nf(),u=nt(),h=n?u:Or,I=El(f,!0,s),S=vz(e[I],o[I]),{attrs:w}=S,T=e[I].effect==="expand"?{...S.style,...kz}:S.style,B=Cz.includes(e[I].effect),P=vo(`${yn}${m.fill}${t?` ${t}`:""}`,h.className);if(B&&l==="picture")return h.scope(Vn("div",{ref:f,className:P,...r,...h.attrs,...a?{style:a}:{},children:Vn(Av,{attrs:w,style:T,children:m.inner(d)})}));let g=Vn(Fv,{children:m.inner(d)});if(B){let E=i??(m.fill?"h-full":void 0);return h.scope(Vn("div",{ref:f,className:P,...r,...h.attrs,style:{...a,overflow:"clip"},children:Vn("div",{...E?{className:E}:{},...w,style:T,children:g})}))}let C=Object.keys(T).length||a?{style:{...a,...T}}:{};return h.scope(Vn("div",{ref:f,className:P,...r,...h.attrs,...w,...C,children:g}))}var va=["media","image","image2"],xr={media:"Media",image:"Image",image2:"Image 2"},Kl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Yc(e,o){return e==="image"&&Js(o)>1?"Image 1":xr[e]}var Nue="Video file",Mue="Upload a video file",Hue="AV1 file",Wue="Upload an AV1 file";function Pz(e,o){return bd("mediaType",Kd,o,[e])}var Tz=new Set(Object.keys(qd)),T_="heroPart";function Oz(e,o){return{...o,[T_]:e}}function $ue(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Kd.flatMap(l=>t[l])].filter(l=>!(l in e));if(s.length)throw new Error(`heroMediaFields: ${s.join(", ")} is not a row of this block`);for(let l of Kd)for(let i of t[l])n[i]=ro(n[i],Pz(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=ro(n[l],i));for(let l of va)for(let i of o[l]??[])n[i]=Oz(l,n[i]);return n}function Ez(e){let o=e?.[T_];return va.includes(o)?o:null}function O_(e,o){let t={};for(let[r,a]of Object.entries(e))Ez(a)===o&&(t[r]=a);return t}function E_(e){if(!Tz.has(e.type))return[];let o=[{part:"media",label:xr.media,depth:0}];return dv(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:Yc("image",e.props),depth:1}),Js(e.props)>1&&o.push({part:"image2",label:Yc("image2",e.props),depth:1})),o}function ka(e,o){return`${e}::${o}`}function Xc(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return va.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var ql="data-sf-hero-part";import{MOTION_TIMING as _z}from"efficient-shell/format";var B_="grayscale(1) contrast(1.03)",Gue="Black and white";function Az(e){return e===!0?{filter:B_}:{}}function Fz(e){let{filter:o}=Az(e);return o?{style:{filter:o}}:{}}var Pa="sf-photo-grayscale",tI="data-sf-photo-host",__={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},ep=`@media (hover:hover){.${Pa}{filter:${B_};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 L_(e){let o=_z.hover,t={...e.duration!==o.duration.default?{[__.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[__.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function R_(e,o,t){if(e===!0)return Fz(!0);if(t?.kind==="mono"){let r=L_(t);return{className:Pa,sheet:ep,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Pa}:{}}var D_="data-sf-repeat",Qh="sf-photo-zoom",Bz="--sf-photo-zoom",Kue="sf-photo-wash",Zc="sf-photo-wash-rest",Vl="sf-photo-wash-hover",Qc="sf-photo-frame",N_=(e,o)=>`:not([${D_}]:not(${o}) .${e})`,oI=(e,o)=>`[${D_}]${o} .${e}${N_(e,o)}`,eI=(e,o)=>`${o},${oI(e,":hover")},[${tI}]:hover .${e}${N_(e,":hover")}`,A_=e=>`${e} var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))`,Lz=`.${Vl}{opacity:0}@media (hover:hover){.${Zc},.${Vl}{transition:${A_("opacity")}}${eI(Vl,`.${Qc}:hover .${Vl}`)}{opacity:1}${eI(Zc,`.${Qc}:hover .${Zc}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Qh}{transition:${A_("transform")}}${eI(Qh,`.${Qc}:hover .${Qh}`)}{transform:scale(var(${Bz}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Zc},.${Vl}{transition:none}}`,que="sf-photo-move";function Vue(e){if(!e||!e.zoom&&!e.darken)return null;let o=L_(e);return{className:Qc,sheet:Lz,...o?{style:o}:{}}}function M_(e){return e===!0?{[Pa]:ep}:{}}var Jc="sf-box-reveal",Yue="sf-box-reveal",Rz=8,F_=.3,Xue=`@media ${Ws}{.${Jc}{opacity:0;transform:translateY(${Rz}px);transition:opacity ${F_}s ease-out,transform ${F_}s ease-out}${oI(Jc,":hover")},${oI(Jc,":focus-within")}{opacity:1;transform:none}}@media ${Ws} and (prefers-reduced-motion:reduce){.${Jc}{transition:none;transform:none}}`;import{hidableText as Dz}from"efficient-easel/draw";var Nz={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"},Mz={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 W_(e){let o=e.isVideo&&WP(e.videoSource)==="youtube",t=e.isVideo?$P(e.videoPlayback):null,r=t==="click",a=o?zP(Dz(e.youtubeUrl)):null,n=fv(e.mediaLayout);return{fromYouTube:o,onClick:r,youTubeId:a,backgroundFile:e.isVideo&&!o&&!r,followsScroll:t==="scroll"&&!o,progress:t?HP(e.videoProgress,t,o):"none",desktopLayout:n,phoneLayout:cv(e.mediaLayoutPhone,n),twoPictures:!e.isVideo&&Js(e)>1}}function Yl(e,o){return Sn(Sa({_partMotion:e},o))}function Xl(e,o){return zn(Sa({_partMotion:e},o))}var op=e=>Eh({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),$_=tl.img;function z_({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?Io(Pc,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?Io(Vc,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:i}):Io("div",{className:a,...n,...s?{style:s}:{},children:i})}function Yn(e,o){return R_(void 0,void 0,Vb(Sa({_partMotion:e},o)))}function U_(e){return va.some(o=>Yn(e,o).className)?{hostAttrs:{[tI]:""},sheet:ep}:{}}function tp({treatment:e,children:o}){return e.className?Io("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Io(H_,{children:o})}function rp({color:e,opacity:o,passClicks:t=!0}){return o>0?Io("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},...it("tint")}):null}function ap({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 Io(z_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:$_,children:l})}function j_({partMotion:e,editing:o,children:t}){let r=Yl(e,"media"),a=Xl(e,"media"),n=Yn(e,"media"),s=Io(of,{fill:tl,children:t}),l=n.className?Io("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?Io(z_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:$_,children:l}):Io(H_,{children:l})}function G_({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 ${Nz[o]} ${Mz[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Io(ap,{part:"image",editing:t,marked:r,entrance:Yl(a,"image"),scroll:Xl(a,"image"),origins:op(n),className:"relative overflow-hidden",children:rI(tp,{treatment:Yn(a,"image"),children:[Io(Gl,{posterSrc:st(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Io(rp,{color:n.tintColor,opacity:n.tintOpacity})]})}),Io(ap,{part:"image2",editing:t,marked:r,entrance:Yl(a,"image2"),scroll:Xl(a,"image2"),origins:op(s),className:`relative overflow-hidden ${Zk({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:rI(tp,{treatment:Yn(a,"image2"),children:[Io(Gl,{posterSrc:st(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Io(rp,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Nr,Fragment as Hz,jsxs as Wz}from"react/jsx-runtime";import{useEffect as $z,useRef as zz,useState as Uz}from"react";import{PlaySolidIcon as jz}from"efficient-shell/icons/efficient-looks";function K_({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=Uz("large");return $z(()=>n("large"),[e]),e?Wz(Hz,{children:[!o&&a!=="none"&&Nr(Qf,{src:a==="large"?UP(e):jP(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&&Nr("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Nr("iframe",{src:Ax(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 q_({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=zz(null),d=_l(i,!0,!0)==="phone";if(!e&&!o)return null;let f=wf({video:o,av1:t,videoPhone:r,av1Phone:a},d),m=bf(f.video,f.av1);return n&&!l?e?Nr("iframe",{src:Ax(e,"click"),title:Fx,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"}):Nr("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=>Nr("source",{src:u.src,type:u.type},u.src))},f.video):Nr("button",{ref:u=>{i.current=u},type:"button","aria-label":Fx,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:Nr(jz,{size:28})})}function V_(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 J_}from"efficient-shell/format";var Q_=["top","middle","bottom"],e1=["left","center","right"],o1="bottom",t1="left",Gz={top:"Top",middle:"Middle",bottom:"Bottom"},Kz={left:"Left",center:"Center",right:"Right"},Tme="Up and down",Ome="Sideways",qz={top:"flex-start",middle:"center",bottom:"flex-end"},Vz={left:"flex-start",center:"center",right:"flex-end"},Yz="--sf-hero-phone-y",Xz="--sf-hero-phone-x";function Zz(e){return J_(Q_,o1,e)}function Jz(e){return J_(e1,t1,e)}function r1(e,o){let t=Zz(e),r=Jz(o),a={};return t!==o1&&(a[Yz]=qz[t]),r!==t1&&(a[Xz]=Vz[r]),a}var Qz="--sf-hero-phone-words-top",eU="--sf-hero-phone-words-bottom",oU="--sf-hero-phone-box-gap",Eme=100,_me=90,Ame=28,tU=0,rU=200,Fme="Words space top",Bme="Words space bottom",Lme="Space between boxes";function aI(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(rU,Math.max(tU,Math.round(e)))}function a1(e,o,t){let r={},a=aI(e),n=aI(o),s=aI(t);return a!==void 0&&(r[Qz]=`${a}px`),n!==void 0&&(r[eU]=`${n}px`),s!==void 0&&(r[oU]=`${s}px`),r}function Rme(){return Q_.map(e=>({label:Gz[e],value:e}))}function Dme(){return e1.map(e=>({label:Kz[e],value:e}))}var aU="--sf-hero-words-top",nU="--sf-hero-words-bottom",Y_="--sf-hero-words-top-t",X_="--sf-hero-words-bottom-t",Nme=140,Mme=56,sU=0,lU=400,Z_="pt-[var(--sf-hero-words-top,140px)] pb-[var(--sf-hero-words-bottom,56px)]",iU="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 dU(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(lU,Math.max(sU,Math.round(e)))}function n1(e,o,t,r){let a={},n=(s,l)=>{let i=dU(l);i!==void 0&&(a[s]=`${i}px`)};return n(aU,e),n(nU,o),n(Y_,t),n(X_,r),Object.keys(a).length===0?{className:null,style:a}:{className:Y_ in a||X_ in a?`${Z_} ${iU}`:Z_,style:a}}import{hexToRgb as fU,parseOption as cU}from"efficient-shell/format";var pU=!0;var uU=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function s1(e){let o=fU(e);return o?`${o.r},${o.g},${o.b}`:null}function l1(e){return e==null?pU:e!==!1}var mU="classic",xU=[{label:"Classic",value:"classic"},{label:"Edges",value:"edges"}],hU=160,IU=62,gU=".38";function yU(e){return cU(xU,mU,e)}function i1(e,o){let t=(e?s1(e):null)??s1(ir);if(yU(o)==="edges"){let r=`rgba(${t},${gU})`,a=`rgba(${t},0)`;return`linear-gradient(180deg, ${r} 0px, ${a} ${hU}px), linear-gradient(180deg, ${a} ${IU}%, ${r} 100%)`}return`linear-gradient(180deg, ${uU.map(([r,a])=>`rgba(${t},${a}) ${r}%`).join(", ")})`}import{hexToRgb as d1,parseOption as SU}from"efficient-shell/format";var f1="bottom";var bU=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],wU={bottom:180,top:0,left:270,right:90},CU=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],vU=[[null,33],[.6,67],[.94,100]];function kU(e,o){let{r:t,g:r,b:a}=d1(e)??d1(ir);return`rgba(${t},${r},${a},${o})`}function c1(e){return SU(bU,f1,e)}function p1(e=ir,o=f1){let t=c1(o),r=(t==="top"||t==="bottom"?CU:vU).map(([a,n])=>`${a===null?"transparent":kU(e,a)} ${n}%`);return`linear-gradient(${wU[t]}deg, ${r.join(", ")})`}function u1(e,o){let t=xo(e.overlayColor),r=xo(e.overlayPosition),a=xo(o)??ir;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:c1(r)}}var EU=PU({});function mxe({name:e,process:o,mediaType:t=qd.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:f,objectPositionPhone:m,objectPositionTablet:u,tintColor:h=ir,tintOpacity:I=0,groups:S,editing:w=!1,themeClassName:T,themeStyle:B,overlayColor:P,overlayPosition:g,mediaLayout:C,mediaLayoutPhone:E,mediaImage2:A,objectPosition2:N,objectPosition2Phone:b,objectPosition2Tablet:_,tintColor2:y=ir,tintOpacity2:k=0,videoSource:O,youtubeUrl:v,videoPlayback:L,videoProgress:M,partMotion:K,laterSlide:W=!1}){let se=Pt(),le=nt(),{alignment:ee="left",textureOpacity:Ie,textureOn:ae,textureColor:me,textureShape:ge,quietVideo:Ge,phoneUpDown:Ve,phoneSideways:Eo,phoneWordsTop:Ye,phoneWordsBottom:Je,phoneBoxGap:qo,wordsTop:Qe,wordsBottom:mo,wordsTopTablet:$,wordsBottomTablet:de,holdReel:he,reelHeld:De,shownSlide:ie,ratioMin:Ne,posterPhoneFrame:wo}=TU(EU),ke=n1(Qe,mo,$,de),Rt=Il(),Ja=W&&Rt==="first",yr=x1(null),[Cm,As]=h1(ie===void 0?void 0:!1);OU(()=>{let Rs=yr.current;As(ie===void 0||!Rs?void 0:V_(Rs.closest(".hero-track"),"data-slide-name")[ie]===Rs)});let Bo=t==="video",Qa=Bo?st(r):void 0,Jt=Bo?st(n):st(r)??st(n),et=Bo?{av1:st(s),phone:st(l),av1Phone:st(i),poster:st(d)}:{},td=typeof a=="number"?a/100:1,{fromYouTube:Qt,onClick:Jr,youTubeId:rd,backgroundFile:er,followsScroll:vm,progress:Sr,desktopLayout:ad,phoneLayout:km,twoPictures:nd}=W_({isVideo:Bo,videoSource:O,videoPlayback:L,videoProgress:M,youtubeUrl:v,mediaLayout:C,mediaLayoutPhone:E}),[yt,sd]=h1(!1),Fs=x1(null);yt&&De===!1&&sd(!1);let Bs=!yt,G=u1({overlayColor:P,overlayPosition:g},me),Fe=Bo?null:Yl(K,"image"),Lo=Bo?null:Xl(K,"image"),St=U_(K),Dt=Wo(tp,{treatment:Bo?{}:Yn(K,"image"),children:Wo(Gl,{videoSrc:er?Qa:void 0,videoAv1Src:er?et.av1:void 0,videoSrcPhone:er?et.phone:void 0,videoAv1SrcPhone:er?et.av1Phone:void 0,posterSrc:Jt,posterSrcPhone:et.poster,showVideo:er,playbackRate:td,objectPosition:f,objectPositionPhone:Bo?void 0:m,objectPositionTablet:Bo?void 0:u,quiet:Ge,slideShown:Cm,laterSlide:W,laterOfLead:Ja,phoneFrame:wo,followsScroll:vm,progress:Sr==="none"?void 0:{kind:Sr,fill:Fs}})}),Ls=m1("section",{ref:yr,className:vo(`${Ne?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${T?` ${T}`:""}`,le.className),...le.attrs,style:B,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":er&&Qa?"video":"still",...St.hostAttrs,...it("slide"),children:[Wo(Dc,{sheet:St.sheet}),Wo(j_,{partMotion:K,editing:w,children:nd?Wo(G_,{laterSlide:W,desktopLayout:ad,phoneLayout:km,editing:w,partMotion:K,first:{src:r,objectPosition:f,objectPositionPhone:m,objectPositionTablet:u,tintColor:h,tintOpacity:I},second:{src:A,objectPosition:N,objectPositionPhone:b,objectPositionTablet:_,tintColor:y,tintOpacity:k}}):Qt||Fe||Lo?m1(ap,{part:Bo?"media":"image",editing:w,entrance:Fe,scroll:Lo,origins:op({objectPosition:f,objectPositionTablet:u,objectPositionPhone:m}),className:"absolute inset-0 z-[1]",children:[Dt,Qt&&Wo(K_,{youTubeId:rd,ownPoster:!!Jt,background:!Jr,editing:w})]}):Dt}),Jr&&Wo(q_,{youTubeId:rd,fileSrc:Qt?void 0:Qa,fileAv1Src:Qt?void 0:et.av1,fileSrcPhone:Qt?void 0:et.phone,fileAv1SrcPhone:Qt?void 0:et.av1Phone,playing:yt,onPlay:()=>{sd(!0),he?.()},editing:w}),Bs&&!nd&&Wo(rp,{color:h,opacity:I,passClicks:!1}),Bs&&l1(ae)&&Wo("div",{className:"absolute inset-0 z-[2]",style:{background:G.own?p1(G.color,G.position??void 0):i1(G.color,ge),...Ie!==void 0?{opacity:Ie/100}:null},...it("overlay")}),Bs&&Wo("div",{className:[Ne?"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)]",ke.className??"pt-[140px] pb-14",se?vC:"",w?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...dC,...r1(Ve,Eo),...a1(Ye,Je,qo),...ke.style},...it("hero-content"),children:S&&Wo(S,{className:"sf-hero-group-zone",minEmptyHeight:160})}),Sr==="bar"?Wo(k_,{ref:Fs}):Sr==="names"?Wo(P_,{ref:Fs}):null]});return le.scope(Ja?Wo(Jf,{children:Ls}):Ls)}var I1=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as w1}from"efficient-easel/draw";import{isNodeList as AU}from"efficient-easel/data";var nI=3,sI=()=>({type:q,props:{direction:"column"},slots:{[Ce]:[{type:"ImageBlock"},{type:q,props:{direction:"column"},slots:{[Ce]:[{type:"Text",props:br()},{type:"Text"}]}}]}}),g1=()=>Array.from({length:nI},sI);var y1=["","","","","",""],S1="#ticker",Zl="strip",lI={sectionAccent:Cr,line:!1};function _U(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function iI(e){return _U(e).length>0}function bxe(e){return e.showTicker!==!1&&iI(e)}var C1=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,AU(r)?r.map(a=>C1(a,o)):r]))}}),FU=e=>{let[o]=Mt([sI()],a=>w1(a)),{id:t,...r}=C1(o,e).props;return r},dt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>I1.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Ms.toLowerCase()}`,seeds:()=>[],addBlocked:fx,notice:cx},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Ms.toLowerCase()}`,seeds:()=>[],addBlocked:fx,notice:cx},ProcessSteps:{slot:Ns,childType:q,addLabel:`Add ${Ms.toLowerCase()}`,seeds:e=>Array.from({length:nI},()=>FU(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},b1=1,BU={slot:Zl,childType:q,addLabel:`Add ${Ms.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=b1?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>b1?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},v1={Hero:{[Zl]:BU}};function Bxe(e){for(let[o,t]of Object.entries(e)){if(eo(dt,o)&&z(dt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);dt[o]=t}}function Lxe(e,o){let t=z(dt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:w1(t.childType),...r}}))}:null}var RU=["GalleryB"];function k1(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!RU.includes(l))return s;let i=z(dt,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(LU(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var DU={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},NU={"Footprint.source":"typed"};function P1(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(DU)){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(NU)){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&&!Me(i)&&(i[lo]=l),o=i,t=!0}if(e.type&&o){let r=vd(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=Xe({props:o},a=>ze(a,P1));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function T1(e){return dd(e,o=>ze(o,P1))}import{readHidable as MU}from"efficient-easel/draw";var qt=q,Vt=Ce;function Ta(e){if(e.theme)return sr(e.theme);let o=e.site?.themePresets;return o?sr({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function HU(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var E1=new Set(["id"]),Mr={},Jl=[],WU={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"]},$U=Object.keys(WU),Oa=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...$U,"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(eo(Mr,o)&&z(Mr,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Mr[o]=t}}function Hr(e){return z(Mr,e)}function zU(e){return eo(Mr,e)&&Jl.includes(e)}function _1(e,o=Oa){return eo(Mr,e)&&(o.includes(e)||zU(e))}function Qxe(e){let o=z(Ct,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=>MU(e),We=e=>dI(e).text.trim()!=="";function UU(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 jU=e=>e==="heading"?br():e==="eyebrow"?ar():{};function GU(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 KU(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 O1(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 qU(e){let o=new Set([...E1,"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=>fn(e.headPlacement)==="own-box";function VU(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 YU(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 XU(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 ZU(e,o,t){if(!t.press)for(let r of XU(e)){let a=YU(o,r);if(a!==void 0)return a}}function Ea(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:VU(r))??ZU(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],l=[],i=new Set,d=(g,C)=>{s.push({key:g,home:C}),i.add(g)},f=r._partStyles??{},m=qU(o),u=0,h=(g,C)=>({type:g,props:{...C,id:`${n}~${g}-${++u}`}}),I=(g,C,E,A,N,b,_)=>{if(N){for(let k of g??[]){let O=typeof k=="string"?k:k[0];E[O]!==void 0&&_(O,`nothing \u2014 the ${A} has no parts, so it is not drawn`)}return}let y=typeof C=="function"?C(r,t):C??{};return O1(g??[],y,E,(k,O,v)=>_(k,v?`nothing \u2014 the old value draws nothing (${A}: no ${O})`:`${b}${A}: ${O}`),t)},S=g=>Mt(g,C=>`${n}~${C}-${++u}`),w=(g,C,E)=>{let A=g.of?g.of(C):Array.isArray(C[g.key])?C[g.key]:[],N=typeof g.props=="function"?g.props(r,t):g.props??{},b=A.map((v,L)=>{let M=v??{},K=g.item?.(M,L,r)??{},W=T(K.reverse?[...g.parts].reverse():g.parts,M,!1,`item ${L+1}: `);return g.flat?K.props?W.map(se=>({...se,props:{...se.props,...K.props,id:se.props.id}})):W:[h(qt,{name:`${g.name} ${L+1}`,...N,...K.props??{},[Vt]:W})]});if(g.groups){let v=g.groups;return E(g.key,A.length?`one Box per item (${A.length}), in a Box per group`:"nothing \u2014 the list is empty"),wd(A.map(L=>L??{}),v.of,v.of).map((L,M)=>{let K=L.items.map(ae=>ae.item),W=v.parts?T(v.parts,v.head?.(K,r)??{},!1,`group ${M+1}: `):[],se=L.items.map(ae=>b[ae.index]),le=v.perRow?.(K.length,r),ee=Number.isInteger(le)&&le>=1?le:1,Ie=[];if(v.perRow&&ee<se.length)for(let ae=0;ae*ee<se.length;ae++)Ie.push(se.slice(ae*ee,(ae+1)*ee).flat());return h(qt,{name:`${v.name} ${M+1}`,...v.props??{},[Vt]:[...W,h(qt,{name:`${v.itemsName} ${M+1}`,...v.itemsProps?.(K.length,r)??{},[Vt]:Ie.length?Ie.map((ae,me)=>h(qt,{name:`${v.rowName??`${v.itemsName} row`} ${me+1}`,...v.rowProps??{},[Vt]:ae})):se.flat()})]})})}let _=g.perRow?.(r),y=g.perRow?Number.isInteger(_)&&_>=1?_:1:0;if(E(g.key,(A.length?g.flat?`each item's parts (${A.length} items), in order`:`one Box per item (${A.length}), its parts inside`:"nothing \u2014 the list is empty")+(y&&A.length?`, in rows of ${y}`:"")),!y)return b.flat();let k=typeof g.rowProps=="function"?g.rowProps(r,t):g.rowProps??{},O=[];for(let v=0;v*y<b.length;v++){let L=b.slice(v*y,(v+1)*y).flat(),M=g.rowFiller?y-b.slice(v*y,(v+1)*y).length:0;O.push(h(qt,{name:`${g.rowName??`${g.name} row`} ${v+1}`,...k,[Vt]:[...L,...Array.from({length:M},(K,W)=>h(qt,{name:`Empty ${W+1}`,...g.rowFiller,[Vt]:[]}))]}))}return O},T=(g,C,E,A)=>{let N=[],b=(y,k)=>E?d(y,k):void 0,_=y=>E?f[y]:void 0;for(let y of g)if(!(y.when&&!y.when(r,E?void 0:C)))switch(y.kind){case"text":{let k=dI(C[y.key]);if(!k.text.trim()&&!(E&&t.press&&o.pressKeepsEmpty?.includes(y.key))){b(y.key,"nothing \u2014 empty words draw nothing, so no block");break}let O=jU(y.role??"body"),{_partStyles:v,...L}=O,M=GU(O,y.styleFrom?{...y.style,...y.styleFrom(r,t)}:y.style,_(y.key),y.props?.align);N.push(h("Text",{text:y.mark==="accentLead"?UU(k.text):y.mark==="accentItalic"?Hs(k.text):k.text,...L,...y.props??{},...M,...k.hidden?{_hidden:!0}:{}})),b(y.key,`${A}Text block: its words${k.hidden?", hidden":""}`);break}case"button":{let k=dI(C[y.key]);if(!k.text.trim()){b(y.key,"nothing \u2014 no words, no button"),b(y.href,"nothing \u2014 no button to link"),typeof y.variant=="object"&&b(y.variant.key,"nothing \u2014 no button to style");break}let O=typeof C[y.href]=="string"&&C[y.href]?C[y.href]:"#",v={...y.style??{},..._(y.key)??{}};N.push(h("ButtonBlock",{label:k.text,href:O,...typeof y.props=="function"?y.props(C,t):y.props??{},...KU(y.variant,C),...Object.keys(v).length?{_partStyles:{label:v}}:{},...k.hidden?{_hidden:!0}:{}})),b(y.key,`${A}Button block: its words`),b(y.href,`${A}Button block: its link`),typeof y.variant=="object"&&b(y.variant.key,`${A}Button block: its Style`);break}case"image":{let k=C[y.key];if(typeof k!="string"||!k){b(y.key,"nothing \u2014 no picture, no block"),y.alt&&b(y.alt,"nothing \u2014 no picture to describe");break}let O=y.alt&&typeof C[y.alt]=="string"?C[y.alt]:"";N.push(h("ImageBlock",{src:k,alt:O,...y.props??{}})),b(y.key,`${A}Image block: its picture`),y.alt&&b(y.alt,`${A}Image block: its alt text`);break}case"list":{N.push(...w(y,C,b));break}case"group":{let k=T(y.parts,C,E,A),O=I(y.box,y.props,C,`${y.name} Box`,!k.length&&!y.keepEmpty,A,b);O&&N.push(h(qt,{name:y.name,...O,[Vt]:k}));break}case"block":{let k=y.parts?T(y.parts,C,E,A):[],O=I(y.box,y.props,C,`${y.type} block`,!!y.parts&&!k.length&&!y.keepEmpty,A,b);O&&N.push(h(y.type,{...O,...y.slot?{[y.slot]:k}:{}}));break}case"core":{let k=y.as??e.type,O={...y.headless?{}:{headPlacement:"own-box"},...y.props??{}},v=y.keep==="rest"?Object.keys(C).filter(M=>!m.has(M)&&!(M in O)):y.keep;for(let M of v)C[M]!==void 0&&(O[M]=C[M],b(M,`the ${k} block inside the Box`));if(y.keep==="rest"){for(let K of Object.keys(y.props??{}))C[K]!==void 0&&!m.has(K)&&b(K,`nothing \u2014 the ${k} block inside the Box has the row's own value`);C.headPlacement!==void 0&&b("headPlacement",`the ${k} block inside the Box: own-box`);let M=Object.fromEntries(Object.entries(f).filter(([K])=>!m.has(K)));Object.keys(M).length&&(O._partStyles=M)}for(let[M,K]of Object.entries(y.rename??{}))C[M]!==void 0&&(O[K]=C[M],b(M,`the ${k} block inside the Box: ${K}`));if(y.derive){Object.assign(O,y.derive.props(C,t));for(let M of y.derive.reads)C[M]!==void 0&&b(M,`the ${k} block inside the Box`)}let L=typeof y.slots=="function"?y.slots(C,t):y.slots??{};for(let[M,K]of Object.entries(L))O[M]=K.flatMap(W=>"kind"in W?w(W,C,b):S([W]));N.push(h(k,O));break}}return N},B=(g,C)=>{let E=C===0?"Box":`${g.name} Box`,A=T(g.parts,r,!0,C===0?"":`${E}: `),N=typeof g.boxProps=="function"?g.boxProps(r,t):g.boxProps??{},b=O1(g.box??[],N,r,(_,y,k)=>d(_,k?`nothing \u2014 the old value draws nothing (${E}: no ${y})`:`${E}: ${y}`),t);return{type:qt,props:{name:g.name,...b,[Vt]:A,id:HU(n,C)}}},P=[o,...o.also??[]].map(B);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[g,C]of Object.entries(o.reads??{}))r[g]!==void 0&&d(g,C);for(let[g,C]of Object.entries(o.drop??{}))g in r&&(l.push({key:g,why:C}),i.add(g));for(let g of Object.keys(r))E1.has(g)||i.has(g)||l.push({key:g,why:"not in the row \u2014 not carried"});return{node:P[0],nodes:P,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function A1(e,o=Jl,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(Mr,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 F1(e,o=Jl,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(Mr,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 JU,BLOCK_SIZE_KEYS as QU,parseBlockWidthFit as sp,phoneKey as B1,parseTextFit as np,tabletKey as L1,viewKeyAt as R1}from"efficient-easel/draw";import{sideLengthAt as ej}from"efficient-easel/screen/lib/content/length-units";var oj="sf-block-size",Ql=["width","minWidth","maxWidth"],lp=e=>`${e}Unit`,Wr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,tj={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"}},H1={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"}},rj={desktop:H1.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"}},aj={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},W1="max-view-wide:grow!";function $1(e){return ip(e).mode.phone==="fill"}var nj={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},sj={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},lj="data-sf-min-width",D1={two:{desktop:"wide",phone:ux.phone},three:ux},ij={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)]"]}},dj={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)]"]}},fj=["widthFit",...Ql],N1={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!"},cj={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!"},z1={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:z1.phone},U1={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},M1={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:U1.phone};function j1(e){let o=ip(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>aj[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function G1(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=ip(e),n=d=>o?D1.three[d]:D1.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[lj]=s.min.join(" ")),i}function ip(e){let o=fj.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?sp(n)!==void 0:Wr(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=lp(a),s={};for(let i of t)s[R1(a,In(i))]=Wr(e[a]?.[i]),s[R1(n,In(i))]=e.units?.[a]?.[i];let l=i=>ej(s,{length:a},n,In(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(sp,e.widthFit)}}function uI(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(k=>np(e.textFit?.[k])==="ellipsis"),r=o&&!t,a=r?rj:H1,n=r?dj:cI,s=r?cj:pI,l=[],i={},d={},{three:f,sides:m,lengthPerSide:u,mode:h}=ip(e),I=u("width");for(let k of m){let O=h[k];!O||O==="fit"||(l.push(f?a[k][O]:tj[k][O]),O==="fixed"&&(i[nj[k]]=mn(I[k]?.value??JU.fallback,I[k]?.unit)))}for(let k of Ql.filter(O=>O!=="width")){let O=u(k);for(let v of m){let L=O[v];if(L===void 0)continue;let[M,K]=f?n[k][v]:ij[k][v];i[M]=mn(L.value,L.unit),l.push(K)}}let S=np(e.textFit?.desktop),w=np(e.textFit?.phone),T=k=>{let O=Wr(e.minFont?.[k]);return O===void 0?void 0:e.units?.minFont?.[k]==="vw"?`${O}vw`:String(O)},B=T("desktop"),P=T("phone"),g=np(e.textFit?.tablet),C=g!==S||w!==void 0?g:void 0,E=T("tablet"),A=E!==B||P!==void 0?E:void 0,N=Wr(e.maxWidth?.desktop),b=Wr(e.maxWidth?.tablet)??N,_={desktop:N!==void 0,tablet:b!==void 0,phone:(Wr(e.maxWidth?.phone)??b)!==void 0},y=(k,O,v)=>{if(O!=="line"&&O!=="ellipsis")return;let L=k==="tablet"?void 0:k,M=(K,W)=>v||!L?K[k]:W[L];if(O==="line"){l.push(M(s,N1));return}if(l.push(M(pI,N1)),l.push(M(pj,z1)),f&&!v&&k==="desktop")for(let K of["desktop","tablet"])_[K]||l.push(M1[K]);else _[k]||l.push(M(M1,U1))};return C?(y("desktop",S,!0),y("tablet",C,!0),y("phone",w??C,!0)):(y("desktop",S,!1),y("phone",w??S,!1)),S&&(d[cr.fit]=S),C&&(d[cr.fitTablet]=C),w&&(d[cr.fitPhone]=w),B!==void 0&&(d[cr.min]=B),A!==void 0&&(d[cr.minTablet]=A),P!==void 0&&(d[cr.minPhone]=P),!r&&(C||A!==void 0)&&(d[cr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[oj,...l].join(" "),style:i,attrs:d}}function she(e){if(Wr(e.maxWidth?.desktop)!==void 0)return!0;let o=sp(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function K1(e){return["desktop","tablet","phone"].some(o=>{let t=sp(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Wr(e.minWidth?.[o])!==void 0})}function dp(e){let o={};for(let t of QU){let r=e[t],a=e[L1(t)],n=e[B1(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=lp(t),l={desktop:e[s],tablet:e[L1(s)],phone:e[B1(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var q1={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as uj}from"efficient-shell/format";import{convertLength as mj}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as V1}from"efficient-easel/draw";var Yt=(e,o,t,r)=>o===t?e:mj(e,o,t,r,{min:0,max:200,step:4}),_a={textFit:"line",textFitPhone:"wrap"},Aa={...U,[Vo]:""},{label:Mhe,href:Hhe,...xj}=q1.defaultProps,fo=xj,Fa={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...jm,sectionAccent:0},Zn={sectionAccent:-1},J=[...kr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",gv.unitKey,...bv,...xv,"anchor",Ys,...Pn,Dd,...jd,...Oc,...Ud(["widthFit",...Ql,...Ql.map(lp)]),...Object.values(Ao)],Xn="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",X={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Xn,fullWidth:Xn,pageWidth:Xn,backgroundWidth:Xn,contentWidth:Xn,contentMax:Xn},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)"])),fp={[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=wr(e.sectionPaddingUnit),l=wr(e.sectionPaddingUnitTablet),i=wr(e.sectionPaddingUnitPhone),d=Array.isArray(e[zt])?e[zt]:[],f=(w,T)=>d.includes(w)?0:T,m=(w,T,B,P,g,C)=>{let E=ye(e[w]);if(E!==void 0)return E+Yt(f(w,C),"px",i,"mobile");let A=P===void 0?{n:g,unit:s,key:B}:{n:P,unit:l,key:T};return Yt(A.n,A.unit,i,"mobile")+Yt(f(A.key,C),"px",i,"mobile")},u=(w,T,B,P,g,C)=>B!==void 0?{[w]:B+Yt(f(w,C??g),"px",l,"tablet")}:C===void 0?{}:{[w]:Yt(P,s,l,"tablet")+Yt(f(T,C),"px",l,"tablet")},h=w=>({desktop:ho[w],tablet:V1(ho[w],"tablet"),phone:V1(ho[w],"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 ft(e,o){let t={};for(let[a,n]of hx)e[a]!==void 0&&(t[n]=e[a]);let r=Qd(e,Hn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var $r=e=>[...hx.map(([o,t])=>[o,t,(r,a)=>ft(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>ft(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>ft(t,e).sectionPaddingBottom]],hj={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Whe=e=>o=>We(o.props[e])?[hj]:[],pe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:U,...o?{style:o}:{}}),Jn=e=>({kind:"group",name:"Chip",props:{...R,...rr("main"),...Co(6,14)},parts:[pe(e,{color:"background",...H("label",12),weight:600,letterSpacing:.16})]}),Y1=e=>e.background!=="transparent",Ij=(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},ei={align:"right",alignPhone:"left"},gj=(e,o,t)=>{let r=a=>Ij(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}},oi=(e,o,t,r={})=>gj(e,o,{...Aa,...ei,...r,_partStyles:{text:{...Ro,color:"labels",...t,case:Ro.case,...ei}}}),Qn=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ta(o)?.selected??0,X1="var(--site-surface-2)",cp=(e,o)=>Ta(o)?.themes[Qn(e.sectionAccent??0,o)],$o=(e,o)=>(t,r)=>{if(!o?.(t,r))return rr(e);let a=cp(t,r)?.[e];return a?{fillColor:a}:{}},pp=(e,o)=>zr(e,o)>=0,Z1=e=>e.startsWith("#")&&uj(e)!==null,up=(e,o,t)=>{let r=e?.trim();if(r&&Z1(r))return{fillColor:r};let a=yx(r);if(a)return rr(a);let n=r===X1?cp(o,t):void 0;return n?{fillColor:Uw(n)}:{}},mp=e=>{let o=e?.trim();return!o||o==="transparent"||o===Gt||yx(o)||o===X1||Z1(o)?void 0:"it paints a colour that no Box Fill can hold"},zr=(e,o)=>{let t=Ta(o)?.themes;return t&&Y1(e)?jw(t,Qn(e.sectionAccent,o)):-1},Ur=(e,o,t)=>{let r=zr(o,t);return r>=0?r:e},es=(e,o)=>{let t=Ta(o)?.themes,r=t?Gw(t,Qn(e,o)):-1;return r>=0?r:e},Ba=(e,o)=>{let t=zr(e,o);return t>=0?{sectionAccent:t}:{}},jr=(e,o)=>Y1(e.props)&&zr(e.props,o)<0?[{kind:"band-preset",page:Qn(e.props.sectionAccent,o)}]:[],os=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=In(o),d=(m,u,h)=>{let I=wr(u),S=Rw(m,I,"spacing",h);return S===null?null:Yt(S,I,"px",i)},f=o==="desktop"?d(a,n,hC)??OC(a):d(s,l,gC)??_C(s)??BC(a,n);return Yt(Math.min(r,f),"px",t,i)},ti=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),ri=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,...ti,...$o("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],Ke.kind,Ke.duration,Ke.delay],parts:r});import{phoneKey as OI,readHidable as EI}from"efficient-easel/draw";import{isNodeList as jj,newId as Gj}from"efficient-easel/data";function J1(e){return Math.min(4,Math.max(2,e??3))}var jhe={eyebrow:"Label",title:"Section *heading.*"},yj=id.Cards,Q1={label:"Cards",fields:yj,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var qhe={eyebrow:"Highlight",title:"Key *features.*"},Vhe=()=>[{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")}],eA={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as Sj}from"efficient-shell/format";var xI="cardPlace",bj=["","top-line"];function Jhe(e){return Sj(bj,"",e[xI])}var Qhe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",eIe="data-sf-top-line",wj=new Set(["Cards",io]);function oIe(e){return typeof e=="string"&&wj.has(e)}var Cj=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 tIe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Cj(e)?{...e,top:0}:e}var rIe="outsideFramedCard";var xp={sectionBorder:{top:0,right:1,bottom:1,left:0},...rr("background")},vj={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},La=e=>({direction:"row",columns:e,columnsTablet:e,...vj}),oA=(e={})=>Be(zc,{...U,tag:"p",[xI]:"top-line"},e,!0),ts=(e=ta)=>{let o=sn(e);return{...o,props:{...xp,...o.props},slots:{[Ce]:[...o.slots?.[Ce]??[],oA()]}}},hI=(e=!1)=>{let o=ln(e);return{...o,props:{...xp,...o.props}}},kj={name:"name",time:"time",note:"note",price:"price"},Pj={textStyle:"body-1",...H("body",16),weight:500,lineHeight:1.5},Tj={...Ro,...H("label",12),letterSpacing:.18,lineHeight:1.5},Oj={textStyle:"body-1",...H("body",14),lineHeight:1.6},Ej={textStyle:"body-1",fontRole:"heading",...H("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},_j={...H("label",11),letterSpacing:.25},Aj={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},hp=e=>({direction:"row",columns:e,...Aj}),II=[...new Set([...Object.keys(La(1)),...Object.keys(hp(1))])],gI=()=>{let e=kj,o={tag:"p",widthFit:"fill"};return{type:q,props:{...R,name:"Card",justify:"between",gap:16,gapPhone:16,...Co(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...rr("surface"),shadow:!0},slots:{[Ce]:[oA(_j),{type:q,props:{...R,name:"Words",gap:8,gapPhone:8},slots:{[Ce]:[Be(e.name,{...U,...o},Pj),Be(e.time,{...oe,...o},Tj),Be(e.note,{...oe,...o},Oj)]}},Be(e.price,{...U,...o},Ej)]}}};import{tabletKey as nA}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Ip}from"efficient-easel/draw";var gp=tr,yI=Ip,tA=960,rA=tr,aA={min:gp,max:1600,step:10},yp="stackBelow";function mIe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<aA.min||e>aA.max))return Math.round(e)}var Fj=e=>`sf-stack-${e}`,Bj=e=>`sf-stack-${e}-gutter`,Lj=e=>`sf-stack-${e}-outer`,rs=e=>`${e-.02}px`;function xIe(e,o={}){let t=o.gutter!==!1,r=`.${Fj(e)}`,a=`.${Bj(e)}`,n=`.${Lj(e)}`,s=[];if(e>gp){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,Ip);s.push(`@media (min-width:${gp}px) and (max-width:${rs(e)}){${r}${r}{flex-direction:column}.sf-gap-overlap${r}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${l}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${gp}px) and (max-width:${rs(i)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>Ip&&s.push(`@media (min-width:${Ip}px) and (max-width:${rs(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${rs(e)}){${a}${a}{padding-inline:${SC.frame}}}`),t&&e<tA&&s.push(`@media (min-width:${e}px) and (max-width:${rs(tA)}){${a}${a}{padding-inline:${yC}}}`),e>rA&&s.push(`@media (min-width:${rA}px) and (max-width:${rs(e)}){`+["top","bottom","left","right"].map(l=>`.sf-pad-${l}-phone:has(>${n}),.sf-pad-${l}-phone${n}{padding-${l}:var(--sf-pad-${l[0]}-phone)!important}`).join("")+"}"),s.join("")}import{parseOption as Rj}from"efficient-shell/format";var Dj=["standard","editorial","simple","essay"];function Ra(e){if(e==="ProductGrid")return"shelf";let o=z(Ct,e)?.headStyle;return Rj(Dj,"standard",o)}var ai={standard:64,editorial:60,simple:36,essay:28,shelf:20},Nj={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function Mj(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=z(Ct,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 bp(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=Sp.get(r);if(a)return a;let n=dA({num:e,title:o,description:t,link:!1});return Sp.set(r,n),n}var zo={[yp]:yI},bI={top:0,right:0,bottom:1,left:0},Uo=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),wp=(e,o,t={})=>pe(e,{...H("label",o),...t}),Cp=(e,o)=>({kind:"text",key:e,role:"heading",props:U,style:{textStyle:"heading-2",...o}}),wI=tr,Hj=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:{...wt(e),color:"labels"}}),sA=(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"?Wj(ar()):{},...t.style}}}}},Wj=e=>e._partStyles.text??{},as={widthFitPhone:"fill"};function vI(e){if(e.kind!=="group")return e;if(e.name==="Words"){let o=e.props;return{...e,props:typeof o=="function"?(t,r)=>({...o(t,r),...as}):{...o,...as}}}return{...e,parts:e.parts.map(vI)}}function $j(e,o){let t=z(Nj,e),r=t==="accent",a=wp(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=Cp(o.title,r?{...Uo("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,...as,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...R,...as,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[sA(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...R,...as},parts:[s,...l?[sA(o.title,`Three ranges,
320
+ one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...R,...as,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 vp(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>vp(t,o))}:e}function dA(e){let o=Cp(e.title,{...Uo("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,...zo},parts:[{kind:"group",name:"Title",props:{...R,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...zo},parts:[{kind:"group",name:"Number",props:{...R,sectionPaddingBottom:8},parts:[{...wp(e.num,13),props:{...U,..._a}}]},vp(o,[e.title])]},{kind:"group",name:"Words",props:{...R,sectionPaddingBottom:4,maxWidth:360,[nA("maxWidth")]:Hj,maxWidthPhone:wI},parts:e.description?[CI(e.description,14,void 0,{lineHeight:1.5},{[nA("align")]:"left"})]:[]}]}}function lA(e,o){return{kind:"group",name:"Header",props:{...R,gap:16,gapPhone:16},parts:[wp(e.num,13),Cp(e.title,o)]}}var fA=[["para",{...wt(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}]],zj=e=>fA.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function Uj(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:[wp(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...fA.map(([o,t])=>({...Cp(e.title,t),when:r=>zj(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 kp(e){return Ra(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}var Sp=new Map,kI={...H("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function ct(e){let o=Sp.get(e);if(o)return o;let t=Mj(e),r=Ra(e),a=r==="editorial"?dA(t):r==="simple"?lA(t,kI):r==="essay"?lA(t,{...H("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?Uj(t):$j(e,t);return Sp.set(e,a),a}var Da={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Gt,Stats:void 0};var ni=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),yA=e=>o=>J1(ye(o.columns)??ye(e.columns)),Kj="inline is the head the row draws; an own-box node is skipped (`skip`)",qj={kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-3",...kI}},Tp=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Series);return o&&o!=="transparent"?o:void 0},Pp=e=>Tp(e)===Gt,Vj={...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},cA={...R,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[OI("share")]:"content"},Yj=e=>{let o=Tp(e)?1:2;return{...R,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},PI={...wt(12),letterSpacing:.22,lineHeight:1.5},pA=e=>We(e.viewLabel)&&!EI(e.viewLabel).hidden,pt=e=>EI(e).text?.trim?.()??"",Op=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>xo(o)!==void 0)),_I=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),Xj=_I([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Zj=_I([["label","Label"],["value","Value"],["body","Card body",!0]]),si=(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=>Fd(r(l),t)},slots:(l,i)=>({[Te]:[a(l,i)]})}]}),SA=e=>Array.isArray(e.cards)?e.cards:[],bA=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Op({title:pt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:js(Jm(o),t),...o})),Jj=e=>bA(e).some(o=>xo(o.href)!==void 0),wA=[{key:Km.label,label:"Feature label"},{key:Km.href,label:"Link",kind:"link"}],uA=e=>FO(e.eyebrowLook,"KeyFeatures")==="filled",Qj={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...$o("surface")(e,o),...ni(1,0,1,0),...re(e,xc)}),box:[...J,...ce(xc)],parts:[{kind:"group",name:"Heading",props:{...R,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[OI("share")]:"content"},parts:[{...Jn("eyebrow"),when:uA},{...pe("eyebrow"),when:e=>!uA(e)},qj]},si("Cards",e=>({...R,...La(yA(eA.defaultProps)(e))}),wA,bA,e=>hI(Jj(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"}},mA=(e,o)=>({...xp,...$o("background")(e,o)}),xA=e=>{let o=yA(Q1.defaultProps)(e);return{...R,...La(o)}},eG=_I([["title","Card title"],["body","Card body",!0]]),CA=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:js(Jm(o),t),title:pt(o?.title),body:pt(o?.body)})),vA=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(jj(a)?t[r]=a.map(vA):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},hA=(e,o)=>{let t=TI(e)?hI(oG(e)):ts(),r=Array.isArray(e.template)?e.template.map(vA):[t],[a]=r;return r.length===1&&a.type===q?{...a,props:{...mA(e,o),...a.props}}:{type:q,props:{...R,...mA(e,o),name:"Card"},slots:{[Ce]:r}}},TI=e=>e.cardStyle==="label-only",kA=e=>CA(e).map((o,t)=>{let r=e.items[t]?.href;return Op({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),oG=e=>kA(e).some(o=>xo(o.href)!==void 0),IA=e=>Array.isArray(e.template)&&e.template.length===0,gA=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function PA(){let e=t=>({key:Gj("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 tG={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...$o("surface")(e,o),...re(e,nc)}),box:[...J,...ce(nc)],parts:[{...ct("Cards"),when:e=>!fI(e)},{...si("Cards",xA,eG,CA,hA,{reads:["items"],keep:gA}),when:e=>!IA(e)&&!TI(e)},{...si("Cards",xA,wA,kA,hA,{reads:["items"],keep:gA}),when:e=>!IA(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)"}},rG={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...ni(0,0,1,0),...zo,...Pp(e)?Ba(e,o):{},...up(Tp(e),e,o),...re(e,gc)}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Pp(o)?Ur(e,o,t):e],...ce(gc)],skip:e=>mp(Tp(e)),site:(e,o)=>Pp(e.props)?jr(e,o):[],parts:[ct("Series"),si("Cards",Yj,Xj,e=>SA(e).map(o=>Op({num:pt(o.num),since:pt(o.since),title:pt(o.title),body:pt(o.desc),count:pt(o.entries),countLabel:pt(o.entriesLabel)})),(e,o)=>({type:q,props:{...Vj,...$o("background",(t,r)=>Pp(t)&&pp(t,r))(e,o),name:"Card"},slots:{[Ce]:[{type:q,props:{...R,name:"Words",gap:16,gapPhone:16},slots:{[Ce]:[{type:q,props:{...cA,name:"Top"},slots:{[Ce]:[Be("num",U,H("label",13),!0),Be("since",U,H("label",13),!0)]}},Be("title",{...U,tag:"h3"},{textStyle:"heading-3",...H("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Be("body",oe,{textStyle:"body-5",fontRole:"heading",...H("body",14),lineHeight:1.6})]}},{type:q,props:{...cA,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...ni(1,0,0,0),...pA(e)?{}:{[on]:["count","countLabel"]}},slots:{[Ce]:[{type:q,props:{...R,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[OI("share")]:"content"},slots:{[Ce]:[Be("count",U,PI),Be("countLabel",oe,PI)]}},...pA(e)?[{type:q,props:{...R,name:"View",maxWidthPhone:266},slots:{[Ce]:[{type:"Text",props:{...U,text:EI(e.viewLabel).text,_partStyles:{text:{...ar()._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:Kj}},aG={...R,direction:"row",columns:3,gap:40,gapPhone:16},nG={...R,gap:8,gapPhone:8,...Co(24),...ni(1,1,1,1)},sG={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...ni(0,0,1,0),...re(e,pc)}),box:[...J,...ce(pc)],parts:[si("Cards",aG,Zj,e=>SA(e).map(o=>Op({label:pt(o.label),value:pt(o.value),body:pt(o.desc)})),(e,o)=>({type:q,props:{...nG,...$o("surface")(e,o),name:"Card"},slots:{[Ce]:[Be("label",U,{...H("label",12),lineHeight:1.5},!0),{type:q,props:{...R,name:"Words",gap:14,gapPhone:14},slots:{[Ce]:[Be("value",U,{textStyle:"heading-3",...H("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Be("body",oe,{textStyle:"body-5",fontRole:"accent",...H("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...X,...te}},TA={Cards:tG,KeyFeatures:Qj,Series:rG,DocMetaCards:sG};import{SITE_SIDE as pL}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as fG}from"efficient-easel/draw";import{newId as cG}from"efficient-easel/data";import{phoneKey as lG}from"efficient-easel/draw";import{isNode as li}from"efficient-easel/data";var ns="cardStyle";function OA(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var Ep={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[lG("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}}}},ut={table:{...Ep.table,listCard:OA(Ep.table.card)},list:{...Ep.list,listCard:OA(Ep.list.card)}},oge=[{label:"Table",value:"table"},{label:"List",value:"list"}],tge=e=>e==="table"||e==="list",iG=e=>[...new Set([...Object.keys(ut.table[e]),...Object.keys(ut.list[e])])];function ii(e,o,t){let r={...e};for(let a of iG(o))delete r[a];return{...r,...structuredClone(ut[t][o])}}function dG(e,o,t){let r=e.props??{},a=Array.isArray(r[Te])?r[Te]:[],n=a.findIndex(i=>li(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:ii(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Te]:l}}}function rge(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>li(s)&&s.type===io)){let s=a.map(l=>li(l)&&l.type===io?dG(l,o,t):l);return{...ii(e,"items",o),[ns]:o,[r]:s}}let n=a.map(s=>{if(!li(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>li(d)&&d.type===t?{...d,props:ii(d.props??{},"card",o)}:d);return{...s,props:{...ii(l,"row",o),[r]:i}}});return{...ii(e,"grid",o),[ns]:o,[r]:n}}var AI=e=>typeof e=="string"?e.trim():"";function EA(e){let o=`${AI(e.prefix)}${AI(e.value)}`,t=AI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var AA={textStyle:"heading-2",...Uo("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},FI={kind:"block",type:"Text",props:{...Aa,_partStyles:{text:AA}},box:[["value","text",(e,o)=>EA(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&EA(o)!==""},_A=e=>We(e?.supSuffix),FA={textStyle:"body-1",fontRole:"heading",...H("body",16),lineHeight:1.5,letterSpacing:-.01},BA={color:"labels",...H("label",12),lineHeight:1.5,letterSpacing:.24},LA={...R,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[fG("share")]:"content"},RA={textStyle:"body-5",...H("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},BI=e=>da(e.background,Da.StatsParagraph),di=e=>BI(e)===Gt,_p=e=>({...e,sectionAccent:e.sectionAccent??0}),pG=(e,o)=>di(e)?$o("background",(t,r)=>pp(_p(t),r))(e,o):{},uG={name:"Stats with Text",skip:e=>BI(e)&&BI(e)!=="transparent"&&!di(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...zo,...ft(e,"StatsParagraph"),...di(e)?Ba(_p(e),o):{}}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>di(o)?Ur(e,_p(o),t):e],...$r("StatsParagraph")],site:(e,o)=>di(e.props)?jr({props:_p(e.props)},o):[],parts:[ct("StatsParagraph"),{kind:"group",name:"Stats",props:{...R,...ut.table.grid,[ns]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...R,direction:"row",share:"equal",phoneRow:2,...ut.table.row},props:(e,o)=>({...R,...ut.table.card,...pG(e,o)}),parts:[{...FI,when:(e,o)=>!_A(o)&&FI.when(e,o)},{kind:"group",name:"Figure",props:LA,when:(e,o)=>_A(o),parts:[FI,{kind:"text",key:"supSuffix",props:U,style:RA}]},{kind:"group",name:"Words",props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:U,style:FA},pe("sub",BA)]}]}]}],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"}},mG=new Set(["value","label",Vo]),xG=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Stats);return!!o&&o!=="transparent"},hG={name:"Stats",skip:e=>xG(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":We(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>We(o?.[Vo]))?"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=>!mG.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,yc)}),box:[...J,...ce(yc)],parts:[pe("heading",{color:"labels",...H("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...R,...ut.list.grid,[ns]:"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,...ut.list.row},props:{...R,...ut.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"}},DA={StatsParagraph:uG,Stats:hG};function NA(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var IG=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function MA(){let e=(o,t,r,a="")=>({key:cG("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 gG(e){return{type:q,props:{...R,name:"Card",...structuredClone(ut[e].listCard)},slots:{[Ce]:[{type:q,props:{...LA,name:"Figure"},slots:{[Ce]:[Be("figure",Aa,AA),Be("superscript",U,RA)]}},{type:q,props:{...R,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Be("label",{...U,widthFit:"fill"},FA),Be("body",{...U,widthFit:"fill"},BA,!0)]}}]}}}function LI(e,o,t=4){return{type:q,props:{...R,name:"Stats",direction:"row",columns:t,...structuredClone(ut[o].items),[ns]:o},slots:{[Ce]:[{type:io,props:Fd(e,IG),slots:{[Te]:[gG(o)]}}]}}}var HA={heading:"Ways to pay"},WA=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],$A=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],wge={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as yG}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as UA}from"efficient-shell/format";var Ap="Flex",SG={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},bG={FooterPayment:"PaymentLogosBlock"},wG=e=>{let{id:o,...t}=e;return t},zA=e=>typeof e=="string"?e:"",ss={sm:12,md:13,lg:15},jA={sm:{mark:16,words:ss.sm},md:{mark:20,words:ss.md}},CG="md",GA=1.5,vG={size:13,lineHeight:GA,width:280},kG=14,PG=40,TG=e=>UA(["left","center","right"],"left",e);function OG(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 EG(e,o,t){let r=t(e,wG(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:KA(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=kd(e,r.props);return a===r.props?r:{...r,props:a}}function KA(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]=KA(a[n],o,t);return{...r,props:a}})}function qA(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=z(SG,e.type)??z(bG,e.type);if(n)return[EG(n,r,o)];switch(e.type){case"FooterLogo":{let s=TG(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(tP*((ye(r.widthPct)??100)/100)),href:"/",align:s,...OG(r)}),i=zA(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...vG}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&eo(ss,r.size)?r.size:CG;return[o("Text",{text:zA(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:ss[s],lineHeight:GA}}})]}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?{[yG("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Ap,{direction:r.direction==="horizontal"?"row":"column",gap:rP("FooterGroup",r.gap),align:UA(["start","center","end","stretch"],"start",r.align),...$m,content:s.flatMap(l=>qA(l,o,t))})]}default:return[]}}function fi(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Ap,{direction:"row",wrap:!0,share:"equal",gap:PG,content:f}),s=[],l=[];for(let f of a){let m=qA(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(Ap,{direction:"column",gap:kG,align:"stretch",...$m,content:m}))}(l.length||!s.length)&&s.push(n(l));let i=o(Ap,{direction:"column",content:[o("LegalLineBlock")]}),d=dP(ao,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as RI,readHidable as _G}from"efficient-easel/draw";import{parseOption as AG}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)=>We(r?.src)||We(r?.[o])}]}]}),FG={...pe("heading",{color:"labels",letterSpacing:.2}),props:{...U,align:"center"}},BG={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...re(e,kl(e))}),box:[...J,...ce(kl),["bandPadding","sectionPaddingTop",(e,o)=>re(o,kl(o)).sectionPaddingTop]],parts:[FG,{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"}},LG={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:lw(4,"main",{sectionCorners:2})},RG={name:"Payment Methods",boxProps:e=>({...Y,direction:"column",...re(e,ic)}),box:[...J,...ce(ic)],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,or],props:e=>We(e[lo])?{[lo]:e[lo],...e[or]!==void 0?{[or]:e[or]}:{}}:{}},props:{...DI,look:"cards",grayscale:!1},slots:e=>({...NI("badges","label"),...We(e[lo])?{[Te]:[Vm()]}:{}})},{kind:"group",name:"Reassurance",props:{...R,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[RI("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>We(o?.text)),props:{...R,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[RI("share")]:"content"},item:e=>_G(e.text).hidden?{props:{_hidden:!0}}:{},parts:[LG,{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`)"}},VA=e=>ew(e.align)??"left",YA=e=>AG(["sm","md"],"sm",e.size),XA=12,ZA={name:"Payment logos",boxProps:e=>({...R,direction:"row",wrap:!0,align:"center",justify:gd[VA(e)],gap:XA,gapPhone:XA,phoneRow:2,[RI("share")]:"content"}),box:[...kr],parts:[{kind:"text",key:"lead",props:oe,styleFrom:e=>({size:ss[YA(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[lo,or],props:e=>({logoHeight:jA[YA(e)].mark,align:VA(e),...We(e[lo])?{[lo]:e[lo],...e[or]!==void 0?{[or]:e[or]}:{}}:{}})},props:{...DI,look:"marks",grayscale:!1,sectionAccent:Cr},slots:e=>({...NI("methods","label"),...We(e[lo])?{[Te]:[Vm()]}:{}})}],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"}},JA={Logos:BG,PaymentBadges:RG,FooterPayment:ZA,PaymentLogosBlock:ZA},QA=()=>({heading:HE.heading,items:Uc()}),eF=()=>({heading:HA.heading,badges:WA(),assurances:$A()}),oF=()=>({...hf,methods:[]});import{mixHex as WG}from"efficient-shell/format";import{MOTION_EASING as DG,MOTION_TIMING as tF,motionSeconds as rF,parseOption as aF}from"efficient-shell/format";var MI="none",Fp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function Qge(e){return aF(Fp,MI,e)}var ls="_gLoop",ci={field:"loop",is:"scroll"},pi="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"}],NG={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function nF(e){return aF(HI,pi,e)}function sF(e){return e==="up"||e==="down"}function Bp(e){return rF("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var eye=tF.loop.duration.default,MG=tF.loop.delay.default;function lF(e){return rF("loop","delay",e.loopDelay)}function oye(e,o,t=MG){return`${NG[e]} ${o}s ${DG.loop}${t?` ${t}s`:""} infinite`}var Lp="_gEntrance";var nye="none",sye=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function Rp(e){return e==="above"||e==="below"?e:null}var iF="sf-ticker-join";function HG(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function dF(e){return`absolute inset-x-0 ${HG(e)}`}var fF=e=>e.size==="display",$G=(e,o)=>{let t=cp(e,o),r=e.tone!=="plain"&&t?.text&&t.background?WG(t.text,t.background,.3):null;return r?{color:r}:{}},zG=(e,o)=>e.tone!=="plain"&&nx(e.sectionAccent)===null?$o("background")(e,o):{},cF=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:oe,style:e,styleFrom:$G}]}),UG={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...ma,...tc,...rw[Wm(e.separator)]===""?sO:{},...re(e,xa),...zG(e,o)}),box:[["scrollDirection","scrollDirection",e=>nF(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=>Wm(e)],["join","join",e=>Rp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...J,["tone","sectionAccent",(e,o)=>nx(o.sectionAccent)??Cr],...ce(xa)],parts:[cF(rc,e=>!fF(e)),cF(lO,fF)],drop:{...X,...te,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},pF=e=>e?.tone==="muted",uF=e=>Bd(Ta(e)),jG={name:"Spec Strip",boxProps:(e,o)=>({...Y,...ma,...Sl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:uF(o)},...re(e,ha)}),box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:uF(t)],...ce(ha)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:U,style:bl,when:(e,o)=>!pF(o)},{kind:"text",key:"text",props:oe,style:bl,when:(e,o)=>pF(o)}]}],drop:{...X,...te,...fp,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"}},mF={Ticker:UG,SpecStrip:jG};import{tabletKey as xF}from"efficient-easel/screen/lib/content/view-tiers";var hF={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[xF("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[xF("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},WI={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as GG}from"efficient-easel/draw";var Dp={eyebrow:Oe.eyebrow,title:`Section heading
321
+ *Highlight line*`,intro:Oe.body,imageCaption:Oe.imageCaption,imageMeta:Oe.imageMeta,cta:je.text},IF=()=>[{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.")}],wye={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Np={eyebrow:Oe.eyebrow,title:Oe.headingAccent,intro:Oe.body,cta:je.text},gF=()=>[{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}],Tye={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Xk,padTop:120,padBottom:120}};var vF={buttonBorder:{width:0}},Wp=(e,o,t={})=>({textStyle:"body-5",...H("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),is=(e,o,t={})=>({...Wp(e,o),...Ro,...t}),$p=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),ui=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),mt=(e,o,t={})=>({kind:"text",key:e,props:U,style:o,...t}),yF=(e,o)=>o?.future===!0,Mp=e=>nE(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"},KG={name:"Milestone Timeline",skip:e=>mp(GI(e)),boxProps:(e,o)=>{let t=zr($I(e),o);return{...Y,direction:"column",gap:60,[GG("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...zo,...ft(e,"TimelineTrack"),...up(GI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ur(e,$I(o),t)],...$r("TimelineTrack")],parts:[vI(vp(bp("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,...zo},parts:[{kind:"list",key:"entries",name:"Year",props:{...R,...hF},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:WI.name,props:{...R,...WI},parts:[mt("date",Wp(13,.22,{color:"accent"}),{when:(e,o)=>!yF(e,o)}),mt("date",Wp(13,.22,{color:"labels"}),{when:yF}),mt("title",{textStyle:"heading-3",...$p(H("headingSmall",20),-.02,1.1)},{role:"heading"})]},mt("blurb",ui(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",...vF},style:is(13,.3)}]}]}],site:(e,o)=>jr({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",Hp=e=>qI(e)==="split",KI=e=>!Hp(e),kF=e=>qI(e)==="spine",qG=e=>KI(e)&&!kF(e),SF=(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:[mt("imageCaption",is(11,.24,{color:"text"})),mt("imageMeta",is(11,.24,{color:"accent"}),{props:{...U,align:"right"}})]}]}),bF=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...fo,...e,...vF},style:is(13,.3)}),zI=()=>[mt("title",{textStyle:"heading-3",...$p(H("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...U,_partStyles:{text:ui(H("body",17,16),1.6)}},box:[["body","text",(e,o)=>Hs(Mp(o)[0]??"")]],when:(e,o)=>Mp(o).length>0},{kind:"block",type:"Text",props:{...oe,_partStyles:{text:ui(H("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Hs(Mp(o).slice(1).join(`
322
+
323
+ `))]],when:(e,o)=>Mp(o).length>1}],UI=()=>mt("date",Wp(13,.24,{color:"accent"})),jI=(e,o,t={})=>mt(e,o,{...t,props:{...U,...t.props??{},align:"center"}}),wF=Uo("headingMedium",40,5,76),CF={sectionBorder:{bottom:1}},VG={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=>Hp(e)?{...Y,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...CF,...ft(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...CF,...ft(e,"Timeline")},box:[...J,...$r("Timeline")],parts:[{kind:"group",name:"Heading",props:{...R,gap:24,gapPhone:24},when:Hp,parts:[mt("eyebrow",is(12,.3,{color:"accent"}),{role:"eyebrow"}),mt("title",{textStyle:"heading-2",...$p(wF,-.03,.94)},{role:"heading",mark:"accentItalic"}),mt("intro",ui(H("body",14),1.6),{props:{...oe,maxWidth:360},mark:"accentItalic"}),SF(667,419,{},()=>!0),bF()]},{kind:"group",name:"Chapters",props:{...R,gap:48,gapPhone:48,line:!1},when:Hp,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",is(12,.3,{color:"accent"}),{role:"eyebrow"}),jI("title",{textStyle:"heading-2",...$p(wF,-.03,.94)},{role:"heading",mark:"accentItalic"}),jI("intro",ui(H("body",14),1.6),{props:{...oe,maxWidth:520},mark:"accentItalic"}),bF({align:"center"})]},SF(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:kF,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:qG,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)"}},PF=()=>({eyebrow:Dp.eyebrow,title:kt(Dp.title),intro:Dp.intro,ctaText:je.text,ctaHref:je.href,entries:IF()}),TF=()=>({eyebrow:Np.eyebrow,title:kt(Np.title),intro:Np.intro,ctaText:je.text,ctaHref:je.href,entries:gF()}),OF={TimelineTrack:KG,Timeline:VG};import{tabletKey as YG}from"efficient-easel/draw";function EF(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var xt=e=>typeof e=="string"?e:e==null?"":String(e),VI=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],ds=e=>xt(e.group),MF=e=>`loc-${e}`,HF=e=>xt(e.state).trim()||Px(xt(e.region)).state,WF=e=>xt(e.country).trim()||Px(xt(e.region)).country,_F=e=>[HF(e),WF(e)].filter(Boolean).join(" \xB7 "),XG=e=>VI(e).some(o=>xt(o.photo).trim()!==""),ZG=e=>VI(e).some(o=>bw(Number(o.lat),Number(o.lng))),JG=(e,o)=>VI(e).filter(t=>ds(t)===ds(o)).length,QG=(e,o)=>JG(e,o)===1?"wide":IP(e.imageShape),AF=48,Tt=(e,o={})=>({...wt(e),...o}),YI={top:1,right:1,bottom:1,left:1},XI={...R,direction:"row",share:"equal",gap:0},e8=e=>o=>o>Cd(o)?{...R,gap:0}:{...XI,...o>1?{phoneRow:e}:{}},ZI=!0,o8={kind:"group",name:"Gallery",props:{...R,gap:20,...ZI?{_hidden:!0}:{}},when:XG,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:{...xt(e.photo).trim()?{bgImage:xt(e.photo),hover:"mono"}:{},link:`#${MF(o)}`,boxShape:QG(t,e)}}),parts:[{kind:"text",key:"name",props:U,style:Tt(11,{letterSpacing:.22,color:"text"})}],groups:{of:ds,name:"Group",props:{...R,gap:10},head:e=>({label:ds(e[0]??{})}),parts:[pe("label",Tt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:e8(2),perRow:Cd,rowName:"Row",rowProps:{...XI,phoneRow:2}}}]}]},t8={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)=>_F(t)]),when:(e,o)=>_F(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=>EF(xt(e))??"#"]],when:(e,o)=>xt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:oe,style:Tt(12,{letterSpacing:.18,lineHeight:1.7})}]},r8={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)=>HF(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>WF(t)])]},a8={kind:"group",name:"Map",props:{...R,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[r8]},n8={kind:"list",key:"locations",name:"City",props:(e,o)=>({...R,gap:0,justify:"between",sectionBorder:YI,jumpHighlight:!0,sectionAccent:zr(e,o)>=0?Qn(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:MF(o)}}),parts:[t8,a8],groups:{of:ds,name:"Group",props:{...R,gap:20},head:e=>{let o=e[0]??{};return{key:ds(o),groupName:xt(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)=>xt(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:Cd(e),[YG("columns")]:1})}},FF=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:ZG,slot:Vt,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...oe,text:"Location coordinates \xA9",_partStyles:{text:FF}}},{kind:"block",type:"ButtonBlock",props:{...fo,...Fa,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...FF,color:"labels"}}}}]},BF=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),LF=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],RF=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],DF=e=>e.map(o=>[o,o,(t,r)=>re(r,Mn)[o]]),NF=["sectionAccent","sectionAccent",Ur],l8=[...kr,...Pn,...Object.values(Ao)],i8={name:"City pictures",skip:e=>Me(e)?`fed by the data source "${Me(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:40,anchor:"studios",...zo,...BF(re(e,Mn),LF),sectionPaddingBottom:AF,sectionPaddingBottomPhone:AF,...Ba(e,o)}),box:[...J.filter(e=>e!=="sectionAccent"&&e!=="anchor"),NF,["anchor","anchor",e=>Qk(e).trim()?e:"studios"],...DF(LF)],parts:[bp("sectionNumber","heading","tagline"),o8],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...zo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...BF(re(e,Mn),RF),...Ba(e,o)}),box:[...l8,NF,...DF(RF)],parts:[n8,s8]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:jr,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)"}},$F={ContactLocations:i8};import{SITE_SIDE as zF,sideLengthAt as d8}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as JI}from"efficient-easel/draw";var f8=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var Gr=(e,o)=>()=>({top:e,topPhone:o}),UF=e=>o=>{let t=Hn(e),r={...o,[Pr.top]:Qd(o,t).top},a=i=>{let d=d8(r,Pr,Jd,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>ye(o[JI(Pr.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}:{}}},c8={Collections:Gr(120,70),Events:Gr(120,70),FAQ:Gr(sc.top,sc.topPhone),GalleryB:Gr(120,70),FitmentTable:Gr(120,80),SpecTable:Gr(120,80),LongRead:Gr(lc.top,lc.topPhone),RelatedProducts:Gr(0,0),Footprint:UF("Footprint"),ProcessSteps:UF("ProcessSteps"),ProductGrid:e=>({top:ye(e.padTop)??120,topPhone:0})};function p8(e,o={}){let t=z(Ct,e),r=z(c8,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=ct(e),s=kp(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=Ra(e)==="editorial"?zo:{};return{...Y,direction:"column",gap:ai[Ra(e)],sectionPaddingTop:m.top,...m.topTablet!==void 0?{sectionPaddingTopTablet:m.topTablet}:{},...m.topPhone!==void 0?{sectionPaddingTopPhone:m.topPhone}:{},...I,...u,...h}},box:[...J,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&xO.has(e)?{[JI(a,"tablet")]:0,[JI(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 u8={...R,direction:"accordion",rowStyle:"numbered"},m8={sectionPaddingLeft:zF,sectionPaddingRight:zF},x8={Footprint:{slots:{[Te]:[ww()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Ns]:g1().map(t=>({...t,props:{...t.props,...m8}}))}:{},boxProps:{gapPhone:ai.editorial}},FAQ:{slots:{[Te]:[Sw()]},pressHeading:!0,coreBox:{name:"Questions",props:u8},coreProps:{sectionAccent:Cr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[Q0]:gl},skip:e=>{let o=e._partStyles??{},t=yw().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}}},jF=Object.fromEntries(f8.map(e=>[e,p8(e,z(x8,e))]));import{BLOCK_WIDTH_LIMIT as h8}from"efficient-easel/draw";var zp={eyebrow:Oe.eyebrow,title:Oe.headingAccent,deck:"Add a sentence or two introducing this document."},kSe={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var YF={minWidth:h8.min},GF=(e,o,t)=>({...pe(e,{...o,...ei}),props:{...U,align:"right",..._a,...t}}),XF={top:1,bottom:0},eg=(e,o,t,r)=>({kind:"group",name:e,props:{...R,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),KF={widthFit:"fill",...YF},I8={...H("label",13),letterSpacing:.22,lineHeight:1.8},qF={textStyle:"heading-1",...Uo("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},g8=()=>({name:"Page Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,cc)}),box:[...J,...ce(cc)],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",...KF},style:qF,mark:"accentItalic",when:e=>!Yh(e)},{kind:"text",key:"title",role:"heading",props:{...U,tag:"h2",...KF},style:qF,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:[oi("label","value",I8,_a)]}]}]},{kind:"group",name:"Deck",props:{...R,maxWidth:760,sectionBorder:XF,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,[Kc]:"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"}}),ZF=()=>({eyebrow:zp.eyebrow,title:kt(zp.title),deck:zp.deck,meta:[{label:Oe.label,value:Oe.value},{label:Oe.label,value:Oe.value}]}),y8={...H("label",13),letterSpacing:.18,lineHeight:1.8},VF={...H("label",13),letterSpacing:.22,lineHeight:1.9},S8=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,Cl)}),box:[...J,...ce(Cl)],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:[oi("lead","rest",y8)]}]}]},{kind:"group",name:"Bottom",props:{...R,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:XF,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...U,maxWidth:720,...YF},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,...ei}}),{kind:"group",name:"Lines",props:{...R,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[GF("text",{color:"labels",...VF})]}]},GF("issueTotal",VF)]}]}],drop:{...X,...te}}),QI={color:"labels",...H("label",13),letterSpacing:.2},JF=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),og=(e,o)=>o!==void 0&&JF(e).at(-1)===o,QF=(e,o)=>o!==void 0&&JF(e).includes(o),b8=(e,o)=>QF(e,o)&&!og(e,o)&&We(o?.href),w8=()=>({name:"Breadcrumb",skip:e=>We(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,yl)}),box:[...J,...ce(yl)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:b8,props:{...fo,...Fa,icon:"none"},style:QI},{...pe("label",QI),when:(e,o)=>QF(e,o)&&!og(e,o)&&!We(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",...fp}}),eB={DocMasthead:g8(),Masthead:S8(),Breadcrumb:w8()};import{BLOCK_WIDTH_LIMIT as v8,hiddenKeyOf as k8}from"efficient-easel/draw";import{readHidable as tg}from"efficient-easel/draw";function C8(e,o,t){return e||(t?.isEditing?c(o):void 0)}function WSe(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function oB(e,o,t){let r=tg(e);if(!r.hidden)return C8(r.text,o,t)}function tB(e){if(e==null)return;let o=tg(e);return o.hidden?"":o.text}function $Se(e,o,t){return tg(e).hidden?"":oB(e,o,t)}function zSe(e,o,t){return{text:oB(e,je.text,t),href:o||je.href}}var sB="MenuBlock",rg=e=>(Array.isArray(e)?e:[]).filter(o=>o&&We(o.label)),rB=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(tB(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},aB={top:0,bottom:0,topPhone:0,bottomPhone:0},P8={...Ro,color:"labels",...H("label",12),letterSpacing:.24},T8={kind:"group",name:"Note",props:{...R,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[k8("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>rB(e)!=="",props:e=>({...U,textFit:"line",text:rB(e),[Ck]:{text:P8}})}]},lB=()=>({tabs:[],metaLabel:Oe.label,metaValue:Oe.value}),nB="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:v8.min},dB=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[bn]:0,[Qs]:!0,sectionBorder:{bottom:1},...re(o,aB)}),box:[...J,...ce(aB)]}),O8=()=>dB({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:nB,metaValue:nB},parts:[{kind:"block",type:sB,props:iB},T8],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"}}),E8=()=>dB({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:sB,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"}}),fB={DocTabs:O8(),CategoryBar:E8()};import{jsx as Na,jsxs as ag}from"react/jsx-runtime";import{slugify as N8}from"efficient-shell/format";import{jsx as jp,jsxs as uB}from"react/jsx-runtime";import{jsx as _8}from"react/jsx-runtime";import{useEffect as A8,useRef as F8}from"react";var cB="data-current",B8=1/3,L8=2;function R8(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 D8(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=R8(n,o,t);for(let l of r)s!==null&&a(l)===s?(l.setAttribute(cB,""),l.setAttribute("aria-current","location")):(l.removeAttribute(cB),l.removeAttribute("aria-current"))}function pB(){let e=F8(null);return A8(()=>{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-L8;D8(o,window.innerHeight*B8,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)}},[]),_8("span",{ref:e,hidden:!0})}var rbe="sticky top-[120px]";var Up={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var mB=(e,o)=>e?{[ra]:o}:{},xB=(e,o)=>Iw(e?.[zs(o)]?.role,Up[o],bb),hB=120;function IB({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Jx,takesViewHide:l=!1,markCurrent:i=!1}){let d=s==="plain",f=nt(),m=l?f:Or;return m.scope(uB("aside",{className:vo(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,m.className),style:r?{top:t}:void 0,...m.attrs,children:[e&&jp("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Ze(e)}),o.map((u,h)=>{let I=jp("span",{...mB(a,"number"),style:xB(n,"number"),className:"text-accent",children:zf(s,h)});return uB("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,jp("span",{...mB(a,"entry"),style:xB(n,"entry"),children:Ze(u.label||"Section")}),!d&&I]},`${h}-${u.anchor}`)}),i&&!a&&jp(pB,{})]}))}function gB(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 M8(e,o){return N8(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 gB(e.map((o,t)=>M8(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=md(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 H8=()=>[{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.")}],W8=hB;function Ebe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=W8,pad:a}){let n=Pt(),s=sg(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?H8():s,i=lg(l);return Na(fe,{as:"section",className:"relative z-[2] bg-bg",children:ag("div",{...cO(rt("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(IB,{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 ",Ze(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:Ze(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:Ze(h)},I))},u):Na("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Ze(m.text)},u))]},i[f]))})]})})}var yB=18,SB=18,bB=8,$8=10,dg=e=>typeof e=="string"&&e.trim()!=="",wB=e=>sg(e.sections),z8=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={...wt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},CB={textStyle:"body-1",fontRole:"accent",...H("body",17)},U8=[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:bB,sectionPaddingBottomPhone:bB},parts:[{kind:"group",name:"Heading line",props:{...R,sectionBorder:{bottom:1},sectionPaddingBottom:SB,sectionPaddingBottomPhone:SB},parts:[{kind:"text",key:"heading",role:"heading",props:U,style:{textStyle:"heading-2",...Uo("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:z8,parts:[{kind:"text",key:"text",props:oe,style:{...CB,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:oe,style:{...CB,lineHeight:1.65,paragraphSpacing:$8},when:(e,o)=>o?.kind==="ul"}]}],j8=900,G8={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[yp]:j8,sectionBorder:{bottom:1},...re(e,fc)}),box:["anchor","sectionAccent",...kr,...Pn,...Object.values(Ao),...ce(fc)],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=>wB(e),props:{...R,gap:yB,gapPhone:yB},item:(e,o,t)=>({props:{anchor:lg(wB(t))[o]??`section-${o+1}`}}),parts:U8}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},vB={DocBody:G8};import{phoneKey as Y8}from"efficient-easel/draw";import{SITE_SIDE as X8}from"efficient-easel/screen/lib/content/length-units";var $be={eyebrow:"\u2014 Label",title:`Section headline *here.*
331
+ *Highlight line*`,body:"Describe this section in a sentence or two."},zbe={text:"Learn more"},Ube={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 K8}from"efficient-shell/format";var kB="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",q8="overlay",V8=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Gp(e){return K8(V8,q8,e)}var Kbe={desktop:40,mobile:45,min:20,max:80,step:5};function qbe(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as Z8}from"efficient-shell/format";var PB=(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(nl.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(nl.sizePhone,t?.phone)}}},J8=e=>Gp(e.layout)==="stacked",TB=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),Kp=e=>ye(e)??100,Q8={textStyle:"heading-1",sizeToken:{...Uo("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},eK=[pe("eyebrow",H("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:U,style:{...Q8,case:e?"upper":"none"},styleFrom:o=>{let t=Tx(o);return PB(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=Tx(e);return PB(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}]}],OB=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)`,oK=()=>({name:"Scroll-Over Text",skip:e=>J8(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",...ti,placement:"left",darken:TB(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Kp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Kp(e.heightMobile),[Vd]:uv}),box:[...J.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>TB(o)],["heightDesktop","sectionHeightValue",e=>Kp(e)],["heightMobile","sectionHeightValuePhone",e=>Kp(e)]],parts:eK,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(gP.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:OB("Button color"),buttonTextColor:OB("Button text color"),...X}}),AB={textStyle:"heading-2",...H("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},tK={textStyle:"body-1",...H("body",16),lineHeight:1.7},FB=e=>({kind:"text",key:"body",props:{...oe,maxWidth:520},style:{...tK,paragraphSpacing:e}}),Vp={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"},rK=(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"}},BB={boxShapePhone:"landscape"},LB="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)",aK=(e,o)=>({[e]:o,[Y8(e)]:o}),nK={textStyle:"heading-2",...H("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},EB=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,...$o("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Vp),...pg(e,100)}),box:[...J,...ce(Vp)],parts:[{kind:"group",name:"Words",props:()=>({...R,justify:"center",gap:28,gapPhone:28,sectionBorder:ri({right:1}),sectionBorderPhone:ri({}),...ti,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:X8}),parts:[pe("eyebrow",H("label",14)),{kind:"text",key:"heading",role:"heading",props:U,style:{...AB,case:"none"},mark:"accentItalic"},FB(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(EB(e).length,1),3),...aK("sectionBorder",ri({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:EB,props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Aa,style:nK},pe("label",{...H("label",13),color:"labels",letterSpacing:.2})]}]}]}]},mI("Picture","imageSrc",BB)],drop:{...X,grayscale:LB,...te}}),qp=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}},lK=e=>e.textAlign==="center"||e.textAlign==="right"?gd[e.textAlign]:"stretch",iK=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),RB=e=>typeof e=="string"&&e.trim()!=="",dK={...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},_B=e=>({...mI("Picture","imageSrc",(o,t)=>({...RB(o.imageSrc)&&cg(o.imageOverlay)>0?{darken:cg(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...BB,sectionBorder:ri(e?{left:1}:{right:1}),...DB(e?"left":"right",os(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:dK,style:{...wt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),DB=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},fK={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...R,justify:"center",align:lK(e),placement:Z8(["left","center","right"],"left",e.textAlign),...rK(e,72),gap:24,gapPhone:24,...RB(e.textBgSrc)?{darken:iK(e),darkenStyle:"even"}:{},...ti,sectionPaddingTop:100,sectionPaddingBottom:100,...DB(t?"right":"left",os(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...pe("eyebrow",H("label",14)),styleFrom:qp},{kind:"text",key:"title",role:"heading",props:U,style:AB,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...qp(e)})},{...FB(24),styleFrom:qp},{kind:"group",name:"Button",props:{...R,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=qp(e);return{...fo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},cK=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Y,...$o("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...re(e,Vp),...pg(e,72)}),box:[...J,...ce(Vp)],parts:[_B(!1),fK,_B(!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:LB,...X,...te}}),NB={IntroBleed:oK(),Manifesto:sK(),Split:cK()};var WB={headPlacement:void 0},MB={top:0,bottom:0,topPhone:0,bottomPhone:0},pK=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...re(e,MB)}),box:[...J,...ce(MB)],parts:[{kind:"core",keep:"rest",props:WB}],drop:{...X,...te}}),HB={top:120,bottom:120,topPhone:60,bottomPhone:60},uK=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...re(e,HB)}),box:[...J,...ce(HB)],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:WB}],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'}}),$B={Form:pK(),SubmitBuild:uK()};import{phoneKey as zB}from"efficient-easel/draw";var jB=1.5,UB={textStyle:"body-1",...H("body",15),lineHeight:jB},mK={...Ro,...H("label",12),letterSpacing:.12,lineHeight:jB},GB=()=>({type:q,props:{...R,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[zB("share")]:"content",[zB("wrap")]:"nowrap",...Co(12,0),sectionBorder:{top:1},name:"Item"},slots:{[Ce]:[{type:q,props:{...R,gap:0,gapPhone:0,name:"Item words"},slots:{[Ce]:[Be("label",{...U,tag:"p"},UB),Be("meta",{...oe,tag:"p"},mK)]}},Be("amount",{...U,tag:"p"},UB)]}});var xK=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...J],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Te]:[GB()]}}],drop:{...X}}),KB={OrderSummary:xK()};import{phoneKey as hK}from"efficient-easel/draw";var Swe={eyebrow:"By the numbers",title:`A picture worth
332
+ *a thousand rows.*`},qB=["eyebrow","title","body","caption"],bwe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var VB=["eyebrow","title","body"],Cwe={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 ZB=()=>({kind:"group",name:"Words",props:{...R,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...R,direction:"row",phoneRow:2,[hK("share")]:"content"},parts:[Jn("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:Sd(16)}]}),JB=e=>(o,t)=>({...Y,sectionAccent:es(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...re(o,vl)}),QB=[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>es(e,t)],...ce(vl)],IK=()=>({name:"Chart",boxProps:JB([42]),box:QB,parts:[ZB(),{kind:"group",name:"Chart",props:{...R,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Zn},pe("caption",{color:"muted",...H("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...qB],drop:{...X,...te}}),YB=e=>e.align==="left",XB={kind:"group",name:"Card",keepEmpty:!0,props:R,parts:[{kind:"core",keep:"rest",props:Zn}]},gK=()=>({name:"Mockup Card",boxProps:JB("equal"),box:QB,parts:[{...XB,when:YB},ZB(),{...XB,when:e=>!YB(e)}],pressKeepsEmpty:[...VB],drop:{...X,...te}}),eL={Chart:IK(),Mockup:gK()};import{phoneKey as SK}from"efficient-easel/draw";function oL(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function tL(e){return Math.max(e*6,30)}var bK=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),ug=e=>oL(bK(e)),wK=e=>Bp({loopDuration:tL(e)}),CK={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,[SK("share")]:"content"},parts:[Jn("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:Sd(16)}]},vK=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:wK(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"]}]}]}]}),kK={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"}}]},PK=[...J.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>es(e,t)],...ce(mc)],TK={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:es(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...re(e,mc)}),box:PK,parts:[CK,{kind:"group",name:"Rows",props:{...R,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>vK(o))},kK],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...te}},rL={Integrations:TK},aL=()=>({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 OK={title:"Back online in",zeroText:"Almost done. Back very soon."},nL=["title"],$we={label:"Countdown",defaultProps:{...OK,endsAt:"",showUnits:!0}};var EK={...pe("title",{...iw(12),color:"muted"}),props:{...U,align:"center"}},_K=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...re(e,dc)}),box:[...J,...ce(dc)],parts:[EK,{kind:"core",keep:"rest",props:Zn}],pressKeepsEmpty:[...nL],drop:{...X,...te}}),AK=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...re(e,uc)}),box:[...J,...ce(uc)],parts:[{kind:"core",keep:"rest",props:Zn}],drop:{...X,...te}}),sL={Countdown:_K(),FeaturedCover:AK()};var lL={top:80,bottom:80,topPhone:60,bottomPhone:60},FK=()=>{let e=kp("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:ai[Ra("FitmentFinder")],...re(o,lL)}),box:[...J,...ce(lL)],parts:[ct("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'}}},iL={FitmentFinder:FK()};var Yp={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},Zwe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var mi={eyebrow:Oe.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},eCe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var dL={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},tCe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var fL={title:`Section heading
334
+ *Highlight line*`},cL=[{label:je.text,href:je.href,variant:"primary"},{label:je.text,href:je.href,variant:"outline"}],nCe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var hr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Oe.viewAll},fCe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:oc,num:hr.num,numStyle:Tl,title:hr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Xp={eyebrow:"\u2014 Label",title:`Section headline
335
+ *Highlight line*`,body:"A sentence or two of supporting copy."},mCe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:il,bodySizeDesktop:il,titleSizeMobile:il,bodySizeMobile:il,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[bn]:0,uppercase:!1}};var BK={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...re(e,hc)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...J,...ce(hc)],parts:[ct("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)"}},uL={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},mL=(e,o)=>o?.variant==="primary",xL=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:mL,variant:"primary",style:{letterSpacing:.3},props:{...fo,...uL,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!mL(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...fo,...uL,...o}}]}),Zp=e=>We(e.title),LK={name:"Call-to-Action Heading",boxProps:e=>({...Y,direction:"row",align:"center",justify:Zp(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...ft(e,"TitleWithButtons")}),box:[...J,...$r("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",...Uo("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",...Zp(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[xL(Zp,{widthFit:"fill",iconPosition:"end"}),xL(e=>!Zp(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 RK(e,o){let t=os(o,{to:wr(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=os(o,{view:"phone",to:wr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:pL,sectionPaddingRight:pL,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var DK={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...re(e,Ic),...RK(e,o)}),box:[...J,...ce(Ic)],parts:[ct("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"}},hL={...R,direction:"row",share:[67],gap:32},IL={...R,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},gL=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),NK={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...ft(e,"ParagraphsA")}),box:[...J,...$r("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...hL,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})]},gL("Stats column",R,{kind:"group",name:"Stats",props:{...IL,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[oi("value","label",{...H("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...hL,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}}]}]},gL("Note column",{...R,justify:"end"},{kind:"group",name:"Founders",props:{...IL,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}},MK={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...re(e,ac)}),box:[...J,"contained",...ce(ac)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...R,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...rr("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:BK,TitleWithButtons:LK,SectionHeader:DK,ParagraphsA:NK,Banner:MK},yL={Prose:()=>({eyebrow:Yp.eyebrow,title:kt(Yp.title),body:Yp.body}),TitleWithButtons:()=>({title:kt(fL.title),buttons:cL.map(e=>({...e}))}),SectionHeader:()=>({num:hr.num,title:kt(hr.title),description:hr.description,linkText:hr.linkText,linkHref:je.href}),ParagraphsA:()=>({eyebrow:mi.eyebrow,lead:Oe.body,foundersHeading:mi.foundersHeading,foundersBody:mi.foundersBody,attribution:mi.attribution}),Banner:()=>({...dL,ctaText:je.text,ctaHref:je.href}),ProcessSteps:()=>({num:hr.num,title:kt(hr.title)}),IntroBleed:()=>({eyebrow:Xp.eyebrow,title:kt(Xp.title),body:Xp.body,ctaText:je.text,ctaHref:je.href})};function Jp(){no(mg),no(DA),no(JA),no(TA),no(mF),no(OF),no($F),no(jF),no(eB),no(fB),no(vB),no(NB),no($B),no(KB),no(iL),no(eL),no(rL),no(sL)}var HK=[{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=>k1(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=>T1(e)},{name:"convertSectionsInPage",chrome:!1,why:"page-only: it turns an old top-level SECTION into its Box, with the site theme off the page's metadata; chrome is a Box group, never one of those sections",run:(e,{metadata:o})=>(Jp(),A1(e,Jl,{theme:nC(o)}))},{name:"capHeroGroups",chrome:!1,why:"page-only: it caps a top-level Hero's slide groups, and a Hero is a page section",run:e=>W0(e)},{name:"oneH1",chrome:!1,why:"page-only: it hands the h1 to the first opener in the PAGE's document order; on a chrome document it would count a second document on its own",run:e=>ZE(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=>XE(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=>VE(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=>G0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>I0(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=>t_(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=>l_(e)}];function WK(e,o,t){let r=e;for(let a of HK)(!t||a.chrome)&&(r=a.run(r,o));return r}function SL(e,o){return WK(e,{metadata:o},!1)}import{useRef as $K}from"react";import{createRenderKeep as zK}from"efficient-easel/render";function bL(){let e=$K(null);return e.current??=zK(),e.current}import{isNode as UK,isNodeList as jK}from"efficient-easel/data";import{hidableText as GK,readHidable as KK}from"efficient-easel/draw";var CL="slotCounts",xg=e=>!KK(e).hidden&&GK(e).trim()!=="",qK=e=>typeof e=="string"&&e.trim()!=="",VK={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>qK(e.src),Text:e=>xg(e.text),Heading:e=>xg(e.text),Eyebrow:e=>xg(e.eyebrow)},YK=["widthFit","width","minWidth"],wL=e=>jK(e);function XK(e){if(Array.isArray(e.content))return wL(e.content)?e.content:null;let o=Object.values(e).filter(wL);return o.length===1?o[0]:null}function ZK(e,o){return[...new Set([db,...Object.values(z(Ow,e)??{})])].some(t=>Wt(o,t)!=="")}function JK(e){let o=e.props??{},t=z(VK,e.type);if(!t||!t(o)||ZK(e.type,o)||ll(o))return!1;let r=o[Kn];if(r!=null&&r!=="")return!1;let a=dp(o);return!YK.some(n=>a[n]!==void 0)}function QK(e){let o=0;for(let t of e)if(!lr(t.props??{})){if(!JK(t))return;o+=1}return o>0?o:void 0}function e7(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!UK(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:XK(l.props);if(typeof i=="string"&&d){let f=QK(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 vL(e,o){return{...e??{},[CL]:e7(o)}}function yve(e){let o=e.editor?.metadata?.[CL],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 r7({config:e,data:o,metadata:t}){let r=SL(o,t),a=bL(),n=M0(e,N0(r.content)),s=Zf(r.content),l=s.length>0?{...t,[D0]:s}:t;return kL(Jf,{children:kL(t7,{config:n,metadata:vL(l,r.content),keep:a,data:r})})}var PL=o7(r7);import{jsx as jo,Fragment as dq,jsxs as bR}from"react/jsx-runtime";import{Suspense as fq,useMemo as cq}from"react";import{jsx as a7}from"react/jsx-runtime";import{createContext as n7,useCallback as s7,useContext as l7,useState as hg}from"react";var TL=n7({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function Ave({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 a7(TL.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var OL=()=>l7(TL);import{jsx as i7,jsxs as d7}from"react/jsx-runtime";import{createContext as f7,useContext as c7}from"react";var EL=f7(!1);function Dve(){return c7(EL)}function _L({grayscale:e,children:o}){let t=e===!0;return d7(EL.Provider,{value:t,children:[Object.entries(M_(e)).map(([r,a])=>i7("style",{children:a},r)),o]})}import{jsx as p7}from"react/jsx-runtime";import{createContext as u7,useContext as m7}from"react";var AL=u7(null);function Wve(){return m7(AL)}function FL({ink:e,children:o}){return p7(AL.Provider,{value:e??null,children:o})}import{parseOption as x7}from"efficient-shell/format";var BL="data-lead-ink",Gve="data-header-ink",h7=["auto","light","dark"],I7="auto";function g7(e){return e.type==="IntroBleed"?Gp(e.props?.layout)!=="stacked":!0}function LL(e){let o=Cf(e);return o&&CP(e)&&g7(o)?"light":null}function Kve(e){return x7(h7,I7,e)}import{useEasel as Eg}from"efficient-easel/easel";import{useEffect as _7}from"react";import{useEaselApi as A7}from"efficient-easel/easel";import{find as y7,walk as RL}from"efficient-easel/data";var S7=()=>"",b7=e=>Xm(Mt([e],S7));function ML(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(b7))])),a=Xm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var w7=()=>({press:[ts(ta),ts($s)],delivery:[gI()]}),C7={},Ig=e=>ML(e,w7,C7),v7=e=>Me(e)===ab?"delivery":"press";function ake(e,o){if(!o||Me(e)===Me(o))return e;let t=Ig(e[Te]),r=v7(e);if(!t||t===r)return e;let a=Gm(e,io),n=r==="delivery"?gI():ts(Me(e)?$s:ta),s=Mt([n],qm(a));return{...e,[Te]:s}}var k7=()=>({cards:[sn(ta),sn($s)],label:[ln(!1),ln(!0)]}),P7={},T7=e=>ML(e,k7,P7);function nke(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=T7(e[Te]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=Gm(e,dw),n=Array.isArray(e.items)&&e.items.some(i=>xo(i?.href)!==void 0),s=r==="label"?ln(n):sn(Me(e)?$s:ta),l=Mt([s],qm(a));return{...e,[Te]:l}}var DL=(e,o)=>II.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function NL(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 O7(e,o){let t=gg(e),r=gg(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||Me(t.props)===Me(r.props))return e;let a=Ig(t.props[Te]);if(!a||a===Ig(r.props[Te]))return e;let n=ye(e.columns);return n===void 0?e:a==="delivery"&&DL(e,La(n))?NL(e,hp(n)):a==="press"&&DL(e,hp(n))?NL(e,La(n)):e}function HL(e){let o=Qp.get(e);o?o.count+=1:Qp.set(e,{count:1,stop:E7(e)});let t=!1;return()=>{let r=Qp.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),Qp.delete(e)))}}var Qp=new WeakMap;function E7(e){let o=e.getState().appState.data;return e.subscribe(()=>{let t=e.getState().appState.data;if(t===o)return;let r=o;if(o=t,t===e.loaded)return;let a=new Map;RL(t,e.config,n=>{if(n.type!==q||!gg(n.props))return;let s=y7(r,e.config,n.props.id);if(!s||s.node===n)return;let l=O7(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>RL(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function WL(){let e=F7();_7(()=>e?HL(e):void 0,[e])}function F7(){try{return A7()}catch{return null}}import{jsx as eu}from"react/jsx-runtime";import{useEffect as B7}from"react";import{armScrollProgress as L7}from"efficient-shell/format";function $L({armed:e,children:o}){return B7(()=>e?L7():void 0,[e]),o}function yg(){return{style:{"--sf-page-width":No}}}function R7({children:e}){return eu("div",{style:yg().style,children:e})}function gke({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return eu("div",{style:{...o?{}:_f(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:eu($L,{armed:!t,children:eu(R7,{children:r})})})}import{jsx as zL,Fragment as D7}from"react/jsx-runtime";import{createContext as jL,useContext as UL}from"react";var GL=jL({}),KL=GL.Provider,qL=jL(void 0),VL=qL.Provider;function wke(e){let{SectionTextParts:o}=UL(GL),t=UL(qL);return o?zL(o,{...e,sizeCaps:t}):zL(D7,{children:e.children})}import{jsx as oq}from"react/jsx-runtime";import{useEffect as tq,useRef as rq}from"react";var YL="data-easel-overlay-portal";function ou(e){return e.setAttribute(YL,"true"),()=>{e.removeAttribute(YL)}}import{jsx as q7}from"react/jsx-runtime";import{useEffect as V7,useRef as fR}from"react";import{usePreviewParts as Y7}from"efficient-easel/draw/client";import{jsx as N7}from"react/jsx-runtime";import{createContext as M7,useContext as H7,useMemo as W7,useState as $7}from"react";var z7={partStyle:null,setPartStyle:()=>{}},XL=M7(z7);function Tke({children:e}){let[o,t]=$7(null),r=W7(()=>({partStyle:o,setPartStyle:t}),[o]);return N7(XL.Provider,{value:r,children:e})}function fs(){return H7(XL)}import{usePreviewDevice as X7}from"efficient-easel/draw/client";import{shownTier as Z7}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as cR,encodePartId as J7}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as Q7}from"efficient-easel/canvas";import{createPreviewSelectionContext as U7}from"efficient-easel/draw/client";var Ma="Scrolling Bar",{Provider:_ke,useSelection:ZL}=U7("selectedHeroId"),Sg="data-sf-hero-ticker";function JL(e){return`${e}::ticker`}function QL(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as Kr}from"efficient-easel/canvas";import{createPreviewSelectionContext as j7}from"efficient-easel/draw/client";var{Provider:Bke,useSelection:eR}=j7("selectedLocationPartId");function tu(e,o,t){return`${e}::${o}::${t}`}function ru(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(`[${Kr}]`)?.getAttribute(Kr)===o}function oR(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(g=>[g.key,xf(g.label)])),n=[],s=new Set;for(let g=0;g<r.length;g+=1){let C=r[g];if(!Cg(C,o))continue;let E=C.getAttribute(pk);if(!E)continue;let A=a.get(E);n.push({element:C,partId:jt(o,E),...A?{label:A}:{}}),s.add(C)}let l=[],i=new Set;for(let g=0;g<r.length;g+=1){let C=r[g];if(!Cg(C,o)||s.has(C))continue;let E=mk(C.textContent??"");if(!E)continue;let A=C.closest(`[${Sx}]`)?.getAttribute(Sx)||null;A&&i.add(A.replace(/\[\d+\]$/u,"")),l.push({element:C,text:E,row:A})}let d=g=>l.filter(C=>C.row===ck(g.key,g.row.index)),f=l.filter(g=>g.row===null),m=g=>g.row&&i.has(g.key)?d(g):i.size?f:l,u=new Map,h=[],I=g=>g.row?`${g.key}.${g.row.rowKey}`:null,S=new Map;for(let g of t){let C=I(g);if(!C||i.has(g.key))continue;let E=S.get(C);E?E.push(g):S.set(C,[g])}let w=new Set;for(let[g,C]of S){if(C.length<2)continue;let E=C.flatMap(b=>b.texts);if(new Set(E).size===E.length)continue;let A=m(C[0]).filter(b=>E.includes(b.text));if(A.length!==C.length)continue;let N=[...C].sort((b,_)=>(b.row?.index??0)-(_.row?.index??0));for(let b=0;b<N.length;b+=1){let _=N[b],y=A[b].element,k={key:_.key,partKey:vn(_.key,_.row),exact:!0},O=u.get(y);O?O.push(k):(u.set(y,[k]),h.push(y))}w.add(g)}let T=new Map;for(let g of t){if(w.has(I(g)??""))continue;let C=vn(g.key,g.row);for(let E of g.texts)for(let A of m(g)){if(A.text!==E)continue;let N=T.get(A.element);N?N.add(C):T.set(A.element,new Set([C]))}}let B=(g,C)=>[...T].some(([E,A])=>E!==g&&!A.has(C)&&E.contains(g));for(let g of t){if(w.has(I(g)??""))continue;let C=vn(g.key,g.row);for(let E of g.texts){let A=[],N=null;for(let y of m(g))y.text===E?B(y.element,C)||A.push(y.element):!A.length&&y.text.includes(E)&&(!N||y.text.length<=N.length)&&(N={element:y.element,length:y.text.length});let b=A.length?A:N?[N.element]:[],_=b.filter(y=>!b.some(k=>k!==y&&y.contains(k)));for(let y of _){let k={key:g.key,partKey:C,exact:A.length>0},O=u.get(y);O?O.push(k):(u.set(y,[k]),h.push(y))}}}let P=[...n];for(let g of h){let C=u.get(g)??[],E=C.some(A=>A.exact)?C.filter(A=>A.exact):C;if(new Set(E.map(A=>A.partKey)).size===1){let A=a.get(E[0].key);P.push({element:g,partId:jt(o,E[0].partKey),...A?{label:A}:{}});continue}new Set(E.map(A=>A.key)).size===1&&P.push({element:g,partId:jt(o,E[0].key)})}return P}function bg(e,o,t){let r=e.querySelectorAll(`[${Ue}]`);for(let n=0;n<r.length;n+=1){let s=r[n];Cg(s,o)&&(s.removeAttribute(Ue),s.removeAttribute(wg))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute(Ue,s),l&&n.setAttribute(wg,l),a.push(n);return a}function aR(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let f=t(),m=f?.getAttribute(Kr)??null;if(!f||!m)return!1;s=m;let u=oR(e,m,o);return a(f,m,bg(e,m,u)),i=n(()=>{let h=oR(e,m,o);G7(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 G7(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function $ke(e,o){let t=e?.closest?.(`[${Ue}],[${Ar}]`),r=t?.getAttribute(Ue)??t?.getAttribute(Ar),a=r?fk(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:rR(t,r),label:tR(t,r)};let n=e?.closest?.(sR.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${Kr}]`)?.getAttribute(Kr)===o?lR(n,o):null;return s?{id:s,element:n,whole:rR(n,s),label:tR(n,s)}:null}function tR(e,o){let t=ru(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=Xc(o);return r?xr[r.part]:QL(o)?Ma:e.getAttribute(wg)??void 0}var nR="data-loc-pick",sR=[Ue,Ar,ql,Sg,nR];function lR(e,o){let t=e.getAttribute(Ue)??e.getAttribute(Ar);if(t)return t;let r=e.getAttribute(ql);if(r)return ka(o,r);if(e.getAttribute(Sg)!==null)return JL(o);let a=e.getAttribute(nR)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?tu(o,Number(a[0]),a[1]):null}function rR(e,o){let t=e.closest?.(`[${Kr}]`),r=t?.getAttribute(Kr);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(sR.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${Kr}]`)!==t)continue;let s=lR(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as iR,playEntrance as K7}from"efficient-shell/format";var vg=new WeakMap;function dR(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=iv(f),u=r.get(d),h=u?Wn.next(u,m,a):null;r.set(d,h?h.seen:Wn.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=Fc(d.element);f&&l.set(f,[...l.get(f)??[],d])}for(let[d,f]of l){let m=I=>Fl(o(I.partKey)??{}),u=Un(f.filter(I=>m(I).entrance));if(u){let I=o(u.partKey)??{};n.push(_c(d,Xs(I,a)));let S=vg.get(d);vg.set(d,u.partKey),(s.get(u.partKey)||S!==void 0&&S!==u.partKey)&&d.hasAttribute(iR)&&K7(d)}else vg.delete(d);let h=d.hasAttribute(iR)?void 0:Un(f.filter(I=>Kt(o(I.partKey)??{},a).effect!=="none"));h&&n.push(Ac(d,Kt(o(h.partKey)??{},a))),f.some(I=>m(I).hover==="lift")&&(Bc(d.ownerDocument),d.setAttribute(ba,""),n.push(()=>d.removeAttribute(ba)))}return()=>n.forEach(d=>d())}function kg(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=wb(a),t??=tx(a)}return{faceRole:o??"body",sizeGroup:t}}function au(e,o={},t=Ib){let r=e.style,a={};for(let i of vx)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=Nk({fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,textAlign:n.textAlign,textTransform:n.textTransform,paddingTop:n.paddingTop},Mk(n.fontFamily,i=>s.getPropertyValue(i),t));for(let i of vx)r[i]=a[i];return l}function pR({needles:e,styles:o,motions:t=Ec,type:r,sizeCaps:a,children:n}){let s=fR(null),{selectedPartId:l}=Y7(),{setPartStyle:i}=fs(),d=Z7(X7()),f=vt(),m=JSON.stringify(e),u=JSON.stringify(o),h=JSON.stringify(t),I=fR(new Map);return V7(()=>{let S=s.current;if(!S)return;let w=[],T=()=>S.parentElement,B=b=>{let _=T();if(!_)return null;let y=new MutationObserver(b);return y.observe(_,{attributes:!0,attributeFilter:[Q7]}),()=>y.disconnect()},P=b=>{let _=new MutationObserver(b);return _.observe(S,{childList:!0,subtree:!0,characterData:!0}),()=>_.disconnect()},g=[];w.push(()=>{for(let b of g)b();g=[]});let C=JSON.parse(m),E=JSON.parse(u),A=JSON.parse(h),N=aR(S,C,T,B,(b,_,y)=>{for(let L of g)L();g=[];let k=[];for(let L of y){let M=L,K=ou(M);K&&g.push(K),M.getAttribute(Ue)===l&&k.push(M)}let O=Hk(_,l,k,L=>Cb(L)!==null||tx(L)!==null);if(O&&l){let L=O,M=cR(l)?.propKey??"",K=al(L)?{}:Dk(Wk(E,pr(r,M)),d,{blockDrawsStyle:sl(r,M),sizeCap:ia(a,M),fonts:f});i({partId:l,...kg(L),base:au(L,K,f),inks:ff(L),...(()=>{let W=al(L);return W?{styleOwner:W}:{}})()})}Cx(y.filter(L=>!al(L)).map(L=>({element:L,partId:L.getAttribute(Ue)??""})),E,L=>au(L,void 0,f),L=>pr(r,L),void 0,d,L=>sl(r,L),L=>ia(a,L),f);let v=[...S.querySelectorAll(`[${uk}="${CSS.escape(_)}"][${mf}]`)];v.length&&Cx(v.map(L=>({element:L,partId:J7(_,L.getAttribute(mf)??"")})),E,void 0,L=>L,void 0,d,void 0,void 0,f),g.push(dR([...y.filter(L=>!al(L)).map(L=>{let M=L,K=cR(M.getAttribute(Ue)??"")?.propKey??"";return{element:M,partKey:pr(r,K)}}),...v.map(L=>({element:L,partKey:L.getAttribute(mf)??""}))],L=>A[L],sv(d),I.current))},P);return()=>{N();for(let b of w)b()}},[m,u,h,l,i,d,r,f]),q7("div",{ref:s,[Fh]:"",style:{display:"contents"},children:n})}import{shownTier as aq}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as nq,usePreviewParts as sq}from"efficient-easel/draw/client";var xi={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)]"},eq={tag:{label:"Tag",follows:"Labels",builtIn:cn(xi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:cn(xi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:cn(xi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:cn(xi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:cn(xi.link),writable:!0}},uR=eq;var SPe=ra,mR={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 xR={SpecTable:mR,FAQ:gw,Collections:uR,Contents:Up};function hR(){return en("efficient.section-text-regions",()=>new Map)}function OPe(e){let o=hR();for(let[t,r]of Object.entries(e)){if(eo(xR,t))throw new Error(`lib/sections/section-text-regions: "${t}" is a builder section; its table is the builder's`);let a=o.get(t);if(a&&a!==r)throw new Error(`lib/sections/section-text-regions: "${t}" already has a table`);o.set(t,r)}}function cs(e){return e?z(xR,e)??hR().get(e)??null:null}function IR({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=rq(null),{selectedPartId:s}=sq(),{setPartStyle:l}=fs(),i=aq(nq()),d=vt(),f=JSON.stringify([t??null,r??null]);return tq(()=>{let m=n.current,u=cs(o);if(!m||!e||!u)return;let h=[],I=Array.from(m.querySelectorAll(`[${ra}]`));for(let S of I){let w=Ym(u,S.getAttribute(ra));if(!w)continue;let T=ou(S);T&&h.push(T);let B=zs(w),P=jt(e,B);S.setAttribute(Ar,P);let g=t?.[B];if(u[w].sized&&$k(g)){let C=zk(g,i,{sizeCap:ia(r,B),fonts:d}),E={fontFamily:S.style.fontFamily,fontSize:S.style.fontSize},A=S.getAttribute(sa);C.fontFamily&&(S.style.fontFamily=C.fontFamily),C.fontSize&&(S.style.fontSize=C.fontSize);let N={fontFamily:C.fontFamily?S.style.fontFamily:void 0,fontSize:C.fontSize?S.style.fontSize:void 0},b=g?.textStyle;kk(b)&&S.setAttribute(sa,b),h.push(()=>{Gk(S.style,E,N),A===null?S.removeAttribute(sa):S.setAttribute(sa,A)})}if(P===s){let C=au(S,jk(g,u[w],i,d),d);l({partId:P,...kg(S),base:C})}}return()=>{for(let S of h)S();for(let S of I)S.removeAttribute(Ar)}},[e,o,s,l,i,f,d]),oq("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as Pg,Fragment as gR}from"react/jsx-runtime";import{createContext as lq,useContext as yR,useMemo as iq}from"react";var Tg=lq(null),SR=e=>e==null||e===""?void 0:String(e);function Og({content:e,children:o}){let t=iq(()=>th(e),[e]);return Pg(Tg.Provider,{value:t,children:o})}function KPe({id:e,children:o}){let t=yR(Tg),r=SR(e);return Pg(gR,{children:o(r?t?.entries.get(r):void 0)})}function qPe({id:e,children:o}){let t=yR(Tg),r=SR(e);return Pg(gR,{children:o(r?t?.numbers.get(r):void 0)})}var pq={SectionTextParts:IR},uq="color-mix(in oklab, var(--bg) 40%, #ffffff)",mq="12vh";function xq({style:e,children:o}){let{appState:t}=Eg(u=>u),r=t.data.content,a=t.data.root;if(vP(r))return jo("div",{className:"sf-themed-content",style:{...e,background:uq,minHeight:"100vh",paddingBottom:mq},children:jo("div",{style:{background:"var(--bg)"},children:jo(Og,{content:r,children:o})})});let n=Ox(r)&&PP(a,r),s=Ox(r)?TP(a,r):null,l=s?{[kP]:s}:null,i=MC(a?.widthChoice),d=i?{[NC]:i}:null,f=n?null:LL(r),m=f?{[BL]:f}:null;return jo("div",{className:`sf-themed-content${n?` ${bP}`:""}`,style:e,...m,...l,...d,children:jo("div",{style:{background:"var(--bg)",minHeight:"100%"},children:jo(Og,{content:r,children:o})})})}function bTe({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:f,children:m}){WL();let u=Eg(I=>I.appState.data.root?.props),h=Eg(I=>JP(I.appState.data.content));return jo(_g,{siteFooterRootProps:u?.kind===oP?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=>bR(dq,{children:[jo(xq,{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}=OL(),h=cq(()=>QP(u,f),[u,f]),{theme:I,fonts:S,sizes:w,cornerRadiusPx:T,cardShadow:B,shadowColor:P,cardGap:g,hoverEffect:C,headingCompression:E,siteWidth:A,siteGutter:N,siteGutterPhone:b,blockGap:_,blockGapPhone:y,siteLengthUnits:k,headingTypography:O,heroBackgroundFollowsWidth:v,photographyGrayscale:L,textStyles:M,wordStyles:K,themeFromDocument:W}=ko(),se=vt(),le=W?e:I,ee=W?o:S,Ie=W?void 0:w,ae=W?r===void 0?Yw[Vw(t)]:Xw(r):T,me=W?{}:k,ge=W?a:E,Ge=W?n:O,Ve=[jT(UT(W?void 0:M),se),GT(rC(Ge).italicStrong)].filter(Boolean).join(`
336
+ `),Eo=yg(),Ye={...Mw(le),...qw(Ie),...aC(Ge),...Eo.style,...l?{}:_f(s)};return bR("div",{className:`sf-theme-surfaces sf-theme-accent ${[FC(W?void 0:b),sP(W?void 0:y)].filter(Boolean).join(" ")}`.trim(),style:{...vb(ee,se),...Tb(W?null:K,se),...Hw(le),...$w(le),...zw(le),...Ld(le),...Zw(ae,me.cornerRadiusUnit),...oC(W?void 0:B,W?void 0:P,W?void 0:C),...xC(W?void 0:A,me.siteWidthUnit),...EC(W?void 0:N,me.siteGutterUnit),...AC(W?void 0:b,me.siteGutterPhoneUnit),...aP(W?void 0:_,me.blockGapUnit),...nP(W?void 0:y,me.blockGapPhoneUnit),...Md(W?void 0:v)},"data-sf-headings":tC(ge),[bC]:Nd(d??h),[ef]:Ev(d??h),"data-sf-card-shadow":W?void 0:Jw(B),"data-sf-card-gap":W?void 0:Qw(g),"data-sf-card-hover":W?void 0:eC(C),onClickCapture:i,children:[Ve?jo("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:Ve}}):null,jo(_L,{grayscale:W?void 0:L,children:jo(KL,{value:pq,children:jo(FL,{ink:Nw(le),children:jo(fq,{fallback:null,children:jo(Z0,{rootProps:d??h,children:m(Ye)})})})})})]})}var wR=e=>{e.target?.closest?.("a")&&e.preventDefault()};var hq=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function Iq(e,o){return e.replace(hq,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function vR(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=Iq(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function kR(e,o){for(let t of Array.from(e)){let r=t.style;r&&vR(r,o);let a=t.cssRules;a&&kR(a,o)}}function CR(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}kR(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))vR(t.style,o)}function PR(e,o){CR(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,CR(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 vq=1440,Fg=800;function OR({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=ul(),[s,l]=Ag(null),[i,d]=Ag(Fg),[f,m]=Ag(null);return gq(()=>{if(!s)return;let u=PR(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]),TR("div",{className:"sf-starter",children:[TR(bq,{padding:"none",className:"sf-starter-picture",children:[Ot("div",{inert:!0,className:"sf-starter-frame",children:Ot(wq,{width:vq,height:i,children:Ot(yq,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:Ot(Xf,{document:s??void 0,children:Ot(_g,{onClickCapture:wR,body:u=>Ot("div",{className:"sf-themed-content",style:u,children:Ot("div",{ref:m,style:{background:"var(--bg)"},children:Ot(PL,{config:o,data:e.layout,metadata:t})})})})})})})}),Ot("div",{className:"sf-starter-add",children:Ot(Sq,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Ot(Cq,{size:"sm",children:e.title})]})}import{useMemo as HZ}from"react";import{sessionRegistry as WZ}from"efficient-easel/screen/lib/session";import{useEaselSession as $Z}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as kq}from"efficient-easel/screen/lib/session";var Pq={general:!0,commerce:!0,service:!0};function Bg(e){let o=e?.sets;return o?Object.fromEntries(fb.map(t=>[t,o.includes(t)])):Pq}function Lg(e=kq()){return Bg(e.blocks)}import{currentEaselSession as $R}from"efficient-easel/screen/lib/session";import{SITE_SIDE as AR}from"efficient-easel/screen/lib/content/length-units";var ER=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],WTe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:ow,separator:tw,scrollDirection:pi}};var _R=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],UTe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function go(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function FR(e,o,t){return go(q,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var nu={Manifesto:(e,o)=>({type:q,props:{...e(q),id:o(q),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[go(q,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:AR,sectionPaddingRight:AR,content:[go("Text",e,o,ar()),go("Text",e,o,br()),go("Text",e,o),go("Stats",e,o)]}),FR(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:q,props:{...e(q),id:o(q),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[go(q,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[go("Text",e,o,ar()),go("Text",e,o,br()),go("Text",e,o),go("ButtonBlock",e,o)]}),FR(e,o,{direction:"column",name:"Image",content:[go("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:q,props:{...e(q),id:o(q),direction:"column",name:"Subscribe",content:[go("Text",e,o,br()),go("Text",e,o),go("Form",e,o)]}}),Ticker:(e,o)=>BR("Scrolling Bar",tc,xa,ER.map(t=>({text:t.text,style:rc,muted:!0})),e,o),SpecStrip:(e,o,t)=>BR("Spec Strip",t?.theme?{...Sl,sectionAccent:Bd(sr(t.theme))}:{...Sl,sectionBorder:{top:1}},ha,_R().map(r=>({text:r.text??"",style:bl,muted:r.tone==="muted"})),e,o)};function BR(e,o,t,r,a,n){return go(q,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=>go("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function LR(e){return z(nu,e)??null}import{isNodeList as Rg}from"efficient-easel/data";var m0e=Object.keys(mg),Tq={Logos:QA,DocMasthead:ZF,DocTabs:lB,Timeline:PF,TimelineTrack:TF},Oq={PaymentBadges:eF,PaymentLogosBlock:oF,Integrations:aL};function su(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]=Rg(n)?n.map(s=>su(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var RR=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function hi(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Ea({type:e,props:{...a(e),...r(),id:n(e)}},o,RR(s));return su(l[t],a,n)}}var Eq={Stats:Aq,Cards:_q};function _q(){let e=Hr("Cards");if(!e)return null;let o=hi("Cards",e,0,PA);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Aq(){let e=Hr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Ea({type:"StatsParagraph",props:{...o("StatsParagraph"),...NA(),id:t("StatsParagraph")}},e,RR(r)),n=a[0],s=Rg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=NR(LI(MA(),"table")),i=s.map(DR),d=su({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function DR(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Rg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(DR)}}:e}var NR=e=>Mt([e],(o,t)=>`${o}-seed-${t}`)[0];function Fq(e,o){if(!_1(e,o))return null;let t=z(Eq,e);if(t)return t();let r=Hr(e);return r?hi(e,r,0,z(Tq,e)??z(yL,e)??z(Oq,e)):null}function Bq(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=su(NR(LI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=Xe(n,l=>ze(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function ps(e,o=Oa){let t=LR(e);return t?Bq(t):Fq(e,o)}import{blockTypesIn as MR}from"efficient-easel/screen/lib/document/block-types-in";var HR=()=>({}),WR=new Map;function Lq(e){let o=WR.get(e);if(o)return o;let t=new Set,r=z(dt,e);if(r)for(let s of r.seeds(HR))for(let l of MR({type:r.childType,props:s}))t.add(l);let a=ps(e);if(a){let s=0;for(let l of MR(a(HR,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return WR.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)&&Lq(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var Rq="block-offer";function Ng(e=$R()){return e.cache(Rq,()=>Dg(un(e)))}function zR(e,o=$R()){let t=Ng(o);return t?t.offers(e):!0}var UR={name:"catalogueLabel",applies:e=>eo(ea,e),draw(e,o){e.label=z(ea,o)}};import{jsx as zg}from"react/jsx-runtime";import{parseBlockWidthFit as Wq,phoneKey as Et,tabletKey as ht}from"efficient-easel/draw";import{jsx as Dq}from"react/jsx-runtime";import{phoneKey as lu}from"efficient-easel/draw";var jR={name:"sectionGroupAllow",applies:e=>If.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Mg=new Set(Object.keys(Ct)),GR={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 qR=Array.from(new Set([...hb.map(e=>e.type),...Mg]));function Hg(e,o){return qR.includes(e)||o?.sitsInBox===!0}var Nq=Array.from(new Set([...qR,...fd,"GalleryItem"])),Mq={not:{context:"parentOffersPositions",is:!1}},Hq={not:{context:"parentTileSlot",is:!1}},KR=[px,lu("gridSpan"),lu("gridRowSpan")],VR={name:"cellWidth",applies:(e,o,t)=>(Nq.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=Do(e.fields??{},a.filter(n=>!KR.includes(n)),Mq),e.fields=Do(e.fields??{},KR,Hq)},draw(e){let o=e.render;e.render=t=>{let r=VC(t.gridSpan),a=XC(t.gridRowSpan),n=JC(t[px]),s=ev(t[lu("gridSpan")]),l=ov(t[lu("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[YC]=String(r)),a!=null&&(d[ZC]=String(a)),s!=null&&(d[tv]=String(s)),l!=null&&(d[rv]=String(l));let f=n!=null?{[QC]:n}:void 0;return Dq(fe,{className:"sf-grid-cell",style:f,...d,children:i})}}};function YR(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 Ii={not:{context:"heldByANode",is:!0}};function iu(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 tn(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var $q=new Set(["Text","Heading"]),zq=new Set(["h1","h2","h3","h4","h5","h6"]);function XR(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&zq.has(o.tag)?!0:Fr(o,"text").textStyle?.startsWith("heading-")===!0}var qr={not:{context:"blockOutsideBox",is:!0}},ZR={all:[qr,{not:{context:"boxSharesWidth",is:!0}}]},JR={all:[qr,{not:{context:"boxSharesWidthPhone",is:!0}}]},QR={all:[qr,{not:{context:"boxSharesWidthTablet",is:!0}}]};function rD(e,o,t){return{any:[{field:ht(e),is:o},{all:[{field:ht(e),set:!1},t??{field:e,is:o}]}]}}function aD(e,o,t){return{any:[{field:Et(e),is:o},{all:[{field:Et(e),set:!1},t??{field:e,is:o}]}]}}var nD={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},Uq=[[["_gBlockSize","minWidth",ht("minWidth"),Et("minWidth"),"maxWidth",ht("maxWidth"),Et("maxWidth")],qr],[["widthFit"],ZR],[[ht("widthFit")],QR],[[Et("widthFit")],JR],[["width"],{all:[ZR,{field:"widthFit",is:"fixed"}]}],[[ht("width")],{all:[QR,rD("widthFit","fixed")]}],[[Et("width")],{all:[JR,aD("widthFit","fixed")]}]],eD=rD("textFit","shrink",nD),oD=[[["_gText","textFit",ht("textFit"),Et("textFit")],qr],[["minFont"],{all:[qr,nD]}],[[ht("minFont")],{all:[qr,eD]}],[[Et("minFont")],{all:[qr,aD("textFit","shrink",eD)]}]],du=(e,o)=>Xt(o.appState,e.props?.id),fu=e=>!!e&&typeof e.type=="string"&&cd(e.type)!==null,Wg=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Tn(e.type,e.props?.direction)==="row",$g=e=>{let o=Wq(e);return o!==void 0&&o!=="fit"},jq={blockOutsideBox:(e,o)=>!fu(du(e,o)),boxSharesWidth:(e,o)=>{let t=du(e,o);return!fu(t)||!Wg(t)?!1:Um({...t.props,direction:"row"})!==""?!0:zm(t.props?.share)!==""&&!$g(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=du(e,o);if(!fu(t)||!Wg(t))return!1;if(nw(t.props?.[ht("columns")])!==""||Um({...t.props,direction:"row"})!=="")return!0;let r=aw(t.props?.[ht("share")])??t.props?.share;return zm(r)!==""&&!$g(e.props?.[ht("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=du(e,o);if(!fu(t)||!Wg(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!sw(r,t.props?.[Et("share")])&&!$g(e.props?.[Et("widthFit")]??e.props?.widthFit)}},Gq=e=>/^_[gds][A-Z]/.test(e);function Kq(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&&!Gq(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function tD(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function qq(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return tD(o,r.indexOf("_dSize")+1,n)}return Vq.has(e)&&r.includes("_gSpacing")?tD(o,r.indexOf("_gSpacing"),t):{...o,...t}}var Vq=new Set(["Text","Heading"]);function Yq(e,o){let{_gText:t,...r}=o;return Kq(e,"_gText",r)??{...e,...o}}function Xq(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",ht("textFit"),Et("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var sD={name:"blockSize",applies:(e,o,t)=>Hg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=$q.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=qq(o,e.fields??{},tt(n,Uq));if(r){let l=tt(a,oD);if(s=Yq(s,l),o==="Text"){let i=tt(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,oD),d=Xq(i),f=e.resolveFields,m=(u,h)=>{let I=f?f(u,h):h.fields,S=w=>XR(o,u?.props??{})?d(w??h.fields):w;return I instanceof Promise?I.then(S):S(I)};e.resolveFields=m}}e.fields=s,Ht(e,{...jq,textWrapsByDefault:l=>!XR(o,l.props??{})})},draw(e,o){Zq(e,o)}};function Zq(e,o){let t=e.render;e.render=r=>{let a=dp(r),n=uI(a),s=t(r),l=n&&uI(a,{atSectionLine:!0});return n===null?s:zg(Jq,{size:n,sectionSize:l??n,atEdge:o===q,canvasAttrs:r.editor?.isEditing?G1(a):lD,inCell:j1(a),fillsPhone:$1(a),widens:K1(a),children:s})}}var lD={};function Jq({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=af(),d=Er(t?"edge":"by-box"),f=d?e:o,m=f.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?zg(gE,{children:l}):l;return zg(_r,{className:[m,u?a:"",h?W1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==lD?{...f.attrs,...r}:f.attrs,children:I})}import{Fragment as fV,jsx as mu}from"react/jsx-runtime";import{jsx as To,Fragment as Kg}from"react/jsx-runtime";import{createContext as us,useContext as _t}from"react";var Qq=new Set(["Flex","Grid"]);function Vr(e){return typeof e=="string"&&Qq.has(e)}var Ha="contentWidth",Ug="full",jg="content";function yi(e){let o=e?.[Ha];return o===Ug?!1:o===jg?!0:void 0}function iD(e,o){return e&&!o}function cu(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!Xv(e)&&!sF(e.scrollDirection)}function gi(e,o){return Vr(e)&&cu(rl(o,!1))?hn({}):hn(o)}function pu(e,o){return typeof e!="string"||!Hd(e)||qs[e]==="rawMarkup"?gi(e,o).background??"full":gi(e,o).background??Wd(o).background}function uu(e){return e!=="full"}function dD(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=Vr(d?.type),u=(l?gi(d?.type,f).content:null)==="content"?!0:s,h=m&&(n.inBox?yi(f)??u:u),I={insideGutter:n.insideGutter||h||m&&cu(rl(f,i)),inBox:n.inBox||m};for(let S of Nt({type:d?.type,props:f})){let w=f[S],T=r(w,I,u,!1,i||aa(d?.type,S));if(T!==void 0)return T}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var eV=" [--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))))]",oV="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",tV="[--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)))]",fD="max-w-[100vw]",rV=`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))] ${fD}`;function cD(e,o=!1){let t={},r=e.pad??{},a=kv({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=vr(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${eV}`:`${oV}${l?` ${s.className}`:""}`,d=o?` ${kC}${e.gutter?` ${PC}`:""}`:"";return{className:`${i} ${tV}${d}`,style:t}}function fOe(e,o=!1){let{className:t,style:r}=cD(e,o);return{className:`${t} ${rV}`,...Object.keys(r).length?{style:r}:{}}}var aV="[--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 nV="--sf-edge-beyond";function pD(e){return`max(0px,calc((${e===null?Ks:`min(${Ks},${e})`} - ${No}) / 2))`}var sV=`${aV} 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))] ${fD}`;function cOe(e){let{className:o,style:t}=cD(e);return{className:`${o} ${sV}`,style:{...t,[nV]:e.beyond??"0px"}}}var Si=us(!1);function wOe(){return _t(Si)}function COe({children:e}){return To(Si.Provider,{value:!0,children:e})}var Gg=us(!1);function qg({children:e}){return To(Gg.Provider,{value:!0,children:e})}var uD=us(null);function Vg({ground:e,children:o}){return To(uD.Provider,{value:e,children:o})}var Yg=us(!1);function lV(){return _t(Yg)}function mD({atTop:e,nested:o}){return To(Kg,{children:lV()?o:e})}var bi=us(void 0);function xD({children:e}){return To(bi.Provider,{value:null,children:e})}function Xg(){return _t(bi)===void 0&&!_t(Yg)&&!_t(Si)}function ms({own:e,followed:o}){return To(Kg,{children:Xg()?e():o()})}var hD=us(null);function ID({value:e,children:o}){return To(hD.Provider,{value:e,children:o})}function gD({draw:e}){return To(Kg,{children:e(_t(hD))})}function vOe(){return _t(bi)??null}function yD({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:w}){let T=_t(Si),B=Pt(),P=B?` ${vr(I?"site":"box").onceFrame}`:"",g=_t(Gg),C=iD(e,T),E=C&&!g,A=nt(),N=!!(l&&E),b=N?u:vo(u??"",A.className)||void 0,_=N||!A.className?i:{...i,...A.attrs},y=s?na(s,E):null,k=y&&B?{root:y.root?{...y.root,className:rt(y.root.className,!0)}:null,outer:y.outer?{...y.outer,className:rt(y.outer.className,!0)}:null}:y,O=k?.root??null,v=l&&!E?l:null,L=d&&!h?B?`${sx} ${CC(I?"site":"box")}`:sx:null,M=[E?`${o}${P}`:t,E?L:null,O?.className,v?Sv:null].filter(Boolean).join(" "),K=iV(h&&E,O||v?{...a,...O?.style,...v}:a),W=_t(bi),se=_t(uD),le=d&&f&&W===void 0?{gutter:C,...s?{pad:s.values}:{},beyond:C&&g?pD(se):"0px",...I&&C?{site:!0}:{}}:null,ee=d?To(Yg.Provider,{value:!0,children:To(bi.Provider,{value:le,children:w})}):w,Ie=C?To(Si.Provider,{value:!0,children:ee}):ee,ae=k?.outer??null,me=_&&Object.keys(_).length>0?_:null,ge=To("div",{...ae?null:me,className:!ae&&b?M?`${M} ${b}`:b:M,style:ae||!m?K:{...K,...m},"data-tab-label":n,...ae?null:S,children:g?To(Gg.Provider,{value:!1,children:C&&!h?To("div",{className:L?`${r}${P} ${L}`:`${r}${P}`,children:Ie}):Ie}):Ie}),Ge=ae?To("div",{...me,className:b?`${ae.className} ${b}`:ae.className,style:m?{...ae.style,...m}:ae.style,...S,children:ge}):ge;return A.scope(l&&E?To("div",{className:vo(Xd,A.className),style:{display:"contents",...l},...A.attrs,children:Ge}):Ge)}function iV(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as dV}from"react/jsx-runtime";function SD({children:e}){return dV(fe,{className:iF,children:e})}function cV({side:e,children:o}){return Xg()?mu(SD,{children:mu(fe,{className:dF(e),children:o})}):mu(fV,{children:o})}var bD={name:"boxJoin",applies:(e,o,t)=>e===q&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=Rp(t.join);return r?mu(cV,{side:r,children:o(t)}):o(t)}}};var wD=(e,o)=>e.fields?.[o]?.type==="slot",pV=(e,o)=>wD(o,Te)||Ed(e).some(t=>wD(o,t)),CD={name:"cardTemplateOnInsert",applies:(e,o,t)=>pV(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?kd(o,n):s==="copy"?vd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as Ci}from"react/jsx-runtime";import{Fragment as Wa,jsx as $e,jsxs as Zg}from"react/jsx-runtime";import{createContext as Jg,useContext as Yr,useId as gV}from"react";import{REPEAT_ATTRIBUTE as yV,REPEAT_INDEX_ATTRIBUTE as SV}from"efficient-easel/draw";import{jsx as UOe}from"react/jsx-runtime";import{createContext as xV,useContext as TD,useMemo as hV}from"react";var vD="title";function kD(e){return`${e}Alt`}function uV(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function PD(e,o){let t={[vD]: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}=uV(n);t[r]=s,t[kD(r)]=l}}return t}function mV(e,o){return typeof o!="string"?o.flatMap(t=>mV(e,t)):e===vf||!OP(e)?[]:o==="image"?Ex(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:kD(t.key)})):o!=="text"?[]:[{key:vD,label:c("Title")},...Ex(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var OD=xV(null);function IV(){return TD(OD)?.record??null}function qOe(e){let o=IV();return o!==null&&o.type===e?o:null}function ED(){let e=TD(OD);return hV(()=>e&&e.record.type!==vf?PD(e.record,e.dateWords):null,[e])}function sEe({props:e,editing:o,children:t}){let r=Yr(wi);return!o&&Qm(e,r?.row)?null:$e(Wa,{children:t})}var hu=Jg(null);function lEe({field:e,children:o}){let t=Yr(hu);return $e(Wa,{children:o(t&&t.field===e?t.id:void 0)})}function bV(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Qm({[on]:r},o)))?.field??""}var wi=Jg(null),xu=Jg(null),wV={label:"text-[length:var(--size-label,12px)]"},CV=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${wV.label} text-fg-dim`;function iEe({name:e,label:o,editing:t}){let r=Yr(xu)?.(e),a=tf()!=="";return r!=null&&r!==!1?a?$e(fe,{className:"contents",children:r}):$e(Wa,{children:r}):t?$e(fe,{className:CV,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function dEe(){return Yr(wi)}function Qg({type:e,props:o,children:t}){let r=Yr(wi),a=ED(),n=r?.row??a;return $e(Wa,{children:t(Aw(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function vV({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=gV(),{press:l,disabled:i}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return Zg("div",{...e,id:s,className:t&&!i?`${wh} ${EE}`:wh,children:[$e("button",{type:"button",[FE]:"",className:i?RE:LE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),$e(hu.Provider,{value:f,children:n})]})}function fEe({ownerId:e,ownerType:o,slot:t=Te,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:w,children:T}){let B=Yr(wi),P=Yr(hu),g=Yr(xu);if(!r||(r.blockCount??0)<=0)return $e(Wa,{children:u});let C=B!==null,E=kw(o),A=m??B?.previewHover,N=r.blockCount===1?$e(Gv,{children:$e(r,{className:Dv})}):$e(r,{}),b=new Set,_=(k,O)=>{if(!S)return O;let v=S(k,O);for(;b.has(v);)v=`${v}#${O}`;return b.add(v),v},y=a.map((k,O)=>{let v=l?.[O],L={row:k,index:O,ownerType:o,slot:t,item:n?.[O],nested:C,...s?{fields:s}:null,...v?{state:v}:null,...E?{linesBetween:E}:null,...A?{previewHover:A}:null},M=qh(v)?Zg(Wa,{children:[N,i==="under"?$e("span",{"aria-hidden":"true",className:kE}):Kh(v)?Zg("span",{"aria-hidden":"true",className:PE,children:[$e("span",{className:TE}),$e("span",{className:OE})]}):$e("span",{"aria-hidden":"true",className:vE})]}):N,K={[yV]:`${e}:${t}`,[SV]:O,...typeof h=="function"?h(L):h},W=d?.[O],se=_E(v,i),le=W?$e(vV,{attrs:{...K,...se},selected:v?.selected===!0,hover:i!=="under",action:W,titleField:bV(f,k),children:M}):P?$e("div",{...K,...se,children:$e(hu.Provider,{value:null,children:M})}):$e("div",{...K,...se,children:M}),ee=I?I(le,L):le;return $e(wi.Provider,{value:L,children:w?$e(xu.Provider,{value:Ie=>w(L,Ie),children:ee}):g?$e(xu.Provider,{value:null,children:ee}):ee},_(L,O))});return $e(Wa,{children:T(y)})}var _D={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==io&&e!==pn,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.partSizeCaps,s=r.render,l=t.inspector?.PartAnchors,i=(d,f)=>Ik(a(),f,m=>Ew(o,d,m));r.render=d=>{let f=_k(d),m=zO(d);return d.editor?.isEditing&&l?Ci(Qg,{type:o,props:d,children:u=>Ci(l,{needles:i(d,u),styles:f,motions:m,type:o,sizeCaps:n,children:Ci(VL,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(m).length?s(d):Ci(Qg,{type:o,props:d,children:u=>Ci(YO,{needles:i(d,u),styles:f,motions:m,type:o,atEdge:o===q,sizeCaps:n,children:s(d)})})}}};import{jsx as AD}from"react/jsx-runtime";var FD={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=yv(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?AD(fe,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},ey=["CollectionCard"],BD={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=GP(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?AD(fe,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var LD={name:"emptyHeadings",applies:()=>!0,panel(e,o,t){let r=t.dropEmptyHeadings,a=e.resolveFields;e.resolveFields=a?(n,s)=>{let l=a(n,s);return l instanceof Promise?l.then(i=>r(i??s.fields)):r(l??s.fields)}:(n,s)=>r(s.fields)}};var RD={name:"showWhenRows",applies:()=>!0,panel(e,o,t){let r=t.rowsShownForNode,a=e.showWhenFacts??{},n=e.resolveFields;e.resolveFields=n?(s,l)=>{let i=n(s,l);return i instanceof Promise?i.then(d=>r(d??l.fields,s,l,a)):r(i??l.fields,s,l,a)}:(s,l)=>r(l.fields,s,l,a)}};import{jsx as DD,jsxs as kV}from"react/jsx-runtime";var PV="Flex",ND=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,MD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>ND(t,Wl)?DD(fe,{className:Hc,children:t[Wl]==="empty"?null:o(t)}):o(t)}},HD={name:"headBox",applies:(e,o,t)=>e===PV&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>ND(t,Hl)?kV(fe,{className:Wc,children:[DD($c,{}),o(t)]}):o(t)}};import{createElement as TV}from"react";var WD={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===q?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(lr(n))return null;let s=ll(n),l=Uv(s,Jk(n),{sectionClassName:ll(n,{atSectionLine:!0}),line:r});return TV(Wv.Provider,{value:l},a(n))}}};import{jsx as AV}from"react/jsx-runtime";import{createContext as zD,createElement as $D,useContext as OV}from"react";var UD=zD(null),EV=zD(!1),HEe=UD.Provider;function _V(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function jD({name:e,editing:o,children:t}){let r=OV(UD);return o||_V(e,r?.selected??null,r?.known??[])?t:$D("div",{hidden:!0,style:{display:"none"}},$D(EV.Provider,{value:!0},t))}var FV="Flex",GD={name:"showFor",applies:(e,o,t)=>e===FV&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=QE(t[Kn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return AV(jD,{name:r,editing:a,children:o(t)})}}};var KD=Pf.mediaFields,BV=e=>NP(e)?e.src:e;function LV(e,o){let t=o;for(let r of z(KD,e)??[])t=MP(t,r,BV);return t}var qD={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(z(KD,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(LV(o,r))}};import{jsx as vi,Fragment as VD,jsxs as YD}from"react/jsx-runtime";var RV="!grow-0 !shrink-0 !basis-0",DV=["[.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(" "),NV="flex flex-col w-full min-w-0 [&>*]:grow";function XD({anchor:e}){let o=fa(e),t=Er(),r=tf();return o?vi("span",{id:o,className:vo(t?`sf-section-anchor ${RV} ${DV}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function MV({anchor:e,copiesInBox:o,children:t}){let r=af()?.columnsRow===!0,a=jv(),n=fa(e)!=="";return o?vi(VD,{children:t}):r&&!a&&n?YD(fe,{className:NV,children:[vi(XD,{anchor:e}),t]}):YD(VD,{children:[vi(XD,{anchor:e}),t]})}var ZD={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=>vi(MV,{anchor:r.anchor,copiesInBox:Jo(o,r),children:t(r)})}};import{jsx as HV}from"react/jsx-runtime";var JD=Object.fromEntries(Gb.map(e=>[e,"picture"])),WV={[q]:"box",Ticker:"marquee",...Object.fromEntries(xd.map(e=>[e,"cards"])),...JD},QD=(e,o)=>!Gd.has(e)&&!!o&&typeof o.render=="function";function eN(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function oN(e,o){let t=e,r=t.render;t.render=a=>{let n=Sn(a);return!n||Jo(o,a)?r(a):HV(Pc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===q,children:r(a)})}}var tN={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&QD(e,t),panel:(e,o,t)=>eN(e,z(WV,o)??"section",t,o),draw:(e,o)=>oN(e,o)},rN={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&QD(e,t),panel:(e,o,t)=>eN(e,z(JD,o)??"block",t,o),draw:(e,o)=>oN(e,o)};import{jsx as $V}from"react/jsx-runtime";var aN=(e,o)=>!Gd.has(e)&&!!o&&typeof o.render=="function";function zV(e){let o=Oh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function nN(e,o){let t=e,r=t.render,a=zV(o),n=e.drawsPictures===!0;t.render=s=>{let l=zn(s);return!l||Jo(o,s)?r(s):$V(Vc,{views:l,...a?{origins:WO(s,a)}:{},takesViewHide:!0,atEdge:o===q,zoomInside:n?"picture":"layer",children:r(s)})}}var sN={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&aN(e,t),draw:(e,o)=>nN(e,o)},lN={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&aN(e,t),draw:(e,o)=>nN(e,o)};import{jsx as UV}from"react/jsx-runtime";import{createElement as jV}from"react";var oy=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function GV(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===q}var ty={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!Rv.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=>GV(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(Jo(o,r))return t(r);let a=Hv(r);return a?UV(_r,{className:a.className,style:a.style,...o===q?{attrs:Qb}:null,children:t(r)}):t(r)}}},iN={name:"sectionHeightFillRoot",applies:ty.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Jo(o,r)?null:zv(Mv(r),Nv(r).join(" "));return jV($v.Provider,{value:a},t(r))}}};import{jsx as Iu}from"react/jsx-runtime";import{PIN_ATTR as dN,PIN_FRAME_ATTR as KV}from"efficient-shell/format";var cN=uN("sectionSticky",(e,o,t)=>o.isSection(e)&&!hv.has(e)&&!!t&&typeof t.render=="function",!0),pN=uN("cardSticky",(e,o,t)=>ey.includes(e)&&!!t&&typeof t.render=="function",!1);function uN(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=mx.has(a);r.fields=VV(r.fields??{},tt(n.stickFields({intro:s,screens:t,above:t}),YV(s))),t&&Ht(r,{heldByANode:iu})},draw(r,a){let n=r.render,s=mx.has(a);r.render=l=>{let i=xx(l,{atScreenTop:s,above:t});if(!i)return n(l);let d=m=>{let u=Iu(sf,{children:n(l)});return Iu(fe,{...m.attrs,style:m.style,children:m.attrs[dN]===""?Iu("div",{[KV]:"",children:u}):u})},f=t?xx(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[dN]!==""?d(i):Iu(ms,{own:()=>d(f),followed:()=>d(i)})}}}}var fN=[bt,ls],qV="_gStick";function VV(e,o){let t=Object.keys(e),r=e[$n];if(!r){let T=t.findIndex(B=>fN.includes(B));return T<0?{...e,...o}:Object.fromEntries([...t.slice(0,T).map(B=>[B,e[B]]),...Object.entries(o),...t.slice(T).map(B=>[B,e[B]])])}let{[qV]:a,...n}=o,s=T=>T.startsWith(bn),l=Object.entries(n).filter(([T])=>!s(T)),i=Object.entries(n).filter(([T])=>s(T)),d=[r.dot,a?.dot].filter(T=>!!T),f=t.indexOf($n),m=t.findIndex((T,B)=>B>f&&fN.includes(T)),u=m<0?t.length:m,h=t.indexOf(Tc),I=h>f&&h<u?h:u,S=T=>[T,T===$n?{...r,dot:{any:d}}:e[T]],w=[...t.slice(0,I).map(S),...l,...t.slice(I,u).map(S),...i,...t.slice(u).map(S)];return Object.fromEntries(w)}function YV(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},Iv]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,Ii,{not:{field:Qs,is:!0}}]}),[n,s,l]=pv;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],nr(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],nr(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(nr(["stickTopTablet","stickTop"],o,r))],[[l],a(nr(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Vd],Yd],[[Qs],Yd],[[mv],a(Yd)]]}import{jsx as XV}from"react/jsx-runtime";var mN={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(bc.has(o))return;let t=e.render;e.render=r=>{let a=Cv(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,wv(r)),n=t(r);return a?XV(fe,{className:Xd,style:{display:"contents",...a},children:n}):n}}};import{jsx as ry}from"react/jsx-runtime";var xN={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!fC.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=ax.has(o);e.fields={...e.fields,...n?r(Rd,a):r()}},draw(e,o){let t=ax.has(o),r=e.render;e.render=a=>{let n=pC(t?{...a,sectionAccent:Rd(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>ry(_r,{className:n.className,style:d,children:s}),i=n.style;return Jo(o,a)?ry("div",{className:n.className,style:{...i,display:"contents"},children:s}):pu(o,a)!=="content"?l(i):ry(ms,{own:()=>l({...i,...Gs(No)}),followed:()=>l(i)})}}},hN={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(Rd,a)})}};import{jsx as qe}from"react/jsx-runtime";var IN=null;function ay(e){IN=e}function gN(){return IN}import{jsx as ZV}from"react/jsx-runtime";var JV="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",yN=vr("box").frame,ki=`${JV} ${yN}`,QV=vr("site").frame,e9=vr("none").frame;function r1e(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?e9:o==="site"?QV:yN}var o9="mx-auto w-full max-w-[1280px] px-[60px]",t9="max-[960px]:px-6",a1e=`${o9} ${t9}`;function n1e({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return ZV(yD,{contained:e,framedClass:`${ki} ${o}`,fillClass:`${a} ${o}`,columnClass:ki,style:t,pad:r,part:n,children:s})}var xs="--sf-sw-site",r9="--sf-sw-content",a9="--sf-bg-cap",n9="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",bN="contents view-wide:[--sf-site-width:100vw]",sy=({held:e},o,t)=>e?t:qe(fe,{className:o,children:t}),s9=`contents view-wide:[--sf-site-width:100vw] ${kB} view-wide:[--sf-site-gutter:var(--intro-edge)]`,ly=(e,o,t)=>o==="content"?`min(${mn(e,t)},var(${xs}))`:mn(e,t);function Pi({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Ks:null:o===null?null:ly(o,r,t)}function Ti(e,o){return o===null?e:qe(fe,{className:"contents",style:{[xs]:No},children:qe(fe,{className:n9,style:{[r9]:o},children:e})})}var l9="--sf-content-cap",i9="contents max-view-wide:[--sf-content-cap:none]";function d9({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?ly(o,r,t):r==="content"?null:`var(${xs})`}function f9(e,o){return o===null?e:qe(fe,{className:"contents",style:{[xs]:No},children:qe(fe,{className:i9,style:{[l9]:o},children:e})})}var wN=`var(${xs},${No})`,Xr=(e,o,t="")=>e==="content"?qe(fe,{className:t||void 0,style:Gs(No),children:qe(Vg,{ground:wN,children:o})}):o;function CN(e,o,t,r,a){if(ny(t))return Xr(r,sy(t,bN,qe(qg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Xr(r,e({...o,contained:!1}),a);let n=Pi(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Xr(r,Ti(qe(qg,{children:e({...o,contained:!0})}),n),a)}function c9(e,o,t,r,a){if(t==="hero"){let l=Ti(e(o),Pi(r,r.band));return r.band==="full"?qe(fe,{style:{[LC]:"none",[RC]:"initial",[DC]:"initial"},children:l}):r.band==="content"?qe(fe,{style:Md(!0),children:l}):l}let n=r.band??"full",s=Tr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return Xr(n,e(o),s);let l=r.contentMax===null?No:ly(r.contentMax,n,r.contentMaxUnit);return qe(fe,{className:"contents",style:{[xs]:No},children:Xr(n,qe(fe,{className:s||void 0,style:Gs(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=ny(r)?sy(r,s9,e({...o,fullWidth:!1})):Ti(e({...o,fullWidth:l}),l?null:Pi(r,n));return n==="content"?qe(fe,{className:"contents",style:{[a9]:No},children:i}):i}switch(t){case"both":return Xr(n,f9(e(o),d9(r,n)),s);case"contained":return CN(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,bN,e({...o,widthMode:i})):Ti(e({...o,widthMode:i}),r.content==="full"?null:Pi(r,n));return t==="productGrid"&&!r.own?n==="content"?qe(ec,{className:s?`${ki} ${s}`:ki,children:f=>qe(fe,{className:f,children:d})}):d:Xr(n,d,s)}default:return Xr(n,Ti(e(o),Pi(r,n)),s)}}function SN(e,o,t,r,a){let n=a===q?"edge":"by-box",s=l=>c9(e,o,t,r,l);return n==="edge"?s(!0):Tr(o)===Tr(o,{atSectionLine:!0})?s(!1):qe(rf,{line:n,draw:s})}function p9(e,o){let t=z(qs,o);if(!t)return;let r=e.render;e.render=a=>{let n=Wd(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):qe(gD,{draw:I=>I?.background==="content"?qe(Vg,{ground:wN,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,w=SN(r,a,t,S,o);if(!Vr(o))return w;let T=yi(a),B=T===void 0?S.content:T?"content":"full";return B===S.content?w:qe(mD,{atTop:w,nested:CN(r,a,{...S,content:B,own:!1},S.band??"full",Tr(a))})},d=gi(o,a);if(!WC(d))return l();let f=t==="rawMarkup",m=pu(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 qe(ms,{own:()=>qe(ID,{value:{background:h.band,content:h.content},children:SN(r,a,t,h,o)}),followed:l})}}var u9={all:[Ii,{not:{context:"runsEdgeToEdge",is:!0}}]},vN={name:"sectionWidth",applies:(e,o,t)=>Hd(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:z(qs,o)==="rawMarkup"}),a=Vr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Vr(o)?TN(o,e,n,[Ha]):n;Ht(e,{heldByANode:iu}),Vr(o)&&Ht(e,{runsEdgeToEdge:(l,i)=>cu(rl(l.props??{},Bw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Do(s,[Ao.background,Ao.content],Vr(o)?u9:Ii)},draw(e,o){p9(e,o)}};function m9(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 x9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),kN={name:"containedWidth",applies:(e,o,t)=>x9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=TN(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=lx(n?.props??{},"page"),d=f=>m9(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}=lx(t,"page");return o({...t,contained:r!=="full"})}}},h9={not:{context:"inHeroGroupRow",is:!0}},PN={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Do(o.fields??{},["align"],h9),Ht(o,{inHeroGroupRow:(t,r)=>{let a=Xt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Tn("HeroGroup",a.props?.direction)==="row"}})}};function I9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var g9={any:[]},y9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},S9={not:{context:"widthCappedByParent",is:!0}};function TN(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Do(t,["_gWidth",...r],g9);if(I9(t)){let a=(n,s)=>dD(s.appState?.data?.content,n.props?.id,uu(gN()));return Ht(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Do(t,r,y9)}return Ht(o,{widthCappedByParent:(a,n)=>"parent"in n?xw(n.parent):YR({props:a.props??{}},n)}),Do(t,r,S9)}var b9=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"]),ON={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(b9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},w9=new Set(["HeroSlide","HeroGroup"]),EN={name:"blockGroups",applies:(e,o,t)=>w9.has(e)||!o.isSection(e)&&Lp 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 C9=new Set(["Flex","Grid"]),_N=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),v9=(e,o)=>e.fields?.[o]?.ownPictures===!0,k9=["blockCount","blockIds"],P9=new WeakMap,T9=new WeakMap;function O9(e,o){let t=o?T9:P9,r=t.get(e);if(r)return r;let a=e,n=s=>iy(xD,{children:iy(sf,{ownPictures:o,children:iy(a,{...s})})});Object.assign(n,e);for(let s of k9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var AN={name:"slotsStartAfresh",applies:(e,o,t)=>!C9.has(e)&&typeof t?.render=="function"&&_N(t).length>0,draw(e){let o=_N(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=O9(s,v9(e,n)))}return t(a)}}};var E9=new Set(["Form","Stats","Logos"]);function FN(){return[...E9]}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"&&!If.includes(d)),s=new Set([...o,...fd,...FN()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!Td(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var _9=[AN,qD,MD,jR,GR,hO,FD,mN,BD,yO,rN,lN,VR,vN,kN,PN,ty,Y0,ZD,xN,tN,sN,cN,pN,bD,hN,sD,ON,EN,RD,LD,_D,HD,GD,iN,WD,UR,CD];function BN(e,o,t){let r=o;for(let a of _9)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 A9,DurationIcon as F9}from"efficient-easel/icons";import{MOTION_TIMING as LN}from"efficient-shell/format";import{useSelectedHost as B9}from"efficient-easel/easel";function hs(e){let{min:o,max:t,step:r,default:a}=LN[e].duration;return Lr("Duration",fy(F9,{}),o,t,r,a,"s")}function Is(e){let{min:o,max:t,step:r,default:a}=LN[e].delay;return Lr("Delay",fy(A9,{}),o,t,r,a,"s")}function gs(e,o){let t=e.render,r=a=>{let n=B9();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>fy(r,{...a})}}function gu({readsSpeed:e}){return gs(hs("loop"),(o,t)=>Bp({loopDuration:o,speed:e?t?.speed:void 0}))}function yu(){return gs(Is("loop"),e=>lF({loopDelay:e}))}import{jsx as co}from"react/jsx-runtime";import{DirectionDownIcon as L9,DirectionIcon as R9,DirectionLeftIcon as D9,DirectionRightIcon as N9,DirectionUpIcon as M9,EntranceBounceIcon as H9,EntranceFadeIcon as W9,EntranceFlipIcon as $9,EntranceGlideIcon as z9,EntranceRevealIcon as U9,EntranceRiseIcon as j9,EntranceScaleIcon as G9,EntranceSpinIcon as K9,NoSymbolIcon as q9}from"efficient-easel/icons";import{NoControlMark as V9,noControlField as Y9}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as X9,group as Z9}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as J9,ENTRANCE_FROM_DEFAULT as DN,ENTRANCE_KINDS as NN,ENTRANCE_KINDS_WITH_FROM as Q9,entranceAttrs as eY,playEntrance as oY,readEntrance as tY}from"efficient-shell/format";var rY={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},aY={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},nY={top:()=>co(L9,{}),bottom:()=>co(M9,{}),left:()=>co(N9,{}),right:()=>co(D9,{})},MN="Entrance",py=NN.filter(e=>e!=="none"),HN=e=>({any:[{field:Xo.kind,in:e},{all:[{field:Xo.kind,set:!1},{field:Ys,in:e}]}]}),RN=(e,o)=>nr(at.slice(0,at.indexOf(e)+1).reverse().map(t=>Yo(Xo.kind,t)),t=>({field:t,set:!0}),t=>t===Xo.kind?HN(o):{field:t,in:o}),sY={any:[HN(py),...at.slice(1).map(e=>({field:Yo(Xo.kind,e),in:py}))]},lY=at.flatMap(e=>[[[Yo(Xo.from,e)],RN(e,Q9)],[[Yo(Xo.duration,e),Yo(Xo.delay,e)],RN(e,py)]]),iY={none:()=>co(q9,{}),fade:()=>co(W9,{}),rise:()=>co(j9,{}),scale:()=>co(G9,{}),glide:()=>co(z9,{}),bounce:()=>co(H9,{}),flip:()=>co($9,{}),reveal:()=>co(U9,{}),spin:()=>co(K9,{})},WN="data-entrance-tile";function dY({kind:e}){let{attrs:o}=eY(tY(e,DN));return co("span",{className:"sf-entrance-stage",[WN]:e,children:co("i",{...o,children:iY[e]()})})}var fY=(e,o)=>{let t=e.querySelector(`[${WN}="${o}"] > i`);t&&oY(t)},cY="Effect",pY=()=>Df(Xo.kind,{label:MN,tileWord:cY,values:NN,fallback:"none",word:e=>rY[e],picture:e=>co(dY,{kind:e}),read:(e,o)=>Xs(e,o).kind,preview:fY}),cy=(e,o)=>pl(Xo[e],o,(t,r)=>Xs(t,r)[e]),uY=J9.map(e=>({label:aY[e],value:e,picture:nY[e]()}));function At(){let e={[Lp]:Z9(MN,{dot:sY}),...pY(),[Ys]:Y9({type:"custom",render:()=>co(V9,{})},"always"),_cEntrance:X9(),...cy("from",On("From",co(R9,{}),uY,DN)),...cy("duration",hs("entrance")),...cy("delay",Is("entrance"))};return tt(e,lY)}import{jsx as Go}from"react/jsx-runtime";import{EntranceRevealIcon as mY,NoSymbolIcon as xY,PercentIcon as $N,ScrollFadeInIcon as hY,ScrollFadeOutIcon as IY,ScrollMoveDownIcon as gY,ScrollMoveUpIcon as yY,DurationIcon as SY,ScrollExpandIcon as bY,ScrollParallaxIcon as wY,ScrollZoomInIcon as CY,ScrollZoomOutIcon as vY,ZoomInIcon as kY}from"efficient-easel/icons";import{customize as PY,group as TY}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EASES as OY,SCROLL_EFFECTS as UN,SCROLL_EFFECTS_WITH_ZOOM as EY,SCROLL_END as _Y,SCROLL_START as AY,SCROLL_ZOOM as FY}from"efficient-shell/format";var jN="Scroll",GN={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"},BY={linear:"Linear",smooth:"Smooth",arrive:"Ease out"},KN={none:()=>Go(xY,{}),"zoom-in":()=>Go(CY,{}),"zoom-out":()=>Go(vY,{}),"fade-in":()=>Go(hY,{}),"fade-out":()=>Go(IY,{}),"move-up":()=>Go(yY,{}),"move-down":()=>Go(gY,{}),reveal:()=>Go(mY,{}),parallax:()=>Go(wY,{}),expand:()=>Go(bY,{})},LY=UN.filter(e=>eo(GN,e)&&eo(KN,e)),RY="Effect",qN=UN.filter(e=>e!=="none"),zN=(e,o)=>nr(at.slice(0,at.indexOf(e)+1).reverse().map(t=>Yo(oo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),DY={any:at.map(e=>({field:Yo(oo.effect,e),in:qN}))},NY=at.flatMap(e=>[[[Yo(oo.zoom,e)],zN(e,EY)],[[Yo(oo.start,e),Yo(oo.end,e),Yo(oo.ease,e)],zN(e,qN)]]),MY=()=>Df(oo.effect,{label:jN,tileWord:RY,values:LY,fallback:"none",word:e=>GN[e],picture:e=>KN[e](),read:(e,o)=>Kt(e,o).effect}),uy=(e,o,t,r,a)=>pl(e,Lr(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Kt(n,s)[o]),HY=()=>pl(oo.ease,Of("Speed",Go(SY,{}),OY.map(e=>({label:BY[e],value:e})),"linear"),(e,o)=>Kt(e,o).ease);function $a(){let e={[$n]:TY(jN,{dot:DY}),...MY(),[Tc]:PY(),...uy(oo.zoom,"zoom","Zoom",Go(kY,{}),FY),...uy(oo.start,"start","Start",Go($N,{}),AY),...uy(oo.end,"end","End",Go($N,{}),_Y),...HY()};return tt(e,NY)}import{jsx as Fo}from"react/jsx-runtime";import{AccentIcon as WY,ContrastIcon as $Y,EyeIcon as zY,ExpandIcon as UY,FinishIcon as jY,ImagesIcon as GY,NoSymbolIcon as YN,HoverLiftIcon as KY,HoverNextImageIcon as qY,HoverRotateIcon as VY,HoverZoomIcon as XN,OpacityIcon as YY}from"efficient-easel/icons";import{customize as XY,describedAs as ZN,group as ZY}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as JN}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as yo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as JY,noControlField as QY}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Su=e=>yo("desktop",ZY("Hover",{dot:e})),QN=()=>yo("desktop",XY()),eX="What this does when a shopper points at it, or taps it on a phone.",oX="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",tX="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.",rX="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.",aX="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",nX="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.",sX="Which of the product's pictures the card shows.",lX="Same finish shows the photos of the finish the card shows, else the first group.",iX="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",dX={none:()=>Fo(YN,{}),nextImage:()=>Fo(qY,{}),rotate:()=>Fo(VY,{}),zoom:()=>Fo(XN,{}),lift:()=>Fo(KY,{}),mono:()=>Fo($Y,{})};function my(e,o){let t=JN({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(Em[r]),picture:dX[r]()})),fallback:o});return ZN(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Em[r]}))})}function eM(){return{[bt]:Su({field:ot,in:Bm.filter(e=>e!=="none")}),[ot]:yo("desktop",{...my(Bm,"none"),description:eX})}}function oM(e){let o=Ub(e),t=Id(),r=VP(Lb);return{[bt]:Su({any:[o,t]}),[Ke.kind]:yo("desktop",{...gs(my(Ab,e),(a,n)=>$b(n??{},e)),description:nX}),...xy(t),[Fb]:QY({type:"custom",render:()=>Fo(JY,{})},"always"),_cHover:QN(),[Ke.angle]:yo("desktop",ro(gs(r,a=>zb(a)),o)),[Ke.duration]:yo("desktop",ro(hs("hover"),o)),[Ke.delay]:yo("desktop",ro(Is("hover"),o))}}function xy(e){let o=Of("Type",Fo(GY,{}),Rb.map(a=>({value:a,label:Db[a]})),hd.kind),t=On("Group",Fo(jY,{}),Nb.map(a=>({value:a,label:Mb[a]})),hd.group),r=On("Covers",Fo(UY,{}),Hb.map(a=>({value:a,label:Wb[a]})),hd.cover);return{[Ke.mediaKind]:yo("desktop",ro({...o,description:sX},e)),[Ke.mediaGroup]:yo("desktop",ro({...t,description:lX},e)),[Ke.cover]:yo("desktop",ro({...r,description:iX},e))}}function hy(e,o="",t=Mm.includes(o)){let r=Hm(e),a=Xb(e);return{[bt]:Su(r),[Ke.kind]:Iy(jb,e,oX),...Mm.includes(o)?xy(Id()):{},_cHover:QN(),...t?tM():{},[Ke.duration]:yo("desktop",ro(hs("hover"),a)),[Ke.delay]:yo("desktop",ro(Is("hover"),a))}}function tM(e=!1){let o=a=>e?a:ro(a,Yb()),t=Lr("Zoom",Fo(XN,{}),nn.min,nn.max,nn.step,nn.min,nn.unit),r=Lr("Darken on hover",Fo(YY,{}),Cn.min,Cn.max,Cn.step,Cn.fallback,Cn.unit);return{[Rm.zoom]:yo("desktop",o(t)),[Rm.darken]:yo("desktop",o(r))}}function Iy(e,o,t){let r=yo("desktop",{...gs(my(e,o),a=>qb({[ot]:a},o,e)),description:t});return Object.assign(r,{[rM]:o})}var rM="sfPictureResting",VN=new WeakMap;function nFe(e,o,t){let r=e[Ke.kind],a=r?.[rM];if(!r||!a)return e;let n=o.props?.[ot]==="nextImage",s=n?null:Ad(t.appState,o.props?.id);if(!n&&!xd.includes(String(s?.type??"")))return e;let l=VN.get(e);return l||(l={...e,[Ke.kind]:Iy(Lm,a,tX)},VN.set(e,l)),l}var fX="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.",cX={none:()=>Fo(YN,{}),[_m]:()=>Fo(WY,{})},sFe=yo("desktop",{...ZN(JN({label:c("Hover effect"),options:Am.map(e=>({value:e,label:c(Fm[e]),picture:cX[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Am.map(e=>({value:e,label:Fm[e]}))}),description:fX}),pX=yo("desktop",{...On("Show",Fo(zY,{}),[{value:Nm,label:"Always"},{value:Dm,label:"On card hover"}],Nm),description:aX});function aM(){let e={any:[Hm("none"),{field:ot,is:_m},{field:oa,is:Dm}]},{[bt]:o,[Ke.kind]:t,...r}=hy("none","",!0);return{[bt]:Su(e),[Ke.kind]:t,[oa]:pX,...xy(Id()),...r,...tM(!0)}}var lFe=Iy(Lm,"none",rX);import{jsx as Oi}from"react/jsx-runtime";import{isNodeList as hX}from"efficient-easel/data";import{useEasel as IX}from"efficient-easel/easel";import{hiddenInView as gX,hiddenKeyOf as gy,hidePatch as yX,slotChildName as SX,slotChildRowName as bX}from"efficient-easel/draw";var uX=new Set(["BookingBox","SubmitBox"]);function mX(e){return typeof e=="string"&&uX.has(e)}var xX=tT(mX,NT);function bu(e,o){return xX(e)||IT(o)}var wu=(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 wX}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as CX}from"efficient-easel/screen/lib/document/panel-no-control-mark";var nM="notCardOfTemplate",sM={not:{context:nM,is:!0}},yy={any:[yd,sM]},TFe={[nM]:(e,o)=>{let t=ex(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Cu(e){let o=e.props?.content;return hX(o)?o:[]}var ku=(e,o)=>gX(e.props??{},o),vX=(e,o)=>e.props?.[gy(o)]!==void 0;function lM(e,o=()=>!1,t="desktop"){return Cu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Cu(r).length&&!ku(r,t)?lM(r,o,t):o(r)?[]:[r])}function kX(e,o,t,r="desktop"){let a=lM(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:!ku(l,r)}})}function vu(e,o,t){let r=a=>t==="desktop"?ku(a,t):vX(a,t);return Cu(e).flatMap(a=>r(a)?o(a)?[]:[a,...vu(a,o,t)]:vu(a,o,t))}function PX(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=Cu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=PX(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 iM(e,o,t,r="desktop"){return Sy(e,o,a=>r==="desktop"&&ku({props:a},r)===!t?{}:yX(a,r,!t))}function TX(e,o,t){return t==="desktop"?iM(e,o,!0,t):Sy(e,o,()=>({[gy(t)]:void 0}))}function OX(e,o,t,r,a,n){return SX(e).trim()?t(e):Tw({ownerType:o,owner:r,fields:a,slot:n},Wt(e.props))?.label??t(e)}var EX="This page is read-only.";function _X({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>bX(u,n,an,void 0,wu),f=u=>bu(u.type,u),m=kX(e,u=>OX(u,o,d,t,r,a),f,i);return m.length?Oi(zx,{parts:m,changed:vu(e,f,i).length>0,shown:u=>m.find(h=>h.id===u)?.shown??!0,disabledReason:l?EX:void 0,onPress:(u,h)=>s(I=>iM(I,u,h,i)),onReset:()=>s(u=>vu(u,f,i).reduce((h,I)=>TX(h,String(I.props.id),i),u))}):Oi(CX,{})}function AX(){try{let e=IX(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=ex(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:Lw(e.appState,r),slot:Fw(e.appState,t.props?.id)??void 0}}catch{return null}}function FX({readOnly:e,view:o}){let t=AX(),r=fl();return t?Oi(_X,{...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}})}}):Oi(zx,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function OFe(e){return ro(wX(e,{type:"custom",render:({readOnly:o})=>Oi(FX,{readOnly:o,view:e})}),sM)}import{customize as zX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as by}from"react/jsx-runtime";import{DirectionIcon as BX,LoopMarqueeIcon as LX,NoSymbolIcon as RX}from"efficient-easel/icons";import{customize as DX,describedAs as NX,group as MX}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as HX}from"efficient-easel/screen/lib/document/effect-tiles";function wy(){return FT("Direction",HI,pi,"A marquee cannot run diagonally, so the corners are not answers.",by(BX,{}),AT)}var Cy=e=>MX("Loop",e?{dot:e}:void 0),WX={none:()=>by(RX,{}),scroll:()=>by(LX,{})};function $X(){let e=HX({label:c("Loop"),options:Fp.map(({value:o,label:t})=>({value:o,label:c(t),picture:WX[o]()})),fallback:MI});return NX(e,{type:"select",label:"Loop",options:Fp.map(({value:o,label:t})=>({value:o,label:t}))})}function dM(){return{[ls]:Cy(ci),loop:$X(),_cLoop:DX(),scrollDirection:ro(wy(),ci),loopDuration:ro(gu({readsSpeed:!1}),ci),loopDelay:ro(yu(),ci)}}var fM={field:oa,set:!0};function UX(){let e=aM(),o=[bt,ot],t=Do(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==oa),yd),r=Do(t,[oa],fM),a=Do(r,[ot],yy);return Do(a,[bt],{any:[yy,fM]})}function Pu(e,o=""){switch(e){case"section":case"block":return{...At(),...$a()};case"box":return{...At(),...$a(),...dM(),...UX()};case"picture":return{...At(),...$a(),...hy(Kb(o),o)};case"textPart":return{...At(),...$a(),...eM()};case"cards":return{...At(),...$a(),...oM(Bb(o))};case"marquee":return{...At(),...$a(),[ls]:Cy(),_cLoop:zX(),scrollDirection:wy(),loopDuration:gu({readsSpeed:!0}),loopDelay:yu()}}}import{blockSizeFieldSet as LZ}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as RZ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as cM,Fragment as jX,jsxs as GX}from"react/jsx-runtime";import{useSelectedHost as pM}from"efficient-easel/easel";import{VIEW_TIERS as KX,viewKeyAt as qX}from"efficient-easel/draw";var uM=e=>KX.find(o=>Object.values(ho).some(t=>qX(t,o)===e))??"desktop";function VX(e,o,t){let r=e(o),a=uM(t);return{top:Zd(r,"top",a),bottom:Zd(r,"bottom",a)}}var YX=e=>e.startsWith(ho.bottom)?"bottom":"top";function XX(e,o,t,r){let a=YX(r);return o(t,Zd(e(t),a,uM(r)),a)}function ZX({frameOf:e,note:o,rowKey:t}){let r=pM()?.values,a=r?XX(e,o,r,t):null;return a?cM("p",{className:"es-field-hint",children:a}):null}var JX=new Set(wn());function mM(e,o,t){let r=Rr({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=pM()?.values;return n?VX(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!JX.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>GX(jX,{children:[s(l),cM(ZX,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as QX}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as eZ,deviceMetaOf as IM}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as ky,SETTINGS_BUCKETS as oZ}from"efficient-easel/panel";import{BUCKET_KEY as So,DESIGN_GROUP_KEY as ys}from"efficient-easel/screen/lib/document/field-buckets";var Ei=oZ;var tZ="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",[tZ]:"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"},gM={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},yM={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function xM(e,o,t){let r=`${e}.${o}`;return z(yM,r)??z(gM,r)??z(Py,t)}function rZ(e){return e==="Animation"?[So.Animation]:[So.Design,ys[e]]}function Tu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=IM(r),n=fr(a?a.inner:r),s=n?z(Py,n.label):void 0;if(s)for(let l of rZ(s))o.includes(l)||o.push(l)}return o}var pBe=[...Tu(Rr({tablet:!0,siteSide:!0}),An("full"),Fn(),Bn(),cl()),...Object.keys(Rr({tablet:!0,siteSide:!0})),...Object.keys(An("full")),...Object.keys(Fn()),...Object.keys(Bn()),...Object.keys(cl())],uBe=[...Tu(En()),...Object.keys(En())],mBe=[...Tu(_n()),...Object.keys(_n())],xBe=[...Tu(At()),...Object.keys(At())],hBe=Object.keys(RT()),IBe=Object.keys(DT()),aZ={"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)"},SM={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},vy={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Rr({tablet:!0,siteSide:!0}),...An("full"),...Fn(),...Bn(),...En(),..._n(),...At()};for(let o of Object.keys(vy)){let t=fr(e[o]),r=t?z(Py,t.label):void 0;if(!t||t.level!==2||!r||!SM[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 nZ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),sZ=new Map([[So.Design,"Content"],[So.Animation,"Animation"],...ky.map(e=>[ys[e],e])]);function lZ(e){let o=`${e}.`;return Object.keys(aZ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function iZ(e,o){let t=IM(e),r=QX(o);return t?eZ(t.tier,r):r}function dZ(e,o){let t=fr(o);return t?e==="Content"||e==="Animation"?CT(o,t.label):vT(o):o}function hM(e){return e==="Design"?ky:["Animation"]}function Ou(e,o){let t=[],r=new Set(lZ(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=fr(h);if(nZ.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=sZ.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===So.Design||u===So.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)||eo(vy,u)){let T=xM(o,u,I.label);if(I.level!==2||!T||!SM[T].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 ${T??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(u)&&a.add(u),t.push(s={place:T,entries:[],uniform:eo(vy,u)});continue}let w=xM(o,u,I.label);if(!w)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 ${[...ky,"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:w,entries:[[u,I.level===2?h:iZ(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>fr(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",yM],["KEY_GROUP",gM]]){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=Ei.filter(u=>hM(u).some(h=>d.has(h))),m={};for(let u of f){m[So[u]]=Lf(u,u===f[0]?f:null);for(let h of hM(u)){if(!d.has(h))continue;let I=t.filter(T=>T.place===h),S=I.findIndex(T=>T.adopted);S>0&&I.unshift(...I.splice(S,1));let w=I.filter(T=>T.uniform);if(w.length>0){let T=I.filter(P=>!P.uniform),B=I[0]?.adopted?1:0;I.splice(0,I.length,...T.slice(0,B),...w,...T.slice(B))}u==="Design"&&(m[ys[h]]=Nx(h));for(let T of I)for(let[B,P]of T.entries)m[B]=dZ(h,P)}}return m}function bM(e){return So.Design in e?e:{[So.Design]:Lf("Design",null),[ys.Content]:Nx("Content"),...e}}function wM(e){return Ei.some(o=>So[o]in e)}function Eu(e){let o=Ei.filter(r=>So[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[So[r]]=Lf(r,r===o[0]?o:null);return t}import{jsx as _u}from"react/jsx-runtime";import{WidthIcon as fZ}from"efficient-easel/icons";import{SettingsField as cZ,SettingsSwitch as pZ}from"efficient-easel/panel";import{group as uZ,iconOf as mZ,sharedStyleKinds as xZ}from"efficient-easel/screen/lib/document/box-fields";var hZ="Gutter";function IZ({value:e,onChange:o,labelId:t}){let r=uu(dl()),a=yi({[Ha]:e})??r,n=s=>o(s?r?void 0:jg:Ug);return _u(cZ,{label:c(hZ),labelId:t,icon:mZ(_u(fZ,{})),action:_u(pZ,{checked:a,onChange:n,ariaLabelledBy:t})})}function CM(){return xZ({_gWidth:uZ(Rf),[Ha]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>_u(IZ,{value:e,onChange:o,labelId:`${t??r??Ha}-label`})}})}import{jsx as Oy}from"react/jsx-runtime";import{group as gZ,sharedStyleKinds as kM}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as yZ}from"efficient-easel/screen/lib/document/device-fields";var SZ="Content cannot be wider than the background.",Ty=e=>c(e==="content"?"Content width":"Full width");function PM(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=ko(),n=ye(o)??xn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var bZ={read:hn},wZ={read:hn,drawsFullOnItsOwn:!0},CZ={read:HC,clearOnContent:{fullWidth:void 0}};function vZ({source:e}){let o=e.read(Wx()),t=fl(),r=PM(e);return Oy(HT,{value:o.background??r.background,changed:o.background!==null,detail:Ty(r.background),onChange:a=>t($C(a)),onReset:()=>t(dx("background"))})}function kZ({source:e}){let o=e.read(Wx()),t=fl(),r=i=>t({...i,...e.clearOnContent}),a=PM(e),n=(o.background??a.background)==="content",s=kT({row:ix,label:MT,grid:{min:xn.min,max:n?a.px:xn.max,step:xn.step},valueKey:Ao.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return Oy(WT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:xn.max,changed:o.content!==null,detail:a.content==="full"?Ty("full"):`${Ty("content")} ${a.px}px`,fullClosed:n,hint:n?SZ:void 0,onMode:i=>r(zC(i)),onPx:i=>r({...UC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(dx("content"))})}var vM=(e,o)=>yZ("desktop",{type:"custom",render:()=>Oy(e,{source:o})}),TM=e=>({[Ao.background]:vM(vZ,e),[Ao.content]:vM(kZ,e),[Ao.contentMax]:Hx(),...qP(ix,Ao.content)});function OM(e){let o=e?.drawsFullOnItsOwn?wZ:bZ;return kM({_gWidth:gZ(Rf),...TM(o)})}function HBe(){return kM({...TM(CZ),fullWidth:Hx()})}import{deviceMetaOf as _M}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as PZ}from"efficient-easel/screen/lib/document/panel-no-control-mark";function TZ(e,o){let t=_M(o),r=t?t.inner:o;if(fr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=PZ(r);return a==="always"?!1:a==="authored-copy"?ek(e):!0}function EM(e){let o=_M(e),t=o?o.inner:e,r=fr(t);return r?wT(t)?0:r.level:null}function OZ(e,o,t){return t?o===0&&e===So.Design||o===1&&e===ys.Content:!1}var EZ=new WeakMap,_Z=new WeakMap;function AM(e,o="section"){let t=o==="page"?_Z:EZ,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([m,u])=>({key:m,field:u,level:EM(u),draws:TZ(m,u)||o==="page"&&EM(u)===null&&bx(m,u)})),n=o==="section"&&a.some(m=>bx(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&&!OZ(a[m].key,u,n)&&s.add(a[m].key)}let l=n&&wM(e),i=l&&!(So.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=Eu(l?bM(d):d);return t.set(e,f),f}import{isShown as AZ,showWhenFactReaders as FZ}from"efficient-shell/format";var FM=new WeakMap,BZ=new Set(Object.values(So));function BM(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=FZ(r,o,t),l=DP(t,{...s,parentOffersPositions:()=>{let I=Xt(t.appState,n);return I===void 0?void 0:av(I,n)},parentTileSlot:()=>{let I=Xt(t.appState,n);return I===void 0?void 0:nv(I,n)},heroGroupDepth:()=>zd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,S]of Object.entries(e)){let w=uw(S);!w||RP(w,"device")||AZ(w,a,l)||i.push(I)}if(i.length===0)return e;let d=FM.get(e);d||FM.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=>BZ.has(I))&&(h=Eu(h)),d.set(f,h),h}var LM={spacingFields:ET,sidesPaddingFields:Rr,ownPaddingFields:mM,sectionShapeFields:_n,cardShapeFields:PT,cellWidthFields:TT,widthField:An,boxGutterFields:CM,sectionOwnWidthFields:OM,heightFields:Fn,anchorFields:Bn,customCssFields:_T,stickFields:cl,sectionThemeFields:En,animationTabFields:Pu,blockSizeFields:({tablet:e,...o}={})=>LZ({...o,shorten:!0,say:KP,lengthUnits:Tf,...e?{phone:RZ}:{}}),assignSectionGroups:Ou,dropEmptyHeadings:AM,rowsShownForNode:BM,SECTION_THEME_FOLLOW_LABEL:mT,BLOCK_THEME_FOLLOW_LABEL:xT,PartAnchors:pR};function Au(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=Au(s.arrayFields,o,t),d=Au(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 DZ(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=BN(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 NZ(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];MZ(e,o,a);for(let n of a){let s=n.components.filter(Td);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(!Od(n))continue;let s=Pd(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 MZ(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${pn}". Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`)};for(let n of t)n.components.includes(pn)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let l=Ey(pn,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function RM(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Dg(o);if(NZ(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?Au(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:LM};for(let[I,S]of t){let w=DZ(I,S,h),T=Au(w.fields,l,i);d[I]=T===w.fields?w:{...w,fields:T}}}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(w=>w in d&&l(w));if(u.length===0)continue;let h=f.find(([w])=>w===m.key);if(h){let[,w]=h,T=new Set(w.components??[]);h[1]={...w,components:[...w.components??[],...u.filter(B=>!T.has(B))]};continue}let I=[m.key,{title:m.title,components:u}],S=m.before?f.findIndex(([w])=>w===m.before):-1;S===-1?f.push(I):f.splice(S,0,I)}return{...e,components:d,categories:Object.fromEntries(f)}}function DM(){let e=$Z();return HZ(()=>RM(WZ(e),un(e)),[e])}import{jsx as Fy,Fragment as lJ,jsxs as iJ}from"react/jsx-runtime";import{useContext as dJ,useEffect as fJ,useMemo as Nu,useRef as tH}from"react";import{EaselCanvas as cJ,repeatCopyAt as pJ,useEasel as uJ}from"efficient-easel/easel";import{jsx as _y}from"react/jsx-runtime";import{useEffect as GZ,useState as KZ}from"react";import{Banner as qZ}from"efficient-shell/ui";import{useSyncExternalStore as zZ}from"react";import{useScreenDocument as UZ}from"efficient-easel/screen/components/ScreenDocumentContext";var jZ=()=>()=>{},NM=()=>null;function Fu(e){return zZ(e?e.subscribe:jZ,e?e.state:NM,e?e.state:NM)}function Bu(){let{adapter:e}=UZ();return e?.pinnedChrome}var Lu={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."},VZ={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."},YZ=Lu.load,XZ=Lu.lock,ZZ=Lu.conflict,JZ=Lu.save;function QZ(e){if(!e)return null;if(e.loadFailed)return c(YZ);if(e.lockHolder)return c(XZ,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(ZZ);if(e.saveFailed)return c(JZ);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(VZ[o.problem],{section:t,name:r})}function eJ({report:e}){let o=QZ(Fu(e)),[t,r]=KZ(null);return GZ(()=>{o||r(null)},[o]),!o||t===o?null:_y("aside",{className:"sf-canvas-notice",children:_y(qZ,{tone:"warning",onDismiss:()=>r(o),children:o})})}function MM(){return _y(eJ,{report:Bu()})}import{jsx as Du}from"react/jsx-runtime";import{useState as eH}from"react";import{Banner as tJ,Button as rJ}from"efficient-shell/ui";import{UndoIcon as aJ}from"efficient-shell/icons/efficient";import{useScreenDocument as nJ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as $M}from"react";var _i=!1,Ss=null,Ay=new Set;function Fi(){for(let e of Ay)e()}function zM(e){return Ay.add(e),()=>{Ay.delete(e)}}function UM(){_i||(_i=!0,Fi())}function jM(){_i&&(_i=!1,Fi())}function HM(){return _i}function GM(){return $M(zM,HM,HM)}function WM(){return Ss}function Ru(){Ss&&(Ss=null,Fi())}function KM(){return $M(zM,WM,WM)}var Ai=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function qM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Ai;let n=await e.restore(o,t);return Af(n.liveState),a(),n}async function VM({access:e,version:o,page:t,...r}){let a=await qM(e,o.id,t?{page:t.id}:{},r);Ss={title:oJ(o,t??null),undo:a.undo},Fi()}async function YM({access:e,...o}){let t=Ss?.undo;t&&(await qM(e,t,{},o),Ss=null,Fi())}function XM(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function oJ(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 ZM(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(rx(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function JM(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function QM(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=rx(),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 sJ}from"efficient-easel/easel";function oH(){let e=KM(),{adapter:o,flushSave:t,reloadFromServer:r}=nJ(),a=o.siteVersions,[n,s]=eH(!1),[l,i]=eH(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await YM({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=sJ({onPress:()=>{d()},busy:n});return e?Du("aside",{className:"sf-canvas-notice",children:Du(tJ,{tone:l?"danger":"info",title:e.title,onDismiss:Ru,action:a&&e.undo?Du(rJ,{variant:"secondary",size:"sm",leftIcon:Du(aJ,{}),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 mJ,REPEAT_ATTRIBUTE as By,REPEAT_INDEX_ATTRIBUTE as Ly}from"efficient-easel/draw";import{usePreviewParts as xJ}from"efficient-easel/draw/client";import{ScreenDocumentContext as hJ}from"efficient-easel/screen/components/ScreenDocumentContext";function rH(e){let{mirrorHostStyles:o}=ul(),t=t0(),r=Ry(),a=dl(),n=dJ(hJ),s=nT(n?.docId??null),l=uJ(w=>w.appState.data),i=sT(s,l),d=JSON.stringify(i),f=Nu(()=>i,[d]),m=Nu(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);fJ(()=>(ay(a),()=>ay(null)),[a]);let u=tH(null),h=IJ(u),{onDocument:I}=e,S=w=>{u.current=w,I?.(w)};return iJ(lJ,{children:[Fy(oH,{}),Fy(MM,{}),Fy(cJ,{...e,onDocument:S,typing:h,metadata:m,height:"fill",mirrorStyles:o,frameWrapper:Xf})]})}function Ry(){let{sectionBackgroundWidth:e,themeFromDocument:o}=ko(),t=dl();return Nu(()=>jC(o?null:e,t),[e,t,o])}function IJ(e){let o=Wf(),t=xJ(),r=tH({parts:t});return r.current={parts:t},Nu(()=>{let a=(n,s)=>{let l=Uf(n,o),i,d=null,f=s??(l?null:sh(null,e.current,n)),m=!l&&f?pJ(f):null,u=m?mJ(n):null;if(m&&f&&u?.propKey){l=Gf({...m,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let w=f.closest(`[${By}][${Ly}]`),T=`[${By}="${jf(w?.getAttribute(By)??"")}"][${Ly}="${jf(w?.getAttribute(Ly)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(T)??null}if(!l)return null;let h=f,I=()=>(h=sh(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?df(ff(S)):void 0,colorNameOf:lf}}:null};return{at:n=>{let s=n.closest(`[${Ue}]`),l=s?.getAttribute(Ue);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>C0(n,o),copyValue:n=>w0(n,o),onChange:n=>{if(!n.typing){lh(null);return}let s=n.element.closest(`[${Ue}]`)?.getAttribute(Ue)??null;lh(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Mu=[{key:"about",label:"About",slugs:["about"]},{key:"contact",label:"Contact",slugs:["contact"]},{key:"faq",label:"FAQ",slugs:["faq"]},{key:"gallery",label:"Gallery",slugs:["gallery"]},{key:"store-locator",label:"Store locator",slugs:["store-locator"]},{key:"policies",label:"Policies",slugs:["warranty","shipping-returns","privacy-policy","terms-and-conditions"]}],bs="all",Hu="template";function aH(e){for(let o=0;o<Mu.length;o++){let t=Mu[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function nH(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>aH(o.s.slug)-aH(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function Dy(e){return e.filter(o=>o.source==="template")}function sH(e){let o=new Set(nH(e).map(t=>t.slug));return Mu.filter(t=>t.slugs.some(r=>o.has(r)))}function lH(e,o){if(e===Hu)return Dy(o);let t=nH(o);if(e===bs)return t;let r=Mu.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var iH=3;function dH(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function uH({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=CJ(),{adapter:n,siteId:s,templateId:l}=wJ(),i=_o(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=SJ(()=>s?{siteId:s}:{},[s]),m=DM(),u=Ry(),[h,I]=Ny(null),[S,w]=Ny(bs),[T,B]=Ny(null),P=bJ(null),g=yJ();gJ(()=>{if(!e)return;if(w(bs),!d){I([]);return}let O=!0;return I(null),i.starters(f).then(v=>O&&I(v),()=>{O&&(I([]),pH.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{O=!1}},[e,d,i,f]);let C=async(O,v)=>{if(!T){B(O);try{r(await v())}catch{pH.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{B(null)}}},E=()=>{if(!n.createPage)return;let O=c("New page");C("blank",()=>n.createPage({slug:cH(O,t),title:O,layout:{}}))},A=O=>{C(O.id,()=>i.createFromStarter(O.id,{title:O.title,slug:cH(O.slug,t),...f}))},N=h??[],b=sH(N),_=lH(S,N),y=dH(iH,_),k=fH("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Oo(My,{label:c("All pages"),active:S===bs,onClick:()=>w(bs)}),b.map(O=>Oo(My,{label:c(O.label),active:S===O.key,onClick:()=>w(O.key)},O.key)),Dy(N).length>0?Oo("div",{className:"sf-add-page-group",children:Oo(My,{label:c("From your template"),active:S===Hu,onClick:()=>w(Hu)})}):null]});return Oo(PJ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:P,children:Oo(_J,{sidebarTop:Oo("div",{className:"sf-add-page-blank",children:Oo(kJ,{variant:"secondary",size:"md",leftIcon:Oo(vJ,{"aria-hidden":!0}),onClick:E,disabled:!n.createPage||T!==null,children:c("Blank page")})}),sidebar:k,children:fH("div",{ref:P,tabIndex:-1,role:"region","aria-labelledby":g,className:"sf-add-page",children:[Oo(AJ,{id:g,level:2,as:"h3",children:c("Pages for your site")}),Oo(EJ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?Oo(OJ,{label:c("Loading\u2026")}):_.length===0?Oo(TJ,{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:y.map((O,v)=>Oo("div",{className:"sf-add-page-column",children:O.map(L=>Oo(OR,{starter:L,config:m,metadata:u,busy:T===L.id,onAdd:A},L.id))},v))})]})})})}import{jsx as FJ}from"react/jsx-runtime";import{createContext as BJ,useContext as mH,useEffect as LJ,useRef as xH}from"react";var Hy=BJ(null);function FRe({open:e,children:o}){let t=xH(!!e);return FJ(Hy.Provider,{value:t,children:o})}function hH(){let e=mH(Hy);return()=>e?.current?(e.current=!1,!0):!1}function IH(e){let o=mH(Hy),t=xH(e);t.current=e,LJ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var CH="sf-editor-pages-collapsed-groups";function QJ(){let e=$y(),{siteId:o,templateId:t}=vH(),r=_o(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function kH({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=$y().chrome?.pageRows,n=XJ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=vH(),f=Ln(),{rows:m,reload:u,setRows:h,getRows:I}=hl(),[S,w]=za(""),[T,B]=za(!1),[P,g]=za(null),[C,E]=za(!1),A=!!_o($y()).pages.createFromStarter,N=QJ(),[b,_]=za(null),[y,k]=za(()=>{if(typeof window>"u")return new Set;try{let $=window.localStorage.getItem(CH);return new Set($?JSON.parse($):[])}catch{return new Set}});gH(()=>{try{window.localStorage.setItem(CH,JSON.stringify([...y]))}catch{}},[y]);let O=$=>k(de=>{let he=new Set(de);return he.has($)?he.delete($):he.add($),he}),v=yH(()=>FP(m??[]),[m]),L=S.trim().toLowerCase(),M=$=>!L||$.toLowerCase().includes(L),K=$=>L?!0:!y.has($),W=yH(()=>new Set((m??[]).map($=>$.slug)),[m]),se=()=>{if(l.pageCreationInAdminForm&&!A){n.send("storefront-editor:new-page");return}g(null),E(!0)},le=hH();gH(()=>{le()&&se()},[]);let ee=l.hasSiteSettings&&!!s.createPage,Ie=async()=>{if(!(!i||T||!s.createPage)){B(!0),g(null);try{let $=await s.createPage(gT(c("New popup"),W));await u(),e($.slug)}catch{g(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{B(!1)}}},ae=NJ(null),[me,ge]=za(null),Ge=()=>{if(!ee)return se();if(me)return ge(null);let $=ae.current?.getBoundingClientRect();$&&ge({top:$.bottom+6,right:Math.max(8,window.innerWidth-$.right)})},Ve=$=>{let de=m??[],he=s.deletePage;if(!i||T||!he||de.length<=1)return;let De=de.findIndex(ke=>ke.id===$.id),ie=de.filter(ke=>ke.id!==$.id),Ne=$.slug===d;Vf($.id,!0),h(ie),g(null),Ne&&ie[0]&&e(ie[0].slug);let wo=()=>{Vf($.id,!1);let ke=I()??[];if(ke.some(Ja=>Ja.id===$.id))return;let Rt=[...ke];Rt.splice(Math.max(0,Math.min(De,Rt.length)),0,$),h(Rt)};bH.undoable(c("Deleted \u201C{name}\u201D",{name:$.label}),{actionLabel:c("Undo"),commit:async ke=>{await he($.id,ke),Vf($.id,!1)},undo:()=>{wo(),Ne&&e($.slug)},onFail:()=>{wo(),bH.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},Eo=$=>n.send("storefront-editor:open-page",{slug:$}),Ye=$=>{if(!M($.label))return null;let de=!t&&$.slug===d,he=l.canDeletePagesInline&&(m??[]).length>1,De=kf($),ie=AP($),Ne=[...De?[{label:c("Dynamic"),tone:"info"}]:[],...ie?[{label:c("Lightbox"),tone:"success"}]:[],...$.draft?[{label:c("draft"),tone:"draft"}]:[]],wo=Ne.length>0?Ne:void 0,ke=!!N&&ZJ($),Rt=ke||l.pageCreationInAdminForm||he?Wu(RJ,{children:[ke&&Pe($u,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:$.label}),disabled:T,onClick:()=>_($),children:Pe(KJ,{size:13})}),l.pageCreationInAdminForm&&Pe($u,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:$.label}),onClick:()=>Eo($.slug),children:Pe(VJ,{size:13})}),he&&Pe($u,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:$.label}),disabled:T,onClick:()=>Ve($),children:Pe(Wy,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Pe(wH,{icon:Pe(qJ,{size:14}),name:$.label,selected:de,onSelect:()=>e($.slug),badge:wo,actions:Rt,rowProps:{"data-page-slug":$.slug}},$.id)},Je=($,de,he)=>{let De=he.filter(Boolean);if(De.length===0)return null;let ie=K($);return Wu(DJ,{children:[Pe(jJ,{count:De.length,countLabel:$t("{n} page","{n} pages",De.length),expanded:ie,onToggle:()=>O($),children:de}),ie&&De]},$)},qo=(a?.rows??[]).filter($=>M($.label)).map($=>{let de=t===$.key;return Pe(wH,{icon:$.icon,name:$.label,selected:de,onSelect:()=>r($.key),badge:{label:c("Preview"),tone:"warning"},actions:Pe($u,{kind:"plain",label:c("Open the {name} in a new tab",{name:$.label}),onClick:()=>window.open($.href,"_blank","noopener,noreferrer"),children:Pe(Wy,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":$.key}},$.key)}),Qe=l.hasSiteSettings&&!!a,mo=(()=>{if(m===null)return null;let $=[],de=!1;for(let he of v){Qe&&!de&&he.key.startsWith("system:")&&($.push(Je("shop",a.title,qo)),de=!0);let De=he.key===_P||he.label===EP?c(he.label):he.label;$.push(Je(he.key,De,he.rows.map(Ye)))}return Qe&&!de&&$.push(Je("shop",a.title,qo)),$})();return Wu("div",{className:"sf-pages",children:[Pe(MJ,{icon:Pe(YJ,{}),title:c("Pages"),context:f,actions:Pe(HJ,{buttonRef:ae,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?me!==null:void 0,onClick:Ge,children:Pe(GJ,{size:15})})}),me&&Pe(zJ,{portal:!0,style:{top:me.top,right:me.right},onClose:()=>ge(null),children:Wu("div",{role:"menu","aria-label":c("Add"),children:[Pe(SH,{role:"menuitem",onClick:()=>{ge(null),se()},children:c("Page")}),Pe(SH,{role:"menuitem",disabled:T,onClick:()=>{ge(null),Ie()},children:c("Popup")})]})}),Pe("div",{className:"sf-pages-find",children:Pe(WJ,{type:"search",leftIcon:Pe(Wy,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:S,onChange:$=>w($.target.value),"aria-label":c("Search all pages")})}),P&&!C&&Pe("div",{className:"sf-note sf-note--error",role:"alert",children:P}),mo===null?Pe($J,{label:c("Loading\u2026")}):mo.some(Boolean)?Pe(UJ,{ariaLabel:c("Pages"),className:"sf-scroll",children:mo}):Pe("div",{className:"sf-note",children:S.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),N&&b&&Pe(JJ,{source:{title:b.label,slug:b.slug},taken:W,host:yf(),duplicate:$=>N(b,$),onClose:()=>_(null),onDuplicated:$=>{_(null),u(),e($.slug)}},b.id),C?Pe(uH,{open:!0,onClose:()=>E(!1),takenSlugs:W,onCreated:$=>{E(!1),u(),e($.slug)}}):null]})}import{jsx as OH}from"react/jsx-runtime";import{createContext as rQ,useCallback as aQ,useContext as nQ,useMemo as sQ,useState as lQ}from"react";import{CanvasChromeContext as iQ}from"efficient-easel/easel";import{useSelectHandler as dQ}from"efficient-easel/draw/client";import{parseHexColor as eQ,parseOption as oQ}from"efficient-shell/format";var zu=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],ws=zu[0],tQ=["right","left"],Ua="right";function Uu(e){return zu.includes(e??"")?e:ws}function PH(e){return oQ(tQ,Ua,e)}function TH(e){return e&&eQ(e)===e.toLowerCase()?e.toLowerCase():""}var EH="chat",ju={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Ua,launcherLabel:"",showOnPhones:!0};function fDe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:TH(e.launcherColor),launcherIcon:e.launcherIcon?Uu(e.launcherIcon):"",launcherPosition:PH(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var _H=rQ({chat:ju,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function cDe({children:e,chat:o=ju,onChatChange:t}){let[r,a]=lQ(!1),n=aQ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=dQ(),i=sQ(()=>({selected:()=>r?EH:null,select:d=>d===EH&&s()}),[r,s]);return OH(_H.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:OH(iQ.Provider,{value:i,children:e})})}var Gu=()=>nQ(_H);import{jsx as zy}from"react/jsx-runtime";import{DesktopIcon as fQ,PhoneIcon as cQ,TabletIcon as pQ}from"efficient-easel/icons";import{VIEW_TIERS as uQ,VIEW_TIER_LABEL as mQ}from"efficient-easel/draw";var xQ={desktop:zy(fQ,{}),tablet:zy(pQ,{}),mobile:zy(cQ,{})},AH=uQ.map(e=>({id:e,get label(){return c(mQ[e])},icon:xQ[e]}));import{PreviewDeviceContext as One}from"efficient-easel/draw/client";import{jsx as hQ}from"react/jsx-runtime";import{createContext as IQ,useCallback as FH,useContext as gQ,useMemo as yQ,useRef as SQ}from"react";var bQ=Object.fromEntries(Nf.map(e=>[e,{value:"",error:null}])),BH=IQ({links:zT,rows:bQ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function bDe({children:e,value:o}){let t=SQ(()=>{}),r=FH(()=>t.current(),[]),a=FH(s=>{t.current=s},[]),n=yQ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return hQ(BH.Provider,{value:n,children:e})}var Bi=()=>gQ(BH);import{jsx as wQ}from"react/jsx-runtime";import{createContext as CQ,useContext as vQ,useMemo as kQ,useState as PQ}from"react";var LH=CQ(null);function kDe({children:e}){let[o,t]=PQ(null),r=kQ(()=>({surface:o,setSurface:t}),[o]);return wQ(LH.Provider,{value:r,children:e})}function RH(){return vQ(LH)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as TQ}from"efficient-easel/draw/client";var{Provider:ODe,useSelection:Ku}=TQ("selectedHeroPart");import{jsx as we,jsxs as Zr,Fragment as X2}from"react/jsx-runtime";import{useEasel as ore,useRootFields as tre}from"efficient-easel/easel";import{EmptyState as rre}from"efficient-shell/ui";function DH({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:kf({kind:e})?c("Template"):c("Page")}}import{headWords as e5,InspectorHead as are,InspectorIconButton as Z2}from"efficient-easel/chrome";import{DuplicateIcon as nre,TrashIcon as sre}from"efficient-easel/icons";import{panelFieldsOf as lre}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as D,Fragment as ue,jsxs as xe}from"react/jsx-runtime";import{BlockBannerIcon as _Q,BlockBoxIcon as AQ,BlockButtonIcon as FQ,BlockDividerIcon as MH,BlockFooterIcon as HH,BlockHeadingIcon as BQ,BlockProductIcon as LQ,BlockSocialIcon as RQ,BlockTextIcon as DQ,CardPaymentIcon as NQ,ChatIcon as MQ,AccountIcon as HQ,GlobeIcon as WQ,GridIcon as $Q,ImageIcon as jy,MapIcon as zQ,MediaIcon as UQ,PageIcon as jQ}from"efficient-easel/icons";import{jsx as Uy,Fragment as OQ,jsxs as EQ}from"react/jsx-runtime";var NH=EQ(OQ,{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 GQ={header:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M3 9.5h18"})]}),social:xe(ue,{children:[D("circle",{cx:"6",cy:"12",r:"2.5"}),D("circle",{cx:"18",cy:"6",r:"2.5"}),D("circle",{cx:"18",cy:"18",r:"2.5"}),D("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:xe(ue,{children:[D("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),D("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:xe(ue,{children:[D("path",{d:"M4 15.5h6M4 18h4"}),D("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:D("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:xe(ue,{children:[D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),D("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:D("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:xe(ue,{children:[D("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),D("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:xe(ue,{children:[D("circle",{cx:"11",cy:"11",r:"6"}),D("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:NH,CountrySwitchBlock:xe(ue,{children:[D("circle",{cx:"12",cy:"12",r:"8.5"}),D("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),ThemeSwitchBlock:xe(ue,{children:[D("circle",{cx:"12",cy:"12",r:"8.5"}),D("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:xe(ue,{children:[D("path",{d:"M3 9h18"}),D("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),D("path",{d:"M7 17h7"})]}),Collections:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),D("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),D("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:xe(ue,{children:[D("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),D("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:xe(ue,{children:[D("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),D("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),D("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:xe(ue,{children:[D("path",{d:"M3 7h9M15.5 7H21"}),D("circle",{cx:"13.5",cy:"7",r:"1.7"}),D("path",{d:"M3 12h4M10.5 12H21"}),D("circle",{cx:"8.5",cy:"12",r:"1.7"}),D("path",{d:"M3 17h9M15.5 17H21"}),D("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),D("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:xe(ue,{children:[D("path",{d:"M3 5h10"}),D("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),D("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),D("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),D("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),D("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:xe(ue,{children:[D("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),D("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:xe(ue,{children:[D("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),D("circle",{cx:"9",cy:"10",r:"1.6"}),D("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:xe(ue,{children:[D("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),D("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:xe(ue,{children:[D("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),D("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),D("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:xe(ue,{children:[D("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),D("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:xe(ue,{children:[D("path",{d:"M3.5 20h17"}),D("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:xe(ue,{children:[D("circle",{cx:"6",cy:"12",r:"2.6"}),D("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),D("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:xe(ue,{children:[D("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),D("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:xe(ue,{children:[D("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),D("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:xe(ue,{children:[D("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),D("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:xe(ue,{children:[D("path",{d:"M4 8.5h4.5M11 8.5h9"}),D("path",{d:"M4 14.5h16"})]}),HeroGroup:xe(ue,{children:[D("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),D("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M6.5 9h11M6.5 12.5h11"}),D("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:D(ue,{children:D("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:xe(ue,{children:[D("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),D("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:xe(ue,{children:[D("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),D("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),D("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),D("path",{d:"M4 13.5h11M4 17.5h7"}),D("path",{d:"M17 15l3 2-3 2"})]}),Contents:xe(ue,{children:[D("path",{d:"M4 7h2M4 12h2M4 17h2"}),D("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:xe(ue,{children:[D("path",{d:"M4 6h9M4 11h5M4 16h5"}),D("circle",{cx:"15",cy:"15",r:"4"}),D("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:D("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},KQ=D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),qQ={footer:HH,Footer:HH,Divider:MH,FooterDivider:MH,Banner:_Q,Flex:AQ,FooterSocial:RQ,FooterPayment:NQ,page:jQ,website:WQ,AccountBlock:HQ,chat:MQ,Heading:BQ,Text:DQ,ImageBlock:jy,ButtonBlock:FQ,LocationMap:zQ,Grid:$Q,ProductRef:LQ,heroMedia:UQ,heroImage:jy,heroImage2:jy},VQ={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function ja({type:e,size:o=16,className:t}){let r=VQ[e]??e,a=qQ[r];return a?D(a,{size:o,className:t}):D("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:GQ[r]??KQ})}import{PanelHideButton as J2}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as ire}from"efficient-easel/screen/lib/session-context";import{jsx as be,jsxs as Li,Fragment as YQ}from"react/jsx-runtime";import{useEffect as XQ,useId as WH,useState as ZQ}from"react";import{IconPicker as JQ}from"efficient-shell/ui";import{SettingsDefaultReset as QQ,SettingsField as Ri,SettingsSegmented as eee,SettingsSwitch as $H}from"efficient-easel/panel";import{ButtonIcon as oee,ButtonIconIcon as tee,EyeIcon as ree,PhoneIcon as aee,PlacementIcon as nee,TypeIcon as see}from"efficient-easel/icons";var lee="Chat with us",iee="We usually reply within a few minutes",dee="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function qu({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=ZQ(o);XQ(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return be(Ri,{label:e,icon:be(see,{}),changed:o!=="",action:be(Di,{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 Di({label:e,changed:o,onReset:t}){return be(QQ,{words:sC()?.panel,label:e,changed:o,onReset:t})}function fee({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=WH();return be(Ri,{label:e,labelId:s,icon:o,changed:t!==r,action:Li("span",{className:"inline-flex items-center gap-2",children:[be($H,{checked:t,onChange:a,ariaLabelledBy:s}),be(Di,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var cee=zu.map(e=>({value:e,icon:iT(e)}));function pee(){let{theme:e}=ko(),o=sr(e).themes[0];return Ww(o)??o?.accent??""}function zH(){let{chat:e,setChat:o}=Gu(),t=WH(),r=pee(),a=e.launcherIcon?Uu(e.launcherIcon):ws;return Li(YQ,{children:[be(Ri,{label:c("Show the chat bubble"),labelId:t,icon:be(ree,{}),changed:!e.enabled,action:Li("span",{className:"inline-flex items-center gap-2",children:[be($H,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),be(Di,{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.")}),Li(Mx,{title:c("Look"),children:[be(fT,{label:c("Button color"),icon:be(oee,{}),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(Ri,{label:c("Icon"),icon:be(tee,{}),value:be(YP,{value:a}),changed:a!==ws,action:be(Di,{label:c("Icon"),changed:a!==ws,onReset:()=>o({launcherIcon:""})}),children:be(JQ,{label:c("Icon"),value:a,options:cee,onChange:n=>o({launcherIcon:n===ws?"":n})})}),be(Ri,{label:c("Position"),icon:be(nee,{}),changed:e.launcherPosition!==Ua,action:be(Di,{label:c("Position"),changed:e.launcherPosition!==Ua,onReset:()=>o({launcherPosition:Ua})}),children:be(eee,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),be(qu,{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(fee,{label:c("Show on phones"),icon:be(aee,{}),checked:e.showOnPhones,fallback:ju.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Li(Mx,{title:c("Wording"),children:[be(qu,{label:c("Title"),value:e.title,placeholder:lee,onCommit:n=>o({title:n})}),be(qu,{label:c("Subtitle"),value:e.subtitle,placeholder:iee,onCommit:n=>o({subtitle:n})}),be(qu,{label:c("Greeting message"),value:e.greeting,placeholder:dee,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 Ga,Fragment as pS,jsxs as qH}from"react/jsx-runtime";import{useEffect as zee,useId as GH,useState as KH}from"react";import{SettingsField as Uee}from"efficient-easel/panel";import{jsx as Bee}from"react/jsx-runtime";import{forwardRef as uee,createElement as Gy}from"react";var UH={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 ne=(e,o,t,r)=>{let a=uee(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...m},u)=>Gy("svg",{ref:u,...UH[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 mee=[["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=ne("outline","brand-facebook","BrandFacebook",mee);var xee=[["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=ne("outline","brand-instagram","BrandInstagram",xee);var hee=[["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=ne("outline","brand-line","BrandLine",hee);var Iee=[["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=ne("outline","brand-linkedin","BrandLinkedin",Iee);var gee=[["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=ne("outline","brand-pinterest","BrandPinterest",gee);var yee=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Zy=ne("outline","brand-telegram","BrandTelegram",yee);var See=[["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"}]],Jy=ne("outline","brand-tiktok","BrandTiktok",See);var bee=[["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=ne("outline","brand-wechat","BrandWechat",bee);var wee=[["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=ne("outline","brand-whatsapp","BrandWhatsapp",wee);var Cee=[["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=ne("outline","brand-x","BrandX",Cee);var vee=[["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=ne("outline","brand-youtube","BrandYoutube",vee);var kee=[["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=ne("filled","brand-facebook-filled","BrandFacebookFilled",kee);var Pee=[["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=ne("filled","brand-instagram-filled","BrandInstagramFilled",Pee);var Tee=[["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=ne("filled","brand-linkedin-filled","BrandLinkedinFilled",Tee);var Oee=[["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=ne("filled","brand-pinterest-filled","BrandPinterestFilled",Oee);var Eee=[["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=ne("filled","brand-tiktok-filled","BrandTiktokFilled",Eee);var _ee=[["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=ne("filled","brand-whatsapp-filled","BrandWhatsappFilled",_ee);var Aee=[["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=ne("filled","brand-x-filled","BrandXFilled",Aee);var Fee=[["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=ne("filled","brand-youtube-filled","BrandYoutubeFilled",Fee);var cMe="outline",Vu={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},Lee={},cS={fillRule:"evenodd"},Ree=[["path",{...Vu,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"}]],Dee=[["path",{...Vu,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",{...Lee,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("")}]],Nee=[["path",{...Vu,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",{...Vu,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("")}]],Mee=ne("filled","brand-telegram-filled","BrandTelegramFilled",Ree),Hee=ne("filled","brand-line-filled","BrandLineFilled",Dee),Wee=ne("filled","brand-wechat-filled","BrandWechatFilled",Nee),$ee={instagram:{outline:qy,solid:aS},facebook:{outline:Ky,solid:rS},tiktok:{outline:Jy,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:Zy,solid:Mee},line:{outline:Vy,solid:Hee},wechat:{outline:Qy,solid:Wee}};function jH({platform:e,iconStyle:o,size:t}){let r=$ee[e][o];return Bee(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var jee={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 Gee({platform:e}){let{rows:o,saveLink:t}=Bi(),{value:r,error:a}=o[e],[n,s]=KH(r),[l,i]=KH(!1),d=GH(),f=GH();zee(()=>s(r),[r]);let m=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=$T[e];return qH(pS,{children:[Ga(Uee,{label:c(u),htmlFor:d,icon:Ga(jH,{platform:e,iconStyle:"outline",size:18}),children:Ga("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:jee[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&&Ga("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function VH({unavailable:e}){let{canSave:o}=Bi();return!o&&e?Ga(pS,{children:e}):qH(pS,{children:[Ga("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Nf.map(t=>Ga(Gee,{platform:t},t))]})}import{jsx as Va,Fragment as Ioe,jsxs as goe}from"react/jsx-runtime";import{useId as yoe,useMemo as Soe}from"react";import{useEasel as boe}from"efficient-easel/easel";import{SettingsField as woe,SettingsSwitch as Coe}from"efficient-easel/panel";import{EyeIcon as voe}from"efficient-easel/icons";import{fieldShownInView as koe}from"efficient-easel/fields";import{usePreviewDevice as Poe}from"efficient-easel/draw/client";import{ROOT_ZONE as Toe}from"efficient-easel/draw";import{jsx as qa,Fragment as Vee}from"react/jsx-runtime";import{createContext as Yee,useContext as Xee,useLayoutEffect as Zee,useMemo as XH,useRef as Jee,useState as ZH}from"react";import{useEasel as JH,useSelectedFields as Qee}from"efficient-easel/easel";import{fieldShownInView as eoe,Inspector as ooe,LEAD_BAND_KEY as toe,planFields as QH}from"efficient-easel/fields";function YH({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 Kee}from"react/jsx-runtime";import{EmptyState as qee}from"efficient-shell/ui";function Ka(){return Kee(qee,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as roe}from"efficient-easel/draw/client";import{deviceField as aoe}from"efficient-easel/screen/lib/document/device-fields";var noe="Text",uS=new Map,Yu=new Set,soe=Object.fromEntries(Ei.map(e=>{let o=bT[e];return[e,qa(o,{},e)]})),e2=Yee(null),loe={_partBody:aoe("each",{type:"custom",render:()=>qa(ioe,{})})};function ioe(){return qa(Vee,{children:Xee(e2)})}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}=Qee(),u=XH(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(ee,Ie)=>a?.keys.has(ee)?a.onChange(ee,Ie):m(ee,Ie),I=roe(),{appState:S,config:w}=JH(ee=>ee),T=LP(I,w,S.data.content??[],S.ui.itemSelector),B=n===void 0?O_(i,t):loe,P=XH(()=>{let ee=r?.length?Object.fromEntries(Object.entries(B).filter(([Ie])=>!r.includes(Ie))):B;return a?{...ee,...a.fields}:ee},[B,r,a?.fields]),g=_x(P,u,T),[C,E]=ZH(()=>new Set(Yu)),A=eoe({},I),N={key:toe,title:noe},b=JH(ee=>ee.selectedItem)!==null,_=a?.part??t??"",y=`${l}:${_}:${String(I)}`,[k,O]=ZH(()=>({tab:uS.get(y)})),v=`${l}:${_}`,L=Jee(null),M={...T,node:u},K=QH(g,{values:u,context:M}).buckets,W=YH({allTabs:b,remembered:uS.get(y),inherited:L.current?.panel===v?L.current.tab:k.tab,buckets:K,hasText:A&&o>0}),se=!A&&!K.includes(W)&&(QH(_x(P,u,{...T,device:"desktop"}),{values:u,context:{...M,device:"desktop"}}).buckets.includes(W)||W==="Design"&&o>0);Zee(()=>{L.current={panel:v,tab:W}});let le=W==="Design";return qa(e2.Provider,{value:n??null,children:qa(OT.Provider,{value:a?u:null,children:qa(ooe,{fields:g,values:u,onChange:h,readOnly:f,allTabs:b,showWhenContext:M,context:{itemWord:s},tab:W,onTab:ee=>{uS.set(y,ee),O({tab:ee})},tabIcons:soe,idPrefix:l,ariaLabel:c("Section settings"),lead:le?e:null,leadFold:N,closedFolds:C,onFold:(ee,Ie)=>{Ie?Yu.delete(ee):Yu.add(ee),E(new Set(Yu))},children:se&&qa(Ka,{})})})})}import{useMemo as doe}from"react";import{useEasel as foe}from"efficient-easel/easel";import{useSectionOps as coe}from"efficient-easel/screen/lib/document/use-section-ops";var o2=new Map,poe=e=>{let o=o2.get(e);return o||o2.set(e,o=Ou(Pu(e),`part:${e}`)),o},uoe=new Set(Ah);function Cs(e,o,t){let{getItemById:r,getSelectorForId:a}=foe(f=>f),n=coe(),s=r(e)?.props??{},l=Sa(s,o),i=JSON.stringify(l),d=doe(()=>Object.fromEntries(Ah.map(f=>[f,l[f]])),[i]);return{part:o,fields:poe(t),values:d,keys:uoe,onChange:(f,m)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=UO(h.props??{},o,f,m);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as moe,createElement as xoe}from"react";import{deviceField as mS}from"efficient-easel/screen/lib/document/device-fields";var bo=()=>({type:"custom",render:()=>xoe(moe)});var xS={words:bo(),sourceNote:bo(),style:bo(),font:bo(),italic:bo(),fontSize:mS("each",bo()),lineHeight:bo(),letterSpacing:bo(),paragraphSpacing:bo(),padding:bo(),align:mS("each",bo()),letterCase:bo(),fixedSizeHint:mS("each",bo()),regionNote:bo(),regionStyle:bo()},hoe=["fontSize","align"];function t2(e){return hoe.includes(e)}var r2={showTicker:bo(),items:bo()};function a2({heroId:e}){let{appState:o,dispatch:t}=boe(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=Soe(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:y1.map(I=>({text:I}))},[n]),i=yoe(),d=Poe(),f=h=>koe(r2[h],d),m=Cs(e,S1,"block");if(!n)return Va("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:Toe,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return Va(Ft,{motion:m,body:goe(Ioe,{children:[!f("showTicker")&&!f("items")&&Va(Ka,{}),f("showTicker")&&Va(woe,{label:c("Show ticker"),labelId:i,icon:Va(voe,{}),action:Va(Coe,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&Va(BT,{label:$x.label,icon:$x.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as Hi,jsxs as It}from"react/jsx-runtime";import{useContext as $oe,useEffect as hS,useRef as zoe,useState as x2}from"react";import{FieldSelect as Uoe,InspectorField as joe,fieldShownInView as Goe}from"efficient-easel/fields";import{InertHint as v2,SettingsField as Koe}from"efficient-easel/panel";import{InspectorUpLevel as om}from"efficient-easel/chrome";import{StylesIcon as qoe,TypeIcon as Voe}from"efficient-easel/icons";import{useEasel as Yoe}from"efficient-easel/easel";import{TextPartPanel as h2}from"efficient-easel/copy";import{Button as Xoe,IconButton as Zoe,Tooltip as Joe}from"efficient-shell/ui";import{jsx as l2,jsxs as Ooe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as Eoe}from"efficient-easel/strings";import{COPY_CELLS as vs,COPY_CELL_LENGTHS as n2,CopyBox as _oe,lengthCellUnits as Aoe}from"efficient-easel/copy";import{PaddingYIcon as Foe}from"efficient-easel/icons";import{onDesktopWords as Boe}from"efficient-easel/screen/lib/document/box-fields";var s2=Eoe.copy.cells,Loe={kind:"spacing"},Roe=["left","center","right","justify"];function Xu(e,o,t,r="desktop"){let a=Fk(e),n=Lk(r),s=e[n]??e.size??o.sizePx,l=Rk(e,r),i=(f,m,u,h,I)=>{let S=nl[u];return Aoe({preset:f,row:m,table:Tf,unit:e[S],value:e[u],tier:r,styleValue:h,label:c(I),onPick:(w,T)=>t({[S]:w??null,[u]:T??null}),onChange:(w,T)=>t({...T?{[S]:T.unit??null}:{},[u]:w??null})})},d={key:"padding",name:c("Padding"),icon:l2(Foe,{}),unit:"px",step:Ok,shiftStep:10,min:Pk,max:Tk};return[{...vs.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(vs.fontSize,n2.fontSize,n,Math.round(o.sizePx),s2.fontSize),...n==="size"?{}:{reset:{detail:l?Boe(f=>c(f),`${l.px}px`,l.view):void 0}}},{...vs.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...vs.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...vs.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...i(vs.paragraphSpacing,n2.paragraphSpacing,"paragraphSpacing",0,s2.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,Loe,"padding",o.paddingPx,"Padding")}]}function i2({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=Xu(n,s,l),I=nh(r,t);return Ooe("div",{className:"sf-part-textbox",children:[m,l2(_oe,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:ud,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:lf,align:a?{value:n.align??s.align,allow:Roe,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 I2}from"efficient-easel/draw/client";import{jsx as Zu,Fragment as Doe,jsxs as Noe}from"react/jsx-runtime";import{Button as d2,Dialog as Moe}from"efficient-shell/ui";function f2({styleName:e,onCancel:o,onConfirm:t}){return Zu(Moe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:Noe(Doe,{children:[Zu(d2,{variant:"secondary",onClick:o,children:c("Cancel")}),Zu(d2,{variant:"primary",onClick:t,children:c("Update style")})]}),children:Zu("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 Qoe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as ete}from"efficient-easel/draw/client";import{shownTier as Qu}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as ote,viewKeyAt as tte}from"efficient-easel/draw";import{useSectionOps as rte}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as ate}from"efficient-easel/screen/lib/host";function Hoe(e){let o=new Set([...Object.keys(z(Jv,e)??{}),...z(Qv,e)??[]]);for(let[t,r]of Object.entries(z(ok,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var Woe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},c2={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},p2="Open",u2={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function ks(e){let o=e?.source?.slug;return xo(o)}function Ni(e){return z(Woe,e)??null}function m2(e,o){let t=Ni(e);return t&&Hoe(e).includes(o)?t:null}function Ju(e){let o=e?.menu?.id;return xo(o)}function IS(e){return e?c(e):null}function g2(e){return e.kind==="role"?Om[e.role]:e.kind==="custom"?"Custom":null}function nte(e){let o=Sb(e.role);return o?{kind:"role",role:o}:null}function ste(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 em(e,o,t,r){return nte(Fr(e,o))??ste(t,r)}function lte(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function y2(e,o){return[{value:Mi,label:c("No style"),description:c("Section\u2019s own")},...e.map(t=>({value:t.id,label:t.name,description:t.values.font?pd(t.values.font,o)?.label:void 0}))]}var Mi="";function ite({face:e,base:o,onPick:t}){let r=vt(),a=e.kind==="role"?e.role:Mi,n=[{label:c("No style"),value:Mi},...yb.map(s=>({label:c(Om[s]),value:s}))];return Z(Uoe,{ariaLabel:c("Style"),value:a,options:n,inline:!0,onChange:s=>t(s===Mi?null:s),renderOption:s=>s.value===Mi?It(Hi,{children:[Z("span",{className:"es-fsel-label sf-part-style-keep",children:s.label}),Z("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):Z("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${s.value})`},children:s.label}),renderValue:()=>Z("span",{style:{fontFamily:o?.fontKey?`var(${pd(o.fontKey,r)?.cssVar})`:void 0,fontWeight:o?.weight},children:IS(g2(e))}),valueText:s=>IS(g2(e))??s?.label??""})}var k2=["regionNote","regionStyle"],dte=Object.keys(xS).filter(e=>!k2.includes(e));function P2(e,o){return!e.some(o)}function fte({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=It(Hi,{children:[t,r,a]});return It("div",{className:"sf-part-panel",children:[Z(om,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function tm({source:e,slug:o,menuId:t}){let r=ate(),a=u2[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:It(v2,{children:[c(c2[e]),n?It(Hi,{children:[" ",Z(Xoe,{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(p2)})]}):null]})})}var S2=4,cte=120;function b2(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 w2({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 It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c(e.label)})}),i("regionNote")&&!f&&Z("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(m),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(m)})}),d?It(Hi,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:b2(e)})]}):a?i("regionStyle")?Z(Hi,{children:Z(Koe,{label:c("Style"),icon:Z(qoe,{}),hint:b2(e),children:Z(ite,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&Z("p",{className:"es-field-hint",children:c("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&i("sourceNote")?Z(tm,{source:n,slug:s}):null,P2([...k2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&Z(Ka,{}),Z(om,{inline:!0,name:c("Page"),onSelect:l})]})}function pte({onBack:e}){return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part is no longer here.")})}),Z("p",{children:c("The section it belonged to has been changed or removed.")}),Z(om,{inline:!0,name:c("Page"),onSelect:e})]})}function ute({onBack:e,partId:o,why:t}){return It("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:c("This part's settings did not open.")})}),Z("p",{children:c("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),Z("p",{className:"sf-note-detail",children:It("code",{children:[o," \u2014 ",t]})}),Z(om,{inline:!0,name:c("Page"),onSelect:e})]})}function T2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=Yoe(G=>G),l=rte(),i=S0(),{partStyle:d}=fs(),{fonts:f,textStyles:m}=ko(),u=vt(),h=$oe(Qoe),I=!h?.capabilities?.hasSiteTheme,{persist:S}=uT({themeFromDocument:I,tokenRef:h?.tokenRef,siteId:h?.siteId??null}),w=XT({themeFromDocument:I,persist:S}),[T,B]=x2(!1),P=ete(),g=G=>(Qu(P)!=="tablet"||t2(G))&&Goe(xS[G],P),C=zoe(null),E=a(e),A=n(e),N=E?s.components[E.type]:void 0,{key:b,row:_}=Ut(o),y=N?.fields?.[b],k=_?Dn(y,_):y,O=jt(e,o),v=E?.props??{},L=cf(k),M=Bf(k),K=xk(k),W=E?Ni(E.type):null,se=E?m2(E.type,b):null,le=_?uf(v[b],_):v[b],ee=!!_&&!(Array.isArray(v[b])&&_.index<v[b].length);hS(()=>{y0(document)||C.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[O]);let[Ie,ae]=x2(0);hS(()=>ae(0),[O]);let me=!!E&&!ee&&(!A||!k);hS(()=>{if(!me||Ie>=S2)return;let G=setTimeout(()=>ae(Fe=>Fe+1),cte);return()=>clearTimeout(G)},[me,Ie]);let ge=me&&Ie<S2,Ge=Cs(e,pr(E?.type,o),"textPart");if(!E||ee)return Z(pte,{onBack:t});let Ve=cs(E.type),Eo=Ve?Us(Ve,o):null;if(Ve&&Eo){let G=d?.partId===O?d:null,Fe=Ve[Eo],Lo=Fe.writable===!0&&!!A,St=Dt=>{A&&l.replaceComponent(A.zone,A.index,{...E,props:la(v,o,"role",Dt)})};if(Lo&&hw(Fe)){let Dt=Fr(v,o),Ls=Qr=>{if(!A)return;let Pm=v;for(let[f6,c6]of Object.entries(Qr))Pm=la(Pm,o,f6,c6??null);l.replaceComponent(A.zone,A.index,{...E,props:Pm})},Rs=jx(w.saved,w.old),i6=wx(Dt)??"",d6=Xu(Dt,G?.base??C2,Ls,Qu(P)).filter(Qr=>Qr.key==="fontSize"&&g(Qr.key));return Z(Ft,{motion:Ge,body:Z(w2,{region:Fe,sizePx:G?.base.sizePx??null,face:em(v,o,G,f),base:G?.base??null,source:W,slug:ks(v),onBack:t,shows:g,ownLook:Uk(Dt),sizedStyle:Z(h2,{style:g("style")?{value:i6,options:y2(Rs,u),onChange:Qr=>Ls(Qr?{textStyle:Qr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:d6})})})}return Z(Ft,{motion:Ge,body:Z(w2,{region:Fe,sizePx:G?.base.sizePx??null,face:em(v,o,G,f),base:G?.base??null,onFollowStyle:Lo?St:void 0,source:W,slug:ks(v),onBack:t,shows:g})})}if(!A||!k)return ge?Z("div",{className:"sf-note","aria-busy":"true"}):Z(ute,{onBack:t,partId:O,why:A?"no field":"no selector"});let Ye=G=>{l.replaceComponent(A.zone,A.index,{...E,props:G})},Je=G=>{if(pa(G).hidden!==pa(le).hidden||!L){let Fe=_?lk(v,b,_,G):{...v,[b]:G};Fe&&Ye(Fe);return}$f({node:E,propKey:o,kind:L,zone:A.zone,index:A.index},pa(G).text,l.replaceComponent)},qo=le,Qe=d?.partId===O?d:null,mo=Qe?.styleOwner,$=mo?a(mo.owner):null,de=mo&&$?n(mo.owner):null,he=!!(mo&&$&&de),De=he?$.props??{}:v,ie=he?G=>l.replaceComponent(de.zone,de.index,{...$,props:G}):Ye,Ne=he?mo.kind:pr(E?.type,o),wo=Fr(De,Ne),ke=[{partKey:Ne,face:em(De,Ne,Qe,f),sizeGroup:Qe?.sizeGroup??null,base:Qe?.base??C2,style:wo}],Rt=lte(ke,G=>G.sizeGroup),Ja=df(Qe?.inks),yr=(G,Fe)=>{let Lo=De;for(let St of ke)Lo=la(Lo,St.partKey,G,Fe);ie(Lo)},Cm=G=>G?yr("textStyle",G):As({textStyle:null,role:null}),As=G=>{let Fe=De;for(let Lo of ke)for(let[St,Dt]of Object.entries(G))Fe=la(Fe,Lo.partKey,St,Dt??null);ie(Fe)},Bo=L==="text"||L==="textarea",{text:Qa,hidden:Jt}=pa(le),et=k?.[ote]?.label??o,td=Jt?c("Show {label} on the slide",{label:c(et)}):c("Hide {label} on the slide",{label:c(et)}),Qt=It("div",{className:"sf-field-head",children:[Z(Voe,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:c(et)}),Bo&&Z(Joe,{content:td,children:Z(Zoe,{"aria-pressed":Jt,"aria-label":td,onClick:()=>Je({text:Qa,hidden:!Jt}),children:Jt?Z(I2,{name:"eye-off",size:14}):Z(I2,{name:"eye",size:14})})})]}),Jr=!M&&K,rd=!!L&&(ST(k)||M||Jt||!K),er=em(De,Ne,Qe,f),vm=er.kind==="role"?er.role:null,Sr=wx(wo)??KT(vm),ad=jx(w.saved,w.old),km=Object.entries(wo).filter(([G,Fe])=>G!=="role"&&G!=="textStyle"&&Fe!==void 0).length,nd=()=>{let G=De;for(let Fe of ke){let{role:Lo,textStyle:St}=Fe.style;G=Ak(G,Fe.partKey),Lo&&(G=la(G,Fe.partKey,"role",Lo)),St&&(G=la(G,Fe.partKey,"textStyle",St))}ie(G)},yt=Sr,sd=VT(ke[0].style),Fs=yt?ad.find(G=>G.id===yt)?.name??yt:"",Bs=()=>{B(!1),yt&&(w.write(YT({saved:w.saved,old:w.old,styleId:yt,values:qT(ke[0].style)}),!0),nd())};return It(fte,{sectionName:N?.label??E.type,onBack:t,tabs:G=>Z(Ft,{motion:Ge,body:G}),textEditor:g("words")?Z("div",{ref:C,className:"sf-part-text",children:rd?Z(i2,{text:Qa,onTextChange:G=>Je(Bo?{text:G,hidden:Jt}:G),multiline:pf(L),markup:L!=="plainText",styled:!1,style:ke[0].style,base:ke[0].base,setValue:As,colors:Ja,placeholder:IS(rk(k))??void 0,ariaLabel:c(et),head:Qt,typedOnCanvas:i===O}):L?Bo?Qt:null:Z(joe,{field:k,name:o,value:qo,onChange:Je,id:`sf-part-${e}-${o}`})}):void 0,children:[se&&g("sourceNote")&&Z(tm,{source:se,slug:ks(v),menuId:Ju(v)}),Jr&&Z(h2,{style:g("style")?{value:Sr??"",options:y2(ad,u),onChange:G=>Cm(G||null),changed:km>0,onEditStyles:r,onUpdateStyle:yt&&sd?()=>B(!0):void 0}:void 0,font:g("font")?{value:wo.font??"",styleValue:pd(ke[0].base.fontKey,u)?.label,options:gb(u).map(G=>({label:G.label,value:G.key})),onChange:G=>yr("font",G||null)}:void 0,italic:g("italic")?{value:wo.italic,styleValue:xte(m,Sr),onChange:G=>yr("italic",G??null)}:void 0,cells:Xu(ke[0].style,ke[0].base,As,Qu(P)).filter(G=>g(G.key)),align:g("align")?mte(wo,ke[0].base.align,Qu(P),yr):void 0,letterCase:g("letterCase")?{value:wo.case??"",styleValue:ke[0].base.case,onChange:G=>yr("case",G||null)}:void 0}),T&&yt&&Z(f2,{styleName:Fs,onCancel:()=>B(!1),onConfirm:Bs}),Jr&&Rt===null&&g("fixedSizeHint")&&Z(v2,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),P2(dte,G=>g(G)&&(G==="words"||(G==="sourceNote"?!!se:G==="fixedSizeHint"?Jr&&Rt===null:Jr)))&&Z(Ka,{})]})}function mte(e,o,t,r){let a=tte("align",t),n=Bk(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function xte(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var C2={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 wte}from"react/jsx-runtime";import{useCallback as Cte,useRef as vte,useState as zi}from"react";import{InspectorIconButton as kte}from"efficient-easel/chrome";import{useEasel as Pte}from"efficient-easel/easel";import{LoadingSpinner as Tte,PopupMenu as Ote,PopupMenuItem as Ete,PopupMenuLabel as vS}from"efficient-shell/ui";import{CopyToPageIcon as _te}from"efficient-easel/icons";import{useEaselSession as Ate}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Fte}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as Bte}from"efficient-easel/draw";import{newId as gte}from"efficient-easel/data";import{isBackendError as Ps}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as N2}from"efficient-easel/screen/lib/session";var rm=XP(),gS=rm.set;function am(e,o){gS(e,o)}function nm(e,o){let t=rm.get(e);gS(e,o??(t==="live"?"changed":t))}function sm(e,o){gS(e,o??"live")}function O2(e){return rm.get(e)}function E2(e){return rm.use(e)}function _2(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 A2(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var F2="SharedSection",hte=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Wi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},$i=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function B2(e){if(e?.type!==F2)return null;let o=e.props?.section;return typeof o=="string"&&hte.test(o)?o.toLowerCase():null}function L2(e){let o=[];for(let t of Wi(e)){let r=B2(t),a=$i(t);r&&a&&o.push({refId:a,section:r})}return o}function lm(e){let o=Wi(e)[0];return o&&typeof o=="object"&&$i(o)?o:null}function Ite(e,o){return{type:F2,props:{id:e,section:o}}}function R2(e,o){let t=new Map,r=new Set,a=!1,n=Wi(e).map(s=>{let l=B2(s),i=$i(s);if(!l||!i||r.has(l))return s;let d=lm(o.get(l)),f=$i(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 D2(e,o,t){let r=new Map,a=!1,n=Wi(e).map(s=>{let l=$i(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=Wi(d).slice(1),m=lm(d);return r.set(i.section,m===s?d:{...d,content:[s,...f]}),a=!0,i.reference??Ite(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function wS(e){return!!(e?.publish&&e.liveState)}function yte(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 Ste(e,o){return async(t,r)=>{try{await pT()}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"?Af({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&&(am(n.id,n.live),rT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(nm(a,i.live),aT(a,i.videoFrames),ca(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:wS(t)?Ste(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(sm(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 bte(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 b=O2(n.id);return b==="changed"||b==="never"||b===void 0&&l},S=b=>{u={...u,...b,docId:n?.id??null,unpublished:I(),sections:[...f.values()],rootProps:eT(n?.layout)};for(let _ of h)_()},w=(b,_,y)=>{_?f.set(b,{section:b,title:i.get(b)?.title??"",problem:_,holder:y}):f.delete(b)},T=b=>b&&typeof b=="object"&&!Array.isArray(b)?b:{},B=b=>s.has(b),P=()=>new Map([...i].map(([b,_])=>[b,_.layout])),g=()=>gte("SharedSection"),C=(b,_,y,k)=>{let O=T(_);i.set(b,{layout:O,version:y,savedJson:JSON.stringify(O),title:k})},E={state:()=>u,subscribe:b=>(h.add(b),()=>{h.delete(b)})},A={sectionOf:b=>d.get(b)?.section??null,heldElsewhere:b=>{let _=d.get(b)?.section;return!!(_&&f.get(_)?.problem==="lock")},adopt:(b,_)=>{C(_.id,_.layout,_.layout_updated_at,_.title),d.set(b,{section:_.id,refId:g()}),m.set(_.id,_.used_on),S({})},place:b=>{if([...d.values()].some(k=>k.section===b.id))return null;let _=lm(T(b.layout)),y=typeof _?.props?.id=="string"?_.props.id:null;return!_||!y||!_.type?null:(C(b.id,b.layout,b.layout_updated_at,b.title),d.set(y,{section:b.id,refId:g()}),m.set(b.id,b.used_on),_)},usedOn:b=>m.get(b)??null,learn:b=>{for(let _ of b){m.set(_.id,_.used_on);let y=i.get(_.id);y&&(y.title=_.title);let k=f.get(_.id);k&&f.set(_.id,{...k,title:_.title})}S({})}},N=async(b,_)=>{for(let[y,k]of b){let O=i.get(y),v=JSON.stringify(k);if(!(!O||v===O.savedJson||f.get(y)?.problem==="lock"))try{let L=await e.save(y,{layout:k},{version:O.version,clientId:_??""});nm(y,L.live),O.layout=k,O.version=L.version,O.savedJson=v,w(y,null)}catch(L){Ps(L,"changed-elsewhere")?w(y,"conflict"):Ps(L,"lock-taken")?w(y,"lock",L.holder??void 0):w(y,"save")}}b.size&&ca(),S({})};return{resolve:async b=>{if(Ux(b===Br?null:E),Lx(b===Br?null:A),i=new Map,d=new Map,f=new Map,m=new Map,b===Br)return t.resolve(b);let _=!1,[y,k]=await Promise.all([t.resolve(b),e.load({slug:Br,...o}).catch(()=>(_=!0,null))]);if(k&&!yT(y?.layout)){am(k.id,k.live);let W=T(k.layout);n={id:k.id,layout:W,version:k.version,savedJson:""}}else n=null;if(l=!1,!y)return S({conflict:null,saveFailed:!1,loadFailed:_}),y;let O=T(y.layout),v=L2(O),L=await Promise.all(v.map(W=>e.load({id:W.section,...o}).catch(()=>null)));v.forEach((W,se)=>{let le=L[se];le?(am(le.id,le.live),C(W.section,le.layout,le.version,"")):(i.delete(W.section),f.set(W.section,{section:W.section,title:"",problem:"load"}))});let M=R2(O,P());if(d=M.held,!n)return d.size&&s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:_}),d.size?{...y,layout:M.working}:y;let K=oT(M.working,n.layout);return n.savedJson=JSON.stringify(Bx(K,n.layout).chrome),s.add(y.id),S({conflict:null,saveFailed:!1,loadFailed:!1}),{...y,layout:K}},saveLayout:async(b,_,y,k)=>{if(!B(b))return t.saveLayout(b,_,y,k);let O=n,v=O?Bx(_,O.layout):{page:_,chrome:null},L=D2(v.page,d,P()),M=await t.saveLayout(b,L.page,y,k);if(await N(L.docs,k),!O)return M;let K=JSON.stringify(v.chrome);if(!v.chrome||K===O.savedJson||u.lockHolder)return M;try{let W=await e.save(O.id,{layout:v.chrome},{version:O.version,clientId:k??""});nm(O.id,W.live),ca(),O.layout=v.chrome,O.version=W.version,O.savedJson=K,l=!0,S({conflict:null,saveFailed:!1})}catch(W){Ps(W,"changed-elsewhere")?S({conflict:W.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Ps(W,"lock-taken")?S({lockHolder:W.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):S({saveFailed:!0})}return M},publish:t.publish?async(b,_)=>{let y=await t.publish(b,_),k=n;if(k&&B(b)&&!a&&e.publish&&I()&&!u.lockHolder){let O=await e.publish(k.id,k.version?{version:k.version}:void 0);sm(k.id,O.live),O.version!==null&&(k.version=O.version),l=!1,S({})}if(B(b)&&!a&&e.publish)for(let[O,v]of i){if(f.get(O)?.problem==="lock")continue;let L=await e.publish(O,v.version?{version:v.version}:void 0);sm(O,L.live),L.version!==null&&(v.version=L.version)}return y}:void 0,lock:r?{claim:async(b,_,y)=>{let k=await r.claim(b,_,y);if(!B(b))return k;let O=n;if(O)try{await r.claim(O.id,_,!1),u.lockHolder&&S({lockHolder:null})}catch(v){Ps(v,"lock-taken")&&S({lockHolder:v.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let v of i.keys())try{await r.claim(v,_,!1),f.get(v)?.problem==="lock"&&w(v,null)}catch(L){Ps(L,"lock-taken")&&w(v,"lock",L.holder??void 0)}return i.size&&S({}),k},release:async(b,_)=>{if(await r.release(b,_),!B(b))return;let y=n;y&&!u.lockHolder&&await r.release(y.id,_).catch(()=>{});for(let k of i.keys())f.get(k)?.problem!=="lock"&&await r.release(k,_).catch(()=>{})}}:void 0,pinnedChrome:E}}function im(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:s0(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 G2e(e,o,t){return e.update(o,l0(t))}function K2e(e,o=_o(),t=Lg(),r={}){let a=N2(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=im(o.pages),u=bS(m,e,f),h=d?bte(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,...M2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:yte(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function q2e(e,o=_o(),t=Lg()){let r=N2(o),a=o.templates,n=a?im(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),...M2(bS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function M2(e){return{resolve:o=>(Ux(null),Lx(null),e(o))}}var SS="This editor's backend has no website templates.";function Lte(e,o,t){let r=Fte(e,void 0,o);return t?.(r)??r}function H2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=zi(!1),[i,d]=zi(null),f=Ate(),m=Pte(A=>A.config.components),[u,h]=zi(!1),[I,S]=zi(null),w=vte(null),[T,B]=zi(null),P=Cte(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{d(await _o(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),g=()=>{if(s){l(!1);return}let A=w.current?.getBoundingClientRect();A&&B({top:A.bottom+6,right:Math.max(8,window.innerWidth-A.right)}),d(null),h(!1),P(),l(!0)},C=(i??[]).filter(A=>A.slug!==o),E=async A=>{if(I)return;S(A.slug);let N=Lte(e,m,f.documentHooks?.storedNode),b=await a(()=>Rte(_o(f).pages,A,N));S(null),l(!1),n?.(b?c("Duplicated to \u201C{name}\u201D",{name:A.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),b?"success":"error")};return CS(wte,{children:[Bt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Bt(kte,{buttonRef:w,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:g,children:Bt(_te,{size:15})})}),s&&T&&Bt(Ote,{portal:!0,style:{top:T.top,right:T.right},onClose:()=>l(!1),children:CS("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Bt(vS,{children:c("Duplicate to page")}),u?Bt(vS,{children:c("Couldn\u2019t load pages")}):i===null?Bt(Tte,{label:c("Loading\u2026")}):C.length===0?Bt(vS,{children:c("No other pages")}):C.map(A=>CS(Ete,{role:"menuitem",disabled:I!==null,onClick:()=>{E(A)},children:[Bt("span",{className:"min-w-0 flex-1 truncate",children:A.label}),I===A.slug?Bt("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):A.draft&&Bt("span",{className:"shrink-0 text-xs",children:c("draft")})]},A.id))]})})]})}async function Rte(e,o,t){let r=im(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===Bte);s.splice(l===-1?s.length:l,0,ZP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as dre}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as fre}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as S4e,isSelectionMode as ES}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as cre}from"efficient-easel/draw/client";import{jsx as Ui,jsxs as Dte}from"react/jsx-runtime";import{SettingsDrill as Nte}from"efficient-easel/panel";import{UiIcon as Mte}from"efficient-easel/draw/client";var Hte="Not shown on the page";function Wte({part:e,onOpen:o}){return Ui(Nte,{name:c(e.label),preview:e.offPage?c(Hte):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?Ui("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:Ui(Mte,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function kS(e){return e.filter(o=>!o.identifier)}function W2({parts:e,onOpen:o,heading:t=!0}){let r=kS(e);return r.length?Dte("div",{className:"sf-entries",children:[t?Ui("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>Ui(Wte,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as pre,ROOT_ZONE as Q2}from"efficient-easel/draw";import{newId as $te}from"efficient-easel/data";import{HEADER_TYPE as Ko,FOOTER_TYPE as Re,newNodeId as zte}from"efficient-easel/draw";function dm(){return{type:Ko,props:{id:zte(Ko)}}}var $2=[{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"}],Ute=$2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),jte="FooterGroup",z2="blocks";function U2(e){return e===Re?$2:e===jte?Ute:null}function fm(){let e=(o,t)=>({type:o,props:{id:$te(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...eP}),e("FooterPayment",{...hf})]}function PS(e){switch(e?.type){case Mo:case ao:return c("On every page");case Ko:case Re:return c("On every page \xB7 old style");default:return null}}var j2=()=>null,G2=()=>c("Changed on every page");function cm(e,o){let t=KC(e,o);if(t)return t;let r=pP(e,o);if(!r)return null;let a=r.group===Mo;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 pm,Fragment as Kte,jsxs as qte}from"react/jsx-runtime";import{useState as Vte}from"react";import{createNode as Yte,newId as Xte}from"efficient-easel/data";import{useEasel as Zte}from"efficient-easel/easel";import{Banner as Jte,Button as TS}from"efficient-shell/ui";import{useScreenDocument as Qte}from"efficient-easel/screen/components/ScreenDocumentContext";var Gte=["FooterPayment"];function K2(e,o){let{id:t,...r}=e.props;for(let a of Nt(e))r[a]=r[a].map(n=>K2(n,o));return o(e.type,r)}var ji=(e,o)=>{if(!Gte.includes(e.type))return null;Jp();let t=Hr(e.type);return t?Ea({type:e.type,props:{...e.props}},t).nodes.map(r=>K2(r,o)):null};function q2(){let{appState:e,dispatch:o,config:t}=Zte(f=>f),{readOnly:r}=Qte(),[a,n]=Vte(!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)=>Yte(t,f,m),d=()=>{let f=fi(l,i,Xte(ao),ji);o({type:"setData",data:m=>({...m,content:[...gf(m.content,f)]}),recordHistory:!0}),n(!1)};return pm(Jte,{tone:"info",title:c("This footer uses the old layout"),action:a?qte(Kte,{children:[pm(TS,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),pm(TS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):pm(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 ere}from"react/jsx-runtime";import{InspectorUpLevel as V2}from"efficient-easel/chrome";function Y2({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Ku(),n=Cs(e,o,"picture");return ere("div",{children:[o!=="media"?OS(V2,{inline:!0,name:c(xr.media),onSelect:()=>a(ka(e,"media"))}):OS(V2,{inline:!0,name:c(t),onSelect:r}),OS(Ft,{part:o,motion:n,itemWord:c(xr[o])})]})}import{HintsToggle as ure,SettingsSwitch as mre,hintsFoldClass as xre}from"efficient-easel/panel";import{useHints as hre}from"efficient-easel/screen/lib/hints";var o5={kind:"header"},AS={kind:"website"},t5={kind:"website",tab:Mf,revealPageGroup:!0},r5={kind:"chat"},a5={kind:"social"},Gi="Part";function Ire(e){return c("Part of {name}",{name:c(e)})}function gre(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Ire(r.label):c(Gi)}}function yre(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 n5({what:e}){let o=yre(e);return Zr("div",{className:"sf-note",children:[we("p",{children:we("strong",{children:o.title})}),Zr("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=Kl[e];return{name:xr[e],kindLabel:Gi,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=e5({name:c(Yc(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(Y2,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Sre={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(Hf,{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(VH,{unavailable:we(n5,{what:"Social link"})})},ticker:{name:Ma,kindLabel:Gi,icon:"ticker",head:(e,o)=>e.kind==="ticker"?gre(o,e.heroId,c(Ma)):null,render:e=>we(a2,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:_S("media"),heroImage:_S("image"),heroImage2:_S("image2"),part:{name:Gi,kindLabel:Gi,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?Dn(t.fields[r],a):t.fields[r],s=cs(t.type),l=s?Us(s,e.propKey):null,i=s&&l?s[l].label:NO[e.propKey],d=i?c(i):dk(c(xf(hk(n??{},r))),a),f=e5({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(T2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},bre=new Set(["header","website","chat"]);function wre(e,o){if(e==="selection")return null;let t=Sre[e];return bre.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>we(n5,{what:t.name})}:t}function s5({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}=dre(),{rows:S}=hl(),w=S?.find(de=>de.slug===f)??null,T=tre(),B=Object.keys(T.fields).some(de=>!de.startsWith("_")&&!Gx.includes(de)),{websiteName:P}=ko(),g=fre({readOnly:h}),{select:C}=cre(),{selectedItem:E,getItemById:A,getSelectorForId:N,config:b,appState:_}=ore(de=>de),y=lre(b,E?{type:E.type,props:E.props}:null),k=E?yk(y??b.components[E.type]?.fields,E.props):[],O=de=>b.components[de]?.label??de,v=E?N(E.props.id):void 0,L=wre(e.kind,l),M=ire(),K={capabilities:l,tokenRef:i,hostPanels:M.chrome?.panels,describeNode:de=>{let he=A(de);if(!he)return null;let De=b.components[he.type];return{type:he.type,label:De?.label??he.type,fields:De?.fields??{},props:he.props??{}}},siteId:m,websiteName:P??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},W=L?.head?.(e,K)??null,se=DH({kind:w?.kind,pageName:w?.label}),le=W?.name??(L?c(L.name):E?c(O(E.type)):se.name),ee=W?.kindLabel??(L?c(L.kindLabel):E?v&&v.zone!==Q2?c("Block"):c("Section"):se.kindLabel),Ie=L?L.icon:E?E.type:"page",ae=ES(e)&&E?Ni(E.type):null,me=!!E&&!!v&&v.zone===Q2&&E.type!==Re&&E.type!==pre,ge=cm(_?.data,E),Ge=()=>{ge||v&&g.duplicateComponent(v.zone,v.index)},Ve=()=>{v&&(g.removeComponent(v.zone,v.index),g.select(null))},Eo=E?b.components[E.type]?.defaultProps?.previewHover:void 0,Ye=ES(e)&&!!E&&!!v&&Eo!==void 0,Je=Ye&&E.props.previewHover===!0,qo=()=>{!E||!v||g.replaceComponent(v.zone,v.index,{...E,props:{...E.props,previewHover:!Je}})},{shown:Qe,setShown:mo}=hre(),$=!!(L||E||B);return Zr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${xre(Qe)}`.trim(),children:[we(are,{icon:we(ja,{type:Ie,size:15}),name:le,kind:ee,actions:!a&&ES(e)&&E&&E.type!==Re?Zr(X2,{children:[we(Z2,{label:c("Duplicate section"),title:ge??void 0,disabled:ge!==null,onClick:Ge,children:we(nre,{size:15})}),me&&l.hasSiteSettings&&we(H2,{node:E,currentSlug:f,siteId:m??void 0,tokenRef:i,runAuthed:u,onNotify:n}),we(Z2,{label:c("Remove section"),danger:!0,onClick:Ve,children:we(sre,{size:15})}),s?we(J2,{side:"right",onHide:s,divider:!0}):null]}):s?we(J2,{side:"right",onHide:s}):void 0}),Ye&&Zr("div",{className:"sf-preview-pin",children:[Zr("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(mre,{checked:Je,onChange:qo,ariaLabel:c("Preview hover state")})]}),Zr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[L?L.render(e,K):E?Zr(X2,{children:[E.type===Re&&l.hasSiteSettings&&we(q2,{}),we(cT,{children:we(Ft,{entries:we(W2,{parts:k,heading:!1,onOpen:de=>C(jt(E.props.id,de))}),entryCount:kS(k).length,itemWord:le})}),ae&&we(tm,{source:ae,slug:ks(E?.props),menuId:Ju(E?.props)})]}):B?we(Ft,{omit:Gx}):we(rre,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),$&&we(ure,{shown:Qe,onChange:mo,label:c("Show hints")})]})]})}import{jsx as p,jsxs as F,Fragment as c5}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 Cre={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)"},Ae=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function gr({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 F("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 mm({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function l5({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return F(c5,{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 F("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...Ae(x.paper,x.paper2,150)},children:p(gr,{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 Ir({k:e,v:o,ok:t}){return F("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}),F("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 ve({title:e,children:o}){return F("div",{style:{...V,background:x.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(mm,{children:e}),o]})}function i5({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 LS({filled:e=5,size:o=6}){return F("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 Ki({n:e,label:o,tone:t=x.text}){return F("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 to({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:x.muted,width:o,display:"block"},children:e})}function um({label:e,w:o="100%",filled:t}){return F("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 d5({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 vre={wheelslisting:p(ve,{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])=>F("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...Ae(x.paper,x.paper2,150)},children:p(gr,{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:F("div",{style:{...V,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[F("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>F("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"})]}),F("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:F("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...Ae(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:x.onInk},children:"Will it fit your rig?"}),F("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>F("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(ve,{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])=>F("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(ve,{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:F(ve,{title:"Will it fit your car?",children:[p("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>F("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])=>F("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:F("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)=>F("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))}),F("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:F("div",{style:{...V,background:x.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(mm,{children:"Buy it with"}),F("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(gr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.muted},children:"+"}),F("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:F("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...Ae(x.ink,x.ink2)},children:[F("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(ve,{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])=>F("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(ve,{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])=>F("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(ve,{title:"Our studios",children:F("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=>F("div",{style:{position:"relative",minHeight:0},children:[p(j,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${x.scrim} 45%),${Ae(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(ve,{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])=>F("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}),F("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(j,{r:3,style:{...V,...Ae(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(ve,{title:"Send us a message",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[F("div",{style:{display:"flex",gap:5},children:[p(um,{label:"Name"}),p(um,{label:"Email"})]}),p(um,{label:"Message",filled:!0}),p(d5,{children:"SEND"})]})}),appointmentbooking:p(ve,{title:"Book a fitting",children:F("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(ve,{title:"Leave a review",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(LS,{filled:4,size:14}),p(um,{label:"Your review",filled:!0}),p(d5,{children:"POST"})]})}),submitbuild:p(ve,{title:"Show us your build",children:F("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:F("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"}),F("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:F("div",{style:{...V,overflow:"hidden",...Ae(x.ink,x.inkSoft2)},children:[p(gr,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${x.scrim},transparent 62%)`}}),F("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:F("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(to,{children:"Every failure starts in the same place:"}),p(to,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:F("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(to,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(to,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(to,{w:"80%",children:"Width follows from the space left."})]}),series:p(ve,{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])=>F("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(ve,{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])=>F("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...Ae(e,o,150)}}),F("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:F("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])=>F("div",{style:{display:"flex",gap:5},children:[p("b",{style:{fontSize:"3.98cqw",color:x.rust,flex:"none"},children:e}),p(to,{children:o})]},e))}),docmetacards:p(ve,{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])=>F("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:F("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}}),F("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(to,{children:"Unfitted wheels come back within 30 days, no questions."}),p(to,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:F("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."}),F("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(to,{children:"Forged, correctly offset, rated for what you actually"}),p(to,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:p(ve,{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=>F("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:F("div",{style:{...V,background:x.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[F("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p(Ki,{n:"27k",label:"Rigs"}),p(Ki,{n:"4.9",label:"Rating"})]}),F("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(to,{children:"Twelve years of fitting the same three questions, and the"}),p(to,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:F(ve,{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",...Ae(x.inkSoft,x.ink)},children:F("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))}),F("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,...Ae(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",...Ae(x.ink,x.ink2)},children:F("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(ve,{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)=>F("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}}),F("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),p(to,{children:o})]})]},e))})}),timelinetrack:F("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...Ae(x.ink,x.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"Milestones"}),F("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)=>F("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:F("div",{style:{...V,overflow:"hidden",...Ae(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:F("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:x.rust},children:[F("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:F("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?"}),F("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:F("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...Ae(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)=>F("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&p("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:x.warm},children:":"}),F("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:F("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:F("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:F("div",{style:{...V,overflow:"hidden",background:x.card},children:[p("div",{style:{position:"absolute",inset:0,...Ae(x.ink,x.inkSoft2)}}),p(gr,{size:64,style:{right:8,top:6}}),F("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(to,{children:"One shed, one lathe, one idea."}),p(to,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:p(ve,{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,...Ae(e,o,140+t*22)}},t))})}),gallery:F(ve,{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,...Ae(e,o,150+t*20)}},t))})]}),ordersummary:F(ve,{title:"Order summary",children:[F("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[p("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...Ae(x.paper,x.paper2,150)},children:p(gr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),F("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"})]})]}),F("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(Ir,{k:"Subtotal",v:"$1,956"}),p(Ir,{k:"Fitting",v:"Free"}),F("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(ve,{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])=>F("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:F("div",{style:{...V,background:x.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(mm,{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:F("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...Ae(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"}),F("div",{style:{display:"flex",gap:8},children:[p(Ki,{n:"27k",label:"Rigs fitted",tone:x.onInk}),p(Ki,{n:"12",label:"Years",tone:x.onInk}),p(Ki,{n:"4.9",label:"Avg rating",tone:x.warm})]})]}),testimonials:F("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(LS,{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"}),F("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p(i5,{}),p("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:F(ve,{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,...Ae(e,o,140+t*15)}},t))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>F("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(i5,{size:12}),F("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[F("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[p("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),p(LS,{filled:o})]}),p(to,{children:t})]})]},e))})]}),logos:F("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...Ae(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:F("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"}),F("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:x.rust,marginTop:1},children:"T"}),F("div",{style:{display:"flex",flexDirection:"column"},children:[p(to,{children:"he number on the back of your wheel decides whether the"}),p(to,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:p(ve,{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])=>F("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(to,{children:o})]},e))})}),faq:p(ve,{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])=>F("div",{style:{borderBottom:`1px solid ${x.rule}`,padding:"4px 2px"},children:[F("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(to,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:F("div",{style:{...V,overflow:"hidden",...Ae(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(l5,{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(gr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:F("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(l5,{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",...Ae(x.inkSoft,x.inkSoft2)},children:p(gr,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(ve,{title:"Best sellers",children:F("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(ve,{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,...Ae(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:F("div",{style:{...V,display:"flex",background:x.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",...Ae(x.paper,x.paper2,150)},children:p(gr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),F("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(ve,{title:"Specifications",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(Ir,{k:"Diameter",v:'20"'}),p(Ir,{k:"Width",v:"9.0J"}),p(Ir,{k:"Offset",v:"+12"}),p(Ir,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(ve,{title:"Will it fit?",children:F("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(Ir,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(Ir,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(Ir,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:F("div",{style:{...V,background:x.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(mm,{children:"How it works"}),p("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>F("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,...Ae(t?x.rust:x.inkSoft,t?x.warm:x.inkSoft2)}},"art"),a=F("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])=>F("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))})},f5={subscribe:F("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[F("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[F("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}}),F("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${so.line}`,borderRadius:7,padding:10},children:[F("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}}),F("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"})]})]}),F("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)=>F("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:F("div",{style:{...V,display:"flex"},children:[p("div",{style:{width:"44%",background:FS}}),F("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:F(c5,{children:[p(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),F("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[F("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:F("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(j,{w:"22%",h:12,r:4,tone:"dark"}),F("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:F("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[F("div",{style:{display:"flex",gap:14},children:[F("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=>F("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}}),F("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:F("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:F("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:F("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:F("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:F("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:F("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(j,{w:"56%",h:8,r:3,tone:"dark"}),F("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:F("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:F("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:F("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:F("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[F("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"})]}),F("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:F("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p("div",{style:{height:1,background:so.line}}),F("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"38%",h:5,r:2,tone:"soft"}),F("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 p5({type:e}){let o=Cre[e]??"",t=vre[o]??f5[o]??f5.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 wm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as Ts,jsxs as u5}from"react/jsx-runtime";import kre from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Pre}from"efficient-easel/rail";import{Tooltip as Tre}from"efficient-shell/ui";import{HintsToggle as Ore,hintsFoldClass as Ere}from"efficient-easel/panel";import{useHints as _re}from"efficient-easel/screen/lib/hints";function m5({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Ln(),{shown:d,setShown:f}=_re();return u5("div",{className:`sf-styles ${Ere(d)}`.trim(),children:[Ts(kre,{icon:Ts(Pre,{}),title:c("Styles"),context:Ts(Tre,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Ts("span",{className:"sf-name-text",children:i})})}),u5("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Ts(Hf,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Ts(Ore,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as po,jsxs as Xa,Fragment as Rre}from"react/jsx-runtime";import{Fragment as k5,useEffect as P5,useRef as WS}from"react";import{useTreeDrag as T5}from"efficient-easel/drag";import{GlobeIcon as Dre,ImageIcon as Nre,LocationIcon as Mre,MapIcon as Hre,TextLinesIcon as Wre,TrashIcon as O5}from"efficient-easel/icons";import{Subtree as E5,TreeRow as Vi,TreeRowAction as _5,TreeSeam as A5}from"efficient-easel/tree";import{useEaselStrings as $re}from"efficient-easel/strings";import{isSelectionMode as zre}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Are}from"react";var Fre={level:"groups"},h5=Fre,RS=new Set;function Lt(e){h5=e;for(let o of RS)o()}function Bre(e){return RS.add(e),()=>{RS.delete(e)}}var x5=()=>h5;function I5(){return Are(Bre,x5,x5)}var qi=e=>String(e?.group??""),DS=new WeakMap,Lre=0;function xm(e){let o=DS.get(e);return o||(o=`loc${++Lre}`,DS.set(e,o)),o}var g5=(e,o)=>o||e||"Ungrouped",y5={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
337
+ Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Ya(e){return wd(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),S5=(e,o,t)=>Math.min(Math.max(e,o),t);function hm(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=Ya(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=S5(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=Ya(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,xm(i));let f=S5(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),NS(n)}function b5(e,o){let t=Ya(e),r=t.find(n=>n.key===o),a={...y5,group:o,groupName:r?.name??""};return r?(r.cards.push(a),NS(t)):[...e,a]}function w5(e){let o=new Set(Ya(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...y5,group:r,groupName:""}],key:r}}function C5(e,o){return e.filter(t=>qi(t)!==o)}function v5(e,o,t){let r=hm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function J4e(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 Q4e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>qi(n)===r);return a.length?a:t(r)})}var gm="ContactLocations",Im=e=>({parentId:`locations-${e}`,slot:"groups"}),$S=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function F5(e,o){let{readOnly:t,selected:r}=o,a=$re().tree,n=o.data?.content??[],s=zre(e),l=WS(null);P5(()=>{let P=r?.type===gm?String(r.props.id):null;P&&P!==l.current&&Lt({level:"groups"}),l.current=P},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:f}=eR(),m=I5(),u=(P,g)=>{let C=n[P];C&&o.replace(P,{type:C.type,props:{...C.props,locations:g}})},h=P=>{let g=n[P]?.props?.locations;return Array.isArray(g)?g:[]},I=T5({keyOf:P=>`group:${P.si}:${P.index}`,readOnly:!!t,canDrop:(P,g)=>g.parentId===Im(P.si).parentId&&g.slot==="groups",onDrop:(P,g)=>{u(P.si,MS(h(P.si),P.index,g.index)),m.level==="city"&&Lt({level:"groups"})},onStep:(P,g)=>{u(P.si,MS(h(P.si),P.index,g<0?P.index-1:P.index+2)),m.level==="city"&&Lt({level:"groups"})}}),S=T5({keyOf:P=>`city:${P.si}:${P.group}:${P.index}`,readOnly:!!t,canDrop:(P,g)=>g.parentId===Im(P.si).parentId&&g.slot.startsWith("cities:"),onDrop:(P,g)=>{let C=g.slot.slice(7);u(P.si,HS(h(P.si),P.group,P.index,C,g.index)),Lt({level:"group",key:C})},onStep:(P,g)=>{u(P.si,HS(h(P.si),P.group,P.index,P.group,g<0?P.index-1:P.index+2)),m.level==="city"&&Lt({level:"group",key:P.group})}}),w=WS(n);w.current=n;let T=WS(()=>{});P5(()=>{f(P=>{let g=ru(P);if(!g)return;let C=w.current.findIndex(E=>E.props?.id===g.nodeId);C<0||T.current(C,{level:g.part,index:g.index})})},[f]);let B=(P,g)=>{l.current=n[P]?.props?.id??null,o.select(P),Lt(g),e.reveal();let C=n[P]?.props?.id;typeof C=="string"&&(g.level==="city"||g.level==="image"||g.level==="map")?d(tu(C,g.index,g.level)):d(null),typeof C=="string"&&o.scrollTo(C)};return T.current=B,{renderLocationTree:(P,g,{rowClick:C,isCollapsed:E,toggleCollapse:A})=>{let N=h(g),b=Ya(N),_=String(P.props.id),y=s&&r?.props.id===_,k=v=>po(A5,{...t?{}:I.seam({place:{...Im(g),index:v}})},`seam:${_}:groups:${v}`),O=(v,L)=>po(A5,{...t?{}:S.seam({place:{...$S(g,v),index:L}})},`seam:${_}:cities:${v}:${L}`);return Xa(Rre,{children:[po(Vi,{icon:po(Wre,{size:13}),name:c("Texts"),words:a,onSelect:()=>B(g,{level:"texts"}),selected:y&&m.level==="texts",rowProps:{onClick:C(()=>B(g,{level:"texts"}))}}),b.map((v,L)=>{let M=`${_}::grp::${v.key}`,K=E(M),W=y&&m.level==="group"&&m.key===v.key,se=v.name||v.key?g5(v.key,v.name):c("Ungrouped"),le={...$S(g,v.key),index:v.cards.length},ee=S.row({item:{si:g,group:v.key,index:-1},place:le,into:le,canDrag:!1},{onClick:C(()=>B(g,{level:"group",key:v.key}))}),Ie=I.row({item:{si:g,index:L},place:{...Im(g),index:L}},ee.rowProps);return Xa(k5,{children:[L===0&&k(0),po(Vi,{icon:po(Dre,{size:13}),name:se,words:a,onSelect:()=>B(g,{level:"group",key:v.key}),selected:W,draggable:Ie.draggable,dragging:Ie.dragging,drop:Ie.drop??ee.drop,fold:{open:!K,label:c("group"),onToggle:()=>A(M)},actions:po(_5,{kind:"delete",label:$t("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",v.cards.length,{label:se}),onClick:()=>{u(g,C5(N,v.key)),Lt({level:"groups"})},children:po(O5,{size:15})}),rowProps:Ie.rowProps,count:v.cards.length,countLabel:$t("{n} city","{n} cities",v.cards.length)}),!K&&Xa(E5,{children:[v.cards.map((ae,me)=>{let ge=hm(N,v.key,me),Ge=y&&m.level==="city"&&m.index===ge,Ve=String(ae?.name??"")||c("City"),Eo=`${_}::city::${xm(ae)}`,Ye=E(Eo),{rowProps:Je,...qo}=S.row({item:{si:g,group:v.key,index:me},place:{...$S(g,v.key),index:me}},{onClick:C(()=>B(g,{level:"city",index:ge}))});return Xa(k5,{children:[me===0&&O(v.key,0),po(Vi,{icon:po(Mre,{size:13}),name:Ve,words:a,onSelect:()=>B(g,{level:"city",index:ge}),selected:Ge,...qo,fold:{open:!Ye,label:Ve,onToggle:()=>A(Eo)},actions:po(_5,{kind:"delete",label:c("Delete {name}",{name:Ve}),onClick:()=>{u(g,v5(N,v.key,me)),Lt({level:"group",key:v.key})},children:po(O5,{size:15})}),rowProps:Je}),!Ye&&Xa(E5,{children:[po(Vi,{icon:po(Nre,{size:13}),name:c("Image"),words:a,onSelect:()=>B(g,{level:"image",index:ge}),selected:y&&m.level==="image"&&m.index===ge,rowProps:{onClick:C(()=>B(g,{level:"image",index:ge}))}}),po(Vi,{icon:po(Hre,{size:13}),name:c("Map"),words:a,onSelect:()=>B(g,{level:"map",index:ge}),selected:y&&m.level==="map"&&m.index===ge,rowProps:{onClick:C(()=>B(g,{level:"map",index:ge}))}})]}),O(v.key,me+1)]},xm(ae))}),Xa("button",{type:"button",className:"sf-add-card",onClick:()=>{let ae=b5(N,v.key);u(g,ae);let me=Ya(ae).find(ge=>ge.key===v.key);Lt(me&&me.cards.length?{level:"city",index:hm(ae,v.key,me.cards.length-1)}:{level:"group",key:v.key})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),k(L+1)]},M)}),Xa("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:v,key:L}=w5(N);u(g,v),B(g,{level:"group",key:L})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:P=>{P?.type===gm&&Lt({level:"groups"})}}}import{useEffect as Kre,useRef as qre}from"react";import{createNode as US,newId as jS}from"efficient-easel/data";import{useEaselApi as Vre}from"efficient-easel/easel";import{useScreenDocument as Yre}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Xre}from"efficient-easel/screen/lib/session-context";import{useEffect as D5,useRef as Ure}from"react";import{useEasel as jre}from"efficient-easel/easel";import{ROOT_ZONE as zS}from"efficient-easel/draw";var Yi={};function B5(e){return Yi={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Yi}function L5(e){Yi===e&&(Yi={})}function Os(){return Yi}function R5(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 M5(e){let o=jre(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=ko(),i=Ure(new Set);D5(()=>{let d=N5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&Gre(F1(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),D5(()=>{let d=B5(N5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>L5(d)},[t,r,a,n,s,l])}function N5(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=R5({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 Gre(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 Es,missingPinnedTypes as Zre,pinnedDuplicateIds as GS}from"efficient-easel/draw";function H5(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function W5(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===Ko),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Mo)}}async function $5(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!==Mo||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Mo)?!1:(e.write(gf(r,t)),!0)}function z5(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=Yre(),f=Xre(),{hasSiteSettings:m,hasPinnedChrome:u}=r;M5(e);let h=!!r.editsPinnedInPlace&&a!==Br,I=a===Br,S=Vre().getState,w=qre(null);Kre(()=>{if(!H5({docId:n,saveStatus:l,seededDocId:w.current})||(w.current=n,!u))return;let T=S().appState.data,B=T.content,P=s?.content??[],g=(N,b)=>N.some(_=>_?.type===b);if(!m){let N=new Set(GS(B)),b=N.size?B.filter(y=>!N.has(y.props.id)):B;if(N.size&&e.setDocument({...T,content:b}),I)return;let _=Zre(b,P);if(_.includes(Re)){let y=b.length,k=e.insertSection(Re,y);e.replaceComponent(Es,y,{type:Re,props:{id:k,blocks:fm()}})}_.includes(Ko)&&e.insertNode(Es,0,dm());return}if(I){let N=fP(B);if(N!==B&&e.setDocument({...T,content:[...N]}),!N.find(b=>b.type===Re)&&!g(P,Re)&&!g(N,ao)&&!g(P,ao)){let b=(y,k)=>US(o,y,k),_={type:Re,props:{blocks:fm()}};e.insertNode(Es,N.length,fi(_,b,jS(ao),ji))}return}if(h){let N=!!t?.pinnedChrome?.state().docId,b=W5(B,{hasChromeDoc:N}),_=new Set([...b.remove,...GS(B.filter(k=>!b.remove.includes(String(k.props.id))))]),y=_.size?B.filter(k=>!_.has(String(k.props.id))):B;if(y.length!==B.length&&e.setDocument({...T,content:y}),b.seedFooter&&!g(P,Re)&&!g(P,ao)){let k=(v,L)=>US(o,v,L),O={type:Re,props:{blocks:fm()}};e.insertNode(Es,y.length,fi(O,k,jS(ao),ji))}if(b.seedHeader&&!g(P,Ko)){let k=y[0]?.type===Mo?1:0;e.insertNode(Es,k,dm())}if(b.seedSiteHeader&&!g(P,Mo)&&!g(P,Re)&&!g(P,ao)){let k=n;$5({blocks:un(f),make:(O,v)=>US(o,O,v),id:jS(Mo),siteId:i??null,token:d.current,latest:()=>S().appState.data.content,stillOpen:()=>w.current===k,write:O=>{let v=S().appState.data;e.setDocument({...v,content:[...O]})}})}return}let C=B.filter(N=>N.type!==Re),E=new Set(GS(C)),A=E.size?C.filter(N=>!E.has(N.props.id)):C;A.length!==B.length&&e.setDocument({...T,content:A}),!g(A,Ko)&&!g(P,Ko)&&e.insertNode(Es,0,dm())},[n,l,s,S,e,m,u,I,h,t,f,i,d])}import{useEffect as J5,useMemo as aae,useRef as Q5}from"react";import{useEasel as nae}from"efficient-easel/easel";import{newId as sae}from"efficient-easel/data";import{useEaselHost as lae}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Jre}from"efficient-easel/screen/lib/host";import{isNode as G5}from"efficient-easel/data";function Xi(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function Qre(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function KS(e,o,t,r){e.forEach((a,n)=>{if(G5(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 eae(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 K5(e,o){return eae(e).find(t=>String(t.node.props.id)===o)}function q5(e,o,t){if(!t)return null;let r=K5(o,t);if(!r)return null;let a=Xi(e,r.node.type),n=r.parent?`${Xi(e,r.parent.type)} \xB7 ${Qre(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var oae=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 tae(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Jre]: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=oae(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=V5(l))}return r}function V5(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=tae(r);a&&(o[t]=a)}return o}function Y5(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Xi(e,t),fields:V5(r.fields),...X5(t)?{retired:!0}:{}});return o}function X5(e){return eo(pb,e)}function U5(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function rae(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=>G5(t)&&String(t.props.id)===o)}function j5(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 Z5(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=K5(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=rae(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}`),X5(l.type)&&d(`${Xi(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=ps(l.type),m=Object.keys(l.props??{}).filter(h=>h!=="id");f&&m.length&&d(`${Xi(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=>U5(e,h),r,a):{type:l.type,props:{...U5(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(j5(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(j5(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=>xo(e.requestId)??null;function e4(){let e=lae(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=nae(u=>u),s=n,l=Q5({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=Q5(new Map),d=t?.props?.id,f=aae(()=>q5(s,o.data,d),[s,o.data,d]),m=f?JSON.stringify(f):"";J5(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,m]),J5(()=>e.subscribe(u=>{let{appState:h,dispatch:I,history:S,blockConfig:w}=l.current;switch(u.type){case"storefront-editor:request-document":{let T=VS(u);if(!T)return;e.send("storefront-editor:document",{requestId:T,document:h.data,blocks:Y5(w)});return}case"storefront-editor:apply-page-edits":{let T=VS(u);if(!T)return;let B=Array.isArray(u.ops)?u.ops:[],P=B.length?Z5(w,h.data,B,sae,Os()):{ok:!1,reason:"no changes"};P.ok&&(I({type:"setData",data:P.document,recordHistory:!0}),i.current.set(T,JSON.stringify(P.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:T,applied:P.ok,reason:P.ok?null:P.reason});return}case"storefront-editor:undo-page-edits":{let T=VS(u);if(!T)return;let B=i.current.get(T),P=B!==void 0&&B===JSON.stringify(h.data.content??[]);P&&S.hasPast&&(S.back(),i.current.delete(T)),e.send("storefront-editor:page-edits-result",{requestId:T,applied:P&&S.hasPast,reason:P?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 r4,useState as a4}from"react";var ym=new Map;async function iae(e,o){try{return(await _o().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function o4(e,o){let t=ym.get(o);return t||(t=iae(e,o),ym.set(o,t),t.catch(()=>{ym.get(o)===t&&ym.delete(o)})),t}var dae=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function YS(e){return!!e&&dae.test(e)}function t4(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===dT?"/":`/${encodeURIComponent(o)}`;if(!YS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function n4(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=a4(null),[s,l]=a4(null),i=xP();r4(()=>{try{l(new URL(hP()).hostname)}catch{l(null)}},[i]),r4(()=>{if(!YS(s)||!t||!r){n(null);return}let f=!1;return o4(r,t).then(m=>{f||n(m)}),()=>{f=!0}},[s,t,r]);let d=t4({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as Zi}from"react/jsx-runtime";import{useEffect as fae,useRef as s4,useState as cae}from"react";import{ExternalIcon as l4}from"efficient-easel/icons";import{EaselIconButton as pae}from"efficient-easel/chrome";import{Tooltip as uae,iconButtonClasses as mae}from"efficient-shell/ui";import{useSettledPress as xae}from"efficient-easel/easel";import{useScreenDocument as hae}from"efficient-easel/screen/components/ScreenDocumentContext";async function Iae({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 i4({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=hae(),a=s4(r);a.current=r;let n=xae(),[s,l]=cae(!1),i=s4(null);if(fae(()=>()=>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),Iae({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return Zi(pae,{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:Zi(l4,{})})}return Zi(uae,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:Zi("a",{className:mae({className:"es-iconbtn"}),href:e,...Pl,"aria-label":c("Preview the live site in a new tab"),children:Zi(l4,{})})})}import{createElement as gae,useCallback as yae,useEffect as d4,useRef as f4,useState as Sae}from"react";import{ClockIcon as bae}from"efficient-shell/icons/efficient";import{useScreenDocument as wae}from"efficient-easel/screen/components/ScreenDocumentContext";function c4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=wae(),s=_2(E2(o??null),r),l=Fu(Bu()),i=n.siteLiveState;d4(()=>{if(i)return Dx(i),ca(0),()=>Dx(null)},[i]);let d=Ff(),[f,m]=Sae(!1),u=f4(e);u.current=e;let h=f4(!0);d4(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=yae(()=>{m(!0),a(u.current).then(()=>{Ru()}).finally(()=>{h.current&&m(!1)})},[a]);if(t.canPublish){if(i){let S=d===void 0?void 0:r||d.state==="changed"?"changed":"live",w=yS({live:S,onPress:I,busy:f,goingLive:A2(d?.changes??[])});return n.siteVersions?{...w,menuItems:Cae()}:w}return yS({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Cae(){return[{key:"version-history",label:c("Version history"),icon:gae(bae),onSelect:UM}]}import{jsx as Q,jsxs as Qo,Fragment as ed}from"react/jsx-runtime";import{useCallback as vae,useEffect as kae,useId as m4,useRef as Pae,useState as gt}from"react";import{useSettledAction as Tae}from"efficient-easel/easel";import{Avatar as Oae,Banner as Ji,Button as Za,ColoredBadge as XS,Dialog as JS,DropdownMenu as Eae,FormField as x4,iconButtonClasses as _ae,Inline as ZS,Input as Aae,ListRow as Fae,Select as Bae,SortableList as Lae,Stack as Qi}from"efficient-shell/ui";import{EditIcon as Rae,EyeIcon as p4,MenuIcon as Dae,MoreIcon as Nae,PageIcon as h4,RevertIcon as u4,StylesIcon as Mae}from"efficient-shell/icons/efficient";import{useScreenDocument as I4}from"efficient-easel/screen/components/ScreenDocumentContext";var Hae={page:h4,menu:Dae};function Wae(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function $ae(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 zae({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=m4();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,m=ZM(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(JS,{open:!0,onClose:()=>{r||n()},size:"sm",title:u,footer:Qo(ed,{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:Qo(Qi,{gap:4,children:[o&&e.pages.length>1?Q(x4,{label:c("Page"),htmlFor:i,children:Q(Bae,{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(Ji,{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(Ji,{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(Ji,{tone:"danger",children:a}):null]})})}function Uae({version:e,onCancel:o,onSave:t}){let r=m4(),[a,n]=gt(null),[s,l]=gt(""),[i,d]=gt(!1),[f,m]=gt(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(JS,{open:!0,onClose:()=>{i||o()},size:"sm",title:c("Name this version"),footer:Qo(ed,{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(x4,{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(Aae,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function jae({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(p4,{}),onSelect:r}],...i?[{key:"restore",label:l?c("Put these drafts back"):c("Restore whole website"),icon:Q(u4,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:Q(h4,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:Q(Rae,{}),onSelect:s}]];return Q(Fae,{title:Qo("span",{className:"sf-version-title",children:[Q("span",{children:XM(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(Eae,{align:"end","aria-label":c("More"),items:f,triggerClassName:_ae({variant:"ghost",size:"sm"}),trigger:Q(Nae,{})}),below:Qo(Qi,{gap:3,children:[Qo(ZS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[Q(Oae,{name:e.createdBy,size:"xs"}),Q("span",{children:e.createdBy}),Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:QM(e.createdAt)}),d?Qo(ed,{children:[Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:$t("{n} change","{n} changes",d)})]}):null]}),o?Qo(Qi,{gap:3,children:[d?Q(Qi,{gap:2,children:e.changes.map(m=>{let u=Hae[m.kind]??Mae;return Qo(ZS,{gap:2,align:"center",children:[Q(u,{size:16}),Q("span",{children:JM(m)})]},`${m.kind}:${m.id}`)})}):null,Qo(ZS,{gap:2,children:[l?null:Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(p4,{}),onClick:r,children:c("Preview")}),i?Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(u4,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function Gae({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=I4(),[l,i]=gt(null),[d,f]=gt(!1),[m,u]=gt(null),[h,I]=gt(null),[S,w]=gt(!1),[T,B]=gt(null),[P,g]=gt(null),[C,E]=gt(!1),A=Pae(0),N=vae(()=>{let k=++A.current;f(!1),t.list().then(O=>{k===A.current&&i(O)},()=>{k===A.current&&f(!0)})},[t]);kae(()=>{e&&N()},[e,N]);let b=k=>{E(!1),$ae(t,k.id).catch(()=>E(!0))},_=async()=>{if(!(!h||S)){w(!0),B(null);try{await VM({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(k){B(k instanceof Ai?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{w(!1)}}},y=Tae({onPress:()=>{_()},busy:S});return Qo(ed,{children:[Q(JS,{open:e,onClose:o,size:"xl",title:c("Version history"),description:Qo(ed,{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:Qo(Qi,{gap:3,children:[C?Q(Ji,{tone:"danger",onDismiss:()=>E(!1),children:c("The preview did not open. Try again.")}):null,d?Q(Ji,{tone:"danger",action:Q(Za,{variant:"secondary",size:"sm",onClick:N,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(Lae,{"aria-label":c("Versions"),spacing:"comfortable",children:l.map(k=>Q(jae,{version:k,expanded:m===k.id,onToggle:()=>u(O=>O===k.id?null:k.id),onPreview:()=>b(k),onRestore:()=>{B(null),I({version:k,page:null})},onRestorePage:()=>{B(null),I({version:k,page:Wae(k,s)})},onName:()=>g(k)},k.id))})]})}),Q(zae,{version:h?.version??null,page:h?.page??null,waiting:r,busy:y.busy===!0,error:T,onCancel:()=>I(null),onConfirm:y.onPress,onPage:k=>I(O=>O&&{...O,page:O.version.pages.find(v=>v.id===k)??O.page})}),Q(Uae,{version:P,onCancel:()=>g(null),onSave:async k=>{await t.name(P.id,k),g(null),N()}})]})}function g4(){let{adapter:e,hasUnsavedEdits:o}=I4(),t=e.siteVersions,r=GM(),a=Ff();return t?Q(Gae,{open:r,onClose:jM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as r6}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as q3e,categoryLabel as V3e,paletteWithoutPinned as Y3e,pinnedSection as X3e}from"efficient-easel/screen/lib/document/palette-sections";var Kae={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 y4(e){return z(Kae,e)?.label}var S4=xb;function qae(e){let o=nu.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=lI.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:lI.sectionAccent}}}var Vae={Hero:{[Zl]:{newChild:qae,childLabel:ea.Ticker}}},b4=Object.fromEntries(Object.entries(v1).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...z(Vae,e)?.[t]}]))]));function w4(e,o=0,t,r){let a=Xae(Zae(e,o,r),t),n=a?Ng():null;return a&&n?Yae(a,n):a}function Yae(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 Xae(e,o){if(!e||e.source!=="container"||!o||!Cw())return e;let t=Ad({data:o.data},o.id),r=typeof t?.type=="string"?Pd(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 Zae(e,o,t){let r=t?z(b4,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=z(dt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=cd(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=U2(e);return s?{source:"footer",slot:z2,choices:s,spec:null}:null}function C4(e,o=Ed(e.type)){return Od(e.type)?o.map(t=>{let r=Pw(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as Jae}from"react";var QS=null,eb=new Set;function v4(e){if(QS!==e){QS=e;for(let o of eb)o()}}function Qae(e){return eb.add(e),()=>{eb.delete(e)}}function yWe(){return Jae(Qae,()=>QS,()=>null)}function k4(e){return BP(e)?.ownerId??null}function P4(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 ene}from"efficient-shell/format";var one=["pages","sections","styles"],T4="sf-editor-left-view";function O4(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(T4);return ene(one,"pages",e)}catch{return"pages"}}function E4(e){if(!(typeof window>"u"))try{window.localStorage.setItem(T4,e)}catch{}}function _4(e,o){return e==="styles"&&!o?"sections":e}function A4(e,o){return e?"sections":o}import{copyNode as tne}from"efficient-easel/data";function F4(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=dr(),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 B4={usedOn:e=>{let o=dr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Ef()?.openPage(e),adopt:(e,o)=>dr()?.adopt(e.props.id,o),nodeOf:e=>dr()?.place(e)??null,detach:e=>{let o=Ef()?.config;return o?tne(e,o):e},removed:()=>Ef()?.reload()};import{sharedSectionsOf as Ene}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as _ne,scrollPreviewToTop as X4}from"efficient-easel/screen/lib/document/preview-dom";var rne=Pf.mediaFields,ane=/video|poster|focal|phone/i;function nne(e){return(z(rne,e)??[]).find(o=>!o.includes("[]")&&!ane.test(o))??null}function sne(e){let o=nne(e.type);return e.type!==q?o&&_d(e.type,e.props,o)?{fromData:!0}:o:Zv(e.props)?{fromData:!0}:o}var L4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:sne,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var R4={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 Sm}from"react/jsx-runtime";import{useState as lne}from"react";import{Button as ine,Tooltip as dne,toast as D4}from"efficient-shell/ui";import{TemplateIcon as fne}from"efficient-easel/icons";import{useSettledAction as cne}from"efficient-easel/easel";import{useScreenDocument as pne}from"efficient-easel/screen/components/ScreenDocumentContext";function M4({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=pne(),[a,n]=lne(!1),s=async()=>{if(!a){n(!0);try{await r()?t():D4.error(c(N4))}catch{D4.error(c(N4))}finally{n(!1)}}},l=cne({onPress:()=>{s()},busy:a});return Sm(dne,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:Sm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:Sm(ine,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:Sm(fne,{size:15}),children:c("Save as Template")})})})}var N4="Your last changes did not save, so the template was not made. Try again.";var une="Save your page changes first";function H4(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:une}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var W4="storefront-editor:save-as-template";import{phoneKey as mne,tabletKey as xne}from"efficient-easel/draw";var hne=[ho.top,xne(ho.top),mne(ho.top)],bm="ContactLocations",$4="ContactRouting",z4="CityPictures",U4="CityMaps",Ine=[{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:U4,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function j4(e=Oa,o=ZI){let t=cb.find(r=>r.sections.some(a=>a.type===$4))?.key;return!e.includes(bm)||!t?[]:Ine.filter(r=>!(o&&r.key===z4)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:$4,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Hr(bm);if(!i)return null;let d=Os(),f=hi(bm,i,s)(l.nodeDefaults,l.newNodeId,d);if(!f||!(o&&r===U4))return f;let m=hi(bm,i,0)(l.nodeDefaults,h=>`${h}-above`,d),u=Object.fromEntries(hne.filter(h=>m?.props[h]!==void 0).map(h=>[h,m.props[h]]));return{...f,props:{...f.props,...u}}}}))}function G4(e=Oa,o){return[...j4(e,o)]}function q4(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=ps(e);if(n)return n(o,t,Os());if(mw(e)&&a(q)&&a(dn)){let l=z(Ct,e);return{type:q,props:{...o(q),id:t(q),direction:"column",name:`${r(e)} section`,content:[{type:dn,props:{...o(dn),id:t(dn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...Ol(e)!==Ol(dn)?{eyebrowLook:Ol(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...K4(e,t)}}]}}}if(z(dt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=K4(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function K4(e,o){return e==="Cards"?{template:fw(t=>o(t))}:e===cw?{template:pw(t=>o(t))}:{}}import{useEffect as gne,useState as yne}from"react";import{useEaselSession as Sne}from"efficient-easel/screen/lib/session-context";function V4(){let e=Sne().chrome?.products?.list,[o,t]=yne(null);return gne(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function a6({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=ZL(),a=t6().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=_s(i=>{i&&(o({kind:"ticker",heroId:i}),_ne(i))},[o]);return Zt(()=>{t(s)},[s,t]),Zt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let f=String(i.props.id);return i.type==="Hero"&&iI(i.props)&&uo(e6,{icon:uo(ja,{type:"ticker",size:13}),name:c(Ma),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function n6({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Ku(),a=t6().tree,{appState:n,config:s}=o6(u=>u),l=bne({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=va.find(u=>Kl[u]===i.kind),f=d&&"nodeId"in i?ka(String(i.nodeId),d):null,m=_s(u=>{let h=Xc(u);if(!h)return;let{data:I,config:S}=l.current,w=Tne(I,S,{kind:"node",id:h.nodeId});if(!w)return;let T={kind:Kl[h.part],nodeId:h.nodeId};o({index:w.index,zone:w.zone},T)},[o]);return Zt(()=>{t(f)},[f,t]),Zt(()=>{r(m)},[r,m]),{partRows:(u,{rowClick:h})=>{let I=String(u.props.id),S=E_(u);if(S.length===0)return null;let w=P=>{let g=ka(I,P.part);return uo(e6,{icon:uo(ja,{type:P.part==="media"?"heroMedia":"heroImage",size:13}),name:c(P.label),onSelect:()=>m(g),selected:f===g,rowProps:{onClick:h(()=>m(g))},words:a},g)},[T,...B]=S;return od(Q4,{children:[w(T),B.length>0&&uo(Pne,{children:B.map(w)})]})}}}function s6(e,o){return{partRows:(t,r)=>od(Q4,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Ane(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=wm(),{hasPreviewLink:f}=t,m=_o(r6()).preview?.draftLink,u=c4(e.data),h=H4({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=_s(()=>{!a||!r||i(W4,{siteId:a,slug:r})},[i,a,r]),S=n4({pageSlug:r,siteId:a,token:d}),w=o.previewHref?.(r)??S;return{barLead:()=>h.visible&&uo(M4,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&uo(i4,{liveHref:w,pageId:n??null,draftLink:m}),mainAction:u}}function Fne(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=wm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=P=>o.setView(P),[f,m]=Y4(JT[0].id),[u,h]=Y4(!1),{surface:I,setSurface:S}=RH(),w=()=>{if(l){d("styles"),o.reveal(),X4();return}e.show(AS),e.reveal(),X4()},T={id:"pages",label:c("Pages"),icon:uo(Cne,{}),panel:({onHide:P})=>uo(kH,{activeSurface:I,onPreviewSurface:S,onNavigate:g=>{S(null),s(r?{kind:"template",id:r,pageSlug:g}:{kind:"page",slug:g,siteId:a??void 0})},onClose:P})},B=[];return!l&&i&&B.push({id:"appearance",label:c("Appearance"),icon:uo(kne,{}),active:e.kind==="website",onSelect:w}),l&&B.push({id:"styles",label:c("Styles"),icon:uo(vne,{}),panel:({onHide:P,notify:g})=>uo(m5,{tokenRef:n,siteId:a??void 0,onClose:P,onNotify:g,tab:f,onTabChange:m,revealPageGroup:u,onPageGroupRevealed:()=>h(!1)})}),{railLead:[T],railTrail:B,resolveLeftView:P=>_4(P,l),openSettings:w,openStyles:()=>{m(ZT),d("styles")},openPageStyles:l?()=>{m(Mf),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(t5),e.reveal()}:void 0}}function Bne(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=wm(),a=o6(s=>s.config),n=r6();Zt(()=>(Rx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Rx(null)),[e,o,t,a]),Zt(()=>{let s=dr();if(!s||!r)return;let l=!1;return Ene(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function l6(){let e=Wf();return _s(o=>{v0(o,e)},[e])}function Lne(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;Zt(()=>{v4(s?.type==="BookingBox"&&s.props.region==="confirm"?k4(l(String(s.props.id))):null)},[s?.props.id]);let i=F5(e,o),{capabilities:{hasSiteSettings:d}}=wm();Bne();let{chat:f,setChat:m,setSelected:u,setSelectHandler:h}=Gu(),I=_s(()=>n(r5),[n]),S=a==="chat";Zt(()=>{u(S)},[S,u]),Zt(()=>{h(I)},[h,I]);let{setOpenHandler:w}=Bi(),T=_s(()=>n(a5),[n]);Zt(()=>{w(T)},[w,T]);let B=s6(a6(e),n6(e)),P=Ane(o),g=Fne(e,r);IH(r);let C=t.device,E=l6();return{...B,...P,...g,hasOwnRows:A=>A.type===gm,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:E,wrap:A=>uo(Vx.Provider,{value:!0,children:od(One.Provider,{value:C,children:[A,uo(g4,{})]})}),addPanelRow:A=>d?od("div",{className:"sf-addside-sitewide",children:[uo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:uo(ja,{type:"chat",size:16})}),od("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{A(),I()},children:[c("Live chat"),uo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),uo(wne,{checked:f.enabled,onChange:N=>m({enabled:N}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var Z4=null,ob=new WeakMap;function Rne(e){let o=lC();if(!e||!o)return e;Z4!==o&&(Z4=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 Dne={isLockedBlock:(e,o)=>bu(e,o)||!!(o&&dr()?.heldElsewhere(o.props.id)),duplicateBlocked:cm,nestDepth:(e,o,t)=>o===$d?zd(e,t):0,newSectionNode:q4,canAddTo:(e,o,t,r)=>Rne(w4(e,o,r,t)),blockIsOffered:zR,slotsOf:C4,resolveOnInsert:!0},Nne=new Proxy(R4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),Mne={labelAtLevel:(e,o,t)=>c(Tm(e,o,t)),descriptions:Nne,categoryLabel:e=>{let o=y4(e);return o===void 0?void 0:c(o)},firstSection:S4,blockRowName:P4,rowName:wu,plainText:an,Icon:ja,Thumbnail:p5,useProducts:V4,presets:G4()},Hne={desktop:2e3,tablet:800,mobile:390},J4="desktop",Wne={options:AH,initial:J4,fluid:J4,fluidMin:Zb,widths:Hne,hidesPerView:!0},$ne={read:O4,write:e=>E4(e),forSelection:(e,o)=>A4(e,o)},zne={first:Ko,last:Re,firstGroup:Mo,lastGroup:ao,isSectionGroup:lP,sectionGroupZone:iP,panelOf:e=>e===Ko?o5:null,get sharedReach(){return ua()?jne:void 0},get shared(){return dr()?B4:void 0},get groupTab(){return ua()?j2:void 0},get groupBadge(){return ua()?PS({type:ao})??void 0:void 0},get changeNotice(){return ua()?G2():void 0},get band(){return ua()?Une:void 0},get groupAccepts(){return ua()?cP:void 0}},Une={foldable:!0},jne=e=>PS(e)??F4(e);function Gne(e){return{...s6(a6(e),n6(e)),onCopyItem:l6(),openSettings:()=>e.show(AS)}}function Kne(e,o){z5(e,o),e4()}var _ze={useOwnerName:Ln,useDocumentLabel:E0,useBridges:Lne,useStandaloneBridges:Gne,useDocumentPass:Kne,blockRules:Dne,blockLook:Mne,devices:Wne,leftView:$ne,pinned:zne,Canvas:rH,canvasDrag:{media:L4},Inspector:s5};export{Bg as a,qt as b,Vt as c,no as d,Qxe as e,fI as f,Qge as g,ci as h,pi as i,nF as j,sF as k,Bp as l,eye as m,MG as n,lF as o,oye as p,ER as q,WTe as r,_R as s,UTe as t,yl as u,ha as v,uI as w,she as x,dp as y,MO as z,HO as A,q1 as B,J0 as C,Pt as D,ec as E,Q0 as F,ph as G,Gle as H,Kle as I,qle as J,eO as K,Vle as L,oc as M,aO as N,Jle as O,Qle as P,nO as Q,eie as R,pie as S,uie as T,cO as U,Jo as V,Hn as W,fo as X,Fa as Y,Y as Z,Zn as _,J as $,X as aa,te as ba,re as ca,ce as da,Whe as ea,pe as fa,Qn as ga,es as ha,ti as ia,ri as ja,J1 as ka,jhe as la,yj as ma,Q1 as na,qhe as oa,Vhe as pa,eA as qa,Th as ra,AO as sa,IW as ta,Ol as ua,FO as va,yde as wa,xI as xa,Jhe as ya,Qhe as za,eIe as Aa,oIe as Ba,tIe as Ca,rIe as Da,Wie as Ea,vc as Fa,Pl as Ga,$ie as Ha,zie as Ia,wO as Ja,wh as Ka,Z3 as La,J3 as Ma,Uie as Na,Q3 as Oa,jie as Pa,wE as Qa,$ce as Ra,AE as Sa,zce as Ta,Uce as Ua,jce as Va,gp as Wa,yI as Xa,aA as Ya,yp as Za,mIe as _a,Fj as $a,Bj as ab,Lj as bb,xIe as cb,Uo as db,Da as eb,ns as fb,oge as gb,tge as hb,rge as ib,HE as jb,Uc as kb,O$ as lb,Jce as mb,HA as nb,WA as ob,$A as pb,wge as qb,jA as rb,nye as sb,sye as tb,Rp as ub,dF as vb,Al as wb,RO as xb,DO as yb,_h as zb,Sa as Ab,XO as Bb,rfe as Cb,afe as Db,nfe as Eb,Rl as Fb,lt as Gb,pfe as Hb,qie as Ib,sde as Jb,vh as Kb,lde as Lb,ga as Mb,kc as Nb,Ze as Ob,Cfe as Pb,tE as Qb,aE as Rb,nE as Sb,Dp as Tb,IF as Ub,wye as Vb,Np as Wb,gF as Xb,Tye as Yb,EF as Zb,p8 as _b,zp as $b,kSe as ac,Kc as bc,W$ as cc,Yh as dc,C8 as ec,WSe as fc,oB as gc,tB as hc,$Se as ic,zSe as jc,Zx as kc,A6 as lc,Jx as mc,i0 as nc,rbe as oc,hB as pc,IB as qc,gB as rc,Ebe as sc,$be as tc,zbe as uc,Ube as vc,cg as wc,kB as xc,q8 as yc,V8 as zc,Gp as Ac,Kbe as Bc,qbe as Cc,Swe as Dc,qB as Ec,bwe as Fc,VB as Gc,Cwe as Hc,oL as Ic,tL as Jc,OK as Kc,nL as Lc,$we as Mc,Yp as Nc,Zwe as Oc,mi as Pc,eCe as Qc,dL as Rc,tCe as Sc,fL as Tc,cL as Uc,nCe as Vc,Tl as Wc,hW as Xc,hr as Yc,fCe as Zc,Xp as _c,mCe as $c,Jp as ad,cde as bd,pde as cd,ya as dd,ude as ed,fh as fd,Qf as gd,D0 as hd,it as id,Ul as jd,dz as kd,Jh as ld,Kpe as md,jl as nd,cz as od,qpe as pd,Zpe as qd,Gl as rd,k_ as sd,P_ as td,Nue as ud,Mue as vd,Hue as wd,Wue as xd,Pz as yd,$ue as zd,Xc as Ad,ql as Bd,Gue as Cd,tI as Dd,R_ as Ed,D_ as Fd,Qh as Gd,Bz as Hd,Kue as Id,Zc as Jd,Vl as Kd,Qc as Ld,que as Md,Vue as Nd,Jc as Od,Yue as Pd,Xue as Qd,W_ as Rd,Yl as Sd,Xl as Td,op as Ud,z_ as Vd,Yn as Wd,U_ as Xd,tp as Yd,rp as Zd,ap as _d,j_ as $d,G_ as ae,K_ as be,q_ as ce,V_ as de,o1 as ee,t1 as fe,Tme as ge,Ome as he,Eme as ie,_me as je,Ame as ke,tU as le,rU as me,Fme as ne,Bme as oe,Lme as pe,a1 as qe,Rme as re,Dme as se,Nme as te,Mme as ue,sU as ve,lU as we,pU as xe,mU as ye,xU as ze,f1 as Ae,bU as Be,p1 as Ce,u1 as De,Dc as Ee,EU as Fe,mxe as Ge,S1 as He,bxe as Ie,Bxe as Je,Lxe as Ke,Qfe as Le,Dl as Me,ace as Ne,nce as Oe,gE as Pe,Ii as Qe,Xt as Re,iD as Se,cu as Te,fOe as Ue,cOe as Ve,wOe as We,COe as Xe,lV as Ye,Xg as Ze,ID as _e,vOe as $e,yD as af,SD as bf,kD as cf,mV as df,IV as ef,qOe as ff,sEe as gf,lEe as hf,wi as if,iEe as jf,dEe as kf,Qg as lf,fEe as mf,wke as nf,Ml as of,Uh as pf,$c as qf,HEe as rf,Kn as sf,Ipe as tf,gpe as uf,QE as vf,JV as wf,yN as xf,ki as yf,r1e as zf,n1e as Af,dy as Bf,BN as Cf,ou as Df,Tke as Ef,_ke as Ff,ZL as Gf,Sg as Hf,JL as If,QL as Jf,Bke as Kf,eR as Lf,ru as Mf,$ke as Nf,tR as Of,nR as Pf,rR as Qf,hy as Rf,nFe as Sf,sFe as Tf,lFe as Uf,wu as Vf,sM as Wf,yy as Xf,TFe as Yf,OFe as Zf,tZ as _f,rZ as $f,pBe as ag,uBe as bg,mBe as cg,xBe as dg,Ou as eg,Eu as fg,HBe as gg,AM as hg,LM as ig,RM as jg,DM as kg,FRe as lg,Ave as mg,Fu as ng,Uu as og,PH as pg,TH as qg,EH as rg,ju as sg,fDe as tg,cDe as ug,Gu as vg,bQ as wg,bDe as xg,Bi as yg,kDe as zg,RH as Ag,Rn as Bg,O6 as Cg,pse as Dg,use as Eg,G2e as Fg,K2e as Gg,q2e as Hg,T1 as Ig,ODe as Jg,Ku as Kg,tse as Lg,F6 as Mg,B6 as Ng,L6 as Og,c0 as Pg,Fse as Qg,Yf as Rg,o3 as Sg,t3 as Tg,lle as Ug,Yne as Vg,w3 as Wg,SO as Xg,Bie as Yg,Lie as Zg,Y3 as _g,Rie as $g,Die as ah,Cc as bh,Nie as ch,jn as dh,iE as eh,dE as fh,SE as gh,Dce as hh,ME as ih,Vce as jh,WE as kh,Xh as lh,U$ as mh,q$ as nh,Epe as oh,yve as ph,Dve as qh,Wve as rh,BL as sh,Gve as th,Kve as uh,ake as vh,nke as wh,gke as xh,xi as yh,eq as zh,SPe as Ah,OPe as Bh,KPe as Ch,qPe as Dh,bTe as Eh,wR as Fh,Qne as Gh,cMe as Hh,jH as Ih,Re as Jh,fm as Kh,Lt as Lh,I5 as Mh,qi as Nh,g5 as Oh,y5 as Ph,J4e as Qh,Q4e as Rh,o4 as Sh,YS as Th,t4 as Uh,w4 as Vh,yWe as Wh,_ze as Xh};