efficient-storefront-blocks 0.134.5 → 0.135.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/chunks/{CustomHtmlCodeWindow-PCCIJDTP.js → CustomHtmlCodeWindow-LZU74WYM.js} +1 -1
  3. package/dist/chunks/{EditorPreviewCheckout-PUHW43VL.js → EditorPreviewCheckout-FVJV7XRD.js} +1 -1
  4. package/dist/chunks/SiteEditorProvider-WDCJF3SS.js +1 -0
  5. package/dist/chunks/{chunk-UYU65XIT.js → chunk-75GXE5JB.js} +1 -1
  6. package/dist/chunks/chunk-AK2HCCZS.js +337 -0
  7. package/dist/chunks/{chunk-ITZRFN64.js → chunk-S63MCVEE.js} +1 -1
  8. package/dist/chunks/{chunk-JHEIFPET.js → chunk-VBCLGIPA.js} +1 -1
  9. package/dist/chunks/{chunk-VJSXEYRL.js → chunk-VLFGNHX5.js} +1 -1
  10. package/dist/chunks/{chunk-4HZQEMGD.js → chunk-XMX3KEE4.js} +1 -1
  11. package/dist/chunks/chunk-XSJNH2U7.js +9 -0
  12. package/dist/chunks/{chunk-GZKBN53C.js → chunk-Y3CRPIPD.js} +1 -1
  13. package/dist/chunks/{fitment-data-OO37TN7S.js → fitment-data-UPS55DR5.js} +1 -1
  14. package/dist/chunks/{section-css-style-K25L45AT.js → section-css-style-VSIE7KKW.js} +1 -1
  15. package/dist/index.js +3 -3
  16. package/dist/links.js +1 -1
  17. package/dist/render/built-with.json +1 -1
  18. package/dist/routine-index.json +1 -1
  19. package/dist/value-index.json +1 -1
  20. package/dist/words.d.ts +2 -0
  21. package/dist/words.js +2 -2
  22. package/package.json +3 -3
  23. package/dist/chunks/SiteEditorProvider-5GQBSTAR.js +0 -1
  24. package/dist/chunks/chunk-AKNNDIRL.js +0 -9
  25. package/dist/chunks/chunk-MM7TBACQ.js +0 -337
  26. /package/dist/chunks/{chunk-YMJRKOEC.js → chunk-62AOYUOH.js} +0 -0
  27. /package/dist/chunks/{chunk-MM7TBACQ.js.LEGAL.txt → chunk-AK2HCCZS.js.LEGAL.txt} +0 -0
  28. /package/dist/chunks/{chunk-XPDSLIZ3.js → chunk-GAND7LXQ.js} +0 -0
  29. /package/dist/chunks/{chunk-DSTQVJ5G.js → chunk-RNSKQVLG.js} +0 -0
  30. /package/dist/chunks/{chunk-ITZRFN64.js.LEGAL.txt → chunk-S63MCVEE.js.LEGAL.txt} +0 -0
@@ -0,0 +1,337 @@
1
+ import{$ as lf,D as Bk,E as Lk,F as tf,G as Rk,H as zk,I as Or,J as Uk,K as jk,L as Gk,M as nt,N as rf,O as ko,P as fe,R as af,S as Er,T as nf,X as Kk,Y as sf,Z as _r,_ as qk,a as Xo,b as Xs,ba as aP,c as Kd,d as Sn,e as Js,f as ik,fa as xP,g as bn,h as qd,ha as hP,ia as Mf,ja as UT,ka as jT,r as al,t as Fk}from"./chunk-75GXE5JB.js";import{a as bP,d as bf,e as st,f as wf,g as Cf,h as Tf,l as Kx}from"./chunk-62AOYUOH.js";import{$ as ix,$a as el,$b as Jk,$c as kv,$e as _P,$f as Ef,A as kC,Aa as JC,Ab as Ok,Ac as iv,Ad as $v,Ae as cP,Ag as rT,B as vC,Ba as px,Bb as ho,Bc as mf,Bd as zv,Be as pP,Bg as Bx,Bk as ml,C as PC,Ca as ZC,Cb as hx,Cc as dv,Cd as Cx,Ce as yf,Cg as aT,Cj as Hx,Ck as Nf,D as rt,Da as QC,Db as tl,Dc as fv,Dd as Uv,De as uP,Dg as Lx,Dj as pl,Dk as Ux,E as TC,Ea as ek,Eb as zt,Ec as cv,Ed as jv,Ee as mP,Eg as dr,Ek as HT,F as OC,Fa as ok,Fb as Cn,Fc as pv,Fd as Gv,Fg as Rx,Fk as ua,G as EC,Ga as tk,Gb as rl,Gc as jt,Gd as Kv,Ge as kt,Gg as _f,Gj as An,Gk as WT,H as _C,Ha as rk,Hc as Ue,Hd as qv,Hg as nT,Hk as $T,I as AC,Ia as vr,Ic as Ar,Id as kx,Ie as je,If as $P,Ig as sT,Ij as OT,Ik as zT,J as FC,Ja as ak,Jb as Ix,Jc as Sx,Jd as Vv,Je as vt,Jf as zP,Jg as lT,K as BC,Kb as na,Kc as uv,Kd as vx,Ke as Oe,Kf as UP,Kg as iT,Kk as GT,La as nk,Lb as of,Lc as mv,Ld as Yv,Le as yP,Lf as jP,Lg as dT,Lk as jx,M as LC,Ma as Vd,Mb as Ek,Mc as xv,Md as Xv,Mf as Ax,N as RC,Na as Zs,Nb as _k,Nc as xf,Nd as Jv,Nf as GP,Nk as KT,O as DC,Oa as Yd,Ob as Ak,Oc as sl,Od as Gt,Of as KP,Og as fT,Ok as qT,P as Wd,Pa as dk,Pb as df,Pc as hv,Pd as Zv,Pe as Px,Pf as Fx,Pg as cT,Pk as VT,Q as NC,Qb as Xk,Qc as Iv,Qd as da,Qj as ET,Qk as YT,R as MC,Rb as ff,Rc as gv,Rj as Wx,Rk as XT,Sb as yx,Sc as hf,Sd as Qv,Se as fl,Sj as _T,Sk as JT,Ta as fk,Tb as cf,Tc as yv,Td as Tn,Tf as ir,Ti as pa,Tj as AT,Ua as ck,Uc as Sv,Va as Qs,Vc as bx,Vd as lr,Vf as On,Vi as fr,Vj as Df,W as lx,Wc as bv,Wd as eP,We as SP,Wj as Fn,Xa as wn,Xc as Pn,Xd as dl,Xe as Tx,Xf as qP,Xh as gT,Xj as Bn,Y as Vs,Ya as pk,Yb as kn,Yd as oP,Ye as wP,Yf as VP,Yg as Af,Yh as yT,Yj as ul,Z as $d,Za as Xd,Zc as wv,Zd as fa,Ze as vf,Zf as Of,Zj as Ln,_ as Ao,_a as uk,_c as Cv,_d as tP,_f as Lr,_j as FT,a as _o,aa as In,ab as mk,ac as Zk,ad as vv,ae as If,aj as Lf,b as mn,ba as HC,bb as xk,bc as Qk,bd as Pv,be as Br,bg as En,ca as WC,cb as hk,cc as nl,cd as sa,ce as rP,cf as Ex,ch as pT,cj as wT,d as sC,da as $C,db as Ik,dd as Tv,e as rx,ea as zC,eb as mx,ed as wx,eh as uT,f as lC,fa as UC,fb as gk,fd as Ov,fk as BT,g as c,ga as dx,gb as ol,gd as Ev,gi as ST,gk as LT,h as $t,hb as yk,hd as _v,hf as AP,hi as bT,hl as Gx,i as hn,ia as jC,ib as xx,id as Av,if as FP,j as Ks,ja as zd,jd as Fv,jf as Pf,k as No,kb as Sk,kd as Fr,ke as nP,kf as BP,kg as Rr,l as qs,lb as bk,ld as ll,lf as LP,lg as YP,md as la,mg as XP,n as xC,nb as Jd,nc as vn,nd as Bv,ne as sP,ng as JP,nk as $x,o as hC,ob as wk,oc as Ut,oe as lP,oh as Dx,oj as CT,p as IC,pb as Ck,pc as ev,pd as ia,pe as iP,ph as Ff,pk as RT,pl as ZT,q as gC,qb as kk,qc as ov,qd as il,qh as ca,qk as DT,ql as QT,r as yC,rb as vk,rc as tv,rd as Lv,rh as Bf,rj as kT,rk as NT,rl as Hf,s as SC,sb as Zd,sc as rv,sd as Rv,sf as RP,sg as ZP,sj as Rf,sl as e0,t as bC,tb as Pk,tc as av,tf as _x,th as mT,tj as Nx,tk as MT,u as wC,uc as pf,ud as Dv,ue as Mo,uf as DP,uh as xT,uj as vT,ul as Rn,v as Hd,vc as uf,vd as Nv,ve as ao,vf as NP,vh as hT,vj as PT,vk as zx,vl as Wf,w as kr,wb as Tk,wc as nv,wd as Mv,wf as MP,wg as QP,wh as IT,wj as Mx,xa as VC,xb as Pr,xe as gf,xf as HP,xg as eT,y as sx,ya as YC,yb as Qd,yc as sv,yd as Hv,ye as dP,yg as oT,yj as _n,z as CC,za as XC,zb as ef,zc as lv,zd as Wv,ze as fP,zf as WP,zg as tT,zj as TT}from"./chunk-XSJNH2U7.js";import{a as uC,b as Md,c as mC,g as Vk,h as gx,i as Yk}from"./chunk-XMX3KEE4.js";import{$ as Ib,$a as Mb,$c as R,$e as Zm,$g as cC,A as io,Ab as Zb,Ad as pw,B as tn,Be as Xm,Bf as ox,Ca as ye,Cb as $s,Cd as Vm,Ce as ww,Ci as vo,D as Ms,Db as Qb,E as fd,Ed as uw,Ee as Jm,F as Nt,Fd as Cd,G as rn,Ga as ot,Gg as Zw,Gi as cl,H as ze,Ha as bt,Hb as Sd,Hd as tt,Hg as Qw,I as Xe,Ia as Em,Ic as nw,Id as Do,Ie as Pd,If as Dw,Ig as eC,J as an,Ja as _m,Jd as ro,Je as Td,Jg as oC,K as cd,Kc as Um,Kd as Ht,Ke as Cw,Kh as ux,L as fb,La as Am,Ld as nr,Le as Od,Lf as sr,Lh as gn,M as cb,Ma as Fm,Mb as ew,Md as Ct,Me as Ed,Mg as tC,Mh as sk,Nd as fn,Ne as kw,Nh as at,O as pb,Od as mw,Oe as vw,Oh as Yo,P as pd,Pd as cn,Pe as _d,Pg as rC,Ph as Gd,Q as ub,Qa as Bm,Qd as xw,Qe as Ad,Qg as aC,Qh as lk,R as ea,Ra as _b,Rb as bd,Rc as sw,Re as aa,Rf as Nw,Rh as yn,S as mb,Sa as Ab,Se as Pw,Sg as nC,T as xb,Ta as Ke,U as Hs,Ua as Fb,Ub as ow,Ud as ra,Ug as iC,Uh as Dk,V as Tm,Va as Id,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 pn,Xf as Mw,Xg as Cr,Y as hb,Ya as Rb,Yc as U,Yd as Us,Yf as Hw,Yh as Nk,Za as Db,Zb as Wm,Zc as oe,Zd as js,Ze as Wt,Zf as Ww,Zg as fC,_ as ud,_a as Nb,_c as jm,_d as Ym,_e as Gs,_f as $w,_g as ax,a as on,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 Nd,c as lo,ca as md,cb as gd,cd as lw,ce as Sw,cf as Ew,cg as zw,d as or,da as yb,db as yd,dd as H,df as Fd,dg as Uw,dh as pC,di as Mk,ea as Sb,eb as $b,ed as wd,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 Ns,ga as bb,gc as $m,gd as iw,ge as kd,gg as Gw,gi as Hk,h as tb,ha as wb,hb as Ub,hd as wt,hf as Aw,hg as Rd,hi as Wk,i as rb,ia as Cb,ib as jb,id as Mt,ie as vd,if as Bd,ig as Kw,ii as $k,j as ab,jb as Lm,jd as Gm,jf as Fw,jg as Dd,k as nb,kb as Gb,kd as br,kf as ex,kg as tx,la as kb,lb as Kb,ld as ar,lf as Bw,ma as vb,mb as Rm,md as dw,mf as Lw,na as Pb,nb as sn,nf as Ld,ng as qw,o as sb,od as Be,of as un,og as Vw,pa as Tb,pb as oa,pd as ta,pf as xn,pi as CP,qb as Dm,qd as zs,qf as wr,qi as kP,ra as Ob,rb as Nm,rd as ln,rg as Yw,rh as fx,ri as kf,s as lb,sa as xd,sb as Mm,sd as fw,sg as Xw,sh as Ud,si as vP,ta as Eb,tb as qb,td as Km,th as GC,ti as Ox,u as Me,ua as hd,ub as Vb,ud as dn,uf as Rw,uh as cx,ui as PP,v as ib,vb as Yb,vc as zm,vd as qm,vg as Jw,vh as KC,w as dd,wb as Hm,wi as TP,x as db,xb as Xb,xc as aw,xh as jd,xi as OP,ya as Ws,yb as tr,yh as qC,yi as EP,z as Te,za as nn,zb as Jb,zd as cw,zh as Ys}from"./chunk-Y3CRPIPD.js";import{a as z,b as eo}from"./chunk-GAND7LXQ.js";import{c as IP,d as gP,e as Sf}from"./chunk-RNSKQVLG.js";import{jsx as qx,Fragment as g6,jsxs as y6}from"react/jsx-runtime";import{createContext as S6,useContext as b6}from"react";var w6={mirrorHostStyles:!0,css:null,fontHrefs:[]},o0=S6(w6);function ise({value:e,children:o}){return qx(o0.Provider,{value:e,children:o})}function xl(){return b6(o0)}function t0(){let{css:e,fontHrefs:o}=xl();return y6(g6,{children:[o.map(t=>qx("link",{rel:"stylesheet",href:t},t)),e?qx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as C6}from"react/jsx-runtime";import{createContext as k6,useContext as v6}from"react";var r0=k6(void 0);function pse({metadata:e,children:o}){return C6(r0.Provider,{value:e,children:o})}var a0=()=>v6(r0);import{jsx as uo,Fragment as n6,jsxs as rd}from"react/jsx-runtime";import{useCallback as As,useEffect as Jt,useRef as Lne,useState as o6}from"react";import{SettingsSwitch as Rne}from"efficient-easel/panel";import{PagesIcon as Dne,StylesIcon as Nne}from"efficient-easel/rail";import{PaletteIcon as Mne}from"efficient-shell/icons/efficient";import{Subtree as Hne,TreeRow as s6}from"efficient-easel/tree";import{useEasel as l6}from"efficient-easel/easel";import{toItemSelector as Wne}from"efficient-easel/node-ops";import{useEaselStrings as i6}from"efficient-easel/strings";import{createContext as P6,useContext as T6}from"react";var Vx=P6(!1),xse=()=>T6(Vx);import{useMemo as O6,useRef as E6}from"react";import{useEaselApi as _6}from"efficient-easel/easel";import{useSectionOps as A6}from"efficient-easel/screen/lib/document/use-section-ops";function $f(){let e=_6(),o=A6(),t=E6(o);return t.current=o,O6(()=>({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 Z6}from"efficient-easel/draw";import{insertAt as Q6,moveTo as e3,removeAt as o3}from"efficient-easel/fields";import{useSyncExternalStore as G6}from"react";import{isNodeList as n0}from"efficient-easel/data";var s0="Flex";function Dn(e,o){return Wt(e)?typeof e?.[Vo]=="string"?Yx(o?.[Vo]):"":Yx(e?.[Vo])}var Yx=e=>typeof e=="string"?e.trim():"",F6=e=>e.type===io&&Array.isArray(e.props?.[Jm])&&e.props[Jm].some(o=>Yx(o?.[Vo])!==""),B6=new Intl.NumberFormat("en-US");function L6(e){return/^\d+$/.test(e)?B6.format(Number(e)):e}function vse(e,o){let t=o?o.find(r=>r.key===e)?.value:lb(Ns).find(r=>r.key===e)?.value;return t===void 0?null:L6(t)}var R6={[Vo]:"any"};function Xx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Dn(t)!==""||o&&Dn(t,R6)!==""),a=o||F6(e),n=Xe(e,l=>ze(l,i=>{let d=Xx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==s0)return{node:n===t?e:{...e,props:n},names:r};let s=Me(n);if(r&&!s&&(n={...n,[lo]:Ns}),!r&&s===Ns){let{[lo]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function l0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of rn(r??{})){let n=l0(a,o,r.type===s0?r:t);if(n!==void 0)return n}}}function Pse(e,o){if(!n0(e))return!0;let t=l0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Me(t.props);return!r||r===Ns}function i0(e){let o=e?.content;if(!n0(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 d0(e){return Xx(e).node}import{decodePartId as K6}from"efficient-easel/draw";function Nn(e,o){let t=lv(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?DT(t,o.index):null:iv(e)?.[o.rowKey]??null}function zf(e,o,t){let r=e.node.props,{key:a,row:n}=Ut(e.propKey),s=n?fv(r,a,n,e.kind,o):sv(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as p0}from"efficient-easel/draw";import{parseOption as D6}from"efficient-shell/format";var Jx=e=>String(e+1).padStart(2,"0"),N6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Zx="two-digit",f0=e=>D6(N6,Zx,e),Uf=(e,o)=>e==="plain"?`${o+1}.`:Jx(o);var oh="Contents",Qx="Flex",c0="Text",M6="numberForm",H6="_contentsEntries",W6="_kickerNumber",u0="data-sf-kicker-number",$6=e=>p0(e).text.trim(),m0=e=>fa(e?.anchor),eh=e=>String(e.props?.id??""),z6=e=>!p0(e.props?.text).hidden&&!Dn(e.props)&&!Wt(e.props),hl=e=>rn(e);function x0(e){for(let o of hl(e))for(let t of o){if(lr(t.props??{}))continue;if(t.type===c0&&z6(t))return t;if(t.type===c0)continue;let r=x0(t);if(r)return r}}function h0(e){return hl(e).some(o=>o.some(t=>t&&!lr(t.props??{})&&(t.type===oh||h0(t))))}var I0=e=>e.type===Qx&&On(Qx,e.props?.direction)==="row";function g0(e){return hl(e).some(o=>o.some(t=>t&&!lr(t.props??{})&&(t.type===oh||!I0(t)&&g0(t))))}function U6(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(I0(n)&&g0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of hl(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Qx&&m0(n.props)&&s&&!h0(n)){s.push({box:n,kicker:x0(n)});continue}for(let l of hl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function j6(e){return e.map(o=>({label:o.kicker?nn($6(o.kicker.props?.text)):"",anchor:m0(o.box.props)}))}function th(e){let o=e?.length?U6(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,j6(a.sections));let s=f0(a.contents.props?.[M6]);a.sections.forEach((l,i)=>{let d=l.kicker?eh(l.kicker):"";d&&r.set(d,Uf(s,i))})}return{entries:t,numbers:r}}var Gse=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function y0(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,[H6]:m},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[W6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var q6=`[${u0}]`,V6=["bold","italic","underline","strike","link","sup","sub"],Y6=["bullet","number"];function nh(e,o){return e?[...V6,...o?Y6:[]]:[]}function S0(e,o){let t=K6(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?Nn(d,i):d,m=pf(f);if(!m)return null;let u=n.props??{};if(gT(u)!==null||!i&&Fd(n.type,u,l)||n.type==="Text"&&l==="text"&&Dn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?mf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:m,stored:h,offPage:Lf(f),panelOnly:av(f)}}function jf(e,o){let t=S0(e,o);if(!t)return null;let{text:r,hidden:a}=pa(t.stored);if(!Sv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=uf(t.kind);return{partId:e,value:r,rules:xd,multiline:n,skip:q6,offered:nh(t.kind!=="plainText",n),write:s=>{let l=S0(e,o);l&&zf({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}="${Gf(t)}"]`)??null}function Gf(e){return e.replace(/["\\]/g,"\\$&")}function b0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var rh=null,ah=new Set;function X6(){return rh}function lh(e){if(e!==rh){rh=e;for(let o of ah)o()}}function J6(e){return ah.add(e),()=>{ah.delete(e)}}function w0(){return G6(J6,X6,()=>null)}function C0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=kw(t.type);return!r||Me(t.props)?null:{node:t,rows:r}}function t3(e,o){let t=C0(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:Z6(e.ownerId,vn(t.rows,{index:e.index,rowKey:a}))}function Kf(e,o){let t=t3(e,o);return t?jf(t,o):null}function k0(e,o){return Kf(e,o)?.value}function v0(e,o){let t=Kf(e,o);return t?(t.write(e.text),!0):!1}function P0(e,o){let t=C0(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=e3(n,s,i);break}case"delete":l=o3(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 VZ,jsxs as Wu}from"react/jsx-runtime";import{Fragment as YZ,useEffect as kH,useMemo as vH,useRef as XZ,useState as Ua}from"react";import{useScreenDocument as _H}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Wy}from"efficient-easel/draw/client";import JZ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as ZZ}from"efficient-easel/chrome";import{Input as QZ,LoadingSpinner as eQ,PopupMenu as oQ,PopupMenuItem as PH,toast as TH}from"efficient-shell/ui";import{LayersTree as tQ,TreeGroupLabel as rQ,TreeRow as OH,TreeRowAction as $u}from"efficient-easel/tree";import{AddIcon as aQ,DuplicateIcon as nQ,PageIcon as sQ,SettingsIcon as lQ}from"efficient-easel/icons";import{PagesIcon as iQ}from"efficient-easel/rail";import{useEaselHost as dQ}from"efficient-easel/screen/lib/host";import{useEaselSession as $y}from"efficient-easel/screen/lib/session-context";import{useCallback as qf,useEffect as r3,useSyncExternalStore as a3}from"react";import{useScreenDocument as _0}from"efficient-easel/screen/components/ScreenDocumentContext";var T0=new WeakMap;function Il(e){let o=T0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},T0.set(e,o)),o}function ih(e,o){e.rows=o;for(let t of e.listeners)t()}var Vf=new Set;function Yf(e,o){o?Vf.add(e):Vf.delete(e)}function O0(e){let o=Il(e),t=e.listPages().then(r=>ih(o,Vf.size?r.filter(a=>!Vf.has(a.id)):r),()=>ih(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var E0=()=>null,n3=()=>()=>{};function gl(){let{adapter:e,ready:o}=_0(),t=qf(l=>{let{listeners:i}=Il(e);return i.add(l),()=>i.delete(l)},[e]),r=qf(()=>Il(e).rows,[e]),a=a3(o?t:n3,o?r:E0,E0);r3(()=>{if(!o)return;let l=Il(e);l.rows===null&&!l.loading&&O0(e)},[e,o]);let n=qf(()=>o?O0(e):Promise.resolve(),[e,o]),s=qf(l=>ih(Il(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function s3(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function A0(){let{currentSlug:e}=_0(),{rows:o}=gl();return s3(o,e)}import{canDuplicatePage as fQ,DuplicatePageDialog as cQ}from"efficient-easel/page-copy";import{jsx as Oo,jsxs as hH}from"react/jsx-runtime";import{useEffect as AZ,useId as FZ,useMemo as BZ,useRef as LZ,useState as Ny}from"react";import{useScreenDocument as RZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as DZ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as IH}from"efficient-easel/page-copy";import{AddIcon as NZ}from"efficient-easel/icons";import{Button as MZ,Dialog as HZ,EmptyState as WZ,LoadingSpinner as $Z,Paragraph as zZ,SidebarLayout as UZ,SidebarNavItem as My,Title as jZ,toast as gH}from"efficient-shell/ui";import{jsx as Ot,jsxs as BR}from"react/jsx-runtime";import{useEffect as _q,useState as Ag}from"react";import{CanvasFrame as Aq}from"efficient-easel/easel";import{Button as Fq,Card as Bq,FitFrame as Lq,Text as Rq}from"efficient-shell/ui";import{jsx as D0,Fragment as g3,jsxs as y3}from"react/jsx-runtime";import{useEffect as N0,useLayoutEffect as S3}from"react";var Xf="data-theme",F0="light";function l3(e){return e.getAttribute(Xf)===F0?"light":"dark"}function i3(e,o){return l3(e)===o?!1:(o==="light"?e.setAttribute(Xf,F0):e.removeAttribute(Xf),!0)}function d3(e){return Kx(e).getItem(ox)}function Sle(e,o){Kx(e).setItem(ox,o)}function f3(e,o,t=new Date().getHours()){return Dw({mode:o.mode,override:d3(e),switchShown:o.switchShown,hour:t})}function B0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>i3(t,f3(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Xf]}),()=>n.disconnect()}var c3="style";function p3(e,o){let t=Dd(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 L0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>p3(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[c3]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as u3,VIEW_TABLET_MIN as m3}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"},Jo=cr,x3=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),h3=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(x3([Jo.fit,Jo.fitTablet,Jo.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 = ${m3}, DESKTOP_MIN = ${u3};
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(Jo.fitTablet)}, ${JSON.stringify(Jo.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(Jo.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(Jo.fit)}, ${JSON.stringify(Jo.fitTablet)}, ${JSON.stringify(Jo.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(Jo.min)}, ${JSON.stringify(Jo.minTablet)}, ${JSON.stringify(Jo.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(Jo))},
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);`,I3="storefront-fit-words";function R0(e){let o=e.createElement("script");return o.id=I3,o.textContent=h3,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var b3=`
303
+ [${Ue}][${Ue}] { cursor: text; }
304
+ `;function Jf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=vo(),n=sr(t);return N0(()=>{if(o)return B0(o,{mode:r,switchShown:a})},[o,r,a]),N0(()=>{if(o)return L0(o,n)},[o,n]),S3(()=>{if(o)return R0(o)},[o]),y3(g3,{children:[D0(t0,{}),D0("style",{children:b3}),e]})}import{jsx as _L}from"react/jsx-runtime";import{memo as f7}from"react";import{Render as c7}from"efficient-easel/render";import{jsx as Mn}from"react/jsx-runtime";import{createContext as w3,useContext as C3,useMemo as k3}from"react";var dh=w3(null);function v3({children:e}){return Mn(dh.Provider,{value:"first",children:e})}function Qf({children:e}){return Mn(dh.Provider,{value:"below",children:e})}function yl(){return C3(dh)}function fh(){return yl()==="below"?{loading:"lazy"}:{}}function ec(e){let o=fh();return Mn("img",{...e,...o})}var M0="laterSlideIds",P3=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function H0(e){return kf(e?.filter(o=>!o?.type||!P3.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 W0(e,o){let t=o?.type,r=o?.props?.id;return k3(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Mn(v3,{children:Mn(n,{...l})}):Mn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function $0(e){return e.props?Xe(e,o=>{let t=ze(o,$0),r=e.type===qC&&t.every(a=>a.type===Ud)?GC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function z0(e){return cd(e,o=>ze(o,$0))}var T3="Flex",U0="ListSearch",j0=["FAQ"],O3="listKey";function G0(e,o){let t={search:e.type===U0,list:j0.includes(String(e.type))};return Xe(e,r=>{for(let a of r){let n=G0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===T3&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function K0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=Xe(e,n=>ze(n,s=>K0(s,o,r)));return r&&(e.type===U0||j0.includes(String(e.type)))?{...a,props:{...a.props,[O3]:r}}:a}function q0(e){return an(e,o=>{let t=new Set;for(let r of o)G0(r,t);return t.size?ze(o,r=>K0(r,t,"")):o})}import{isNode as D$,isNodeList as jE}from"efficient-easel/data";import{jsx as _e,Fragment as k$,jsxs as mr}from"react/jsx-runtime";import{jsx as gh}from"react/jsx-runtime";import{Fragment as L3,jsx as R3}from"react/jsx-runtime";import{jsx as ch}from"react/jsx-runtime";import{createContext as A3,Fragment as F3,useContext as B3}from"react";import{jsx as V0,jsxs as E3}from"react/jsx-runtime";import{lazy as _3}from"react";var Y0=_3(()=>import("./section-css-style-VSIE7KKW.js"));function X0({css:e,id:o,attr:t}){return V0(Y0,{css:e,id:o,attr:t})}var J0={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,[Md]:""};let o=e.render;e.render=t=>{let r=mC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):E3(_r,{className:"sf-section-css",attrs:{[uC]:a},children:[V0(Y0,{css:r,id:a}),o(t)]})}}};var Z0=A3(null);function Q0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=_k(t),a=ch(F3,{children:o},"page");return ch(Z0.Provider,{value:t,children:r?[ch(X0,{css:r,id:Ek,attr:of},"css"),a]:a})}function eO(){return B3(Z0)}function Pt(){return Hd(eO())===wC}function oc({className:e,children:o}){let t=Pt();return R3(L3,{children:o(rt(e,t))})}import{SITE_SIDE as D3}from"efficient-easel/screen/lib/content/length-units";var oO="sideSpace",Sl=D3,ph="none",aie=[{value:"box",label:"Box"},{value:Sl,label:"Site"},{value:ph,label:"None"}],nie="box",sie="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 tO(e){return e===Sl||e===ph?e:"box"}function lie(e){return e===Sl||e===ph?e:void 0}import{parseOption as xh}from"efficient-shell/format";var tc="standard",sO=[{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"],rO={standard:["eyebrowLook"],editorial:[...mh,"eyebrowLook"],simple:uh,statement:uh,natural:mh,essay:uh},aO=["gap-5","gap-3"],nO=["text-[length:var(--size-body,16px)]","text-[15px]"];function cie(e){return xh(aO,aO[0],e)}function pie(e){return xh(nO,nO[0],e)}function lO(e){return xh(sO,tc,e)}function uie(e){let o=sO.map(r=>r.value),t=[...new Set(Object.values(rO).flat())];return tt(e,t.map(r=>[[r],Cd("headStyle",o,tc,o.filter(a=>!rO[a].includes(r)))]))}import{readHidable as N3,VIEW_TIERS as M3,viewKeyAt as H3}from"efficient-easel/draw";var ma={direction:"row",share:"content",align:"center"},xa={top:14,bottom:14,topPhone:12,bottomPhone:12},rc={wrap:"nowrap",loop:"scroll",sectionAccent:cC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},iO={gap:120,gapPhone:64},ac={...Ro,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},dO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},bl={top:24,bottom:24,topPhone:16,bottomPhone:16},ha={top:16,bottom:16,topPhone:12,bottomPhone:12},wl={justify:"between",wrap:"wrap",gap:32,separator:"none"},Cl={...Ro,letterSpacing:.1,lineHeight:1.5};var nc={top:24,bottom:24,topPhone:24,bottomPhone:24},sc={top:72,bottom:72,topPhone:72,bottomPhone:72},Hn={top:100,bottom:100,topPhone:60,bottomPhone:60},lc={top:120,bottom:120,topPhone:70,bottomPhone:70},W3={top:24,bottom:24,topPhone:24,bottomPhone:24},$3=40,ic={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},z3={top:24,bottom:24,topPhone:24,bottomPhone:24},dc={top:24,bottom:24,topPhone:24,bottomPhone:24},U3={top:84,bottom:84,topPhone:84,bottomPhone:84},fc={top:48,bottom:48,topPhone:48,bottomPhone:48},cc={top:80,bottom:80,topPhone:60,bottomPhone:60},pc={top:100,bottom:60,topPhone:60,bottomPhone:40},uc={top:60,bottom:60,topPhone:40,bottomPhone:40},mc={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},xc={top:76,bottom:76,topPhone:76,bottomPhone:76},hc={top:76,bottom:76,topPhone:76,bottomPhone:76},vl={top:80,bottom:40,topPhone:60,bottomPhone:32},Pl={top:76,bottom:76,topPhone:76,bottomPhone:76},Ic={top:72,bottom:72,topPhone:72,bottomPhone:72},gc={top:40,bottom:64,topPhone:24,bottomPhone:36},yc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Sc={top:48,bottom:48,topPhone:48,bottomPhone:48},Tl=e=>{let o=ye(e.bandPadding)??$3;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},fO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),hh=e=>cn(e.headPlacement)==="own-box",Le=(e,o)=>({top:fO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:fO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),cO=e=>({top:e.topPhone,bottom:e.bottomPhone}),kl=e=>o=>hh(o)?{top:0,bottom:e.bottom}:e,j3=(e,o)=>{let t=N3(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},bc={Banner:{frame:()=>Le(nc)},Cards:{frame:kl(Le(sc))},Chart:{frame:()=>Le(Pl)},ContactLocations:{frame:()=>Le(Hn,cO(Hn))},Countdown:{frame:()=>Le(fc)},DocBody:{frame:()=>Le(cc)},DocMasthead:{frame:()=>Le(pc)},DocMetaCards:{frame:()=>Le(uc)},FAQ:{frame:e=>{let o=hh(e)||!["num","title","linkText"].some(r=>j3(e,r)),t=Le(lc);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Le(mc)},Grid:{frame:()=>Le(W3)},Integrations:{frame:()=>Le(xc)},KeyFeatures:{frame:()=>Le(hc)},Logos:{frame:e=>hh(e)?0:Le(Tl(e))},LongRead:{frame:kl(Le(ic))},Masthead:{frame:()=>Le(vl,cO(vl))},Mockup:{frame:()=>Le(Pl)},OrderSummary:{frame:()=>Le(z3)},PaymentBadges:{frame:()=>Le(dc)},Prose:{frame:kl(Le(Ic))},SectionHeader:{frame:e=>{let o=Le(gc);return lO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:kl(Le(yc))},Stats:{frame:()=>Le(Sc)},Testimonials:{frame:kl(Le(U3))},Ticker:{frame:()=>Le(xa),edge:!0}};function vie(e,o,t){let r=z(bc,e)??t;return r?na({values:tl(o,ho,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var pO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function G3(e,o){let t={...e};for(let r of M3)delete t[H3(o,r)];return t}function Pie(e,o,t,r){let a=z(bc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=tl(o,ho,!0),l=(i,d)=>na({values:G3(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:pO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:pO(n,"bottom")})}}var K3=/^(?:[^\s]*:)?p[ytb]-/;function uO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!K3.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 q3}from"efficient-easel/data";var Ih=new Set(["FAQ"]);function Zo(e,o){if(!Ih.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:q3(t)}var hO={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}},IO=new Set(Object.keys(hO));function yh(e,o){return o?.innerPadding??z(hO,e)}var Wn=e=>yh(e)??{};var wc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),V3=new Set(["Divider"]),Y3=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),mO=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={...tl(n,ho,t),sideSpace:tO(n.sideSpace)},l=r?na({values:s,frame:r(n)},!0).outer:Pk(s),i=a(n);if(!l)return i;let d=u=>gh(oc,{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(af,{line:"by-box",draw:u=>d(u?m:f)})}}var gO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!Y3.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:Qd,fallback:r,tablet:!0,siteSide:!0})};return}if(mO.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=xO(o,e);if(n){SO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!yh(o,e)){if(mO.has(o)){Sh(e);return}wc.has(o)||V3.has(o)||Sh(e,o==="Flex"?t=>Jk(t.bgImage):Ih.has(o)?t=>Zo(o,t):void 0,!0,xO(o,e))}}},X3=["Heading","Text","ImageBlock","ButtonBlock"],J3=["LogoBlock"],yO={Text:e=>Fr(e,"text").textStyle?.startsWith("heading-")?rl.heading:rl.text,Heading:()=>rl.heading,ButtonBlock:()=>rl.text,Breadcrumb:()=>Ix(bl),SpecStrip:()=>Ix(ha),...Object.fromEntries(Object.entries(bc).map(([e,o])=>[e,o.frame]))};function xO(e,o){return z(yO,e)??o?.ownPad?.frame}var Z3={ButtonBlock:"Outer padding"};function Q3(e,o){let t=e[zt],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=Cn().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 eW(e,o,t){if(o<=0)return null;let r=Array.isArray(e[zt])?e[zt]:[];return(t?Cn().filter(a=>a.startsWith(ho[t])):Cn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function SO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,eW,z(Z3,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 bO={name:"blockPadding",applies:(e,o,t)=>(X3.includes(e)||J3.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(yO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}SO(e,o,t,r)},draw(e,o){wc.has(o)||Sh(e,void 0,!0)}};import{createContext as bh,useContext as Cc}from"react";var wO=bh(null);function Kie(){return Cc(wO)===!0}function qie(){return Cc(wO)!==null}var oW=bh(!1);function Vie(){return Cc(oW)}function Yie(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 kc=bh(null);function Xie(){return Cc(kc)}import{jsx as Ia}from"react/jsx-runtime";import{Component as dW,createContext as fW,lazy as pde,Suspense as ude,useContext as cW,useSyncExternalStore as pW}from"react";function tW(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 Qie(e){return e.startsWith("/")||vc(e)}function vc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var Ol=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function CO(e,o){return tW(e,o)?{...Ol}:{}}function ede(e){return typeof e=="string"?e.trim():""}var ode="data-sf-box-link",kO="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",rW="data-sf-box-jump";function aW(e){return`sf-box-jump-${e}`}function tde(e,o){return e===!0?fa(o):""}function nW({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 rde(e){let o=`[${rW}="${e}"]`,t=`.${aW(e)}`,r=`[id="${e}"]:target`;return nW({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 sW="hrefRewrite";function lW(){return on("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function iW(){return typeof process<"u"&&!0}function sde(e){let o=e?.[sW];return typeof o=="string"?o.trim():""}function vO(e){if(!e)return null;let o=lW(),t=o.rewrites.get(e);return!t&&!iW()&&o.missed.add(e),t??null}var uW={Link:hP,Image:xP},PO=fW(uW);function yde({runtime:e,children:o}){return Ia(PO.Provider,{value:e,children:o})}function kh(){return cW(PO)}function Sde(){return kh().pagePath??null}var mW=()=>()=>{},xW=()=>Sf()||null,hW=()=>null;function IW(){return pW(mW,xW,hW)}function ga({hrefRewrite:e,newTab:o,...t}){let{Link:r}=kh(),a=IW(),n=o===!0?{...t,...Ol}:o==="auto"?{...t,...CO(t.href,a)}:t,s=vO(e);return s?Ia(Ch,{name:s.name,href:n.href,fallback:Ia(r,{...n}),children:Ia(gW,{Link:r,rewrite:s.rewrite,...n})},s.key):Ia(r,{...n})}function gW({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 dW{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 Pc(e){let{Image:o}=kh();return Ia(o,{...e})}import{jsx as u$}from"react/jsx-runtime";import{jsx as Se,jsxs as Po,Fragment as d$}from"react/jsx-runtime";import{imageCopyUrl as OO,imageSrcSet as yW}from"efficient-shell/image-copies";var TO;function vh(){return TO===void 0?{}:{host:TO}}var kde="(max-width: 800px) 100vw, min(100vw, 1600px)",vde="(max-width: 960px) 100vw, 50vw";function ya(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=yW(e,{...vh(),...t===void 0?{}:{maxWidth:t}});return r?{src:OO(e,o,vh()),srcSet:r}:{src:e}}var SW=/[\s"'()\\;]/;function Pde(e){let o=OO(e,1920,vh());return o===e?SW.test(e)?`url("${gx(e)}")`:`url(${e})`:`url("${gx(o)}")`}import{parseOption as bW}from"efficient-shell/format";var El="solid",wW=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function EO(e){return bW(wW,El,e)}var Ph="sf-secnum-outline",_O="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",AO=`@supports (-webkit-text-stroke: 1px currentColor){.${Ph}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as FO}from"efficient-shell/format";var Th="plain",BO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],CW="line",kW={KeyFeatures:"filled"};function _l(e){return z(kW,e)??Th}function LO(e,o){return FO(BO,_l(o),e)}function Fde(e){return FO(BO,CW,e)}import{jsxs as wa,jsx as He}from"react/jsx-runtime";import{Fragment as Mh}from"react";import{Fragment as YW,jsx as Rh}from"react/jsx-runtime";import{Fragment as qO,jsx as Rl,jsxs as zW}from"react/jsx-runtime";import{createContext as Lh,useContext as Dl,useEffect as UW,useId as jW,useMemo as GW,useRef as KW}from"react";import{armEntrance as qW}from"efficient-shell/format";import{jsx as vW}from"react/jsx-runtime";import{useEffect as DO,useRef as RO,useState as PW}from"react";import{armEntrance as TW,entranceAttrs as OW,playEntrance as EW}from"efficient-shell/format";function Tc({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=RO(null),d=sf(),f=nt(),m=n?f:Or,u=Al(i,!0,s),{attrs:h,style:I}=OW(e[u]),S=RO($n.seed(e)),P=JSON.stringify(e);return DO(()=>{let T=i.current;if(T){if(o){let B=$n.next(S.current,e,u);S.current=B.seen,B.play&&EW(T);return}return TW(T)}},[P,u,o]),m.scope(vW("div",{ref:i,className:ko(`${Sn}${d.fill}${t?` ${t}`:""}`,m.className),...r,...m.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:d.inner(l)}))}var $n={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=$n.seed(o);return{play:r[t]!==e[t],seen:r}}};function Al(e,o=!0,t=!1){return Fl(e,o,t)??"desktop"}function Fl(e,o=!0,t=!1){let[r,a]=PW(void 0),n=Er(t?"edge":"by-box"),{phone:s,tablet:l}=Yv(n);return DO(()=>{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 Bl="@name",NO="@body",MO="@value",HO={[Bl]:"Name",[NO]:"Body",[MO]:"Value"},_W={TimelineTrack:{"entries.date":Bl,"entries.title":Bl,"entries.blurb":NO},Footprint:{"offices.city":Bl},Stats:{"items.label":Bl,"items.value":MO}};function AW(e){let{key:o,row:t}=Ut(e);return t?`${o}.${t.rowKey}`:null}function pr(e,o){if(!e)return o;let t=AW(o);return t?z(_W,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as NW,entranceAttrs as MW,scrollAttrs as HW}from"efficient-shell/format";import{parseFocal as LW,formatFocal as RW,readScroll as DW}from"efficient-shell/format";import{phoneKey as FW,tabletKey as BW}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"}],WO=e=>[e,BW(e),FW(e)],qde=[...new Set(Oh.flatMap(e=>WO(e.focus)))].sort();function $O(e,o){let[t,r,a]=WO(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"},zn="_gScroll",Oc="_cScroll",Ec=Gd(Object.values(oo));function Kt(e,o){return DW(yn(e,oo.effect,o),yn(e,oo.zoom,o),yn(e,oo.start,o),yn(e,oo.end,o),yn(e,oo.ease,o))}function Un(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=lk(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=LW(a);return RW(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function zO(e,o){return Eh($O(e,o))}var _c={},_h="_partMotion",Ah=[...Kd,ot,Ke.duration,Ke.delay,...Ec];function jO(e){return wv(e,_h)}function Sa(e,o){return Cv(e,_h,o)}var WW=new Set([Xo.kind,ot,oo.effect]);function GO(e,o,t,r){let{[t]:a,...n}=Sa(e,o),s=r==null||r===""||r==="none"&&WW.has(t)?n:{...n,[t]:r};return kv(e,_h,o,Object.keys(s).length?s:null)}function Ll(e){return{entrance:bn(e),hover:_b(e),scroll:Un(e)}}function KO(e){let o=Ll(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Ac(e,o){let{attrs:t,style:r}=MW(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(NW)}}function Fc(e,o){let{attrs:t,style:r}=HW(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 $W=4;function jn(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&$W)&&(o=t);return o}var Fh="data-sf-part-host";function Bc(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Fh)&&!t.classList.contains(Sn);){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",UO="sf-part-lift";function Lc(e){if(e.getElementById(UO))return;let o=e.createElement("style");o.id=UO,o.textContent=Av(`[${ba}]`).join(`
317
+ `),e.head.appendChild(o)}var Rc=Lh(null),YO=Lh(null),XO=Lh(null);function JO({needles:e,styles:o,motions:t=_c,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=jW(),i=Er(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),f=kt(),m=GW(()=>{let h=Object.keys(t).filter(I=>KO(t[I]));return Vv(e,o,l,I=>pr(r,I),I=>il(r,I),I=>h.includes(I)?Ll(t[I]):null,h,I=>ia(n,I),f)},[d,f]);if(!m)return Rl(qO,{children:s});let u=Xv(m,{inBox:i});return zW(qO,{children:[u&&Rl("style",{href:`${VW}${l}-${Yk(u)}`,precedence:QO,dangerouslySetInnerHTML:{__html:Vk(u)}}),Rl(Rc.Provider,{value:m,children:s})]})}var Bh=new WeakMap;function VO(e,o){let t=jn(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:jn(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)?(Lc(e.ownerDocument),e.setAttribute(ba,"")):e.removeAttribute(ba)}function ZO(e){let o=KW(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Al(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 UW(()=>{let d=o.current,f=Bc(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let m=s?()=>{let I=Ac(f,s),S=qW(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?()=>Fc(f,l):null,lift:a};return u.push(h),VO(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,VO(f,u),u.length||Bh.delete(f))}},[i,a]),o}var QO="sf-part-styles",VW=`${QO}-`;function eE(e){let o=Dl(Rc),t=Dl(YO),r=Jv(o,e);return r&&r.stamp!==t?r:null}function hfe(e){return vx(Dl(Rc),e)}function oE({stamp:e,children:o}){return Rl(YO.Provider,{value:e,children:o})}function Ife({children:e}){let o=Dl(Rc);return Rl(XO.Provider,{value:o,children:e})}function gfe(e){return vx(Dl(XO),e)}function Nl({value:e,children:o}){let t=eE(e),r=ZO(t);return t?Rh(oE,{stamp:t.stamp,children:Rh("span",{ref:r,[Pv]:t.stamp,...t.textStyle?{[sa]:t.textStyle}:{},children:o})}):Rh(YW,{children:o})}import{jsx as Dh,Fragment as XW}from"react/jsx-runtime";function tE({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(tE,{},`r${a}`))}),Dh(XW,{children:t})}var vfe=tE;function Je(e,o=!1,t){let r=r$(o),a=hd(e);if(a.length===1){let[s]=a,l=Eb(s),i=l?o$(l,s.children):s.children;return wa(Nl,{value:e,children:[t,Dc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(He("span",{"data-sf-bullet":"",className:JW,children:Dc(s.children,r)},l));return}if(s.number!=null){n.push(wa("span",{"data-sf-number":s.number,className:ZW,children:[wa("span",{className:QW,children:[s.number,"."]}),Dc(s.children,r)]},l));return}l>0&&!e$(a[l-1])&&n.push(He("br",{},`br${l}`)),n.push(He(Mh,{children:Dc(s.children,r)},l))}),wa(Nl,{value:e,children:[t,n]})}var JW="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",ZW="relative block pl-[2em]",QW="absolute left-0 w-[1.6em] text-right tabular-nums";function e$(e){return e.bullet||e.number!=null}var rE="text-accent underline underline-offset-[0.18em]";function o$(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function t$(e){return Xk(e)||void 0}function Dc(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(nE(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):nE(t,r,o))}function r$(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function Dfe(e){return aE(e)}function aE(e,o){let t=e.split(`
318
+ `);return wa(Nl,{value:e,children:[o,t.map((r,a)=>wa(Mh,{children:[a>0?He("br",{}):null,He("span",{children:r})]},a))]})}function nE(e,o,t){if(e.kind==="link")return vc(e.href)?He(ga,{newTab:"auto",href:e.href,className:rE,children:Nh(e.children,t)},o):He("a",{href:e.href,className:rE,children:Nh(e.children,t)},o);let r=Nh(e.children,t),a=vb[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=t$(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 sE(e,o=!0,t=!1){let r=e.split(`
319
+ `);return He(Nl,{value:e,children:r.map((a,n)=>wa("span",{children:[t?aE(a):Je(a,o),n<r.length-1?He("br",{}):null]},n))})}function lE(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Hh,jsxs as n$}from"react/jsx-runtime";import{jsx as a$}from"react/jsx-runtime";function iE(){return a$("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 s$(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var l$=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Wh.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,i$=`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 Gn({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(n$("div",{className:ko([a,i$,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Hh(iE,{}),Hh("span",{children:Je(e)})]}));let d=o==="filled"?l$:s$(t,r);return i.scope(Hh("span",{className:ko([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Je(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)]"},dE=[{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}`}],f$="lg";function c$(e){return(dE.find(o=>o.value===e)??dE.find(o=>o.value===f$)).cls}var Kn=(e,o=!1)=>typeof e=="string"?sE(e,o):e,ur=(e,o=!1)=>typeof e=="string"?Je(e,o):e;function fE({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=El,look:i="standard",titleAccent:d,accentTracking:f="-0.02em",spaceBelow:m,rowGap:u,descriptionSize:h,className:I="",eyebrowLook:S=Th,titleSize:P,count:T,capped:B=!1,rootPadsBottom:k=!1}){let g=Pt(),b=m??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?Po("div",{className:rt(`${kP} sticky top-[var(--sf-header-h,88px)] z-30 mb-5 flex items-center justify-between gap-4 max-view-wide:flex-wrap max-view-wide:gap-y-2 border-b border-line bg-bg/95 py-3 backdrop-blur-md ${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:`${c$(P)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:Kn(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:`${b} grid grid-cols-[auto_1fr_auto] items-end gap-10 border-b border-line pb-8 max-view-desktop:grid-cols-1 max-view-desktop:gap-3.5 ${I}`.trim(),children:[e&&(typeof e=="string"?Se(Gn,{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(d$,{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=`${b} ${I}`.trim();return Po("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se(Gn,{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:Kn(o)})]})}if(i==="statement"){let y=`${b} ${I}`.trim();return Po("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se(Gn,{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:Kn(o,!0)})]})}if(i==="natural"){let y=`flex max-w-[680px] flex-col ${u??"gap-5"} ${b} ${I}`.replace(/\s+/g," ").trim();return Po("div",{className:y,children:[e&&(typeof e=="string"?Se(Gn,{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:Kn(o)}),a&&Se("p",{className:`${h??`${Ee.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let y=`${b} ${I}`.trim();return Po("div",{className:y||void 0,children:[e&&(typeof e=="string"?Se(Gn,{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:Kn(o)})]})}let E=!!a||!!t,A=!!o,N=EO(l)==="outlined",w=`font-mono ${Ee.label} uppercase tracking-[0.3em]`,_=null;if(e)if(N)_=Se("span",{className:`${_O} text-fg-dim ${Ph}`,children:ur(e)});else if(s&&!n&&typeof e=="string"){let y=e.indexOf("/"),v=y===-1?e:e.slice(0,y),O=y===-1?"":e.slice(y);_=Po("span",{className:w,children:[Se("span",{className:"text-accent",children:ur(v)}),O&&Se("span",{className:"text-fg-dim",children:ur(O)})]})}else _=Se("span",{className:`${w} ${n?"text-accent":"text-fg-dim"}`,children:ur(e)});return Po("div",{className:k?"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:AO}),Po("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Se(Rk,{children:Se(ec,{...p$(bP(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:Kn(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 p$(e){let o=ya(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function cE({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return u$(fE,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Hl,jsxs as S$}from"react/jsx-runtime";import{useEffect as b$,useState as bE}from"react";import{jsx as m$}from"react/jsx-runtime";var pE="sf-photo-hover";function Nc({sheet:e,name:o=pE}){return e?m$("style",{href:o,precedence:pE,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as gE,Fragment as I$}from"react/jsx-runtime";import{createContext as g$,useContext as Hc}from"react";var x$=Zb["view-desktop"];function h$(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`,Mc=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function pce(e,o){return{phone:$h(e.phone*Mc(o?.phone)),tablet:$h(e.tablet*Mc(o?.tablet)),desktop:$h(e.desktop*Mc(o?.desktop))}}function zh(e){if([e.phone,e.tablet,e.desktop].every(r=>Mc(r)>=1))return;let o=[{below:tr,slot:e.phone},{below:x$,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return h$(t,e.desktop)}function uE(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 mE=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,xE=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function hE(e,o){if(e===o)return e;let t=[...xE(e),...xE(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 IE(e,o){if(!o)return e;let t=uE(e),r=uE(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:hE(mE(t,s),mE(r,s))})),n=hE(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 y$={hasWidth:!1},Ml=g$(y$);function Ice(){return Hc(Ml).hasWidth}function gce(e){let{bound:o}=Hc(Ml);return o&&zh(o)||e}function yE(e){let{bound:o}=Hc(Ml);return IE(e,o&&zh(o))}function SE({children:e}){let o=Hc(Ml);return o.bound?gE(Ml.Provider,{value:{hasWidth:o.hasWidth},children:e}):gE(I$,{children:e})}function wE({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=yE(s),I=l?h:s,[S,P]=bE(!1),[T,B]=bE(!1),k=t||"";b$(()=>{P(!1),B(!1)},[k]);let g=bf(k),b=g&&!T?ya(k):{src:k},E=!k||S;return S$("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Hl("div",{className:"absolute inset-0 flex items-center justify-center",style:f?{background:"var(--site-surface)"}:void 0,children:E?e:null}),Hl(tf,{fill:al,children:k&&(g?Hl("img",{src:b.src,alt:r,...b.srcSet?{srcSet:b.srcSet,sizes:I}:{},decoding:"async",...d?{loading:"lazy"}:u,className:`absolute inset-0 h-full w-full${m?.className?` ${m.className}`:""}`,style:{display:S?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...m?.style??{}},onError:()=>b.srcSet?B(!0):P(!0)}):Hl(Pc,{src:k,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:()=>P(!0)}))}),Hl(Nc,{sheet:m?.sheet})]})}import{jsx as w$}from"react/jsx-runtime";var Wl="sf-empty-hides",Uh="sf-empty-else",Wc="sf-head-core",$c="sf-head-box",$l="holdsHeadCore",zl="isHeadCore",C$=`.${Wl}:empty{display:none}.${Wl}:not(:empty)~.${Uh}{display:none}.${$c},.${Wc}{display:contents}.${$c}:not(:has(.${Wc}:not(:empty))){display:none}`;function zc(){return w$("style",{children:C$})}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)]"},CE={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",v$="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 Yce({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:P}){let T=Pt(),B=P!==void 0,k=S&&(B||(r?.blockCount??0)>0)?S:null,g=d??Ok({padTop:l,padBottom:i},Wn("ProcessSteps")),b=B?[]:Gh(a),E=b.length>0?b:f&&!r&&!B?[1,2,3].map(y=>({tag:c("Column {n}",{n:y})})):[],A=CE[n]??CE[3],N=k?"grid-cols-1":A,w=k?"":" [&>*]: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,...dT(u,h)},children:mr("div",{className:rt(TC,T),children:[m?null:_e(cE,{num:e,title:o?.trim()?Je(o,!0):void 0,desc:t?.trim()?Je(t,!1):void 0}),r&&!B?mr(k$,{children:[_e(zc,{}),k?_e(kc.Provider,{value:{hand:k,ids:r.blockIds??[],boxes:[]},children:_e(r,{className:`${jh} ${Wl} sf-card grid ${N} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,minEmptyHeight:260})}):_e(r,{className:`${jh} ${Wl} sf-card grid ${N} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,B&&P?_e("div",{className:`${jh} sf-card grid ${N} gap-[2px] border border-line bg-line${w} [&>*]:bg-bg`,children:k?_e(kc.Provider,{value:{hand:k,copies:!0},children:P}):P}):null,E.length>0&&_e("div",{className:`${v$} ${Uh} sf-card grid ${A} gap-[2px] border border-line bg-line`,children:E.map((y,v)=>{let O=(y.specs??[]).filter(C=>(C?.label??"").trim()||(C?.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(wE,{label:y.tag?.trim()||y.title?.trim()||`column-${v+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, ${Ys(.55)} 0%, transparent 30%, transparent 70%, ${Ys(.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%, ${Ys(.73)} 55%, ${Ys(.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:Je(y.title,!0)}),y.copy?.trim()&&_e("p",{className:`min-h-[3em] font-display ${Ho.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Je(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((C,L)=>mr("div",{className:"flex flex-col gap-1",children:[C.label?.trim()&&_e("span",{className:`font-mono ${Ho.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:lt(C.label)}),C.value?.trim()&&_e("span",{className:`font-display ${Ho.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:lt(C.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:Je(y.title,!0)}),y.copy?.trim()&&_e("p",{className:`font-display ${Ho.bodySmall} leading-[1.55] text-fg-dim`,children:Je(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((C,L)=>mr("div",{className:"flex flex-col gap-1",children:[C.label?.trim()&&_e("span",{className:`font-mono ${Ho.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:lt(C.label)}),C.value?.trim()&&_e("span",{className:`font-display ${Ho.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:lt(C.value)})]},L))})]})]},v)})}),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 P$=["selected","highlighted"],kE="data-sf-card-state",PE="pointer-events-none absolute inset-0 border border-accent",TE="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",OE="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",EE="absolute inset-y-0 left-0 w-[3px] bg-accent",_E="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",AE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",vE=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},T$={[vE("muted")]:`var(${vE("fg")})`};function Kh(e){return e?.selected===!0}function qh(e){return e?P$.filter(o=>e[o]===!0).join(" "):""}function FE(e,o="frame"){let t=qh(e);return t?o==="frame"&&Kh(e)?{[kE]:t,className:"relative isolate",style:{...T$}}:{[kE]:t,className:"relative"}:{}}var O$={highlighted:!0},E$={},Uc="badge";function epe(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Gs(t,r)}))}function BE(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===Uc||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function ope(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,[Uc]:s===a?t:""})),states:e.map((n,s)=>s===a?O$:E$)}}function tpe(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function rpe(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 LE="data-sf-card-press",RE=`${kO} appearance-none bg-transparent border-0 p-0 m-0`,DE=`${RE} cursor-pointer`,NE=RE;import{paymentMarkItems as _$,paymentMarks as A$}from"efficient-shell/icons/payment";var F$=[tb,rb],ME=e=>F$.includes(e),HE=e=>_$({name:e.label,kind:e.kind}),B$=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function WE(e){return A$(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>HE(t).some(r=>B$(r,o)))?.kind??""}))}function lpe(e){return HE(e)[0]??null}var $E={heading:"Trusted by *teams worldwide*"},jc=()=>[{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")}],L$=fd.Logos,cpe={label:"Logos",drawsPictures:!0,fields:L$,defaultProps:{items:[],contained:!0}};var R$=()=>jc().map(e=>({label:e.alt}));function zE(e,o){let t=dd(e,o,R$()).rows.filter(r=>r.label);return ME(Me(e))?WE(t):t}var Ul="Flex",N$="Text",jl=e=>Object.values(e??{}).filter(jE),M$=e=>e.type===io&&Me(e.props)!=="",GE=e=>{if(e.type!==Ul)return!1;let o=jl(e.props).flat();return o.length>0&&o.every(M$)},Gc=e=>cn(e.props?.headPlacement)==="own-box"||GE(e),Vh=e=>e===void 0||Array.isArray(e)&&e.length===0;function KE(e){return e.type===N$?!0:e.type===Ul&&jl(e.props).every(o=>o.every(KE))}var qE={ProcessSteps:e=>Vh(e.boxes)&&Gh(e.steps).length===0,Logos:e=>Me(e)?H$(e):Vh(e.logos)&&Vh(e.items)};function H$(e){return ib(e)!==null&&zE(e,!1).length===0}function W$(e){return jl(e.props).flat().every(o=>!dd(o.props,!1).rows.some(BE))}function Kc(e){let o=jl(e.props).flat();return o.some(Gc)&&o.every(t=>Gc(t)||KE(t))}function $$(e){if(!D$(e)||!Gc(e))return e;let o=GE(e)?W$(e):z(qE,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[zl]:o?"empty":!0}}}function UE(e){return Xe(e,o=>ze(o,$$))}function VE(e){let o=Object.entries(e.props??{}).filter(([,r])=>jE(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===Ul&&t.props?{key:o[0][0],inner:t}:null}function YE(e){if(e?.type!==Ul||!e.props)return e;if(Kc(e)){let t=UE(e);return{...t,props:{...t.props,[$l]:!0}}}let o=VE(e);return!o||!Kc(o.inner)?e:{...e,props:{...e.props,[o.key]:[UE(o.inner)],[$l]:!0}}}function XE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=YE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var z$=e=>z(qE,String(e.type))?.(e.props??{})===!0;function U$(e){if(e.type!==Ul||!e.props)return!1;let o=Kc(e)?null:VE(e),t=o?o.inner:e;if(!Kc(t))return!1;let r=jl(t.props).flat().filter(Gc);return r.some(a=>Me(a.props)!=="")&&r.every(z$)}function JE(e){return Xe(e,o=>j$(o))}function j$(e){let o=!1,t=[];for(let r of e){if(U$(r)){o=!0;continue}let a=JE(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function ZE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(YE(a)!==a)return a;let n=JE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var G$=["DocMasthead","AlloyWheelsListing"],qc="titleLevel",K$=e=>e===2?"h2":"h1",Yh=e=>K$(e?.[qc])==="h2";function QE(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>G$.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[qc]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as Z$}from"efficient-easel/draw";var qn="showFor";function e_(){return on("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var q$=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function _pe(){return e_().choices}function Ape(){return e_().revision}function o_(e){return q$(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as V$}from"efficient-easel/draw";var Xh="_wallLabelId",Y$="_wallLabelledBy",Jh=e=>e.props?.id==null?"":String(e.props.id);function X$(e){if(!e||e.type!=="Text"||!Jh(e))return!1;let o=V$(e.props?.text);return!o.hidden&&o.text.trim()!==""}var J$=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Jh(e)!=="",t_=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function r_(e){let o=ze(e,r=>Xe(r,r_)),t=null;for(let r=1;r<o.length;r++){if(!J$(o[r])||!X$(o[r-1]))continue;let a=`sf-wall-label-${Jh(o[r-1])}`;t??=o.slice(),t[r-1]=t_(t[r-1],Xh,a),t[r]=t_(t[r],Y$,a)}return t??o}function a_(e){return an(e,r_)}var n_="_cardPressTitles",Q$="_cardPressTitle";function zpe(e,o){let t=e?.[n_],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var s_=(e,o)=>({...e,props:{...e.props,...o}});function ez(e){let o=e.props??{};return e.type!=="Text"||Z$(o.text).hidden||typeof o[Vo]=="string"||typeof o[Xh]=="string"?"":Wt(o)}function l_(e,o,t,r){return ze(e,a=>{let n=ez(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),s_(a,{[Q$]:!0});if(a.type==="Text"||Array.isArray(a.props?.[qn]))return a;let s=a.props?.[tn],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return Xe(a,(i,d)=>aa(a.type,d)?i:l_(i,l,t,r))})}function i_(e){let o,t=Xe(e,(r,a)=>{let n=ze(r,i_);if(!aa(e.type,a))return n;let s=[],l=l_(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?s_(t,{[n_]:o}):t}function d_(e){return an(e,o=>ze(o,i_))}import{pinnedDuplicateIndices as UU}from"efficient-easel/draw";import{jsx as Wo,jsxs as y1}from"react/jsx-runtime";import{createContext as RU,useContext as DU,useEffect as NU,useRef as S1,useState as b1}from"react";import{jsx as Dr,jsxs as T_}from"react/jsx-runtime";import{useEffect as Vn,useRef as O_,useState as Ca}from"react";import{jsx as f_,Fragment as oz,jsxs as tz}from"react/jsx-runtime";import{useEffect as rz,useRef as c_,useState as az}from"react";var nz="#t=0.001",sz=2;function lz(e,o){if(e.readyState<sz||!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 p_({src:e,objectPosition:o="50% 50%",onError:t}){let r=c_(null),a=c_(null),[n,s]=az(!1);return rz(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{lz(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),tz(oz,{children:[f_("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&&f_("video",{ref:r,src:`${e}${nz}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{useEffect as cz}from"react";import{PIN_SCRUB as pz,PIN_STEPS_ATTR as g_}from"efficient-shell/format";var u_="video-time";function m_(e,o,t){if(!Number.isFinite(t)||t<=0)return e;let r=(e+o*t)%t;return r<0?r+t:r}function x_(e,o,t,r){if(!Number.isFinite(r)||r<=0)return e;let a=Math.max(0,r-dz),n=Math.min(a,Math.max(0,e)),s=Math.min(1,Math.max(0,t));return s>=o?o>=1?a:n+(s-o)/(1-o)*(a-n):o<=0?0:n*(s/o)}function h_(e,o){return!(o&&e>=1-iz)}var iz=.005,dz=.05;function I_(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 y_(e,o,t){cz(()=>{let r=t.current;if(!e||!r)return;let a=r.ownerDocument.defaultView??window,n=r.closest("[data-motion-pin]"),s=n??r;n?.setAttribute(g_,pz);let l=()=>{let k=s.getBoundingClientRect();return I_({top:k.top,height:k.height},a.innerHeight)},i=l(),d=!1,f=0,m=0,u=0,h=!1,I=0,S=()=>{let k=o.current;if(k){if(Math.abs(k.currentTime-f)<.01){h=!1;return}h=!0,k.currentTime=f}},P=()=>{h=!1;let k=o.current;d&&k&&Math.abs(k.currentTime-f)>.02&&S()},T=()=>{let k=l(),g=k-i;i=k;let b=o.current;g===0||!b||!b.duration||(d||(d=!0,b.pause(),f=b.currentTime,m=k-g,u=f),f=n?x_(u,m,k,b.duration):m_(f,g,b.duration),h||S(),a.clearTimeout(I),I=a.setTimeout(()=>{d=!1,h_(l(),!!n)&&o.current?.play()?.catch(()=>{})},150))},B=()=>{i=l()};return r.addEventListener("seeked",P,!0),a.addEventListener("scroll",T,{passive:!0}),a.addEventListener("resize",B),()=>{n?.removeAttribute(g_),r.removeEventListener("seeked",P,!0),a.removeEventListener("scroll",T),a.removeEventListener("resize",B),a.clearTimeout(I)}},[e,o,t])}import{useEffect as mz}from"react";var S_="video-name-ticks";var b_='[data-part="text"] a[href]';function w_(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 C_(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 xz="var(--overlay-fg)",hz="color-mix(in srgb, var(--overlay-fg) 25%, transparent)";function k_(e,o,t){mz(()=>{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(b_)]:[],l=[];if(e==="names"){r.replaceChildren();for(let m=0;m<s.length;m++){let u=r.ownerDocument.createElement("b");u.style.background=hz;let h=r.ownerDocument.createElement("i");h.style.background=xz,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=w_(m.currentTime,m.duration,l.length);l.forEach((I,S)=>{I.style.transform=`scaleX(${u[S]})`});let h=C_(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",tue=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 Gl={min:40,max:100,step:5,fallback:100,unit:"vh"};function gz(e){return`${typeof e=="number"?e:Gl.fallback}${Gl.unit}`}function v_(...e){return e.some(o=>typeof o=="number"||Kl(o)!==null)}var Zh={...Dk,fallback:680,unit:"px"},sue={ratio:"16/9",px:`${Zh.fallback}px`},yz=/^(\d{1,5}(?:\.\d{1,3})?)px$/;function Kl(e){if(typeof e!="string")return null;let o=Fk(e);if(o!==null)return{unit:"ratio",value:e,css:"auto",aspect:o};let t=yz.exec(e);if(t&&Number(t[1])>0){let r=Math.min(Zh.max,Math.max(Zh.min,Number(t[1])));return{unit:"px",value:`${r}px`,px:r,css:`${r}px`}}return null}function Sz(e){return Object.keys(e.style??{}).some(o=>o.startsWith("--sf-hero-ar-"))}function lue({heightDesktop:e,heightTablet:o,heightMobile:t,heightFixed:r,heightFixedTablet:a,heightFixedMobile:n}){let s=I=>Kl(I)?.value,l=v_(e,t,s(r),s(n)),i=v_(o,s(a)),d=(I,S,P)=>{let T=Kl(S);return T?.unit==="ratio"?{[`--sf-hero-h-${I}`]:T.css,[`--sf-hero-ar-${I}`]:T.aspect}:{[`--sf-hero-h-${I}`]:T?.css??gz(P)}},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=Sz({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 Vc=1280,bz="16 / 9",wz="100svh",Cz=[{minDppx:3.01,dppx:4,capPx:Math.floor(Vc/4)},{minDppx:2.01,dppx:3,capPx:Math.floor(Vc/3)},{minDppx:1.01,dppx:2,capPx:Math.floor(Vc/2)},{minDppx:null,dppx:1,capPx:Vc}];function P_(e=wz){let o=`max(100vw, calc(${e} * ${bz}))`;return[...Cz.map(({minDppx:t,capPx:r})=>`${t===null?Pn:`${Pn} and (min-resolution: ${t}dppx)`} min(${o}, ${r}px)`),"100vw"].join(", ")}function cue(e,o){let t=Kl(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>=Gl.min&&e<=Gl.max)return`${e}svh`}var kz=.5;function ql({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=kz,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:f,quiet:m=!1,slideShown:u,laterSlide:h=!1,laterOfLead:I=!1,phoneFrame:S,followsScroll:P=!1,progress:T,followScrollBar:B}){let k=P_(S),g=wP(d,f),b=yl(),[E,A]=Ca(!1),N=b==="below"&&!E,w=b==="first",_=a||"",y=n||"",v=O_(null),O=Fl(v,!0,!0),C=O===void 0?void 0:O==="phone",L=Cf({video:e,av1:o,videoPhone:t,av1Phone:r},C===!0),M=L.video||"",K=wf(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=b!=="first"&&!I,[Ze,qo]=Ca(!1),Qe=O_(null),mo=B?{kind:"bar",fill:B}:void 0;y_(P||!!B,Qe,v),k_((T??mo)?.kind??"none",Qe,(T??mo)?.fill),Vn(()=>{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]),Vn(()=>{se(!1),ee(!1),ae(!1),ge(!1)},[M,_,y]),Vn(()=>{Ge&&Eo(!0)},[Ge]),Vn(()=>{let ie=Qe.current;ie&&(Ge?ie.play()?.catch(()=>{}):ie.pause())},[Ge,Ve,Ze]),Vn(()=>{if(!h||Ye&&!Ze)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,Ze]),Vn(()=>{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 $=bf(_),de=_&&($||y)&&!le?ya(_):{src:_},he=y&&!le?ya(y):{src:y},De=y&&!N&&!E?[{sized:he,media:Pn},..._?[{sized:de,media:$s}]:[]]:[];return T_("div",{ref:v,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:k}:{}},Ne)),(_||y)&&($||y?(()=>{let ie=Dr("img",{..._?{src:de.src}:{},...de.srcSet?{srcSet:de.srcSet,sizes:k}:{},alt:"",...N?{loading:"lazy"}:{},...w?{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?T_("picture",{children:[Dr("source",{media:Pn,srcSet:he.srcSet||he.src,sizes:k}),ie]},`${_} ${y}`):ie})():Dr(Pc,{src:_,alt:"",fill:!0,...N?{}:E?{loading:"eager"}:{priority:!0},sizes:k,className:`z-[2] object-cover ${g.className}`.trim(),style:{display:W?"none":"block",objectPosition:i,...g.style},onError:()=>se(!0)},_)),s&&!m&&M&&C!==void 0&&Ve&&(!Ye||Ze)&&!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&&C!==void 0&&Ve&&(!Ye||Ze)&&!me&&(!_||W)&&Dr(p_,{src:M,objectPosition:i,onError:()=>ge(!0)},M)]})}import{jsx as E_}from"react/jsx-runtime";import{forwardRef as vz}from"react";var Pz=vz(function(e,o){return E_("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(u_),children:E_("i",{ref:o,className:"block h-full w-full origin-left",style:{background:"var(--overlay-fg)",transform:"scaleX(0)"}})})}),__=Pz;import{jsx as Tz}from"react/jsx-runtime";import{forwardRef as Oz}from"react";var Ez=Oz(function(e,o){return Tz("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(S_)})}),A_=Ez;import{jsx as Io,Fragment as j_,jsxs as rI}from"react/jsx-runtime";import{jsx as Yn}from"react/jsx-runtime";import{useRef as _z}from"react";import{EXPAND_SIDE_VAR as Az,SCROLL_EFFECTS_WITH_ZOOM as Fz,scrollAttrs as Bz}from"efficient-shell/format";var Lz={[Az]:`var(${IC}, 0px)`};function Yc({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=_z(null),m=sf(),u=nt(),h=n?u:Or,I=Al(f,!0,s),S=Bz(e[I],o[I]),{attrs:P}=S,T=e[I].effect==="expand"?{...S.style,...Lz}:S.style,B=Fz.includes(e[I].effect),k=ko(`${Sn}${m.fill}${t?` ${t}`:""}`,h.className);if(B&&l==="picture")return h.scope(Yn("div",{ref:f,className:k,...r,...h.attrs,...a?{style:a}:{},children:Yn(Bk,{attrs:P,style:T,children:m.inner(d)})}));let g=Yn(Lk,{children:m.inner(d)});if(B){let E=i??(m.fill?"h-full":void 0);return h.scope(Yn("div",{ref:f,className:k,...r,...h.attrs,style:{...a,overflow:"clip"},children:Yn("div",{...E?{className:E}:{},...P,style:T,children:g})}))}let b=Object.keys(T).length||a?{style:{...a,...T}}:{};return h.scope(Yn("div",{ref:f,className:k,...r,...h.attrs,...P,...b,children:g}))}var ka=["media","image","image2"],xr={media:"Media",image:"Image",image2:"Image 2"},Vl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Xc(e,o){return e==="image"&&Qs(o)>1?"Image 1":xr[e]}var Jue="Video file",Zue="Upload a video file",Que="AV1 file",eme="Upload an AV1 file";function Rz(e,o){return Cd("mediaType",Vd,o,[e])}var Dz=new Set(Object.keys(Yd)),F_="heroPart";function Nz(e,o){return{...o,[F_]:e}}function ome(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Vd.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 Vd)for(let i of t[l])n[i]=ro(n[i],Rz(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=ro(n[l],i));for(let l of ka)for(let i of o[l]??[])n[i]=Nz(l,n[i]);return n}function Mz(e){let o=e?.[F_];return ka.includes(o)?o:null}function B_(e,o){let t={};for(let[r,a]of Object.entries(e))Mz(a)===o&&(t[r]=a);return t}function L_(e){if(!Dz.has(e.type))return[];let o=[{part:"media",label:xr.media,depth:0}];return dk(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:Xc("image",e.props),depth:1}),Qs(e.props)>1&&o.push({part:"image2",label:Xc("image2",e.props),depth:1})),o}function va(e,o){return`${e}::${o}`}function Jc(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return ka.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var Yl="data-sf-hero-part";import{MOTION_TIMING as Hz}from"efficient-shell/format";var M_="grayscale(1) contrast(1.03)",nme="Black and white";function Wz(e){return e===!0?{filter:M_}:{}}function $z(e){let{filter:o}=Wz(e);return o?{style:{filter:o}}:{}}var Pa="sf-photo-grayscale",tI="data-sf-photo-host",R_={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},op=`@media (hover:hover){.${Pa}{filter:${M_};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 H_(e){let o=Hz.hover,t={...e.duration!==o.duration.default?{[R_.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[R_.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function W_(e,o,t){if(e===!0)return $z(!0);if(t?.kind==="mono"){let r=H_(t);return{className:Pa,sheet:op,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Pa}:{}}var $_="data-sf-repeat",Qh="sf-photo-zoom",zz="--sf-photo-zoom",sme="sf-photo-wash",Zc="sf-photo-wash-rest",Xl="sf-photo-wash-hover",ep="sf-photo-frame",z_=(e,o)=>`:not([${$_}]:not(${o}) .${e})`,oI=(e,o)=>`[${$_}]${o} .${e}${z_(e,o)}`,eI=(e,o)=>`${o},${oI(e,":hover")},[${tI}]:hover .${e}${z_(e,":hover")}`,D_=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))`,Uz=`.${Xl}{opacity:0}@media (hover:hover){.${Zc},.${Xl}{transition:${D_("opacity")}}${eI(Xl,`.${ep}:hover .${Xl}`)}{opacity:1}${eI(Zc,`.${ep}:hover .${Zc}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Qh}{transition:${D_("transform")}}${eI(Qh,`.${ep}:hover .${Qh}`)}{transform:scale(var(${zz}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Zc},.${Xl}{transition:none}}`,lme="sf-photo-move";function ime(e){if(!e||!e.zoom&&!e.darken)return null;let o=H_(e);return{className:ep,sheet:Uz,...o?{style:o}:{}}}function U_(e){return e===!0?{[Pa]:op}:{}}var Qc="sf-box-reveal",dme="sf-box-reveal",jz=8,N_=.3,fme=`@media ${$s}{.${Qc}{opacity:0;transform:translateY(${jz}px);transition:opacity ${N_}s ease-out,transform ${N_}s ease-out}${oI(Qc,":hover")},${oI(Qc,":focus-within")}{opacity:1;transform:none}}@media ${$s} and (prefers-reduced-motion:reduce){.${Qc}{transition:none;transform:none}}`;import{hidableText as Gz}from"efficient-easel/draw";var Kz={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"},qz={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 G_(e){let o=e.isVideo&&zP(e.videoSource)==="youtube",t=e.isVideo?UP(e.videoPlayback):null,r=t==="click",a=o?jP(Gz(e.youtubeUrl)):null,n=fk(e.mediaLayout);return{fromYouTube:o,onClick:r,youTubeId:a,backgroundFile:e.isVideo&&!o&&!r,followsScroll:t==="scroll"&&!o,progress:t?$P(e.videoProgress,t,o):"none",desktopLayout:n,phoneLayout:ck(e.mediaLayoutPhone,n),twoPictures:!e.isVideo&&Qs(e)>1}}function Jl(e,o){return bn(Sa({_partMotion:e},o))}function Zl(e,o){return Un(Sa({_partMotion:e},o))}var tp=e=>Eh({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),K_=al.img;function q_({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?Io(Tc,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?Io(Yc,{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 Xn(e,o){return W_(void 0,void 0,Vb(Sa({_partMotion:e},o)))}function V_(e){return ka.some(o=>Xn(e,o).className)?{hostAttrs:{[tI]:""},sheet:op}:{}}function rp({treatment:e,children:o}){return e.className?Io("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Io(j_,{children:o})}function ap({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 np({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let i=o&&t?{[Yl]:e}:void 0;return Io(q_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:K_,children:l})}function Y_({partMotion:e,editing:o,children:t}){let r=Jl(e,"media"),a=Zl(e,"media"),n=Xn(e,"media"),s=Io(tf,{fill:al,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(q_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:K_,children:l}):Io(j_,{children:l})}function X_({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 ${Kz[o]} ${qz[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Io(np,{part:"image",editing:t,marked:r,entrance:Jl(a,"image"),scroll:Zl(a,"image"),origins:tp(n),className:"relative overflow-hidden",children:rI(rp,{treatment:Xn(a,"image"),children:[Io(ql,{posterSrc:st(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Io(ap,{color:n.tintColor,opacity:n.tintOpacity})]})}),Io(np,{part:"image2",editing:t,marked:r,entrance:Jl(a,"image2"),scroll:Zl(a,"image2"),origins:tp(s),className:`relative overflow-hidden ${Qv({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:rI(rp,{treatment:Xn(a,"image2"),children:[Io(ql,{posterSrc:st(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Io(ap,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Nr,Fragment as Vz,jsxs as Yz}from"react/jsx-runtime";import{useEffect as Xz,useRef as Jz,useState as Zz}from"react";import{PlaySolidIcon as Qz}from"efficient-shell/icons/efficient-looks";function J_({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=Zz("large");return Xz(()=>n("large"),[e]),e?Yz(Vz,{children:[!o&&a!=="none"&&Nr(ec,{src:a==="large"?GP(e):KP(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:s=>{a==="large"&&s.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(a==="large"?"small":"none")},`${e}-${a}`),t&&!r&&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 Z_({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=Jz(null),d=Fl(i,!0,!0)==="phone";if(!e&&!o)return null;let f=Cf({video:o,av1:t,videoPhone:r,av1Phone:a},d),m=wf(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(Qz,{size:28})})}function Q_(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 r1}from"efficient-shell/format";var a1=["top","middle","bottom"],n1=["left","center","right"],s1="bottom",l1="left",eU={top:"Top",middle:"Middle",bottom:"Bottom"},oU={left:"Left",center:"Center",right:"Right"},$me="Up and down",zme="Sideways",tU={top:"flex-start",middle:"center",bottom:"flex-end"},rU={left:"flex-start",center:"center",right:"flex-end"},aU="--sf-hero-phone-y",nU="--sf-hero-phone-x";function sU(e){return r1(a1,s1,e)}function lU(e){return r1(n1,l1,e)}function i1(e,o){let t=sU(e),r=lU(o),a={};return t!==s1&&(a[aU]=tU[t]),r!==l1&&(a[nU]=rU[r]),a}var iU="--sf-hero-phone-words-top",dU="--sf-hero-phone-words-bottom",fU="--sf-hero-phone-box-gap",Ume=100,jme=90,Gme=28,cU=0,pU=200,Kme="Words space top",qme="Words space bottom",Vme="Space between boxes";function aI(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(pU,Math.max(cU,Math.round(e)))}function d1(e,o,t){let r={},a=aI(e),n=aI(o),s=aI(t);return a!==void 0&&(r[iU]=`${a}px`),n!==void 0&&(r[dU]=`${n}px`),s!==void 0&&(r[fU]=`${s}px`),r}function Yme(){return a1.map(e=>({label:eU[e],value:e}))}function Xme(){return n1.map(e=>({label:oU[e],value:e}))}var uU="--sf-hero-words-top",mU="--sf-hero-words-bottom",e1="--sf-hero-words-top-t",o1="--sf-hero-words-bottom-t",Jme=140,Zme=56,xU=0,hU=400,t1="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 gU(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(hU,Math.max(xU,Math.round(e)))}function f1(e,o,t,r){let a={},n=(s,l)=>{let i=gU(l);i!==void 0&&(a[s]=`${i}px`)};return n(uU,e),n(mU,o),n(e1,t),n(o1,r),Object.keys(a).length===0?{className:null,style:a}:{className:e1 in a||o1 in a?`${t1} ${IU}`:t1,style:a}}import{hexToRgb as yU,parseOption as SU}from"efficient-shell/format";var bU=!0;var wU=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function c1(e){let o=yU(e);return o?`${o.r},${o.g},${o.b}`:null}function p1(e){return e==null?bU:e!==!1}var CU="classic",kU=[{label:"Classic",value:"classic"},{label:"Edges",value:"edges"}],vU=160,PU=62,TU=".38";function OU(e){return SU(kU,CU,e)}function u1(e,o){let t=(e?c1(e):null)??c1(ir);if(OU(o)==="edges"){let r=`rgba(${t},${TU})`,a=`rgba(${t},0)`;return`linear-gradient(180deg, ${r} 0px, ${a} ${vU}px), linear-gradient(180deg, ${a} ${PU}%, ${r} 100%)`}return`linear-gradient(180deg, ${wU.map(([r,a])=>`rgba(${t},${a}) ${r}%`).join(", ")})`}import{hexToRgb as m1,parseOption as EU}from"efficient-shell/format";var x1="bottom";var _U=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],AU={bottom:180,top:0,left:270,right:90},FU=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],BU=[[null,33],[.6,67],[.94,100]];function LU(e,o){let{r:t,g:r,b:a}=m1(e)??m1(ir);return`rgba(${t},${r},${a},${o})`}function h1(e){return EU(_U,x1,e)}function I1(e=ir,o=x1){let t=h1(o),r=(t==="top"||t==="bottom"?FU:BU).map(([a,n])=>`${a===null?"transparent":LU(e,a)} ${n}%`);return`linear-gradient(${AU[t]}deg, ${r.join(", ")})`}function g1(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:h1(r)}}var MU=RU({});function Oxe({name:e,process:o,mediaType:t=Yd.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:P=!1,themeClassName:T,themeStyle:B,overlayColor:k,overlayPosition:g,mediaLayout:b,mediaLayoutPhone:E,mediaImage2:A,objectPosition2:N,objectPosition2Phone:w,objectPosition2Tablet:_,tintColor2:y=ir,tintOpacity2:v=0,videoSource:O,youtubeUrl:C,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:Ze,phoneBoxGap:qo,wordsTop:Qe,wordsBottom:mo,wordsTopTablet:$,wordsBottomTablet:de,holdReel:he,reelHeld:De,shownSlide:ie,ratioMin:Ne,posterPhoneFrame:wo}=DU(MU),ve=f1(Qe,mo,$,de),Rt=yl(),Qa=W&&Rt==="first",yr=S1(null),[Cm,Fs]=b1(ie===void 0?void 0:!1);NU(()=>{let Ds=yr.current;Fs(ie===void 0||!Ds?void 0:Q_(Ds.closest(".hero-track"),"data-slide-name")[ie]===Ds)});let Bo=t==="video",en=Bo?st(r):void 0,Zt=Bo?st(n):st(r)??st(n),et=Bo?{av1:st(s),phone:st(l),av1Phone:st(i),poster:st(d)}:{},ad=typeof a=="number"?a/100:1,{fromYouTube:Qt,onClick:Zr,youTubeId:nd,backgroundFile:er,followsScroll:km,progress:Sr,desktopLayout:sd,phoneLayout:vm,twoPictures:ld}=G_({isVideo:Bo,videoSource:O,videoPlayback:L,videoProgress:M,youtubeUrl:C,mediaLayout:b,mediaLayoutPhone:E}),[yt,id]=b1(!1),Bs=S1(null);yt&&De===!1&&id(!1);let Ls=!yt,G=g1({overlayColor:k,overlayPosition:g},me),Fe=Bo?null:Jl(K,"image"),Lo=Bo?null:Zl(K,"image"),St=V_(K),Dt=Wo(rp,{treatment:Bo?{}:Xn(K,"image"),children:Wo(ql,{videoSrc:er?en:void 0,videoAv1Src:er?et.av1:void 0,videoSrcPhone:er?et.phone:void 0,videoAv1SrcPhone:er?et.av1Phone:void 0,posterSrc:Zt,posterSrcPhone:et.poster,showVideo:er,playbackRate:ad,objectPosition:f,objectPositionPhone:Bo?void 0:m,objectPositionTablet:Bo?void 0:u,quiet:Ge,slideShown:Cm,laterSlide:W,laterOfLead:Qa,phoneFrame:wo,followsScroll:km,progress:Sr==="none"?void 0:{kind:Sr,fill:Bs}})}),Rs=y1("section",{ref:yr,className:ko(`${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&&en?"video":"still",...St.hostAttrs,...it("slide"),children:[Wo(Nc,{sheet:St.sheet}),Wo(Y_,{partMotion:K,editing:P,children:ld?Wo(X_,{laterSlide:W,desktopLayout:sd,phoneLayout:vm,editing:P,partMotion:K,first:{src:r,objectPosition:f,objectPositionPhone:m,objectPositionTablet:u,tintColor:h,tintOpacity:I},second:{src:A,objectPosition:N,objectPositionPhone:w,objectPositionTablet:_,tintColor:y,tintOpacity:v}}):Qt||Fe||Lo?y1(np,{part:Bo?"media":"image",editing:P,entrance:Fe,scroll:Lo,origins:tp({objectPosition:f,objectPositionTablet:u,objectPositionPhone:m}),className:"absolute inset-0 z-[1]",children:[Dt,Qt&&Wo(J_,{youTubeId:nd,ownPoster:!!Zt,background:!Zr,editing:P})]}):Dt}),Zr&&Wo(Z_,{youTubeId:nd,fileSrc:Qt?void 0:en,fileAv1Src:Qt?void 0:et.av1,fileSrcPhone:Qt?void 0:et.phone,fileAv1SrcPhone:Qt?void 0:et.av1Phone,playing:yt,onPlay:()=>{id(!0),he?.()},editing:P}),Ls&&!ld&&Wo(ap,{color:h,opacity:I,passClicks:!1}),Ls&&p1(ae)&&Wo("div",{className:"absolute inset-0 z-[2]",style:{background:G.own?I1(G.color,G.position??void 0):u1(G.color,ge),...Ie!==void 0?{opacity:Ie/100}:null},...it("overlay")}),Ls&&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)]",ve.className??"pt-[140px] pb-14",se?kC:"",P?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...dC,...i1(Ve,Eo),...d1(Ye,Ze,qo),...ve.style},...it("hero-content"),children:S&&Wo(S,{className:"sf-hero-group-zone",minEmptyHeight:160})}),Sr==="bar"?Wo(__,{ref:Bs}):Sr==="names"?Wo(A_,{ref:Bs}):null]});return le.scope(Qa?Wo(Qf,{children:Rs}):Rs)}var w1=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as T1}from"efficient-easel/draw";import{isNodeList as WU}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"}]}}]}}),C1=()=>Array.from({length:nI},sI);var k1=["","","","","",""],v1="#ticker",Ql="strip",lI={sectionAccent:Cr,line:!1};function HU(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function iI(e){return HU(e).length>0}function Rxe(e){return e.showTicker!==!1&&iI(e)}var O1=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,WU(r)?r.map(a=>O1(a,o)):r]))}}),$U=e=>{let[o]=Mt([sI()],a=>T1(a)),{id:t,...r}=O1(o,e).props;return r},dt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>w1.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Hs.toLowerCase()}`,seeds:()=>[],addBlocked:fx,notice:cx},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Hs.toLowerCase()}`,seeds:()=>[],addBlocked:fx,notice:cx},ProcessSteps:{slot:Ms,childType:q,addLabel:`Add ${Hs.toLowerCase()}`,seeds:e=>Array.from({length:nI},()=>$U(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},P1=1,zU={slot:Ql,childType:q,addLabel:`Add ${Hs.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=P1?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>P1?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},E1={Hero:{[Ql]:zU}};function qxe(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 Vxe(e,o){let t=z(dt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:T1(t.childType),...r}}))}:null}var jU=["GalleryB"];function _1(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!jU.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(UU(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var GU={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},KU={"Footprint.source":"typed"};function A1(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(GU)){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(KU)){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=Pd(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=Xe({props:o},a=>ze(a,A1));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function F1(e){return cd(e,o=>ze(o,A1))}import{readHidable as qU}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 VU(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var L1=new Set(["id"]),Mr={},ei=[],YU={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"]},XU=Object.keys(YU),Oa=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...XU,"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 JU(e){return eo(Mr,e)&&ei.includes(e)}function R1(e,o=Oa){return eo(Mr,e)&&(o.includes(e)||JU(e))}function uhe(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=>qU(e),We=e=>dI(e).text.trim()!=="";function ZU(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 QU=e=>e==="heading"?br():e==="eyebrow"?ar():{};function ej(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 oj(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 B1(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 tj(e){let o=new Set([...L1,"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=>cn(e.headPlacement)==="own-box";function rj(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 aj(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 nj(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 sj(e,o,t){if(!t.press)for(let r of nj(e)){let a=aj(o,r);if(a!==void 0)return a}}function Ea(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:rj(r))??sj(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,b)=>{s.push({key:g,home:b}),i.add(g)},f=r._partStyles??{},m=tj(o),u=0,h=(g,b)=>({type:g,props:{...b,id:`${n}~${g}-${++u}`}}),I=(g,b,E,A,N,w,_)=>{if(N){for(let v of g??[]){let O=typeof v=="string"?v:v[0];E[O]!==void 0&&_(O,`nothing \u2014 the ${A} has no parts, so it is not drawn`)}return}let y=typeof b=="function"?b(r,t):b??{};return B1(g??[],y,E,(v,O,C)=>_(v,C?`nothing \u2014 the old value draws nothing (${A}: no ${O})`:`${w}${A}: ${O}`),t)},S=g=>Mt(g,b=>`${n}~${b}-${++u}`),P=(g,b,E)=>{let A=g.of?g.of(b):Array.isArray(b[g.key])?b[g.key]:[],N=typeof g.props=="function"?g.props(r,t):g.props??{},w=A.map((C,L)=>{let M=C??{},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 C=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"),kd(A.map(L=>L??{}),C.of,C.of).map((L,M)=>{let K=L.items.map(ae=>ae.item),W=C.parts?T(C.parts,C.head?.(K,r)??{},!1,`group ${M+1}: `):[],se=L.items.map(ae=>w[ae.index]),le=C.perRow?.(K.length,r),ee=Number.isInteger(le)&&le>=1?le:1,Ie=[];if(C.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:`${C.name} ${M+1}`,...C.props??{},[Vt]:[...W,h(qt,{name:`${C.itemsName} ${M+1}`,...C.itemsProps?.(K.length,r)??{},[Vt]:Ie.length?Ie.map((ae,me)=>h(qt,{name:`${C.rowName??`${C.itemsName} row`} ${me+1}`,...C.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 w.flat();let v=typeof g.rowProps=="function"?g.rowProps(r,t):g.rowProps??{},O=[];for(let C=0;C*y<w.length;C++){let L=w.slice(C*y,(C+1)*y).flat(),M=g.rowFiller?y-w.slice(C*y,(C+1)*y).length:0;O.push(h(qt,{name:`${g.rowName??`${g.name} row`} ${C+1}`,...v,[Vt]:[...L,...Array.from({length:M},(K,W)=>h(qt,{name:`Empty ${W+1}`,...g.rowFiller,[Vt]:[]}))]}))}return O},T=(g,b,E,A)=>{let N=[],w=(y,v)=>E?d(y,v):void 0,_=y=>E?f[y]:void 0;for(let y of g)if(!(y.when&&!y.when(r,E?void 0:b)))switch(y.kind){case"text":{let v=dI(b[y.key]);if(!v.text.trim()&&!(E&&t.press&&o.pressKeepsEmpty?.includes(y.key))){w(y.key,"nothing \u2014 empty words draw nothing, so no block");break}let O=QU(y.role??"body"),{_partStyles:C,...L}=O,M=ej(O,y.styleFrom?{...y.style,...y.styleFrom(r,t)}:y.style,_(y.key),y.props?.align);N.push(h("Text",{text:y.mark==="accentLead"?ZU(v.text):y.mark==="accentItalic"?Ws(v.text):v.text,...L,...y.props??{},...M,...v.hidden?{_hidden:!0}:{}})),w(y.key,`${A}Text block: its words${v.hidden?", hidden":""}`);break}case"button":{let v=dI(b[y.key]);if(!v.text.trim()){w(y.key,"nothing \u2014 no words, no button"),w(y.href,"nothing \u2014 no button to link"),typeof y.variant=="object"&&w(y.variant.key,"nothing \u2014 no button to style");break}let O=typeof b[y.href]=="string"&&b[y.href]?b[y.href]:"#",C={...y.style??{},..._(y.key)??{}};N.push(h("ButtonBlock",{label:v.text,href:O,...typeof y.props=="function"?y.props(b,t):y.props??{},...oj(y.variant,b),...Object.keys(C).length?{_partStyles:{label:C}}:{},...v.hidden?{_hidden:!0}:{}})),w(y.key,`${A}Button block: its words`),w(y.href,`${A}Button block: its link`),typeof y.variant=="object"&&w(y.variant.key,`${A}Button block: its Style`);break}case"image":{let v=b[y.key];if(typeof v!="string"||!v){w(y.key,"nothing \u2014 no picture, no block"),y.alt&&w(y.alt,"nothing \u2014 no picture to describe");break}let O=y.alt&&typeof b[y.alt]=="string"?b[y.alt]:"";N.push(h("ImageBlock",{src:v,alt:O,...y.props??{}})),w(y.key,`${A}Image block: its picture`),y.alt&&w(y.alt,`${A}Image block: its alt text`);break}case"list":{N.push(...P(y,b,w));break}case"group":{let v=T(y.parts,b,E,A),O=I(y.box,y.props,b,`${y.name} Box`,!v.length&&!y.keepEmpty,A,w);O&&N.push(h(qt,{name:y.name,...O,[Vt]:v}));break}case"block":{let v=y.parts?T(y.parts,b,E,A):[],O=I(y.box,y.props,b,`${y.type} block`,!!y.parts&&!v.length&&!y.keepEmpty,A,w);O&&N.push(h(y.type,{...O,...y.slot?{[y.slot]:v}:{}}));break}case"core":{let v=y.as??e.type,O={...y.headless?{}:{headPlacement:"own-box"},...y.props??{}},C=y.keep==="rest"?Object.keys(b).filter(M=>!m.has(M)&&!(M in O)):y.keep;for(let M of C)b[M]!==void 0&&(O[M]=b[M],w(M,`the ${v} block inside the Box`));if(y.keep==="rest"){for(let K of Object.keys(y.props??{}))b[K]!==void 0&&!m.has(K)&&w(K,`nothing \u2014 the ${v} block inside the Box has the row's own value`);b.headPlacement!==void 0&&w("headPlacement",`the ${v} block inside the Box: own-box`);let M=Object.fromEntries(Object.entries(f).filter(([K])=>!m.has(K)));Object.keys(M).length&&(O._partStyles=M)}for(let[M,K]of Object.entries(y.rename??{}))b[M]!==void 0&&(O[K]=b[M],w(M,`the ${v} block inside the Box: ${K}`));if(y.derive){Object.assign(O,y.derive.props(b,t));for(let M of y.derive.reads)b[M]!==void 0&&w(M,`the ${v} block inside the Box`)}let L=typeof y.slots=="function"?y.slots(b,t):y.slots??{};for(let[M,K]of Object.entries(L))O[M]=K.flatMap(W=>"kind"in W?P(W,b,w):S([W]));N.push(h(v,O));break}}return N},B=(g,b)=>{let E=b===0?"Box":`${g.name} Box`,A=T(g.parts,r,!0,b===0?"":`${E}: `),N=typeof g.boxProps=="function"?g.boxProps(r,t):g.boxProps??{},w=B1(g.box??[],N,r,(_,y,v)=>d(_,v?`nothing \u2014 the old value draws nothing (${E}: no ${y})`:`${E}: ${y}`),t);return{type:qt,props:{name:g.name,...w,[Vt]:A,id:VU(n,b)}}},k=[o,...o.also??[]].map(B);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[g,b]of Object.entries(o.reads??{}))r[g]!==void 0&&d(g,b);for(let[g,b]of Object.entries(o.drop??{}))g in r&&(l.push({key:g,why:b}),i.add(g));for(let g of Object.keys(r))L1.has(g)||i.has(g)||l.push({key:g,why:"not in the row \u2014 not carried"});return{node:k[0],nodes:k,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function D1(e,o=ei,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 N1(e,o=ei,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 lj,BLOCK_SIZE_KEYS as ij,parseBlockWidthFit as lp,phoneKey as M1,parseTextFit as sp,tabletKey as H1,viewKeyAt as W1}from"efficient-easel/draw";import{sideLengthAt as dj}from"efficient-easel/screen/lib/content/length-units";var fj="sf-block-size",oi=["width","minWidth","maxWidth"],ip=e=>`${e}Unit`,Wr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,cj={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"}},j1={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"}},pj={desktop:j1.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"}},uj={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},G1="max-view-wide:grow!";function K1(e){return dp(e).mode.phone==="fill"}var mj={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},xj={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},hj="data-sf-min-width",$1={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)]"]}},gj={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)]"]}},yj=["widthFit",...oi],z1={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!"},Sj={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!"},q1={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"},bj={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:q1.phone},V1={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},U1={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:V1.phone};function Y1(e){let o=dp(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>uj[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function X1(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=dp(e),n=d=>o?$1.three[d]:$1.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[xj[d]]=s[d].join(" "));return s.min.length&&(i[hj]=s.min.join(" ")),i}function dp(e){let o=yj.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?lp(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=ip(a),s={};for(let i of t)s[W1(a,gn(i))]=Wr(e[a]?.[i]),s[W1(n,gn(i))]=e.units?.[a]?.[i];let l=i=>dj(s,{length:a},n,gn(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(lp,e.widthFit)}}function uI(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(v=>sp(e.textFit?.[v])==="ellipsis"),r=o&&!t,a=r?pj:j1,n=r?gj:cI,s=r?Sj:pI,l=[],i={},d={},{three:f,sides:m,lengthPerSide:u,mode:h}=dp(e),I=u("width");for(let v of m){let O=h[v];!O||O==="fit"||(l.push(f?a[v][O]:cj[v][O]),O==="fixed"&&(i[mj[v]]=xn(I[v]?.value??lj.fallback,I[v]?.unit)))}for(let v of oi.filter(O=>O!=="width")){let O=u(v);for(let C of m){let L=O[C];if(L===void 0)continue;let[M,K]=f?n[v][C]:Ij[v][C];i[M]=xn(L.value,L.unit),l.push(K)}}let S=sp(e.textFit?.desktop),P=sp(e.textFit?.phone),T=v=>{let O=Wr(e.minFont?.[v]);return O===void 0?void 0:e.units?.minFont?.[v]==="vw"?`${O}vw`:String(O)},B=T("desktop"),k=T("phone"),g=sp(e.textFit?.tablet),b=g!==S||P!==void 0?g:void 0,E=T("tablet"),A=E!==B||k!==void 0?E:void 0,N=Wr(e.maxWidth?.desktop),w=Wr(e.maxWidth?.tablet)??N,_={desktop:N!==void 0,tablet:w!==void 0,phone:(Wr(e.maxWidth?.phone)??w)!==void 0},y=(v,O,C)=>{if(O!=="line"&&O!=="ellipsis")return;let L=v==="tablet"?void 0:v,M=(K,W)=>C||!L?K[v]:W[L];if(O==="line"){l.push(M(s,z1));return}if(l.push(M(pI,z1)),l.push(M(bj,q1)),f&&!C&&v==="desktop")for(let K of["desktop","tablet"])_[K]||l.push(U1[K]);else _[v]||l.push(M(U1,V1))};return b?(y("desktop",S,!0),y("tablet",b,!0),y("phone",P??b,!0)):(y("desktop",S,!1),y("phone",P??S,!1)),S&&(d[cr.fit]=S),b&&(d[cr.fitTablet]=b),P&&(d[cr.fitPhone]=P),B!==void 0&&(d[cr.min]=B),A!==void 0&&(d[cr.minTablet]=A),k!==void 0&&(d[cr.minPhone]=k),!r&&(b||A!==void 0)&&(d[cr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[fj,...l].join(" "),style:i,attrs:d}}function She(e){if(Wr(e.maxWidth?.desktop)!==void 0)return!0;let o=lp(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function J1(e){return["desktop","tablet","phone"].some(o=>{let t=lp(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Wr(e.minWidth?.[o])!==void 0})}function fp(e){let o={};for(let t of ij){let r=e[t],a=e[H1(t)],n=e[M1(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=ip(t),l={desktop:e[s],tablet:e[H1(s)],phone:e[M1(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var Z1={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as wj}from"efficient-shell/format";import{convertLength as Cj}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as Q1}from"efficient-easel/draw";var Yt=(e,o,t,r)=>o===t?e:Cj(e,o,t,r,{min:0,max:200,step:4}),_a={textFit:"line",textFitPhone:"wrap"},Aa={...U,[Vo]:""},{label:Zhe,href:Qhe,...kj}=Z1.defaultProps,fo=kj,Fa={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...jm,sectionAccent:0},Zn={sectionAccent:-1},Z=[...vr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",Sk.unitKey,...Ck,...Ik,"anchor",Xs,...Tn,Md,...Kd,...Ec,...Gd(["widthFit",...oi,...oi.map(ip)]),...Object.values(Ao)],Jn="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:Jn,fullWidth:Jn,pageWidth:Jn,backgroundWidth:Jn,contentWidth:Jn,contentMax:Jn},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)"])),cp={[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=(P,T)=>d.includes(P)?0:T,m=(P,T,B,k,g,b)=>{let E=ye(e[P]);if(E!==void 0)return E+Yt(f(P,b),"px",i,"mobile");let A=k===void 0?{n:g,unit:s,key:B}:{n:k,unit:l,key:T};return Yt(A.n,A.unit,i,"mobile")+Yt(f(A.key,b),"px",i,"mobile")},u=(P,T,B,k,g,b)=>B!==void 0?{[P]:B+Yt(f(P,b??g),"px",l,"tablet")}:b===void 0?{}:{[P]:Yt(k,s,l,"tablet")+Yt(f(T,b),"px",l,"tablet")},h=P=>({desktop:ho[P],tablet:Q1(ho[P],"tablet"),phone:Q1(ho[P],"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=ef(e,Wn(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]],vj={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},eIe=e=>o=>We(o.props[e])?[vj]:[],pe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:U,...o?{style:o}:{}}),Qn=e=>({kind:"group",name:"Chip",props:{...R,...rr("main"),...Co(6,14)},parts:[pe(e,{color:"background",...H("label",12),weight:600,letterSpacing:.16})]}),eA=e=>e.background!=="transparent",Pj=(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},ti={align:"right",alignPhone:"left"},Tj=(e,o,t)=>{let r=a=>Pj(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}},ri=(e,o,t,r={})=>Tj(e,o,{...Aa,...ti,...r,_partStyles:{text:{...Ro,color:"labels",...t,case:Ro.case,...ti}}}),es=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ta(o)?.selected??0,oA="var(--site-surface-2)",pp=(e,o)=>Ta(o)?.themes[es(e.sectionAccent??0,o)],$o=(e,o)=>(t,r)=>{if(!o?.(t,r))return rr(e);let a=pp(t,r)?.[e];return a?{fillColor:a}:{}},up=(e,o)=>zr(e,o)>=0,tA=e=>e.startsWith("#")&&wj(e)!==null,mp=(e,o,t)=>{let r=e?.trim();if(r&&tA(r))return{fillColor:r};let a=yx(r);if(a)return rr(a);let n=r===oA?pp(o,t):void 0;return n?{fillColor:Uw(n)}:{}},xp=e=>{let o=e?.trim();return!o||o==="transparent"||o===Gt||yx(o)||o===oA||tA(o)?void 0:"it paints a colour that no Box Fill can hold"},zr=(e,o)=>{let t=Ta(o)?.themes;return t&&eA(e)?jw(t,es(e.sectionAccent,o)):-1},Ur=(e,o,t)=>{let r=zr(o,t);return r>=0?r:e},os=(e,o)=>{let t=Ta(o)?.themes,r=t?Gw(t,es(e,o)):-1;return r>=0?r:e},Ba=(e,o)=>{let t=zr(e,o);return t>=0?{sectionAccent:t}:{}},jr=(e,o)=>eA(e.props)&&zr(e.props,o)<0?[{kind:"band-preset",page:es(e.props.sectionAccent,o)}]:[],ts=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=gn(o),d=(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)},ai=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),ni=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,...ai,...$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 Qj,newId as eG}from"efficient-easel/data";function rA(e){return Math.min(4,Math.max(2,e??3))}var aIe={eyebrow:"Label",title:"Section *heading.*"},Oj=fd.Cards,aA={label:"Cards",fields:Oj,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var lIe={eyebrow:"Highlight",title:"Key *features.*"},iIe=()=>[{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")}],nA={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as Ej}from"efficient-shell/format";var xI="cardPlace",_j=["","top-line"];function pIe(e){return Ej(_j,"",e[xI])}var uIe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",mIe="data-sf-top-line",Aj=new Set(["Cards",io]);function xIe(e){return typeof e=="string"&&Aj.has(e)}var Fj=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 hIe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Fj(e)?{...e,top:0}:e}var IIe="outsideFramedCard";var hp={sectionBorder:{top:0,right:1,bottom:1,left:0},...rr("background")},Bj={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},La=e=>({direction:"row",columns:e,columnsTablet:e,...Bj}),sA=(e={})=>Be(Uc,{...U,tag:"p",[xI]:"top-line"},e,!0),rs=(e=ta)=>{let o=ln(e);return{...o,props:{...hp,...o.props},slots:{[Ce]:[...o.slots?.[Ce]??[],sA()]}}},hI=(e=!1)=>{let o=dn(e);return{...o,props:{...hp,...o.props}}},Lj={name:"name",time:"time",note:"note",price:"price"},Rj={textStyle:"body-1",...H("body",16),weight:500,lineHeight:1.5},Dj={...Ro,...H("label",12),letterSpacing:.18,lineHeight:1.5},Nj={textStyle:"body-1",...H("body",14),lineHeight:1.6},Mj={textStyle:"body-1",fontRole:"heading",...H("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},Hj={...H("label",11),letterSpacing:.25},Wj={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Ip=e=>({direction:"row",columns:e,...Wj}),II=[...new Set([...Object.keys(La(1)),...Object.keys(Ip(1))])],gI=()=>{let e=Lj,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]:[sA(Hj),{type:q,props:{...R,name:"Words",gap:8,gapPhone:8},slots:{[Ce]:[Be(e.name,{...U,...o},Rj),Be(e.time,{...oe,...o},Dj),Be(e.note,{...oe,...o},Nj)]}},Be(e.price,{...U,...o},Mj)]}}};import{tabletKey as fA}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as gp}from"efficient-easel/draw";var yp=tr,yI=gp,lA=960,iA=tr,dA={min:yp,max:1600,step:10},Sp="stackBelow";function OIe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<dA.min||e>dA.max))return Math.round(e)}var $j=e=>`sf-stack-${e}`,zj=e=>`sf-stack-${e}-gutter`,Uj=e=>`sf-stack-${e}-outer`,as=e=>`${e-.02}px`;function EIe(e,o={}){let t=o.gutter!==!1,r=`.${$j(e)}`,a=`.${zj(e)}`,n=`.${Uj(e)}`,s=[];if(e>yp){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,gp);s.push(`@media (min-width:${yp}px) and (max-width:${as(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:${yp}px) and (max-width:${as(i)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>gp&&s.push(`@media (min-width:${gp}px) and (max-width:${as(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${as(e)}){${a}${a}{padding-inline:${SC.frame}}}`),t&&e<lA&&s.push(`@media (min-width:${e}px) and (max-width:${as(lA)}){${a}${a}{padding-inline:${yC}}}`),e>iA&&s.push(`@media (min-width:${iA}px) and (max-width:${as(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 jj}from"efficient-shell/format";var Gj=["standard","editorial","simple","essay"];function Ra(e){if(e==="ProductGrid")return"shelf";let o=z(Ct,e)?.headStyle;return jj(Gj,"standard",o)}var si={standard:64,editorial:60,simple:36,essay:28,shelf:20},Kj={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function qj(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 wp(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=bp.get(r);if(a)return a;let n=mA({num:e,title:o,description:t,link:!1});return bp.set(r,n),n}var zo={[Sp]: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}}}),Cp=(e,o,t={})=>pe(e,{...H("label",o),...t}),kp=(e,o)=>({kind:"text",key:e,role:"heading",props:U,style:{textStyle:"heading-2",...o}}),wI=tr,Vj=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}}),uA={...fo,align:"right",alignPhone:"left",...Fa},SI=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:uA,style:{...wt(e),color:"labels"}}),cA=(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"?Yj(ar()):{},...t.style}}}}},Yj=e=>e._partStyles.text??{},ns={widthFitPhone:"fill"};function kI(e){if(e.kind!=="group")return e;if(e.name==="Words"){let o=e.props;return{...e,props:typeof o=="function"?(t,r)=>({...o(t,r),...ns}):{...o,...ns}}}return{...e,parts:e.parts.map(kI)}}function Xj(e,o){let t=z(Kj,e),r=t==="accent",a=Cp(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=kp(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,...ns,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...R,...ns,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[cA(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...R,...ns},parts:[s,...l?[cA(o.title,`Three ranges,
320
+ one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...R,...ns,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:{...uA,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 mA(e){let o=kp(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:[{...Cp(e.num,13),props:{...U,..._a}}]},vp(o,[e.title])]},{kind:"group",name:"Words",props:{...R,sectionPaddingBottom:4,maxWidth:360,[fA("maxWidth")]:Vj,maxWidthPhone:wI},parts:e.description?[CI(e.description,14,void 0,{lineHeight:1.5},{[fA("align")]:"left"})]:[]}]}}function pA(e,o){return{kind:"group",name:"Header",props:{...R,gap:16,gapPhone:16},parts:[Cp(e.num,13),kp(e.title,o)]}}var xA=[["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}]],Jj=e=>xA.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function Zj(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:[Cp(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...xA.map(([o,t])=>({...kp(e.title,t),when:r=>Jj(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 Pp(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 bp=new Map,vI={...H("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function ct(e){let o=bp.get(e);if(o)return o;let t=qj(e),r=Ra(e),a=r==="editorial"?mA(t):r==="simple"?pA(t,vI):r==="essay"?pA(t,{...H("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?Zj(t):Xj(e,t);return bp.set(e,a),a}var Da={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Gt,Stats:void 0};var li=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),kA=e=>o=>rA(ye(o.columns)??ye(e.columns)),oG="inline is the head the row draws; an own-box node is skipped (`skip`)",tG={kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-3",...vI}},Op=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Series);return o&&o!=="transparent"?o:void 0},Tp=e=>Op(e)===Gt,rG={...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},hA={...R,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[OI("share")]:"content"},aG=e=>{let o=Op(e)?1:2;return{...R,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},PI={...wt(12),letterSpacing:.22,lineHeight:1.5},IA=e=>We(e.viewLabel)&&!EI(e.viewLabel).hidden,pt=e=>EI(e).text?.trim?.()??"",Ep=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}:{}})),nG=_I([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),sG=_I([["label","Label"],["value","Value"],["body","Card body",!0]]),ii=(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=>Ld(r(l),t)},slots:(l,i)=>({[Te]:[a(l,i)]})}]}),vA=e=>Array.isArray(e.cards)?e.cards:[],PA=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Ep({title:pt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Gs(Zm(o),t),...o})),lG=e=>PA(e).some(o=>xo(o.href)!==void 0),TA=[{key:Km.label,label:"Feature label"},{key:Km.href,label:"Link",kind:"link"}],gA=e=>LO(e.eyebrowLook,"KeyFeatures")==="filled",iG={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...$o("surface")(e,o),...li(1,0,1,0),...re(e,hc)}),box:[...Z,...ce(hc)],parts:[{kind:"group",name:"Heading",props:{...R,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[OI("share")]:"content"},parts:[{...Qn("eyebrow"),when:gA},{...pe("eyebrow"),when:e=>!gA(e)},tG]},ii("Cards",e=>({...R,...La(kA(nA.defaultProps)(e))}),TA,PA,e=>hI(lG(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"}},yA=(e,o)=>({...hp,...$o("background")(e,o)}),SA=e=>{let o=kA(aA.defaultProps)(e);return{...R,...La(o)}},dG=_I([["title","Card title"],["body","Card body",!0]]),OA=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Gs(Zm(o),t),title:pt(o?.title),body:pt(o?.body)})),EA=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(Qj(a)?t[r]=a.map(EA):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},bA=(e,o)=>{let t=TI(e)?hI(fG(e)):rs(),r=Array.isArray(e.template)?e.template.map(EA):[t],[a]=r;return r.length===1&&a.type===q?{...a,props:{...yA(e,o),...a.props}}:{type:q,props:{...R,...yA(e,o),name:"Card"},slots:{[Ce]:r}}},TI=e=>e.cardStyle==="label-only",_A=e=>OA(e).map((o,t)=>{let r=e.items[t]?.href;return Ep({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),fG=e=>_A(e).some(o=>xo(o.href)!==void 0),wA=e=>Array.isArray(e.template)&&e.template.length===0,CA=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function AA(){let e=t=>({key:eG("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 cG={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...$o("surface")(e,o),...re(e,sc)}),box:[...Z,...ce(sc)],parts:[{...ct("Cards"),when:e=>!fI(e)},{...ii("Cards",SA,dG,OA,bA,{reads:["items"],keep:CA}),when:e=>!wA(e)&&!TI(e)},{...ii("Cards",SA,TA,_A,bA,{reads:["items"],keep:CA}),when:e=>!wA(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)"}},pG={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...li(0,0,1,0),...zo,...Tp(e)?Ba(e,o):{},...mp(Op(e),e,o),...re(e,yc)}),box:[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Tp(o)?Ur(e,o,t):e],...ce(yc)],skip:e=>xp(Op(e)),site:(e,o)=>Tp(e.props)?jr(e,o):[],parts:[ct("Series"),ii("Cards",aG,nG,e=>vA(e).map(o=>Ep({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:{...rG,...$o("background",(t,r)=>Tp(t)&&up(t,r))(e,o),name:"Card"},slots:{[Ce]:[{type:q,props:{...R,name:"Words",gap:16,gapPhone:16},slots:{[Ce]:[{type:q,props:{...hA,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:{...hA,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...li(1,0,0,0),...IA(e)?{}:{[tn]:["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)]}},...IA(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:oG}},uG={...R,direction:"row",columns:3,gap:40,gapPhone:16},mG={...R,gap:8,gapPhone:8,...Co(24),...li(1,1,1,1)},xG={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...li(0,0,1,0),...re(e,uc)}),box:[...Z,...ce(uc)],parts:[ii("Cards",uG,sG,e=>vA(e).map(o=>Ep({label:pt(o.label),value:pt(o.value),body:pt(o.desc)})),(e,o)=>({type:q,props:{...mG,...$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}},FA={Cards:cG,KeyFeatures:iG,Series:pG,DocMetaCards:xG};import{SITE_SIDE as IL}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as yG}from"efficient-easel/draw";import{newId as SG}from"efficient-easel/data";import{phoneKey as hG}from"efficient-easel/draw";import{isNode as di}from"efficient-easel/data";var ss="cardStyle";function BA(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var _p={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[hG("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:{..._p.table,listCard:BA(_p.table.card)},list:{..._p.list,listCard:BA(_p.list.card)}},xge=[{label:"Table",value:"table"},{label:"List",value:"list"}],hge=e=>e==="table"||e==="list",IG=e=>[...new Set([...Object.keys(ut.table[e]),...Object.keys(ut.list[e])])];function fi(e,o,t){let r={...e};for(let a of IG(o))delete r[a];return{...r,...structuredClone(ut[t][o])}}function gG(e,o,t){let r=e.props??{},a=Array.isArray(r[Te])?r[Te]:[],n=a.findIndex(i=>di(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:fi(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Te]:l}}}function Ige(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>di(s)&&s.type===io)){let s=a.map(l=>di(l)&&l.type===io?gG(l,o,t):l);return{...fi(e,"items",o),[ss]:o,[r]:s}}let n=a.map(s=>{if(!di(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>di(d)&&d.type===t?{...d,props:fi(d.props??{},"card",o)}:d);return{...s,props:{...fi(l,"row",o),[r]:i}}});return{...fi(e,"grid",o),[ss]:o,[r]:n}}var AI=e=>typeof e=="string"?e.trim():"";function LA(e){let o=`${AI(e.prefix)}${AI(e.value)}`,t=AI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var DA={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:DA}},box:[["value","text",(e,o)=>LA(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&LA(o)!==""},RA=e=>We(e?.supSuffix),NA={textStyle:"body-1",fontRole:"heading",...H("body",16),lineHeight:1.5,letterSpacing:-.01},MA={color:"labels",...H("label",12),lineHeight:1.5,letterSpacing:.24},HA={...R,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[yG("share")]:"content"},WA={textStyle:"body-5",...H("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},BI=e=>da(e.background,Da.StatsParagraph),ci=e=>BI(e)===Gt,Ap=e=>({...e,sectionAccent:e.sectionAccent??0}),bG=(e,o)=>ci(e)?$o("background",(t,r)=>up(Ap(t),r))(e,o):{},wG={name:"Stats with Text",skip:e=>BI(e)&&BI(e)!=="transparent"&&!ci(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"),...ci(e)?Ba(Ap(e),o):{}}),box:[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ci(o)?Ur(e,Ap(o),t):e],...$r("StatsParagraph")],site:(e,o)=>ci(e.props)?jr({props:Ap(e.props)},o):[],parts:[ct("StatsParagraph"),{kind:"group",name:"Stats",props:{...R,...ut.table.grid,[ss]:"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,...bG(e,o)}),parts:[{...FI,when:(e,o)=>!RA(o)&&FI.when(e,o)},{kind:"group",name:"Figure",props:HA,when:(e,o)=>RA(o),parts:[FI,{kind:"text",key:"supSuffix",props:U,style:WA}]},{kind:"group",name:"Words",props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:U,style:NA},pe("sub",MA)]}]}]}],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"}},CG=new Set(["value","label",Vo]),kG=e=>{let o=da(typeof e.background=="string"?e.background:void 0,Da.Stats);return!!o&&o!=="transparent"},vG={name:"Stats",skip:e=>kG(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=>!CG.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,Sc)}),box:[...Z,...ce(Sc)],parts:[pe("heading",{color:"labels",...H("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...R,...ut.list.grid,[ss]:"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"}},$A={StatsParagraph:wG,Stats:vG};function zA(){return{eyebrow:c("By the numbers"),title:c("What we count."),desc:c("A few numbers that matter to us."),stats:[],background:"transparent"}}var PG=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function UA(){let e=(o,t,r,a="")=>({key:SG("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 TG(e){return{type:q,props:{...R,name:"Card",...structuredClone(ut[e].listCard)},slots:{[Ce]:[{type:q,props:{...HA,name:"Figure"},slots:{[Ce]:[Be("figure",Aa,DA),Be("superscript",U,WA)]}},{type:q,props:{...R,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Be("label",{...U,widthFit:"fill"},NA),Be("body",{...U,widthFit:"fill"},MA,!0)]}}]}}}function LI(e,o,t=4){return{type:q,props:{...R,name:"Stats",direction:"row",columns:t,...structuredClone(ut[o].items),[ss]:o},slots:{[Ce]:[{type:io,props:Ld(e,PG),slots:{[Te]:[TG(o)]}}]}}}var jA={heading:"Ways to pay"},GA=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],KA=()=>[{text:c("Secure encrypted checkout")},{text:c("30-day returns")}],Dge={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as OG}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as VA}from"efficient-shell/format";var Fp="Flex",EG={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},_G={FooterPayment:"PaymentLogosBlock"},AG=e=>{let{id:o,...t}=e;return t},qA=e=>typeof e=="string"?e:"",ls={sm:12,md:13,lg:15},YA={sm:{mark:16,words:ls.sm},md:{mark:20,words:ls.md}},FG="md",XA=1.5,BG={size:13,lineHeight:XA,width:280},LG=14,RG=40,DG=e=>VA(["left","center","right"],"left",e);function NG(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 MG(e,o,t){let r=t(e,AG(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:JA(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=Td(e,r.props);return a===r.props?r:{...r,props:a}}function JA(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]=JA(a[n],o,t);return{...r,props:a}})}function ZA(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=z(EG,e.type)??z(_G,e.type);if(n)return[MG(n,r,o)];switch(e.type){case"FooterLogo":{let s=DG(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(aP*((ye(r.widthPct)??100)/100)),href:"/",align:s,...NG(r)}),i=qA(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...BG}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&eo(ls,r.size)?r.size:FG;return[o("Text",{text:qA(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:ls[s],lineHeight:XA}}})]}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?{[OG("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Fp,{direction:r.direction==="horizontal"?"row":"column",gap:nP("FooterGroup",r.gap),align:VA(["start","center","end","stretch"],"start",r.align),...$m,content:s.flatMap(l=>ZA(l,o,t))})]}default:return[]}}function pi(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Fp,{direction:"row",wrap:!0,share:"equal",gap:RG,content:f}),s=[],l=[];for(let f of a){let m=ZA(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(Fp,{direction:"column",gap:LG,align:"stretch",...$m,content:m}))}(l.length||!s.length)&&s.push(n(l));let i=o(Fp,{direction:"column",content:[o("LegalLineBlock")]}),d=cP(ao,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as RI,readHidable as HG}from"efficient-easel/draw";import{parseOption as WG}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])}]}]}),$G={...pe("heading",{color:"labels",letterSpacing:.2}),props:{...U,align:"center"}},zG={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...re(e,Tl(e))}),box:[...Z,...ce(Tl),["bandPadding","sectionPaddingTop",(e,o)=>re(o,Tl(o)).sectionPaddingTop]],parts:[$G,{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"}},UG={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:lw(4,"main",{sectionCorners:2})},jG={name:"Payment Methods",boxProps:e=>({...Y,direction:"column",...re(e,dc)}),box:[...Z,...ce(dc)],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=>HG(e.text).hidden?{props:{_hidden:!0}}:{},parts:[UG,{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`)"}},QA=e=>ew(e.align)??"left",eF=e=>WG(["sm","md"],"sm",e.size),oF=12,tF={name:"Payment logos",boxProps:e=>({...R,direction:"row",wrap:!0,align:"center",justify:Sd[QA(e)],gap:oF,gapPhone:oF,phoneRow:2,[RI("share")]:"content"}),box:[...vr],parts:[{kind:"text",key:"lead",props:oe,styleFrom:e=>({size:ls[eF(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[lo,or],props:e=>({logoHeight:YA[eF(e)].mark,align:QA(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"}},rF={Logos:zG,PaymentBadges:jG,FooterPayment:tF,PaymentLogosBlock:tF},aF=()=>({heading:$E.heading,items:jc()}),nF=()=>({heading:jA.heading,badges:GA(),assurances:KA()}),sF=()=>({...If,methods:[]});import{mixHex as YG}from"efficient-shell/format";import{MOTION_EASING as GG,MOTION_TIMING as lF,motionSeconds as iF,parseOption as dF}from"efficient-shell/format";var MI="none",Bp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function uye(e){return dF(Bp,MI,e)}var is="_gLoop",ui={field:"loop",is:"scroll"},mi="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"}],KG={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function fF(e){return dF(HI,mi,e)}function cF(e){return e==="up"||e==="down"}function Lp(e){return iF("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var mye=lF.loop.duration.default,qG=lF.loop.delay.default;function pF(e){return iF("loop","delay",e.loopDelay)}function xye(e,o,t=qG){return`${KG[e]} ${o}s ${GG.loop}${t?` ${t}s`:""} infinite`}var Rp="_gEntrance";var yye="none",Sye=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function Dp(e){return e==="above"||e==="below"?e:null}var uF="sf-ticker-join";function VG(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function mF(e){return`absolute inset-x-0 ${VG(e)}`}var xF=e=>e.size==="display",XG=(e,o)=>{let t=pp(e,o),r=e.tone!=="plain"&&t?.text&&t.background?YG(t.text,t.background,.3):null;return r?{color:r}:{}},JG=(e,o)=>e.tone!=="plain"&&nx(e.sectionAccent)===null?$o("background")(e,o):{},hF=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:oe,style:e,styleFrom:XG}]}),ZG={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...ma,...rc,...rw[Wm(e.separator)]===""?iO:{},...re(e,xa),...JG(e,o)}),box:[["scrollDirection","scrollDirection",e=>fF(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=>Dp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...Z,["tone","sectionAccent",(e,o)=>nx(o.sectionAccent)??Cr],...ce(xa)],parts:[hF(ac,e=>!xF(e)),hF(dO,xF)],drop:{...X,...te,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},IF=e=>e?.tone==="muted",gF=e=>Rd(Ta(e)),QG={name:"Spec Strip",boxProps:(e,o)=>({...Y,...ma,...wl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:gF(o)},...re(e,ha)}),box:[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:gF(t)],...ce(ha)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:U,style:Cl,when:(e,o)=>!IF(o)},{kind:"text",key:"text",props:oe,style:Cl,when:(e,o)=>IF(o)}]}],drop:{...X,...te,...cp,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"}},yF={Ticker:ZG,SpecStrip:QG};import{tabletKey as SF}from"efficient-easel/screen/lib/content/view-tiers";var bF={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[SF("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[SF("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},WI={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as e8}from"efficient-easel/draw";var Np={eyebrow:Oe.eyebrow,title:`Section heading
321
+ *Highlight line*`,intro:Oe.body,imageCaption:Oe.imageCaption,imageMeta:Oe.imageMeta,cta:je.text},wF=()=>[{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.")}],Dye={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Mp={eyebrow:Oe.eyebrow,title:Oe.headingAccent,intro:Oe.body,cta:je.text},CF=()=>[{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}],$ye={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Zv,padTop:120,padBottom:120}};var EF={buttonBorder:{width:0}},$p=(e,o,t={})=>({textStyle:"body-5",...H("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),ds=(e,o,t={})=>({...$p(e,o),...Ro,...t}),zp=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),xi=(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}),kF=(e,o)=>o?.future===!0,Hp=e=>lE(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"},o8={name:"Milestone Timeline",skip:e=>xp(GI(e)),boxProps:(e,o)=>{let t=zr($I(e),o);return{...Y,direction:"column",gap:60,[e8("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...zo,...ft(e,"TimelineTrack"),...mp(GI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ur(e,$I(o),t)],...$r("TimelineTrack")],parts:[kI(vp(wp("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,...bF},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:WI.name,props:{...R,...WI},parts:[mt("date",$p(13,.22,{color:"accent"}),{when:(e,o)=>!kF(e,o)}),mt("date",$p(13,.22,{color:"labels"}),{when:kF}),mt("title",{textStyle:"heading-3",...zp(H("headingSmall",20),-.02,1.1)},{role:"heading"})]},mt("blurb",xi(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",...EF},style:ds(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",Wp=e=>qI(e)==="split",KI=e=>!Wp(e),_F=e=>qI(e)==="spine",t8=e=>KI(e)&&!_F(e),vF=(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",ds(11,.24,{color:"text"})),mt("imageMeta",ds(11,.24,{color:"accent"}),{props:{...U,align:"right"}})]}]}),PF=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...fo,...e,...EF},style:ds(13,.3)}),zI=()=>[mt("title",{textStyle:"heading-3",...zp(H("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...U,_partStyles:{text:xi(H("body",17,16),1.6)}},box:[["body","text",(e,o)=>Ws(Hp(o)[0]??"")]],when:(e,o)=>Hp(o).length>0},{kind:"block",type:"Text",props:{...oe,_partStyles:{text:xi(H("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Ws(Hp(o).slice(1).join(`
322
+
323
+ `))]],when:(e,o)=>Hp(o).length>1}],UI=()=>mt("date",$p(13,.24,{color:"accent"})),jI=(e,o,t={})=>mt(e,o,{...t,props:{...U,...t.props??{},align:"center"}}),TF=Uo("headingMedium",40,5,76),OF={sectionBorder:{bottom:1}},r8={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=>Wp(e)?{...Y,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...OF,...ft(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...OF,...ft(e,"Timeline")},box:[...Z,...$r("Timeline")],parts:[{kind:"group",name:"Heading",props:{...R,gap:24,gapPhone:24},when:Wp,parts:[mt("eyebrow",ds(12,.3,{color:"accent"}),{role:"eyebrow"}),mt("title",{textStyle:"heading-2",...zp(TF,-.03,.94)},{role:"heading",mark:"accentItalic"}),mt("intro",xi(H("body",14),1.6),{props:{...oe,maxWidth:360},mark:"accentItalic"}),vF(667,419,{},()=>!0),PF()]},{kind:"group",name:"Chapters",props:{...R,gap:48,gapPhone:48,line:!1},when:Wp,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",ds(12,.3,{color:"accent"}),{role:"eyebrow"}),jI("title",{textStyle:"heading-2",...zp(TF,-.03,.94)},{role:"heading",mark:"accentItalic"}),jI("intro",xi(H("body",14),1.6),{props:{...oe,maxWidth:520},mark:"accentItalic"}),PF({align:"center"})]},vF(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:_F,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:t8,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)"}},AF=()=>({eyebrow:Np.eyebrow,title:vt(Np.title),intro:Np.intro,ctaText:je.text,ctaHref:je.href,entries:wF()}),FF=()=>({eyebrow:Mp.eyebrow,title:vt(Mp.title),intro:Mp.intro,ctaText:je.text,ctaHref:je.href,entries:CF()}),BF={TimelineTrack:o8,Timeline:r8};import{tabletKey as a8}from"efficient-easel/draw";function LF(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??{}):[],fs=e=>xt(e.group),UF=e=>`loc-${e}`,jF=e=>xt(e.state).trim()||Px(xt(e.region)).state,GF=e=>xt(e.country).trim()||Px(xt(e.region)).country,RF=e=>[jF(e),GF(e)].filter(Boolean).join(" \xB7 "),n8=e=>VI(e).some(o=>xt(o.photo).trim()!==""),s8=e=>VI(e).some(o=>bw(Number(o.lat),Number(o.lng))),l8=(e,o)=>VI(e).filter(t=>fs(t)===fs(o)).length,i8=(e,o)=>l8(e,o)===1?"wide":yP(e.imageShape),DF=48,Tt=(e,o={})=>({...wt(e),...o}),YI={top:1,right:1,bottom:1,left:1},XI={...R,direction:"row",share:"equal",gap:0},d8=e=>o=>o>vd(o)?{...R,gap:0}:{...XI,...o>1?{phoneRow:e}:{}},JI=!0,f8={kind:"group",name:"Gallery",props:{...R,gap:20,...JI?{_hidden:!0}:{}},when:n8,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:`#${UF(o)}`,boxShape:i8(t,e)}}),parts:[{kind:"text",key:"name",props:U,style:Tt(11,{letterSpacing:.22,color:"text"})}],groups:{of:fs,name:"Group",props:{...R,gap:10},head:e=>({label:fs(e[0]??{})}),parts:[pe("label",Tt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:d8(2),perRow:vd,rowName:"Row",rowProps:{...XI,phoneRow:2}}}]}]},c8={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)=>RF(t)]),when:(e,o)=>RF(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=>LF(xt(e))??"#"]],when:(e,o)=>xt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:oe,style:Tt(12,{letterSpacing:.18,lineHeight:1.7})}]},p8={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)=>jF(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>GF(t)])]},u8={kind:"group",name:"Map",props:{...R,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[p8]},m8={kind:"list",key:"locations",name:"City",props:(e,o)=>({...R,gap:0,justify:"between",sectionBorder:YI,jumpHighlight:!0,sectionAccent:zr(e,o)>=0?es(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:UF(o)}}),parts:[c8,u8],groups:{of:fs,name:"Group",props:{...R,gap:20},head:e=>{let o=e[0]??{};return{key:fs(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:vd(e),[a8("columns")]:1})}},NF=Tt(10,{letterSpacing:.25}),x8={kind:"block",type:qt,props:{...R,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:s8,slot:Vt,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...oe,text:"Location coordinates \xA9",_partStyles:{text:NF}}},{kind:"block",type:"ButtonBlock",props:{...fo,...Fa,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...NF,color:"labels"}}}}]},MF=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),HF=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],WF=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],$F=e=>e.map(o=>[o,o,(t,r)=>re(r,Hn)[o]]),zF=["sectionAccent","sectionAccent",Ur],h8=[...vr,...Tn,...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,...MF(re(e,Hn),HF),sectionPaddingBottom:DF,sectionPaddingBottomPhone:DF,...Ba(e,o)}),box:[...Z.filter(e=>e!=="sectionAccent"&&e!=="anchor"),zF,["anchor","anchor",e=>oP(e).trim()?e:"studios"],...$F(HF)],parts:[wp("sectionNumber","heading","tagline"),f8],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...zo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...MF(re(e,Hn),WF),...Ba(e,o)}),box:[...h8,zF,...$F(WF)],parts:[m8,x8]}],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)"}},KF={ContactLocations:I8};import{SITE_SIDE as qF,sideLengthAt as g8}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as ZI}from"efficient-easel/draw";var y8=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var Gr=(e,o)=>()=>({top:e,topPhone:o}),VF=e=>o=>{let t=Wn(e),r={...o,[Pr.top]:ef(o,t).top},a=i=>{let d=g8(r,Pr,Qd,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>ye(o[ZI(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}:{}}},S8={Collections:Gr(120,70),Events:Gr(120,70),FAQ:Gr(lc.top,lc.topPhone),GalleryB:Gr(120,70),FitmentTable:Gr(120,80),SpecTable:Gr(120,80),LongRead:Gr(ic.top,ic.topPhone),RelatedProducts:Gr(0,0),Footprint:VF("Footprint"),ProcessSteps:VF("ProcessSteps"),ProductGrid:e=>({top:ye(e.padTop)??120,topPhone:0})};function b8(e,o={}){let t=z(Ct,e),r=z(S8,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=Pp(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:si[Ra(e)],sectionPaddingTop:m.top,...m.topTablet!==void 0?{sectionPaddingTopTablet:m.topTablet}:{},...m.topPhone!==void 0?{sectionPaddingTopPhone:m.topPhone}:{},...I,...u,...h}},box:[...Z,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d=a&&IO.has(e)?{[ZI(a,"tablet")]:0,[ZI(a,"mobile")]:0}:{},f={...a?{[a]:0}:{},...d,...o.coreProps},m={kind:"core",keep:"rest",...Object.keys(f).length?{props:f}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[m]}:m]})(),...o.partsAfter??[]],...Object.keys(s).length?{reads:s}:{},...Object.keys(i).length?{drop:i}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var w8={...R,direction:"accordion",rowStyle:"numbered"},C8={sectionPaddingLeft:qF,sectionPaddingRight:qF},k8={Footprint:{slots:{[Te]:[ww()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Ms]:C1().map(t=>({...t,props:{...t.props,...C8}}))}:{},boxProps:{gapPhone:si.editorial}},FAQ:{slots:{[Te]:[Sw()]},pressHeading:!0,coreBox:{name:"Questions",props:w8},coreProps:{sectionAccent:Cr},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[oO]:Sl},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}}},YF=Object.fromEntries(y8.map(e=>[e,b8(e,z(k8,e))]));import{BLOCK_WIDTH_LIMIT as v8}from"efficient-easel/draw";var Up={eyebrow:Oe.eyebrow,title:Oe.headingAccent,deck:"Add a sentence or two introducing this document."},HSe={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var eB={minWidth:v8.min},XF=(e,o,t)=>({...pe(e,{...o,...ti}),props:{...U,align:"right",..._a,...t}}),oB={top:1,bottom:0},eg=(e,o,t,r)=>({kind:"group",name:e,props:{...R,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),JF={widthFit:"fill",...eB},P8={...H("label",13),letterSpacing:.22,lineHeight:1.8},ZF={textStyle:"heading-1",...Uo("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},T8=()=>({name:"Page Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,pc)}),box:[...Z,...ce(pc)],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",...JF},style:ZF,mark:"accentItalic",when:e=>!Yh(e)},{kind:"text",key:"title",role:"heading",props:{...U,tag:"h2",...JF},style:ZF,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:[ri("label","value",P8,_a)]}]}]},{kind:"group",name:"Deck",props:{...R,maxWidth:760,sectionBorder:oB,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,[qc]:"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"}}),tB=()=>({eyebrow:Up.eyebrow,title:vt(Up.title),deck:Up.deck,meta:[{label:Oe.label,value:Oe.value},{label:Oe.label,value:Oe.value}]}),O8={...H("label",13),letterSpacing:.18,lineHeight:1.8},QF={...H("label",13),letterSpacing:.22,lineHeight:1.9},E8=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...re(e,vl)}),box:[...Z,...ce(vl)],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:[ri("lead","rest",O8)]}]}]},{kind:"group",name:"Bottom",props:{...R,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:oB,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...U,maxWidth:720,...eB},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,...ti}}),{kind:"group",name:"Lines",props:{...R,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[XF("text",{color:"labels",...QF})]}]},XF("issueTotal",QF)]}]}],drop:{...X,...te}}),QI={color:"labels",...H("label",13),letterSpacing:.2},rB=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),og=(e,o)=>o!==void 0&&rB(e).at(-1)===o,aB=(e,o)=>o!==void 0&&rB(e).includes(o),_8=(e,o)=>aB(e,o)&&!og(e,o)&&We(o?.href),A8=()=>({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,bl)}),box:[...Z,...ce(bl)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:_8,props:{...fo,...Fa,icon:"none"},style:QI},{...pe("label",QI),when:(e,o)=>aB(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",...cp}}),nB={DocMasthead:T8(),Masthead:E8(),Breadcrumb:A8()};import{BLOCK_WIDTH_LIMIT as B8,hiddenKeyOf as L8}from"efficient-easel/draw";import{readHidable as tg}from"efficient-easel/draw";function F8(e,o,t){return e||(t?.isEditing?c(o):void 0)}function ebe(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function sB(e,o,t){let r=tg(e);if(!r.hidden)return F8(r.text,o,t)}function lB(e){if(e==null)return;let o=tg(e);return o.hidden?"":o.text}function obe(e,o,t){return tg(e).hidden?"":sB(e,o,t)}function tbe(e,o,t){return{text:sB(e,je.text,t),href:o||je.href}}var cB="MenuBlock",rg=e=>(Array.isArray(e)?e:[]).filter(o=>o&&We(o.label)),iB=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(lB(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},dB={top:0,bottom:0,topPhone:0,bottomPhone:0},R8={...Ro,color:"labels",...H("label",12),letterSpacing:.24},D8={kind:"group",name:"Note",props:{...R,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[L8("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>iB(e)!=="",props:e=>({...U,textFit:"line",text:iB(e),[vv]:{text:R8}})}]},pB=()=>({tabs:[],metaLabel:Oe.label,metaValue:Oe.value}),fB="the note Text inside the Box (the label, then the value in the accent); no words, no Text",uB={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:B8.min},mB=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[wn]:0,[el]:!0,sectionBorder:{bottom:1},...re(o,dB)}),box:[...Z,...ce(dB)]}),N8=()=>mB({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:fB,metaValue:fB},parts:[{kind:"block",type:cB,props:uB},D8],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"}}),M8=()=>mB({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:cB,props:{...uB,[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"}}),xB={DocTabs:N8(),CategoryBar:M8()};import{jsx as Na,jsxs as ag}from"react/jsx-runtime";import{slugify as K8}from"efficient-shell/format";import{jsx as Gp,jsxs as gB}from"react/jsx-runtime";import{jsx as H8}from"react/jsx-runtime";import{useEffect as W8,useRef as $8}from"react";var hB="data-current",z8=1/3,U8=2;function j8(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 G8(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=j8(n,o,t);for(let l of r)s!==null&&a(l)===s?(l.setAttribute(hB,""),l.setAttribute("aria-current","location")):(l.removeAttribute(hB),l.removeAttribute("aria-current"))}function IB(){let e=$8(null);return W8(()=>{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-U8;G8(o,window.innerHeight*z8,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)}},[]),H8("span",{ref:e,hidden:!0})}var Ibe="sticky top-[120px]";var jp={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var yB=(e,o)=>e?{[ra]:o}:{},SB=(e,o)=>Iw(e?.[Us(o)]?.role,jp[o],bb),bB=120;function wB({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Zx,takesViewHide:l=!1,markCurrent:i=!1}){let d=s==="plain",f=nt(),m=l?f:Or;return m.scope(gB("aside",{className:ko(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,m.className),style:r?{top:t}:void 0,...m.attrs,children:[e&&Gp("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Je(e)}),o.map((u,h)=>{let I=Gp("span",{...yB(a,"number"),style:SB(n,"number"),className:"text-accent",children:Uf(s,h)});return gB("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,Gp("span",{...yB(a,"entry"),style:SB(n,"entry"),children:Je(u.label||"Section")}),!d&&I]},`${h}-${u.anchor}`)}),i&&!a&&Gp(IB,{})]}))}function CB(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 q8(e,o){return K8(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 CB(e.map((o,t)=>q8(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=hd(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 V8=()=>[{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.")}],Y8=bB;function Ube({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=Y8,pad:a}){let n=Pt(),s=sg(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?V8():s,i=lg(l);return Na(fe,{as:"section",className:"relative z-[2] bg-bg",children:ag("div",{...uO(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(wB,{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:[Jx(f)," \xB7 ",Je(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:Je(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:Je(h)},I))},u):Na("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Je(m.text)},u))]},i[f]))})]})})}var kB=18,vB=18,PB=8,X8=10,dg=e=>typeof e=="string"&&e.trim()!=="",TB=e=>sg(e.sections),J8=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},OB={textStyle:"body-1",fontRole:"accent",...H("body",17)},Z8=[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:PB,sectionPaddingBottomPhone:PB},parts:[{kind:"group",name:"Heading line",props:{...R,sectionBorder:{bottom:1},sectionPaddingBottom:vB,sectionPaddingBottomPhone:vB},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:J8,parts:[{kind:"text",key:"text",props:oe,style:{...OB,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:oe,style:{...OB,lineHeight:1.65,paragraphSpacing:X8},when:(e,o)=>o?.kind==="ul"}]}],Q8=900,eK={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[Sp]:Q8,sectionBorder:{bottom:1},...re(e,cc)}),box:["anchor","sectionAccent",...vr,...Tn,...Object.values(Ao),...ce(cc)],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=>TB(e),props:{...R,gap:kB,gapPhone:kB},item:(e,o,t)=>({props:{anchor:lg(TB(t))[o]??`section-${o+1}`}}),parts:Z8}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},EB={DocBody:eK};import{phoneKey as aK}from"efficient-easel/draw";import{SITE_SIDE as nK}from"efficient-easel/screen/lib/content/length-units";var owe={eyebrow:"\u2014 Label",title:`Section headline *here.*
331
+ *Highlight line*`,body:"Describe this section in a sentence or two."},twe={text:"Learn more"},rwe={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 oK}from"efficient-shell/format";var _B="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",tK="overlay",rK=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Kp(e){return oK(rK,tK,e)}var swe={desktop:40,mobile:45,min:20,max:80,step:5};function lwe(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as sK}from"efficient-shell/format";var AB=(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(ll.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(ll.sizePhone,t?.phone)}}},lK=e=>Kp(e.layout)==="stacked",FB=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),qp=e=>ye(e)??100,iK={textStyle:"heading-1",sizeToken:{...Uo("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},dK=[pe("eyebrow",H("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:U,style:{...iK,case:e?"upper":"none"},styleFrom:o=>{let t=Tx(o);return AB(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 AB(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}]}],BB=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)`,fK=()=>({name:"Scroll-Over Text",skip:e=>lK(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",...ai,placement:"left",darken:FB(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:qp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:qp(e.heightMobile),[Xd]:uk}),box:[...Z.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>FB(o)],["heightDesktop","sectionHeightValue",e=>qp(e)],["heightMobile","sectionHeightValuePhone",e=>qp(e)]],parts:dK,drop:{uppercase:"not a value of its own: it picks the heading part \u2014 Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",...Object.fromEntries(SP.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:BB("Button color"),buttonTextColor:BB("Button text color"),...X}}),DB={textStyle:"heading-2",...H("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},cK={textStyle:"body-1",...H("body",16),lineHeight:1.7},NB=e=>({kind:"text",key:"body",props:{...oe,maxWidth:520},style:{...cK,paragraphSpacing:e}}),Yp={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"},pK=(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"}},MB={boxShapePhone:"landscape"},HB="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)",uK=(e,o)=>({[e]:o,[aK(e)]:o}),mK={textStyle:"heading-2",...H("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},LB=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),xK=()=>({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,Yp),...pg(e,100)}),box:[...Z,...ce(Yp)],parts:[{kind:"group",name:"Words",props:()=>({...R,justify:"center",gap:28,gapPhone:28,sectionBorder:ni({right:1}),sectionBorderPhone:ni({}),...ai,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:nK}),parts:[pe("eyebrow",H("label",14)),{kind:"text",key:"heading",role:"heading",props:U,style:{...DB,case:"none"},mark:"accentItalic"},NB(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(LB(e).length,1),3),...uK("sectionBorder",ni({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:LB,props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Aa,style:mK},pe("label",{...H("label",13),color:"labels",letterSpacing:.2})]}]}]}]},mI("Picture","imageSrc",MB)],drop:{...X,grayscale:HB,...te}}),Vp=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}},hK=e=>e.textAlign==="center"||e.textAlign==="right"?Sd[e.textAlign]:"stretch",IK=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),WB=e=>typeof e=="string"&&e.trim()!=="",gK={...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},RB=e=>({...mI("Picture","imageSrc",(o,t)=>({...WB(o.imageSrc)&&cg(o.imageOverlay)>0?{darken:cg(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...MB,sectionBorder:ni(e?{left:1}:{right:1}),...$B(e?"left":"right",ts(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:gK,style:{...wt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),$B=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},yK={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...R,justify:"center",align:hK(e),placement:sK(["left","center","right"],"left",e.textAlign),...pK(e,72),gap:24,gapPhone:24,...WB(e.textBgSrc)?{darken:IK(e),darkenStyle:"even"}:{},...ai,sectionPaddingTop:100,sectionPaddingBottom:100,...$B(t?"right":"left",ts(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...pe("eyebrow",H("label",14)),styleFrom:Vp},{kind:"text",key:"title",role:"heading",props:U,style:DB,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Vp(e)})},{...NB(24),styleFrom:Vp},{kind:"group",name:"Button",props:{...R,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Vp(e);return{...fo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},SK=()=>({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,Yp),...pg(e,72)}),box:[...Z,...ce(Yp)],parts:[RB(!1),yK,RB(!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:HB,...X,...te}}),zB={IntroBleed:fK(),Manifesto:xK(),Split:SK()};var GB={headPlacement:void 0},UB={top:0,bottom:0,topPhone:0,bottomPhone:0},bK=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...re(e,UB)}),box:[...Z,...ce(UB)],parts:[{kind:"core",keep:"rest",props:GB}],drop:{...X,...te}}),jB={top:120,bottom:120,topPhone:60,bottomPhone:60},wK=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...re(e,jB)}),box:[...Z,...ce(jB)],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:GB}],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'}}),KB={Form:bK(),SubmitBuild:wK()};import{phoneKey as qB}from"efficient-easel/draw";var YB=1.5,VB={textStyle:"body-1",...H("body",15),lineHeight:YB},CK={...Ro,...H("label",12),letterSpacing:.12,lineHeight:YB},XB=()=>({type:q,props:{...R,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[qB("share")]:"content",[qB("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"},VB),Be("meta",{...oe,tag:"p"},CK)]}},Be("amount",{...U,tag:"p"},VB)]}});var kK=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...Z],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Te]:[XB()]}}],drop:{...X}}),JB={OrderSummary:kK()};import{phoneKey as vK}from"efficient-easel/draw";var Lwe={eyebrow:"By the numbers",title:`A picture worth
332
+ *a thousand rows.*`},ZB=["eyebrow","title","body","caption"],Rwe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var QB=["eyebrow","title","body"],Nwe={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 tL=()=>({kind:"group",name:"Words",props:{...R,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...R,direction:"row",phoneRow:2,[vK("share")]:"content"},parts:[Qn("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:wd(16)}]}),rL=e=>(o,t)=>({...Y,sectionAccent:os(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...re(o,Pl)}),aL=[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>os(e,t)],...ce(Pl)],PK=()=>({name:"Chart",boxProps:rL([42]),box:aL,parts:[tL(),{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:[...ZB],drop:{...X,...te}}),eL=e=>e.align==="left",oL={kind:"group",name:"Card",keepEmpty:!0,props:R,parts:[{kind:"core",keep:"rest",props:Zn}]},TK=()=>({name:"Mockup Card",boxProps:rL("equal"),box:aL,parts:[{...oL,when:eL},tL(),{...oL,when:e=>!eL(e)}],pressKeepsEmpty:[...QB],drop:{...X,...te}}),nL={Chart:PK(),Mockup:TK()};import{phoneKey as EK}from"efficient-easel/draw";function sL(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function lL(e){return Math.max(e*6,30)}var _K=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),ug=e=>sL(_K(e)),AK=e=>Lp({loopDuration:lL(e)}),FK={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,[EK("share")]:"content"},parts:[Qn("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:wd(16)}]},BK=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:AK(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"]}]}]}]}),LK={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"}}]},RK=[...Z.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>os(e,t)],...ce(xc)],DK={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:os(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...re(e,xc)}),box:RK,parts:[FK,{kind:"group",name:"Rows",props:{...R,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>BK(o))},LK],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...te}},iL={Integrations:DK},dL=()=>({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 NK={title:"Back online in",zeroText:"Almost done. Back very soon."},fL=["title"],oCe={label:"Countdown",defaultProps:{...NK,endsAt:"",showUnits:!0}};var MK={...pe("title",{...iw(12),color:"muted"}),props:{...U,align:"center"}},HK=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...re(e,fc)}),box:[...Z,...ce(fc)],parts:[MK,{kind:"core",keep:"rest",props:Zn}],pressKeepsEmpty:[...fL],drop:{...X,...te}}),WK=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...re(e,mc)}),box:[...Z,...ce(mc)],parts:[{kind:"core",keep:"rest",props:Zn}],drop:{...X,...te}}),cL={Countdown:HK(),FeaturedCover:WK()};var pL={top:80,bottom:80,topPhone:60,bottomPhone:60},$K=()=>{let e=Pp("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:si[Ra("FitmentFinder")],...re(o,pL)}),box:[...Z,...ce(pL)],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'}}},uL={FitmentFinder:$K()};var Xp={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},cCe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var hi={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"},mCe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var mL={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},hCe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var xL={title:`Section heading
334
+ *Highlight line*`},hL=[{label:je.text,href:je.href,variant:"primary"},{label:je.text,href:je.href,variant:"outline"}],yCe={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},kCe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:tc,num:hr.num,numStyle:El,title:hr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Jp={eyebrow:"\u2014 Label",title:`Section headline
335
+ *Highlight line*`,body:"A sentence or two of supporting copy."},OCe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:fl,bodySizeDesktop:fl,titleSizeMobile:fl,bodySizeMobile:fl,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[wn]:0,uppercase:!1}};var zK={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...re(e,Ic)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...Z,...ce(Ic)],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)"}},gL={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},yL=(e,o)=>o?.variant==="primary",SL=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:yL,variant:"primary",style:{letterSpacing:.3},props:{...fo,...gL,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!yL(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...fo,...gL,...o}}]}),Zp=e=>We(e.title),UK={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:[...Z,...$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:[SL(Zp,{widthFit:"fill",iconPosition:"end"}),SL(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 jK(e,o){let t=ts(o,{to:wr(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=ts(o,{view:"phone",to:wr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:IL,sectionPaddingRight:IL,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var GK={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...re(e,gc),...jK(e,o)}),box:[...Z,...ce(gc)],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"}},bL={...R,direction:"row",share:[67],gap:32},wL={...R,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},CL=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),KK={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...ft(e,"ParagraphsA")}),box:[...Z,...$r("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...bL,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})]},CL("Stats column",R,{kind:"group",name:"Stats",props:{...wL,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[ri("value","label",{...H("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...bL,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}}]}]},CL("Note column",{...R,justify:"end"},{kind:"group",name:"Founders",props:{...wL,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}},qK={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...re(e,nc)}),box:[...Z,"contained",...ce(nc)],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:zK,TitleWithButtons:UK,SectionHeader:GK,ParagraphsA:KK,Banner:qK},kL={Prose:()=>({eyebrow:Xp.eyebrow,title:vt(Xp.title),body:Xp.body}),TitleWithButtons:()=>({title:vt(xL.title),buttons:hL.map(e=>({...e}))}),SectionHeader:()=>({num:hr.num,title:vt(hr.title),description:hr.description,linkText:hr.linkText,linkHref:je.href}),ParagraphsA:()=>({eyebrow:hi.eyebrow,lead:Oe.body,foundersHeading:hi.foundersHeading,foundersBody:hi.foundersBody,attribution:hi.attribution}),Banner:()=>({...mL,ctaText:je.text,ctaHref:je.href}),ProcessSteps:()=>({num:hr.num,title:vt(hr.title)}),IntroBleed:()=>({eyebrow:Jp.eyebrow,title:vt(Jp.title),body:Jp.body,ctaText:je.text,ctaHref:je.href})};function Qp(){no(mg),no($A),no(rF),no(FA),no(yF),no(BF),no(KF),no(YF),no(nB),no(xB),no(EB),no(zB),no(KB),no(JB),no(uL),no(nL),no(iL),no(cL)}var VK=[{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=>_1(e)},{name:"migrateRenamedProps",chrome:!0,why:"every document built from stored props: a renamed key still reads its stored answer (lib/source-rules/document-surfaces)",run:e=>F1(e)},{name:"convertSectionsInPage",chrome:!1,why:"page-only: it turns an old top-level SECTION into its Box, with the site theme off the page's metadata; chrome is a Box group, never one of those sections",run:(e,{metadata:o})=>(Qp(),D1(e,ei,{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=>z0(e)},{name:"oneH1",chrome:!1,why:"page-only: it hands the h1 to the first opener in the PAGE's document order; on a chrome document it would count a second document on its own",run:e=>QE(e)},{name:"dropEmptySourcedBoxes",chrome:!0,why:"any document: a nested head over sourced cores served none goes (the Box footer's payment line), at any depth inside a slot",run:e=>ZE(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=>XE(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=>q0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>y0(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=>a_(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=>d_(e)}];function YK(e,o,t){let r=e;for(let a of VK)(!t||a.chrome)&&(r=a.run(r,o));return r}function vL(e,o){return YK(e,{metadata:o},!1)}import{useRef as XK}from"react";import{createRenderKeep as JK}from"efficient-easel/render";function PL(){let e=XK(null);return e.current??=JK(),e.current}import{isNode as ZK,isNodeList as QK}from"efficient-easel/data";import{hidableText as e7,readHidable as o7}from"efficient-easel/draw";var OL="slotCounts",xg=e=>!o7(e).hidden&&e7(e).trim()!=="",t7=e=>typeof e=="string"&&e.trim()!=="",r7={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>t7(e.src),Text:e=>xg(e.text),Heading:e=>xg(e.text),Eyebrow:e=>xg(e.eyebrow)},a7=["widthFit","width","minWidth"],TL=e=>QK(e);function n7(e){if(Array.isArray(e.content))return TL(e.content)?e.content:null;let o=Object.values(e).filter(TL);return o.length===1?o[0]:null}function s7(e,o){return[...new Set([db,...Object.values(z(Ow,e)??{})])].some(t=>Wt(o,t)!=="")}function l7(e){let o=e.props??{},t=z(r7,e.type);if(!t||!t(o)||s7(e.type,o)||dl(o))return!1;let r=o[qn];if(r!=null&&r!=="")return!1;let a=fp(o);return!a7.some(n=>a[n]!==void 0)}function i7(e){let o=0;for(let t of e)if(!lr(t.props??{})){if(!l7(t))return;o+=1}return o>0?o:void 0}function d7(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!ZK(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:n7(l.props);if(typeof i=="string"&&d){let f=i7(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 EL(e,o){return{...e??{},[OL]:d7(o)}}function Bke(e){let o=e.editor?.metadata?.[OL],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 p7({config:e,data:o,metadata:t}){let r=vL(o,t),a=PL(),n=W0(e,H0(r.content)),s=Zf(r.content),l=s.length>0?{...t,[M0]:s}:t;return _L(Qf,{children:_L(c7,{config:n,metadata:EL(l,r.content),keep:a,data:r})})}var AL=f7(p7);import{jsx as jo,Fragment as bq,jsxs as TR}from"react/jsx-runtime";import{Suspense as wq,useMemo as Cq}from"react";import{jsx as u7}from"react/jsx-runtime";import{createContext as m7,useCallback as x7,useContext as h7,useState as hg}from"react";var FL=m7({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function Gke({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=hg(null),[n,s]=hg(null),[l,i]=hg(0),d=x7(()=>i(f=>f+1),[]);return u7(FL.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var BL=()=>h7(FL);import{jsx as I7,jsxs as g7}from"react/jsx-runtime";import{createContext as y7,useContext as S7}from"react";var LL=y7(!1);function Xke(){return S7(LL)}function RL({grayscale:e,children:o}){let t=e===!0;return g7(LL.Provider,{value:t,children:[Object.entries(U_(e)).map(([r,a])=>I7("style",{children:a},r)),o]})}import{jsx as b7}from"react/jsx-runtime";import{createContext as w7,useContext as C7}from"react";var DL=w7(null);function eve(){return C7(DL)}function NL({ink:e,children:o}){return b7(DL.Provider,{value:e??null,children:o})}import{parseOption as k7}from"efficient-shell/format";var ML="data-lead-ink",nve="data-header-ink",v7=["auto","light","dark"],P7="auto";function T7(e){return e.type==="IntroBleed"?Kp(e.props?.layout)!=="stacked":!0}function HL(e){let o=kf(e);return o&&vP(e)&&T7(o)?"light":null}function sve(e){return k7(v7,P7,e)}import{useEasel as Eg}from"efficient-easel/easel";import{useEffect as H7}from"react";import{useEaselApi as W7}from"efficient-easel/easel";import{find as O7,walk as WL}from"efficient-easel/data";var E7=()=>"",_7=e=>Xm(Mt([e],E7));function UL(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(_7))])),a=Xm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var A7=()=>({press:[rs(ta),rs(zs)],delivery:[gI()]}),F7={},Ig=e=>UL(e,A7,F7),B7=e=>Me(e)===ab?"delivery":"press";function gve(e,o){if(!o||Me(e)===Me(o))return e;let t=Ig(e[Te]),r=B7(e);if(!t||t===r)return e;let a=Gm(e,io),n=r==="delivery"?gI():rs(Me(e)?zs:ta),s=Mt([n],qm(a));return{...e,[Te]:s}}var L7=()=>({cards:[ln(ta),ln(zs)],label:[dn(!1),dn(!0)]}),R7={},D7=e=>UL(e,L7,R7);function yve(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=D7(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"?dn(n):ln(Me(e)?zs:ta),l=Mt([s],qm(a));return{...e,[Te]:l}}var $L=(e,o)=>II.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function zL(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 N7(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"&&$L(e,La(n))?zL(e,Ip(n)):a==="press"&&$L(e,Ip(n))?zL(e,La(n)):e}function jL(e){let o=eu.get(e);o?o.count+=1:eu.set(e,{count:1,stop:M7(e)});let t=!1;return()=>{let r=eu.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),eu.delete(e)))}}var eu=new WeakMap;function M7(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;WL(t,e.config,n=>{if(n.type!==q||!gg(n.props))return;let s=O7(r,e.config,n.props.id);if(!s||s.node===n)return;let l=N7(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>WL(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function GL(){let e=$7();H7(()=>e?jL(e):void 0,[e])}function $7(){try{return W7()}catch{return null}}import{jsx as ou}from"react/jsx-runtime";import{useEffect as z7}from"react";import{armPinSteps as U7,armScrollProgress as j7,PIN_ATTR as KL,PIN_CENTRE_ATTR as G7}from"efficient-shell/format";var K7=`[${KL}]:not([${KL}="stick"]), [${G7}]`;function qL({armed:e,children:o}){return z7(()=>{if(!e)return;let t=j7(),r=document.querySelector(K7)?U7(document):()=>{};return()=>{r(),t()}},[e]),o}function yg(){return{style:{"--sf-page-width":No}}}function q7({children:e}){return ou("div",{style:yg().style,children:e})}function Fve({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return ou("div",{style:{...o?{}:Af(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:ou(qL,{armed:!t,children:ou(q7,{children:r})})})}import{jsx as VL,Fragment as V7}from"react/jsx-runtime";import{createContext as XL,useContext as YL}from"react";var JL=XL({}),ZL=JL.Provider,QL=XL(void 0),eR=QL.Provider;function Dve(e){let{SectionTextParts:o}=YL(JL),t=YL(QL);return o?VL(o,{...e,sizeCaps:t}):VL(V7,{children:e.children})}import{jsx as uq}from"react/jsx-runtime";import{useEffect as mq,useRef as xq}from"react";var oR="data-easel-overlay-portal";function tu(e){return e.setAttribute(oR,"true"),()=>{e.removeAttribute(oR)}}import{jsx as nq}from"react/jsx-runtime";import{useEffect as sq,useRef as hR}from"react";import{usePreviewParts as lq}from"efficient-easel/draw/client";import{jsx as Y7}from"react/jsx-runtime";import{createContext as X7,useContext as J7,useMemo as Z7,useState as Q7}from"react";var eq={partStyle:null,setPartStyle:()=>{}},tR=X7(eq);function $ve({children:e}){let[o,t]=Q7(null),r=Z7(()=>({partStyle:o,setPartStyle:t}),[o]);return Y7(tR.Provider,{value:r,children:e})}function cs(){return J7(tR)}import{usePreviewDevice as iq}from"efficient-easel/draw/client";import{shownTier as dq}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as IR,encodePartId as fq}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as cq}from"efficient-easel/canvas";import{createPreviewSelectionContext as oq}from"efficient-easel/draw/client";var Ma="Scrolling Bar",{Provider:jve,useSelection:rR}=oq("selectedHeroId"),Sg="data-sf-hero-ticker";function aR(e){return`${e}::ticker`}function nR(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as Kr}from"efficient-easel/canvas";import{createPreviewSelectionContext as tq}from"efficient-easel/draw/client";var{Provider:qve,useSelection:sR}=tq("selectedLocationPartId");function ru(e,o,t){return`${e}::${o}::${t}`}function au(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 lR(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(g=>[g.key,hf(g.label)])),n=[],s=new Set;for(let g=0;g<r.length;g+=1){let b=r[g];if(!Cg(b,o))continue;let E=b.getAttribute(mv);if(!E)continue;let A=a.get(E);n.push({element:b,partId:jt(o,E),...A?{label:A}:{}}),s.add(b)}let l=[],i=new Set;for(let g=0;g<r.length;g+=1){let b=r[g];if(!Cg(b,o)||s.has(b))continue;let E=hv(b.textContent??"");if(!E)continue;let A=b.closest(`[${Sx}]`)?.getAttribute(Sx)||null;A&&i.add(A.replace(/\[\d+\]$/u,"")),l.push({element:b,text:E,row:A})}let d=g=>l.filter(b=>b.row===uv(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 b=I(g);if(!b||i.has(g.key))continue;let E=S.get(b);E?E.push(g):S.set(b,[g])}let P=new Set;for(let[g,b]of S){if(b.length<2)continue;let E=b.flatMap(w=>w.texts);if(new Set(E).size===E.length)continue;let A=m(b[0]).filter(w=>E.includes(w.text));if(A.length!==b.length)continue;let N=[...b].sort((w,_)=>(w.row?.index??0)-(_.row?.index??0));for(let w=0;w<N.length;w+=1){let _=N[w],y=A[w].element,v={key:_.key,partKey:vn(_.key,_.row),exact:!0},O=u.get(y);O?O.push(v):(u.set(y,[v]),h.push(y))}P.add(g)}let T=new Map;for(let g of t){if(P.has(I(g)??""))continue;let b=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(b):T.set(A.element,new Set([b]))}}let B=(g,b)=>[...T].some(([E,A])=>E!==g&&!A.has(b)&&E.contains(g));for(let g of t){if(P.has(I(g)??""))continue;let b=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,b)||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 w=A.length?A:N?[N.element]:[],_=w.filter(y=>!w.some(v=>v!==y&&y.contains(v)));for(let y of _){let v={key:g.key,partKey:b,exact:A.length>0},O=u.get(y);O?O.push(v):(u.set(y,[v]),h.push(y))}}}let k=[...n];for(let g of h){let b=u.get(g)??[],E=b.some(A=>A.exact)?b.filter(A=>A.exact):b;if(new Set(E.map(A=>A.partKey)).size===1){let A=a.get(E[0].key);k.push({element:g,partId:jt(o,E[0].partKey),...A?{label:A}:{}});continue}new Set(E.map(A=>A.key)).size===1&&k.push({element:g,partId:jt(o,E[0].key)})}return k}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 fR(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=lR(e,m,o);return a(f,m,bg(e,m,u)),i=n(()=>{let h=lR(e,m,o);rq(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 rq(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function oPe(e,o){let t=e?.closest?.(`[${Ue}],[${Ar}]`),r=t?.getAttribute(Ue)??t?.getAttribute(Ar),a=r?pv(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:dR(t,r),label:iR(t,r)};let n=e?.closest?.(pR.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${Kr}]`)?.getAttribute(Kr)===o?uR(n,o):null;return s?{id:s,element:n,whole:dR(n,s),label:iR(n,s)}:null}function iR(e,o){let t=au(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=Jc(o);return r?xr[r.part]:nR(o)?Ma:e.getAttribute(wg)??void 0}var cR="data-loc-pick",pR=[Ue,Ar,Yl,Sg,cR];function uR(e,o){let t=e.getAttribute(Ue)??e.getAttribute(Ar);if(t)return t;let r=e.getAttribute(Yl);if(r)return va(o,r);if(e.getAttribute(Sg)!==null)return aR(o);let a=e.getAttribute(cR)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?ru(o,Number(a[0]),a[1]):null}function dR(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(pR.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${Kr}]`)!==t)continue;let s=uR(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as mR,playEntrance as aq}from"efficient-shell/format";var kg=new WeakMap;function xR(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=ik(f),u=r.get(d),h=u?$n.next(u,m,a):null;r.set(d,h?h.seen:$n.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=Bc(d.element);f&&l.set(f,[...l.get(f)??[],d])}for(let[d,f]of l){let m=I=>Ll(o(I.partKey)??{}),u=jn(f.filter(I=>m(I).entrance));if(u){let I=o(u.partKey)??{};n.push(Ac(d,Js(I,a)));let S=kg.get(d);kg.set(d,u.partKey),(s.get(u.partKey)||S!==void 0&&S!==u.partKey)&&d.hasAttribute(mR)&&aq(d)}else kg.delete(d);let h=d.hasAttribute(mR)?void 0:jn(f.filter(I=>Kt(o(I.partKey)??{},a).effect!=="none"));h&&n.push(Fc(d,Kt(o(h.partKey)??{},a))),f.some(I=>m(I).hover==="lift")&&(Lc(d.ownerDocument),d.setAttribute(ba,""),n.push(()=>d.removeAttribute(ba)))}return()=>n.forEach(d=>d())}function vg(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=wb(a),t??=tx(a)}return{faceRole:o??"body",sizeGroup:t}}function nu(e,o={},t=Ib){let r=e.style,a={};for(let i of kx)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=Hv({fontSize:n.fontSize,fontWeight:n.fontWeight,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,textAlign:n.textAlign,textTransform:n.textTransform,paddingTop:n.paddingTop},Wv(n.fontFamily,i=>s.getPropertyValue(i),t));for(let i of kx)r[i]=a[i];return l}function gR({needles:e,styles:o,motions:t=_c,type:r,sizeCaps:a,children:n}){let s=hR(null),{selectedPartId:l}=lq(),{setPartStyle:i}=cs(),d=dq(iq()),f=kt(),m=JSON.stringify(e),u=JSON.stringify(o),h=JSON.stringify(t),I=hR(new Map);return sq(()=>{let S=s.current;if(!S)return;let P=[],T=()=>S.parentElement,B=w=>{let _=T();if(!_)return null;let y=new MutationObserver(w);return y.observe(_,{attributes:!0,attributeFilter:[cq]}),()=>y.disconnect()},k=w=>{let _=new MutationObserver(w);return _.observe(S,{childList:!0,subtree:!0,characterData:!0}),()=>_.disconnect()},g=[];P.push(()=>{for(let w of g)w();g=[]});let b=JSON.parse(m),E=JSON.parse(u),A=JSON.parse(h),N=fR(S,b,T,B,(w,_,y)=>{for(let L of g)L();g=[];let v=[];for(let L of y){let M=L,K=tu(M);K&&g.push(K),M.getAttribute(Ue)===l&&v.push(M)}let O=$v(_,l,v,L=>Cb(L)!==null||tx(L)!==null);if(O&&l){let L=O,M=IR(l)?.propKey??"",K=sl(L)?{}:Mv(zv(E,pr(r,M)),d,{blockDrawsStyle:il(r,M),sizeCap:ia(a,M),fonts:f});i({partId:l,...vg(L),base:nu(L,K,f),inks:cf(L),...(()=>{let W=sl(L);return W?{styleOwner:W}:{}})()})}Cx(y.filter(L=>!sl(L)).map(L=>({element:L,partId:L.getAttribute(Ue)??""})),E,L=>nu(L,void 0,f),L=>pr(r,L),void 0,d,L=>il(r,L),L=>ia(a,L),f);let C=[...S.querySelectorAll(`[${xv}="${CSS.escape(_)}"][${xf}]`)];C.length&&Cx(C.map(L=>({element:L,partId:fq(_,L.getAttribute(xf)??"")})),E,void 0,L=>L,void 0,d,void 0,void 0,f),g.push(xR([...y.filter(L=>!sl(L)).map(L=>{let M=L,K=IR(M.getAttribute(Ue)??"")?.propKey??"";return{element:M,partKey:pr(r,K)}}),...C.map(L=>({element:L,partKey:L.getAttribute(xf)??""}))],L=>A[L],sk(d),I.current))},k);return()=>{N();for(let w of P)w()}},[m,u,h,l,i,d,r,f]),nq("div",{ref:s,[Fh]:"",style:{display:"contents"},children:n})}import{shownTier as hq}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as Iq,usePreviewParts as gq}from"efficient-easel/draw/client";var Ii={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)]"},pq={tag:{label:"Tag",follows:"Labels",builtIn:pn(Ii.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:pn(Ii.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:pn(Ii.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:pn(Ii.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:pn(Ii.link),writable:!0}},yR=pq;var LPe=ra,SR={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 bR={SpecTable:SR,FAQ:gw,Collections:yR,Contents:jp};function wR(){return on("efficient.section-text-regions",()=>new Map)}function zPe(e){let o=wR();for(let[t,r]of Object.entries(e)){if(eo(bR,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 ps(e){return e?z(bR,e)??wR().get(e)??null:null}function CR({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=xq(null),{selectedPartId:s}=gq(),{setPartStyle:l}=cs(),i=hq(Iq()),d=kt(),f=JSON.stringify([t??null,r??null]);return mq(()=>{let m=n.current,u=ps(o);if(!m||!e||!u)return;let h=[],I=Array.from(m.querySelectorAll(`[${ra}]`));for(let S of I){let P=Ym(u,S.getAttribute(ra));if(!P)continue;let T=tu(S);T&&h.push(T);let B=Us(P),k=jt(e,B);S.setAttribute(Ar,k);let g=t?.[B];if(u[P].sized&&Uv(g)){let b=jv(g,i,{sizeCap:ia(r,B),fonts:d}),E={fontFamily:S.style.fontFamily,fontSize:S.style.fontSize},A=S.getAttribute(sa);b.fontFamily&&(S.style.fontFamily=b.fontFamily),b.fontSize&&(S.style.fontSize=b.fontSize);let N={fontFamily:b.fontFamily?S.style.fontFamily:void 0,fontSize:b.fontSize?S.style.fontSize:void 0},w=g?.textStyle;Tv(w)&&S.setAttribute(sa,w),h.push(()=>{qv(S.style,E,N),A===null?S.removeAttribute(sa):S.setAttribute(sa,A)})}if(k===s){let b=nu(S,Kv(g,u[P],i,d),d);l({partId:k,...vg(S),base:b})}}return()=>{for(let S of h)S();for(let S of I)S.removeAttribute(Ar)}},[e,o,s,l,i,f,d]),uq("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as Pg,Fragment as kR}from"react/jsx-runtime";import{createContext as yq,useContext as vR,useMemo as Sq}from"react";var Tg=yq(null),PR=e=>e==null||e===""?void 0:String(e);function Og({content:e,children:o}){let t=Sq(()=>th(e),[e]);return Pg(Tg.Provider,{value:t,children:o})}function sTe({id:e,children:o}){let t=vR(Tg),r=PR(e);return Pg(kR,{children:o(r?t?.entries.get(r):void 0)})}function lTe({id:e,children:o}){let t=vR(Tg),r=PR(e);return Pg(kR,{children:o(r?t?.numbers.get(r):void 0)})}var kq={SectionTextParts:CR},vq="color-mix(in oklab, var(--bg) 40%, #ffffff)",Pq="12vh";function Tq({style:e,children:o}){let{appState:t}=Eg(u=>u),r=t.data.content,a=t.data.root;if(PP(r))return jo("div",{className:"sf-themed-content",style:{...e,background:vq,minHeight:"100vh",paddingBottom:Pq},children:jo("div",{style:{background:"var(--bg)"},children:jo(Og,{content:r,children:o})})});let n=Ox(r)&&OP(a,r),s=Ox(r)?EP(a,r):null,l=s?{[TP]:s}:null,i=MC(a?.widthChoice),d=i?{[NC]:i}:null,f=n?null:HL(r),m=f?{[ML]:f}:null;return jo("div",{className:`sf-themed-content${n?` ${CP}`:""}`,style:e,...m,...l,...d,children:jo("div",{style:{background:"var(--bg)",minHeight:"100%"},children:jo(Og,{content:r,children:o})})})}function RTe({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:f,children:m}){GL();let u=Eg(I=>I.appState.data.root?.props),h=Eg(I=>eT(I.appState.data.content));return jo(_g,{siteFooterRootProps:u?.kind===rP?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=>TR(bq,{children:[jo(Tq,{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}=BL(),h=Cq(()=>oT(u,f),[u,f]),{theme:I,fonts:S,sizes:P,cornerRadiusPx:T,cardShadow:B,shadowColor:k,cardGap:g,hoverEffect:b,headingCompression:E,siteWidth:A,siteGutter:N,siteGutterPhone:w,blockGap:_,blockGapPhone:y,siteLengthUnits:v,headingTypography:O,heroBackgroundFollowsWidth:C,photographyGrayscale:L,textStyles:M,wordStyles:K,themeFromDocument:W}=vo(),se=kt(),le=W?e:I,ee=W?o:S,Ie=W?void 0:P,ae=W?r===void 0?Yw[Vw(t)]:Xw(r):T,me=W?{}:v,ge=W?a:E,Ge=W?n:O,Ve=[KT(GT(W?void 0:M),se),qT(rC(Ge).italicStrong)].filter(Boolean).join(`
336
+ `),Eo=yg(),Ye={...Mw(le),...qw(Ie),...aC(Ge),...Eo.style,...l?{}:Af(s)};return TR("div",{className:`sf-theme-surfaces sf-theme-accent ${[FC(W?void 0:w),iP(W?void 0:y)].filter(Boolean).join(" ")}`.trim(),style:{...kb(ee,se),...Tb(W?null:K,se),...Hw(le),...$w(le),...zw(le),...Dd(le),...Jw(ae,me.cornerRadiusUnit),...oC(W?void 0:B,W?void 0:k,W?void 0:b),...xC(W?void 0:A,me.siteWidthUnit),...EC(W?void 0:N,me.siteGutterUnit),...AC(W?void 0:w,me.siteGutterPhoneUnit),...sP(W?void 0:_,me.blockGapUnit),...lP(W?void 0:y,me.blockGapPhoneUnit),...Wd(W?void 0:C)},"data-sf-headings":tC(ge),[bC]:Hd(d??h),[of]:Ak(d??h),"data-sf-card-shadow":W?void 0:Zw(B),"data-sf-card-gap":W?void 0:Qw(g),"data-sf-card-hover":W?void 0:eC(b),onClickCapture:i,children:[Ve?jo("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:Ve}}):null,jo(RL,{grayscale:W?void 0:L,children:jo(ZL,{value:kq,children:jo(NL,{ink:Nw(le),children:jo(wq,{fallback:null,children:jo(Q0,{rootProps:d??h,children:m(Ye)})})})})})]})}var OR=e=>{e.target?.closest?.("a")&&e.preventDefault()};var Oq=/(-?(?:\d+\.?\d*|\.\d+))(?:s|d|l)?vh\b/g;function Eq(e,o){return e.replace(Oq,(t,r)=>`${+(Number(r)*o/100).toFixed(3)}px`)}function _R(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=Eq(a,o);n!==a&&e.setProperty(r,n,e.getPropertyPriority(r))}}function AR(e,o){for(let t of Array.from(e)){let r=t.style;r&&_R(r,o);let a=t.cssRules;a&&AR(a,o)}}function ER(e,o){for(let t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch{continue}AR(r,o)}for(let t of Array.from(e.querySelectorAll('[style*="vh"]')))_R(t.style,o)}function FR(e,o){ER(e,o);let t=e.defaultView,r=0,a=()=>{r||!t||(r=t.requestAnimationFrame(()=>{r=0,ER(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 Dq=1440,Fg=800;function LR({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=xl(),[s,l]=Ag(null),[i,d]=Ag(Fg),[f,m]=Ag(null);return _q(()=>{if(!s)return;let u=FR(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]),BR("div",{className:"sf-starter",children:[BR(Bq,{padding:"none",className:"sf-starter-picture",children:[Ot("div",{inert:!0,className:"sf-starter-frame",children:Ot(Lq,{width:Dq,height:i,children:Ot(Aq,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:Ot(Jf,{document:s??void 0,children:Ot(_g,{onClickCapture:OR,body:u=>Ot("div",{className:"sf-themed-content",style:u,children:Ot("div",{ref:m,style:{background:"var(--bg)"},children:Ot(AL,{config:o,data:e.layout,metadata:t})})})})})})})}),Ot("div",{className:"sf-starter-add",children:Ot(Fq,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Ot(Rq,{size:"sm",children:e.title})]})}import{useMemo as ZJ}from"react";import{sessionRegistry as QJ}from"efficient-easel/screen/lib/session";import{useEaselSession as eZ}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as Nq}from"efficient-easel/screen/lib/session";var Mq={general:!0,commerce:!0,service:!0};function Bg(e){let o=e?.sets;return o?Object.fromEntries(fb.map(t=>[t,o.includes(t)])):Mq}function Lg(e=Nq()){return Bg(e.blocks)}import{currentEaselSession as qR}from"efficient-easel/screen/lib/session";import{SITE_SIDE as NR}from"efficient-easel/screen/lib/content/length-units";var RR=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],e0e={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:ow,separator:tw,scrollDirection:mi}};var DR=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],r0e={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 MR(e,o,t){return go(q,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var su={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:NR,sectionPaddingRight:NR,content:[go("Text",e,o,ar()),go("Text",e,o,br()),go("Text",e,o),go("Stats",e,o)]}),MR(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)]}),MR(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)=>HR("Scrolling Bar",rc,xa,RR.map(t=>({text:t.text,style:ac,muted:!0})),e,o),SpecStrip:(e,o,t)=>HR("Spec Strip",t?.theme?{...wl,sectionAccent:Rd(sr(t.theme))}:{...wl,sectionBorder:{top:1}},ha,DR().map(r=>({text:r.text??"",style:Cl,muted:r.tone==="muted"})),e,o)};function HR(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 WR(e){return z(su,e)??null}import{isNodeList as Rg}from"efficient-easel/data";var O0e=Object.keys(mg),Hq={Logos:aF,DocMasthead:tB,DocTabs:pB,Timeline:AF,TimelineTrack:FF},Wq={PaymentBadges:nF,PaymentLogosBlock:sF,Integrations:dL};function lu(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=>lu(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var $R=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function gi(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Ea({type:e,props:{...a(e),...r(),id:n(e)}},o,$R(s));return lu(l[t],a,n)}}var $q={Stats:Uq,Cards:zq};function zq(){let e=Hr("Cards");if(!e)return null;let o=gi("Cards",e,0,AA);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Uq(){let e=Hr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Ea({type:"StatsParagraph",props:{...o("StatsParagraph"),...zA(),id:t("StatsParagraph")}},e,$R(r)),n=a[0],s=Rg(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=UR(LI(UA(),"table")),i=s.map(zR),d=lu({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function zR(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(zR)}}:e}var UR=e=>Mt([e],(o,t)=>`${o}-seed-${t}`)[0];function jq(e,o){if(!R1(e,o))return null;let t=z($q,e);if(t)return t();let r=Hr(e);return r?gi(e,r,0,z(Hq,e)??z(kL,e)??z(Wq,e)):null}function Gq(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=lu(UR(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 us(e,o=Oa){let t=WR(e);return t?Gq(t):jq(e,o)}import{blockTypesIn as jR}from"efficient-easel/screen/lib/document/block-types-in";var GR=()=>({}),KR=new Map;function Kq(e){let o=KR.get(e);if(o)return o;let t=new Set,r=z(dt,e);if(r)for(let s of r.seeds(GR))for(let l of jR({type:r.childType,props:s}))t.add(l);let a=us(e);if(a){let s=0;for(let l of jR(a(GR,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return KR.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)&&Kq(i).every(l);return s.set(i,f),f};return{sets:o,offers:l}}var qq="block-offer";function Ng(e=qR()){return e.cache(qq,()=>Dg(mn(e)))}function VR(e,o=qR()){let t=Ng(o);return t?t.offers(e):!0}var YR={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 Zq,phoneKey as Et,tabletKey as ht}from"efficient-easel/draw";import{jsx as Vq}from"react/jsx-runtime";import{phoneKey as iu}from"efficient-easel/draw";var XR={name:"sectionGroupAllow",applies:e=>gf.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},Mg=new Set(Object.keys(Ct)),JR={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 Yq=Array.from(new Set([...QR,...pd,"GalleryItem"])),Xq={not:{context:"parentOffersPositions",is:!1}},Jq={not:{context:"parentTileSlot",is:!1}},ZR=[px,iu("gridSpan"),iu("gridRowSpan")],eD={name:"cellWidth",applies:(e,o,t)=>(Yq.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=>!ZR.includes(n)),Xq),e.fields=Do(e.fields??{},ZR,Jq)},draw(e){let o=e.render;e.render=t=>{let r=VC(t.gridSpan),a=XC(t.gridRowSpan),n=ZC(t[px]),s=ek(t[iu("gridSpan")]),l=ok(t[iu("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[JC]=String(a)),s!=null&&(d[tk]=String(s)),l!=null&&(d[rk]=String(l));let f=n!=null?{[QC]:n}:void 0;return Vq(fe,{className:"sf-grid-cell",style:f,...d,children:i})}}};function oD(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 yi={not:{context:"heldByANode",is:!0}};function du(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 rn(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var Qq=new Set(["Text","Heading"]),eV=new Set(["h1","h2","h3","h4","h5","h6"]);function tD(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&eV.has(o.tag)?!0:Fr(o,"text").textStyle?.startsWith("heading-")===!0}var qr={not:{context:"blockOutsideBox",is:!0}},rD={all:[qr,{not:{context:"boxSharesWidth",is:!0}}]},aD={all:[qr,{not:{context:"boxSharesWidthPhone",is:!0}}]},nD={all:[qr,{not:{context:"boxSharesWidthTablet",is:!0}}]};function dD(e,o,t){return{any:[{field:ht(e),is:o},{all:[{field:ht(e),set:!1},t??{field:e,is:o}]}]}}function fD(e,o,t){return{any:[{field:Et(e),is:o},{all:[{field:Et(e),set:!1},t??{field:e,is:o}]}]}}var cD={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},oV=[[["_gBlockSize","minWidth",ht("minWidth"),Et("minWidth"),"maxWidth",ht("maxWidth"),Et("maxWidth")],qr],[["widthFit"],rD],[[ht("widthFit")],nD],[[Et("widthFit")],aD],[["width"],{all:[rD,{field:"widthFit",is:"fixed"}]}],[[ht("width")],{all:[nD,dD("widthFit","fixed")]}],[[Et("width")],{all:[aD,fD("widthFit","fixed")]}]],sD=dD("textFit","shrink",cD),lD=[[["_gText","textFit",ht("textFit"),Et("textFit")],qr],[["minFont"],{all:[qr,cD]}],[[ht("minFont")],{all:[qr,sD]}],[[Et("minFont")],{all:[qr,fD("textFit","shrink",sD)]}]],fu=(e,o)=>Xt(o.appState,e.props?.id),cu=e=>!!e&&typeof e.type=="string"&&ud(e.type)!==null,Wg=e=>(e.type==="Flex"||e.type==="HeroGroup")&&On(e.type,e.props?.direction)==="row",$g=e=>{let o=Zq(e);return o!==void 0&&o!=="fit"},tV={blockOutsideBox:(e,o)=>!cu(fu(e,o)),boxSharesWidth:(e,o)=>{let t=fu(e,o);return!cu(t)||!Wg(t)?!1:Um({...t.props,direction:"row"})!==""?!0:zm(t.props?.share)!==""&&!$g(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=fu(e,o);if(!cu(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=fu(e,o);if(!cu(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)}},rV=e=>/^_[gds][A-Z]/.test(e);function aV(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&&!rV(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function iD(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function nV(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return iD(o,r.indexOf("_dSize")+1,n)}return sV.has(e)&&r.includes("_gSpacing")?iD(o,r.indexOf("_gSpacing"),t):{...o,...t}}var sV=new Set(["Text","Heading"]);function lV(e,o){let{_gText:t,...r}=o;return aV(e,"_gText",r)??{...e,...o}}function iV(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 pD={name:"blockSize",applies:(e,o,t)=>Hg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=Qq.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=nV(o,e.fields??{},tt(n,oV));if(r){let l=tt(a,lD);if(s=lV(s,l),o==="Text"){let i=tt(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,lD),d=iV(i),f=e.resolveFields,m=(u,h)=>{let I=f?f(u,h):h.fields,S=P=>tD(o,u?.props??{})?d(P??h.fields):P;return I instanceof Promise?I.then(S):S(I)};e.resolveFields=m}}e.fields=s,Ht(e,{...tV,textWrapsByDefault:l=>!tD(o,l.props??{})})},draw(e,o){dV(e,o)}};function dV(e,o){let t=e.render;e.render=r=>{let a=fp(r),n=uI(a),s=t(r),l=n&&uI(a,{atSectionLine:!0});return n===null?s:zg(fV,{size:n,sectionSize:l??n,atEdge:o===q,canvasAttrs:r.editor?.isEditing?X1(a):uD,inCell:Y1(a),fillsPhone:K1(a),widens:J1(a),children:s})}}var uD={};function fV({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=nf(),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(SE,{children:l}):l;return zg(_r,{className:[m,u?a:"",h?G1:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==uD?{...f.attrs,...r}:f.attrs,children:I})}import{Fragment as wV,jsx as xu}from"react/jsx-runtime";import{jsx as To,Fragment as Kg}from"react/jsx-runtime";import{createContext as ms,useContext as _t}from"react";var cV=new Set(["Flex","Grid"]);function Vr(e){return typeof e=="string"&&cV.has(e)}var Ha="contentWidth",Ug="full",jg="content";function bi(e){let o=e?.[Ha];return o===Ug?!1:o===jg?!0:void 0}function mD(e,o){return e&&!o}function pu(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!Zk(e)&&!cF(e.scrollDirection)}function Si(e,o){return Vr(e)&&pu(nl(o,!1))?In({}):In(o)}function uu(e,o){return typeof e!="string"||!$d(e)||Vs[e]==="rawMarkup"?Si(e,o).background??"full":Si(e,o).background??zd(o).background}function mu(e){return e!=="full"}function xD(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?Si(d?.type,f).content:null)==="content"?!0:s,h=m&&(n.inBox?bi(f)??u:u),I={insideGutter:n.insideGutter||h||m&&pu(nl(f,i)),inBox:n.inBox||m};for(let S of Nt({type:d?.type,props:f})){let P=f[S],T=r(P,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 pV=" [--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))))]",uV="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",mV="[--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)))]",hD="max-w-[100vw]",xV=`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))] ${hD}`;function ID(e,o=!1){let t={},r=e.pad??{},a=Tk({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=kr(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${pV}`:`${uV}${l?` ${s.className}`:""}`,d=o?` ${vC}${e.gutter?` ${PC}`:""}`:"";return{className:`${i} ${mV}${d}`,style:t}}function kOe(e,o=!1){let{className:t,style:r}=ID(e,o);return{className:`${t} ${xV}`,...Object.keys(r).length?{style:r}:{}}}var hV="[--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 IV="--sf-edge-beyond";function gD(e){return`max(0px,calc((${e===null?qs:`min(${qs},${e})`} - ${No}) / 2))`}var gV=`${hV} 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))] ${hD}`;function vOe(e){let{className:o,style:t}=ID(e);return{className:`${o} ${gV}`,style:{...t,[IV]:e.beyond??"0px"}}}var wi=ms(!1);function DOe(){return _t(wi)}function NOe({children:e}){return To(wi.Provider,{value:!0,children:e})}var Gg=ms(!1);function qg({children:e}){return To(Gg.Provider,{value:!0,children:e})}var yD=ms(null);function Vg({ground:e,children:o}){return To(yD.Provider,{value:e,children:o})}var Yg=ms(!1);function yV(){return _t(Yg)}function SD({atTop:e,nested:o}){return To(Kg,{children:yV()?o:e})}var Ci=ms(void 0);function bD({children:e}){return To(Ci.Provider,{value:null,children:e})}function Xg(){return _t(Ci)===void 0&&!_t(Yg)&&!_t(wi)}function Wa({own:e,followed:o}){return To(Kg,{children:Xg()?e():o()})}var wD=ms(null);function CD({value:e,children:o}){return To(wD.Provider,{value:e,children:o})}function kD({draw:e}){return To(Kg,{children:e(_t(wD))})}function MOe(){return _t(Ci)??null}function vD({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:P}){let T=_t(wi),B=Pt(),k=B?` ${kr(I?"site":"box").onceFrame}`:"",g=_t(Gg),b=mD(e,T),E=b&&!g,A=nt(),N=!!(l&&E),w=N?u:ko(u??"",A.className)||void 0,_=N||!A.className?i:{...i,...A.attrs},y=s?na(s,E):null,v=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=v?.root??null,C=l&&!E?l:null,L=d&&!h?B?`${sx} ${CC(I?"site":"box")}`:sx:null,M=[E?`${o}${k}`:t,E?L:null,O?.className,C?wk:null].filter(Boolean).join(" "),K=SV(h&&E,O||C?{...a,...O?.style,...C}:a),W=_t(Ci),se=_t(yD),le=d&&f&&W===void 0?{gutter:b,...s?{pad:s.values}:{},beyond:b&&g?gD(se):"0px",...I&&b?{site:!0}:{}}:null,ee=d?To(Yg.Provider,{value:!0,children:To(Ci.Provider,{value:le,children:P})}):P,Ie=b?To(wi.Provider,{value:!0,children:ee}):ee,ae=v?.outer??null,me=_&&Object.keys(_).length>0?_:null,ge=To("div",{...ae?null:me,className:!ae&&w?M?`${M} ${w}`:w:M,style:ae||!m?K:{...K,...m},"data-tab-label":n,...ae?null:S,children:g?To(Gg.Provider,{value:!1,children:b&&!h?To("div",{className:L?`${r}${k} ${L}`:`${r}${k}`,children:Ie}):Ie}):Ie}),Ge=ae?To("div",{...me,className:w?`${ae.className} ${w}`:ae.className,style:m?{...ae.style,...m}:ae.style,...S,children:ge}):ge;return A.scope(l&&E?To("div",{className:ko(Jd,A.className),style:{display:"contents",...l},...A.attrs,children:Ge}):Ge)}function SV(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as bV}from"react/jsx-runtime";function PD({children:e}){return bV(fe,{className:uF,children:e})}function CV({side:e,children:o}){return Xg()?xu(PD,{children:xu(fe,{className:mF(e),children:o})}):xu(wV,{children:o})}var TD={name:"boxJoin",applies:(e,o,t)=>e===q&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=Dp(t.join);return r?xu(CV,{side:r,children:o(t)}):o(t)}}};var OD=(e,o)=>e.fields?.[o]?.type==="slot",kV=(e,o)=>OD(o,Te)||Ad(e).some(t=>OD(o,t)),ED={name:"cardTemplateOnInsert",applies:(e,o,t)=>kV(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?Td(o,n):s==="copy"?Pd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as vi}from"react/jsx-runtime";import{Fragment as $a,jsx as $e,jsxs as Jg}from"react/jsx-runtime";import{createContext as Zg,useContext as Yr,useId as _V}from"react";import{REPEAT_ATTRIBUTE as AV,REPEAT_INDEX_ATTRIBUTE as FV}from"efficient-easel/draw";import{jsx as rEe}from"react/jsx-runtime";import{createContext as TV,useContext as BD,useMemo as OV}from"react";var _D="title";function AD(e){return`${e}Alt`}function vV(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function FD(e,o){let t={[_D]: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}=vV(n);t[r]=s,t[AD(r)]=l}}return t}function PV(e,o){return typeof o!="string"?o.flatMap(t=>PV(e,t)):e===vf||!_P(e)?[]:o==="image"?Ex(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:AD(t.key)})):o!=="text"?[]:[{key:_D,label:c("Title")},...Ex(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var LD=TV(null);function EV(){return BD(LD)?.record??null}function lEe(e){let o=EV();return o!==null&&o.type===e?o:null}function RD(){let e=BD(LD);return OV(()=>e&&e.record.type!==vf?FD(e.record,e.dateWords):null,[e])}function SEe({props:e,editing:o,children:t}){let r=Yr(ki);return!o&&Qm(e,r?.row)?null:$e($a,{children:t})}var Iu=Zg(null);function bEe({field:e,children:o}){let t=Yr(Iu);return $e($a,{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({[tn]:r},o)))?.field??""}var ki=Zg(null),hu=Zg(null),LV={label:"text-[length:var(--size-label,12px)]"},RV=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${LV.label} text-fg-dim`;function wEe({name:e,label:o,editing:t}){let r=Yr(hu)?.(e),a=rf()!=="";return r!=null&&r!==!1?a?$e(fe,{className:"contents",children:r}):$e($a,{children:r}):t?$e(fe,{className:RV,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function CEe(){return Yr(ki)}function Qg({type:e,props:o,children:t}){let r=Yr(ki),a=RD(),n=r?.row??a;return $e($a,{children:t(Aw(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function DV({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=_V(),{press:l,disabled:i}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return Jg("div",{...e,id:s,className:t&&!i?`${wh} ${AE}`:wh,children:[$e("button",{type:"button",[LE]:"",className:i?NE:DE,"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(Iu.Provider,{value:f,children:n})]})}function kEe({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:P,children:T}){let B=Yr(ki),k=Yr(Iu),g=Yr(hu);if(!r||(r.blockCount??0)<=0)return $e($a,{children:u});let b=B!==null,E=vw(o),A=m??B?.previewHover,N=r.blockCount===1?$e(qk,{children:$e(r,{className:Mk})}):$e(r,{}),w=new Set,_=(v,O)=>{if(!S)return O;let C=S(v,O);for(;w.has(C);)C=`${C}#${O}`;return w.add(C),C},y=a.map((v,O)=>{let C=l?.[O],L={row:v,index:O,ownerType:o,slot:t,item:n?.[O],nested:b,...s?{fields:s}:null,...C?{state:C}:null,...E?{linesBetween:E}:null,...A?{previewHover:A}:null},M=qh(C)?Jg($a,{children:[N,i==="under"?$e("span",{"aria-hidden":"true",className:TE}):Kh(C)?Jg("span",{"aria-hidden":"true",className:OE,children:[$e("span",{className:EE}),$e("span",{className:_E})]}):$e("span",{"aria-hidden":"true",className:PE})]}):N,K={[AV]:`${e}:${t}`,[FV]:O,...typeof h=="function"?h(L):h},W=d?.[O],se=FE(C,i),le=W?$e(DV,{attrs:{...K,...se},selected:C?.selected===!0,hover:i!=="under",action:W,titleField:BV(f,v),children:M}):k?$e("div",{...K,...se,children:$e(Iu.Provider,{value:null,children:M})}):$e("div",{...K,...se,children:M}),ee=I?I(le,L):le;return $e(ki.Provider,{value:L,children:P?$e(hu.Provider,{value:Ie=>P(L,Ie),children:ee}):g?$e(hu.Provider,{value:null,children:ee}):ee},_(L,O))});return $e($a,{children:T(y)})}var DD={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==io&&e!==un,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.partSizeCaps,s=r.render,l=t.inspector?.PartAnchors,i=(d,f)=>yv(a(),f,m=>Ew(o,d,m));r.render=d=>{let f=Fv(d),m=jO(d);return d.editor?.isEditing&&l?vi(Qg,{type:o,props:d,children:u=>vi(l,{needles:i(d,u),styles:f,motions:m,type:o,sizeCaps:n,children:vi(eR,{value:n,children:s(d)})})}):!Object.keys(f).length&&!Object.keys(m).length?s(d):vi(Qg,{type:o,props:d,children:u=>vi(JO,{needles:i(d,u),styles:f,motions:m,type:o,atEdge:o===q,sizeCaps:n,children:s(d)})})}}};import{jsx as ND}from"react/jsx-runtime";var MD={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=bk(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?ND(fe,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},ey=["CollectionCard"],HD={name:"cardCorners",applies:(e,o,t)=>ey.includes(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.cardShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=qP(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?ND(fe,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var WD={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 $D={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 zD,jsxs as NV}from"react/jsx-runtime";var MV="Flex",UD=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,jD={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>UD(t,zl)?zD(fe,{className:Wc,children:t[zl]==="empty"?null:o(t)}):o(t)}},GD={name:"headBox",applies:(e,o,t)=>e===MV&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>UD(t,$l)?NV(fe,{className:$c,children:[zD(zc,{}),o(t)]}):o(t)}};import{createElement as HV}from"react";var KD={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=dl(n),l=Gk(s,eP(n),{sectionClassName:dl(n,{atSectionLine:!0}),line:r});return HV(zk.Provider,{value:l},a(n))}}};import{jsx as UV}from"react/jsx-runtime";import{createContext as VD,createElement as qD,useContext as WV}from"react";var YD=VD(null),$V=VD(!1),QEe=YD.Provider;function zV(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function XD({name:e,editing:o,children:t}){let r=WV(YD);return o||zV(e,r?.selected??null,r?.known??[])?t:qD("div",{hidden:!0,style:{display:"none"}},qD($V.Provider,{value:!0},t))}var jV="Flex",JD={name:"showFor",applies:(e,o,t)=>e===jV&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=o_(t[qn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return UV(XD,{name:r,editing:a,children:o(t)})}}};var ZD=Tf.mediaFields,GV=e=>HP(e)?e.src:e;function KV(e,o){let t=o;for(let r of z(ZD,e)??[])t=WP(t,r,GV);return t}var QD={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&(z(ZD,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(KV(o,r))}};import{jsx as Pi,Fragment as eN,jsxs as oN}from"react/jsx-runtime";var qV="!grow-0 !shrink-0 !basis-0",VV=["[.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(" "),YV="flex flex-col w-full min-w-0 [&>*]:grow";function tN({anchor:e}){let o=fa(e),t=Er(),r=rf();return o?Pi("span",{id:o,className:ko(t?`sf-section-anchor ${qV} ${VV}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function XV({anchor:e,copiesInBox:o,children:t}){let r=nf()?.columnsRow===!0,a=Kk(),n=fa(e)!=="";return o?Pi(eN,{children:t}):r&&!a&&n?oN(fe,{className:YV,children:[Pi(tN,{anchor:e}),t]}):oN(eN,{children:[Pi(tN,{anchor:e}),t]})}var rN={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=>Pi(XV,{anchor:r.anchor,copiesInBox:Zo(o,r),children:t(r)})}};import{jsx as JV}from"react/jsx-runtime";var aN=Object.fromEntries(Gb.map(e=>[e,"picture"])),ZV={[q]:"box",Ticker:"marquee",...Object.fromEntries(Id.map(e=>[e,"cards"])),...aN},nN=(e,o)=>!qd.has(e)&&!!o&&typeof o.render=="function";function sN(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function lN(e,o){let t=e,r=t.render;t.render=a=>{let n=bn(a);return!n||Zo(o,a)?r(a):JV(Tc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===q,children:r(a)})}}var iN={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&nN(e,t),panel:(e,o,t)=>sN(e,z(ZV,o)??"section",t,o),draw:(e,o)=>lN(e,o)},dN={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&nN(e,t),panel:(e,o,t)=>sN(e,z(aN,o)??"block",t,o),draw:(e,o)=>lN(e,o)};import{jsx as QV}from"react/jsx-runtime";var fN=(e,o)=>!qd.has(e)&&!!o&&typeof o.render=="function";function e9(e){let o=Oh.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function cN(e,o){let t=e,r=t.render,a=e9(o),n=e.drawsPictures===!0;t.render=s=>{let l=Un(s);return!l||Zo(o,s)?r(s):QV(Yc,{views:l,...a?{origins:zO(s,a)}:{},takesViewHide:!0,atEdge:o===q,zoomInside:n?"picture":"layer",children:r(s)})}}var pN={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&fN(e,t),draw:(e,o)=>cN(e,o)},uN={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&fN(e,t),draw:(e,o)=>cN(e,o)};import{jsx as o9}from"react/jsx-runtime";import{createElement as t9}from"react";var oy=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function r9(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)&&!Nk.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=>r9(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(Zo(o,r))return t(r);let a=$k(r);return a?o9(_r,{className:a.className,style:a.style,...o===q?{attrs:Qb}:null,children:t(r)}):t(r)}}},mN={name:"sectionHeightFillRoot",applies:ty.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Zo(o,r)?null:jk(Wk(r),Hk(r).join(" "));return t9(Uk.Provider,{value:a},t(r))}}};import{jsx as xs}from"react/jsx-runtime";import{PIN_ATTR as xN,PIN_CENTRE_ATTR as a9,PIN_FRAME_ATTR as n9}from"efficient-shell/format";var IN=yN("sectionSticky",(e,o,t)=>o.isSection(e)&&!gk.has(e)&&!!t&&typeof t.render=="function",!0),gN=yN("cardSticky",(e,o,t)=>ey.includes(e)&&!!t&&typeof t.render=="function",!1);function yN(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=mx.has(a);r.fields=l9(r.fields??{},tt(n.stickFields({intro:s,screens:t,above:t,center:t}),i9(s))),t&&Ht(r,{heldByANode:du})},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!t||s||!hk(l)?n(l):xs(Wa,{own:()=>xs(fe,{[a9]:"",children:n(l)}),followed:()=>n(l)});let d=m=>{let u=xs(lf,{children:n(l)});return xs(fe,{...m.attrs,style:m.style,children:m.attrs[xN]===""?xs("div",{[n9]:"",children:u}):u})},f=t?xx(l,{atScreenTop:s,track:t,above:!0}):i;return!f||f.attrs[xN]!==""?d(i):xs(Wa,{own:()=>d(f),followed:()=>d(i)})}}}}var hN=[bt,is],s9="_gStick";function l9(e,o){let t=Object.keys(e),r=e[zn];if(!r){let T=t.findIndex(B=>hN.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{[s9]:a,...n}=o,s=T=>T.startsWith(wn),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(zn),m=t.findIndex((T,B)=>B>f&&hN.includes(T)),u=m<0?t.length:m,h=t.indexOf(Oc),I=h>f&&h<u?h:u,S=T=>[T,T===zn?{...r,dot:{any:d}}:e[T]],P=[...t.slice(0,I).map(S),...l,...t.slice(I,u).map(S),...i,...t.slice(u).map(S)];return Object.fromEntries(P)}function i9(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},yk]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,yi,{not:{field:el,is:!0}}]}),[n,s,l]=pk;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))],[[Xd],ol],[[el],ol],[[mk],a(ol)],[[xk],{not:ol}]]}import{jsx as d9}from"react/jsx-runtime";var SN={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(wc.has(o))return;let t=e.render;e.render=r=>{let a=vk(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,kk(r)),n=t(r);return a?d9(fe,{className:Jd,style:{display:"contents",...a},children:n}):n}}};import{jsx as ry}from"react/jsx-runtime";var bN={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(Nd,a):r()}},draw(e,o){let t=ax.has(o),r=e.render;e.render=a=>{let n=pC(t?{...a,sectionAccent:Nd(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 Zo(o,a)?ry("div",{className:n.className,style:{...i,display:"contents"},children:s}):uu(o,a)!=="content"?l(i):ry(Wa,{own:()=>l({...i,...Ks(No)}),followed:()=>l(i)})}}},wN={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(Nd,a)})}};import{jsx as qe}from"react/jsx-runtime";var CN=null;function ay(e){CN=e}function kN(){return CN}import{jsx as f9}from"react/jsx-runtime";var c9="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",vN=kr("box").frame,Ti=`${c9} ${vN}`,p9=kr("site").frame,u9=kr("none").frame;function I1e(e){let o=e===!0?"site":e===!1?"box":e;return o==="none"?u9:o==="site"?p9:vN}var m9="mx-auto w-full max-w-[1280px] px-[60px]",x9="max-[960px]:px-6",g1e=`${m9} ${x9}`;function y1e({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return f9(vD,{contained:e,framedClass:`${Ti} ${o}`,fillClass:`${a} ${o}`,columnClass:Ti,style:t,pad:r,part:n,children:s})}var hs="--sf-sw-site",h9="--sf-sw-content",I9="--sf-bg-cap",g9="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",TN="contents view-wide:[--sf-site-width:100vw]",sy=({held:e},o,t)=>e?t:qe(fe,{className:o,children:t}),y9=`contents view-wide:[--sf-site-width:100vw] ${_B} view-wide:[--sf-site-gutter:var(--intro-edge)]`,ly=(e,o,t)=>o==="content"?`min(${xn(e,t)},var(${hs}))`:xn(e,t);function Oi({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?qs:null:o===null?null:ly(o,r,t)}function Ei(e,o){return o===null?e:qe(fe,{className:"contents",style:{[hs]:No},children:qe(fe,{className:g9,style:{[h9]:o},children:e})})}var S9="--sf-content-cap",b9="contents max-view-wide:[--sf-content-cap:none]";function w9({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?ly(o,r,t):r==="content"?null:`var(${hs})`}function C9(e,o){return o===null?e:qe(fe,{className:"contents",style:{[hs]:No},children:qe(fe,{className:b9,style:{[S9]:o},children:e})})}var ON=`var(${hs},${No})`,Xr=(e,o,t="")=>e==="content"?qe(fe,{className:t||void 0,style:Ks(No),children:qe(Vg,{ground:ON,children:o})}):o;function EN(e,o,t,r,a){if(ny(t))return Xr(r,sy(t,TN,qe(qg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return Xr(r,e({...o,contained:!1}),a);let n=Oi(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):Xr(r,Ei(qe(qg,{children:e({...o,contained:!0})}),n),a)}function k9(e,o,t,r,a){if(t==="hero"){let l=Ei(e(o),Oi(r,r.band));return r.band==="full"?qe(fe,{style:{[LC]:"none",[RC]:"initial",[DC]:"initial"},children:l}):r.band==="content"?qe(fe,{style:Wd(!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:{[hs]:No},children:Xr(n,qe(fe,{className:s||void 0,style:Ks(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=ny(r)?sy(r,y9,e({...o,fullWidth:!1})):Ei(e({...o,fullWidth:l}),l?null:Oi(r,n));return n==="content"?qe(fe,{className:"contents",style:{[I9]:No},children:i}):i}switch(t){case"both":return Xr(n,C9(e(o),w9(r,n)),s);case"contained":return EN(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,TN,e({...o,widthMode:i})):Ei(e({...o,widthMode:i}),r.content==="full"?null:Oi(r,n));return t==="productGrid"&&!r.own?n==="content"?qe(oc,{className:s?`${Ti} ${s}`:Ti,children:f=>qe(fe,{className:f,children:d})}):d:Xr(n,d,s)}default:return Xr(n,Ei(e(o),Oi(r,n)),s)}}function PN(e,o,t,r,a){let n=a===q?"edge":"by-box",s=l=>k9(e,o,t,r,l);return n==="edge"?s(!0):Tr(o)===Tr(o,{atSectionLine:!0})?s(!1):qe(af,{line:n,draw:s})}function v9(e,o){let t=z(Vs,o);if(!t)return;let r=e.render;e.render=a=>{let n=zd(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):qe(kD,{draw:I=>I?.background==="content"?qe(Vg,{ground:ON,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,P=PN(r,a,t,S,o);if(!Vr(o))return P;let T=bi(a),B=T===void 0?S.content:T?"content":"full";return B===S.content?P:qe(SD,{atTop:P,nested:EN(r,a,{...S,content:B,own:!1},S.band??"full",Tr(a))})},d=Si(o,a);if(!WC(d))return l();let f=t==="rawMarkup",m=uu(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(Wa,{own:()=>qe(CD,{value:{background:h.band,content:h.content},children:PN(r,a,t,h,o)}),followed:l})}}var P9={all:[yi,{not:{context:"runsEdgeToEdge",is:!0}}]},_N={name:"sectionWidth",applies:(e,o,t)=>$d(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:z(Vs,o)==="rawMarkup"}),a=Vr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=Vr(o)?BN(o,e,n,[Ha]):n;Ht(e,{heldByANode:du}),Vr(o)&&Ht(e,{runsEdgeToEdge:(l,i)=>pu(nl(l.props??{},Bw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Do(s,[Ao.background,Ao.content],Vr(o)?P9:yi)},draw(e,o){v9(e,o)}};function T9(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 O9=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),AN={name:"containedWidth",applies:(e,o,t)=>O9.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=BN(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=>T9(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"})}}},E9={not:{context:"inHeroGroupRow",is:!0}},FN={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Do(o.fields??{},["align"],E9),Ht(o,{inHeroGroupRow:(t,r)=>{let a=Xt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&On("HeroGroup",a.props?.direction)==="row"}})}};function _9(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var A9={any:[]},F9={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},B9={not:{context:"widthCappedByParent",is:!0}};function BN(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Do(t,["_gWidth",...r],A9);if(_9(t)){let a=(n,s)=>xD(s.appState?.data?.content,n.props?.id,mu(kN()));return Ht(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Do(t,r,F9)}return Ht(o,{widthCappedByParent:(a,n)=>"parent"in n?xw(n.parent):oD({props:a.props??{}},n)}),Do(t,r,B9)}var L9=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"]),LN={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(L9.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},R9=new Set(["HeroSlide","HeroGroup"]),RN={name:"blockGroups",applies:(e,o,t)=>R9.has(e)||!o.isSection(e)&&Rp 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 D9=new Set(["Flex","Grid"]),DN=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),N9=(e,o)=>e.fields?.[o]?.ownPictures===!0,M9=["blockCount","blockIds"],H9=new WeakMap,W9=new WeakMap;function $9(e,o){let t=o?W9:H9,r=t.get(e);if(r)return r;let a=e,n=s=>iy(bD,{children:iy(lf,{ownPictures:o,children:iy(a,{...s})})});Object.assign(n,e);for(let s of M9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var NN={name:"slotsStartAfresh",applies:(e,o,t)=>!D9.has(e)&&typeof t?.render=="function"&&DN(t).length>0,draw(e){let o=DN(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=$9(s,N9(e,n)))}return t(a)}}};var z9=new Set(["Form","Stats","Logos"]);function MN(){return[...z9]}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"&&!gf.includes(d)),s=new Set([...o,...pd,...MN()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!Ed(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var U9=[NN,QD,jD,XR,JR,gO,MD,SN,HD,bO,dN,uN,eD,_N,AN,FN,ty,J0,rN,bN,iN,pN,IN,gN,TD,wN,pD,LN,RN,$D,WD,DD,GD,JD,mN,KD,YR,ED];function HN(e,o,t){let r=o;for(let a of U9)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 j9,DurationIcon as G9}from"efficient-easel/icons";import{MOTION_TIMING as WN}from"efficient-shell/format";import{useSelectedHost as K9}from"efficient-easel/easel";function Is(e){let{min:o,max:t,step:r,default:a}=WN[e].duration;return Lr("Duration",fy(G9,{}),o,t,r,a,"s")}function gs(e){let{min:o,max:t,step:r,default:a}=WN[e].delay;return Lr("Delay",fy(j9,{}),o,t,r,a,"s")}function ys(e,o){let t=e.render,r=a=>{let n=K9();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>fy(r,{...a})}}function gu({readsSpeed:e}){return ys(Is("loop"),(o,t)=>Lp({loopDuration:o,speed:e?t?.speed:void 0}))}function yu(){return ys(gs("loop"),e=>pF({loopDelay:e}))}import{jsx as co}from"react/jsx-runtime";import{DirectionDownIcon as q9,DirectionIcon as V9,DirectionLeftIcon as Y9,DirectionRightIcon as X9,DirectionUpIcon as J9,EntranceBounceIcon as Z9,EntranceFadeIcon as Q9,EntranceFlipIcon as eY,EntranceGlideIcon as oY,EntranceRevealIcon as tY,EntranceRiseIcon as rY,EntranceScaleIcon as aY,EntranceSpinIcon as nY,NoSymbolIcon as sY}from"efficient-easel/icons";import{NoControlMark as lY,noControlField as iY}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as dY,group as fY}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as cY,ENTRANCE_FROM_DEFAULT as zN,ENTRANCE_KINDS as UN,ENTRANCE_KINDS_WITH_FROM as pY,entranceAttrs as uY,playEntrance as mY,readEntrance as xY}from"efficient-shell/format";var hY={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},IY={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},gY={top:()=>co(q9,{}),bottom:()=>co(J9,{}),left:()=>co(X9,{}),right:()=>co(Y9,{})},jN="Entrance",py=UN.filter(e=>e!=="none"),GN=e=>({any:[{field:Xo.kind,in:e},{all:[{field:Xo.kind,set:!1},{field:Xs,in:e}]}]}),$N=(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?GN(o):{field:t,in:o}),yY={any:[GN(py),...at.slice(1).map(e=>({field:Yo(Xo.kind,e),in:py}))]},SY=at.flatMap(e=>[[[Yo(Xo.from,e)],$N(e,pY)],[[Yo(Xo.duration,e),Yo(Xo.delay,e)],$N(e,py)]]),bY={none:()=>co(sY,{}),fade:()=>co(Q9,{}),rise:()=>co(rY,{}),scale:()=>co(aY,{}),glide:()=>co(oY,{}),bounce:()=>co(Z9,{}),flip:()=>co(eY,{}),reveal:()=>co(tY,{}),spin:()=>co(nY,{})},KN="data-entrance-tile";function wY({kind:e}){let{attrs:o}=uY(xY(e,zN));return co("span",{className:"sf-entrance-stage",[KN]:e,children:co("i",{...o,children:bY[e]()})})}var CY=(e,o)=>{let t=e.querySelector(`[${KN}="${o}"] > i`);t&&mY(t)},kY="Effect",vY=()=>Nf(Xo.kind,{label:jN,tileWord:kY,values:UN,fallback:"none",word:e=>hY[e],picture:e=>co(wY,{kind:e}),read:(e,o)=>Js(e,o).kind,preview:CY}),cy=(e,o)=>ml(Xo[e],o,(t,r)=>Js(t,r)[e]),PY=cY.map(e=>({label:IY[e],value:e,picture:gY[e]()}));function At(){let e={[Rp]:fY(jN,{dot:yY}),...vY(),[Xs]:iY({type:"custom",render:()=>co(lY,{})},"always"),_cEntrance:dY(),...cy("from",En("From",co(V9,{}),PY,zN)),...cy("duration",Is("entrance")),...cy("delay",gs("entrance"))};return tt(e,SY)}import{jsx as Go}from"react/jsx-runtime";import{EntranceRevealIcon as TY,NoSymbolIcon as OY,PercentIcon as qN,ScrollFadeInIcon as EY,ScrollFadeOutIcon as _Y,ScrollMoveDownIcon as AY,ScrollMoveUpIcon as FY,DurationIcon as BY,ScrollExpandIcon as LY,ScrollParallaxIcon as RY,ScrollZoomInIcon as DY,ScrollZoomOutIcon as NY,ZoomInIcon as MY}from"efficient-easel/icons";import{customize as HY,group as WY}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EASES as $Y,SCROLL_EFFECTS as YN,SCROLL_EFFECTS_WITH_ZOOM as zY,SCROLL_END as UY,SCROLL_START as jY,SCROLL_ZOOM as GY}from"efficient-shell/format";var XN="Scroll",JN={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"},KY={linear:"Linear",smooth:"Smooth",arrive:"Ease out"},ZN={none:()=>Go(OY,{}),"zoom-in":()=>Go(DY,{}),"zoom-out":()=>Go(NY,{}),"fade-in":()=>Go(EY,{}),"fade-out":()=>Go(_Y,{}),"move-up":()=>Go(FY,{}),"move-down":()=>Go(AY,{}),reveal:()=>Go(TY,{}),parallax:()=>Go(RY,{}),expand:()=>Go(LY,{})},qY=YN.filter(e=>eo(JN,e)&&eo(ZN,e)),VY="Effect",QN=YN.filter(e=>e!=="none"),VN=(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})),YY={any:at.map(e=>({field:Yo(oo.effect,e),in:QN}))},XY=at.flatMap(e=>[[[Yo(oo.zoom,e)],VN(e,zY)],[[Yo(oo.start,e),Yo(oo.end,e),Yo(oo.ease,e)],VN(e,QN)]]),JY=()=>Nf(oo.effect,{label:XN,tileWord:VY,values:qY,fallback:"none",word:e=>JN[e],picture:e=>ZN[e](),read:(e,o)=>Kt(e,o).effect}),uy=(e,o,t,r,a)=>ml(e,Lr(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Kt(n,s)[o]),ZY=()=>ml(oo.ease,Ef("Speed",Go(BY,{}),$Y.map(e=>({label:KY[e],value:e})),"linear"),(e,o)=>Kt(e,o).ease);function za(){let e={[zn]:WY(XN,{dot:YY}),...JY(),[Oc]:HY(),...uy(oo.zoom,"zoom","Zoom",Go(MY,{}),GY),...uy(oo.start,"start","Start",Go(qN,{}),jY),...uy(oo.end,"end","End",Go(qN,{}),UY),...ZY()};return tt(e,XY)}import{jsx as Fo}from"react/jsx-runtime";import{AccentIcon as QY,ContrastIcon as eX,EyeIcon as oX,ExpandIcon as tX,FinishIcon as rX,ImagesIcon as aX,NoSymbolIcon as oM,HoverLiftIcon as nX,HoverNextImageIcon as sX,HoverRotateIcon as lX,HoverZoomIcon as tM,OpacityIcon as iX}from"efficient-easel/icons";import{customize as dX,describedAs as rM,group as fX}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as aM}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as yo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as cX,noControlField as pX}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Su=e=>yo("desktop",fX("Hover",{dot:e})),nM=()=>yo("desktop",dX()),uX="What this does when a shopper points at it, or taps it on a phone.",mX="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",xX="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.",hX="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.",IX="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",gX="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.",yX="Which of the product's pictures the card shows.",SX="Same finish shows the photos of the finish the card shows, else the first group.",bX="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",wX={none:()=>Fo(oM,{}),nextImage:()=>Fo(sX,{}),rotate:()=>Fo(lX,{}),zoom:()=>Fo(tM,{}),lift:()=>Fo(nX,{}),mono:()=>Fo(eX,{})};function my(e,o){let t=aM({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(Em[r]),picture:wX[r]()})),fallback:o});return rM(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Em[r]}))})}function sM(){return{[bt]:Su({field:ot,in:Bm.filter(e=>e!=="none")}),[ot]:yo("desktop",{...my(Bm,"none"),description:uX})}}function lM(e){let o=Ub(e),t=yd(),r=XP(Lb);return{[bt]:Su({any:[o,t]}),[Ke.kind]:yo("desktop",{...ys(my(Ab,e),(a,n)=>$b(n??{},e)),description:gX}),...xy(t),[Fb]:pX({type:"custom",render:()=>Fo(cX,{})},"always"),_cHover:nM(),[Ke.angle]:yo("desktop",ro(ys(r,a=>zb(a)),o)),[Ke.duration]:yo("desktop",ro(Is("hover"),o)),[Ke.delay]:yo("desktop",ro(gs("hover"),o))}}function xy(e){let o=Ef("Type",Fo(aX,{}),Rb.map(a=>({value:a,label:Db[a]})),gd.kind),t=En("Group",Fo(rX,{}),Nb.map(a=>({value:a,label:Mb[a]})),gd.group),r=En("Covers",Fo(tX,{}),Hb.map(a=>({value:a,label:Wb[a]})),gd.cover);return{[Ke.mediaKind]:yo("desktop",ro({...o,description:yX},e)),[Ke.mediaGroup]:yo("desktop",ro({...t,description:SX},e)),[Ke.cover]:yo("desktop",ro({...r,description:bX},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,mX),...Mm.includes(o)?xy(yd()):{},_cHover:nM(),...t?iM():{},[Ke.duration]:yo("desktop",ro(Is("hover"),a)),[Ke.delay]:yo("desktop",ro(gs("hover"),a))}}function iM(e=!1){let o=a=>e?a:ro(a,Yb()),t=Lr("Zoom",Fo(tM,{}),sn.min,sn.max,sn.step,sn.min,sn.unit),r=Lr("Darken on hover",Fo(iX,{}),kn.min,kn.max,kn.step,kn.fallback,kn.unit);return{[Rm.zoom]:yo("desktop",o(t)),[Rm.darken]:yo("desktop",o(r))}}function Iy(e,o,t){let r=yo("desktop",{...ys(my(e,o),a=>qb({[ot]:a},o,e)),description:t});return Object.assign(r,{[dM]:o})}var dM="sfPictureResting",eM=new WeakMap;function yFe(e,o,t){let r=e[Ke.kind],a=r?.[dM];if(!r||!a)return e;let n=o.props?.[ot]==="nextImage",s=n?null:Bd(t.appState,o.props?.id);if(!n&&!Id.includes(String(s?.type??"")))return e;let l=eM.get(e);return l||(l={...e,[Ke.kind]:Iy(Lm,a,xX)},eM.set(e,l)),l}var CX="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.",kX={none:()=>Fo(oM,{}),[_m]:()=>Fo(QY,{})},SFe=yo("desktop",{...rM(aM({label:c("Hover effect"),options:Am.map(e=>({value:e,label:c(Fm[e]),picture:kX[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Am.map(e=>({value:e,label:Fm[e]}))}),description:CX}),vX=yo("desktop",{...En("Show",Fo(oX,{}),[{value:Nm,label:"Always"},{value:Dm,label:"On card hover"}],Nm),description:IX});function fM(){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]:vX,...xy(yd()),...r,...iM(!0)}}var bFe=Iy(Lm,"none",hX);import{jsx as _i}from"react/jsx-runtime";import{isNodeList as EX}from"efficient-easel/data";import{useEasel as _X}from"efficient-easel/easel";import{hiddenInView as AX,hiddenKeyOf as gy,hidePatch as FX,slotChildName as BX,slotChildRowName as LX}from"efficient-easel/draw";var PX=new Set(["BookingBox","SubmitBox"]);function TX(e){return typeof e=="string"&&PX.has(e)}var OX=aT(TX,HT);function bu(e,o){return OX(e)||yT(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 RX}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as DX}from"efficient-easel/screen/lib/document/panel-no-control-mark";var cM="notCardOfTemplate",pM={not:{context:cM,is:!0}},yy={any:[bd,pM]},$Fe={[cM]:(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 EX(o)?o:[]}var vu=(e,o)=>AX(e.props??{},o),NX=(e,o)=>e.props?.[gy(o)]!==void 0;function uM(e,o=()=>!1,t="desktop"){return Cu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Cu(r).length&&!vu(r,t)?uM(r,o,t):o(r)?[]:[r])}function MX(e,o,t,r="desktop"){let a=uM(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:!vu(l,r)}})}function ku(e,o,t){let r=a=>t==="desktop"?vu(a,t):NX(a,t);return Cu(e).flatMap(a=>r(a)?o(a)?[]:[a,...ku(a,o,t)]:ku(a,o,t))}function HX(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=HX(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 mM(e,o,t,r="desktop"){return Sy(e,o,a=>r==="desktop"&&vu({props:a},r)===!t?{}:FX(a,r,!t))}function WX(e,o,t){return t==="desktop"?mM(e,o,!0,t):Sy(e,o,()=>({[gy(t)]:void 0}))}function $X(e,o,t,r,a,n){return BX(e).trim()?t(e):Tw({ownerType:o,owner:r,fields:a,slot:n},Wt(e.props))?.label??t(e)}var zX="This page is read-only.";function UX({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>LX(u,n,nn,void 0,wu),f=u=>bu(u.type,u),m=MX(e,u=>$X(u,o,d,t,r,a),f,i);return m.length?_i(zx,{parts:m,changed:ku(e,f,i).length>0,shown:u=>m.find(h=>h.id===u)?.shown??!0,disabledReason:l?zX:void 0,onPress:(u,h)=>s(I=>mM(I,u,h,i)),onReset:()=>s(u=>ku(u,f,i).reduce((h,I)=>WX(h,String(I.props.id),i),u))}):_i(DX,{})}function jX(){try{let e=_X(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 GX({readOnly:e,view:o}){let t=jX(),r=pl();return t?_i(UX,{...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}})}}):_i(zx,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function zFe(e){return ro(RX(e,{type:"custom",render:({readOnly:o})=>_i(GX,{readOnly:o,view:e})}),pM)}import{customize as oJ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as by}from"react/jsx-runtime";import{DirectionIcon as KX,LoopMarqueeIcon as qX,NoSymbolIcon as VX}from"efficient-easel/icons";import{customize as YX,describedAs as XX,group as JX}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as ZX}from"efficient-easel/screen/lib/document/effect-tiles";function wy(){return LT("Direction",HI,mi,"A marquee cannot run diagonally, so the corners are not answers.",by(KX,{}),BT)}var Cy=e=>JX("Loop",e?{dot:e}:void 0),QX={none:()=>by(VX,{}),scroll:()=>by(qX,{})};function eJ(){let e=ZX({label:c("Loop"),options:Bp.map(({value:o,label:t})=>({value:o,label:c(t),picture:QX[o]()})),fallback:MI});return XX(e,{type:"select",label:"Loop",options:Bp.map(({value:o,label:t})=>({value:o,label:t}))})}function xM(){return{[is]:Cy(ui),loop:eJ(),_cLoop:YX(),scrollDirection:ro(wy(),ui),loopDuration:ro(gu({readsSpeed:!1}),ui),loopDelay:ro(yu(),ui)}}var hM={field:oa,set:!0};function tJ(){let e=fM(),o=[bt,ot],t=Do(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==oa),bd),r=Do(t,[oa],hM),a=Do(r,[ot],yy);return Do(a,[bt],{any:[yy,hM]})}function Pu(e,o=""){switch(e){case"section":case"block":return{...At(),...za()};case"box":return{...At(),...za(),...xM(),...tJ()};case"picture":return{...At(),...za(),...hy(Kb(o),o)};case"textPart":return{...At(),...za(),...sM()};case"cards":return{...At(),...za(),...lM(Bb(o))};case"marquee":return{...At(),...za(),[is]:Cy(),_cLoop:oJ(),scrollDirection:wy(),loopDuration:gu({readsSpeed:!0}),loopDelay:yu()}}}import{blockSizeFieldSet as qJ}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as VJ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as IM,Fragment as rJ,jsxs as aJ}from"react/jsx-runtime";import{useSelectedHost as gM}from"efficient-easel/easel";import{VIEW_TIERS as nJ,viewKeyAt as sJ}from"efficient-easel/draw";var yM=e=>nJ.find(o=>Object.values(ho).some(t=>sJ(t,o)===e))??"desktop";function lJ(e,o,t){let r=e(o),a=yM(t);return{top:Zd(r,"top",a),bottom:Zd(r,"bottom",a)}}var iJ=e=>e.startsWith(ho.bottom)?"bottom":"top";function dJ(e,o,t,r){let a=iJ(r);return o(t,Zd(e(t),a,yM(r)),a)}function fJ({frameOf:e,note:o,rowKey:t}){let r=gM()?.values,a=r?dJ(e,o,r,t):null;return a?IM("p",{className:"es-field-hint",children:a}):null}var cJ=new Set(Cn());function SM(e,o,t){let r=Rr({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=gM()?.values;return n?lJ(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!cJ.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>aJ(rJ,{children:[s(l),IM(fJ,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as pJ}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as uJ,deviceMetaOf as CM}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as vy,SETTINGS_BUCKETS as mJ}from"efficient-easel/panel";import{BUCKET_KEY as So,DESIGN_GROUP_KEY as Ss}from"efficient-easel/screen/lib/document/field-buckets";var Ai=mJ;var xJ="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",[xJ]:"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"},kM={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},vM={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function bM(e,o,t){let r=`${e}.${o}`;return z(vM,r)??z(kM,r)??z(Py,t)}function hJ(e){return e==="Animation"?[So.Animation]:[So.Design,Ss[e]]}function Tu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=CM(r),n=fr(a?a.inner:r),s=n?z(Py,n.label):void 0;if(s)for(let l of hJ(s))o.includes(l)||o.push(l)}return o}var PBe=[...Tu(Rr({tablet:!0,siteSide:!0}),Fn("full"),Bn(),Ln(),ul()),...Object.keys(Rr({tablet:!0,siteSide:!0})),...Object.keys(Fn("full")),...Object.keys(Bn()),...Object.keys(Ln()),...Object.keys(ul())],TBe=[...Tu(_n()),...Object.keys(_n())],OBe=[...Tu(An()),...Object.keys(An())],EBe=[...Tu(At()),...Object.keys(At())],_Be=Object.keys(NT()),ABe=Object.keys(MT()),IJ={"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)"},PM={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},ky={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Rr({tablet:!0,siteSide:!0}),...Fn("full"),...Bn(),...Ln(),..._n(),...An(),...At()};for(let o of Object.keys(ky)){let t=fr(e[o]),r=t?z(Py,t.label):void 0;if(!t||t.level!==2||!r||!PM[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 gJ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),yJ=new Map([[So.Design,"Content"],[So.Animation,"Animation"],...vy.map(e=>[Ss[e],e])]);function SJ(e){let o=`${e}.`;return Object.keys(IJ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function bJ(e,o){let t=CM(e),r=pJ(o);return t?uJ(t.tier,r):r}function wJ(e,o){let t=fr(o);return t?e==="Content"||e==="Animation"?vT(o,t.label):PT(o):o}function wM(e){return e==="Design"?vy:["Animation"]}function Ou(e,o){let t=[],r=new Set(SJ(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=fr(h);if(gJ.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=yJ.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(ky,u)){let T=bM(o,u,I.label);if(I.level!==2||!T||!PM[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(ky,u)});continue}let P=bM(o,u,I.label);if(!P)throw new Error(`${o}.${u}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...vy,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:P,entries:[[u,I.level===2?h:bJ(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",vM],["KEY_GROUP",kM]]){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=Ai.filter(u=>wM(u).some(h=>d.has(h))),m={};for(let u of f){m[So[u]]=Rf(u,u===f[0]?f:null);for(let h of wM(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 P=I.filter(T=>T.uniform);if(P.length>0){let T=I.filter(k=>!k.uniform),B=I[0]?.adopted?1:0;I.splice(0,I.length,...T.slice(0,B),...P,...T.slice(B))}u==="Design"&&(m[Ss[h]]=Nx(h));for(let T of I)for(let[B,k]of T.entries)m[B]=wJ(h,k)}}return m}function TM(e){return So.Design in e?e:{[So.Design]:Rf("Design",null),[Ss.Content]:Nx("Content"),...e}}function OM(e){return Ai.some(o=>So[o]in e)}function Eu(e){let o=Ai.filter(r=>So[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[So[r]]=Rf(r,r===o[0]?o:null);return t}import{jsx as _u}from"react/jsx-runtime";import{WidthIcon as CJ}from"efficient-easel/icons";import{SettingsField as kJ,SettingsSwitch as vJ}from"efficient-easel/panel";import{group as PJ,iconOf as TJ,sharedStyleKinds as OJ}from"efficient-easel/screen/lib/document/box-fields";var EJ="Gutter";function _J({value:e,onChange:o,labelId:t}){let r=mu(cl()),a=bi({[Ha]:e})??r,n=s=>o(s?r?void 0:jg:Ug);return _u(kJ,{label:c(EJ),labelId:t,icon:TJ(_u(CJ,{})),action:_u(vJ,{checked:a,onChange:n,ariaLabelledBy:t})})}function EM(){return OJ({_gWidth:PJ(Df),[Ha]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>_u(_J,{value:e,onChange:o,labelId:`${t??r??Ha}-label`})}})}import{jsx as Oy}from"react/jsx-runtime";import{group as AJ,sharedStyleKinds as AM}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as FJ}from"efficient-easel/screen/lib/document/device-fields";var BJ="Content cannot be wider than the background.",Ty=e=>c(e==="content"?"Content width":"Full width");function FM(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=vo(),n=ye(o)??hn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var LJ={read:In},RJ={read:In,drawsFullOnItsOwn:!0},DJ={read:HC,clearOnContent:{fullWidth:void 0}};function NJ({source:e}){let o=e.read(Wx()),t=pl(),r=FM(e);return Oy($T,{value:o.background??r.background,changed:o.background!==null,detail:Ty(r.background),onChange:a=>t($C(a)),onReset:()=>t(dx("background"))})}function MJ({source:e}){let o=e.read(Wx()),t=pl(),r=i=>t({...i,...e.clearOnContent}),a=FM(e),n=(o.background??a.background)==="content",s=TT({row:ix,label:WT,grid:{min:hn.min,max:n?a.px:hn.max,step:hn.step},valueKey:Ao.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return Oy(zT,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:hn.max,changed:o.content!==null,detail:a.content==="full"?Ty("full"):`${Ty("content")} ${a.px}px`,fullClosed:n,hint:n?BJ:void 0,onMode:i=>r(zC(i)),onPx:i=>r({...UC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(dx("content"))})}var _M=(e,o)=>FJ("desktop",{type:"custom",render:()=>Oy(e,{source:o})}),BM=e=>({[Ao.background]:_M(NJ,e),[Ao.content]:_M(MJ,e),[Ao.contentMax]:Hx(),...YP(ix,Ao.content)});function LM(e){let o=e?.drawsFullOnItsOwn?RJ:LJ;return AM({_gWidth:AJ(Df),...BM(o)})}function QBe(){return AM({...BM(DJ),fullWidth:Hx()})}import{deviceMetaOf as DM}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as HJ}from"efficient-easel/screen/lib/document/panel-no-control-mark";function WJ(e,o){let t=DM(o),r=t?t.inner:o;if(fr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=HJ(r);return a==="always"?!1:a==="authored-copy"?tv(e):!0}function RM(e){let o=DM(e),t=o?o.inner:e,r=fr(t);return r?kT(t)?0:r.level:null}function $J(e,o,t){return t?o===0&&e===So.Design||o===1&&e===Ss.Content:!1}var zJ=new WeakMap,UJ=new WeakMap;function NM(e,o="section"){let t=o==="page"?UJ:zJ,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([m,u])=>({key:m,field:u,level:RM(u),draws:WJ(m,u)||o==="page"&&RM(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&&!$J(a[m].key,u,n)&&s.add(a[m].key)}let l=n&&OM(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?TM(d):d);return t.set(e,f),f}import{isShown as jJ,showWhenFactReaders as GJ}from"efficient-shell/format";var MM=new WeakMap,KJ=new Set(Object.values(So));function HM(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=GJ(r,o,t),l=MP(t,{...s,parentOffersPositions:()=>{let I=Xt(t.appState,n);return I===void 0?void 0:ak(I,n)},parentTileSlot:()=>{let I=Xt(t.appState,n);return I===void 0?void 0:nk(I,n)},heroGroupDepth:()=>jd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,S]of Object.entries(e)){let P=uw(S);!P||NP(P,"device")||jJ(P,a,l)||i.push(I)}if(i.length===0)return e;let d=MM.get(e);d||MM.set(e,d=new Map);let f=i.join("\0"),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=>KJ.has(I))&&(h=Eu(h)),d.set(f,h),h}var WM={spacingFields:AT,sidesPaddingFields:Rr,ownPaddingFields:SM,sectionShapeFields:An,cardShapeFields:OT,cellWidthFields:ET,widthField:Fn,boxGutterFields:EM,sectionOwnWidthFields:LM,heightFields:Bn,anchorFields:Ln,customCssFields:FT,stickFields:ul,sectionThemeFields:_n,animationTabFields:Pu,blockSizeFields:({tablet:e,...o}={})=>qJ({...o,shorten:!0,say:VP,lengthUnits:Of,...e?{phone:VJ}:{}}),assignSectionGroups:Ou,dropEmptyHeadings:NM,rowsShownForNode:HM,SECTION_THEME_FOLLOW_LABEL:hT,BLOCK_THEME_FOLLOW_LABEL:IT,PartAnchors:gR};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 YJ(e,o,t){let r={};for(let[l,i]of Object.entries(o.fields??{}))r[l]=i&&typeof i=="object"&&i.type==="slot"?{...i}:i;let a={...o,...o.fields?{fields:r}:null},n=HN(e,a,t),s=Object.keys(r).filter(l=>n.fields?.[l]!==r[l]);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host["${e}"] declares ${s.map(l=>`"${l}"`).join(", ")}, ${s.length===1?"a name":"names"} the editor gives every section a setting under. Give the block's own field another name.`);return n}function XJ(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];JJ(e,o,a);for(let n of a){let s=n.components.filter(Ed);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(!_d(n))continue;let s=Od(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 JJ(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${un}". Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`)};for(let n of t)n.components.includes(un)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let l=Ey(un,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function $M(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Dg(o);if(XJ(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:WM};for(let[I,S]of t){let P=YJ(I,S,h),T=Au(P.fields,l,i);d[I]=T===P.fields?P:{...P,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(P=>P in d&&l(P));if(u.length===0)continue;let h=f.find(([P])=>P===m.key);if(h){let[,P]=h,T=new Set(P.components??[]);h[1]={...P,components:[...P.components??[],...u.filter(B=>!T.has(B))]};continue}let I=[m.key,{title:m.title,components:u}],S=m.before?f.findIndex(([P])=>P===m.before):-1;S===-1?f.push(I):f.splice(S,0,I)}return{...e,components:d,categories:Object.fromEntries(f)}}function zM(){let e=eZ();return ZJ(()=>$M(QJ(e),mn(e)),[e])}import{jsx as Fy,Fragment as SZ,jsxs as bZ}from"react/jsx-runtime";import{useContext as wZ,useEffect as CZ,useMemo as Nu,useRef as iH}from"react";import{EaselCanvas as kZ,repeatCopyAt as vZ,useEasel as PZ}from"efficient-easel/easel";import{jsx as _y}from"react/jsx-runtime";import{useEffect as aZ,useState as nZ}from"react";import{Banner as sZ}from"efficient-shell/ui";import{useSyncExternalStore as oZ}from"react";import{useScreenDocument as tZ}from"efficient-easel/screen/components/ScreenDocumentContext";var rZ=()=>()=>{},UM=()=>null;function Fu(e){return oZ(e?e.subscribe:rZ,e?e.state:UM,e?e.state:UM)}function Bu(){let{adapter:e}=tZ();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."},lZ={load:"{section} could not load. It stays on the page as it was. Reload to try again.",lock:"{name} is editing {section}. Nothing you change in it here is saved.",conflict:"{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest.",save:"{section} did not save. It is sent again with your next change."},iZ=Lu.load,dZ=Lu.lock,fZ=Lu.conflict,cZ=Lu.save;function pZ(e){if(!e)return null;if(e.loadFailed)return c(iZ);if(e.lockHolder)return c(dZ,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(fZ);if(e.saveFailed)return c(cZ);let o=e.sections?.[0];if(!o)return null;let t=o.title||c("A shared section"),r=o.holder?.name||c("Somebody else");return c(lZ[o.problem],{section:t,name:r})}function uZ({report:e}){let o=pZ(Fu(e)),[t,r]=nZ(null);return aZ(()=>{o||r(null)},[o]),!o||t===o?null:_y("aside",{className:"sf-canvas-notice",children:_y(sZ,{tone:"warning",onDismiss:()=>r(o),children:o})})}function jM(){return _y(uZ,{report:Bu()})}import{jsx as Du}from"react/jsx-runtime";import{useState as sH}from"react";import{Banner as xZ,Button as hZ}from"efficient-shell/ui";import{UndoIcon as IZ}from"efficient-shell/icons/efficient";import{useScreenDocument as gZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as qM}from"react";var Fi=!1,bs=null,Ay=new Set;function Li(){for(let e of Ay)e()}function VM(e){return Ay.add(e),()=>{Ay.delete(e)}}function YM(){Fi||(Fi=!0,Li())}function XM(){Fi&&(Fi=!1,Li())}function GM(){return Fi}function JM(){return qM(VM,GM,GM)}function KM(){return bs}function Ru(){bs&&(bs=null,Li())}function ZM(){return qM(VM,KM,KM)}var Bi=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 Bi;let n=await e.restore(o,t);return Ff(n.liveState),a(),n}async function eH({access:e,version:o,page:t,...r}){let a=await QM(e,o.id,t?{page:t.id}:{},r);bs={title:mZ(o,t??null),undo:a.undo},Li()}async function oH({access:e,...o}){let t=bs?.undo;t&&(await QM(e,t,{},o),bs=null,Li())}function tH(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function mZ(e,o){return e.kind==="draft_before_restore"?c("Your drafts from before the restore are back"):o?c("{page} from version {n} is now your draft",{page:o.name,n:e.number}):c("Version {n} is now your draft",{n:e.number})}function rH(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 aH(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function nH(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 yZ}from"efficient-easel/easel";function lH(){let e=ZM(),{adapter:o,flushSave:t,reloadFromServer:r}=gZ(),a=o.siteVersions,[n,s]=sH(!1),[l,i]=sH(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await oH({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},f=yZ({onPress:()=>{d()},busy:n});return e?Du("aside",{className:"sf-canvas-notice",children:Du(xZ,{tone:l?"danger":"info",title:e.title,onDismiss:Ru,action:a&&e.undo?Du(hZ,{variant:"secondary",size:"sm",leftIcon:Du(IZ,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:c("Undo")}):void 0,children:l?c("Undo did not work. Nothing changed. Try again."):c("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as TZ,REPEAT_ATTRIBUTE as By,REPEAT_INDEX_ATTRIBUTE as Ly}from"efficient-easel/draw";import{usePreviewParts as OZ}from"efficient-easel/draw/client";import{ScreenDocumentContext as EZ}from"efficient-easel/screen/components/ScreenDocumentContext";function dH(e){let{mirrorHostStyles:o}=xl(),t=a0(),r=Ry(),a=cl(),n=wZ(EZ),s=lT(n?.docId??null),l=PZ(P=>P.appState.data),i=iT(s,l),d=JSON.stringify(i),f=Nu(()=>i,[d]),m=Nu(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);CZ(()=>(ay(a),()=>ay(null)),[a]);let u=iH(null),h=_Z(u),{onDocument:I}=e,S=P=>{u.current=P,I?.(P)};return bZ(SZ,{children:[Fy(lH,{}),Fy(jM,{}),Fy(kZ,{...e,onDocument:S,typing:h,metadata:m,height:"fill",mirrorStyles:o,frameWrapper:Jf})]})}function Ry(){let{sectionBackgroundWidth:e,themeFromDocument:o}=vo(),t=cl();return Nu(()=>jC(o?null:e,t),[e,t,o])}function _Z(e){let o=$f(),t=OZ(),r=iH({parts:t});return r.current={parts:t},Nu(()=>{let a=(n,s)=>{let l=jf(n,o),i,d=null,f=s??(l?null:sh(null,e.current,n)),m=!l&&f?vZ(f):null,u=m?TZ(n):null;if(m&&f&&u?.propKey){l=Kf({...m,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let P=f.closest(`[${By}][${Ly}]`),T=`[${By}="${Gf(P?.getAttribute(By)??"")}"][${Ly}="${Gf(P?.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?ff(cf(S)):void 0,colorNameOf:df}}: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=>v0(n,o),copyValue:n=>k0(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"]}],ws="all",Hu="template";function fH(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 cH(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>fH(o.s.slug)-fH(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function Dy(e){return e.filter(o=>o.source==="template")}function pH(e){let o=new Set(cH(e).map(t=>t.slug));return Mu.filter(t=>t.slugs.some(r=>o.has(r)))}function uH(e,o){if(e===Hu)return Dy(o);let t=cH(o);if(e===ws)return t;let r=Mu.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}var mH=3;function xH(e,o){let t=Array.from({length:e},()=>[]);return o.forEach((r,a)=>t[a%e].push(r)),t}function yH({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=DZ(),{adapter:n,siteId:s,templateId:l}=RZ(),i=_o(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),f=BZ(()=>s?{siteId:s}:{},[s]),m=zM(),u=Ry(),[h,I]=Ny(null),[S,P]=Ny(ws),[T,B]=Ny(null),k=LZ(null),g=FZ();AZ(()=>{if(!e)return;if(P(ws),!d){I([]);return}let O=!0;return I(null),i.starters(f).then(C=>O&&I(C),()=>{O&&(I([]),gH.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{O=!1}},[e,d,i,f]);let b=async(O,C)=>{if(!T){B(O);try{r(await C())}catch{gH.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{B(null)}}},E=()=>{if(!n.createPage)return;let O=c("New page");b("blank",()=>n.createPage({slug:IH(O,t),title:O,layout:{}}))},A=O=>{b(O.id,()=>i.createFromStarter(O.id,{title:O.title,slug:IH(O.slug,t),...f}))},N=h??[],w=pH(N),_=uH(S,N),y=xH(mH,_),v=hH("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Oo(My,{label:c("All pages"),active:S===ws,onClick:()=>P(ws)}),w.map(O=>Oo(My,{label:c(O.label),active:S===O.key,onClick:()=>P(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:()=>P(Hu)})}):null]});return Oo(HZ,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:k,children:Oo(UZ,{sidebarTop:Oo("div",{className:"sf-add-page-blank",children:Oo(MZ,{variant:"secondary",size:"md",leftIcon:Oo(NZ,{"aria-hidden":!0}),onClick:E,disabled:!n.createPage||T!==null,children:c("Blank page")})}),sidebar:v,children:hH("div",{ref:k,tabIndex:-1,role:"region","aria-labelledby":g,className:"sf-add-page",children:[Oo(jZ,{id:g,level:2,as:"h3",children:c("Pages for your site")}),Oo(zZ,{tone:"default",className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),h===null?Oo($Z,{label:c("Loading\u2026")}):_.length===0?Oo(WZ,{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,C)=>Oo("div",{className:"sf-add-page-column",children:O.map(L=>Oo(LR,{starter:L,config:m,metadata:u,busy:T===L.id,onAdd:A},L.id))},C))})]})})})}import{jsx as GZ}from"react/jsx-runtime";import{createContext as KZ,useContext as SH,useEffect as qZ,useRef as bH}from"react";var Hy=KZ(null);function KRe({open:e,children:o}){let t=bH(!!e);return GZ(Hy.Provider,{value:t,children:o})}function wH(){let e=SH(Hy);return()=>e?.current?(e.current=!1,!0):!1}function CH(e){let o=SH(Hy),t=bH(e);t.current=e,qZ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var EH="sf-editor-pages-collapsed-groups";function pQ(){let e=$y(),{siteId:o,templateId:t}=_H(),r=_o(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function AH({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=$y().chrome?.pageRows,n=dQ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=_H(),f=Rn(),{rows:m,reload:u,setRows:h,getRows:I}=gl(),[S,P]=Ua(""),[T,B]=Ua(!1),[k,g]=Ua(null),[b,E]=Ua(!1),A=!!_o($y()).pages.createFromStarter,N=pQ(),[w,_]=Ua(null),[y,v]=Ua(()=>{if(typeof window>"u")return new Set;try{let $=window.localStorage.getItem(EH);return new Set($?JSON.parse($):[])}catch{return new Set}});kH(()=>{try{window.localStorage.setItem(EH,JSON.stringify([...y]))}catch{}},[y]);let O=$=>v(de=>{let he=new Set(de);return he.has($)?he.delete($):he.add($),he}),C=vH(()=>LP(m??[]),[m]),L=S.trim().toLowerCase(),M=$=>!L||$.toLowerCase().includes(L),K=$=>L?!0:!y.has($),W=vH(()=>new Set((m??[]).map($=>$.slug)),[m]),se=()=>{if(l.pageCreationInAdminForm&&!A){n.send("storefront-editor:new-page");return}g(null),E(!0)},le=wH();kH(()=>{le()&&se()},[]);let ee=l.hasSiteSettings&&!!s.createPage,Ie=async()=>{if(!(!i||T||!s.createPage)){B(!0),g(null);try{let $=await s.createPage(ST(c("New popup"),W));await u(),e($.slug)}catch{g(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{B(!1)}}},ae=XZ(null),[me,ge]=Ua(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(ve=>ve.id===$.id),ie=de.filter(ve=>ve.id!==$.id),Ne=$.slug===d;Yf($.id,!0),h(ie),g(null),Ne&&ie[0]&&e(ie[0].slug);let wo=()=>{Yf($.id,!1);let ve=I()??[];if(ve.some(Qa=>Qa.id===$.id))return;let Rt=[...ve];Rt.splice(Math.max(0,Math.min(De,Rt.length)),0,$),h(Rt)};TH.undoable(c("Deleted \u201C{name}\u201D",{name:$.label}),{actionLabel:c("Undo"),commit:async ve=>{await he($.id,ve),Yf($.id,!1)},undo:()=>{wo(),Ne&&e($.slug)},onFail:()=>{wo(),TH.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=Pf($),ie=BP($),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,ve=!!N&&fQ($),Rt=ve||l.pageCreationInAdminForm||he?Wu(VZ,{children:[ve&&Pe($u,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:$.label}),disabled:T,onClick:()=>_($),children:Pe(nQ,{size:13})}),l.pageCreationInAdminForm&&Pe($u,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:$.label}),onClick:()=>Eo($.slug),children:Pe(lQ,{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(OH,{icon:Pe(sQ,{size:14}),name:$.label,selected:de,onSelect:()=>e($.slug),badge:wo,actions:Rt,rowProps:{"data-page-slug":$.slug}},$.id)},Ze=($,de,he)=>{let De=he.filter(Boolean);if(De.length===0)return null;let ie=K($);return Wu(YZ,{children:[Pe(rQ,{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(OH,{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 C){Qe&&!de&&he.key.startsWith("system:")&&($.push(Ze("shop",a.title,qo)),de=!0);let De=he.key===FP||he.label===AP?c(he.label):he.label;$.push(Ze(he.key,De,he.rows.map(Ye)))}return Qe&&!de&&$.push(Ze("shop",a.title,qo)),$})();return Wu("div",{className:"sf-pages",children:[Pe(JZ,{icon:Pe(iQ,{}),title:c("Pages"),context:f,actions:Pe(ZZ,{buttonRef:ae,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?me!==null:void 0,onClick:Ge,children:Pe(aQ,{size:15})})}),me&&Pe(oQ,{portal:!0,style:{top:me.top,right:me.right},onClose:()=>ge(null),children:Wu("div",{role:"menu","aria-label":c("Add"),children:[Pe(PH,{role:"menuitem",onClick:()=>{ge(null),se()},children:c("Page")}),Pe(PH,{role:"menuitem",disabled:T,onClick:()=>{ge(null),Ie()},children:c("Popup")})]})}),Pe("div",{className:"sf-pages-find",children:Pe(QZ,{type:"search",leftIcon:Pe(Wy,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:S,onChange:$=>P($.target.value),"aria-label":c("Search all pages")})}),k&&!b&&Pe("div",{className:"sf-note sf-note--error",role:"alert",children:k}),mo===null?Pe(eQ,{label:c("Loading\u2026")}):mo.some(Boolean)?Pe(tQ,{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&&w&&Pe(cQ,{source:{title:w.label,slug:w.slug},taken:W,host:Sf(),duplicate:$=>N(w,$),onClose:()=>_(null),onDuplicated:$=>{_(null),u(),e($.slug)}},w.id),b?Pe(yH,{open:!0,onClose:()=>E(!1),takenSlugs:W,onCreated:$=>{E(!1),u(),e($.slug)}}):null]})}import{jsx as LH}from"react/jsx-runtime";import{createContext as hQ,useCallback as IQ,useContext as gQ,useMemo as yQ,useState as SQ}from"react";import{CanvasChromeContext as bQ}from"efficient-easel/easel";import{useSelectHandler as wQ}from"efficient-easel/draw/client";import{parseHexColor as uQ,parseOption as mQ}from"efficient-shell/format";var zu=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],Cs=zu[0],xQ=["right","left"],ja="right";function Uu(e){return zu.includes(e??"")?e:Cs}function FH(e){return mQ(xQ,ja,e)}function BH(e){return e&&uQ(e)===e.toLowerCase()?e.toLowerCase():""}var RH="chat",ju={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:ja,launcherLabel:"",showOnPhones:!0};function kDe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:BH(e.launcherColor),launcherIcon:e.launcherIcon?Uu(e.launcherIcon):"",launcherPosition:FH(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var DH=hQ({chat:ju,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function vDe({children:e,chat:o=ju,onChatChange:t}){let[r,a]=SQ(!1),n=IQ(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=wQ(),i=yQ(()=>({selected:()=>r?RH:null,select:d=>d===RH&&s()}),[r,s]);return LH(DH.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:LH(bQ.Provider,{value:i,children:e})})}var Gu=()=>gQ(DH);import{jsx as zy}from"react/jsx-runtime";import{DesktopIcon as CQ,PhoneIcon as kQ,TabletIcon as vQ}from"efficient-easel/icons";import{VIEW_TIERS as PQ,VIEW_TIER_LABEL as TQ}from"efficient-easel/draw";var OQ={desktop:zy(CQ,{}),tablet:zy(vQ,{}),mobile:zy(kQ,{})},NH=PQ.map(e=>({id:e,get label(){return c(TQ[e])},icon:OQ[e]}));import{PreviewDeviceContext as $ne}from"efficient-easel/draw/client";import{jsx as EQ}from"react/jsx-runtime";import{createContext as _Q,useCallback as MH,useContext as AQ,useMemo as FQ,useRef as BQ}from"react";var LQ=Object.fromEntries(Mf.map(e=>[e,{value:"",error:null}])),HH=_Q({links:jT,rows:LQ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function RDe({children:e,value:o}){let t=BQ(()=>{}),r=MH(()=>t.current(),[]),a=MH(s=>{t.current=s},[]),n=FQ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return EQ(HH.Provider,{value:n,children:e})}var Ri=()=>AQ(HH);import{jsx as RQ}from"react/jsx-runtime";import{createContext as DQ,useContext as NQ,useMemo as MQ,useState as HQ}from"react";var WH=DQ(null);function HDe({children:e}){let[o,t]=HQ(null),r=MQ(()=>({surface:o,setSurface:t}),[o]);return RQ(WH.Provider,{value:r,children:e})}function $H(){return NQ(WH)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as WQ}from"efficient-easel/draw/client";var{Provider:zDe,useSelection:Ku}=WQ("selectedHeroPart");import{jsx as we,jsxs as Jr,Fragment as t5}from"react/jsx-runtime";import{useEasel as mre,useRootFields as xre}from"efficient-easel/easel";import{EmptyState as hre}from"efficient-shell/ui";function zH({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:Pf({kind:e})?c("Template"):c("Page")}}import{headWords as s5,InspectorHead as Ire,InspectorIconButton as r5}from"efficient-easel/chrome";import{DuplicateIcon as gre,TrashIcon as yre}from"efficient-easel/icons";import{panelFieldsOf as Sre}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 UQ,BlockBoxIcon as jQ,BlockButtonIcon as GQ,BlockDividerIcon as jH,BlockFooterIcon as GH,BlockHeadingIcon as KQ,BlockProductIcon as qQ,BlockSocialIcon as VQ,BlockTextIcon as YQ,CardPaymentIcon as XQ,ChatIcon as JQ,AccountIcon as ZQ,GlobeIcon as QQ,GridIcon as eee,ImageIcon as jy,MapIcon as oee,MediaIcon as tee,PageIcon as ree}from"efficient-easel/icons";import{jsx as Uy,Fragment as $Q,jsxs as zQ}from"react/jsx-runtime";var UH=zQ($Q,{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 aee={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:UH,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"})},nee=D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),see={footer:GH,Footer:GH,Divider:jH,FooterDivider:jH,Banner:UQ,Flex:jQ,FooterSocial:VQ,FooterPayment:XQ,page:ree,website:QQ,AccountBlock:ZQ,chat:JQ,Heading:KQ,Text:YQ,ImageBlock:jy,ButtonBlock:GQ,LocationMap:oee,Grid:eee,ProductRef:qQ,heroMedia:tee,heroImage:jy,heroImage2:jy},lee={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Ga({type:e,size:o=16,className:t}){let r=lee[e]??e,a=see[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:aee[r]??nee})}import{PanelHideButton as a5}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as bre}from"efficient-easel/screen/lib/session-context";import{jsx as be,jsxs as Di,Fragment as iee}from"react/jsx-runtime";import{useEffect as dee,useId as KH,useState as fee}from"react";import{IconPicker as cee}from"efficient-shell/ui";import{SettingsDefaultReset as pee,SettingsField as Ni,SettingsSegmented as uee,SettingsSwitch as qH}from"efficient-easel/panel";import{ButtonIcon as mee,ButtonIconIcon as xee,EyeIcon as hee,PhoneIcon as Iee,PlacementIcon as gee,TypeIcon as yee}from"efficient-easel/icons";var See="Chat with us",bee="We usually reply within a few minutes",wee="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]=fee(o);dee(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return be(Ni,{label:e,icon:be(yee,{}),changed:o!=="",action:be(Mi,{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 Mi({label:e,changed:o,onReset:t}){return be(pee,{words:sC()?.panel,label:e,changed:o,onReset:t})}function Cee({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=KH();return be(Ni,{label:e,labelId:s,icon:o,changed:t!==r,action:Di("span",{className:"inline-flex items-center gap-2",children:[be(qH,{checked:t,onChange:a,ariaLabelledBy:s}),be(Mi,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var kee=zu.map(e=>({value:e,icon:fT(e)}));function vee(){let{theme:e}=vo(),o=sr(e).themes[0];return Ww(o)??o?.accent??""}function VH(){let{chat:e,setChat:o}=Gu(),t=KH(),r=vee(),a=e.launcherIcon?Uu(e.launcherIcon):Cs;return Di(iee,{children:[be(Ni,{label:c("Show the chat bubble"),labelId:t,icon:be(hee,{}),changed:!e.enabled,action:Di("span",{className:"inline-flex items-center gap-2",children:[be(qH,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),be(Mi,{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.")}),Di(Mx,{title:c("Look"),children:[be(pT,{label:c("Button color"),icon:be(mee,{}),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(Ni,{label:c("Icon"),icon:be(xee,{}),value:be(JP,{value:a}),changed:a!==Cs,action:be(Mi,{label:c("Icon"),changed:a!==Cs,onReset:()=>o({launcherIcon:""})}),children:be(cee,{label:c("Icon"),value:a,options:kee,onChange:n=>o({launcherIcon:n===Cs?"":n})})}),be(Ni,{label:c("Position"),icon:be(gee,{}),changed:e.launcherPosition!==ja,action:be(Mi,{label:c("Position"),changed:e.launcherPosition!==ja,onReset:()=>o({launcherPosition:ja})}),children:be(uee,{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(Cee,{label:c("Show on phones"),icon:be(Iee,{}),checked:e.showOnPhones,fallback:ju.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Di(Mx,{title:c("Wording"),children:[be(qu,{label:c("Title"),value:e.title,placeholder:See,onCommit:n=>o({title:n})}),be(qu,{label:c("Subtitle"),value:e.subtitle,placeholder:bee,onCommit:n=>o({subtitle:n})}),be(qu,{label:c("Greeting message"),value:e.greeting,placeholder:wee,onCommit:n=>o({greeting:n}),multiline:!0}),be("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as Ka,Fragment as pS,jsxs as QH}from"react/jsx-runtime";import{useEffect as ooe,useId as JH,useState as ZH}from"react";import{SettingsField as toe}from"efficient-easel/panel";import{jsx as Kee}from"react/jsx-runtime";import{forwardRef as Pee,createElement as Gy}from"react";var YH={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=Pee(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:f,...m},u)=>Gy("svg",{ref:u,...YH[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 Tee=[["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",Tee);var Oee=[["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",Oee);var Eee=[["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",Eee);var _ee=[["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",_ee);var Aee=[["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",Aee);var Fee=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Jy=ne("outline","brand-telegram","BrandTelegram",Fee);var Bee=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],Zy=ne("outline","brand-tiktok","BrandTiktok",Bee);var Lee=[["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",Lee);var Ree=[["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",Ree);var Dee=[["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",Dee);var Nee=[["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",Nee);var Mee=[["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",Mee);var Hee=[["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",Hee);var Wee=[["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",Wee);var $ee=[["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",$ee);var zee=[["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",zee);var Uee=[["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",Uee);var jee=[["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",jee);var Gee=[["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",Gee);var vMe="outline",Vu={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},qee={},cS={fillRule:"evenodd"},Vee=[["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"}]],Yee=[["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",{...qee,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}]],Xee=[["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("")}]],Jee=ne("filled","brand-telegram-filled","BrandTelegramFilled",Vee),Zee=ne("filled","brand-line-filled","BrandLineFilled",Yee),Qee=ne("filled","brand-wechat-filled","BrandWechatFilled",Xee),eoe={instagram:{outline:qy,solid:aS},facebook:{outline:Ky,solid:rS},tiktok:{outline:Zy,solid:lS},youtube:{outline:tS,solid:fS},x:{outline:oS,solid:dS},linkedin:{outline:Yy,solid:nS},pinterest:{outline:Xy,solid:sS},whatsapp:{outline:eS,solid:iS},telegram:{outline:Jy,solid:Jee},line:{outline:Vy,solid:Zee},wechat:{outline:Qy,solid:Qee}};function XH({platform:e,iconStyle:o,size:t}){let r=eoe[e][o];return Kee(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var roe={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 aoe({platform:e}){let{rows:o,saveLink:t}=Ri(),{value:r,error:a}=o[e],[n,s]=ZH(r),[l,i]=ZH(!1),d=JH(),f=JH();ooe(()=>s(r),[r]);let m=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=UT[e];return QH(pS,{children:[Ka(toe,{label:c(u),htmlFor:d,icon:Ka(XH,{platform:e,iconStyle:"outline",size:18}),children:Ka("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:roe[e],onChange:h=>s(h.target.value),onBlur:()=>{m()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&Ka("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function e2({unavailable:e}){let{canSave:o}=Ri();return!o&&e?Ka(pS,{children:e}):QH(pS,{children:[Ka("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Mf.map(t=>Ka(aoe,{platform:t},t))]})}import{jsx as Ya,Fragment as _oe,jsxs as Aoe}from"react/jsx-runtime";import{useId as Foe,useMemo as Boe}from"react";import{useEasel as Loe}from"efficient-easel/easel";import{SettingsField as Roe,SettingsSwitch as Doe}from"efficient-easel/panel";import{EyeIcon as Noe}from"efficient-easel/icons";import{fieldShownInView as Moe}from"efficient-easel/fields";import{usePreviewDevice as Hoe}from"efficient-easel/draw/client";import{ROOT_ZONE as Woe}from"efficient-easel/draw";import{jsx as Va,Fragment as loe}from"react/jsx-runtime";import{createContext as ioe,useContext as doe,useLayoutEffect as foe,useMemo as t2,useRef as coe,useState as r2}from"react";import{useEasel as a2,useSelectedFields as poe}from"efficient-easel/easel";import{fieldShownInView as uoe,Inspector as moe,LEAD_BAND_KEY as xoe,planFields as n2}from"efficient-easel/fields";function o2({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 noe}from"react/jsx-runtime";import{EmptyState as soe}from"efficient-shell/ui";function qa(){return noe(soe,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as hoe}from"efficient-easel/draw/client";import{deviceField as Ioe}from"efficient-easel/screen/lib/document/device-fields";var goe="Text",uS=new Map,Yu=new Set,yoe=Object.fromEntries(Ai.map(e=>{let o=CT[e];return[e,Va(o,{},e)]})),s2=ioe(null),Soe={_partBody:Ioe("each",{type:"custom",render:()=>Va(boe,{})})};function boe(){return Va(loe,{children:doe(s2)})}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}=poe(),u=t2(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(ee,Ie)=>a?.keys.has(ee)?a.onChange(ee,Ie):m(ee,Ie),I=hoe(),{appState:S,config:P}=a2(ee=>ee),T=DP(I,P,S.data.content??[],S.ui.itemSelector),B=n===void 0?B_(i,t):Soe,k=t2(()=>{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(k,u,T),[b,E]=r2(()=>new Set(Yu)),A=uoe({},I),N={key:xoe,title:goe},w=a2(ee=>ee.selectedItem)!==null,_=a?.part??t??"",y=`${l}:${_}:${String(I)}`,[v,O]=r2(()=>({tab:uS.get(y)})),C=`${l}:${_}`,L=coe(null),M={...T,node:u},K=n2(g,{values:u,context:M}).buckets,W=o2({allTabs:w,remembered:uS.get(y),inherited:L.current?.panel===C?L.current.tab:v.tab,buckets:K,hasText:A&&o>0}),se=!A&&!K.includes(W)&&(n2(_x(k,u,{...T,device:"desktop"}),{values:u,context:{...M,device:"desktop"}}).buckets.includes(W)||W==="Design"&&o>0);foe(()=>{L.current={panel:C,tab:W}});let le=W==="Design";return Va(s2.Provider,{value:n??null,children:Va(_T.Provider,{value:a?u:null,children:Va(moe,{fields:g,values:u,onChange:h,readOnly:f,allTabs:w,showWhenContext:M,context:{itemWord:s},tab:W,onTab:ee=>{uS.set(y,ee),O({tab:ee})},tabIcons:yoe,idPrefix:l,ariaLabel:c("Section settings"),lead:le?e:null,leadFold:N,closedFolds:b,onFold:(ee,Ie)=>{Ie?Yu.delete(ee):Yu.add(ee),E(new Set(Yu))},children:se&&Va(qa,{})})})})}import{useMemo as woe}from"react";import{useEasel as Coe}from"efficient-easel/easel";import{useSectionOps as koe}from"efficient-easel/screen/lib/document/use-section-ops";var l2=new Map,voe=e=>{let o=l2.get(e);return o||l2.set(e,o=Ou(Pu(e),`part:${e}`)),o},Poe=new Set(Ah);function ks(e,o,t){let{getItemById:r,getSelectorForId:a}=Coe(f=>f),n=koe(),s=r(e)?.props??{},l=Sa(s,o),i=JSON.stringify(l),d=woe(()=>Object.fromEntries(Ah.map(f=>[f,l[f]])),[i]);return{part:o,fields:voe(t),values:d,keys:Poe,onChange:(f,m)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=GO(h.props??{},o,f,m);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as Toe,createElement as Ooe}from"react";import{deviceField as mS}from"efficient-easel/screen/lib/document/device-fields";var bo=()=>({type:"custom",render:()=>Ooe(Toe)});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()},Eoe=["fontSize","align"];function i2(e){return Eoe.includes(e)}var d2={showTicker:bo(),items:bo()};function f2({heroId:e}){let{appState:o,dispatch:t}=Loe(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=Boe(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:k1.map(I=>({text:I}))},[n]),i=Foe(),d=Hoe(),f=h=>Moe(d2[h],d),m=ks(e,v1,"block");if(!n)return Ya("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:Woe,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return Ya(Ft,{motion:m,body:Aoe(_oe,{children:[!f("showTicker")&&!f("items")&&Ya(qa,{}),f("showTicker")&&Ya(Roe,{label:c("Show ticker"),labelId:i,icon:Ya(Noe,{}),action:Ya(Doe,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),f("items")&&Ya(RT,{label:$x.label,icon:$x.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as J,Fragment as $i,jsxs as It}from"react/jsx-runtime";import{useContext as ete,useEffect as hS,useRef as ote,useState as b2}from"react";import{FieldSelect as tte,InspectorField as rte,fieldShownInView as ate}from"efficient-easel/fields";import{InertHint as _2,SettingsField as nte}from"efficient-easel/panel";import{InspectorUpLevel as om}from"efficient-easel/chrome";import{StylesIcon as ste,TypeIcon as lte}from"efficient-easel/icons";import{useEasel as ite}from"efficient-easel/easel";import{TextPartPanel as w2}from"efficient-easel/copy";import{Button as dte,IconButton as fte,Tooltip as cte}from"efficient-shell/ui";import{jsx as u2,jsxs as $oe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as zoe}from"efficient-easel/strings";import{COPY_CELLS as vs,COPY_CELL_LENGTHS as c2,CopyBox as Uoe,lengthCellUnits as joe}from"efficient-easel/copy";import{PaddingYIcon as Goe}from"efficient-easel/icons";import{onDesktopWords as Koe}from"efficient-easel/screen/lib/document/box-fields";var p2=zoe.copy.cells,qoe={kind:"spacing"},Voe=["left","center","right","justify"];function Xu(e,o,t,r="desktop"){let a=Lv(e),n=Dv(r),s=e[n]??e.size??o.sizePx,l=Nv(e,r),i=(f,m,u,h,I)=>{let S=ll[u];return joe({preset:f,row:m,table:Of,unit:e[S],value:e[u],tier:r,styleValue:h,label:c(I),onPick:(P,T)=>t({[S]:P??null,[u]:T??null}),onChange:(P,T)=>t({...T?{[S]:T.unit??null}:{},[u]:P??null})})},d={key:"padding",name:c("Padding"),icon:u2(Goe,{}),unit:"px",step:_v,shiftStep:10,min:Ov,max:Ev};return[{...vs.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...i(vs.fontSize,c2.fontSize,n,Math.round(o.sizePx),p2.fontSize),...n==="size"?{}:{reset:{detail:l?Koe(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,c2.paragraphSpacing,"paragraphSpacing",0,p2.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...i(d,qoe,"padding",o.paddingPx,"Padding")}]}function m2({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 $oe("div",{className:"sf-part-textbox",children:[m,u2(Uoe,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:xd,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:df,align:a?{value:n.align??s.align,allow:Voe,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 C2}from"efficient-easel/draw/client";import{jsx as Ju,Fragment as Yoe,jsxs as Xoe}from"react/jsx-runtime";import{Button as x2,Dialog as Joe}from"efficient-shell/ui";function h2({styleName:e,onCancel:o,onConfirm:t}){return Ju(Joe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:Xoe(Yoe,{children:[Ju(x2,{variant:"secondary",onClick:o,children:c("Cancel")}),Ju(x2,{variant:"primary",onClick:t,children:c("Update style")})]}),children:Ju("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 pte}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as ute}from"efficient-easel/draw/client";import{shownTier as Qu}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as mte,viewKeyAt as xte}from"efficient-easel/draw";import{useSectionOps as hte}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as Ite}from"efficient-easel/screen/lib/host";function Zoe(e){let o=new Set([...Object.keys(z(ev,e)??{}),...z(ov,e)??[]]);for(let[t,r]of Object.entries(z(rv,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var Qoe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},I2={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},g2="Open",y2={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 Ps(e){let o=e?.source?.slug;return xo(o)}function Hi(e){return z(Qoe,e)??null}function S2(e,o){let t=Hi(e);return t&&Zoe(e).includes(o)?t:null}function Zu(e){let o=e?.menu?.id;return xo(o)}function IS(e){return e?c(e):null}function k2(e){return e.kind==="role"?Om[e.role]:e.kind==="custom"?"Custom":null}function gte(e){let o=Sb(e.role);return o?{kind:"role",role:o}:null}function yte(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 gte(Fr(e,o))??yte(t,r)}function Ste(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function v2(e,o){return[{value:Wi,label:c("No style"),description:c("Section\u2019s own")},...e.map(t=>({value:t.id,label:t.name,description:t.values.font?md(t.values.font,o)?.label:void 0}))]}var Wi="";function bte({face:e,base:o,onPick:t}){let r=kt(),a=e.kind==="role"?e.role:Wi,n=[{label:c("No style"),value:Wi},...yb.map(s=>({label:c(Om[s]),value:s}))];return J(tte,{ariaLabel:c("Style"),value:a,options:n,inline:!0,onChange:s=>t(s===Wi?null:s),renderOption:s=>s.value===Wi?It($i,{children:[J("span",{className:"es-fsel-label sf-part-style-keep",children:s.label}),J("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):J("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${s.value})`},children:s.label}),renderValue:()=>J("span",{style:{fontFamily:o?.fontKey?`var(${md(o.fontKey,r)?.cssVar})`:void 0,fontWeight:o?.weight},children:IS(k2(e))}),valueText:s=>IS(k2(e))??s?.label??""})}var A2=["regionNote","regionStyle"],wte=Object.keys(xS).filter(e=>!A2.includes(e));function F2(e,o){return!e.some(o)}function Cte({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=It($i,{children:[t,r,a]});return It("div",{className:"sf-part-panel",children:[J(om,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function tm({source:e,slug:o,menuId:t}){let r=Ite(),a=y2[e],n=!a.needsSlug||!!o;return J("div",{className:"sf-note sf-note--source",children:It(_2,{children:[c(I2[e]),n?It($i,{children:[" ",J(dte,{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(g2)})]}):null]})})}var P2=4,kte=120;function T2(e){return c("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:c(e.label).toLowerCase()})}function O2({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:[J("p",{children:J("strong",{children:c(e.label)})}),i("regionNote")&&!f&&J("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(m),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(m)})}),d?It($i,{children:[d,i("regionStyle")&&J("p",{className:"es-field-hint",children:T2(e)})]}):a?i("regionStyle")?J($i,{children:J(nte,{label:c("Style"),icon:J(ste,{}),hint:T2(e),children:J(bte,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&J("p",{className:"es-field-hint",children:c("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&i("sourceNote")?J(tm,{source:n,slug:s}):null,F2([...A2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&J(qa,{}),J(om,{inline:!0,name:c("Page"),onSelect:l})]})}function vte({onBack:e}){return It("div",{className:"sf-note",children:[J("p",{children:J("strong",{children:c("This part is no longer here.")})}),J("p",{children:c("The section it belonged to has been changed or removed.")}),J(om,{inline:!0,name:c("Page"),onSelect:e})]})}function Pte({onBack:e,partId:o,why:t}){return It("div",{className:"sf-note",children:[J("p",{children:J("strong",{children:c("This part's settings did not open.")})}),J("p",{children:c("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),J("p",{className:"sf-note-detail",children:It("code",{children:[o," \u2014 ",t]})}),J(om,{inline:!0,name:c("Page"),onSelect:e})]})}function B2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=ite(G=>G),l=hte(),i=w0(),{partStyle:d}=cs(),{fonts:f,textStyles:m}=vo(),u=kt(),h=ete(pte),I=!h?.capabilities?.hasSiteTheme,{persist:S}=xT({themeFromDocument:I,tokenRef:h?.tokenRef,siteId:h?.siteId??null}),P=ZT({themeFromDocument:I,persist:S}),[T,B]=b2(!1),k=ute(),g=G=>(Qu(k)!=="tablet"||i2(G))&&ate(xS[G],k),b=ote(null),E=a(e),A=n(e),N=E?s.components[E.type]:void 0,{key:w,row:_}=Ut(o),y=N?.fields?.[w],v=_?Nn(y,_):y,O=jt(e,o),C=E?.props??{},L=pf(v),M=Lf(v),K=Iv(v),W=E?Hi(E.type):null,se=E?S2(E.type,w):null,le=_?mf(C[w],_):C[w],ee=!!_&&!(Array.isArray(C[w])&&_.index<C[w].length);hS(()=>{b0(document)||b.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[O]);let[Ie,ae]=b2(0);hS(()=>ae(0),[O]);let me=!!E&&!ee&&(!A||!v);hS(()=>{if(!me||Ie>=P2)return;let G=setTimeout(()=>ae(Fe=>Fe+1),kte);return()=>clearTimeout(G)},[me,Ie]);let ge=me&&Ie<P2,Ge=ks(e,pr(E?.type,o),"textPart");if(!E||ee)return J(vte,{onBack:t});let Ve=ps(E.type),Eo=Ve?js(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(C,o,"role",Dt)})};if(Lo&&hw(Fe)){let Dt=Fr(C,o),Rs=Qr=>{if(!A)return;let Pm=C;for(let[h6,I6]of Object.entries(Qr))Pm=la(Pm,o,h6,I6??null);l.replaceComponent(A.zone,A.index,{...E,props:Pm})},Ds=jx(P.saved,P.old),m6=wx(Dt)??"",x6=Xu(Dt,G?.base??E2,Rs,Qu(k)).filter(Qr=>Qr.key==="fontSize"&&g(Qr.key));return J(Ft,{motion:Ge,body:J(O2,{region:Fe,sizePx:G?.base.sizePx??null,face:em(C,o,G,f),base:G?.base??null,source:W,slug:Ps(C),onBack:t,shows:g,ownLook:Gv(Dt),sizedStyle:J(w2,{style:g("style")?{value:m6,options:v2(Ds,u),onChange:Qr=>Rs(Qr?{textStyle:Qr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:x6})})})}return J(Ft,{motion:Ge,body:J(O2,{region:Fe,sizePx:G?.base.sizePx??null,face:em(C,o,G,f),base:G?.base??null,onFollowStyle:Lo?St:void 0,source:W,slug:Ps(C),onBack:t,shows:g})})}if(!A||!v)return ge?J("div",{className:"sf-note","aria-busy":"true"}):J(Pte,{onBack:t,partId:O,why:A?"no field":"no selector"});let Ye=G=>{l.replaceComponent(A.zone,A.index,{...E,props:G})},Ze=G=>{if(pa(G).hidden!==pa(le).hidden||!L){let Fe=_?dv(C,w,_,G):{...C,[w]:G};Fe&&Ye(Fe);return}zf({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??{}:C,ie=he?G=>l.replaceComponent(de.zone,de.index,{...$,props:G}):Ye,Ne=he?mo.kind:pr(E?.type,o),wo=Fr(De,Ne),ve=[{partKey:Ne,face:em(De,Ne,Qe,f),sizeGroup:Qe?.sizeGroup??null,base:Qe?.base??E2,style:wo}],Rt=Ste(ve,G=>G.sizeGroup),Qa=ff(Qe?.inks),yr=(G,Fe)=>{let Lo=De;for(let St of ve)Lo=la(Lo,St.partKey,G,Fe);ie(Lo)},Cm=G=>G?yr("textStyle",G):Fs({textStyle:null,role:null}),Fs=G=>{let Fe=De;for(let Lo of ve)for(let[St,Dt]of Object.entries(G))Fe=la(Fe,Lo.partKey,St,Dt??null);ie(Fe)},Bo=L==="text"||L==="textarea",{text:en,hidden:Zt}=pa(le),et=v?.[mte]?.label??o,ad=Zt?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:[J(lte,{}),J("span",{className:"sf-field-label sf-field-label--inline",children:c(et)}),Bo&&J(cte,{content:ad,children:J(fte,{"aria-pressed":Zt,"aria-label":ad,onClick:()=>Ze({text:en,hidden:!Zt}),children:Zt?J(C2,{name:"eye-off",size:14}):J(C2,{name:"eye",size:14})})})]}),Zr=!M&&K,nd=!!L&&(wT(v)||M||Zt||!K),er=em(De,Ne,Qe,f),km=er.kind==="role"?er.role:null,Sr=wx(wo)??VT(km),sd=jx(P.saved,P.old),vm=Object.entries(wo).filter(([G,Fe])=>G!=="role"&&G!=="textStyle"&&Fe!==void 0).length,ld=()=>{let G=De;for(let Fe of ve){let{role:Lo,textStyle:St}=Fe.style;G=Bv(G,Fe.partKey),Lo&&(G=la(G,Fe.partKey,"role",Lo)),St&&(G=la(G,Fe.partKey,"textStyle",St))}ie(G)},yt=Sr,id=XT(ve[0].style),Bs=yt?sd.find(G=>G.id===yt)?.name??yt:"",Ls=()=>{B(!1),yt&&(P.write(JT({saved:P.saved,old:P.old,styleId:yt,values:YT(ve[0].style)}),!0),ld())};return It(Cte,{sectionName:N?.label??E.type,onBack:t,tabs:G=>J(Ft,{motion:Ge,body:G}),textEditor:g("words")?J("div",{ref:b,className:"sf-part-text",children:nd?J(m2,{text:en,onTextChange:G=>Ze(Bo?{text:G,hidden:Zt}:G),multiline:uf(L),markup:L!=="plainText",styled:!1,style:ve[0].style,base:ve[0].base,setValue:Fs,colors:Qa,placeholder:IS(nv(v))??void 0,ariaLabel:c(et),head:Qt,typedOnCanvas:i===O}):L?Bo?Qt:null:J(rte,{field:v,name:o,value:qo,onChange:Ze,id:`sf-part-${e}-${o}`})}):void 0,children:[se&&g("sourceNote")&&J(tm,{source:se,slug:Ps(C),menuId:Zu(C)}),Zr&&J(w2,{style:g("style")?{value:Sr??"",options:v2(sd,u),onChange:G=>Cm(G||null),changed:vm>0,onEditStyles:r,onUpdateStyle:yt&&id?()=>B(!0):void 0}:void 0,font:g("font")?{value:wo.font??"",styleValue:md(ve[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:Ote(m,Sr),onChange:G=>yr("italic",G??null)}:void 0,cells:Xu(ve[0].style,ve[0].base,Fs,Qu(k)).filter(G=>g(G.key)),align:g("align")?Tte(wo,ve[0].base.align,Qu(k),yr):void 0,letterCase:g("letterCase")?{value:wo.case??"",styleValue:ve[0].base.case,onChange:G=>yr("case",G||null)}:void 0}),T&&yt&&J(h2,{styleName:Bs,onCancel:()=>B(!1),onConfirm:Ls}),Zr&&Rt===null&&g("fixedSizeHint")&&J(_2,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),F2(wte,G=>g(G)&&(G==="words"||(G==="sourceNote"?!!se:G==="fixedSizeHint"?Zr&&Rt===null:Zr)))&&J(qa,{})]})}function Tte(e,o,t,r){let a=xte("align",t),n=Rv(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Ote(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var E2={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 Rte}from"react/jsx-runtime";import{useCallback as Dte,useRef as Nte,useState as ji}from"react";import{InspectorIconButton as Mte}from"efficient-easel/chrome";import{useEasel as Hte}from"efficient-easel/easel";import{LoadingSpinner as Wte,PopupMenu as $te,PopupMenuItem as zte,PopupMenuLabel as kS}from"efficient-shell/ui";import{CopyToPageIcon as Ute}from"efficient-easel/icons";import{useEaselSession as jte}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Gte}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as Kte}from"efficient-easel/draw";import{newId as Ate}from"efficient-easel/data";import{isBackendError as Ts}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as U2}from"efficient-easel/screen/lib/session";var rm=ZP(),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 L2(e){return rm.get(e)}function R2(e){return rm.use(e)}function D2(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 N2(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var M2="SharedSection",Ete=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,zi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Ui=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function H2(e){if(e?.type!==M2)return null;let o=e.props?.section;return typeof o=="string"&&Ete.test(o)?o.toLowerCase():null}function W2(e){let o=[];for(let t of zi(e)){let r=H2(t),a=Ui(t);r&&a&&o.push({refId:a,section:r})}return o}function lm(e){let o=zi(e)[0];return o&&typeof o=="object"&&Ui(o)?o:null}function _te(e,o){return{type:M2,props:{id:e,section:o}}}function $2(e,o){let t=new Map,r=new Set,a=!1,n=zi(e).map(s=>{let l=H2(s),i=Ui(s);if(!l||!i||r.has(l))return s;let d=lm(o.get(l)),f=Ui(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 z2(e,o,t){let r=new Map,a=!1,n=zi(e).map(s=>{let l=Ui(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=zi(d).slice(1),m=lm(d);return r.set(i.section,m===s?d:{...d,content:[s,...f]}),a=!0,i.reference??_te(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function wS(e){return!!(e?.publish&&e.liveState)}function Fte(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 Bte(e,o){return async(t,r)=>{try{await mT()}catch(a){throw new Error(c("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?Ff({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),nT(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),sT(a,i.videoFrames),ca(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:wS(t)?Bte(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 Lte(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,f=new Map,m=new Map,u={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let w=L2(n.id);return w==="changed"||w==="never"||w===void 0&&l},S=w=>{u={...u,...w,docId:n?.id??null,unpublished:I(),sections:[...f.values()],rootProps:tT(n?.layout)};for(let _ of h)_()},P=(w,_,y)=>{_?f.set(w,{section:w,title:i.get(w)?.title??"",problem:_,holder:y}):f.delete(w)},T=w=>w&&typeof w=="object"&&!Array.isArray(w)?w:{},B=w=>s.has(w),k=()=>new Map([...i].map(([w,_])=>[w,_.layout])),g=()=>Ate("SharedSection"),b=(w,_,y,v)=>{let O=T(_);i.set(w,{layout:O,version:y,savedJson:JSON.stringify(O),title:v})},E={state:()=>u,subscribe:w=>(h.add(w),()=>{h.delete(w)})},A={sectionOf:w=>d.get(w)?.section??null,heldElsewhere:w=>{let _=d.get(w)?.section;return!!(_&&f.get(_)?.problem==="lock")},adopt:(w,_)=>{b(_.id,_.layout,_.layout_updated_at,_.title),d.set(w,{section:_.id,refId:g()}),m.set(_.id,_.used_on),S({})},place:w=>{if([...d.values()].some(v=>v.section===w.id))return null;let _=lm(T(w.layout)),y=typeof _?.props?.id=="string"?_.props.id:null;return!_||!y||!_.type?null:(b(w.id,w.layout,w.layout_updated_at,w.title),d.set(y,{section:w.id,refId:g()}),m.set(w.id,w.used_on),_)},usedOn:w=>m.get(w)??null,learn:w=>{for(let _ of w){m.set(_.id,_.used_on);let y=i.get(_.id);y&&(y.title=_.title);let v=f.get(_.id);v&&f.set(_.id,{...v,title:_.title})}S({})}},N=async(w,_)=>{for(let[y,v]of w){let O=i.get(y),C=JSON.stringify(v);if(!(!O||C===O.savedJson||f.get(y)?.problem==="lock"))try{let L=await e.save(y,{layout:v},{version:O.version,clientId:_??""});nm(y,L.live),O.layout=v,O.version=L.version,O.savedJson=C,P(y,null)}catch(L){Ts(L,"changed-elsewhere")?P(y,"conflict"):Ts(L,"lock-taken")?P(y,"lock",L.holder??void 0):P(y,"save")}}w.size&&ca(),S({})};return{resolve:async w=>{if(Ux(w===Br?null:E),Lx(w===Br?null:A),i=new Map,d=new Map,f=new Map,m=new Map,w===Br)return t.resolve(w);let _=!1,[y,v]=await Promise.all([t.resolve(w),e.load({slug:Br,...o}).catch(()=>(_=!0,null))]);if(v&&!bT(y?.layout)){am(v.id,v.live);let W=T(v.layout);n={id:v.id,layout:W,version:v.version,savedJson:""}}else n=null;if(l=!1,!y)return S({conflict:null,saveFailed:!1,loadFailed:_}),y;let O=T(y.layout),C=W2(O),L=await Promise.all(C.map(W=>e.load({id:W.section,...o}).catch(()=>null)));C.forEach((W,se)=>{let le=L[se];le?(am(le.id,le.live),b(W.section,le.layout,le.version,"")):(i.delete(W.section),f.set(W.section,{section:W.section,title:"",problem:"load"}))});let M=$2(O,k());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=rT(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(w,_,y,v)=>{if(!B(w))return t.saveLayout(w,_,y,v);let O=n,C=O?Bx(_,O.layout):{page:_,chrome:null},L=z2(C.page,d,k()),M=await t.saveLayout(w,L.page,y,v);if(await N(L.docs,v),!O)return M;let K=JSON.stringify(C.chrome);if(!C.chrome||K===O.savedJson||u.lockHolder)return M;try{let W=await e.save(O.id,{layout:C.chrome},{version:O.version,clientId:v??""});nm(O.id,W.live),ca(),O.layout=C.chrome,O.version=W.version,O.savedJson=K,l=!0,S({conflict:null,saveFailed:!1})}catch(W){Ts(W,"changed-elsewhere")?S({conflict:W.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Ts(W,"lock-taken")?S({lockHolder:W.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):S({saveFailed:!0})}return M},publish:t.publish?async(w,_)=>{let y=await t.publish(w,_),v=n;if(v&&B(w)&&!a&&e.publish&&I()&&!u.lockHolder){let O=await e.publish(v.id,v.version?{version:v.version}:void 0);sm(v.id,O.live),O.version!==null&&(v.version=O.version),l=!1,S({})}if(B(w)&&!a&&e.publish)for(let[O,C]of i){if(f.get(O)?.problem==="lock")continue;let L=await e.publish(O,C.version?{version:C.version}:void 0);sm(O,L.live),L.version!==null&&(C.version=L.version)}return y}:void 0,lock:r?{claim:async(w,_,y)=>{let v=await r.claim(w,_,y);if(!B(w))return v;let O=n;if(O)try{await r.claim(O.id,_,!1),u.lockHolder&&S({lockHolder:null})}catch(C){Ts(C,"lock-taken")&&S({lockHolder:C.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let C of i.keys())try{await r.claim(C,_,!1),f.get(C)?.problem==="lock"&&P(C,null)}catch(L){Ts(L,"lock-taken")&&P(C,"lock",L.holder??void 0)}return i.size&&S({}),v},release:async(w,_)=>{if(await r.release(w,_),!B(w))return;let y=n;y&&!u.lockHolder&&await r.release(y.id,_).catch(()=>{});for(let v of i.keys())f.get(v)?.problem!=="lock"&&await r.release(v,_).catch(()=>{})}}:void 0,pinnedChrome:E}}function im(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:i0(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 n5e(e,o,t){return e.update(o,d0(t))}function s5e(e,o=_o(),t=Lg(),r={}){let a=U2(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?Lte(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,...j2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Fte(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function l5e(e,o=_o(),t=Lg()){let r=U2(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),...j2(bS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function j2(e){return{resolve:o=>(Ux(null),Lx(null),e(o))}}var SS="This editor's backend has no website templates.";function qte(e,o,t){let r=Gte(e,void 0,o);return t?.(r)??r}function G2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=ji(!1),[i,d]=ji(null),f=jte(),m=Hte(A=>A.config.components),[u,h]=ji(!1),[I,S]=ji(null),P=Nte(null),[T,B]=ji(null),k=Dte(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=P.current?.getBoundingClientRect();A&&B({top:A.bottom+6,right:Math.max(8,window.innerWidth-A.right)}),d(null),h(!1),k(),l(!0)},b=(i??[]).filter(A=>A.slug!==o),E=async A=>{if(I)return;S(A.slug);let N=qte(e,m,f.documentHooks?.storedNode),w=await a(()=>Vte(_o(f).pages,A,N));S(null),l(!1),n?.(w?c("Duplicated to \u201C{name}\u201D",{name:A.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),w?"success":"error")};return CS(Rte,{children:[Bt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Bt(Mte,{buttonRef:P,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:g,children:Bt(Ute,{size:15})})}),s&&T&&Bt($te,{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(kS,{children:c("Duplicate to page")}),u?Bt(kS,{children:c("Couldn\u2019t load pages")}):i===null?Bt(Wte,{label:c("Loading\u2026")}):b.length===0?Bt(kS,{children:c("No other pages")}):b.map(A=>CS(zte,{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 Vte(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===Kte);s.splice(l===-1?s.length:l,0,QP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as wre}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Cre}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as L4e,isSelectionMode as ES}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as kre}from"efficient-easel/draw/client";import{jsx as Gi,jsxs as Yte}from"react/jsx-runtime";import{SettingsDrill as Xte}from"efficient-easel/panel";import{UiIcon as Jte}from"efficient-easel/draw/client";var Zte="Not shown on the page";function Qte({part:e,onOpen:o}){return Gi(Xte,{name:c(e.label),preview:e.offPage?c(Zte):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?Gi("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:Gi(Jte,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function vS(e){return e.filter(o=>!o.identifier)}function K2({parts:e,onOpen:o,heading:t=!0}){let r=vS(e);return r.length?Yte("div",{className:"sf-entries",children:[t?Gi("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>Gi(Qte,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as vre,ROOT_ZONE as n5}from"efficient-easel/draw";import{newId as ere}from"efficient-easel/data";import{HEADER_TYPE as Ko,FOOTER_TYPE as Re,newNodeId as ore}from"efficient-easel/draw";function dm(){return{type:Ko,props:{id:ore(Ko)}}}var q2=[{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"}],tre=q2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),rre="FooterGroup",V2="blocks";function Y2(e){return e===Re?q2:e===rre?tre:null}function fm(){let e=(o,t)=>({type:o,props:{id:ere(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...tP}),e("FooterPayment",{...If})]}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 X2=()=>null,J2=()=>c("Changed on every page");function cm(e,o){let t=KC(e,o);if(t)return t;let r=mP(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 nre,jsxs as sre}from"react/jsx-runtime";import{useState as lre}from"react";import{createNode as ire,newId as dre}from"efficient-easel/data";import{useEasel as fre}from"efficient-easel/easel";import{Banner as cre,Button as TS}from"efficient-shell/ui";import{useScreenDocument as pre}from"efficient-easel/screen/components/ScreenDocumentContext";var are=["FooterPayment"];function Z2(e,o){let{id:t,...r}=e.props;for(let a of Nt(e))r[a]=r[a].map(n=>Z2(n,o));return o(e.type,r)}var Ki=(e,o)=>{if(!are.includes(e.type))return null;Qp();let t=Hr(e.type);return t?Ea({type:e.type,props:{...e.props}},t).nodes.map(r=>Z2(r,o)):null};function Q2(){let{appState:e,dispatch:o,config:t}=fre(f=>f),{readOnly:r}=pre(),[a,n]=lre(!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)=>ire(t,f,m),d=()=>{let f=pi(l,i,dre(ao),Ki);o({type:"setData",data:m=>({...m,content:[...yf(m.content,f)]}),recordHistory:!0}),n(!1)};return pm(cre,{tone:"info",title:c("This footer uses the old layout"),action:a?sre(nre,{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 ure}from"react/jsx-runtime";import{InspectorUpLevel as e5}from"efficient-easel/chrome";function o5({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Ku(),n=ks(e,o,"picture");return ure("div",{children:[o!=="media"?OS(e5,{inline:!0,name:c(xr.media),onSelect:()=>a(va(e,"media"))}):OS(e5,{inline:!0,name:c(t),onSelect:r}),OS(Ft,{part:o,motion:n,itemWord:c(xr[o])})]})}import{HintsToggle as Pre,SettingsSwitch as Tre,hintsFoldClass as Ore}from"efficient-easel/panel";import{useHints as Ere}from"efficient-easel/screen/lib/hints";var l5={kind:"header"},AS={kind:"website"},i5={kind:"website",tab:Hf,revealPageGroup:!0},d5={kind:"chat"},f5={kind:"social"},qi="Part";function _re(e){return c("Part of {name}",{name:c(e)})}function Are(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?_re(r.label):c(qi)}}function Fre(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 c5({what:e}){let o=Fre(e);return Jr("div",{className:"sf-note",children:[we("p",{children:we("strong",{children:o.title})}),Jr("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=Vl[e];return{name:xr[e],kindLabel:qi,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=s5({name:c(Xc(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(o5,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Bre={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(Wf,{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(VH,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>we(e2,{unavailable:we(c5,{what:"Social link"})})},ticker:{name:Ma,kindLabel:qi,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Are(o,e.heroId,c(Ma)):null,render:e=>we(f2,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:_S("media"),heroImage:_S("image"),heroImage2:_S("image2"),part:{name:qi,kindLabel:qi,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?Nn(t.fields[r],a):t.fields[r],s=ps(t.type),l=s?js(s,e.propKey):null,i=s&&l?s[l].label:HO[e.propKey],d=i?c(i):cv(c(hf(gv(n??{},r))),a),f=s5({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(B2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Lre=new Set(["header","website","chat"]);function Rre(e,o){if(e==="selection")return null;let t=Bre[e];return Lre.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>we(c5,{what:t.name})}:t}function p5({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}=wre(),{rows:S}=gl(),P=S?.find(de=>de.slug===f)??null,T=xre(),B=Object.keys(T.fields).some(de=>!de.startsWith("_")&&!Gx.includes(de)),{websiteName:k}=vo(),g=Cre({readOnly:h}),{select:b}=kre(),{selectedItem:E,getItemById:A,getSelectorForId:N,config:w,appState:_}=mre(de=>de),y=Sre(w,E?{type:E.type,props:E.props}:null),v=E?bv(y??w.components[E.type]?.fields,E.props):[],O=de=>w.components[de]?.label??de,C=E?N(E.props.id):void 0,L=Rre(e.kind,l),M=bre(),K={capabilities:l,tokenRef:i,hostPanels:M.chrome?.panels,describeNode:de=>{let he=A(de);if(!he)return null;let De=w.components[he.type];return{type:he.type,label:De?.label??he.type,fields:De?.fields??{},props:he.props??{}}},siteId:m,websiteName:k??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},W=L?.head?.(e,K)??null,se=zH({kind:P?.kind,pageName:P?.label}),le=W?.name??(L?c(L.name):E?c(O(E.type)):se.name),ee=W?.kindLabel??(L?c(L.kindLabel):E?C&&C.zone!==n5?c("Block"):c("Section"):se.kindLabel),Ie=L?L.icon:E?E.type:"page",ae=ES(e)&&E?Hi(E.type):null,me=!!E&&!!C&&C.zone===n5&&E.type!==Re&&E.type!==vre,ge=cm(_?.data,E),Ge=()=>{ge||C&&g.duplicateComponent(C.zone,C.index)},Ve=()=>{C&&(g.removeComponent(C.zone,C.index),g.select(null))},Eo=E?w.components[E.type]?.defaultProps?.previewHover:void 0,Ye=ES(e)&&!!E&&!!C&&Eo!==void 0,Ze=Ye&&E.props.previewHover===!0,qo=()=>{!E||!C||g.replaceComponent(C.zone,C.index,{...E,props:{...E.props,previewHover:!Ze}})},{shown:Qe,setShown:mo}=Ere(),$=!!(L||E||B);return Jr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Ore(Qe)}`.trim(),children:[we(Ire,{icon:we(Ga,{type:Ie,size:15}),name:le,kind:ee,actions:!a&&ES(e)&&E&&E.type!==Re?Jr(t5,{children:[we(r5,{label:c("Duplicate section"),title:ge??void 0,disabled:ge!==null,onClick:Ge,children:we(gre,{size:15})}),me&&l.hasSiteSettings&&we(G2,{node:E,currentSlug:f,siteId:m??void 0,tokenRef:i,runAuthed:u,onNotify:n}),we(r5,{label:c("Remove section"),danger:!0,onClick:Ve,children:we(yre,{size:15})}),s?we(a5,{side:"right",onHide:s,divider:!0}):null]}):s?we(a5,{side:"right",onHide:s}):void 0}),Ye&&Jr("div",{className:"sf-preview-pin",children:[Jr("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(Tre,{checked:Ze,onChange:qo,ariaLabel:c("Preview hover state")})]}),Jr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[L?L.render(e,K):E?Jr(t5,{children:[E.type===Re&&l.hasSiteSettings&&we(Q2,{}),we(uT,{children:we(Ft,{entries:we(K2,{parts:v,heading:!1,onOpen:de=>b(jt(E.props.id,de))}),entryCount:vS(v).length,itemWord:le})}),ae&&we(tm,{source:ae,slug:Ps(E?.props),menuId:Zu(E?.props)})]}):B?we(Ft,{omit:Gx}):we(hre,{variant:"none",icon:!1,message:c("Select a section or block to edit it.")}),$&&we(Pre,{shown:Qe,onChange:mo,label:c("Show hints")})]})]})}import{jsx as p,jsxs as F,Fragment as I5}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 Dre={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 u5({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return F(I5,{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 ke({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 m5({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 Vi({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 x5({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 Nre={wheelslisting:p(ke,{title:"All wheels",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>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(ke,{title:"Tyres that suit",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>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(ke,{title:"Available sizes",children:p("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>p("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?x.rust:x.rule}`,color:o===0?x.rust:x.text,background:o===0?x.paper:x.card},children:e},e))})}),tyrefitment:F(ke,{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(ke,{title:"Who do you need?",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>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(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>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(ke,{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(ke,{title:"Find us",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>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(ke,{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(x5,{children:"SEND"})]})}),appointmentbooking:p(ke,{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(ke,{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(x5,{children:"POST"})]})}),submitbuild:p(ke,{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(ke,{title:"Recurring columns",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>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(ke,{title:"Latest posts",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[x.inkSoft,x.inkSoft2,"Madigan Line, four days"],[x.rust,x.warm,"Why offset beats width"]].map(([e,o,t])=>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(ke,{title:"At a glance",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>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(ke,{title:"Key features",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>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(Vi,{n:"27k",label:"Rigs"}),p(Vi,{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(ke,{title:"Load vs weight",children:[p("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>p("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?x.rust:x.mark1}},o))}),p("span",{style:{height:1,background:x.rule,marginTop:-4}})]}),mockup:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...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(ke,{title:"Our story",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>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(ke,{title:"Photo gallery",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.inkSoft,x.ink],[x.paper2,x.mark2],[x.ink,x.inkSoft2],[x.warm,x.paper2],[x.mark2,x.inkSoft]].map(([e,o],t)=>p("div",{style:{borderRadius:3,...Ae(e,o,140+t*22)}},t))})}),gallery:F(ke,{title:"Gallery",children:[p("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?x.text:x.muted,borderBottom:`1.5px solid ${o===0?x.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.ink,x.inkSoft],[x.paper2,x.mark2]].map(([e,o],t)=>p("div",{style:{borderRadius:3,...Ae(e,o,150+t*20)}},t))})]}),ordersummary:F(ke,{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(ke,{title:"Delivery",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>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(Vi,{n:"27k",label:"Rigs fitted",tone:x.onInk}),p(Vi,{n:"12",label:"Years",tone:x.onInk}),p(Vi,{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(m5,{}),p("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:F(ke,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[x.inkSoft,x.inkSoft2],[x.rust,x.warm],[x.ink,x.inkSoft],[x.mark2,x.mark1]].map(([e,o],t)=>p("div",{style:{flex:1,borderRadius:3,...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(m5,{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(ke,{title:"What you get",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>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(ke,{title:"Questions",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>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(u5,{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(u5,{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(ke,{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(ke,{title:"Shop by category",children:p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",x.inkSoft,x.inkSoft2],["Tyres",x.rust,x.warm],["Lift kits",x.ink,x.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:x.onInk,...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(ke,{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(ke,{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))})},h5={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(I5,{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 g5({type:e}){let o=Dre[e]??"",t=Nre[o]??h5[o]??h5.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 Os,jsxs as y5}from"react/jsx-runtime";import Mre from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Hre}from"efficient-easel/rail";import{Tooltip as Wre}from"efficient-shell/ui";import{HintsToggle as $re,hintsFoldClass as zre}from"efficient-easel/panel";import{useHints as Ure}from"efficient-easel/screen/lib/hints";function S5({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Rn(),{shown:d,setShown:f}=Ure();return y5("div",{className:`sf-styles ${zre(d)}`.trim(),children:[Os(Mre,{icon:Os(Hre,{}),title:c("Styles"),context:Os(Wre,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:i,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Os("span",{className:"sf-name-text",children:i})})}),y5("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Os(Wf,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Os($re,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as po,jsxs as Ja,Fragment as Vre}from"react/jsx-runtime";import{Fragment as A5,useEffect as F5,useRef as WS}from"react";import{useTreeDrag as B5}from"efficient-easel/drag";import{GlobeIcon as Yre,ImageIcon as Xre,LocationIcon as Jre,MapIcon as Zre,TextLinesIcon as Qre,TrashIcon as L5}from"efficient-easel/icons";import{Subtree as R5,TreeRow as Xi,TreeRowAction as D5,TreeSeam as N5}from"efficient-easel/tree";import{useEaselStrings as eae}from"efficient-easel/strings";import{isSelectionMode as oae}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as jre}from"react";var Gre={level:"groups"},w5=Gre,RS=new Set;function Lt(e){w5=e;for(let o of RS)o()}function Kre(e){return RS.add(e),()=>{RS.delete(e)}}var b5=()=>w5;function C5(){return jre(Kre,b5,b5)}var Yi=e=>String(e?.group??""),DS=new WeakMap,qre=0;function xm(e){let o=DS.get(e);return o||(o=`loc${++qre}`,DS.set(e,o)),o}var k5=(e,o)=>o||e||"Ungrouped",v5={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
337
+ Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Xa(e){return kd(e,Yi,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),P5=(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(Yi(e[a])===o){if(r===t)return a;r++}return-1}function MS(e,o,t){let r=Xa(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=P5(o<t?t-1:t,0,r.length);return r.splice(n,0,a),NS(r)}function HS(e,o,t,r,a){let n=Xa(e),s=n.find(m=>m.key===o),l=n.find(m=>m.key===r);if(!s||!l||t<0||t>=s.cards.length)return e;let[i]=s.cards.splice(t,1),d=o===r?i:{...i,group:l.key,groupName:l.name};d!==i&&DS.set(d,xm(i));let f=P5(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),NS(n)}function T5(e,o){let t=Xa(e),r=t.find(n=>n.key===o),a={...v5,group:o,groupName:r?.name??""};return r?(r.cards.push(a),NS(t)):[...e,a]}function O5(e){let o=new Set(Xa(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...v5,group:r,groupName:""}],key:r}}function E5(e,o){return e.filter(t=>Yi(t)!==o)}function _5(e,o,t){let r=hm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function p6e(e,o,t){let r=e.flatMap((s,l)=>Yi(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 u6e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Yi(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 M5(e,o){let{readOnly:t,selected:r}=o,a=eae().tree,n=o.data?.content??[],s=oae(e),l=WS(null);F5(()=>{let k=r?.type===gm?String(r.props.id):null;k&&k!==l.current&&Lt({level:"groups"}),l.current=k},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:f}=sR(),m=C5(),u=(k,g)=>{let b=n[k];b&&o.replace(k,{type:b.type,props:{...b.props,locations:g}})},h=k=>{let g=n[k]?.props?.locations;return Array.isArray(g)?g:[]},I=B5({keyOf:k=>`group:${k.si}:${k.index}`,readOnly:!!t,canDrop:(k,g)=>g.parentId===Im(k.si).parentId&&g.slot==="groups",onDrop:(k,g)=>{u(k.si,MS(h(k.si),k.index,g.index)),m.level==="city"&&Lt({level:"groups"})},onStep:(k,g)=>{u(k.si,MS(h(k.si),k.index,g<0?k.index-1:k.index+2)),m.level==="city"&&Lt({level:"groups"})}}),S=B5({keyOf:k=>`city:${k.si}:${k.group}:${k.index}`,readOnly:!!t,canDrop:(k,g)=>g.parentId===Im(k.si).parentId&&g.slot.startsWith("cities:"),onDrop:(k,g)=>{let b=g.slot.slice(7);u(k.si,HS(h(k.si),k.group,k.index,b,g.index)),Lt({level:"group",key:b})},onStep:(k,g)=>{u(k.si,HS(h(k.si),k.group,k.index,k.group,g<0?k.index-1:k.index+2)),m.level==="city"&&Lt({level:"group",key:k.group})}}),P=WS(n);P.current=n;let T=WS(()=>{});F5(()=>{f(k=>{let g=au(k);if(!g)return;let b=P.current.findIndex(E=>E.props?.id===g.nodeId);b<0||T.current(b,{level:g.part,index:g.index})})},[f]);let B=(k,g)=>{l.current=n[k]?.props?.id??null,o.select(k),Lt(g),e.reveal();let b=n[k]?.props?.id;typeof b=="string"&&(g.level==="city"||g.level==="image"||g.level==="map")?d(ru(b,g.index,g.level)):d(null),typeof b=="string"&&o.scrollTo(b)};return T.current=B,{renderLocationTree:(k,g,{rowClick:b,isCollapsed:E,toggleCollapse:A})=>{let N=h(g),w=Xa(N),_=String(k.props.id),y=s&&r?.props.id===_,v=C=>po(N5,{...t?{}:I.seam({place:{...Im(g),index:C}})},`seam:${_}:groups:${C}`),O=(C,L)=>po(N5,{...t?{}:S.seam({place:{...$S(g,C),index:L}})},`seam:${_}:cities:${C}:${L}`);return Ja(Vre,{children:[po(Xi,{icon:po(Qre,{size:13}),name:c("Texts"),words:a,onSelect:()=>B(g,{level:"texts"}),selected:y&&m.level==="texts",rowProps:{onClick:b(()=>B(g,{level:"texts"}))}}),w.map((C,L)=>{let M=`${_}::grp::${C.key}`,K=E(M),W=y&&m.level==="group"&&m.key===C.key,se=C.name||C.key?k5(C.key,C.name):c("Ungrouped"),le={...$S(g,C.key),index:C.cards.length},ee=S.row({item:{si:g,group:C.key,index:-1},place:le,into:le,canDrag:!1},{onClick:b(()=>B(g,{level:"group",key:C.key}))}),Ie=I.row({item:{si:g,index:L},place:{...Im(g),index:L}},ee.rowProps);return Ja(A5,{children:[L===0&&v(0),po(Xi,{icon:po(Yre,{size:13}),name:se,words:a,onSelect:()=>B(g,{level:"group",key:C.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(D5,{kind:"delete",label:$t("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",C.cards.length,{label:se}),onClick:()=>{u(g,E5(N,C.key)),Lt({level:"groups"})},children:po(L5,{size:15})}),rowProps:Ie.rowProps,count:C.cards.length,countLabel:$t("{n} city","{n} cities",C.cards.length)}),!K&&Ja(R5,{children:[C.cards.map((ae,me)=>{let ge=hm(N,C.key,me),Ge=y&&m.level==="city"&&m.index===ge,Ve=String(ae?.name??"")||c("City"),Eo=`${_}::city::${xm(ae)}`,Ye=E(Eo),{rowProps:Ze,...qo}=S.row({item:{si:g,group:C.key,index:me},place:{...$S(g,C.key),index:me}},{onClick:b(()=>B(g,{level:"city",index:ge}))});return Ja(A5,{children:[me===0&&O(C.key,0),po(Xi,{icon:po(Jre,{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(D5,{kind:"delete",label:c("Delete {name}",{name:Ve}),onClick:()=>{u(g,_5(N,C.key,me)),Lt({level:"group",key:C.key})},children:po(L5,{size:15})}),rowProps:Ze}),!Ye&&Ja(R5,{children:[po(Xi,{icon:po(Xre,{size:13}),name:c("Image"),words:a,onSelect:()=>B(g,{level:"image",index:ge}),selected:y&&m.level==="image"&&m.index===ge,rowProps:{onClick:b(()=>B(g,{level:"image",index:ge}))}}),po(Xi,{icon:po(Zre,{size:13}),name:c("Map"),words:a,onSelect:()=>B(g,{level:"map",index:ge}),selected:y&&m.level==="map"&&m.index===ge,rowProps:{onClick:b(()=>B(g,{level:"map",index:ge}))}})]}),O(C.key,me+1)]},xm(ae))}),Ja("button",{type:"button",className:"sf-add-card",onClick:()=>{let ae=T5(N,C.key);u(g,ae);let me=Xa(ae).find(ge=>ge.key===C.key);Lt(me&&me.cards.length?{level:"city",index:hm(ae,C.key,me.cards.length-1)}:{level:"group",key:C.key})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),v(L+1)]},M)}),Ja("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:C,key:L}=O5(N);u(g,C),B(g,{level:"group",key:L})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:k=>{k?.type===gm&&Lt({level:"groups"})}}}import{useEffect as nae,useRef as sae}from"react";import{createNode as US,newId as jS}from"efficient-easel/data";import{useEaselApi as lae}from"efficient-easel/easel";import{useScreenDocument as iae}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as dae}from"efficient-easel/screen/lib/session-context";import{useEffect as z5,useRef as tae}from"react";import{useEasel as rae}from"efficient-easel/easel";import{ROOT_ZONE as zS}from"efficient-easel/draw";var Ji={};function H5(e){return Ji={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Ji}function W5(e){Ji===e&&(Ji={})}function Es(){return Ji}function $5(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 j5(e){let o=rae(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=vo(),i=tae(new Set);z5(()=>{let d=U5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&aae(N1(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),z5(()=>{let d=H5(U5({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>W5(d)},[t,r,a,n,s,l])}function U5(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=$5({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 aae(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 _s,missingPinnedTypes as fae,pinnedDuplicateIds as GS}from"efficient-easel/draw";function G5(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function K5(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 q5(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(yf(r,t)),!0)}function V5(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=iae(),f=dae(),{hasSiteSettings:m,hasPinnedChrome:u}=r;j5(e);let h=!!r.editsPinnedInPlace&&a!==Br,I=a===Br,S=lae().getState,P=sae(null);nae(()=>{if(!G5({docId:n,saveStatus:l,seededDocId:P.current})||(P.current=n,!u))return;let T=S().appState.data,B=T.content,k=s?.content??[],g=(N,w)=>N.some(_=>_?.type===w);if(!m){let N=new Set(GS(B)),w=N.size?B.filter(y=>!N.has(y.props.id)):B;if(N.size&&e.setDocument({...T,content:w}),I)return;let _=fae(w,k);if(_.includes(Re)){let y=w.length,v=e.insertSection(Re,y);e.replaceComponent(_s,y,{type:Re,props:{id:v,blocks:fm()}})}_.includes(Ko)&&e.insertNode(_s,0,dm());return}if(I){let N=pP(B);if(N!==B&&e.setDocument({...T,content:[...N]}),!N.find(w=>w.type===Re)&&!g(k,Re)&&!g(N,ao)&&!g(k,ao)){let w=(y,v)=>US(o,y,v),_={type:Re,props:{blocks:fm()}};e.insertNode(_s,N.length,pi(_,w,jS(ao),Ki))}return}if(h){let N=!!t?.pinnedChrome?.state().docId,w=K5(B,{hasChromeDoc:N}),_=new Set([...w.remove,...GS(B.filter(v=>!w.remove.includes(String(v.props.id))))]),y=_.size?B.filter(v=>!_.has(String(v.props.id))):B;if(y.length!==B.length&&e.setDocument({...T,content:y}),w.seedFooter&&!g(k,Re)&&!g(k,ao)){let v=(C,L)=>US(o,C,L),O={type:Re,props:{blocks:fm()}};e.insertNode(_s,y.length,pi(O,v,jS(ao),Ki))}if(w.seedHeader&&!g(k,Ko)){let v=y[0]?.type===Mo?1:0;e.insertNode(_s,v,dm())}if(w.seedSiteHeader&&!g(k,Mo)&&!g(k,Re)&&!g(k,ao)){let v=n;q5({blocks:mn(f),make:(O,C)=>US(o,O,C),id:jS(Mo),siteId:i??null,token:d.current,latest:()=>S().appState.data.content,stillOpen:()=>P.current===v,write:O=>{let C=S().appState.data;e.setDocument({...C,content:[...O]})}})}return}let b=B.filter(N=>N.type!==Re),E=new Set(GS(b)),A=E.size?b.filter(N=>!E.has(N.props.id)):b;A.length!==B.length&&e.setDocument({...T,content:A}),!g(A,Ko)&&!g(k,Ko)&&e.insertNode(_s,0,dm())},[n,l,s,S,e,m,u,I,h,t,f,i,d])}import{useEffect as a4,useMemo as Iae,useRef as n4}from"react";import{useEasel as gae}from"efficient-easel/easel";import{newId as yae}from"efficient-easel/data";import{useEaselHost as Sae}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as cae}from"efficient-easel/screen/lib/host";import{isNode as J5}from"efficient-easel/data";function Zi(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function pae(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function KS(e,o,t,r){e.forEach((a,n)=>{if(J5(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 uae(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 Z5(e,o){return uae(e).find(t=>String(t.node.props.id)===o)}function Q5(e,o,t){if(!t)return null;let r=Z5(o,t);if(!r)return null;let a=Zi(e,r.node.type),n=r.parent?`${Zi(e,r.parent.type)} \xB7 ${pae(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var mae=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 xae(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[cae]: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=mae(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=e4(l))}return r}function e4(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=xae(r);a&&(o[t]=a)}return o}function o4(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Zi(e,t),fields:e4(r.fields),...t4(t)?{retired:!0}:{}});return o}function t4(e){return eo(pb,e)}function Y5(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function hae(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=>J5(t)&&String(t.props.id)===o)}function X5(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 r4(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=Z5(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=hae(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}`),t4(l.type)&&d(`${Zi(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=us(l.type),m=Object.keys(l.props??{}).filter(h=>h!=="id");f&&m.length&&d(`${Zi(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=>Y5(e,h),r,a):{type:l.type,props:{...Y5(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(X5(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(X5(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 s4(){let e=Sae(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=gae(u=>u),s=n,l=n4({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=n4(new Map),d=t?.props?.id,f=Iae(()=>Q5(s,o.data,d),[s,o.data,d]),m=f?JSON.stringify(f):"";a4(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,m]),a4(()=>e.subscribe(u=>{let{appState:h,dispatch:I,history:S,blockConfig:P}=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:o4(P)});return}case"storefront-editor:apply-page-edits":{let T=VS(u);if(!T)return;let B=Array.isArray(u.ops)?u.ops:[],k=B.length?r4(P,h.data,B,yae,Es()):{ok:!1,reason:"no changes"};k.ok&&(I({type:"setData",data:k.document,recordHistory:!0}),i.current.set(T,JSON.stringify(k.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:T,applied:k.ok,reason:k.ok?null:k.reason});return}case"storefront-editor:undo-page-edits":{let T=VS(u);if(!T)return;let B=i.current.get(T),k=B!==void 0&&B===JSON.stringify(h.data.content??[]);k&&S.hasPast&&(S.back(),i.current.delete(T)),e.send("storefront-editor:page-edits-result",{requestId:T,applied:k&&S.hasPast,reason:k?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 d4,useState as f4}from"react";var ym=new Map;async function bae(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 l4(e,o){let t=ym.get(o);return t||(t=bae(e,o),ym.set(o,t),t.catch(()=>{ym.get(o)===t&&ym.delete(o)})),t}var wae=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function YS(e){return!!e&&wae.test(e)}function i4(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===cT?"/":`/${encodeURIComponent(o)}`;if(!YS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function c4(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=f4(null),[s,l]=f4(null),i=IP();d4(()=>{try{l(new URL(gP()).hostname)}catch{l(null)}},[i]),d4(()=>{if(!YS(s)||!t||!r){n(null);return}let f=!1;return l4(r,t).then(m=>{f||n(m)}),()=>{f=!0}},[s,t,r]);let d=i4({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as Qi}from"react/jsx-runtime";import{useEffect as Cae,useRef as p4,useState as kae}from"react";import{ExternalIcon as u4}from"efficient-easel/icons";import{EaselIconButton as vae}from"efficient-easel/chrome";import{Tooltip as Pae,iconButtonClasses as Tae}from"efficient-shell/ui";import{useSettledPress as Oae}from"efficient-easel/easel";import{useScreenDocument as Eae}from"efficient-easel/screen/components/ScreenDocumentContext";async function _ae({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 m4({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Eae(),a=p4(r);a.current=r;let n=Oae(),[s,l]=kae(!1),i=p4(null);if(Cae(()=>()=>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),_ae({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return Qi(vae,{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:Qi(u4,{})})}return Qi(Pae,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:Qi("a",{className:Tae({className:"es-iconbtn"}),href:e,...Ol,"aria-label":c("Preview the live site in a new tab"),children:Qi(u4,{})})})}import{createElement as Aae,useCallback as Fae,useEffect as x4,useRef as h4,useState as Bae}from"react";import{ClockIcon as Lae}from"efficient-shell/icons/efficient";import{useScreenDocument as Rae}from"efficient-easel/screen/components/ScreenDocumentContext";function I4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Rae(),s=D2(R2(o??null),r),l=Fu(Bu()),i=n.siteLiveState;x4(()=>{if(i)return Dx(i),ca(0),()=>Dx(null)},[i]);let d=Bf(),[f,m]=Bae(!1),u=h4(e);u.current=e;let h=h4(!0);x4(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=Fae(()=>{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",P=yS({live:S,onPress:I,busy:f,goingLive:N2(d?.changes??[])});return n.siteVersions?{...P,menuItems:Dae()}:P}return yS({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Dae(){return[{key:"version-history",label:c("Version history"),icon:Aae(Lae),onSelect:YM}]}import{jsx as Q,jsxs as Qo,Fragment as td}from"react/jsx-runtime";import{useCallback as Nae,useEffect as Mae,useId as S4,useRef as Hae,useState as gt}from"react";import{useSettledAction as Wae}from"efficient-easel/easel";import{Avatar as $ae,Banner as ed,Button as Za,ColoredBadge as XS,Dialog as ZS,DropdownMenu as zae,FormField as b4,iconButtonClasses as Uae,Inline as JS,Input as jae,ListRow as Gae,Select as Kae,SortableList as qae,Stack as od}from"efficient-shell/ui";import{EditIcon as Vae,EyeIcon as g4,MenuIcon as Yae,MoreIcon as Xae,PageIcon as w4,RevertIcon as y4,StylesIcon as Jae}from"efficient-shell/icons/efficient";import{useScreenDocument as C4}from"efficient-easel/screen/components/ScreenDocumentContext";var Zae={page:w4,menu:Yae};function Qae(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function ene(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 one({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=S4();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,m=rH(e),u=d?c("Put your drafts back?"):o?c("Restore {page} from version {n}?",{page:o.name,n:f}):c("Restore version {n}?",{n:f}),h=d?c("Your drafts go back to how they were before the restore."):o?c("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):m?c("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:m}):c("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return Q(ZS,{open:!0,onClose:()=>{r||n()},size:"sm",title:u,footer:Qo(td,{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(od,{gap:4,children:[o&&e.pages.length>1?Q(b4,{label:c("Page"),htmlFor:i,children:Q(Kae,{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(ed,{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(ed,{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(ed,{tone:"danger",children:a}):null]})})}function tne({version:e,onCancel:o,onSave:t}){let r=S4(),[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(ZS,{open:!0,onClose:()=>{i||o()},size:"sm",title:c("Name this version"),footer:Qo(td,{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(b4,{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(jae,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function rne({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(g4,{}),onSelect:r}],...i?[{key:"restore",label:l?c("Put these drafts back"):c("Restore whole website"),icon:Q(y4,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:Q(w4,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:Q(Vae,{}),onSelect:s}]];return Q(Gae,{title:Qo("span",{className:"sf-version-title",children:[Q("span",{children:tH(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(zae,{align:"end","aria-label":c("More"),items:f,triggerClassName:Uae({variant:"ghost",size:"sm"}),trigger:Q(Xae,{})}),below:Qo(od,{gap:3,children:[Qo(JS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[Q($ae,{name:e.createdBy,size:"xs"}),Q("span",{children:e.createdBy}),Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:nH(e.createdAt)}),d?Qo(td,{children:[Q("span",{"aria-hidden":"true",children:"\xB7"}),Q("span",{children:$t("{n} change","{n} changes",d)})]}):null]}),o?Qo(od,{gap:3,children:[d?Q(od,{gap:2,children:e.changes.map(m=>{let u=Zae[m.kind]??Jae;return Qo(JS,{gap:2,align:"center",children:[Q(u,{size:16}),Q("span",{children:aH(m)})]},`${m.kind}:${m.id}`)})}):null,Qo(JS,{gap:2,children:[l?null:Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(g4,{}),onClick:r,children:c("Preview")}),i?Q(Za,{variant:"secondary",size:"sm",leftIcon:Q(y4,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function ane({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=C4(),[l,i]=gt(null),[d,f]=gt(!1),[m,u]=gt(null),[h,I]=gt(null),[S,P]=gt(!1),[T,B]=gt(null),[k,g]=gt(null),[b,E]=gt(!1),A=Hae(0),N=Nae(()=>{let v=++A.current;f(!1),t.list().then(O=>{v===A.current&&i(O)},()=>{v===A.current&&f(!0)})},[t]);Mae(()=>{e&&N()},[e,N]);let w=v=>{E(!1),ene(t,v.id).catch(()=>E(!0))},_=async()=>{if(!(!h||S)){P(!0),B(null);try{await eH({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(v){B(v instanceof Bi?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{P(!1)}}},y=Wae({onPress:()=>{_()},busy:S});return Qo(td,{children:[Q(ZS,{open:e,onClose:o,size:"xl",title:c("Version history"),description:Qo(td,{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(od,{gap:3,children:[b?Q(ed,{tone:"danger",onDismiss:()=>E(!1),children:c("The preview did not open. Try again.")}):null,d?Q(ed,{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(qae,{"aria-label":c("Versions"),spacing:"comfortable",children:l.map(v=>Q(rne,{version:v,expanded:m===v.id,onToggle:()=>u(O=>O===v.id?null:v.id),onPreview:()=>w(v),onRestore:()=>{B(null),I({version:v,page:null})},onRestorePage:()=>{B(null),I({version:v,page:Qae(v,s)})},onName:()=>g(v)},v.id))})]})}),Q(one,{version:h?.version??null,page:h?.page??null,waiting:r,busy:y.busy===!0,error:T,onCancel:()=>I(null),onConfirm:y.onPress,onPage:v=>I(O=>O&&{...O,page:O.version.pages.find(C=>C.id===v)??O.page})}),Q(tne,{version:k,onCancel:()=>g(null),onSave:async v=>{await t.name(k.id,v),g(null),N()}})]})}function k4(){let{adapter:e,hasUnsavedEdits:o}=C4(),t=e.siteVersions,r=JM(),a=Bf();return t?Q(ane,{open:r,onClose:XM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as d6}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as lWe,categoryLabel as iWe,paletteWithoutPinned as dWe,pinnedSection as fWe}from"efficient-easel/screen/lib/document/palette-sections";var nne={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 v4(e){return z(nne,e)?.label}var P4=xb;function sne(e){let o=su.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=lI.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:lI.sectionAccent}}}var lne={Hero:{[Ql]:{newChild:sne,childLabel:ea.Ticker}}},T4=Object.fromEntries(Object.entries(E1).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...z(lne,e)?.[t]}]))]));function O4(e,o=0,t,r){let a=dne(fne(e,o,r),t),n=a?Ng():null;return a&&n?ine(a,n):a}function ine(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 dne(e,o){if(!e||e.source!=="container"||!o||!Cw())return e;let t=Bd({data:o.data},o.id),r=typeof t?.type=="string"?Od(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 fne(e,o,t){let r=t?z(T4,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=z(dt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=ud(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=Y2(e);return s?{source:"footer",slot:V2,choices:s,spec:null}:null}function E4(e,o=Ad(e.type)){return _d(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 cne}from"react";var QS=null,eb=new Set;function _4(e){if(QS!==e){QS=e;for(let o of eb)o()}}function pne(e){return eb.add(e),()=>{eb.delete(e)}}function BWe(){return cne(pne,()=>QS,()=>null)}function A4(e){return RP(e)?.ownerId??null}function F4(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 une}from"efficient-shell/format";var mne=["pages","sections","styles"],B4="sf-editor-left-view";function L4(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(B4);return une(mne,"pages",e)}catch{return"pages"}}function R4(e){if(!(typeof window>"u"))try{window.localStorage.setItem(B4,e)}catch{}}function D4(e,o){return e==="styles"&&!o?"sections":e}function N4(e,o){return e?"sections":o}import{copyNode as xne}from"efficient-easel/data";function M4(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 H4={usedOn:e=>{let o=dr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>_f()?.openPage(e),adopt:(e,o)=>dr()?.adopt(e.props.id,o),nodeOf:e=>dr()?.place(e)??null,detach:e=>{let o=_f()?.config;return o?xne(e,o):e},removed:()=>_f()?.reload()};import{sharedSectionsOf as zne}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Une,scrollPreviewToTop as t6}from"efficient-easel/screen/lib/document/preview-dom";var hne=Tf.mediaFields,Ine=/video|poster|focal|phone/i;function gne(e){return(z(hne,e)??[]).find(o=>!o.includes("[]")&&!Ine.test(o))??null}function yne(e){let o=gne(e.type);return e.type!==q?o&&Fd(e.type,e.props,o)?{fromData:!0}:o:Qk(e.props)?{fromData:!0}:o}var W4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:yne,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var $4={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 Sne}from"react";import{Button as bne,Tooltip as wne,toast as z4}from"efficient-shell/ui";import{TemplateIcon as Cne}from"efficient-easel/icons";import{useSettledAction as kne}from"efficient-easel/easel";import{useScreenDocument as vne}from"efficient-easel/screen/components/ScreenDocumentContext";function j4({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=vne(),[a,n]=Sne(!1),s=async()=>{if(!a){n(!0);try{await r()?t():z4.error(c(U4))}catch{z4.error(c(U4))}finally{n(!1)}}},l=kne({onPress:()=>{s()},busy:a});return Sm(wne,{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(bne,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:Sm(Cne,{size:15}),children:c("Save as Template")})})})}var U4="Your last changes did not save, so the template was not made. Try again.";var Pne="Save your page changes first";function G4(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:Pne}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var K4="storefront-editor:save-as-template";import{phoneKey as Tne,tabletKey as One}from"efficient-easel/draw";var Ene=[ho.top,One(ho.top),Tne(ho.top)],bm="ContactLocations",q4="ContactRouting",V4="CityPictures",Y4="CityMaps",_ne=[{key:V4,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:Y4,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function X4(e=Oa,o=JI){let t=cb.find(r=>r.sections.some(a=>a.type===q4))?.key;return!e.includes(bm)||!t?[]:_ne.filter(r=>!(o&&r.key===V4)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:q4,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Hr(bm);if(!i)return null;let d=Es(),f=gi(bm,i,s)(l.nodeDefaults,l.newNodeId,d);if(!f||!(o&&r===Y4))return f;let m=gi(bm,i,0)(l.nodeDefaults,h=>`${h}-above`,d),u=Object.fromEntries(Ene.filter(h=>m?.props[h]!==void 0).map(h=>[h,m.props[h]]));return{...f,props:{...f.props,...u}}}}))}function J4(e=Oa,o){return[...X4(e,o)]}function Q4(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=us(e);if(n)return n(o,t,Es());if(mw(e)&&a(q)&&a(fn)){let l=z(Ct,e);return{type:q,props:{...o(q),id:t(q),direction:"column",name:`${r(e)} section`,content:[{type:fn,props:{...o(fn),id:t(fn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},..._l(e)!==_l(fn)?{eyebrowLook:_l(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...Z4(e,t)}}]}}}if(z(dt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=Z4(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function Z4(e,o){return e==="Cards"?{template:fw(t=>o(t))}:e===cw?{template:pw(t=>o(t))}:{}}import{useEffect as Ane,useState as Fne}from"react";import{useEaselSession as Bne}from"efficient-easel/screen/lib/session-context";function e6(){let e=Bne().chrome?.products?.list,[o,t]=Fne(null);return Ane(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function f6({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=rR(),a=i6().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=As(i=>{i&&(o({kind:"ticker",heroId:i}),Une(i))},[o]);return Jt(()=>{t(s)},[s,t]),Jt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let f=String(i.props.id);return i.type==="Hero"&&iI(i.props)&&uo(s6,{icon:uo(Ga,{type:"ticker",size:13}),name:c(Ma),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function c6({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Ku(),a=i6().tree,{appState:n,config:s}=l6(u=>u),l=Lne({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=ka.find(u=>Vl[u]===i.kind),f=d&&"nodeId"in i?va(String(i.nodeId),d):null,m=As(u=>{let h=Jc(u);if(!h)return;let{data:I,config:S}=l.current,P=Wne(I,S,{kind:"node",id:h.nodeId});if(!P)return;let T={kind:Vl[h.part],nodeId:h.nodeId};o({index:P.index,zone:P.zone},T)},[o]);return Jt(()=>{t(f)},[f,t]),Jt(()=>{r(m)},[r,m]),{partRows:(u,{rowClick:h})=>{let I=String(u.props.id),S=L_(u);if(S.length===0)return null;let P=k=>{let g=va(I,k.part);return uo(s6,{icon:uo(Ga,{type:k.part==="media"?"heroMedia":"heroImage",size:13}),name:c(k.label),onSelect:()=>m(g),selected:f===g,rowProps:{onClick:h(()=>m(g))},words:a},g)},[T,...B]=S;return rd(n6,{children:[P(T),B.length>0&&uo(Hne,{children:B.map(P)})]})}}}function p6(e,o){return{partRows:(t,r)=>rd(n6,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function jne(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(d6()).preview?.draftLink,u=I4(e.data),h=G4({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=As(()=>{!a||!r||i(K4,{siteId:a,slug:r})},[i,a,r]),S=c4({pageSlug:r,siteId:a,token:d}),P=o.previewHref?.(r)??S;return{barLead:()=>h.visible&&uo(j4,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&uo(m4,{liveHref:P,pageId:n??null,draftLink:m}),mainAction:u}}function Gne(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=wm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=k=>o.setView(k),[f,m]=o6(e0[0].id),[u,h]=o6(!1),{surface:I,setSurface:S}=$H(),P=()=>{if(l){d("styles"),o.reveal(),t6();return}e.show(AS),e.reveal(),t6()},T={id:"pages",label:c("Pages"),icon:uo(Dne,{}),panel:({onHide:k})=>uo(AH,{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:k})},B=[];return!l&&i&&B.push({id:"appearance",label:c("Appearance"),icon:uo(Mne,{}),active:e.kind==="website",onSelect:P}),l&&B.push({id:"styles",label:c("Styles"),icon:uo(Nne,{}),panel:({onHide:k,notify:g})=>uo(S5,{tokenRef:n,siteId:a??void 0,onClose:k,onNotify:g,tab:f,onTabChange:m,revealPageGroup:u,onPageGroupRevealed:()=>h(!1)})}),{railLead:[T],railTrail:B,resolveLeftView:k=>D4(k,l),openSettings:P,openStyles:()=>{m(QT),d("styles")},openPageStyles:l?()=>{m(Hf),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(i5),e.reveal()}:void 0}}function Kne(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=wm(),a=l6(s=>s.config),n=d6();Jt(()=>(Rx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Rx(null)),[e,o,t,a]),Jt(()=>{let s=dr();if(!s||!r)return;let l=!1;return zne(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function u6(){let e=$f();return As(o=>{P0(o,e)},[e])}function qne(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;Jt(()=>{_4(s?.type==="BookingBox"&&s.props.region==="confirm"?A4(l(String(s.props.id))):null)},[s?.props.id]);let i=M5(e,o),{capabilities:{hasSiteSettings:d}}=wm();Kne();let{chat:f,setChat:m,setSelected:u,setSelectHandler:h}=Gu(),I=As(()=>n(d5),[n]),S=a==="chat";Jt(()=>{u(S)},[S,u]),Jt(()=>{h(I)},[h,I]);let{setOpenHandler:P}=Ri(),T=As(()=>n(f5),[n]);Jt(()=>{P(T)},[P,T]);let B=p6(f6(e),c6(e)),k=jne(o),g=Gne(e,r);CH(r);let b=t.device,E=u6();return{...B,...k,...g,hasOwnRows:A=>A.type===gm,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:E,wrap:A=>uo(Vx.Provider,{value:!0,children:rd($ne.Provider,{value:b,children:[A,uo(k4,{})]})}),addPanelRow:A=>d?rd("div",{className:"sf-addside-sitewide",children:[uo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:uo(Ga,{type:"chat",size:16})}),rd("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(Rne,{checked:f.enabled,onChange:N=>m({enabled:N}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var r6=null,ob=new WeakMap;function Vne(e){let o=lC();if(!e||!o)return e;r6!==o&&(r6=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 Yne={isLockedBlock:(e,o)=>bu(e,o)||!!(o&&dr()?.heldElsewhere(o.props.id)),duplicateBlocked:cm,nestDepth:(e,o,t)=>o===Ud?jd(e,t):0,newSectionNode:Q4,canAddTo:(e,o,t,r)=>Vne(O4(e,o,r,t)),blockIsOffered:VR,slotsOf:E4,resolveOnInsert:!0},Xne=new Proxy($4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),Jne={labelAtLevel:(e,o,t)=>c(Tm(e,o,t)),descriptions:Xne,categoryLabel:e=>{let o=v4(e);return o===void 0?void 0:c(o)},firstSection:P4,blockRowName:F4,rowName:wu,plainText:nn,Icon:Ga,Thumbnail:g5,useProducts:e6,presets:J4()},Zne={desktop:2e3,tablet:800,mobile:390},a6="desktop",Qne={options:NH,initial:a6,fluid:a6,fluidMin:Jb,widths:Zne,hidesPerView:!0},ese={read:L4,write:e=>R4(e),forSelection:(e,o)=>N4(e,o)},ose={first:Ko,last:Re,firstGroup:Mo,lastGroup:ao,isSectionGroup:dP,sectionGroupZone:fP,panelOf:e=>e===Ko?l5:null,get sharedReach(){return ua()?rse:void 0},get shared(){return dr()?H4:void 0},get groupTab(){return ua()?X2:void 0},get groupBadge(){return ua()?PS({type:ao})??void 0:void 0},get changeNotice(){return ua()?J2():void 0},get band(){return ua()?tse:void 0},get groupAccepts(){return ua()?uP:void 0}},tse={foldable:!0},rse=e=>PS(e)??M4(e);function ase(e){return{...p6(f6(e),c6(e)),onCopyItem:u6(),openSettings:()=>e.show(AS)}}function nse(e,o){V5(e,o),s4()}var jze={useOwnerName:Rn,useDocumentLabel:A0,useBridges:qne,useStandaloneBridges:ase,useDocumentPass:nse,blockRules:Yne,blockLook:Jne,devices:Qne,leftView:ese,pinned:ose,Canvas:dH,canvasDrag:{media:W4},Inspector:p5};export{Bg as a,qt as b,Vt as c,no as d,uhe as e,fI as f,uye as g,ui as h,mi as i,fF as j,cF as k,Lp as l,mye as m,qG as n,pF as o,xye as p,RR as q,e0e as r,DR as s,r0e as t,bl as u,ha as v,uI as w,She as x,fp as y,WO as z,$O as A,Z1 as B,eO as C,Pt as D,oc as E,oO as F,ph as G,aie as H,nie as I,sie as J,tO as K,lie as L,tc as M,sO as N,cie as O,pie as P,lO as Q,uie as R,vie as S,Pie as T,uO as U,Zo as V,Wn as W,fo as X,Fa as Y,Y as Z,Zn as _,Z as $,X as aa,te as ba,re as ca,ce as da,eIe as ea,pe as fa,es as ga,os as ha,ai as ia,ni as ja,rA as ka,aIe as la,Oj as ma,aA as na,lIe as oa,iIe as pa,nA as qa,Th as ra,BO as sa,CW as ta,_l as ua,LO as va,Fde as wa,xI as xa,pIe as ya,uIe as za,mIe as Aa,xIe as Ba,hIe as Ca,IIe as Da,Qie as Ea,vc as Fa,Ol as Ga,ede as Ha,ode as Ia,kO as Ja,wh as Ka,rW as La,aW as Ma,tde as Na,nW as Oa,rde as Pa,kE as Qa,epe as Ra,BE as Sa,ope as Ta,tpe as Ua,rpe as Va,yp as Wa,yI as Xa,dA as Ya,Sp as Za,OIe as _a,$j as $a,zj as ab,Uj as bb,EIe as cb,Uo as db,Da as eb,ss as fb,xge as gb,hge as hb,Ige as ib,$E as jb,jc as kb,L$ as lb,cpe as mb,jA as nb,GA as ob,KA as pb,Dge as qb,YA as rb,yye as sb,Sye as tb,Dp as ub,mF as vb,Bl as wb,NO as xb,MO as yb,_h as zb,Sa as Ab,ZO as Bb,hfe as Cb,Ife as Db,gfe as Eb,Nl as Fb,lt as Gb,vfe as Hb,sde as Ib,yde as Jb,kh as Kb,Sde as Lb,ga as Mb,Pc as Nb,Je as Ob,Dfe as Pb,aE as Qb,sE as Rb,lE as Sb,Np as Tb,wF as Ub,Dye as Vb,Mp as Wb,CF as Xb,$ye as Yb,LF as Zb,b8 as _b,Up as $b,HSe as ac,qc as bc,K$ as cc,Yh as dc,F8 as ec,ebe as fc,sB as gc,lB as hc,obe as ic,tbe as jc,Jx as kc,N6 as lc,Zx as mc,f0 as nc,Ibe as oc,bB as pc,wB as qc,CB as rc,Ube as sc,owe as tc,twe as uc,rwe as vc,cg as wc,_B as xc,tK as yc,rK as zc,Kp as Ac,swe as Bc,lwe as Cc,Lwe as Dc,ZB as Ec,Rwe as Fc,QB as Gc,Nwe as Hc,sL as Ic,lL as Jc,NK as Kc,fL as Lc,oCe as Mc,Xp as Nc,cCe as Oc,hi as Pc,mCe as Qc,mL as Rc,hCe as Sc,xL as Tc,hL as Uc,yCe as Vc,El as Wc,wW as Xc,hr as Yc,kCe as Zc,Jp as _c,OCe as $c,Qp as ad,kde as bd,vde as cd,ya as dd,Pde as ed,fh as fd,ec as gd,M0 as hd,it as id,Gl as jd,gz as kd,Zh as ld,sue as md,Kl as nd,Sz as od,lue as pd,cue as qd,ql as rd,__ as sd,A_ as td,Jue as ud,Zue as vd,Que as wd,eme as xd,Rz as yd,ome as zd,Jc as Ad,Yl as Bd,nme as Cd,tI as Dd,W_ as Ed,$_ as Fd,Qh as Gd,zz as Hd,sme as Id,Zc as Jd,Xl as Kd,ep as Ld,lme as Md,ime as Nd,Qc as Od,dme as Pd,fme as Qd,G_ as Rd,Jl as Sd,Zl as Td,tp as Ud,q_ as Vd,Xn as Wd,V_ as Xd,rp as Yd,ap as Zd,np as _d,Y_ as $d,X_ as ae,J_ as be,Z_ as ce,Q_ as de,s1 as ee,l1 as fe,$me as ge,zme as he,Ume as ie,jme as je,Gme as ke,cU as le,pU as me,Kme as ne,qme as oe,Vme as pe,d1 as qe,Yme as re,Xme as se,Jme as te,Zme as ue,xU as ve,hU as we,bU as xe,CU as ye,kU as ze,x1 as Ae,_U as Be,I1 as Ce,g1 as De,Nc as Ee,MU as Fe,Oxe as Ge,v1 as He,Rxe as Ie,qxe as Je,Vxe as Ke,pce as Le,Ml as Me,Ice as Ne,gce as Oe,SE as Pe,yi as Qe,Xt as Re,mD as Se,pu as Te,kOe as Ue,vOe as Ve,DOe as We,NOe as Xe,yV as Ye,Xg as Ze,CD as _e,MOe as $e,vD as af,PD as bf,AD as cf,PV as df,EV as ef,lEe as ff,SEe as gf,bEe as hf,ki as if,wEe as jf,CEe as kf,Qg as lf,kEe as mf,Dve as nf,Wl as of,Uh as pf,zc as qf,QEe as rf,qn as sf,_pe as tf,Ape as uf,o_ as vf,c9 as wf,vN as xf,Ti as yf,I1e as zf,y1e as Af,dy as Bf,HN as Cf,tu as Df,$ve as Ef,jve as Ff,rR as Gf,Sg as Hf,aR as If,nR as Jf,qve as Kf,sR as Lf,au as Mf,oPe as Nf,iR as Of,cR as Pf,dR as Qf,hy as Rf,yFe as Sf,SFe as Tf,bFe as Uf,wu as Vf,pM as Wf,yy as Xf,$Fe as Yf,zFe as Zf,xJ as _f,hJ as $f,PBe as ag,TBe as bg,OBe as cg,EBe as dg,Ou as eg,Eu as fg,QBe as gg,NM as hg,WM as ig,$M as jg,zM as kg,KRe as lg,Gke as mg,Fu as ng,Uu as og,FH as pg,BH as qg,RH as rg,ju as sg,kDe as tg,vDe as ug,Gu as vg,LQ as wg,RDe as xg,Ri as yg,HDe as zg,$H as Ag,Dn as Bg,L6 as Cg,vse as Dg,Pse as Eg,n5e as Fg,s5e as Gg,l5e as Hg,F1 as Ig,zDe as Jg,Ku as Kg,xse as Lg,M6 as Mg,H6 as Ng,W6 as Og,u0 as Pg,Gse as Qg,Xf as Rg,l3 as Sg,i3 as Tg,Sle as Ug,ise as Vg,O3 as Wg,wO as Xg,Kie as Yg,qie as Zg,oW as _g,Vie as $g,Yie as ah,kc as bh,Xie as ch,Gn as dh,fE as eh,cE as fh,wE as gh,Yce as hh,WE as ih,lpe as jh,zE as kh,Xh as lh,Y$ as mh,Q$ as nh,zpe as oh,Bke as ph,Xke as qh,eve as rh,ML as sh,nve as th,sve as uh,gve as vh,yve as wh,Fve as xh,Ii as yh,pq as zh,LPe as Ah,zPe as Bh,sTe as Ch,lTe as Dh,RTe as Eh,OR as Fh,pse as Gh,vMe as Hh,XH as Ih,Re as Jh,fm as Kh,Lt as Lh,C5 as Mh,Yi as Nh,k5 as Oh,v5 as Ph,p6e as Qh,u6e as Rh,l4 as Sh,YS as Th,i4 as Uh,O4 as Vh,BWe as Wh,jze as Xh};