efficient-storefront-blocks 0.125.3 → 0.125.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/chunks/{CustomHtmlCodeWindow-VRZ524JP.js → CustomHtmlCodeWindow-KB7QEJAG.js} +1 -1
  3. package/dist/chunks/{EditorPreviewCheckout-OMVFLWD5.js → EditorPreviewCheckout-3ZX2DIIL.js} +1 -1
  4. package/dist/chunks/SiteEditorProvider-TYNFV3WZ.js +1 -0
  5. package/dist/chunks/{chunk-4KN3VTQU.js → chunk-4M7WJPOZ.js} +6 -6
  6. package/dist/chunks/{chunk-PULBLZRR.js → chunk-4WRJWM6K.js} +1 -1
  7. package/dist/chunks/{chunk-TXL5UDD5.js → chunk-5SWY36EZ.js} +1 -1
  8. package/dist/chunks/{chunk-FNCEZSDY.js → chunk-ACYEMD5J.js} +1 -1
  9. package/dist/chunks/chunk-DHKJAYUG.js +337 -0
  10. package/dist/chunks/chunk-HKL2EKLO.js +96 -0
  11. package/dist/chunks/{chunk-TVMCJUOE.js → chunk-RGLTNGJH.js} +1 -1
  12. package/dist/chunks/{fitment-data-C2NHZBPR.js → fitment-data-CFDAFXJB.js} +1 -1
  13. package/dist/chunks/{section-css-style-BECHWIDU.js → section-css-style-TKWJ7WU2.js} +1 -1
  14. package/dist/editor.css +1 -1
  15. package/dist/index.js +66 -29
  16. package/dist/render/built-with.json +1 -1
  17. package/dist/routine-index.json +1 -1
  18. package/dist/value-index.json +1 -1
  19. package/dist/words.d.ts +1 -0
  20. package/dist/words.js +1 -1
  21. package/package.json +2 -2
  22. package/dist/chunks/SiteEditorProvider-OBXLJM7I.js +0 -1
  23. package/dist/chunks/chunk-6ABZ7XWF.js +0 -96
  24. package/dist/chunks/chunk-J6SPMJBT.js +0 -337
  25. /package/dist/chunks/{chunk-7UJXVH57.js → chunk-3DCSW3PN.js} +0 -0
  26. /package/dist/chunks/{chunk-EZ5QLDA5.js → chunk-5NGS7VFJ.js} +0 -0
  27. /package/dist/chunks/{chunk-FNCEZSDY.js.LEGAL.txt → chunk-ACYEMD5J.js.LEGAL.txt} +0 -0
  28. /package/dist/chunks/{chunk-UV27QVUD.js → chunk-AEBQM5LZ.js} +0 -0
  29. /package/dist/chunks/{chunk-J6SPMJBT.js.LEGAL.txt → chunk-DHKJAYUG.js.LEGAL.txt} +0 -0
@@ -1,337 +0,0 @@
1
- import{$ as Jd,D as uk,E as mk,F as Kd,G as xk,H as bk,I as br,J as wk,K as Ck,L as kk,M as ot,N as qd,O as vo,P as ie,R as Vd,S as wr,T as Yd,X as vk,Y as Xd,Z as Cr,_ as Pk,a as Go,b as qs,ba as Dv,c as Rd,d as gn,e as Vs,f as KC,fa as qv,g as yn,h as Dd,ha as Vv,ia as Of,ja as bT,ka as wT,r as Qs}from"./chunk-TVMCJUOE.js";import{a as Qv,d as cf,e as tt,f as pf,g as uf,h as If,l as Lx}from"./chunk-EZ5QLDA5.js";import{$ as hn,$a as ox,$c as fx,$e as aP,$f as vP,A as dC,Aa as DC,Ab as bn,Ac as jk,Ad as Cv,Ae as wt,Af as mP,Ag as BP,Aj as nT,B as fC,Ba as NC,Bb as Zs,Bc as Ht,Bd as kv,Be as Te,Bf as xP,Bg as LP,Bk as Pf,C as Zo,Ca as MC,Cc as $e,Cd as vv,Ce as Jv,Cf as hP,Cg as RP,Ck as Tf,D as cC,Da as HC,Dc as kr,Dd as px,Df as IP,Dg as bx,Dj as Tx,Dk as Ax,E as pC,Ea as WC,Eb as nx,Ec as lx,Ed as Pv,Eg as DP,Ej as ll,Ek as IT,F as uC,Fa as $C,Fb as wn,Fc as Gk,Fd as ux,Ff as gP,Fg as wx,Fk as da,G as mC,Ga as gr,Gb as Gd,Gc as Kk,Gd as Tv,Ge as mx,Gg as or,Gk as gT,H as xC,Ha as zC,Hb as fk,Hc as qk,Hd as Ov,Hg as Cx,Hj as En,Hk as yT,I as hC,Ib as ck,Ic as af,Id as Ev,Ig as yf,Ik as ST,J as IC,Ja as UC,Jb as pk,Jc as ol,Jd as Wt,Je as nl,Jg as NP,Jj as sT,Ka as Nd,Kb as Zd,Kc as Vk,Kd as _v,Kg as MP,Kk as CT,L as gC,La as Ys,Lb as Ok,Lc as Yk,Ld as na,Lg as HP,Lk as Fx,M as yC,Ma as Md,Mb as Qd,Mc as Xk,Md as Av,Mf as yP,Mg as WP,N as SC,Na as qC,Nb as sx,Nc as nf,Nd as vn,Ne as Zv,Nf as SP,Ng as $P,Nk as kT,O as Ed,Ob as ef,Oc as Jk,Oe as xx,Of as bP,Ok as vT,P as bC,Pc as Zk,Pd as Qt,Pe as eP,Pf as yx,Pk as PT,Q as wC,Qc as ix,Qd as Fv,Qf as wP,Qg as zP,Qj as lT,Qk as TT,Ra as VC,Rc as Qk,Rd as al,Rf as CP,Rg as UP,Rj as Ox,Rk as OT,Sa as YC,Sc as dx,Sd as Bv,Sf as Sx,Sj as iT,Sk as ET,Ta as Xs,Tb as Cn,Td as sa,Tj as dT,Uc as ev,Ud as Lv,Ui as ia,V as Vm,Va as Sn,Vc as ov,Vj as vf,Wa as XC,Wb as Ek,Wc as tv,Wd as sf,We as oP,Wf as er,Wi as tr,Wj as _n,X as js,Xa as Hd,Xb as _k,Xc as rv,Xd as Pr,Xe as tP,Xj as An,Y as _d,Ya as JC,Yb as Ak,Yc as av,Yd as Rv,Ye as mf,Yf as Pn,Yh as XP,Yj as il,Z as Fo,Za as Js,Zb as el,Zc as ta,Ze as rP,Zg as Sf,Zh as JP,Zj as Fn,_ as Ym,_a as ZC,_c as nv,_e as hx,_f as kP,_j as fT,a as Ao,aa as CC,ab as QC,ad as sv,af as nP,ag as gf,b as un,ba as kC,bb as tx,bd as lv,bf as sP,bg as Tr,bj as Cf,ca as vC,cb as ek,cd as iv,cf as lP,cg as PP,d as Gw,da as PC,db as rx,dd as dv,df as xf,dh as jP,dj as eT,e as jm,ea as TC,ed as fv,ee as Nv,eg as Tn,f as Kw,fa as Xm,fb as ok,fd as vr,ff as iP,fh as GP,fk as cT,g as f,gb as tk,gd as tl,gk as pT,h as Dt,ha as OC,hd as ra,he as Mv,hi as ZP,hl as Bx,i as xn,ia as Ad,ib as Wd,ic as kn,id as cv,ie as Hv,if as Ix,ii as QP,j as zs,jb as rk,jc as Mt,je as Wv,k as Do,kb as ak,kc as Fk,kd as aa,l as Us,lb as nk,lc as Bk,ld as rl,mb as sk,mc as Lk,md as pv,n as eC,nb as $d,nc as Rk,nd as uv,nf as dP,ng as Or,nk as Ex,o as oC,ob as lk,oc as Dk,oe as No,of as fP,og as TP,p as tC,pc as of,pd as mv,pe as eo,pf as hf,pg as OP,ph as kx,pj as oT,pk as uT,pl as _T,q as rC,qc as tf,qd as xv,qf as cP,qg as EP,qh as bf,qk as mT,ql as AT,r as aC,rb as ik,rc as Nk,rd as hv,re as lf,rf as pP,rh as la,rk as xT,rl as Ef,s as nC,sb as yr,se as $v,sh as wf,sj as tT,sl as FT,t as sC,tb as zd,tc as Mk,td as Iv,te as zv,tj as kf,tk as hT,u as Od,ub as Ud,uc as Hk,ud as gv,ue as Uv,ug as _P,uh as KP,uj as vx,ul as Bn,v as oa,va as FC,vb as dk,vc as Wk,vd as yv,ve as jv,vh as qP,vj as rT,vk as _x,vl as _f,wa as BC,wb as ko,wc as rf,wd as Sv,we as df,wh as VP,wj as aT,x as qm,xa as LC,xb as ax,xc as $k,xd as cx,xe as Gv,xh as YP,xj as Px,y as lC,ya as RC,yb as jd,yc as zk,yd as bv,ye as Kv,yf as uP,yg as AP,z as iC,za as Qm,zb as Nt,zc as Uk,zd as wv,ze,zf as gx,zg as FP,zj as On}from"./chunk-4KN3VTQU.js";import{a as Zw,b as Td,c as Qw,g as Tk}from"./chunk-UV27QVUD.js";import{$a as kb,$c as Yt,$d as aw,$e as uw,$g as Pd,A as no,Ab as Ns,Ad as Rm,Ae as lw,B as on,Bb as Mb,Ca as ye,Cd as Zb,Ce as Mm,D as Ls,Dd as pd,E as Qi,Eg as Nw,F as Ft,Fb as dd,Fd as Jo,Fg as Mw,G as tn,Ga as Xo,Gc as jb,Gd as Ro,Ge as xd,Gf as bw,Gg as Hw,H as We,Ha as gt,Hd as Qe,He as hd,Hg as Ww,I as Ve,Ia as hm,Ic as _m,Id as Lt,Ie as iw,Ih as ex,J as rn,Ja as Im,Jd as Jt,Je as Id,Jf as Zt,Jh as In,K as ed,Kb as Hb,Kd as bt,Ke as gd,Kg as $w,Kh as jC,L as $,La as gm,Ld as dn,Le as dw,Lh as Qo,M as xo,Ma as ym,Md as Qb,Me as fw,Mh as et,N as JS,Nd as fn,Ne as yd,Ng as zw,Nh as Ld,O as ZS,Od as ew,Oe as Sd,Og as Uw,Oh as GC,Pb as fd,Pc as Gb,Pe as ea,Pf as ww,Ph as Ks,Q as QS,Qa as Sm,Qe as cw,Qg as jw,R as od,Ra as hb,S as eb,Sa as Ib,Sb as Wb,Sd as Qr,Sg as qw,T as Xr,Ta as Ge,Tb as $b,Td as ow,Tg as Vw,U as ob,Ua as gb,Ud as tw,Ue as pw,V as tb,Va as sd,Vb as zb,Vd as cn,Vf as Cw,Vg as Ir,W as Rs,Wa as yb,Wc as U,Wd as Hs,Wf as kw,Wh as hk,X as mm,Xa as Sb,Xb as Tm,Xc as te,Xd as Ws,Xe as Rt,Xf as vw,Xg as Yw,Y as Ce,Ya as bb,Yc as Am,Yd as Dm,Ye as $s,Yf as Pw,Yg as Gm,Z as G,Za as wb,Zc as A,Ze as Hm,Zg as Xw,_ as rb,_a as Cb,_c as Co,_d as rw,_e as Wm,_g as Km,a as en,aa as td,ab as vb,ad as Kb,ae as nw,af as mw,ag as Tw,b as mo,ba as ab,bb as Pb,bd as M,bf as bd,bg as Ow,bh as Jw,bi as Ik,c as ao,ca as rd,cb as ld,cd,ce as sw,cf as xw,ci as Sr,d as Vt,da as nb,db as id,dd as Lo,dg as Ew,ea as sb,eb as Tb,ec as Om,ed as qb,ee as ud,eg as _w,ei as gk,f as jo,fa as xm,fb as Ob,fd as St,ff as hw,fg as kd,fi as yk,g as Bs,ga as lb,gd as Bt,ge as md,gf as wd,gg as Aw,gi as Sk,h as US,ha as ib,hb as Eb,hd as Fm,hf as Iw,hg as vd,i as jS,ia as db,ib as _b,id as xr,if as $m,ig as Um,j as GS,jb as bm,jd as Xt,jf as gw,k as KS,kb as Ab,kd as Vb,kf as yw,ki as Po,la as fb,lb as Fb,lf as Cd,lg as Fw,ma as cb,mb as wm,md as Ae,mf as pn,mg as Bw,na as pb,nb as nn,nd as Zr,nf as mn,o as qS,ob as Jr,od as Ms,of as hr,oi as sl,pa as ub,pb as Cm,pd as sn,pg as Lw,ph as Jm,qb as km,qd as Yb,qg as Rw,qh as Fd,ra as mb,rb as vm,rd as Bm,rh as EC,s as VS,sa as ad,sb as Bb,sd as ln,sf as Sw,sh as Zm,ta as xb,tb as Lb,tc as Em,td as Lm,tg as Dw,th as _C,u as De,ua as nd,ub as Rb,v as YS,vb as Pm,vc as Ub,vh as Bd,w as Zi,wb as Db,wh as AC,x as XS,xb as yt,xd as Xb,xh as Gs,ya as Ds,yb as Nb,yd as Jb,z as Pe,za as an,ze as Nm,zf as zm}from"./chunk-6ABZ7XWF.js";import{c as Yv,d as Xv,e as ff}from"./chunk-7UJXVH57.js";import{jsx as Rx,Fragment as b4,jsxs as w4}from"react/jsx-runtime";import{createContext as C4,useContext as k4}from"react";var v4={mirrorHostStyles:!0,css:null,fontHrefs:[]},BT=C4(v4);function Sae({value:e,children:o}){return Rx(BT.Provider,{value:e,children:o})}function dl(){return k4(BT)}function LT(){let{css:e,fontHrefs:o}=dl();return w4(b4,{children:[o.map(t=>Rx("link",{rel:"stylesheet",href:t},t)),e?Rx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as P4}from"react/jsx-runtime";import{createContext as T4,useContext as O4}from"react";var RT=T4(void 0);function kae({metadata:e,children:o}){return P4(RT.Provider,{value:e,children:o})}var DT=()=>O4(RT);import{jsx as fo,Fragment as a4,jsxs as Vi}from"react/jsx-runtime";import{useCallback as Es,useEffect as Gt,useRef as Kre,useState as e4}from"react";import{SettingsSwitch as qre}from"efficient-easel/panel";import{PagesIcon as Vre,StylesIcon as Yre}from"efficient-easel/rail";import{PaletteIcon as Xre}from"efficient-shell/icons/efficient";import{Subtree as Jre,TreeRow as n4}from"efficient-easel/tree";import{useEasel as s4}from"efficient-easel/easel";import{toItemSelector as Zre}from"efficient-easel/node-ops";import{useEaselStrings as l4}from"efficient-easel/strings";import{createContext as E4,useContext as _4}from"react";var Dx=E4(!1),Tae=()=>_4(Dx);import{useMemo as A4,useRef as F4}from"react";import{useEaselApi as B4}from"efficient-easel/easel";import{useSectionOps as L4}from"efficient-easel/screen/lib/document/use-section-ops";function Af(){let e=B4(),o=L4(),t=F4(o);return t.current=o,A4(()=>({getItemById:r=>e.getState().getItemById(r),getSelectorForId:r=>e.getState().getSelectorForId(r),get components(){return e.getState().config.components},replace:(r,a,n)=>t.current.replaceComponent(r,a,n)}),[e])}import{encodePartId as o6}from"efficient-easel/draw";import{insertAt as t6,moveTo as r6,removeAt as a6}from"efficient-easel/fields";import{useSyncExternalStore as V4}from"react";import{isNodeList as NT}from"efficient-easel/data";var MT="Flex";function Ln(e,o){return Rt(e)?typeof e?.[jo]=="string"?Nx(o?.[jo]):"":Nx(e?.[jo])}var Nx=e=>typeof e=="string"?e.trim():"",R4=e=>e.type===no&&Array.isArray(e.props?.[Mm])&&e.props[Mm].some(o=>Nx(o?.[jo])!==""),D4=new Intl.NumberFormat("en-US");function N4(e){return/^\d+$/.test(e)?D4.format(Number(e)):e}function Nae(e,o){let t=o?o.find(r=>r.key===e)?.value:VS(Bs).find(r=>r.key===e)?.value;return t===void 0?null:N4(t)}var M4={[jo]:"any"};function Mx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Ln(t)!==""||o&&Ln(t,M4)!==""),a=o||R4(e),n=Ve(e,l=>We(l,i=>{let d=Mx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==MT)return{node:n===t?e:{...e,props:n},names:r};let s=De(n);if(r&&!s&&(n={...n,[ao]:Bs}),!r&&s===Bs){let{[ao]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function HT(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of tn(r??{})){let n=HT(a,o,r.type===MT?r:t);if(n!==void 0)return n}}}function Mae(e,o){if(!NT(e))return!0;let t=HT(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=De(t.props);return!r||r===Bs}function WT(e){let o=e?.content;if(!NT(o))return e;let t=o.map(r=>Mx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function $T(e){return Mx(e).node}import{decodePartId as Y4}from"efficient-easel/draw";function Rn(e,o){let t=Hk(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?mT(t,o.index):null:Wk(e)?.[o.rowKey]??null}function Ff(e,o,t){let r=e.node.props,{key:a,row:n}=Mt(e.propKey),s=n?zk(r,a,n,e.kind,o):Mk(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as jT}from"efficient-easel/draw";import{parseOption as H4}from"efficient-shell/format";var Hx=e=>String(e+1).padStart(2,"0"),W4=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Wx="two-digit",zT=e=>H4(W4,Wx,e),Bf=(e,o)=>e==="plain"?`${o+1}.`:Hx(o);var Ux="Contents",$x="Flex",UT="Text",$4="numberForm",z4="_contentsEntries",U4="_kickerNumber",GT="data-sf-kicker-number",j4=e=>jT(e).text.trim(),KT=e=>sa(e?.anchor),zx=e=>String(e.props?.id??""),G4=e=>!jT(e.props?.text).hidden&&!Ln(e.props)&&!Rt(e.props),fl=e=>tn(e);function qT(e){for(let o of fl(e))for(let t of o){if(Qt(t.props??{}))continue;if(t.type===UT&&G4(t))return t;if(t.type===UT)continue;let r=qT(t);if(r)return r}}function VT(e){return fl(e).some(o=>o.some(t=>t&&!Qt(t.props??{})&&(t.type===Ux||VT(t))))}var YT=e=>e.type===$x&&Pn($x,e.props?.direction)==="row";function XT(e){return fl(e).some(o=>o.some(t=>t&&!Qt(t.props??{})&&(t.type===Ux||!YT(t)&&XT(t))))}function K4(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||Qt(n.props??{}))continue;if(n.type===Ux){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(YT(n)&&XT(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of fl(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===$x&&KT(n.props)&&s&&!VT(n)){s.push({box:n,kicker:qT(n)});continue}for(let l of fl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function q4(e){return e.map(o=>({label:o.kicker?an(j4(o.kicker.props?.text)):"",anchor:KT(o.box.props)}))}function jx(e){let o=e?.length?K4(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=zx(a.contents);n&&t.set(n,q4(a.sections));let s=zT(a.contents.props?.[$4]);a.sections.forEach((l,i)=>{let d=l.kicker?zx(l.kicker):"";d&&r.set(d,Bf(s,i))})}return{entries:t,numbers:r}}var rne=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function JT(e){let o=e;if(!o?.content?.length)return e;let t=jx(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=Ve(s,h=>We(h,n)),i=l.props??{},d=l!==s,c=zx(s),x=c?r.get(c):void 0;x&&(i={...i,[z4]:x},d=!0);let u=c?a.get(c):void 0;return u&&(i={...i,[U4]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var X4=`[${GT}]`,J4=["bold","italic","underline","strike","link","sup","sub"],Z4=["bullet","number"];function qx(e,o){return e?[...J4,...o?Z4:[]]:[]}function ZT(e,o){let t=Y4(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}=Mt(a),d=o.components[n.type]?.fields?.[l],c=i?Rn(d,i):d,x=of(c);if(!x)return null;let u=n.props??{};if(XP(u)!==null||!i&&bd(n.type,u,l)||n.type==="Text"&&l==="text"&&Ln(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?rf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:x,stored:h,offPage:Cf(c),panelOnly:Dk(c)}}function Lf(e,o){let t=ZT(e,o);if(!t)return null;let{text:r,hidden:a}=ia(t.stored);if(!Zk({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=tf(t.kind);return{partId:e,value:r,rules:ad,multiline:n,skip:X4,offered:qx(t.kind!=="plainText",n),write:s=>{let l=ZT(e,o);l&&Ff({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function Vx(e,o,t){return e?.isConnected&&e.getAttribute($e)===t?e:o?.querySelector(`[${$e}="${Rf(t)}"]`)??null}function Rf(e){return e.replace(/["\\]/g,"\\$&")}function QT(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Gx=null,Kx=new Set;function Q4(){return Gx}function Yx(e){if(e!==Gx){Gx=e;for(let o of Kx)o()}}function e6(e){return Kx.add(e),()=>{Kx.delete(e)}}function e0(){return V4(e6,Q4,()=>null)}function o0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=dw(t.type);return!r||De(t.props)?null:{node:t,rows:r}}function n6(e,o){let t=o0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=xw(r.type,r.props,e.key);if(!a)return null;let n=t.node.props[t.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:o6(e.ownerId,kn(t.rows,{index:e.index,rowKey:a}))}function Df(e,o){let t=n6(e,o);return t?Lf(t,o):null}function t0(e,o){return Df(e,o)?.value}function r0(e,o){let t=Df(e,o);return t?(t.write(e.text),!0):!1}function a0(e,o){let t=o0(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=t6(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=r6(n,s,i);break}case"delete":l=a6(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as ve,Fragment as iJ,jsxs as Eu}from"react/jsx-runtime";import{Fragment as dJ,useEffect as CM,useMemo as kM,useRef as fJ,useState as Ha}from"react";import{useScreenDocument as EM}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Ty}from"efficient-easel/draw/client";import cJ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as pJ}from"efficient-easel/chrome";import{Input as uJ,PopupMenu as mJ,PopupMenuItem as vM,toast as PM}from"efficient-shell/ui";import{LayersTree as xJ,TreeGroupLabel as hJ,TreeRow as TM,TreeRowAction as _u}from"efficient-easel/tree";import{AddIcon as IJ,DuplicateIcon as gJ,PageIcon as yJ,SettingsIcon as SJ}from"efficient-easel/icons";import{PagesIcon as bJ}from"efficient-easel/rail";import{useEaselHost as wJ}from"efficient-easel/screen/lib/host";import{useEaselSession as Oy}from"efficient-easel/screen/lib/session-context";import{useCallback as Nf,useEffect as s6,useSyncExternalStore as l6}from"react";import{useScreenDocument as i0}from"efficient-easel/screen/components/ScreenDocumentContext";var n0=new WeakMap;function cl(e){let o=n0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},n0.set(e,o)),o}function Xx(e,o){e.rows=o;for(let t of e.listeners)t()}var Mf=new Set;function Hf(e,o){o?Mf.add(e):Mf.delete(e)}function s0(e){let o=cl(e),t=e.listPages().then(r=>Xx(o,Mf.size?r.filter(a=>!Mf.has(a.id)):r),()=>Xx(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var l0=()=>null,i6=()=>()=>{};function pl(){let{adapter:e,ready:o}=i0(),t=Nf(l=>{let{listeners:i}=cl(e);return i.add(l),()=>i.delete(l)},[e]),r=Nf(()=>cl(e).rows,[e]),a=l6(o?t:i6,o?r:l0,l0);s6(()=>{if(!o)return;let l=cl(e);l.rows===null&&!l.loading&&s0(e)},[e,o]);let n=Nf(()=>o?s0(e):Promise.resolve(),[e,o]),s=Nf(l=>Xx(cl(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function d6(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function d0(){let{currentSlug:e}=i0(),{rows:o}=pl();return d6(o,e)}import{canDuplicatePage as CJ,DuplicatePageDialog as kJ}from"efficient-easel/page-copy";import{jsx as Vo,jsxs as Cy}from"react/jsx-runtime";import{useEffect as jX,useId as GX,useMemo as KX,useRef as qX,useState as ky}from"react";import{useScreenDocument as VX}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as YX}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as hM}from"efficient-easel/page-copy";import{AddIcon as XX}from"efficient-easel/icons";import{Dialog as JX,EmptyState as ZX,Grid as QX,LoadingSpinner as eJ,Paragraph as oJ,SidebarActionButton as tJ,SidebarLayout as rJ,SidebarNavItem as vy,Title as aJ,toast as IM}from"efficient-shell/ui";import{jsx as vt,jsxs as $L}from"react/jsx-runtime";import{useMemo as qK,useState as VK}from"react";import{CanvasFrame as YK}from"efficient-easel/easel";import{Button as XK,Card as JK,FitFrame as ZK,Text as QK}from"efficient-shell/ui";import{jsx as m0,Fragment as b6,jsxs as w6}from"react/jsx-runtime";import{useEffect as x0,useLayoutEffect as C6}from"react";var Wf="data-theme",f0="light";function f6(e){return e.getAttribute(Wf)===f0?"light":"dark"}function c6(e,o){return f6(e)===o?!1:(o==="light"?e.setAttribute(Wf,f0):e.removeAttribute(Wf),!0)}function p6(e){return Lx(e).getItem(zm)}function Fne(e,o){Lx(e).setItem(zm,o)}function u6(e,o,t=new Date().getHours()){return bw({mode:o.mode,override:p6(e),switchShown:o.switchShown,hour:t})}function c0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>c6(t,u6(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Wf]}),()=>n.disconnect()}var m6="style";function x6(e,o){let t=vd(o),r=!1;for(let a of Aw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function p0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>x6(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[m6]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as h6,VIEW_TABLET_MIN as I6}from"efficient-easel/screen/lib/content/view-tiers";var rr={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},Ko=rr,g6=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),y6=String.raw`(function (doc) {
2
- if (doc.__sfFitWords) return;
3
- var win = doc.defaultView;
4
- var SELECTOR = "h1,h2,h3,h4,h5,h6,[class*='font-heading'],[class*='font-display']";
5
- // Body text a block asked to shrink (its Text group's Shrink), beside
6
- // the headings: what this script may fit at all. modeOf() decides each one.
7
- var SHRINK_BODY = ${JSON.stringify(g6([Ko.fit,Ko.fitTablet,Ko.fitPhone]))};
8
- var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
9
- var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${yt};
10
- var TABLET_MIN = ${I6}, DESKTOP_MIN = ${h6};
11
-
12
- // A block's own answer (lib/content/block-size, the wrapper's attributes):
13
- // the fit "wrap" | "shrink" | "line" | "ellipsis" and the floor, each with a tablet and a
14
- // phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
15
- // in a Box, marked edge; 720 outside one) the tablet's where it has one;
16
- // under it the phone's, else the tablet's, else the desktop's. With no
17
- // tablet answer the phone's is read under 800, as before (the edge moves with
18
- // F1). With none, a heading shrinks and body text wraps, as always.
19
- // A holder with any tablet attribute takes the three views (its line and 1100)
20
- // for its fit AND its floor together; one with none keeps the 800 edge.
21
- var TABLET_ATTRS = [${JSON.stringify(Ko.fitTablet)}, ${JSON.stringify(Ko.minTablet)}];
22
- function own(el, attr, tabletAttr, phoneAttr) {
23
- var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
24
- if (!holder) return null;
25
- var w = win.innerWidth, d = holder.getAttribute(attr);
26
- if (w >= DESKTOP_MIN) return d;
27
- var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
28
- if (w < (holder.hasAttribute(${JSON.stringify(Ko.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
29
- if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
30
- return (w < PHONE_BELOW && p) || d;
31
- }
32
- function modeOf(el) {
33
- var mode = own(el, ${JSON.stringify(Ko.fit)}, ${JSON.stringify(Ko.fitTablet)}, ${JSON.stringify(Ko.fitPhone)});
34
- if (mode === "wrap" || mode === "shrink") return mode;
35
- // One line and Shorten (stored "ellipsis", which cuts its words with "..."):
36
- // the block keeps its words at their set size, nothing shrinks.
37
- if (mode === "line" || mode === "ellipsis") return "wrap";
38
- return el.matches(SELECTOR) ? "shrink" : "wrap";
39
- }
40
- function floorOf(el, set) {
41
- var raw = own(el, ${JSON.stringify(Ko.min)}, ${JSON.stringify(Ko.minTablet)}, ${JSON.stringify(Ko.minPhone)});
42
- var min = parseFloat(raw);
43
- // A Min font size in vw (block-size.ts): a share of the window's width.
44
- if (/vw$/.test(String(raw))) min = min * win.innerWidth / 100;
45
- return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
46
- }
47
-
48
- function measure(el) {
49
- var widest = 0, current = 0, last = null, split = false, lastBlock = null;
50
- function blockOf(n) {
51
- for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
52
- var d = win.getComputedStyle(p).display;
53
- if (d.indexOf("inline") !== 0 && d !== "contents") return p;
54
- }
55
- return el;
56
- }
57
- function close() { if (current > widest) widest = current; current = 0; last = null; }
58
- var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
59
- while ((node = walker.nextNode())) {
60
- if (node.nodeType === 1) {
61
- if (node.tagName === "BR" || node.tagName === "WBR") close();
62
- continue;
63
- }
64
- var block = blockOf(node);
65
- if (block !== lastBlock) close();
66
- lastBlock = block;
67
- var re = /(\S+)|(\s+)/g, m;
68
- while ((m = re.exec(node.data))) {
69
- if (m[2]) { close(); continue; }
70
- range.setStart(node, m.index);
71
- range.setEnd(node, m.index + m[0].length);
72
- var rects = range.getClientRects();
73
- for (var i = 0; i < rects.length; i++) {
74
- var r = rects[i];
75
- if (r.width <= 0) continue;
76
- current += r.width;
77
- if (last && r.top > last.top + last.height / 2) split = true;
78
- last = r;
79
- }
80
- }
81
- }
82
- close();
83
- return { widest: widest, split: split };
84
- }
85
-
86
- function lineWidth(el) {
87
- var cs = win.getComputedStyle(el);
88
- return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
89
- - parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
90
- }
91
-
92
- // ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
93
- // runs before React hydrates, and React 19 in development reports ANY
94
- // attribute that differs from what it rendered ("a tree hydrated but some
95
- // attributes didn't match"): first our inline font-size on the hero (which
96
- // React owns via --heading-size), then, when that moved to a data-sf-fit
97
- // attribute, the attribute itself. So the fitted size lives only in this
98
- // script's own stylesheet, in <head>, addressed to each heading by its
99
- // POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
100
- // structure changes, so the rules are rewritten in the MutationObserver
101
- // callback, which runs before the next paint. !important so the size also
102
- // beats a part's own inline size.
103
- var head = doc.head || doc.documentElement;
104
- var fitEl = doc.createElement("style");
105
- fitEl.id = "storefront-fit-words-sizes";
106
- head.appendChild(fitEl);
107
- // heading -> [[element, fitted size]]: the heading and each Text part inside
108
- // it that holds its own size (a span [data-sf-part-styled]), e.g.
109
- // [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
110
- // a part at its own size, and the word still breaks (card C25, Spec Table).
111
- var fitted = new Map();
112
-
113
- function pathOf(el) {
114
- var parts = [];
115
- for (var e = el; e && e.parentElement; e = e.parentElement) {
116
- var i = 1, s = e;
117
- while ((s = s.previousElementSibling)) i++;
118
- parts.unshift("*:nth-child(" + i + ")");
119
- }
120
- return ":root>" + parts.join(">");
121
- }
122
- function writeRules() {
123
- var css = "";
124
- fitted.forEach(function (sizes, el) {
125
- if (!el.isConnected) { fitted.delete(el); return; }
126
- for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
127
- });
128
- if (fitEl.textContent !== css) fitEl.textContent = css;
129
- }
130
-
131
- function unfit(el) {
132
- if (fitted.delete(el)) writeRules();
133
- }
134
-
135
- function fits(el) {
136
- var m = measure(el);
137
- return !m.split && m.widest <= lineWidth(el) + SLACK;
138
- }
139
-
140
- function fit(el) {
141
- unfit(el);
142
- if (modeOf(el) !== "shrink") return; // the block's own Wrap
143
- if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
144
- if (fits(el)) return;
145
- var set = parseFloat(win.getComputedStyle(el).fontSize);
146
- if (!set) return;
147
- var floor = floorOf(el, set);
148
- if (floor >= set) return;
149
- function size(px) { return Math.floor(px * 10) / 10 + "px"; }
150
- // The SEARCH tries sizes on the element's own style and then puts that
151
- // attribute back byte for byte (or removes it, if it had none), so nothing
152
- // is left for React to see. A trial in a stylesheet instead restyles the
153
- // whole page per step: a full pass on the Hartes home took 75–160ms at 4x
154
- // CPU that way.
155
- // Every trial scales the heading AND each part inside it that holds its
156
- // own size, by the same ratio, so a part keeps its proportion to the
157
- // heading.
158
- var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
159
- var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
160
- var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
161
- function attempt(px) {
162
- for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
163
- }
164
- function done() {
165
- for (var i = 0; i < carriers.length; i++) {
166
- if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
167
- }
168
- }
169
- attempt(floor);
170
- if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
171
- var lo = floor, hi = set;
172
- for (var i = 0; i < 8; i++) {
173
- var mid = (lo + hi) / 2;
174
- attempt(mid);
175
- if (fits(el)) lo = mid; else hi = mid;
176
- }
177
- done();
178
- fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
179
- writeRules();
180
- }
181
-
182
- // What each heading measured right after we last fitted it, so the
183
- // ResizeObserver below can tell a real change (a font swap, a rotate, a
184
- // container that moved) from the size change our own write just caused.
185
- var seen = new WeakMap();
186
- function remember(el) {
187
- var b = el.getBoundingClientRect();
188
- seen.set(el, b.width + "x" + b.height);
189
- }
190
- function fitAndRemember(el) { fit(el); remember(el); }
191
-
192
- // ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
193
- // WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
194
- // fitted heading, and fonts.ready resolves only after that frame is painted —
195
- // measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
196
- // reported here is fitted in the same frame, so the broken state is never
197
- // drawn. It also covers a container that resizes.
198
- var ro = new win.ResizeObserver(function (entries) {
199
- for (var i = 0; i < entries.length; i++) {
200
- var el = entries[i].target;
201
- var b = el.getBoundingClientRect();
202
- if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
203
- fitAndRemember(el);
204
- }
205
- });
206
- // Its own set, not seen: fitAndRemember has written seen by the
207
- // time watch runs, so a seen test observed no heading at all, and a
208
- // heading fitted in the fallback face was never fitted again when the web
209
- // font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
210
- var watched = new WeakSet();
211
- function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
212
-
213
- function fitAll() {
214
- var els = doc.querySelectorAll(CANDIDATES);
215
- for (var i = 0; i < els.length; i++) {
216
- if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
217
- else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
218
- }
219
- }
220
-
221
- var queued = 0, all = false, touched = new Set();
222
- function run() {
223
- queued = 0;
224
- if (all) { all = false; touched.clear(); fitAll(); return; }
225
- var els = Array.from(touched);
226
- touched.clear();
227
- for (var i = 0; i < els.length; i++) {
228
- if (!els[i].isConnected) continue;
229
- if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
230
- else unfit(els[i]);
231
- }
232
- }
233
- function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
234
- function scheduleAll() { all = true; schedule(); }
235
-
236
- fitAll();
237
- // A backstop only: a font that changes widths without changing any
238
- // heading's box is not seen by the ResizeObserver.
239
- if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
240
-
241
- // …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
242
- // heading sized to its own text (fit-content, a flex item) keeps the SAME box
243
- // when the phone turns to 844, so nothing reports a change and it would stay
244
- // shrunk. The probe's rotate check caught exactly that.
245
- var lastWidth = win.innerWidth;
246
- function onResize() {
247
- if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
248
- lastWidth = win.innerWidth;
249
- scheduleAll();
250
- }
251
- win.addEventListener("resize", onResize);
252
-
253
- var mo = new win.MutationObserver(function (records) {
254
- // Positions first: a node added or removed anywhere can shift the
255
- // nth-child path of a fitted heading, and this callback runs before paint.
256
- if (fitted.size) {
257
- for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
258
- }
259
- for (var i = 0; i < records.length; i++) {
260
- var r = records[i];
261
- // A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
262
- // only a data-fit attribute moved, so every heading is measured again.
263
- if (r.type === "attributes") { scheduleAll(); continue; }
264
- var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
265
- var owner = target && target.closest(CANDIDATES);
266
- if (owner) touched.add(owner);
267
- for (var j = 0; j < r.addedNodes.length; j++) {
268
- var n = r.addedNodes[j];
269
- if (n.nodeType !== 1) continue;
270
- if (n.matches(CANDIDATES)) touched.add(n);
271
- var inner = n.querySelectorAll(CANDIDATES);
272
- for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
273
- }
274
- }
275
- if (touched.size) schedule();
276
- });
277
- mo.observe(doc.body, {
278
- childList: true,
279
- subtree: true,
280
- characterData: true,
281
- attributes: true,
282
- attributeFilter: ${JSON.stringify(Object.values(Ko))},
283
- });
284
-
285
- doc.__sfFitWords = function stop() {
286
- win.removeEventListener("resize", onResize);
287
- ro.disconnect();
288
- mo.disconnect();
289
- if (queued) win.cancelAnimationFrame(queued);
290
- fitted.clear();
291
- fitEl.remove();
292
- delete doc.__sfFitWords;
293
- };
294
- // For the probe and for debugging: which headings are fitted, at what size,
295
- // and the sheet that holds it (disable it to read a heading's set size).
296
- doc.__sfFitWords.fitted = fitted;
297
- doc.__sfFitWords.sheet = fitEl;
298
- // …and the two questions a block's own answer changes, for the guard
299
- // (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
300
- doc.__sfFitWords.modeOf = modeOf;
301
- doc.__sfFitWords.floorOf = floorOf;
302
- })(document);`,S6="storefront-fit-words";function u0(e){let o=e.createElement("script");return o.id=S6,o.textContent=y6,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var k6=`
303
- [${$e}][${$e}] { cursor: text; }
304
- `;function $f({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=Po(),n=Zt(t);return x0(()=>{if(o)return c0(o,{mode:r,switchShown:a})},[o,r,a]),x0(()=>{if(o)return p0(o,n)},[o,n]),C6(()=>{if(o)return u0(o)},[o]),w6(b6,{children:[m0(LT,{}),m0("style",{children:k6}),e]})}import{jsx as MB}from"react/jsx-runtime";import{memo as F8}from"react";import{Render as B8}from"efficient-easel/render";import{jsx as Dn}from"react/jsx-runtime";import{createContext as v6,useContext as P6,useMemo as T6}from"react";var Jx=v6(null);function O6({children:e}){return Dn(Jx.Provider,{value:"first",children:e})}function Uf({children:e}){return Dn(Jx.Provider,{value:"below",children:e})}function ul(){return P6(Jx)}function Zx(){return ul()==="below"?{loading:"lazy"}:{}}function jf(e){let o=Zx();return Dn("img",{...e,...o})}var h0="laterSlideIds",E6=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function I0(e){return mf(e?.filter(o=>!o?.type||!E6.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 g0(e,o){let t=o?.type,r=o?.props?.id;return T6(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Dn(O6,{children:Dn(n,{...l})}):Dn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function y0(e){return e.props?Ve(e,o=>{let t=We(o,y0),r=e.type===AC&&t.every(a=>a.type===Fd)?EC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function S0(e){return ed(e,o=>We(o,y0))}var _6="Flex",b0="ListSearch",w0=["FAQ"],A6="listKey";function C0(e,o){let t={search:e.type===b0,list:w0.includes(String(e.type))};return Ve(e,r=>{for(let a of r){let n=C0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===_6&&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=Ve(e,n=>We(n,s=>k0(s,o,r)));return r&&(e.type===b0||w0.includes(String(e.type)))?{...a,props:{...a.props,[A6]:r}}:a}function v0(e){return rn(e,o=>{let t=new Set;for(let r of o)C0(r,t);return t.size?We(o,r=>k0(r,t,"")):o})}import{isNode as MW,isNodeList as SE}from"efficient-easel/data";import{jsx as Ee,Fragment as PW,jsxs as lr}from"react/jsx-runtime";import{jsx as sh}from"react/jsx-runtime";import{Fragment as N6,jsx as M6}from"react/jsx-runtime";import{jsx as Qx}from"react/jsx-runtime";import{createContext as L6,Fragment as R6,useContext as D6}from"react";import{jsx as P0,jsxs as F6}from"react/jsx-runtime";import{lazy as B6}from"react";var T0=B6(()=>import("./section-css-style-BECHWIDU.js"));function O0({css:e,id:o,attr:t}){return P0(T0,{css:e,id:o,attr:t})}var E0={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,[Td]:""};let o=e.render;e.render=t=>{let r=Qw(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):F6(Cr,{className:"sf-section-css",attrs:{[Zw]:a},children:[P0(T0,{css:r,id:a}),o(t)]})}}};var _0=L6(null);function A0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=ck(t),a=Qx(R6,{children:o},"page");return Qx(_0.Provider,{value:t,children:r?[Qx(O0,{css:r,id:fk,attr:Gd},"css"),a]:a})}function F0(){return D6(_0)}function Ct(){return Od(F0())===sC}function Gf({className:e,children:o}){let t=Ct();return M6(N6,{children:o(Zo(e,t))})}import{SITE_SIDE as H6}from"efficient-easel/screen/lib/content/length-units";var B0="sideSpace",fa=H6,hse=[{value:"box",label:"Box"},{value:fa,label:"Site"}],Ise="box",gse="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. It has no effect when Content is Full width.";function L0(e){return e===fa?fa:"box"}function yse(e){return e===fa?fa:void 0}import{parseOption as th}from"efficient-shell/format";var Kf="standard",M0=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],oh=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],eh=[...oh,"description"],R0={standard:["eyebrowLook"],editorial:[...oh,"eyebrowLook"],simple:eh,statement:eh,natural:oh,essay:eh},D0=["gap-5","gap-3"],N0=["text-[length:var(--size-body,16px)]","text-[15px]"];function Cse(e){return th(D0,D0[0],e)}function kse(e){return th(N0,N0[0],e)}function H0(e){return th(M0,Kf,e)}function vse(e){let o=M0.map(r=>r.value),t=[...new Set(Object.values(R0).flat())];return Jo(e,t.map(r=>[[r],pd("headStyle",o,Kf,o.filter(a=>!R0[a].includes(r)))]))}import{readHidable as W6}from"efficient-easel/draw";var ca={direction:"row",share:"content",align:"center"},pa={top:14,bottom:14,topPhone:12,bottomPhone:12},qf={wrap:"nowrap",loop:"scroll",sectionAccent:Xw,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},W0={gap:120,gapPhone:64},Vf={...Lo,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},$0={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},ml={top:24,bottom:24,topPhone:16,bottomPhone:16},ua={top:16,bottom:16,topPhone:12,bottomPhone:12},xl={justify:"between",wrap:"wrap",gap:32,separator:"none"},hl={...Lo,letterSpacing:.1,lineHeight:1.5};var Yf={top:24,bottom:24,topPhone:24,bottomPhone:24},Xf={top:72,bottom:72,topPhone:72,bottomPhone:72},Nn={top:100,bottom:100,topPhone:60,bottomPhone:60},Jf={top:120,bottom:120,topPhone:70,bottomPhone:70},$6={top:24,bottom:24,topPhone:24,bottomPhone:24},z6=40,Zf={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},U6={top:24,bottom:24,topPhone:24,bottomPhone:24},Qf={top:24,bottom:24,topPhone:24,bottomPhone:24},j6={top:84,bottom:84,topPhone:84,bottomPhone:84},ec={top:48,bottom:48,topPhone:48,bottomPhone:48},oc={top:80,bottom:80,topPhone:60,bottomPhone:60},tc={top:100,bottom:60,topPhone:60,bottomPhone:40},rc={top:60,bottom:60,topPhone:40,bottomPhone:40},ac={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},nc={top:76,bottom:76,topPhone:76,bottomPhone:76},sc={top:76,bottom:76,topPhone:76,bottomPhone:76},gl={top:80,bottom:40,topPhone:60,bottomPhone:32},yl={top:76,bottom:76,topPhone:76,bottomPhone:76},lc={top:72,bottom:72,topPhone:72,bottomPhone:72},ic={top:40,bottom:64,topPhone:24,bottomPhone:36},dc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},fc={top:48,bottom:48,topPhone:48,bottomPhone:48},Sl=e=>{let o=ye(e.bandPadding)??z6;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},z0=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),rh=e=>fn(e.headPlacement)==="own-box",Fe=(e,o)=>({top:z0(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:z0(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),U0=e=>({top:e.topPhone,bottom:e.bottomPhone}),Il=e=>o=>rh(o)?{top:0,bottom:e.bottom}:e,G6=(e,o)=>{let t=W6(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},ah={Banner:{frame:()=>Fe(Yf)},Cards:{frame:Il(Fe(Xf))},Chart:{frame:()=>Fe(yl)},ContactLocations:{frame:()=>Fe(Nn,U0(Nn))},Countdown:{frame:()=>Fe(ec)},DocBody:{frame:()=>Fe(oc)},DocMasthead:{frame:()=>Fe(tc)},DocMetaCards:{frame:()=>Fe(rc)},FAQ:{frame:e=>{let o=rh(e)||!["num","title","linkText"].some(r=>G6(e,r)),t=Fe(Jf);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Fe(ac)},Grid:{frame:()=>Fe($6)},Integrations:{frame:()=>Fe(nc)},KeyFeatures:{frame:()=>Fe(sc)},Logos:{frame:e=>rh(e)?0:Fe(Sl(e))},LongRead:{frame:Il(Fe(Zf))},Masthead:{frame:()=>Fe(gl,U0(gl))},Mockup:{frame:()=>Fe(yl)},OrderSummary:{frame:()=>Fe(U6)},PaymentBadges:{frame:()=>Fe(Qf)},Prose:{frame:Il(Fe(lc))},SectionHeader:{frame:e=>{let o=Fe(ic);return H0(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:Il(Fe(dc))},Stats:{frame:()=>Fe(fc)},Testimonials:{frame:Il(Fe(j6))},Ticker:{frame:()=>Fe(pa),edge:!0}};function Nse(e,o){let t=$(ah,e);return t?wn({values:jd(o,ko,!0),frame:t.frame(o),drawsFrame:!0,edge:t.edge},!0).root:null}var K6=/^(?:[^\s]*:)?p[ytb]-/;function j0(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!K6.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 q6}from"efficient-easel/data";var nh=new Set(["FAQ"]);function qo(e,o){if(!nh.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:q6(t)}var K0={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}},q0=new Set(Object.keys(K0));function lh(e,o){return o?.innerPadding??$(K0,e)}var Mn=e=>lh(e)??{};var cc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),V6=new Set(["Divider"]),Y6=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),G0=new Set(["ProductGrid"]);function ih(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...jd(n,ko,t),sideSpace:L0(n.sideSpace)},l=r?wn({values:s,frame:r(n)},!0).outer:lk(s),i=a(n);if(!l)return i;let d=u=>sh(Gf,{className:u?`${l.className} ${u}`:l.className,children:h=>sh(ie,{className:h,style:l.style,children:i})}),c=Sr(n,{atSectionLine:!0}),x=Sr(n);return c===x?d(c):sh(Vd,{line:"by-box",draw:u=>d(u?x:c)})}}var V0={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!Y6.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=lh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:yr,unitKey:zd,fallback:r,tablet:!0,siteSide:!0})};return}if(G0.has(o))return;let a=[yr.top,yr.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=$(dh,o);if(n){Y0(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!lh(o,e)){if(G0.has(o)){ih(e);return}cc.has(o)||V6.has(o)||ih(e,o==="Flex"?t=>Ek(t.bgImage):nh.has(o)?t=>qo(o,t):void 0,!0,$(dh,o))}}},X6=["Heading","Text","ImageBlock","ButtonBlock"],J6=["LogoBlock"],dh={Text:e=>vr(e,"text").textStyle?.startsWith("heading-")?Zs.heading:Zs.text,Heading:()=>Zs.heading,ButtonBlock:()=>Zs.text,Breadcrumb:()=>nx(ml),SpecStrip:()=>nx(ua),...Object.fromEntries(Object.entries(ah).map(([e,o])=>[e,o.frame]))},Z6={ButtonBlock:"Outer padding"};function Q6(e,o){let t=e[Nt],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=bn().filter(i=>o?.[i]);if(!a.length)return e;let n=[...r.filter(i=>!a.includes(i)),...a.filter(i=>typeof e[i]=="number")];if(n.length===r.length&&n.every((i,d)=>i===r[d]))return e;let{[Nt]:s,...l}=e;return n.length?{...l,[Nt]:n}:l}function e3(e,o,t){if(o<=0)return null;let r=Array.isArray(e[Nt])?e[Nt]:[];return(t?bn().filter(a=>a.startsWith(ko[t])):bn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?f("plus {n} px (older setting)",{n:o}):null}function Y0(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,e3,$(Z6,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?Q6(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var X0={name:"blockPadding",applies:(e,o,t)=>(X6.includes(e)||J6.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=$(dh,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}Y0(e,o,t,r)},draw(e,o){cc.has(o)||ih(e,void 0,!0)}};import{createContext as fh,useContext as pc}from"react";var J0=fh(null);function rle(){return pc(J0)===!0}function ale(){return pc(J0)!==null}var o3=fh(!1);function nle(){return pc(o3)}function sle(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 uc=fh(null);function lle(){return pc(uc)}import{jsx as ma}from"react/jsx-runtime";import{Component as d3,createContext as f3,lazy as Cle,Suspense as kle,useContext as c3,useSyncExternalStore as p3}from"react";function t3(e,o){let t=e.trim();if(!mc(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 fle(e){return e.startsWith("/")||mc(e)}function mc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var bl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function Z0(e,o){return t3(e,o)?{...bl}:{}}function cle(e){return typeof e=="string"?e.trim():""}var ple="data-sf-box-link",Q0="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",ch="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",r3="data-sf-box-jump";function a3(e){return`sf-box-jump-${e}`}function ule(e,o){return e===!0?sa(o):""}function n3({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 mle(e){let o=`[${r3}="${e}"]`,t=`.${a3(e)}`,r=`[id="${e}"]:target`;return n3({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 s3="hrefRewrite";function l3(){return en("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function i3(){return typeof process<"u"&&!0}function Ile(e){let o=e?.[s3];return typeof o=="string"?o.trim():""}function eO(e){if(!e)return null;let o=l3(),t=o.rewrites.get(e);return!t&&!i3()&&o.missed.add(e),t??null}var u3={Link:Vv,Image:qv},oO=f3(u3);function _le({runtime:e,children:o}){return ma(oO.Provider,{value:e,children:o})}function uh(){return c3(oO)}function Ale(){return uh().pagePath??null}var m3=()=>()=>{},x3=()=>ff()||null,h3=()=>null;function I3(){return p3(m3,x3,h3)}function xa({hrefRewrite:e,newTab:o,...t}){let{Link:r}=uh(),a=I3(),n=o===!0?{...t,...bl}:o==="auto"?{...t,...Z0(t.href,a)}:t,s=eO(e);return s?ma(ph,{name:s.name,href:n.href,fallback:ma(r,{...n}),children:ma(g3,{Link:r,rewrite:s.rewrite,...n})},s.key):ma(r,{...n})}function g3({Link:e,rewrite:o,...t}){let r=mo(o(t.href)),a=r&&mb(r)?r:t.href;return ma(e,{...t,href:a})}var ph=class extends d3{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 xc(e){let{Image:o}=uh();return ma(o,{...e})}import{jsx as xW}from"react/jsx-runtime";import{jsx as Se,jsxs as To,Fragment as cW}from"react/jsx-runtime";import{imageCopyUrl as aO,imageSrcSet as y3}from"efficient-shell/image-copies";var tO;function mh(){return tO===void 0?{}:{host:tO}}var Lle="(max-width: 800px) 100vw, min(100vw, 1600px)",Rle="(max-width: 960px) 100vw, 50vw";function ha(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=y3(e,{...mh(),...t===void 0?{}:{maxWidth:t}});return r?{src:aO(e,o,mh()),srcSet:r}:{src:e}}var S3=/[\s"'()\\;]/,b3={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function rO(e){return e.replace(/[\\"\n\r\f]/g,o=>b3[o]??o)}function Dle(e){let o=aO(e,1920,mh());return o===e?S3.test(e)?`url("${rO(e)}")`:`url(${e})`:`url("${rO(o)}")`}import{parseOption as w3}from"efficient-shell/format";var wl="solid",C3=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function nO(e){return w3(C3,wl,e)}var xh="sf-secnum-outline",sO="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",lO=`@supports (-webkit-text-stroke: 1px currentColor){.${xh}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;import{parseOption as iO}from"efficient-shell/format";var hh="plain",dO=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],k3="line",v3={KeyFeatures:"filled"};function Cl(e){return $(v3,e)??hh}function fO(e,o){return iO(dO,Cl(o),e)}function zle(e){return iO(dO,k3,e)}import{jsxs as ya,jsx as Ne}from"react/jsx-runtime";import{Fragment as Th}from"react";import{Fragment as J3,jsx as kh}from"react/jsx-runtime";import{Fragment as CO,jsx as Ol,jsxs as U3}from"react/jsx-runtime";import{createContext as Ch,useContext as El,useEffect as j3,useId as G3,useMemo as K3,useRef as q3}from"react";import{armEntrance as V3}from"efficient-shell/format";import{jsx as P3}from"react/jsx-runtime";import{useEffect as pO,useRef as cO,useState as T3}from"react";import{armEntrance as O3,entranceAttrs as E3,playEntrance as _3}from"efficient-shell/format";function hc({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let i=cO(null),d=Xd(),c=ot(),x=n?c:br,u=kl(i,!0,s),{attrs:h,style:I}=E3(e[u]),C=cO(Hn.seed(e)),P=JSON.stringify(e);return pO(()=>{let O=i.current;if(O){if(o){let F=Hn.next(C.current,e,u);C.current=F.seen,F.play&&_3(O);return}return O3(O)}},[P,u,o]),x.scope(P3("div",{ref:i,className:vo(`${gn}${d.fill}${t?` ${t}`:""}`,x.className),...r,...x.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:d.inner(l)}))}var Hn={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=Hn.seed(o);return{play:r[t]!==e[t],seen:r}}};function kl(e,o=!0,t=!1){return vl(e,o,t)??"desktop"}function vl(e,o=!0,t=!1){let[r,a]=T3(void 0),n=wr(t?"edge":"by-box"),{phone:s,tablet:l}=Tv(n);return pO(()=>{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),c=i.matchMedia(l),x=()=>a(d.matches?"phone":c.matches?"tablet":"desktop");return x(),d.addEventListener("change",x),c.addEventListener("change",x),()=>{d.removeEventListener("change",x),c.removeEventListener("change",x)}},[e,o,s,l]),r}var Pl="@name",uO="@body",mO="@value",xO={[Pl]:"Name",[uO]:"Body",[mO]:"Value"},A3={TimelineTrack:{"entries.date":Pl,"entries.title":Pl,"entries.blurb":uO},Footprint:{"offices.city":Pl},Stats:{"items.label":Pl,"items.value":mO}};function F3(e){let{key:o,row:t}=Mt(e);return t?`${o}.${t.rowKey}`:null}function ar(e,o){if(!e)return o;let t=F3(o);return t?$(A3,e)?.[t]??o:o}import{ENTRANCE_STATE_ATTR as M3,entranceAttrs as H3,scrollAttrs as W3}from"efficient-shell/format";import{parseFocal as R3,formatFocal as D3,readScroll as N3}from"efficient-shell/format";import{phoneKey as B3,tabletKey as L3}from"efficient-easel/screen/lib/content/view-tiers";var Ih=[{block:"HeroSlide",upload:"mediaImage",focus:Ys.image},{block:"HeroSlide",upload:"mediaImage2",focus:Ys.image2},{block:"HeroSingle",upload:"mediaImage",focus:Ys.image},{block:"HeroSingle",upload:"mediaImage2",focus:Ys.image2},{block:"ImageBlock",upload:"src",focus:"focal"}],hO=e=>[e,L3(e),B3(e)],rie=[...new Set(Ih.flatMap(e=>hO(e.focus)))].sort();function IO(e,o){let[t,r,a]=hO(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var ho={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},Wn="_gScroll",Ic="_cScroll",gc=Ld(Object.values(ho));function nr(e,o){return N3(Ks(e,ho.effect,o),Ks(e,ho.zoom,o),Ks(e,ho.start,o),Ks(e,ho.end,o))}function $n(e){let o={desktop:nr(e,"desktop"),tablet:nr(e,"tablet"),phone:nr(e,"phone")};return Qo.every(t=>o[t].effect==="none")?null:o}function gh(e){let o=GC(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=R3(a);return D3(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function gO(e,o){return gh(IO(e,o))}var yc={},yh="_partMotion",Sh=[...Rd,Xo,Ge.duration,Ge.delay,...gc];function SO(e){return ev(e,yh)}function Ia(e,o){return ov(e,yh,o)}var $3=new Set([Go.kind,Xo,ho.effect]);function bO(e,o,t,r){let{[t]:a,...n}=Ia(e,o),s=r==null||r===""||r==="none"&&$3.has(t)?n:{...n,[t]:r};return tv(e,yh,o,Object.keys(s).length?s:null)}function Tl(e){return{entrance:yn(e),hover:hb(e),scroll:$n(e)}}function wO(e){let o=Tl(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function Sc(e,o){let{attrs:t,style:r}=H3(o),a=Object.keys(t).filter(n=>t[n]!==void 0);for(let n of a)e.setAttribute(n,String(t[n]));for(let[n,s]of Object.entries(r))e.style.setProperty(n,String(s));return()=>{for(let n of a)e.removeAttribute(n);for(let n of Object.keys(r))e.style.removeProperty(n);e.removeAttribute(M3)}}function bc(e,o){let{attrs:t,style:r}=W3(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 z3=4;function zn(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&z3)&&(o=t);return o}var bh="data-sf-part-host";function wc(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(bh)&&!t.classList.contains(gn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var ga="data-sf-part-lift",yO="sf-part-lift";function Cc(e){if(e.getElementById(yO))return;let o=e.createElement("style");o.id=yO,o.textContent=dv(`[${ga}]`).join(`
317
- `),e.head.appendChild(o)}var kc=Ch(null),vO=Ch(null),PO=Ch(null);function TO({needles:e,styles:o,motions:t=yc,type:r,atEdge:a=!1,sizeCaps:n,children:s}){let l=G3(),i=wr(a?"edge":"by-box"),d=JSON.stringify([l,e,o,t,r,n]),c=K3(()=>{let u=Object.keys(t).filter(h=>wO(t[h]));return Pv(e,o,l,h=>ar(r,h),h=>rl(r,h),h=>u.includes(h)?Tl(t[h]):null,u,h=>aa(n,h))},[d]);if(!c)return Ol(CO,{children:s});let x=Ov(c,{inBox:i});return U3(CO,{children:[x&&Ol("style",{href:`${Y3}${l}-${X3(x)}`,precedence:EO,dangerouslySetInnerHTML:{__html:Tk(x)}}),Ol(kc.Provider,{value:c,children:s})]})}var wh=new WeakMap;function kO(e,o){let t=zn(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:zn(o.filter(a=>a.scroll));for(let a of o)a!==t&&a.undo&&(a.undo(),a.undo=void 0),a!==r&&a.undoScroll&&(a.undoScroll(),a.undoScroll=void 0);t?.arm&&!t.undo&&(t.undo=t.arm()),r?.scroll&&!r.undoScroll&&(r.undoScroll=r.scroll()),o.some(a=>a.lift)?(Cc(e.ownerDocument),e.setAttribute(ga,"")):e.removeAttribute(ga)}function OO(e){let o=q3(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=kl(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 j3(()=>{let d=o.current,c=wc(d?.parentElement??null);if(!t&&!r&&!a||!d||!c)return;let x=s?()=>{let I=Sc(c,s),C=V3(c);return()=>{C?.(),I()}}:null,u=wh.get(c)??[];wh.set(c,u);let h={element:d,arm:x,entering:s!==null&&s.kind!=="none",scroll:l?()=>bc(c,l):null,lift:a};return u.push(h),kO(c,u),()=>{let I=u.indexOf(h);I<0||(u.splice(I,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,kO(c,u),u.length||wh.delete(c))}},[i,a]),o}var EO="sf-part-styles",Y3=`${EO}-`;function X3(e){let o=2166136261;for(let t=0;t<e.length;t+=1)o^=e.charCodeAt(t),o=Math.imul(o,16777619);return(o>>>0).toString(36)}function _O(e){let o=El(kc),t=El(vO),r=Ev(o,e);return r&&r.stamp!==t?r:null}function vie(e){return ux(El(kc),e)}function AO({stamp:e,children:o}){return Ol(vO.Provider,{value:e,children:o})}function Pie({children:e}){let o=El(kc);return Ol(PO.Provider,{value:o,children:e})}function Tie(e){return ux(El(PO),e)}function _l({value:e,children:o}){let t=_O(e),r=OO(t);return t?kh(AO,{stamp:t.stamp,children:kh("span",{ref:r,[av]:t.stamp,...t.textStyle?{[ta]:t.textStyle}:{},children:o})}):kh(J3,{children:o})}import{jsx as vh,Fragment as Z3}from"react/jsx-runtime";function FO({className:e=""}){return vh("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function rt(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((r,a)=>{r&&t.push(r),a<o.length-1&&t.push(vh(FO,{},`r${a}`))}),vh(Z3,{children:t})}var Lie=FO;function Ye(e,o=!1,t){let r=nW(o),a=nd(e);if(a.length===1){let[s]=a,l=xb(s),i=l?rW(l,s.children):s.children;return ya(_l,{value:e,children:[t,vc(i,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(Ne("span",{"data-sf-bullet":"",className:Q3,children:vc(s.children,r)},l));return}if(s.number!=null){n.push(ya("span",{"data-sf-number":s.number,className:eW,children:[ya("span",{className:oW,children:[s.number,"."]}),vc(s.children,r)]},l));return}l>0&&!tW(a[l-1])&&n.push(Ne("br",{},`br${l}`)),n.push(Ne(Th,{children:vc(s.children,r)},l))}),ya(_l,{value:e,children:[t,n]})}var Q3="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",eW="relative block pl-[2em]",oW="absolute left-0 w-[1.6em] text-right tabular-nums";function tW(e){return e.bullet||e.number!=null}var BO="text-accent underline underline-offset-[0.18em]";function rW(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function aW(e){return Ok(e)||void 0}function vc(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(Ne("span",{children:rt(a.text)},n)),r=!0;return}r||t.push(Ne("span",{},`e${n}`)),t.push(RO(a,n,o)),r=!1}),r||t.push(Ne("span",{},"end")),t}function Ph(e,o){return e.length===1&&e[0].kind==="text"?rt(e[0].text):e.map((t,r)=>t.kind==="text"?Ne(Th,{children:rt(t.text)},r):RO(t,r,o))}function nW(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function Gie(e){return LO(e)}function LO(e,o){let t=e.split(`
318
- `);return ya(_l,{value:e,children:[o,t.map((r,a)=>ya(Th,{children:[a>0?Ne("br",{}):null,Ne("span",{children:r})]},a))]})}function RO(e,o,t){if(e.kind==="link")return mc(e.href)?Ne(xa,{newTab:"auto",href:e.href,className:BO,children:Ph(e.children,t)},o):Ne("a",{href:e.href,className:BO,children:Ph(e.children,t)},o);let r=Ph(e.children,t),a=cb[e.kind];if(a)return Ne("span",{[pb]:a,children:r},o);switch(e.kind){case"underline":return Ne("u",{children:r},o);case"sup":return Ne("sup",{children:r},o);case"sub":return Ne("sub",{children:r},o);case"color":{let n=aW(e.color);return n?Ne("span",{style:{color:n},children:r},o):Ne("span",{children:r},o)}case"accent":case"highlight":return Ne("em",{className:t,children:r},o);case"bold":return Ne("strong",{className:"font-semibold",children:r},o);case"italic":return Ne("em",{className:"italic",children:r},o);case"strike":return Ne("s",{className:"line-through",children:r},o);default:return Ne("span",{children:r},o)}}function DO(e,o=!0,t=!1){let r=e.split(`
319
- `);return Ne(_l,{value:e,children:r.map((a,n)=>ya("span",{children:[t?LO(a):Ye(a,o),n<r.length-1?Ne("br",{}):null]},n))})}function NO(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Oh,jsxs as lW}from"react/jsx-runtime";import{jsx as sW}from"react/jsx-runtime";function MO(){return sW("span",{className:"block h-px w-[30px] bg-current"})}var Eh={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 iW(e,o){return`font-mono text-[length:var(--size-label,${e}px)] uppercase tracking-[0.3em] text-accent`}var dW=`inline-block w-fit bg-accent px-3.5 py-1.5 font-mono ${Eh.labelSmall} font-semibold uppercase tracking-[0.16em] text-bg`,fW=`flex items-center gap-3.5 font-mono ${Eh.labelLarge} uppercase tracking-[0.3em] opacity-80 ${Eh.labelUpTo800} max-view-wide:tracking-[0.25em]`;function Un({text:e,look:o="plain",size:t=13,scaled:r=!0,className:a="",classNameAfter:n="",takesViewHide:s=!1}){let l=ot(),i=s?l:br;if(o==="line")return i.scope(lW("div",{className:vo([a,fW,n].filter(Boolean).join(" "),i.className),...i.attrs,children:[Oh(MO,{}),Oh("span",{children:Ye(e)})]}));let d=o==="filled"?dW:iW(t,r);return i.scope(Oh("span",{className:vo([a,d,n].filter(Boolean).join(" "),i.className),...i.attrs,children:Ye(e)}))}var Oe={headingMediumUpTo800Small:"max-view-wide:text-[length:min(var(--size-headingMedium,32px),var(--sf-heading-max,9999px))]",headingMediumUpTo800Large:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",headingSmallUpTo800:"max-view-wide:text-[length:var(--size-headingSmall,28px)]",headingMedium2:"text-[length:min(var(--size-headingMedium,44px),var(--sf-heading-max,9999px))]",headingMedium3:"text-[length:min(var(--size-headingMedium,56px),var(--sf-heading-max,9999px))]",headingMedium1:"text-[length:var(--sf-heading-max,var(--size-headingMedium,38px))]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,16px)]",label:"text-[length:var(--size-label,14px)]",shelfLabel:"text-[length:var(--size-label,13px)]",shelfLabelSmall:"text-[length:var(--size-label,12px)]",shelfBody:"text-[length:var(--size-body,13px)]",shelfHeadingUpTo800Xs:"max-view-wide:text-[length:var(--size-headingMedium,28px)]",shelfHeadingUpTo800Small:"max-view-wide:text-[length:var(--size-headingMedium,32px)]",shelfHeadingUpTo800Large:"max-view-wide:text-[length:var(--size-headingMedium,36px)]",shelfHeadingUpTo800Xl:"max-view-wide:text-[length:var(--size-headingMedium,40px)]",shelfHeading1:"text-[length:var(--size-headingMedium,40px)]",shelfHeading2:"text-[length:var(--size-headingMedium,48px)]",shelfHeading3:"text-[length:var(--size-headingMedium,56px)]",shelfHeading4:"text-[length:var(--size-headingMedium,64px)]"},HO=[{value:"para",label:"Paragraph size \u2014 13px",cls:`font-mono font-normal uppercase tracking-[0.22em] ${Oe.shelfLabel}`},{value:"sm",label:"Small \u2014 40px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading1} ${Oe.shelfHeadingUpTo800Xs}`},{value:"md",label:"Medium \u2014 48px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading2} ${Oe.shelfHeadingUpTo800Small}`},{value:"lg",label:"Large \u2014 56px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading3} ${Oe.shelfHeadingUpTo800Large}`},{value:"xl",label:"Extra large \u2014 64px",cls:`font-heading2 font-medium tracking-[-0.03em] ${Oe.shelfHeading4} ${Oe.shelfHeadingUpTo800Xl}`}],pW="lg";function uW(e){return(HO.find(o=>o.value===e)??HO.find(o=>o.value===pW)).cls}var jn=(e,o=!1)=>typeof e=="string"?DO(e,o):e,sr=(e,o=!1)=>typeof e=="string"?Ye(e,o):e;function WO({num:e,title:o,link:t,logo:r,description:a,accent:n,accentNum:s,numStyle:l=wl,look:i="standard",titleAccent:d,accentTracking:c="-0.02em",spaceBelow:x,rowGap:u,descriptionSize:h,className:I="",eyebrowLook:C=hh,titleSize:P,count:O,capped:F=!1,rootPadsBottom:v=!1}){let y=Ct(),b=x??(i==="editorial"?"mb-[60px]":"");if(i==="shelf")return e||o||a||t?To("div",{className:Zo(`${tP} 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 ${F?"":"-mx-[var(--sf-site-gutter,40px)] px-[var(--sf-site-gutter,40px)] max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))] max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]"}`,y),children:[To("div",{className:"flex min-w-0 items-end gap-6 max-view-wide:flex-col max-view-wide:items-stretch max-view-wide:gap-3",children:[e&&Se("span",{className:`font-mono ${Oe.shelfLabel} leading-none uppercase tracking-[0.22em] text-fg-dim`,children:sr(e)}),o&&Se("h2",{className:`${uW(P)} leading-none text-fg max-view-wide:leading-[1] [&>span]:block`,children:jn(o)})]}),(a||t||O)&&To("div",{className:"flex items-center gap-5 max-view-wide:gap-3 view-wide:grow view-wide:justify-end",children:[a&&Se("span",{className:`max-w-[340px] truncate font-display ${Oe.shelfBody} leading-[1.4] text-fg-dim max-view-wide:hidden view-wide:w-0 view-wide:grow view-wide:text-right`,children:sr(a)}),t&&To(xa,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Oe.shelfLabel} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[sr(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]}),O&&Se("span",{className:`whitespace-nowrap font-mono ${Oe.shelfLabelSmall} uppercase tracking-[0.2em] text-fg-dim`,children:O})]})]}):null;if(i==="editorial"){let g=!!o||!!d;return To("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(Un,{text:e,className:"pb-2"}):Se("span",{className:"pb-2",children:e})),g&&To("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&&To(cW,{children:[" ",Se("em",{className:"font-serif font-normal italic text-accent",style:{letterSpacing:c},children:d})]})]}),a&&Se("p",{className:`max-w-[360px] pb-1 text-right font-display ${Oe.bodySmall} leading-[1.5] text-fg-dim max-view-desktop:max-w-full max-view-desktop:text-left`,children:a})]})}if(i==="simple"){let g=`${b} ${I}`.trim();return To("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(Un,{text:e,look:C,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium2} font-medium uppercase leading-none tracking-[-0.02em] text-fg ${Oe.headingMediumUpTo800Small}`,children:jn(o)})]})}if(i==="statement"){let g=`${b} ${I}`.trim();return To("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(Un,{text:e,look:C,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:jn(o,!0)})]})}if(i==="natural"){let g=`flex max-w-[680px] flex-col ${u??"gap-5"} ${b} ${I}`.replace(/\s+/g," ").trim();return To("div",{className:g,children:[e&&(typeof e=="string"?Se(Un,{text:e,look:C}):Se("span",{children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium2} font-medium leading-[1.05] tracking-[-0.03em] ${Oe.headingMediumUpTo800Small}`,children:jn(o)}),a&&Se("p",{className:`${h??`${Oe.bodyLarge}`} leading-[1.6] opacity-85`,children:a})]})}if(i==="essay"){let g=`${b} ${I}`.trim();return To("div",{className:g||void 0,children:[e&&(typeof e=="string"?Se(Un,{text:e,look:C,className:"mb-4 block"}):Se("span",{className:"mb-4 block",children:e})),o&&Se("h2",{className:`font-heading2 ${Oe.headingMedium1} [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.02em] text-fg ${Oe.headingSmallUpTo800}`,children:jn(o)})]})}let E=!!a||!!t,B=!!o,R=nO(l)==="outlined",k=`font-mono ${Oe.label} uppercase tracking-[0.3em]`,L=null;if(e)if(R)L=Se("span",{className:`${sO} text-fg-dim ${xh}`,children:sr(e)});else if(s&&!n&&typeof e=="string"){let g=e.indexOf("/"),w=g===-1?e:e.slice(0,g),T=g===-1?"":e.slice(g);L=To("span",{className:k,children:[Se("span",{className:"text-accent",children:sr(w)}),T&&Se("span",{className:"text-fg-dim",children:sr(T)})]})}else L=Se("span",{className:`${k} ${n?"text-accent":"text-fg-dim"}`,children:sr(e)});return To("div",{className:v?"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:[R&&e&&Se("style",{children:lO}),To("div",{className:"flex flex-col items-start gap-3",children:[r?.src&&Se(xk,{children:Se(jf,{...mW(Qv(r.src)),alt:r.alt,className:"h-8 w-auto object-contain"})}),L]}),B&&Se("h2",{className:n?"font-heading2 text-[length:min(var(--size-headingMedium,clamp(36px,5vw,64px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.95] tracking-[-0.025em]":`font-heading2 ${Oe.headingMedium3} [font-weight:var(--sf-heading-weight,500)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-none tracking-[-0.03em] whitespace-pre-line ${Oe.headingMediumUpTo800Large} max-view-wide:leading-[1]`,children:jn(o)}),E&&To("div",{className:"flex flex-col items-end gap-3 max-view-wide:items-start",children:[a&&Se("p",{className:`max-w-[340px] font-display ${Oe.bodySmall} leading-[1.5] text-fg-dim text-right max-view-wide:max-w-full max-view-wide:text-left`,children:sr(a)}),t&&To(xa,{newTab:"auto",href:t.href,className:`inline-flex items-center gap-2 whitespace-nowrap font-mono ${Oe.label} uppercase tracking-[0.2em] text-fg-dim transition-colors hover:text-fg`,children:[sr(t.text),Se("span",{"aria-hidden":!0,children:"\u2192"})]})]})]})}function mW(e){let o=ha(e,{fallbackWidth:640,maxWidth:960});return o.srcSet?{src:o.src,srcSet:o.srcSet,sizes:"240px"}:{src:e}}function $O({num:e,title:o,titleAccent:t,desc:r,accentTracking:a="-0.02em",spaceBelow:n="mb-[60px]",className:s=""}){return xW(WO,{look:"editorial",num:e,title:o,titleAccent:t,description:r,accentTracking:a,spaceBelow:n,className:s})}import{jsx as Fl,jsxs as wW}from"react/jsx-runtime";import{useEffect as CW,useState as JO}from"react";import{jsx as hW}from"react/jsx-runtime";var zO="sf-photo-hover";function Pc({sheet:e,name:o=zO}){return e?hW("style",{href:o,precedence:zO,dangerouslySetInnerHTML:{__html:e}}):null}import{jsx as VO,Fragment as yW}from"react/jsx-runtime";import{createContext as SW,useContext as Oc}from"react";var IW=Nb["view-desktop"];function gW(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`,Tc=e=>{let o=/^([\d.]+)vw$/.exec(e??"");return o?Math.min(1,Number(o[1])/100):1};function bde(e,o){return{phone:_h(e.phone*Tc(o?.phone)),tablet:_h(e.tablet*Tc(o?.tablet)),desktop:_h(e.desktop*Tc(o?.desktop))}}function Ah(e){if([e.phone,e.tablet,e.desktop].every(r=>Tc(r)>=1))return;let o=[{below:yt,slot:e.phone},{below:IW,slot:e.tablet}],t=o.filter((r,a)=>r.slot!==(o[a+1]?.slot??e.desktop));return gW(t,e.desktop)}function UO(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 jO=(e,o)=>e.steps.find(t=>o<=t.edge)?.slot??e.last,GO=e=>{let o=/^min\((.+)\)$/.exec(e);return o?o[1].split(/,\s*(?![^()]*\))/).map(t=>t.trim()):[e]};function KO(e,o){if(e===o)return e;let t=[...GO(e),...GO(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 qO(e,o){if(!o)return e;let t=UO(e),r=UO(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:KO(jO(t,s),jO(r,s))})),n=KO(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 bW={hasWidth:!1},Al=SW(bW);function Pde(){return Oc(Al).hasWidth}function Tde(e){let{bound:o}=Oc(Al);return o&&Ah(o)||e}function YO(e){let{bound:o}=Oc(Al);return qO(e,o&&Ah(o))}function XO({children:e}){let o=Oc(Al);return o.bound?VO(Al.Provider,{value:{hasWidth:o.hasWidth},children:e}):VO(yW,{children:e})}function ZO({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:c=!0,treatment:x}){let u=Zx(),h=YO(s),I=l?h:s,[C,P]=JO(!1),[O,F]=JO(!1),v=t||"";CW(()=>{P(!1),F(!1)},[v]);let y=cf(v),b=y&&!O?ha(v):{src:v},E=!v||C;return wW("div",{className:`relative h-full w-full overflow-hidden ${o??""}`,children:[Fl("div",{className:"absolute inset-0 flex items-center justify-center",style:c?{background:"var(--site-surface)"}:void 0,children:E?e:null}),Fl(Kd,{fill:Qs,children:v&&(y?Fl("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${x?.className?` ${x.className}`:""}`,style:{display:C?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>b.srcSet?F(!0):P(!0)}):Fl(xc,{src:v,alt:r,fill:!0,sizes:I,priority:i,...x?.className?{className:x.className}:{},style:{display:C?"none":"block",objectFit:n,...a?{objectPosition:a}:{},...x?.style??{}},onError:()=>P(!0)}))}),Fl(Pc,{sheet:x?.sheet})]})}import{jsx as kW}from"react/jsx-runtime";var Bl="sf-empty-hides",Fh="sf-empty-else",Ec="sf-head-core",_c="sf-head-box",Ll="holdsHeadCore",Rl="isHeadCore",vW=`.${Bl}:empty{display:none}.${Bl}:not(:empty)~.${Fh}{display:none}.${_c},.${Ec}{display:contents}.${_c}:not(:has(.${Ec}:not(:empty))){display:none}`;function Ac(){return kW("style",{children:vW})}var Mo={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)]"},QO={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"},Bh="sf-itc-boxes",TW="sf-itc-steps";function Lh(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 afe({num:e,title:o,description:t,boxes:r,steps:a,columns:n=3,cta:s,padTop:l,padBottom:i,bandPad:d,editing:c=!1,omitHead:x=!1,cardImage:u,cardImageUnit:h,cardText:I,rows:C,copies:P}){let O=Ct(),F=P!==void 0,v=C&&(F||(r?.blockCount??0)>0)?C:null,y=d??dk({padTop:l,padBottom:i},Mn("ProcessSteps")),b=F?[]:Lh(a),E=b.length>0?b:c&&!r&&!F?[1,2,3].map(g=>({tag:f("Column {n}",{n:g})})):[],B=QO[n]??QO[3],R=v?"grid-cols-1":B,k=v?"":" [&>*]:min-h-[560px]",L=I==="on-image";return Ee(ie,{as:"section",className:Zo(["relative z-[2] border-b border-line bg-bg",y.className].filter(Boolean).join(" "),O),style:{...y.style,...$P(u,h)},children:lr("div",{className:Zo(cC,O),children:[x?null:Ee($O,{num:e,title:o?.trim()?Ye(o,!0):void 0,desc:t?.trim()?Ye(t,!1):void 0}),r&&!F?lr(PW,{children:[Ee(Ac,{}),v?Ee(uc.Provider,{value:{hand:v,ids:r.blockIds??[],boxes:[]},children:Ee(r,{className:`${Bh} ${Bl} sf-card grid ${R} gap-[2px] border border-line bg-line${k} [&>*]:bg-bg`,minEmptyHeight:260})}):Ee(r,{className:`${Bh} ${Bl} sf-card grid ${R} gap-[2px] border border-line bg-line [&>*]:min-h-[560px] [&>*]:bg-bg`,minEmptyHeight:260})]}):null,F&&P?Ee("div",{className:`${Bh} sf-card grid ${R} gap-[2px] border border-line bg-line${k} [&>*]:bg-bg`,children:v?Ee(uc.Provider,{value:{hand:v,copies:!0},children:P}):P}):null,E.length>0&&Ee("div",{className:`${TW} ${Fh} sf-card grid ${B} gap-[2px] border border-line bg-line`,children:E.map((g,w)=>{let T=(g.specs??[]).filter(S=>(S?.label??"").trim()||(S?.value??"").trim());return lr("article",{className:L?"flex flex-col bg-bg":"flex min-h-[560px] flex-col bg-bg",children:[lr("div",{className:L?"sf-card-image relative aspect-[5/3] overflow-hidden bg-surface max-[700px]:aspect-[4/3]":"sf-card-image relative aspect-[5/3] overflow-hidden border-b border-line bg-surface",children:[Ee(ZO,{label:g.tag?.trim()||g.title?.trim()||`column-${w+1}`,src:g.image||void 0,sizes:"(max-width: 1100px) 100vw, 33vw",...r?{deferFetch:!0}:{}}),Ee("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 z-[1]",style:{background:`linear-gradient(180deg, ${Gs(.55)} 0%, transparent 30%, transparent 70%, ${Gs(.65)} 100%)`}}),L&&Ee("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 z-[1] h-[78%]",style:{background:`linear-gradient(180deg, transparent 0%, ${Gs(.73)} 55%, ${Gs(.92)} 100%)`}}),g.tag?.trim()&&Ee("span",{className:`absolute left-5 top-[18px] z-[2] font-mono ${Mo.label} uppercase tracking-[0.3em] text-accent`,children:rt(g.tag)}),g.meta?.trim()&&Ee("span",{className:L?`absolute right-5 top-[18px] z-[2] font-mono ${Mo.label} uppercase tracking-[0.24em] text-overlay-fg/80`:`absolute right-5 bottom-[18px] z-[2] font-mono ${Mo.label} uppercase tracking-[0.24em] text-overlay-fg/80`,children:rt(g.meta)}),L&&(g.title?.trim()||g.copy?.trim())&&lr("div",{className:"absolute inset-x-0 bottom-0 z-[2] flex flex-col gap-2.5 px-8 pb-7 pt-14 max-[700px]:px-6 max-[700px]:pb-6",children:[g.title?.trim()&&Ee("h3",{className:`flex min-h-[2em] flex-col justify-end font-heading3 ${Mo.headingSmall1} font-medium uppercase leading-none tracking-[-0.02em] text-overlay-fg ${Mo.headingSmallUpTo700Small}`,children:Ye(g.title,!0)}),g.copy?.trim()&&Ee("p",{className:`min-h-[3em] font-display ${Mo.bodySmall} leading-[1.5] text-overlay-fg/85`,children:Ye(g.copy,!1)})]})]}),L?T.length>0&&Ee("div",{className:"grid grid-cols-2 gap-2 border-t border-line px-8 py-7 max-[700px]:px-6 max-[700px]:py-6",children:T.map((S,N)=>lr("div",{className:"flex flex-col gap-1",children:[S.label?.trim()&&Ee("span",{className:`font-mono ${Mo.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:rt(S.label)}),S.value?.trim()&&Ee("span",{className:`font-display ${Mo.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:rt(S.value)})]},N))}):lr("div",{className:"flex flex-1 flex-col gap-4 px-8 py-9 max-[700px]:px-6 max-[700px]:py-7",children:[g.title?.trim()&&Ee("h3",{className:`font-heading3 ${Mo.headingSmall2} font-medium uppercase leading-none tracking-[-0.02em] ${Mo.headingSmallUpTo700Large}`,children:Ye(g.title,!0)}),g.copy?.trim()&&Ee("p",{className:`font-display ${Mo.bodySmall} leading-[1.55] text-fg-dim`,children:Ye(g.copy,!1)}),T.length>0&&Ee("div",{className:"mt-auto grid grid-cols-2 gap-2 border-t border-line pt-4",children:T.map((S,N)=>lr("div",{className:"flex flex-col gap-1",children:[S.label?.trim()&&Ee("span",{className:`font-mono ${Mo.labelSmall} uppercase tracking-[0.24em] text-fg-dim`,children:rt(S.label)}),S.value?.trim()&&Ee("span",{className:`font-display ${Mo.bodyLarge} font-medium tracking-[-0.01em] text-fg`,children:rt(S.value)})]},N))})]})]},w)})}),s?.text&&Ee("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:lr(xa,{newTab:"auto",href:s.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${Mo.labelLarge} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[rt(s.text),Ee("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"\u2192"})]})})]})})}var OW=["selected","highlighted"],eE="data-sf-card-state",tE="pointer-events-none absolute inset-0 border border-accent",rE="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",aE="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",nE="absolute inset-y-0 left-0 w-[3px] bg-accent",sE="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",lE="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",oE=e=>{let o=qw.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},EW={[oE("muted")]:`var(${oE("fg")})`};function Rh(e){return e?.selected===!0}function Dh(e){return e?OW.filter(o=>e[o]===!0).join(" "):""}function iE(e,o="frame"){let t=Dh(e);return t?o==="frame"&&Rh(e)?{[eE]:t,className:"relative isolate",style:{...EW}}:{[eE]:t,className:"relative"}:{}}var _W={highlighted:!0},AW={},Fc="badge";function dfe(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||$s(t,r)}))}function dE(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===Fc||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function ffe(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,[Fc]:s===a?t:""})),states:e.map((n,s)=>s===a?_W:AW)}}function cfe(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function pfe(e){if(!e||typeof e!="object")return;let{press:o,pressLabel:t,pressDisabled:r}=e;if(typeof o=="function")return{press:o,...typeof t=="string"&&t.trim()!==""?{label:t}:null,...r===!0?{disabled:!0}:null}}var fE="data-sf-card-press",cE=`${Q0} appearance-none bg-transparent border-0 p-0 m-0`,pE=`${cE} cursor-pointer`,uE=cE;import{paymentMarkItems as FW,paymentMarks as BW}from"efficient-shell/icons/payment";var LW=[US,jS],mE=e=>LW.includes(e),xE=e=>FW({name:e.label,kind:e.kind}),RW=(e,o)=>e.kind===o.kind&&e.label===o.label&&(e.kind==="brand"?e.mark===o.mark:e.glyph===o.glyph);function hE(e){return BW(e.map(o=>({name:o.label,kind:o.kind}))).map(o=>({label:o.label,kind:e.find(t=>xE(t).some(r=>RW(r,o)))?.kind??""}))}function hfe(e){return xE(e)[0]??null}var IE={heading:"Trusted by *teams worldwide*"},Bc=()=>[{src:"",alt:f("Logo one")},{src:"",alt:f("Logo two")},{src:"",alt:f("Logo three")},{src:"",alt:f("Logo four")},{src:"",alt:f("Logo five")}],DW=Qi.Logos,Sfe={label:"Logos",drawsPictures:!0,fields:DW,defaultProps:{items:[],contained:!0}};var NW=()=>Bc().map(e=>({label:e.alt}));function gE(e,o){let t=Zi(e,o,NW()).rows.filter(r=>r.label);return mE(De(e))?hE(t):t}var Dl="Flex",HW="Text",Nl=e=>Object.values(e??{}).filter(SE),WW=e=>e.type===no&&De(e.props)!=="",bE=e=>{if(e.type!==Dl)return!1;let o=Nl(e.props).flat();return o.length>0&&o.every(WW)},Lc=e=>fn(e.props?.headPlacement)==="own-box"||bE(e),Nh=e=>e===void 0||Array.isArray(e)&&e.length===0;function wE(e){return e.type===HW?!0:e.type===Dl&&Nl(e.props).every(o=>o.every(wE))}var CE={ProcessSteps:e=>Nh(e.boxes)&&Lh(e.steps).length===0,Logos:e=>De(e)?$W(e):Nh(e.logos)&&Nh(e.items)};function $W(e){return YS(e)!==null&&gE(e,!1).length===0}function zW(e){return Nl(e.props).flat().every(o=>!Zi(o.props,!1).rows.some(dE))}function Rc(e){let o=Nl(e.props).flat();return o.some(Lc)&&o.every(t=>Lc(t)||wE(t))}function UW(e){if(!MW(e)||!Lc(e))return e;let o=bE(e)?zW(e):$(CE,String(e.type))?.(e.props??{})===!0;return{...e,props:{...e.props,[Rl]:o?"empty":!0}}}function yE(e){return Ve(e,o=>We(o,UW))}function kE(e){let o=Object.entries(e.props??{}).filter(([,r])=>SE(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===Dl&&t.props?{key:o[0][0],inner:t}:null}function vE(e){if(e?.type!==Dl||!e.props)return e;if(Rc(e)){let t=yE(e);return{...t,props:{...t.props,[Ll]:!0}}}let o=kE(e);return!o||!Rc(o.inner)?e:{...e,props:{...e.props,[o.key]:[yE(o.inner)],[Ll]:!0}}}function PE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{let n=vE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var jW=e=>$(CE,String(e.type))?.(e.props??{})===!0;function GW(e){if(e.type!==Dl||!e.props)return!1;let o=Rc(e)?null:kE(e),t=o?o.inner:e;if(!Rc(t))return!1;let r=Nl(t.props).flat().filter(Lc);return r.some(a=>De(a.props)!=="")&&r.every(jW)}function TE(e){return Ve(e,o=>KW(o))}function KW(e){let o=!1,t=[];for(let r of e){if(GW(r)){o=!0;continue}let a=TE(r);a!==r&&(o=!0),t.push(a)}return o?t:e}function OE(e){let o=e;if(!o||!Array.isArray(o.content))return e;let t=!1,r=o.content.map(a=>{if(vE(a)!==a)return a;let n=TE(a);return n!==a&&(t=!0),n});return t?{...o,content:r}:e}var qW=["DocMasthead","AlloyWheelsListing"],Dc="titleLevel",VW=e=>e===2?"h2":"h1",Mh=e=>VW(e?.[Dc])==="h2";function EE(e){let o=e;if(!o?.content?.length)return e;let t=!1,r=!1,a=o.content.map(n=>qW.includes(n?.type??"")?t?(r=!0,{...n,props:{...n.props??{},[Dc]:2}}):(t=!0,n):n);return r?{...o,content:a}:e}import{readHidable as e$}from"efficient-easel/draw";var Gn="showFor";function _E(){return en("efficient.box-show-for-choices",()=>({choices:[],revision:0}))}var YW=e=>!!e&&typeof e=="object"&&typeof e.slug=="string"&&e.slug.trim()!==""&&typeof e.name=="string"&&e.name.trim()!=="";function Hfe(){return _E().choices}function Wfe(){return _E().revision}function AE(e){return YW(e)?{slug:e.slug,name:e.name}:void 0}import{readHidable as XW}from"efficient-easel/draw";var Hh="_wallLabelId",JW="_wallLabelledBy",Wh=e=>e.props?.id==null?"":String(e.props.id);function ZW(e){if(!e||e.type!=="Text"||!Wh(e))return!1;let o=XW(e.props?.text);return!o.hidden&&o.text.trim()!==""}var QW=e=>!!e&&e.type==="Logos"&&e.props?.look==="marks"&&Wh(e)!=="",FE=(e,o,t)=>({...e,props:{...e.props,[o]:t}});function BE(e){let o=We(e,r=>Ve(r,BE)),t=null;for(let r=1;r<o.length;r++){if(!QW(o[r])||!ZW(o[r-1]))continue;let a=`sf-wall-label-${Wh(o[r-1])}`;t??=o.slice(),t[r-1]=FE(t[r-1],Hh,a),t[r]=FE(t[r],JW,a)}return t??o}function LE(e){return rn(e,BE)}var RE="_cardPressTitles",o$="_cardPressTitle";function Jfe(e,o){let t=e?.[RE],r=t&&typeof t=="object"?t[o]:void 0;return Array.isArray(r)&&r.length?r:void 0}var DE=(e,o)=>({...e,props:{...e.props,...o}});function t$(e){let o=e.props??{};return e.type!=="Text"||e$(o.text).hidden||typeof o[jo]=="string"||typeof o[Hh]=="string"?"":Rt(o)}function NE(e,o,t,r){return We(e,a=>{let n=t$(a);if(n&&!r.has(n))return r.add(n),t.push({field:n,gates:o}),DE(a,{[o$]:!0});if(a.type==="Text"||Array.isArray(a.props?.[Gn]))return a;let s=a.props?.[on],l=Array.isArray(s)&&s.length?[...o,s.filter(i=>typeof i=="string")]:o;return Ve(a,(i,d)=>ea(a.type,d)?i:NE(i,l,t,r))})}function ME(e){let o,t=Ve(e,(r,a)=>{let n=We(r,ME);if(!ea(e.type,a))return n;let s=[],l=NE(n,[],s,new Set);return s.length&&((o??={})[a]=s),l});return o?DE(t,{[RE]:o}):t}function HE(e){return rn(e,o=>We(o,ME))}import{pinnedDuplicateIndices as cz}from"efficient-easel/draw";import{jsx as at,jsxs as O_}from"react/jsx-runtime";import{createContext as tz,useContext as rz,useEffect as az,useRef as nz,useState as E_}from"react";import{jsx as _r,jsxs as UE}from"react/jsx-runtime";import{useEffect as Kn,useRef as jE,useState as Sa}from"react";import{jsx as WE,Fragment as r$,jsxs as a$}from"react/jsx-runtime";import{useEffect as n$,useRef as $E,useState as s$}from"react";var l$="#t=0.001",i$=2;function d$(e,o){if(e.readyState<i$||!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 zE({src:e,objectPosition:o="50% 50%",onError:t}){let r=$E(null),a=$E(null),[n,s]=s$(!1);return n$(()=>{let l=r.current,i=a.current;if(n||!l||!i)return;let d=()=>{d$(l,i)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),a$(r$,{children:[WE("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&&WE("video",{ref:r,src:`${e}${l$}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var f$="data-part",tce=Object.freeze({Flex:Object.freeze(["box","card","card-content"]),Grid:Object.freeze(["grid"]),Hero:Object.freeze(["hero","arrows","arrow","dots","dot","strip"]),HeroSlide:Object.freeze(["slide","hero-media","tint","overlay","hero-content"]),HeroSingle:Object.freeze(["hero","hero-media","tint","overlay","hero-content"]),ImageBlock:Object.freeze(["image-block","image-frame","image"]),ButtonBlock:Object.freeze(["button-block","button","button-icon"]),Text:Object.freeze(["text-block","text"]),Heading:Object.freeze(["heading-block","heading"]),LogoBlock:Object.freeze(["logo"]),MenuBlock:Object.freeze(["menu-block","heading","menu","menu-item","menu-link","menu-button"]),SiteHeader:Object.freeze(["header","header-content"]),SiteFooter:Object.freeze(["footer"]),FooterSection:Object.freeze(["footer-block","grid","legal-line","copyright"]),FooterLogo:Object.freeze(["logo-block","logo-link","tagline"]),FooterSocial:Object.freeze(["social-block","social-item","social-link"]),ProductGrid:Object.freeze(["product-grid-block","grid-head","grid-number","heading","description","view-all","count","grid","grid-empty"]),ProductCard:Object.freeze(["card","card-link","card-content","image-block","image-frame","image-plate","image","card-number","badges","badge","eyebrow","product-name","pattern","specs","price","price-note","swatches","swatch","sizes","size","buy","button","page-label"])});function Er(e){return{[f$]:e}}var c$=.5;function Ml({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=c$,objectPosition:i="50% 50%",objectPositionPhone:d,objectPositionTablet:c,quiet:x=!1,slideShown:u,laterSlide:h=!1,laterOfLead:I=!1}){let C=eP(d,c),P=ul(),[O,F]=Sa(!1),v=P==="below"&&!O,y=P==="first",b=a||"",E=n||"",B=jE(null),R=vl(B,!0,!0),k=R===void 0?void 0:R==="phone",L=uf({video:e,av1:o,videoPhone:t,av1Phone:r},k===!0),g=L.video||"",w=pf(g,L.av1),[T,S]=Sa(!1),[N,H]=Sa(!1),[q,z]=Sa(!1),[ne,ge]=Sa(!1),J=u??!0,[me,oe]=Sa(!1),xe=P!=="first"&&!I,[ce,qe]=Sa(!1),ro=jE(null);Kn(()=>{if(!xe)return;if(document.readyState==="complete"){qe(!0);return}let le=()=>qe(!0);return window.addEventListener("load",le,{once:!0}),()=>window.removeEventListener("load",le)},[xe]),Kn(()=>{S(!1),H(!1),z(!1),ge(!1)},[g,b,E]),Kn(()=>{J&&oe(!0)},[J]),Kn(()=>{let le=ro.current;le&&(J?le.play()?.catch(()=>{}):le.pause())},[J,me,ce]),Kn(()=>{if(!h||xe&&!ce)return;let le=()=>F(!0);if(typeof window.requestIdleCallback=="function"){let W=window.requestIdleCallback(le,{timeout:2e3});return()=>window.cancelIdleCallback(W)}let Le=setTimeout(le,800);return()=>clearTimeout(Le)},[h,xe,ce]),Kn(()=>{let le=ro.current;if(!le)return;let Le=()=>{le.playbackRate=l};return Le(),le.addEventListener("loadedmetadata",Le),()=>le.removeEventListener("loadedmetadata",Le)},[g,l]);let wo=cf(b),Je=b&&(wo||E)&&!N?ha(b):{src:b},co=E&&!N?ha(E):{src:E},po=E&&!v&&!O?[{sized:co,media:dx},...b?[{sized:Je,media:Ns}]:[]]:[];return UE("div",{ref:B,className:"absolute inset-0 z-[1]",...Er("hero-media"),children:[_r("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),po.map(({sized:le,media:Le})=>_r("link",{rel:"preload",as:"image",href:le.src,media:Le,fetchPriority:"high",...le.srcSet?{imageSrcSet:le.srcSet,imageSizes:"100vw"}:{}},Le)),(b||E)&&(wo||E?(()=>{let le=_r("img",{...b?{src:Je.src}:{},...Je.srcSet?{srcSet:Je.srcSet,sizes:"100vw"}:{},alt:"",...v?{loading:"lazy"}:{},...y?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${C.className}`.trim(),style:{display:T?"none":"block",objectPosition:i,...C.style},onError:Le=>{Le.currentTarget.currentSrc&&(Je.srcSet||co.srcSet?H(!0):S(!0))}},E?void 0:b);return E?UE("picture",{children:[_r("source",{media:dx,srcSet:co.srcSet||co.src,sizes:"100vw"}),le]},`${b} ${E}`):le})():_r(xc,{src:b,alt:"",fill:!0,...v?{}:O?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${C.className}`.trim(),style:{display:T?"none":"block",objectPosition:i,...C.style},onError:()=>S(!0)},b)),s&&!x&&g&&k!==void 0&&me&&(!xe||ce)&&!q&&_r("video",{ref:ro,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:()=>z(!0),children:w.map(le=>_r("source",{src:le.src,type:le.type},le.src))},g),s&&x&&g&&k!==void 0&&me&&(!xe||ce)&&!ne&&(!b||T)&&_r(zE,{src:g,objectPosition:i,onError:()=>ge(!0)},g)]})}import{jsx as Io,Fragment as r_,jsxs as Gh}from"react/jsx-runtime";import{jsx as qn}from"react/jsx-runtime";import{useRef as p$}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as u$,scrollAttrs as m$}from"efficient-shell/format";function Nc({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:i,children:d}){let c=p$(null),x=Xd(),u=ot(),h=n?u:br,I=kl(c,!0,s),{attrs:C,style:P}=m$(e[I],o[I]),O=u$.includes(e[I].effect),F=vo(`${gn}${x.fill}${t?` ${t}`:""}`,h.className);if(O&&l==="picture")return h.scope(qn("div",{ref:c,className:F,...r,...h.attrs,...a?{style:a}:{},children:qn(uk,{attrs:C,style:P,children:x.inner(d)})}));let v=qn(mk,{children:x.inner(d)});if(O){let b=i??(x.fill?"h-full":void 0);return h.scope(qn("div",{ref:c,className:F,...r,...h.attrs,style:{...a,overflow:"clip"},children:qn("div",{...b?{className:b}:{},...C,style:P,children:v})}))}let y=Object.keys(P).length||a?{style:{...a,...P}}:{};return h.scope(qn("div",{ref:c,className:F,...r,...h.attrs,...C,...y,children:v}))}var ba=["media","image","image2"],ir={media:"Media",image:"Image",image2:"Image 2"},Hl={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Mc(e,o){return e==="image"&&Xs(o)>1?"Image 1":ir[e]}var Oce="Video file",Ece="Upload a video file",_ce="AV1 file",Ace="Upload an AV1 file";function x$(e,o){return pd("mediaType",Nd,o,[e])}var h$=new Set(Object.keys(Md)),GE="heroPart";function I$(e,o){return{...o,[GE]:e}}function Fce(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e},s=[...Object.values(o).flat(),...Nd.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 Nd)for(let i of t[l])n[i]=Qe(n[i],x$(l,r));for(let[l,i]of Object.entries(a??{}))i&&(n[l]=Qe(n[l],i));for(let l of ba)for(let i of o[l]??[])n[i]=I$(l,n[i]);return n}function g$(e){let o=e?.[GE];return ba.includes(o)?o:null}function KE(e,o){let t={};for(let[r,a]of Object.entries(e))g$(a)===o&&(t[r]=a);return t}function qE(e){if(!h$.has(e.type))return[];let o=[{part:"media",label:ir.media,depth:0}];return qC(e.type,e.props.mediaType)!=="video"&&(o.push({part:"image",label:Mc("image",e.props),depth:1}),Xs(e.props)>1&&o.push({part:"image2",label:Mc("image2",e.props),depth:1})),o}function wa(e,o){return`${e}::${o}`}function Hc(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return ba.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var Wl="data-sf-hero-part";import{MOTION_TIMING as y$}from"efficient-shell/format";var JE="grayscale(1) contrast(1.03)",Dce="Black and white";function S$(e){return e===!0?{filter:JE}:{}}function b$(e){let{filter:o}=S$(e);return o?{style:{filter:o}}:{}}var Ca="sf-photo-grayscale",jh="data-sf-photo-host",VE={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Uc=`@media (hover:hover){.${Ca}{filter:${JE};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))}.${Ca}:hover,[data-sf-photo-host]:hover .${Ca}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Ca}{transition:none}}`;function ZE(e){let o=y$.hover,t={...e.duration!==o.duration.default?{[VE.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[VE.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function QE(e,o,t){if(e===!0)return b$(!0);if(t?.kind==="mono"){let r=ZE(t);return{className:Ca,sheet:Uc,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Ca}:{}}var e_="data-sf-repeat",$h="sf-photo-zoom",w$="--sf-photo-zoom",Nce="sf-photo-wash",Wc="sf-photo-wash-rest",$l="sf-photo-wash-hover",zc="sf-photo-frame",o_=(e,o)=>`:not([${e_}]:not(${o}) .${e})`,Uh=(e,o)=>`[${e_}]${o} .${e}${o_(e,o)}`,zh=(e,o)=>`${o},${Uh(e,":hover")},[${jh}]:hover .${e}${o_(e,":hover")}`,YE=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))`,C$=`.${$l}{opacity:0}@media (hover:hover){.${Wc},.${$l}{transition:${YE("opacity")}}${zh($l,`.${zc}:hover .${$l}`)}{opacity:1}${zh(Wc,`.${zc}:hover .${Wc}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${$h}{transition:${YE("transform")}}${zh($h,`.${zc}:hover .${$h}`)}{transform:scale(var(${w$}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Wc},.${$l}{transition:none}}`,Mce="sf-photo-move";function Hce(e){if(!e||!e.zoom&&!e.darken)return null;let o=ZE(e);return{className:zc,sheet:C$,...o?{style:o}:{}}}function t_(e){return e===!0?{[Ca]:Uc}:{}}var $c="sf-box-reveal",Wce="sf-box-reveal",k$=8,XE=.3,$ce=`@media ${Ns}{.${$c}{opacity:0;transform:translateY(${k$}px);transition:opacity ${XE}s ease-out,transform ${XE}s ease-out}${Uh($c,":hover")},${Uh($c,":focus-within")}{opacity:1;transform:none}}@media ${Ns} and (prefers-reduced-motion:reduce){.${$c}{transition:none;transform:none}}`;import{hidableText as v$}from"efficient-easel/draw";var P$={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"},T$={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 a_(e){let o=e.isVideo&&yP(e.videoSource)==="youtube",t=e.isVideo&&SP(e.videoPlayback)==="click",r=o?bP(v$(e.youtubeUrl)):null,a=VC(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:YC(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Xs(e)>1}}function zl(e,o){return yn(Ia({_partMotion:e},o))}function Ul(e,o){return $n(Ia({_partMotion:e},o))}var jc=e=>gh({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),n_=Qs.img;function s_({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:i}){return e?Io(hc,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:i}):o?Io(Nc,{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 Vn(e,o){return QE(void 0,void 0,Lb(Ia({_partMotion:e},o)))}function l_(e){return ba.some(o=>Vn(e,o).className)?{hostAttrs:{[jh]:""},sheet:Uc}:{}}function Gc({treatment:e,children:o}){return e.className?Io("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Io(r_,{children:o})}function Kc({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},...Er("tint")}):null}function qc({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let i=o&&t?{[Wl]:e}:void 0;return Io(s_,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:i,zoomLayerClass:n_,children:l})}function i_({partMotion:e,editing:o,children:t}){let r=zl(e,"media"),a=Ul(e,"media"),n=Vn(e,"media"),s=Io(Kd,{fill:Qs,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(s_,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:n_,children:l}):Io(r_,{children:l})}function d_({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return Gh("div",{className:`absolute inset-0 z-[1] grid ${P$[o]} ${T$[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Io(qc,{part:"image",editing:t,marked:r,entrance:zl(a,"image"),scroll:Ul(a,"image"),origins:jc(n),className:"relative overflow-hidden",children:Gh(Gc,{treatment:Vn(a,"image"),children:[Io(Ml,{posterSrc:tt(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Io(Kc,{color:n.tintColor,opacity:n.tintOpacity})]})}),Io(qc,{part:"image2",editing:t,marked:r,entrance:zl(a,"image2"),scroll:Ul(a,"image2"),origins:jc(s),className:`relative overflow-hidden ${Av({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:Gh(Gc,{treatment:Vn(a,"image2"),children:[Io(Ml,{posterSrc:tt(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Io(Kc,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Ar,Fragment as O$,jsxs as E$}from"react/jsx-runtime";import{useEffect as _$,useRef as A$,useState as F$}from"react";import{PlaySolidIcon as B$}from"efficient-shell/icons/efficient-looks";function f_({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=F$("large");return _$(()=>n("large"),[e]),e?E$(O$,{children:[!o&&a!=="none"&&Ar(jf,{src:a==="large"?wP(e):CP(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&&Ar("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Ar("iframe",{src:yx(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 c_({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let i=A$(null),d=vl(i,!0,!0)==="phone";if(!e&&!o)return null;let c=uf({video:o,av1:t,videoPhone:r,av1Phone:a},d),x=pf(c.video,c.av1);return n&&!l?e?Ar("iframe",{src:yx(e,"click"),title:Sx,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"}):Ar("video",{ref:u=>{i.current=u},...x.length===1?{src:x[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:x.length>1&&x.map(u=>Ar("source",{src:u.src,type:u.type},u.src))},c.video):Ar("button",{ref:u=>{i.current=u},type:"button","aria-label":Sx,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:Ar(B$,{size:28})})}function p_(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 u_}from"efficient-shell/format";var m_=["top","middle","bottom"],x_=["left","center","right"],h_="bottom",I_="left",L$={top:"Top",middle:"Middle",bottom:"Bottom"},R$={left:"Left",center:"Center",right:"Right"},gpe="Up and down",ype="Sideways",D$={top:"flex-start",middle:"center",bottom:"flex-end"},N$={left:"flex-start",center:"center",right:"flex-end"},M$="--sf-hero-phone-y",H$="--sf-hero-phone-x";function W$(e){return u_(m_,h_,e)}function $$(e){return u_(x_,I_,e)}function g_(e,o){let t=W$(e),r=$$(o),a={};return t!==h_&&(a[M$]=D$[t]),r!==I_&&(a[H$]=N$[r]),a}var z$="--sf-hero-phone-words-top",U$="--sf-hero-phone-words-bottom",j$="--sf-hero-phone-box-gap",Spe=100,bpe=90,wpe=28,G$=0,K$=200,Cpe="Words space top",kpe="Words space bottom",vpe="Space between boxes";function Kh(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(K$,Math.max(G$,Math.round(e)))}function y_(e,o,t){let r={},a=Kh(e),n=Kh(o),s=Kh(t);return a!==void 0&&(r[z$]=`${a}px`),n!==void 0&&(r[U$]=`${n}px`),s!==void 0&&(r[j$]=`${s}px`),r}function Ppe(){return m_.map(e=>({label:L$[e],value:e}))}function Tpe(){return x_.map(e=>({label:R$[e],value:e}))}import{hexToRgb as q$}from"efficient-shell/format";var V$=!0;var Y$=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function S_(e){let o=q$(e);return o?`${o.r},${o.g},${o.b}`:null}function b_(e){return e==null?V$:e!==!1}function w_(e){let o=(e?S_(e):null)??S_(er);return`linear-gradient(180deg, ${Y$.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as C_,parseOption as X$}from"efficient-shell/format";var k_="bottom";var J$=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],Z$={bottom:180,top:0,left:270,right:90},Q$=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],ez=[[null,33],[.6,67],[.94,100]];function oz(e,o){let{r:t,g:r,b:a}=C_(e)??C_(er);return`rgba(${t},${r},${a},${o})`}function v_(e){return X$(J$,k_,e)}function P_(e=er,o=k_){let t=v_(o),r=(t==="top"||t==="bottom"?Q$:ez).map(([a,n])=>`${a===null?"transparent":oz(e,a)} ${n}%`);return`linear-gradient(${Z$[t]}deg, ${r.join(", ")})`}function T_(e,o){let t=mo(e.overlayColor),r=mo(e.overlayPosition),a=mo(o)??er;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:v_(r)}}var sz=tz({});function oue({name:e,process:o,mediaType:t=Md.HeroSlide,mediaSrc:r,videoSpeed:a,poster:n,mediaAv1:s,mediaSrcPhone:l,mediaAv1Phone:i,posterPhone:d,objectPosition:c,objectPositionPhone:x,objectPositionTablet:u,tintColor:h=er,tintOpacity:I=0,groups:C,editing:P=!1,themeClassName:O,themeStyle:F,overlayColor:v,overlayPosition:y,mediaLayout:b,mediaLayoutPhone:E,mediaImage2:B,objectPosition2:R,objectPosition2Phone:k,objectPosition2Tablet:L,tintColor2:g=er,tintOpacity2:w=0,videoSource:T,youtubeUrl:S,videoPlayback:N,partMotion:H,laterSlide:q=!1}){let z=Ct(),ne=ot(),{alignment:ge="left",textureOpacity:J,textureOn:me,textureColor:oe,quietVideo:xe,phoneUpDown:ce,phoneSideways:qe,phoneWordsTop:ro,phoneWordsBottom:wo,phoneBoxGap:Je,holdReel:co,reelHeld:po,shownSlide:le,ratioMin:Le}=rz(sz),W=ul(),he=q&&W==="first",Ie=nz(null),[Ze,Eo]=E_(le===void 0?void 0:!1);az(()=>{let ht=Ie.current;Eo(le===void 0||!ht?void 0:p_(ht.closest(".hero-track"),"data-slide-name")[le]===ht)});let Re=t==="video",Ue=Re?tt(r):void 0,uo=Re?tt(n):tt(r)??tt(n),_o=Re?{av1:tt(s),phone:tt(l),av1Phone:tt(i),poster:tt(d)}:{},Kt=typeof a=="number"?a/100:1,{fromYouTube:pr,onClick:Ya,youTubeId:Xa,backgroundFile:qt,desktopLayout:ur,phoneLayout:Ja,twoPictures:_s}=a_({isVideo:Re,videoSource:T,videoPlayback:N,youtubeUrl:S,mediaLayout:b,mediaLayoutPhone:E}),[Za,Kr]=E_(!1);Za&&po===!1&&Kr(!1);let As=!Za,qr=T_({overlayColor:v,overlayPosition:y},oe),Yi=Re?null:zl(H,"image"),Qa=Re?null:Ul(H,"image"),Fs=l_(H),Xi=at(Gc,{treatment:Re?{}:Vn(H,"image"),children:at(Ml,{videoSrc:qt?Ue:void 0,videoAv1Src:qt?_o.av1:void 0,videoSrcPhone:qt?_o.phone:void 0,videoAv1SrcPhone:qt?_o.av1Phone:void 0,posterSrc:uo,posterSrcPhone:_o.poster,showVideo:qt,playbackRate:Kt,objectPosition:c,objectPositionPhone:Re?void 0:x,objectPositionTablet:Re?void 0:u,quiet:xe,slideShown:Ze,laterSlide:q,laterOfLead:he})}),Ji=O_("section",{ref:Ie,className:vo(`${Le?"relative flex min-h-full w-full flex-col overflow-clip":"relative h-full w-full overflow-hidden"}${O?` ${O}`:""}`,ne.className),...ne.attrs,style:F,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":qt&&Ue?"video":"still",...Fs.hostAttrs,...Er("slide"),children:[at(Pc,{sheet:Fs.sheet}),at(i_,{partMotion:H,editing:P,children:_s?at(d_,{laterSlide:q,desktopLayout:ur,phoneLayout:Ja,editing:P,partMotion:H,first:{src:r,objectPosition:c,objectPositionPhone:x,objectPositionTablet:u,tintColor:h,tintOpacity:I},second:{src:B,objectPosition:R,objectPositionPhone:k,objectPositionTablet:L,tintColor:g,tintOpacity:w}}):pr||Yi||Qa?O_(qc,{part:Re?"media":"image",editing:P,entrance:Yi,scroll:Qa,origins:jc({objectPosition:c,objectPositionTablet:u,objectPositionPhone:x}),className:"absolute inset-0 z-[1]",children:[Xi,pr&&at(f_,{youTubeId:Xa,ownPoster:!!uo,background:!Ya,editing:P})]}):Xi}),Ya&&at(c_,{youTubeId:Xa,fileSrc:pr?void 0:Ue,fileAv1Src:pr?void 0:_o.av1,fileSrcPhone:pr?void 0:_o.phone,fileAv1SrcPhone:pr?void 0:_o.av1Phone,playing:Za,onPlay:()=>{Kr(!0),co?.()},editing:P}),As&&!_s&&at(Kc,{color:h,opacity:I,passClicks:!1}),As&&b_(me)&&at("div",{className:"absolute inset-0 z-[2]",style:{background:qr.own?P_(qr.color,qr.position??void 0):w_(qr.color),...J!==void 0?{opacity:J/100}:null},...Er("overlay")}),As&&at("div",{className:[Le?"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)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",z?iC:"",P?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Vw,...g_(ce,qe),...y_(ro,wo,Je)},...Er("hero-content"),children:C&&at(C,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return ne.scope(he?at(Uf,{children:Ji}):Ji)}var __=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as R_}from"efficient-easel/draw";import{isNodeList as iz}from"efficient-easel/data";var qh=3,Vh=()=>({type:G,props:{direction:"column"},slots:{[Ce]:[{type:"ImageBlock"},{type:G,props:{direction:"column"},slots:{[Ce]:[{type:"Text",props:xr()},{type:"Text"}]}}]}}),A_=()=>Array.from({length:qh},Vh);var F_=["","","","","",""],B_="#ticker",jl="strip",Yh={sectionAccent:Ir,line:!1};function lz(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Xh(e){return lz(e).length>0}function iue(e){return e.showTicker!==!1&&Xh(e)}var D_=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,iz(r)?r.map(a=>D_(a,o)):r]))}}),dz=e=>{let[o]=Bt([Vh()],a=>R_(a)),{id:t,...r}=D_(o,e).props;return r},nt={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>__.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Rs.toLowerCase()}`,seeds:()=>[],addBlocked:Jm,notice:Zm},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Rs.toLowerCase()}`,seeds:()=>[],addBlocked:Jm,notice:Zm},ProcessSteps:{slot:Ls,childType:G,addLabel:`Add ${Rs.toLowerCase()}`,seeds:e=>Array.from({length:qh},()=>dz(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},L_=1,fz={slot:jl,childType:G,addLabel:`Add ${Rs.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=L_?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>L_?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},N_={Hero:{[jl]:fz}};function Sue(e){for(let[o,t]of Object.entries(e)){if(xo(nt,o)&&$(nt,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);nt[o]=t}}function bue(e,o){let t=$(nt,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:R_(t.childType),...r}}))}:null}var pz=["GalleryB"];function M_(e){let o=e.content;if(!Array.isArray(o))return e;let t=!1,r=o.map(s=>{let l=s?.type;if(!l||!pz.includes(l))return s;let i=$(nt,l);if(!i?.legacy)return s;let d=s.props??{},c=d[i.slot];if(Array.isArray(c)&&c.length>0)return s;let x=i.legacy(d);if(!x.length)return s;t=!0;let u=String(d.id??l),h=x.map((I,C)=>({type:i.childType,props:{id:`${i.childType}-${u}-${C}`,...I}}));return{...s,props:{...d,[i.slot]:h}}}),a=new Set(cz(r)),n=a.size?r.filter((s,l)=>!a.has(l)):r;return a.size&&(t=!0),t?{...e,content:n}:e}var uz={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},mz={"Footprint.source":"typed"};function H_(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(uz)){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(mz)){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],qS(l)&&l!==a&&!De(i)&&(i[ao]=l),o=i,t=!0}if(e.type&&o){let r=xd(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=Ve({props:o},a=>We(a,H_));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function W_(e){return ed(e,o=>We(o,H_))}import{readHidable as xz}from"efficient-easel/draw";var $t=G,zt=Ce;function ka(e){if(e.theme)return Zt(e.theme);let o=e.site?.themePresets;return o?Zt({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function hz(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var z_=new Set(["id"]),Fr={},Gl=[],Iz={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"]},gz=Object.keys(Iz),va=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ContactLocations","ProcessSteps",...gz,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Integrations","Countdown","FeaturedCover","IntroBleed","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function oo(e){for(let[o,t]of Object.entries(e)){if(xo(Fr,o)&&$(Fr,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Fr[o]=t}}function Br(e){return $(Fr,e)}function yz(e){return xo(Fr,e)&&Gl.includes(e)}function U_(e,o=va){return xo(Fr,e)&&(o.includes(e)||yz(e))}function Wue(e){let o=$(bt,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 Jh=e=>xz(e),Me=e=>Jh(e).text.trim()!=="";function Sz(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 bz=e=>e==="heading"?xr():e==="eyebrow"?Xt():{};function wz(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 Cz(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?$(e.map,t):void 0)??e.fallback}}function $_(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 c=d?d(t[l],t,a):t[l];c===void 0?delete n[i]:n[i]=c,r(l,i,c===void 0)}return n}function kz(e){let o=new Set([...z_,"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 Zh=e=>fn(e.headPlacement)==="own-box";function vz(e){return Zh(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function Pz(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 Tz(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 Oz(e,o,t){if(!t.press)for(let r of Tz(e)){let a=Pz(o,r);if(a!==void 0)return a}}function Pa(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:vz(r))??Oz(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],l=[],i=new Set,d=(y,b)=>{s.push({key:y,home:b}),i.add(y)},c=r._partStyles??{},x=kz(o),u=0,h=(y,b)=>({type:y,props:{...b,id:`${n}~${y}-${++u}`}}),I=(y,b,E,B,R,k,L)=>{if(R){for(let w of y??[]){let T=typeof w=="string"?w:w[0];E[T]!==void 0&&L(T,`nothing \u2014 the ${B} has no parts, so it is not drawn`)}return}let g=typeof b=="function"?b(r,t):b??{};return $_(y??[],g,E,(w,T,S)=>L(w,S?`nothing \u2014 the old value draws nothing (${B}: no ${T})`:`${k}${B}: ${T}`),t)},C=y=>Bt(y,b=>`${n}~${b}-${++u}`),P=(y,b,E)=>{let B=y.of?y.of(b):Array.isArray(b[y.key])?b[y.key]:[],R=typeof y.props=="function"?y.props(r,t):y.props??{},k=B.map((S,N)=>{let H=S??{},q=y.item?.(H,N,r)??{},z=O(q.reverse?[...y.parts].reverse():y.parts,H,!1,`item ${N+1}: `);return y.flat?q.props?z.map(ne=>({...ne,props:{...ne.props,...q.props,id:ne.props.id}})):z:[h($t,{name:`${y.name} ${N+1}`,...R,...q.props??{},[zt]:z})]});if(y.groups){let S=y.groups;return E(y.key,B.length?`one Box per item (${B.length}), in a Box per group`:"nothing \u2014 the list is empty"),ud(B.map(N=>N??{}),S.of,S.of).map((N,H)=>{let q=N.items.map(oe=>oe.item),z=S.parts?O(S.parts,S.head?.(q,r)??{},!1,`group ${H+1}: `):[],ne=N.items.map(oe=>k[oe.index]),ge=S.perRow?.(q.length,r),J=Number.isInteger(ge)&&ge>=1?ge:1,me=[];if(S.perRow&&J<ne.length)for(let oe=0;oe*J<ne.length;oe++)me.push(ne.slice(oe*J,(oe+1)*J).flat());return h($t,{name:`${S.name} ${H+1}`,...S.props??{},[zt]:[...z,h($t,{name:`${S.itemsName} ${H+1}`,...S.itemsProps?.(q.length,r)??{},[zt]:me.length?me.map((oe,xe)=>h($t,{name:`${S.rowName??`${S.itemsName} row`} ${xe+1}`,...S.rowProps??{},[zt]:oe})):ne.flat()})]})})}let L=y.perRow?.(r),g=y.perRow?Number.isInteger(L)&&L>=1?L:1:0;if(E(y.key,(B.length?y.flat?`each item's parts (${B.length} items), in order`:`one Box per item (${B.length}), its parts inside`:"nothing \u2014 the list is empty")+(g&&B.length?`, in rows of ${g}`:"")),!g)return k.flat();let w=typeof y.rowProps=="function"?y.rowProps(r,t):y.rowProps??{},T=[];for(let S=0;S*g<k.length;S++){let N=k.slice(S*g,(S+1)*g).flat(),H=y.rowFiller?g-k.slice(S*g,(S+1)*g).length:0;T.push(h($t,{name:`${y.rowName??`${y.name} row`} ${S+1}`,...w,[zt]:[...N,...Array.from({length:H},(q,z)=>h($t,{name:`Empty ${z+1}`,...y.rowFiller,[zt]:[]}))]}))}return T},O=(y,b,E,B)=>{let R=[],k=(g,w)=>E?d(g,w):void 0,L=g=>E?c[g]:void 0;for(let g of y)if(!(g.when&&!g.when(r,E?void 0:b)))switch(g.kind){case"text":{let w=Jh(b[g.key]);if(!w.text.trim()&&!(E&&t.press&&o.pressKeepsEmpty?.includes(g.key))){k(g.key,"nothing \u2014 empty words draw nothing, so no block");break}let T=bz(g.role??"body"),{_partStyles:S,...N}=T,H=wz(T,g.styleFrom?{...g.style,...g.styleFrom(r,t)}:g.style,L(g.key),g.props?.align);R.push(h("Text",{text:g.mark==="accentLead"?Sz(w.text):g.mark==="accentItalic"?Ds(w.text):w.text,...N,...g.props??{},...H,...w.hidden?{_hidden:!0}:{}})),k(g.key,`${B}Text block: its words${w.hidden?", hidden":""}`);break}case"button":{let w=Jh(b[g.key]);if(!w.text.trim()){k(g.key,"nothing \u2014 no words, no button"),k(g.href,"nothing \u2014 no button to link"),typeof g.variant=="object"&&k(g.variant.key,"nothing \u2014 no button to style");break}let T=typeof b[g.href]=="string"&&b[g.href]?b[g.href]:"#",S={...g.style??{},...L(g.key)??{}};R.push(h("ButtonBlock",{label:w.text,href:T,...typeof g.props=="function"?g.props(b,t):g.props??{},...Cz(g.variant,b),...Object.keys(S).length?{_partStyles:{label:S}}:{},...w.hidden?{_hidden:!0}:{}})),k(g.key,`${B}Button block: its words`),k(g.href,`${B}Button block: its link`),typeof g.variant=="object"&&k(g.variant.key,`${B}Button block: its Style`);break}case"image":{let w=b[g.key];if(typeof w!="string"||!w){k(g.key,"nothing \u2014 no picture, no block"),g.alt&&k(g.alt,"nothing \u2014 no picture to describe");break}let T=g.alt&&typeof b[g.alt]=="string"?b[g.alt]:"";R.push(h("ImageBlock",{src:w,alt:T,...g.props??{}})),k(g.key,`${B}Image block: its picture`),g.alt&&k(g.alt,`${B}Image block: its alt text`);break}case"list":{R.push(...P(g,b,k));break}case"group":{let w=O(g.parts,b,E,B),T=I(g.box,g.props,b,`${g.name} Box`,!w.length&&!g.keepEmpty,B,k);T&&R.push(h($t,{name:g.name,...T,[zt]:w}));break}case"block":{let w=g.parts?O(g.parts,b,E,B):[],T=I(g.box,g.props,b,`${g.type} block`,!!g.parts&&!w.length&&!g.keepEmpty,B,k);T&&R.push(h(g.type,{...T,...g.slot?{[g.slot]:w}:{}}));break}case"core":{let w=g.as??e.type,T={...g.headless?{}:{headPlacement:"own-box"},...g.props??{}},S=g.keep==="rest"?Object.keys(b).filter(H=>!x.has(H)&&!(H in T)):g.keep;for(let H of S)b[H]!==void 0&&(T[H]=b[H],k(H,`the ${w} block inside the Box`));if(g.keep==="rest"){for(let q of Object.keys(g.props??{}))b[q]!==void 0&&!x.has(q)&&k(q,`nothing \u2014 the ${w} block inside the Box has the row's own value`);b.headPlacement!==void 0&&k("headPlacement",`the ${w} block inside the Box: own-box`);let H=Object.fromEntries(Object.entries(c).filter(([q])=>!x.has(q)));Object.keys(H).length&&(T._partStyles=H)}for(let[H,q]of Object.entries(g.rename??{}))b[H]!==void 0&&(T[q]=b[H],k(H,`the ${w} block inside the Box: ${q}`));if(g.derive){Object.assign(T,g.derive.props(b,t));for(let H of g.derive.reads)b[H]!==void 0&&k(H,`the ${w} block inside the Box`)}let N=typeof g.slots=="function"?g.slots(b,t):g.slots??{};for(let[H,q]of Object.entries(N))T[H]=q.flatMap(z=>"kind"in z?P(z,b,k):C([z]));R.push(h(w,T));break}}return R},F=(y,b)=>{let E=b===0?"Box":`${y.name} Box`,B=O(y.parts,r,!0,b===0?"":`${E}: `),R=typeof y.boxProps=="function"?y.boxProps(r,t):y.boxProps??{},k=$_(y.box??[],R,r,(L,g,w)=>d(L,w?`nothing \u2014 the old value draws nothing (${E}: no ${g})`:`${E}: ${g}`),t);return{type:$t,props:{name:y.name,...k,[zt]:B,id:hz(n,b)}}},v=[o,...o.also??[]].map(F);r._partStyles!==void 0&&d("_partStyles","each old part's style moved to its new part");for(let[y,b]of Object.entries(o.reads??{}))r[y]!==void 0&&d(y,b);for(let[y,b]of Object.entries(o.drop??{}))y in r&&(l.push({key:y,why:b}),i.add(y));for(let y of Object.keys(r))z_.has(y)||i.has(y)||l.push({key:y,why:"not in the row \u2014 not carried"});return{node:v[0],nodes:v,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function j_(e,o=Gl,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)?$(Fr,s.type):void 0;if(!l)return[s];let i=Pa(s,l,t);return i.skipped!==void 0?[s]:(a=!0,i.nodes)});return a?{...e,content:n}:e}function G_(e,o=Gl,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?$(Fr,a.type):void 0;if(!s)return;let l=Pa(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as Ez,BLOCK_SIZE_KEYS as _z,parseBlockWidthFit as Yc,phoneKey as K_,parseTextFit as Vc,tabletKey as q_,viewKeyAt as V_}from"efficient-easel/draw";import{sideLengthAt as Az}from"efficient-easel/screen/lib/content/length-units";var Fz="sf-block-size",Kl=["width","minWidth","maxWidth"],Xc=e=>`${e}Unit`,Lr=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,Bz={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"}},Z_={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"}},Lz={desktop:Z_.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"}},Rz={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},Q_="max-view-wide:grow!";function e1(e){return Jc(e).mode.phone==="fill"}var Dz={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Nz={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},Mz="data-sf-min-width",Y_={two:{desktop:"wide",phone:ex.phone},three:ex},Hz={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)]"]}},Qh={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)]"]}},Wz={minWidth:{desktop:Qh.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:Qh.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)]"]}},$z=["widthFit",...Kl],X_={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},eI={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!"},zz={desktop:eI.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!"},o1={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"},Uz={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:o1.phone},t1={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},J_={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:t1.phone};function r1(e){let o=Jc(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>Rz[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function a1(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=Jc(e),n=d=>o?Y_.three[d]:Y_.two[d],s={fill:[],fixed:[],min:[]},l=a("minWidth");for(let d of t){let c=r[d];(c==="fill"||c==="fixed")&&s[c].push(n(d)),l[d]!==void 0&&s.min.push(n(d))}let i={};for(let d of["fill","fixed"])s[d].length&&(i[Nz[d]]=s[d].join(" "));return s.min.length&&(i[Mz]=s.min.join(" ")),i}function Jc(e){let o=$z.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Yc(n)!==void 0:Lr(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=Xc(a),s={};for(let i of t)s[V_(a,In(i))]=Lr(e[a]?.[i]),s[V_(n,In(i))]=e.units?.[a]?.[i];let l=i=>Az(s,{length:a},n,In(i),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(Yc,e.widthFit)}}function oI(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(w=>Vc(e.textFit?.[w])==="ellipsis"),r=o&&!t,a=r?Lz:Z_,n=r?Wz:Qh,s=r?zz:eI,l=[],i={},d={},{three:c,sides:x,lengthPerSide:u,mode:h}=Jc(e),I=u("width");for(let w of x){let T=h[w];!T||T==="fit"||(l.push(c?a[w][T]:Bz[w][T]),T==="fixed"&&(i[Dz[w]]=mn(I[w]?.value??Ez.fallback,I[w]?.unit)))}for(let w of Kl.filter(T=>T!=="width")){let T=u(w);for(let S of x){let N=T[S];if(N===void 0)continue;let[H,q]=c?n[w][S]:Hz[w][S];i[H]=mn(N.value,N.unit),l.push(q)}}let C=Vc(e.textFit?.desktop),P=Vc(e.textFit?.phone),O=w=>{let T=Lr(e.minFont?.[w]);return T===void 0?void 0:e.units?.minFont?.[w]==="vw"?`${T}vw`:String(T)},F=O("desktop"),v=O("phone"),y=Vc(e.textFit?.tablet),b=y!==C||P!==void 0?y:void 0,E=O("tablet"),B=E!==F||v!==void 0?E:void 0,R=Lr(e.maxWidth?.desktop),k=Lr(e.maxWidth?.tablet)??R,L={desktop:R!==void 0,tablet:k!==void 0,phone:(Lr(e.maxWidth?.phone)??k)!==void 0},g=(w,T,S)=>{if(T!=="line"&&T!=="ellipsis")return;let N=w==="tablet"?void 0:w,H=(q,z)=>S||!N?q[w]:z[N];if(T==="line"){l.push(H(s,X_));return}if(l.push(H(eI,X_)),l.push(H(Uz,o1)),c&&!S&&w==="desktop")for(let q of["desktop","tablet"])L[q]||l.push(J_[q]);else L[w]||l.push(H(J_,t1))};return b?(g("desktop",C,!0),g("tablet",b,!0),g("phone",P??b,!0)):(g("desktop",C,!1),g("phone",P??C,!1)),C&&(d[rr.fit]=C),b&&(d[rr.fitTablet]=b),P&&(d[rr.fitPhone]=P),F!==void 0&&(d[rr.min]=F),B!==void 0&&(d[rr.minTablet]=B),v!==void 0&&(d[rr.minPhone]=v),!r&&(b||B!==void 0)&&(d[rr.edge]=""),l.length===0&&Object.keys(d).length===0?null:{className:[Fz,...l].join(" "),style:i,attrs:d}}function que(e){if(Lr(e.maxWidth?.desktop)!==void 0)return!0;let o=Yc(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function n1(e){return["desktop","tablet","phone"].some(o=>{let t=Yc(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Lr(e.minWidth?.[o])!==void 0})}function Zc(e){let o={};for(let t of _z){let r=e[t],a=e[q_(t)],n=e[K_(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=Xc(t),l={desktop:e[s],tablet:e[q_(s)],phone:e[K_(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var s1={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{parseHexColor as jz}from"efficient-shell/format";import{convertLength as Gz}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as l1}from"efficient-easel/draw";var Ut=(e,o,t,r)=>o===t?e:Gz(e,o,t,r,{min:0,max:200,step:4}),Ta={textFit:"line",textFitPhone:"wrap"},Oa={...U,[jo]:""},{label:vme,href:Pme,...Kz}=s1.defaultProps,so=Kz,Ea={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Y={...Am,sectionAccent:0},Xn={sectionAccent:-1},Q=[...gr,"sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",ok.unitKey,...ak,...ZC,"anchor",qs,...vn,Td,...Rd,...gc,...Ld(["widthFit",...Kl,...Kl.map(Xc)]),...Object.values(Fo)],Yn="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",X={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Yn,fullWidth:Yn,pageWidth:Yn,backgroundWidth:Yn,contentWidth:Yn,contentMax:Yn},re=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)"])),Qc={[Nt]:"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 ae(e,o){let t=ye(e.sectionPaddingTop)??0,r=ye(e.sectionPaddingBottom)??0,a=ye(e.sectionPaddingTopTablet),n=ye(e.sectionPaddingBottomTablet),s=hr(e.sectionPaddingUnit),l=hr(e.sectionPaddingUnitTablet),i=hr(e.sectionPaddingUnitPhone),d=Array.isArray(e[Nt])?e[Nt]:[],c=(P,O)=>d.includes(P)?0:O,x=(P,O,F,v,y,b)=>{let E=ye(e[P]);if(E!==void 0)return E+Ut(c(P,b),"px",i,"mobile");let B=v===void 0?{n:y,unit:s,key:F}:{n:v,unit:l,key:O};return Ut(B.n,B.unit,i,"mobile")+Ut(c(B.key,b),"px",i,"mobile")},u=(P,O,F,v,y,b)=>F!==void 0?{[P]:F+Ut(c(P,b??y),"px",l,"tablet")}:b===void 0?{}:{[P]:Ut(v,s,l,"tablet")+Ut(c(O,b),"px",l,"tablet")},h=P=>({desktop:ko[P],tablet:l1(ko[P],"tablet"),phone:l1(ko[P],"mobile")}),I=h("top"),C=h("bottom");return{[I.desktop]:t+Ut(c(I.desktop,o.top),"px",s,"desktop"),[C.desktop]:r+Ut(c(C.desktop,o.bottom),"px",s,"desktop"),...u(I.tablet,I.desktop,a,t,o.top,o.topTablet),...u(C.tablet,C.desktop,n,r,o.bottom,o.bottomTablet),[I.phone]:x(I.phone,I.tablet,I.desktop,a,t,o.topPhone),[C.phone]:x(C.phone,C.tablet,C.desktop,n,r,o.bottomPhone)}}var de=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>ae(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function st(e,o){let t={};for(let[a,n]of ax)e[a]!==void 0&&(t[n]=e[a]);let r=Ud(e,Mn(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var Rr=e=>[...ax.map(([o,t])=>[o,t,(r,a)=>st(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>st(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>st(t,e).sectionPaddingBottom]],qz={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},Tme=e=>o=>Me(o.props[e])?[qz]:[],fe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:U,...o?{style:o}:{}}),Jn=e=>({kind:"group",name:"Chip",props:{...A,...Yt("main"),...Co(6,14)},parts:[fe(e,{color:"background",...M("label",12),weight:600,letterSpacing:.16})]}),i1=e=>e.background!=="transparent",Vz=(e,o)=>{let[t,r]=[e,o].map(a=>typeof a=="string"?a.trim():"");return t?r?`[${t} ]{color=text}${r}`:`[${t}]{color=text}`:r},ql={align:"right",alignPhone:"left"},Yz=(e,o,t)=>{let r=a=>Vz(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}},Vl=(e,o,t,r={})=>Yz(e,o,{...Oa,...ql,...r,_partStyles:{text:{...Lo,color:"labels",...t,case:Lo.case,...ql}}}),Zn=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:ka(o)?.selected??0,d1="var(--site-surface-2)",ep=(e,o)=>ka(o)?.themes[Zn(e.sectionAccent??0,o)],Ho=(e,o)=>(t,r)=>{if(!o?.(t,r))return Yt(e);let a=ep(t,r)?.[e];return a?{fillColor:a}:{}},op=(e,o)=>Dr(e,o)>=0,f1=e=>e.startsWith("#")&&jz(e)!==null,tp=(e,o,t)=>{let r=e?.trim();if(r&&f1(r))return{fillColor:r};let a=sx(r);if(a)return Yt(a);let n=r===d1?ep(o,t):void 0;return n?{fillColor:Ow(n)}:{}},rp=e=>{let o=e?.trim();return!o||o==="transparent"||o===Wt||sx(o)||o===d1||f1(o)?void 0:"it paints a colour that no Box Fill can hold"},Dr=(e,o)=>{let t=ka(o)?.themes;return t&&i1(e)?Ew(t,Zn(e.sectionAccent,o)):-1},Nr=(e,o,t)=>{let r=Dr(o,t);return r>=0?r:e},Qn=(e,o)=>{let t=ka(o)?.themes,r=t?_w(t,Zn(e,o)):-1;return r>=0?r:e},_a=(e,o)=>{let t=Dr(e,o);return t>=0?{sectionAccent:t}:{}},Mr=(e,o)=>i1(e.props)&&Dr(e.props,o)<0?[{kind:"band-preset",page:Zn(e.props.sectionAccent,o)}]:[],es=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},i=In(o),d=(x,u,h)=>{let I=hr(u),C=Sw(x,I,"spacing",h);return C===null?null:Ut(C,I,"px",i)},c=o==="desktop"?d(a,n,oC)??pC(a):d(s,l,tC)??mC(s)??IC(a,n);return Ut(Math.min(r,c),"px",t,i)},Yl=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),Xl=e=>({top:0,right:0,bottom:0,left:0,...e}),tI=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...A,...Yl,...Ho("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],Ge.kind,Ge.duration,Ge.delay],parts:r});import{phoneKey as hI,readHidable as II}from"efficient-easel/draw";import{isNodeList as bU,newId as wU}from"efficient-easel/data";function c1(e){return Math.min(4,Math.max(2,e??3))}var Ame={eyebrow:"Label",title:"Section *heading.*"},Xz=Qi.Cards,p1={label:"Cards",fields:Xz,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Lme={eyebrow:"Highlight",title:"Key *features.*"},Rme=()=>[{label:f("Feature label one")},{label:f("Feature label two")},{label:f("Feature label three")},{label:f("Feature label four")},{label:f("Feature label five")},{label:f("Feature label six")}],u1={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};import{parseOption as Jz}from"efficient-shell/format";var rI="cardPlace",Zz=["","top-line"];function Hme(e){return Jz(Zz,"",e[rI])}var Wme="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",$me="data-sf-top-line",Qz=new Set(["Cards",no]);function zme(e){return typeof e=="string"&&Qz.has(e)}var eU=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 Ume(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:eU(e)?{...e,top:0}:e}var jme="outsideFramedCard";var ap={sectionBorder:{top:0,right:1,bottom:1,left:0},...Yt("background")},oU={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Aa=e=>({direction:"row",columns:e,columnsTablet:e,...oU}),m1=(e={})=>Ae(Fc,{...U,tag:"p",[rI]:"top-line"},e,!0),os=(e=Zr)=>{let o=sn(e);return{...o,props:{...ap,...o.props},slots:{[Ce]:[...o.slots?.[Ce]??[],m1()]}}},aI=(e=!1)=>{let o=ln(e);return{...o,props:{...ap,...o.props}}},tU={name:"name",time:"time",note:"note",price:"price"},rU={textStyle:"body-1",...M("body",16),weight:500,lineHeight:1.5},aU={...Lo,...M("label",12),letterSpacing:.18,lineHeight:1.5},nU={textStyle:"body-1",...M("body",14),lineHeight:1.6},sU={textStyle:"body-1",fontRole:"heading",...M("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},lU={...M("label",11),letterSpacing:.25},iU={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},np=e=>({direction:"row",columns:e,...iU}),nI=[...new Set([...Object.keys(Aa(1)),...Object.keys(np(1))])],sI=()=>{let e=tU,o={tag:"p",widthFit:"fill"};return{type:G,props:{...A,name:"Card",justify:"between",gap:16,gapPhone:16,...Co(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Yt("surface"),shadow:!0},slots:{[Ce]:[m1(lU),{type:G,props:{...A,name:"Words",gap:8,gapPhone:8},slots:{[Ce]:[Ae(e.name,{...U,...o},rU),Ae(e.time,{...te,...o},aU),Ae(e.note,{...te,...o},nU)]}},Ae(e.price,{...U,...o},sU)]}}};import{tabletKey as g1}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as sp}from"efficient-easel/draw";var lp=yt,lI=sp,x1=960,h1=yt,I1={min:lp,max:1600,step:10},ip="stackBelow";function oxe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<I1.min||e>I1.max))return Math.round(e)}var dU=e=>`sf-stack-${e}`,fU=e=>`sf-stack-${e}-gutter`,cU=e=>`sf-stack-${e}-outer`,ts=e=>`${e-.02}px`;function txe(e,o={}){let t=o.gutter!==!1,r=`.${dU(e)}`,a=`.${fU(e)}`,n=`.${cU(e)}`,s=[];if(e>lp){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,i=Math.min(e,sp);s.push(`@media (min-width:${lp}px) and (max-width:${ts(e)}){${r}${r}{flex-direction:column}.sf-gap-overlap${r}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${l}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${lp}px) and (max-width:${ts(i)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>sp&&s.push(`@media (min-width:${sp}px) and (max-width:${ts(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${ts(e)}){${a}${a}{padding-inline:${aC.frame}}}`),t&&e<x1&&s.push(`@media (min-width:${e}px) and (max-width:${ts(x1)}){${a}${a}{padding-inline:${rC}}}`),e>h1&&s.push(`@media (min-width:${h1}px) and (max-width:${ts(e)}){`+["top","bottom","left","right"].map(l=>`.sf-pad-${l}-phone:has(>${n}),.sf-pad-${l}-phone${n}{padding-${l}:var(--sf-pad-${l[0]}-phone)!important}`).join("")+"}"),s.join("")}import{parseOption as pU}from"efficient-shell/format";var uU=["standard","editorial","simple","essay"];function Fa(e){if(e==="ProductGrid")return"shelf";let o=$(bt,e)?.headStyle;return pU(uU,"standard",o)}var Jl={standard:64,editorial:60,simple:36,essay:28,shelf:20},mU={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function xU(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=$(bt,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 fp(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=dp.get(r);if(a)return a;let n=w1({num:e,title:o,description:t,link:!1});return dp.set(r,n),n}var Wo={[ip]:lI},dI={top:0,right:0,bottom:1,left:0},$o=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),cp=(e,o,t={})=>fe(e,{...M("label",o),...t}),pp=(e,o)=>({kind:"text",key:e,role:"heading",props:U,style:{textStyle:"heading-2",...o}}),fI=yt,hU=lI,cI=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...te,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:fI}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...M("body",o),...r,...a}}),b1={...so,align:"right",alignPhone:"left",...Ea},iI=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:b1,style:{...St(e),color:"labels"}}),y1=(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"?IU(Xt()):{},...t.style}}}}},IU=e=>e._partStyles.text??{},rs={widthFitPhone:"fill"};function pI(e){if(e.kind!=="group")return e;if(e.name==="Words"){let o=e.props;return{...e,props:typeof o=="function"?(t,r)=>({...o(t,r),...rs}):{...o,...rs}}}return{...e,parts:e.parts.map(pI)}}function gU(e,o){let t=$(mU,e),r=t==="accent",a=cp(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=pp(o.title,r?{...$o("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...M("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),l=e==="Collections";return{kind:"group",name:"Header",props:{...A,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:dI,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...A,...rs,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...A,...rs,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[y1(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...A,...rs},parts:[s,...l?[y1(o.title,`Three ranges,
320
- one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...A,...rs,gap:12,maxWidth:340,maxWidthPhone:fI},parts:[...o.description?[cI(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[iI(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...b1,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:iI(14).style}}}]:[]]}]}}function up(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>up(t,o))}:e}function w1(e){let o=pp(e.title,{...$o("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...A,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:dI,sectionPaddingBottom:32,...Wo},parts:[{kind:"group",name:"Title",props:{...A,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...Wo},parts:[{kind:"group",name:"Number",props:{...A,sectionPaddingBottom:8},parts:[{...cp(e.num,13),props:{...U,...Ta}}]},up(o,[e.title])]},{kind:"group",name:"Words",props:{...A,sectionPaddingBottom:4,maxWidth:360,[g1("maxWidth")]:hU,maxWidthPhone:fI},parts:e.description?[cI(e.description,14,void 0,{lineHeight:1.5},{[g1("align")]:"left"})]:[]}]}}function S1(e,o){return{kind:"group",name:"Header",props:{...A,gap:16,gapPhone:16},parts:[cp(e.num,13),pp(e.title,o)]}}var C1=[["para",{...St(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...M("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...M("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...M("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...M("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],yU=e=>C1.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function SU(e){return{kind:"group",name:"Header",props:{...A,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:dI,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...A,direction:"row",align:"end",gap:24,share:"content"},parts:[cp(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...C1.map(([o,t])=>({...pp(e.title,t),when:r=>yU(r)===o}))]},{kind:"group",name:"Words",props:{...A,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[cI(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[iI(13)]:[]]}]}}function mp(e){return Fa(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 dp=new Map,uI={...M("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function lt(e){let o=dp.get(e);if(o)return o;let t=xU(e),r=Fa(e),a=r==="editorial"?w1(t):r==="simple"?S1(t,uI):r==="essay"?S1(t,{...M("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?SU(t):gU(e,t);return dp.set(e,a),a}var Ba={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Wt,Stats:void 0};var Zl=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),F1=e=>o=>c1(ye(o.columns)??ye(e.columns)),CU="inline is the head the row draws; an own-box node is skipped (`skip`)",kU={kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-3",...uI}},hp=e=>{let o=na(typeof e.background=="string"?e.background:void 0,Ba.Series);return o&&o!=="transparent"?o:void 0},xp=e=>hp(e)===Wt,vU={...A,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},k1={...A,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[hI("share")]:"content"},PU=e=>{let o=hp(e)?1:2;return{...A,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},mI={...St(12),letterSpacing:.22,lineHeight:1.5},v1=e=>Me(e.viewLabel)&&!II(e.viewLabel).hidden,it=e=>II(e).text?.trim?.()??"",Ip=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>mo(o)!==void 0)),gI=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),TU=gI([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),OU=gI([["label","Label"],["value","Value"],["body","Card body",!0]]),Ql=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:no,headless:!0,keep:s,derive:{reads:n,props:l=>Cd(r(l),t)},slots:(l,i)=>({[Pe]:[a(l,i)]})}]}),B1=e=>Array.isArray(e.cards)?e.cards:[],L1=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Ip({title:it(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:$s(Hm(o),t),...o})),EU=e=>L1(e).some(o=>mo(o.href)!==void 0),R1=[{key:Bm.label,label:"Feature label"},{key:Bm.href,label:"Link",kind:"link"}],P1=e=>fO(e.eyebrowLook,"KeyFeatures")==="filled",_U={name:"Key Features",boxProps:(e,o)=>({...Y,direction:"column",gap:44,gapPhone:32,...Ho("surface")(e,o),...Zl(1,0,1,0),...ae(e,sc)}),box:[...Q,...de(sc)],parts:[{kind:"group",name:"Heading",props:{...A,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[hI("share")]:"content"},parts:[{...Jn("eyebrow"),when:P1},{...fe("eyebrow"),when:e=>!P1(e)},kU]},Ql("Cards",e=>({...A,...Aa(F1(u1.defaultProps)(e))}),R1,L1,e=>aI(EU(e)),{reads:["items"]})],drop:{...X,...re,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"}},T1=(e,o)=>({...ap,...Ho("background")(e,o)}),O1=e=>{let o=F1(p1.defaultProps)(e);return{...A,...Aa(o)}},AU=gI([["title","Card title"],["body","Card body",!0]]),D1=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:$s(Hm(o),t),title:it(o?.title),body:it(o?.body)})),N1=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(bU(a)?t[r]=a.map(N1):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},E1=(e,o)=>{let t=xI(e)?aI(FU(e)):os(),r=Array.isArray(e.template)?e.template.map(N1):[t],[a]=r;return r.length===1&&a.type===G?{...a,props:{...T1(e,o),...a.props}}:{type:G,props:{...A,...T1(e,o),name:"Card"},slots:{[Ce]:r}}},xI=e=>e.cardStyle==="label-only",M1=e=>D1(e).map((o,t)=>{let r=e.items[t]?.href;return Ip({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),FU=e=>M1(e).some(o=>mo(o.href)!==void 0),_1=e=>Array.isArray(e.template)&&e.template.length===0,A1=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function H1(){let e=t=>({key:wU("card"),title:f(t),body:f("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:f("Label"),title:f("Section *heading.*"),items:o}}var BU={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Y,direction:"column",gap:36,gapPhone:28,...Ho("surface")(e,o),...ae(e,Xf)}),box:[...Q,...de(Xf)],parts:[{...lt("Cards"),when:e=>!Zh(e)},{...Ql("Cards",O1,AU,D1,E1,{reads:["items"],keep:A1}),when:e=>!_1(e)&&!xI(e)},{...Ql("Cards",O1,R1,M1,E1,{reads:["items"],keep:A1}),when:e=>!_1(e)&&xI(e)}],drop:{...X,...re,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},LU={name:"Recurring Columns",boxProps:(e,o)=>({...Y,direction:"column",gap:60,gapPhone:60,...Zl(0,0,1,0),...Wo,...xp(e)?_a(e,o):{},...tp(hp(e),e,o),...ae(e,dc)}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>xp(o)?Nr(e,o,t):e],...de(dc)],skip:e=>rp(hp(e)),site:(e,o)=>xp(e.props)?Mr(e,o):[],parts:[lt("Series"),Ql("Cards",PU,TU,e=>B1(e).map(o=>Ip({num:it(o.num),since:it(o.since),title:it(o.title),body:it(o.desc),count:it(o.entries),countLabel:it(o.entriesLabel)})),(e,o)=>({type:G,props:{...vU,...Ho("background",(t,r)=>xp(t)&&op(t,r))(e,o),name:"Card"},slots:{[Ce]:[{type:G,props:{...A,name:"Words",gap:16,gapPhone:16},slots:{[Ce]:[{type:G,props:{...k1,name:"Top"},slots:{[Ce]:[Ae("num",U,M("label",13),!0),Ae("since",U,M("label",13),!0)]}},Ae("title",{...U,tag:"h3"},{textStyle:"heading-3",...M("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Ae("body",te,{textStyle:"body-5",fontRole:"heading",...M("body",14),lineHeight:1.6})]}},{type:G,props:{...k1,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...Zl(1,0,0,0),...v1(e)?{}:{[on]:["count","countLabel"]}},slots:{[Ce]:[{type:G,props:{...A,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[hI("share")]:"content"},slots:{[Ce]:[Ae("count",U,mI),Ae("countLabel",te,mI)]}},...v1(e)?[{type:G,props:{...A,name:"View",maxWidthPhone:266},slots:{[Ce]:[{type:"Text",props:{...U,text:II(e.viewLabel).text,_partStyles:{text:{...Xt()._partStyles.text,...mI}}}}]}}]:[]]}}]}}))],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,...re,headPlacement:CU}},RU={...A,direction:"row",columns:3,gap:40,gapPhone:16},DU={...A,gap:8,gapPhone:8,...Co(24),...Zl(1,1,1,1)},NU={name:"Document Detail Cards",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:16,...Zl(0,0,1,0),...ae(e,rc)}),box:[...Q,...de(rc)],parts:[Ql("Cards",RU,OU,e=>B1(e).map(o=>Ip({label:it(o.label),value:it(o.value),body:it(o.desc)})),(e,o)=>({type:G,props:{...DU,...Ho("surface")(e,o),name:"Card"},slots:{[Ce]:[Ae("label",U,{...M("label",12),lineHeight:1.5},!0),{type:G,props:{...A,name:"Words",gap:14,gapPhone:14},slots:{[Ce]:[Ae("value",U,{textStyle:"heading-3",...M("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Ae("body",te,{textStyle:"body-5",fontRole:"accent",...M("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...X,...re}},W1={Cards:BU,KeyFeatures:_U,Series:LU,DocMetaCards:NU};import{SITE_SIDE as vB}from"efficient-easel/screen/lib/content/length-units";import{phoneKey as $U}from"efficient-easel/draw";import{newId as zU}from"efficient-easel/data";import{phoneKey as MU}from"efficient-easel/draw";import{isNode as ei}from"efficient-easel/data";var as="cardStyle";function $1(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var gp={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[MU("share")]:"content"},card:{justify:"between",gap:12,gapPhone:12,sectionHeightMode:"fixed",sectionHeightValue:242,sectionHeightUnit:"px",widthFitPhone:"fixed",widthPhone:800,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1}}},list:{items:{gap:32,gapPhone:32,phoneRow:2},grid:{gap:32,gapPhone:32},row:{gap:32,gapPhone:32},card:{justify:"start",gap:8,gapPhone:8,sectionPaddingTop:20,sectionPaddingBottom:0,sectionBorder:{top:1,right:0,bottom:0,left:0}}}},dt={table:{...gp.table,listCard:$1(gp.table.card)},list:{...gp.list,listCard:$1(gp.list.card)}},zxe=[{label:"Table",value:"table"},{label:"List",value:"list"}],Uxe=e=>e==="table"||e==="list",HU=e=>[...new Set([...Object.keys(dt.table[e]),...Object.keys(dt.list[e])])];function oi(e,o,t){let r={...e};for(let a of HU(o))delete r[a];return{...r,...structuredClone(dt[t][o])}}function WU(e,o,t){let r=e.props??{},a=Array.isArray(r[Pe])?r[Pe]:[],n=a.findIndex(i=>ei(i)&&i.type===t);if(n<0)return e;let s=a[n],l=a.map((i,d)=>d===n?{...s,props:oi(s.props??{},"listCard",o)}:i);return{...e,props:{...r,[Pe]:l}}}function jxe(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>ei(s)&&s.type===no)){let s=a.map(l=>ei(l)&&l.type===no?WU(l,o,t):l);return{...oi(e,"items",o),[as]:o,[r]:s}}let n=a.map(s=>{if(!ei(s)||s.type!==t)return s;let l=s.props??{},i=(Array.isArray(l[r])?l[r]:[]).map(d=>ei(d)&&d.type===t?{...d,props:oi(d.props??{},"card",o)}:d);return{...s,props:{...oi(l,"row",o),[r]:i}}});return{...oi(e,"grid",o),[as]:o,[r]:n}}var yI=e=>typeof e=="string"?e.trim():"";function z1(e){let o=`${yI(e.prefix)}${yI(e.value)}`,t=yI(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var j1={textStyle:"heading-2",...$o("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},SI={kind:"block",type:"Text",props:{...Oa,_partStyles:{text:j1}},box:[["value","text",(e,o)=>z1(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&z1(o)!==""},U1=e=>Me(e?.supSuffix),G1={textStyle:"body-1",fontRole:"heading",...M("body",16),lineHeight:1.5,letterSpacing:-.01},K1={color:"labels",...M("label",12),lineHeight:1.5,letterSpacing:.24},q1={...A,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[$U("share")]:"content"},V1={textStyle:"body-5",...M("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},bI=e=>na(e.background,Ba.StatsParagraph),ti=e=>bI(e)===Wt,yp=e=>({...e,sectionAccent:e.sectionAccent??0}),UU=(e,o)=>ti(e)?Ho("background",(t,r)=>op(yp(t),r))(e,o):{},jU={name:"Stats with Text",skip:e=>bI(e)&&bI(e)!=="transparent"&&!ti(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},...Wo,...st(e,"StatsParagraph"),...ti(e)?_a(yp(e),o):{}}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ti(o)?Nr(e,yp(o),t):e],...Rr("StatsParagraph")],site:(e,o)=>ti(e.props)?Mr({props:yp(e.props)},o):[],parts:[lt("StatsParagraph"),{kind:"group",name:"Stats",props:{...A,...dt.table.grid,[as]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...A,direction:"row",share:"equal",phoneRow:2,...dt.table.row},props:(e,o)=>({...A,...dt.table.card,...UU(e,o)}),parts:[{...SI,when:(e,o)=>!U1(o)&&SI.when(e,o)},{kind:"group",name:"Figure",props:q1,when:(e,o)=>U1(o),parts:[SI,{kind:"text",key:"supSuffix",props:U,style:V1}]},{kind:"group",name:"Words",props:{...A,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:U,style:G1},fe("sub",K1)]}]}]}],drop:{...X,...re,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"}},GU=new Set(["value","label",jo]),KU=e=>{let o=na(typeof e.background=="string"?e.background:void 0,Ba.Stats);return!!o&&o!=="transparent"},qU={name:"Stats",skip:e=>KU(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Me(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Me(o?.[jo]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(o=>Object.keys(o??{}).some(t=>!GU.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,...ae(e,fc)}),box:[...Q,...de(fc)],parts:[fe("heading",{color:"labels",...M("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...A,...dt.list.grid,[as]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>ye(e.columns)??4,rowName:"Stats row",rowProps:{...A,direction:"row",share:"equal",phoneRow:2,...dt.list.row},props:{...A,...dt.list.card},parts:[{kind:"text",key:"value",props:Oa,style:{textStyle:"heading-2",...M("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},fe("label",{color:"labels",...M("label",12),letterSpacing:.2})]}]}],drop:{...X,...re,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"}},Y1={StatsParagraph:jU,Stats:qU};function X1(){return{eyebrow:f("By the numbers"),title:f("What we count."),desc:f("A few numbers that matter to us."),stats:[],background:"transparent"}}var VU=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function J1(){let e=(o,t,r,a="")=>({key:zU("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",f("Years in business"),f("Privately held since day one. Same two founders.")),e("==_8_==",f("Operating footprint"),f("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."),f("cities")),e("\u221221==_%_==",f("Avg. weight saving"),f("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",f("Finish steps"),f("Specified in California to a 14-step protocol. No two sets are identical."))]}function YU(e){return{type:G,props:{...A,name:"Card",...structuredClone(dt[e].listCard)},slots:{[Ce]:[{type:G,props:{...q1,name:"Figure"},slots:{[Ce]:[Ae("figure",Oa,j1),Ae("superscript",U,V1)]}},{type:G,props:{...A,name:"Words",gap:4,gapPhone:4},slots:{[Ce]:[Ae("label",{...U,widthFit:"fill"},G1),Ae("body",{...U,widthFit:"fill"},K1,!0)]}}]}}}function wI(e,o,t=4){return{type:G,props:{...A,name:"Stats",direction:"row",columns:t,...structuredClone(dt[o].items),[as]:o},slots:{[Ce]:[{type:no,props:Cd(e,VU),slots:{[Pe]:[YU(o)]}}]}}}var Z1={heading:"Ways to pay"},Q1=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],eA=()=>[{text:f("Secure encrypted checkout")},{text:f("30-day returns")}],dhe={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};import{hiddenKeyOf as XU}from"efficient-easel/screen/lib/content/view-hide";import{parseOption as tA}from"efficient-shell/format";var Sp="Flex",JU={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},ZU={FooterPayment:"PaymentLogosBlock"},QU=e=>{let{id:o,...t}=e;return t},oA=e=>typeof e=="string"?e:"",ns={sm:12,md:13,lg:15},rA={sm:{mark:16,words:ns.sm},md:{mark:20,words:ns.md}},ej="md",aA=1.5,oj={size:13,lineHeight:aA,width:280},tj=14,rj=40,aj=e=>tA(["left","center","right"],"left",e);function nj(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 sj(e,o,t){let r=t(e,QU(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:nA(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=hd(e,r.props);return a===r.props?r:{...r,props:a}}function nA(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let n of Ft(r))a[n]=nA(a[n],o,t);return{...r,props:a}})}function sA(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=$(JU,e.type)??$(ZU,e.type);if(n)return[sj(n,r,o)];switch(e.type){case"FooterLogo":{let s=aj(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(Dv*((ye(r.widthPct)??100)/100)),href:"/",align:s,...nj(r)}),i=oA(r.tagline).trim();return i?[l,o("Text",{text:i,tone:"dim",align:s,_partStyles:{text:{...oj}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&xo(ns,r.size)?r.size:ej;return[o("Text",{text:oA(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:ns[s],lineHeight:aA}}})]}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?{[XU("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Sp,{direction:r.direction==="horizontal"?"row":"column",gap:Nv("FooterGroup",r.gap),align:tA(["start","center","end","stretch"],"start",r.align),...Om,content:s.flatMap(l=>sA(l,o,t))})]}default:return[]}}function ri(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=c=>o(Sp,{direction:"row",wrap:!0,share:"equal",gap:rj,content:c}),s=[],l=[];for(let c of a){let x=sA(c,o,r);if(c.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...x);continue}x.length<=1?l.push(...x):l.push(o(Sp,{direction:"column",gap:tj,align:"stretch",...Om,content:x}))}(l.length||!s.length)&&s.push(n(l));let i=o(Sp,{direction:"column",content:[o("LegalLineBlock")]}),d=Uv(eo,t,[...s,i]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{phoneKey as CI,readHidable as lj}from"efficient-easel/draw";import{parseOption as ij}from"efficient-shell/format";var kI={contained:!1},vI=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Me(r?.src)||Me(r?.[o])}]}]}),dj={...fe("heading",{color:"labels",letterSpacing:.2}),props:{...U,align:"center"}},fj={name:"Logos",boxProps:e=>({...Y,direction:"column",gap:32,...ae(e,Sl(e))}),box:[...Q,...de(Sl),["bandPadding","sectionPaddingTop",(e,o)=>ae(o,Sl(o)).sectionPaddingTop]],parts:[dj,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:kI,slots:vI("items","alt")}],drop:{...X,...re,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"}},cj={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:Kb(4,"main",{sectionCorners:2})},pj={name:"Payment Methods",boxProps:e=>({...Y,direction:"column",...ae(e,Qf)}),box:[...Q,...de(Qf)],parts:[{kind:"group",name:"Methods",props:{...A,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...fe("heading",{color:"labels"}),props:{...U,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[ao,Vt],props:e=>Me(e[ao])?{[ao]:e[ao],...e[Vt]!==void 0?{[Vt]:e[Vt]}:{}}:{}},props:{...kI,look:"cards",grayscale:!1},slots:e=>({...vI("badges","label"),...Me(e[ao])?{[Pe]:[Rm()]}:{}})},{kind:"group",name:"Reassurance",props:{...A,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[CI("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Me(o?.text)),props:{...A,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[CI("share")]:"content"},item:e=>lj(e.text).hidden?{props:{_hidden:!0}}:{},parts:[cj,{kind:"text",key:"text",props:{...U,align:"center"},style:{...M("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...X,...re,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},lA=e=>Hb(e.align)??"left",iA=e=>ij(["sm","md"],"sm",e.size),dA=12,fA={name:"Payment logos",boxProps:e=>({...A,direction:"row",wrap:!0,align:"center",justify:dd[lA(e)],gap:dA,gapPhone:dA,phoneRow:2,[CI("share")]:"content"}),box:[...gr],parts:[{kind:"text",key:"lead",props:te,styleFrom:e=>({size:ns[iA(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[ao,Vt],props:e=>({logoHeight:rA[iA(e)].mark,align:lA(e),...Me(e[ao])?{[ao]:e[ao],...e[Vt]!==void 0?{[Vt]:e[Vt]}:{}}:{}})},props:{...kI,look:"marks",grayscale:!1,sectionAccent:Ir},slots:e=>({...vI("methods","label"),...Me(e[ao])?{[Pe]:[Rm()]}:{}})}],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"}},cA={Logos:fj,PaymentBadges:pj,FooterPayment:fA,PaymentLogosBlock:fA},pA=()=>({heading:IE.heading,items:Bc()}),uA=()=>({heading:Z1.heading,badges:Q1(),assurances:eA()}),mA=()=>({...sf,methods:[]});import{mixHex as Ij}from"efficient-shell/format";import{MOTION_EASING as uj,MOTION_TIMING as xA,motionSeconds as hA,parseOption as IA}from"efficient-shell/format";var PI="none",bp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function Whe(e){return IA(bp,PI,e)}var ss="_gLoop",ai={field:"loop",is:"scroll"},ni="left",TI=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],mj={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function gA(e){return IA(TI,ni,e)}function yA(e){return e==="up"||e==="down"}function wp(e){return hA("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var $he=xA.loop.duration.default,xj=xA.loop.delay.default;function SA(e){return hA("loop","delay",e.loopDelay)}function zhe(e,o,t=xj){return`${mj[e]} ${o}s ${uj.loop}${t?` ${t}s`:""} infinite`}var Cp="_gEntrance";var Khe="none",qhe=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function kp(e){return e==="above"||e==="below"?e:null}var bA="sf-ticker-join";function hj(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function wA(e){return`absolute inset-x-0 ${hj(e)}`}var CA=e=>e.size==="display",gj=(e,o)=>{let t=ep(e,o),r=e.tone!=="plain"&&t?.text&&t.background?Ij(t.text,t.background,.3):null;return r?{color:r}:{}},yj=(e,o)=>e.tone!=="plain"&&Km(e.sectionAccent)===null?Ho("background")(e,o):{},kA=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:te,style:e,styleFrom:gj}]}),Sj={name:"Scrolling Bar",boxProps:(e,o)=>({...Y,...ca,...qf,...zb[Tm(e.separator)]===""?W0:{},...ae(e,pa),...yj(e,o)}),box:[["scrollDirection","scrollDirection",e=>gA(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=>Tm(e)],["join","join",e=>kp(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...Q,["tone","sectionAccent",(e,o)=>Km(o.sectionAccent)??Ir],...de(pa)],parts:[kA(Vf,e=>!CA(e)),kA($0,CA)],drop:{...X,...re,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},vA=e=>e?.tone==="muted",PA=e=>kd(ka(e)),bj={name:"Spec Strip",boxProps:(e,o)=>({...Y,...ca,...xl,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:PA(o)},...ae(e,ua)}),box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:PA(t)],...de(ua)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:U,style:hl,when:(e,o)=>!vA(o)},{kind:"text",key:"text",props:te,style:hl,when:(e,o)=>vA(o)}]}],drop:{...X,...re,...Qc,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"}},TA={Ticker:Sj,SpecStrip:bj};import{tabletKey as OA}from"efficient-easel/screen/lib/content/view-tiers";var EA={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[OA("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[OA("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},OI={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as wj}from"efficient-easel/draw";var vp={eyebrow:Te.eyebrow,title:`Section heading
321
- *Highlight line*`,intro:Te.body,imageCaption:Te.imageCaption,imageMeta:Te.imageMeta,cta:ze.text},_A=()=>[{date:f("Year"),title:f("Milestone title."),body:f("Describe what happened, in a sentence or two.")},{date:f("Year"),title:f("Milestone title."),body:f("Describe what happened, in a sentence or two.")},{date:f("Year"),title:f("Milestone title."),body:f("Describe what happened, in a sentence or two.")}],dIe={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Pp={eyebrow:Te.eyebrow,title:Te.headingAccent,intro:Te.body,cta:ze.text},AA=()=>[{date:f("Year"),title:f("Milestone"),blurb:f("A short line about this milestone."),future:!1},{date:f("Year"),title:f("Milestone"),blurb:f("A short line about this milestone."),future:!1},{date:f("Year"),title:f("Milestone"),blurb:f("A short line about this milestone."),future:!1},{date:f("Year \u2192"),title:f("Upcoming"),blurb:f("A milestone still to come."),future:!0}],mIe={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:_v,padTop:120,padBottom:120}};var NA={buttonBorder:{width:0}},Ep=(e,o,t={})=>({textStyle:"body-5",...M("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),ls=(e,o,t={})=>({...Ep(e,o),...Lo,...t}),_p=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),si=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),ft=(e,o,t={})=>({kind:"text",key:e,props:U,style:o,...t}),FA=(e,o)=>o?.future===!0,Tp=e=>NO(typeof e?.body=="string"?e.body:""),BI=e=>na(typeof e.background=="string"?e.background:void 0,Ba.TimelineTrack),EI=e=>BI(e)===Wt?e:{...e,background:"transparent"},Cj={name:"Milestone Timeline",skip:e=>rp(BI(e)),boxProps:(e,o)=>{let t=Dr(EI(e),o);return{...Y,direction:"column",gap:60,[wj("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...Wo,...st(e,"TimelineTrack"),...tp(BI(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Nr(e,EI(o),t)],...Rr("TimelineTrack")],parts:[pI(up(fp("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...A,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...A,direction:"row",share:"equal",gap:0,line:!0,...Wo},parts:[{kind:"list",key:"entries",name:"Year",props:{...A,...EA},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:OI.name,props:{...A,...OI},parts:[ft("date",Ep(13,.22,{color:"accent"}),{when:(e,o)=>!FA(e,o)}),ft("date",Ep(13,.22,{color:"labels"}),{when:FA}),ft("title",{textStyle:"heading-3",..._p(M("headingSmall",20),-.02,1.1)},{role:"heading"})]},ft("blurb",si(M("body",13),1.55),{props:te,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...A,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...so,align:"right",...NA},style:ls(13,.3)}]}]}],site:(e,o)=>Mr({props:EI(e.props)},o),drop:{...X,...re,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"}},RI=e=>typeof e.layout=="string"?e.layout:"split",Op=e=>RI(e)==="split",LI=e=>!Op(e),MA=e=>RI(e)==="spine",kj=e=>LI(e)&&!MA(e),BA=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...A,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:{...A,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[ft("imageCaption",ls(11,.24,{color:"text"})),ft("imageMeta",ls(11,.24,{color:"accent"}),{props:{...U,align:"right"}})]}]}),LA=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...so,...e,...NA},style:ls(13,.3)}),_I=()=>[ft("title",{textStyle:"heading-3",..._p(M("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...U,_partStyles:{text:si(M("body",17,16),1.6)}},box:[["body","text",(e,o)=>Ds(Tp(o)[0]??"")]],when:(e,o)=>Tp(o).length>0},{kind:"block",type:"Text",props:{...te,_partStyles:{text:si(M("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Ds(Tp(o).slice(1).join(`
322
-
323
- `))]],when:(e,o)=>Tp(o).length>1}],AI=()=>ft("date",Ep(13,.24,{color:"accent"})),FI=(e,o,t={})=>ft(e,o,{...t,props:{...U,...t.props??{},align:"center"}}),RA=$o("headingMedium",40,5,76),DA={sectionBorder:{bottom:1}},vj={name:"Story Timeline",skip:e=>RI(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Op(e)?{...Y,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...DA,...st(e,"Timeline")}:{...Y,direction:"column",gap:48,gapPhone:48,align:"center",...DA,...st(e,"Timeline")},box:[...Q,...Rr("Timeline")],parts:[{kind:"group",name:"Heading",props:{...A,gap:24,gapPhone:24},when:Op,parts:[ft("eyebrow",ls(12,.3,{color:"accent"}),{role:"eyebrow"}),ft("title",{textStyle:"heading-2",..._p(RA,-.03,.94)},{role:"heading",mark:"accentItalic"}),ft("intro",si(M("body",14),1.6),{props:{...te,maxWidth:360},mark:"accentItalic"}),BA(667,419,{},()=>!0),LA()]},{kind:"group",name:"Chapters",props:{...A,gap:48,gapPhone:48,line:!1},when:Op,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...A,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[AI(),{kind:"group",name:"Words",props:{...A,gap:14,gapPhone:14},parts:_I()}]}]},{kind:"group",name:"Heading",props:{...A,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:LI,parts:[FI("eyebrow",ls(12,.3,{color:"accent"}),{role:"eyebrow"}),FI("title",{textStyle:"heading-2",..._p(RA,-.03,.94)},{role:"heading",mark:"accentItalic"}),FI("intro",si(M("body",14),1.6),{props:{...te,maxWidth:520},mark:"accentItalic"}),LA({align:"center"})]},BA(506,192,{maxWidth:900,widthFit:"fill"},LI),{kind:"group",name:"Chapters",props:{...A,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:MA,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...A,gap:8,gapPhone:8},parts:[AI(),{kind:"group",name:"Words",props:{...A,gap:14,gapPhone:14},parts:_I()}]}]},{kind:"group",name:"Chapters",props:{...A,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:kj,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...A,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...A,gap:8,gapPhone:8},parts:[AI(),{kind:"group",name:"Words",props:{...A,gap:14,gapPhone:14},parts:_I()}]},{kind:"group",name:"Spacer",props:{...A},keepEmpty:!0,parts:[]}]}]}],drop:{...X,...re,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},HA=()=>({eyebrow:vp.eyebrow,title:wt(vp.title),intro:vp.intro,ctaText:ze.text,ctaHref:ze.href,entries:_A()}),WA=()=>({eyebrow:Pp.eyebrow,title:wt(Pp.title),intro:Pp.intro,ctaText:ze.text,ctaHref:ze.href,entries:AA()}),$A={TimelineTrack:Cj,Timeline:vj};import{tabletKey as Pj}from"efficient-easel/draw";function zA(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var ct=e=>typeof e=="string"?e:e==null?"":String(e),DI=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],is=e=>ct(e.group),JA=e=>`loc-${e}`,ZA=e=>ct(e.state).trim()||mx(ct(e.region)).state,QA=e=>ct(e.country).trim()||mx(ct(e.region)).country,UA=e=>[ZA(e),QA(e)].filter(Boolean).join(" \xB7 "),Tj=e=>DI(e).some(o=>ct(o.photo).trim()!==""),Oj=e=>DI(e).some(o=>sw(Number(o.lat),Number(o.lng))),Ej=(e,o)=>DI(e).filter(t=>is(t)===is(o)).length,_j=(e,o)=>Ej(e,o)===1?"wide":Jv(e.imageShape),jA=48,kt=(e,o={})=>({...St(e),...o}),NI={top:1,right:1,bottom:1,left:1},MI={...A,direction:"row",share:"equal",gap:0},Aj=e=>o=>o>md(o)?{...A,gap:0}:{...MI,...o>1?{phoneRow:e}:{}},HI=!0,Fj={kind:"group",name:"Gallery",props:{...A,gap:20,...HI?{_hidden:!0}:{}},when:Tj,parts:[{kind:"group",name:"Gallery head",props:{...A,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[fe("galleryKicker",kt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...te,align:"right",alignPhone:"left"},style:kt(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...A,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...A,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:NI,...Co(12,12)},item:(e,o,t)=>({props:{...ct(e.photo).trim()?{bgImage:ct(e.photo),hover:"mono"}:{},link:`#${JA(o)}`,boxShape:_j(t,e)}}),parts:[{kind:"text",key:"name",props:U,style:kt(11,{letterSpacing:.22,color:"text"})}],groups:{of:is,name:"Group",props:{...A,gap:10},head:e=>({label:is(e[0]??{})}),parts:[fe("label",kt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:Aj(2),perRow:md,rowName:"Row",rowProps:{...MI,phoneRow:2}}}]}]},Bj={kind:"group",name:"Words",props:{...A,gap:12,gapPhone:12,...Co(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...A,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:{...A,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:U,style:{textStyle:"heading-3",...M("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...U,_partStyles:{text:kt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>UA(t)]),when:(e,o)=>UA(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...A,sectionBorder:NI,...Co(6,10)},parts:[{kind:"text",key:"timezone",props:{...te,textFit:"line"},style:kt(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:te,style:{textStyle:"body-5",fontRole:"heading",...M("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...so,...Ea,variant:"ghost",arrow:!1,_partStyles:{label:kt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>zA(ct(e))??"#"]],when:(e,o)=>ct(o?.phone).trim()!==""},{kind:"text",key:"hours",props:te,style:kt(12,{letterSpacing:.18,lineHeight:1.7})}]},Lj={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)=>ZA(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>QA(t)])]},Rj={kind:"group",name:"Map",props:{...A,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[Lj]},Dj={kind:"list",key:"locations",name:"City",props:(e,o)=>({...A,gap:0,justify:"between",sectionBorder:NI,jumpHighlight:!0,sectionAccent:Dr(e,o)>=0?Zn(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:JA(o)}}),parts:[Bj,Rj],groups:{of:is,name:"Group",props:{...A,gap:20},head:e=>{let o=e[0]??{};return{key:is(o),groupName:ct(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...A,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>ct(o?.key).trim()!=="",parts:[fe("key",kt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:U,style:{textStyle:"heading-3",...M("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:te,style:kt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...MI,columns:md(e),[Pj("columns")]:1})}},GA=kt(10,{letterSpacing:.25}),Nj={kind:"block",type:$t,props:{...A,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Oj,slot:zt,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...te,text:"Location coordinates \xA9",_partStyles:{text:GA}}},{kind:"block",type:"ButtonBlock",props:{...so,...Ea,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...GA,color:"labels"}}}}]},KA=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),qA=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],VA=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],YA=e=>e.map(o=>[o,o,(t,r)=>ae(r,Nn)[o]]),XA=["sectionAccent","sectionAccent",Nr],Mj=[...gr,...vn,...Object.values(Fo)],Hj={name:"City pictures",skip:e=>De(e)?`fed by the data source "${De(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Y,direction:"column",gap:40,anchor:"studios",...Wo,...KA(ae(e,Nn),qA),sectionPaddingBottom:jA,sectionPaddingBottomPhone:jA,..._a(e,o)}),box:[...Q.filter(e=>e!=="sectionAccent"&&e!=="anchor"),XA,["anchor","anchor",e=>Bv(e).trim()?e:"studios"],...YA(qA)],parts:[fp("sectionNumber","heading","tagline"),Fj],also:[{name:"City maps",boxProps:(e,o)=>({...Y,direction:"column",gap:40,sectionBorder:{bottom:1},...Wo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...KA(ae(e,Nn),VA),..._a(e,o)}),box:[...Mj,XA,...YA(VA)],parts:[Dj,Nj]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:Mr,drop:{...X,...re,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)"}},eF={ContactLocations:Hj};import{SITE_SIDE as oF,sideLengthAt as Wj}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as WI}from"efficient-easel/draw";var $j=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var Hr=(e,o)=>()=>({top:e,topPhone:o}),tF=e=>o=>{let t=Mn(e),r={...o,[yr.top]:Ud(o,t).top},a=i=>{let d=Wj(r,yr,zd,i,"top");return d?.unit==="px"?d.value:void 0},n=i=>ye(o[WI(yr.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}:{}}},zj={Collections:Hr(120,70),Events:Hr(120,70),FAQ:Hr(Jf.top,Jf.topPhone),GalleryB:Hr(120,70),FitmentTable:Hr(120,80),SpecTable:Hr(120,80),LongRead:Hr(Zf.top,Zf.topPhone),RelatedProducts:Hr(0,0),Footprint:tF("Footprint"),ProcessSteps:tF("ProcessSteps"),ProductGrid:e=>({top:ye(e.padTop)??120,topPhone:0})};function Uj(e,o={}){let t=$(bt,e),r=$(zj,e);if(!t||!r)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);let a=t.padKey,n=lt(e),s=mp(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:$(Xr,e)??e,boxProps:(d,c)=>{let x=r(d),u=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(d,c):o.boxProps??{},I=Fa(e)==="editorial"?Wo:{};return{...Y,direction:"column",gap:Jl[Fa(e)],sectionPaddingTop:x.top,...x.topTablet!==void 0?{sectionPaddingTopTablet:x.topTablet}:{},...x.topPhone!==void 0?{sectionPaddingTopPhone:x.topPhone}:{},...I,...u,...h}},box:[...Q,...a?[[a,"sectionPaddingTop",(d,c)=>r(c).top]]:[]],parts:[n,...(()=>{let d=a&&q0.has(e)?{[WI(a,"tablet")]:0,[WI(a,"mobile")]:0}:{},c={...a?{[a]:0}:{},...d,...o.coreProps},x={kind:"core",keep:"rest",...Object.keys(c).length?{props:c}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[x]}:x]})(),...o.partsAfter??[]],...Object.keys(s).length?{reads:s}:{},...Object.keys(i).length?{drop:i}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var jj={...A,direction:"accordion",rowStyle:"numbered"},Gj={sectionPaddingLeft:oF,sectionPaddingRight:oF},Kj={Footprint:{slots:{[Pe]:[lw()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Ls]:A_().map(t=>({...t,props:{...t.props,...Gj}}))}:{},boxProps:{gapPhone:Jl.editorial}},FAQ:{slots:{[Pe]:[nw()]},pressHeading:!0,coreBox:{name:"Questions",props:jj},coreProps:{sectionAccent:Ir},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[B0]:fa},skip:e=>{let o=e._partStyles??{},t=aw().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}}},rF=Object.fromEntries($j.map(e=>[e,Uj(e,$(Kj,e))]));import{BLOCK_WIDTH_LIMIT as qj}from"efficient-easel/draw";var Ap={eyebrow:Te.eyebrow,title:Te.headingAccent,deck:"Add a sentence or two introducing this document."},pge={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var iF={minWidth:qj.min},aF=(e,o,t)=>({...fe(e,{...o,...ql}),props:{...U,align:"right",...Ta,...t}}),dF={top:1,bottom:0},zI=(e,o,t,r)=>({kind:"group",name:e,props:{...A,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),nF={widthFit:"fill",...iF},Vj={...M("label",13),letterSpacing:.22,lineHeight:1.8},sF={textStyle:"heading-1",...$o("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},Yj=()=>({name:"Page Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...ae(e,tc)}),box:[...Q,...de(tc)],parts:[{kind:"group",name:"Header",props:{...A,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[zI("Eyebrow",12,0,{...fe("eyebrow",M("label",13)),props:{...U,...Ta}}),{kind:"text",key:"title",role:"heading",props:{...U,tag:"h1",...nF},style:sF,mark:"accentItalic",when:e=>!Mh(e)},{kind:"text",key:"title",role:"heading",props:{...U,tag:"h2",...nF},style:sF,mark:"accentItalic",when:Mh},{kind:"group",name:"Details",props:{...A,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[Vl("label","value",Vj,Ta)]}]}]},{kind:"group",name:"Deck",props:{...A,maxWidth:760,sectionBorder:dF,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:te,style:{textStyle:"body-1",fontRole:"accent",...M("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...X,...re,[Dc]:"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"}}),fF=()=>({eyebrow:Ap.eyebrow,title:wt(Ap.title),deck:Ap.deck,meta:[{label:Te.label,value:Te.value},{label:Te.label,value:Te.value}]}),Xj={...M("label",13),letterSpacing:.18,lineHeight:1.8},lF={...M("label",13),letterSpacing:.22,lineHeight:1.9},Jj=()=>({name:"Issue Header",boxProps:e=>({...Y,direction:"column",gap:0,sectionBorder:{bottom:1},...ae(e,gl)}),box:[...Q,...de(gl)],parts:[{kind:"group",name:"Top",props:{...A,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[zI("Eyebrow",14,14,fe("eyebrow",M("label",14))),{kind:"group",name:"Issue",props:{...A,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[Vl("lead","rest",Xj)]}]}]},{kind:"group",name:"Bottom",props:{...A,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:dF,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...U,maxWidth:720,...iF},style:{textStyle:"body-1",fontRole:"heading3",...M("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...A,align:"stretch",gap:0},parts:[zI("Heading",6,6,{kind:"text",key:"issueHeading",props:{...U,align:"right",...Ta},style:{textStyle:"body-1",fontRole:"heading",...M("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...ql}}),{kind:"group",name:"Lines",props:{...A,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[aF("text",{color:"labels",...lF})]}]},aF("issueTotal",lF)]}]}],drop:{...X,...re}}),$I={color:"labels",...M("label",13),letterSpacing:.2},cF=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),UI=(e,o)=>o!==void 0&&cF(e).at(-1)===o,pF=(e,o)=>o!==void 0&&cF(e).includes(o),Zj=(e,o)=>pF(e,o)&&!UI(e,o)&&Me(o?.href),Qj=()=>({name:"Breadcrumb",skip:e=>Me(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Y,...ca,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...ae(e,ml)}),box:[...Q,...de(ml)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:Zj,props:{...so,...Ea,icon:"none"},style:$I},{...fe("label",$I),when:(e,o)=>pF(e,o)&&!UI(e,o)&&!Me(o?.href)},{...fe("label",{...$I,color:"text"}),when:UI}]}],drop:{...X,...re,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing",...Qc}}),uF={DocMasthead:Yj(),Masthead:Jj(),Breadcrumb:Qj()};import{BLOCK_WIDTH_LIMIT as oG,hiddenKeyOf as tG}from"efficient-easel/draw";import{readHidable as jI}from"efficient-easel/draw";function eG(e,o,t){return e||(t?.isEditing?f(o):void 0)}function Tge(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function mF(e,o,t){let r=jI(e);if(!r.hidden)return eG(r.text,o,t)}function xF(e){if(e==null)return;let o=jI(e);return o.hidden?"":o.text}function Oge(e,o,t){return jI(e).hidden?"":mF(e,o,t)}function Ege(e,o,t){return{text:mF(e,ze.text,t),href:o||ze.href}}var yF="MenuBlock",GI=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Me(o.label)),hF=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(xF(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},IF={top:0,bottom:0,topPhone:0,bottomPhone:0},rG={...Lo,color:"labels",...M("label",12),letterSpacing:.24},aG={kind:"group",name:"Note",props:{...A,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[tG("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>hF(e)!=="",props:e=>({...U,textFit:"line",text:hF(e),[rv]:{text:rG}})}]},SF=()=>({tabs:[],metaLabel:Te.label,metaValue:Te.value}),gF="the note Text inside the Box (the label, then the value in the accent); no words, no Text",bF={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:oG.min},wF=e=>({...e,boxProps:o=>({...Y,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[Sn]:0,[Js]:!0,sectionBorder:{bottom:1},...ae(o,IF)}),box:[...Q,...de(IF)]}),nG=()=>wF({name:"Tab Bar",skip:e=>GI(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:gF,metaValue:gF},parts:[{kind:"block",type:yF,props:bF},aG],drop:{...X,...re,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"}}),sG=()=>wF({name:"Category Bar",skip:e=>{if(GI(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(GI(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:yF,props:{...bF,[ao]:KS}}],drop:{...X,...re,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"}}),CF={DocTabs:nG(),CategoryBar:sG()};import{jsx as La,jsxs as KI}from"react/jsx-runtime";import{slugify as mG}from"efficient-shell/format";import{jsx as Bp,jsxs as PF}from"react/jsx-runtime";import{jsx as lG}from"react/jsx-runtime";import{useEffect as iG,useRef as dG}from"react";var kF="data-current",fG=1/3,cG=2;function pG(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 uG(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=pG(n,o,t);for(let l of r)s!==null&&a(l)===s?(l.setAttribute(kF,""),l.setAttribute("aria-current","location")):(l.removeAttribute(kF),l.removeAttribute("aria-current"))}function vF(){let e=dG(null);return iG(()=>{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-cG;uG(o,window.innerHeight*fG,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)}},[]),lG("span",{ref:e,hidden:!0})}var jge="sticky top-[120px]";var Fp={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var TF=(e,o)=>e?{[Qr]:o}:{},OF=(e,o)=>tw(e?.[Hs(o)]?.role,Fp[o],lb),EF=120;function _F({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Wx,takesViewHide:l=!1,markCurrent:i=!1}){let d=s==="plain",c=ot(),x=l?c:br;return x.scope(PF("aside",{className:vo(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,x.className),style:r?{top:t}:void 0,...x.attrs,children:[e&&Bp("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Ye(e)}),o.map((u,h)=>{let I=Bp("span",{...TF(a,"number"),style:OF(n,"number"),className:"text-accent",children:Bf(s,h)});return PF("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,Bp("span",{...TF(a,"entry"),style:OF(n,"entry"),children:Ye(u.label||"Section")}),!d&&I]},`${h}-${u.anchor}`)}),i&&!a&&Bp(vF,{})]}))}function AF(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 xG(e,o){return mG(e)||`section-${o+1}`}var qI=e=>typeof e=="string"&&e.trim()!=="";function VI(e){return(e??[]).filter(o=>qI(o.heading)||qI(o.label)||qI(o.body))}function YI(e){return AF(e.map((o,t)=>xG(o.label||o.heading||"",t)))}function XI(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=nd(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 hG=()=>[{label:f("First section"),heading:f("Your *first* section."),body:f(`Write the opening paragraph here.
327
-
328
- - Start a line with a dash for a bullet.
329
- - Add as many as you like.`)},{label:f("Second section"),heading:f("Your *second* section."),body:f("Leave a blank line between paragraphs to start a new one.")}],IG=EF;function hye({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=IG,pad:a}){let n=Ct(),s=VI(o);if(s.length===0&&!t)return null;let l=s.length===0&&t?hG():s,i=YI(l);return La(ie,{as:"section",className:"relative z-[2] bg-bg",children:KI("div",{...j0(Zo("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:[La(_F,{title:e,entries:l.map((d,c)=>({label:d.label||"Section",anchor:i[c]})),stickyTop:r}),La("div",{className:"flex flex-col gap-16",children:l.map((d,c)=>KI("article",{id:i[c],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[KI("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Hx(c)," \xB7 ",Ye(d.label||"Section")]}),d.heading&&La("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:Ye(d.heading)}),XI(d.body??"").map((x,u)=>x.type==="ul"?La("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:x.items.map((h,I)=>La("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:Ye(h)},I))},u):La("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Ye(x.text)},u))]},i[c]))})]})})}var FF=18,BF=18,LF=8,gG=10,JI=e=>typeof e=="string"&&e.trim()!=="",RF=e=>VI(e.sections),yG=e=>XI(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}),ZI={...St(12),letterSpacing:.3,color:"accent",lineHeight:1.5},DF={textStyle:"body-1",fontRole:"accent",...M("body",17)},SG=[fe("label",ZI),{...fe("title",ZI),when:(e,o)=>!JI(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!JI(o?.label)&&!JI(o?.title),props:{...U,text:"Section",_partStyles:{text:ZI}}},{kind:"group",name:"Heading",props:{...A,sectionPaddingBottom:LF,sectionPaddingBottomPhone:LF},parts:[{kind:"group",name:"Heading line",props:{...A,sectionBorder:{bottom:1},sectionPaddingBottom:BF,sectionPaddingBottomPhone:BF},parts:[{kind:"text",key:"heading",role:"heading",props:U,style:{textStyle:"heading-2",...$o("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:yG,parts:[{kind:"text",key:"text",props:te,style:{...DF,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:te,style:{...DF,lineHeight:1.65,paragraphSpacing:gG},when:(e,o)=>o?.kind==="ul"}]}],bG=900,wG={name:"Document Text",boxProps:e=>({...Y,direction:"row",gap:80,gapPhone:40,[ip]:bG,sectionBorder:{bottom:1},...ae(e,oc)}),box:["anchor","sectionAccent",...gr,...vn,...Object.values(Fo),...de(oc)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...A,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>RF(e),props:{...A,gap:FF,gapPhone:FF},item:(e,o,t)=>({props:{anchor:YI(RF(t))[o]??`section-${o+1}`}}),parts:SG}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...X,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},NF={DocBody:wG};import{phoneKey as PG}from"efficient-easel/draw";import{SITE_SIDE as TG}from"efficient-easel/screen/lib/content/length-units";var Oye={eyebrow:"\u2014 Label",title:`Section headline *here.*
331
- *Highlight line*`,body:"Describe this section in a sentence or two."},Eye={text:"Learn more"},_ye={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 QI(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}import{parseOption as CG}from"efficient-shell/format";var MF="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",kG="overlay",vG=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function Lp(e){return CG(vG,kG,e)}var Bye={desktop:40,mobile:45,min:20,max:80,step:5};function Lye(e,o){return`${typeof e=="number"?e:o}%`}import{parseOption as OG}from"efficient-shell/format";var HF=(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(tl.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(tl.sizePhone,t?.phone)}}},EG=e=>Lp(e.layout)==="stacked",WF=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),Rp=e=>ye(e)??100,_G={textStyle:"heading-1",sizeToken:{...$o("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},AG=[fe("eyebrow",M("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:U,style:{..._G,case:e?"upper":"none"},styleFrom:o=>{let t=xx(o);return HF(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...te,maxWidth:560},style:{textStyle:"body-1",...M("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=xx(e);return HF(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...A,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:so}]}],$F=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)`,FG=()=>({name:"Scroll-Over Text",skip:e=>EG(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",...Yl,placement:"left",darken:WF(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Rp(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Rp(e.heightMobile),[Hd]:JC}),box:[...Q.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>WF(o)],["heightDesktop","sectionHeightValue",e=>Rp(e)],["heightMobile","sectionHeightValuePhone",e=>Rp(e)]],parts:AG,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(Zv.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:$F("Button color"),buttonTextColor:$F("Button text color"),...X}}),jF={textStyle:"heading-2",...M("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},BG={textStyle:"body-1",...M("body",16),lineHeight:1.7},GF=e=>({kind:"text",key:"body",props:{...te,maxWidth:520},style:{...BG,paragraphSpacing:e}}),Np={top:0,bottom:0,topPhone:0,bottomPhone:0},eg=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},LG=(e,o)=>{let t=eg(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"}},KF={boxShapePhone:"landscape"},qF="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)",RG=(e,o)=>({[e]:o,[PG(e)]:o}),DG={textStyle:"heading-2",...M("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},zF=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),NG=()=>({name:"Brand Text",boxProps:(e,o)=>({...Y,...Ho("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ae(e,Np),...eg(e,100)}),box:[...Q,...de(Np)],parts:[{kind:"group",name:"Words",props:()=>({...A,justify:"center",gap:28,gapPhone:28,sectionBorder:Xl({right:1}),sectionBorderPhone:Xl({}),...Yl,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:TG}),parts:[fe("eyebrow",M("label",14)),{kind:"text",key:"heading",role:"heading",props:U,style:{...jF,case:"none"},mark:"accentItalic"},GF(28),{kind:"group",name:"Stats",props:{...A,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...A,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(zF(e).length,1),3),...RG("sectionBorder",Xl({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:zF,props:{...A,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Oa,style:DG},fe("label",{...M("label",13),color:"labels",letterSpacing:.2})]}]}]}]},tI("Picture","imageSrc",KF)],drop:{...X,grayscale:qF,...re}}),Dp=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}},MG=e=>e.textAlign==="center"||e.textAlign==="right"?dd[e.textAlign]:"stretch",HG=e=>Math.min(Math.max(ye(e.overlay)??60,0),100),VF=e=>typeof e=="string"&&e.trim()!=="",WG={...so,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},UF=e=>({...tI("Picture","imageSrc",(o,t)=>({...VF(o.imageSrc)&&QI(o.imageOverlay)>0?{darken:QI(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...KF,sectionBorder:Xl(e?{left:1}:{right:1}),...YF(e?"left":"right",es(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:WG,style:{...St(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),YF=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},$G={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...A,justify:"center",align:MG(e),placement:OG(["left","center","right"],"left",e.textAlign),...LG(e,72),gap:24,gapPhone:24,...VF(e.textBgSrc)?{darken:HG(e),darkenStyle:"even"}:{},...Yl,sectionPaddingTop:100,sectionPaddingBottom:100,...YF(t?"right":"left",es(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...fe("eyebrow",M("label",14)),styleFrom:Dp},{kind:"text",key:"title",role:"heading",props:U,style:jF,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Dp(e)})},{...GF(24),styleFrom:Dp},{kind:"group",name:"Button",props:{...A,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Dp(e);return{...so,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},zG=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Y,...Ho("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ae(e,Np),...eg(e,72)}),box:[...Q,...de(Np)],parts:[UF(!1),$G,UF(!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:qF,...X,...re}}),XF={IntroBleed:FG(),Manifesto:NG(),Split:zG()};var QF={headPlacement:void 0},JF={top:0,bottom:0,topPhone:0,bottomPhone:0},UG=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Y,direction:"column",...ae(e,JF)}),box:[...Q,...de(JF)],parts:[{kind:"core",keep:"rest",props:QF}],drop:{...X,...re}}),ZF={top:120,bottom:120,topPhone:60,bottomPhone:60},jG=()=>({name:"Photo Submission Form",boxProps:e=>({...Y,direction:"column",gap:24,...ae(e,ZF)}),box:[...Q,...de(ZF)],parts:[fe("eyebrow"),{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:te},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:QF}],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,...re,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'}}),eB={Form:UG(),SubmitBuild:jG()};import{phoneKey as oB}from"efficient-easel/draw";var rB=1.5,tB={textStyle:"body-1",...M("body",15),lineHeight:rB},GG={...Lo,...M("label",12),letterSpacing:.12,lineHeight:rB},aB=()=>({type:G,props:{...A,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[oB("share")]:"content",[oB("wrap")]:"nowrap",...Co(12,0),sectionBorder:{top:1},name:"Item"},slots:{[Ce]:[{type:G,props:{...A,gap:0,gapPhone:0,name:"Item words"},slots:{[Ce]:[Ae("label",{...U,tag:"p"},tB),Ae("meta",{...te,tag:"p"},GG)]}},Ae("amount",{...U,tag:"p"},tB)]}});var KG=()=>({name:"Order Table",boxProps:()=>({...Y,direction:"column"}),box:[...Q],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[Pe]:[aB()]}}],drop:{...X}}),nB={OrderSummary:KG()};import{phoneKey as qG}from"efficient-easel/draw";var lSe={eyebrow:"By the numbers",title:`A picture worth
332
- *a thousand rows.*`},sB=["eyebrow","title","body","caption"],iSe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var lB=["eyebrow","title","body"],fSe={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 fB=()=>({kind:"group",name:"Words",props:{...A,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...A,direction:"row",phoneRow:2,[qG("share")]:"content"},parts:[Jn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-2",...M("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...te,maxWidth:435},style:cd(16)}]}),cB=e=>(o,t)=>({...Y,sectionAccent:Qn(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...ae(o,yl)}),pB=[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Qn(e,t)],...de(yl)],VG=()=>({name:"Chart",boxProps:cB([42]),box:pB,parts:[fB(),{kind:"group",name:"Chart",props:{...A,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Xn},fe("caption",{color:"muted",...M("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...sB],drop:{...X,...re}}),iB=e=>e.align==="left",dB={kind:"group",name:"Card",keepEmpty:!0,props:A,parts:[{kind:"core",keep:"rest",props:Xn}]},YG=()=>({name:"Mockup Card",boxProps:cB("equal"),box:pB,parts:[{...dB,when:iB},fB(),{...dB,when:e=>!iB(e)}],pressKeepsEmpty:[...lB],drop:{...X,...re}}),uB={Chart:VG(),Mockup:YG()};import{phoneKey as JG}from"efficient-easel/draw";function mB(e,o=3){let t=Array.from({length:o},()=>[]);return e.forEach((r,a)=>t[a%o].push(r)),t}function xB(e){return Math.max(e*6,30)}var ZG=e=>(Array.isArray(e.apps)?e.apps:[]).map(o=>o&&typeof o=="object"&&typeof o.text=="string"?o.text.trim():"").filter(Boolean),og=e=>mB(ZG(e)),QG=e=>wp({loopDuration:xB(e)}),e8={kind:"group",name:"Header",props:{...A,align:"center",gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...A,direction:"row",justify:"center",phoneRow:2,[JG("share")]:"content"},parts:[Jn("eyebrow")]},{kind:"text",key:"title",role:"heading",props:{...U,align:"center"},style:{textStyle:"heading-2",...M("headingMedium",40,30),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...te,align:"center",maxWidth:568},style:cd(16)}]},o8=e=>({kind:"group",name:`Row ${e+1}`,when:o=>og(o)[e].length>0,props:o=>({...A,direction:"row",gap:12,gapPhone:12,loop:"scroll",...e%2===1?{scrollDirection:"right"}:{},loopDuration:QG(og(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=>og(o)[e].map(t=>({alt:t})),parts:[{kind:"block",type:"LogoBlock",box:["alt"]}]}]}]}),t8={kind:"group",name:"Stat",props:{...A,align:"center",gap:16,gapPhone:16},parts:[{kind:"group",name:"Figure",props:{...A,align:"center",gap:8,gapPhone:8},parts:[{kind:"text",key:"statValue",props:{...U,align:"center"},style:{textStyle:"heading-1",...M("headingLarge",64,46),weight:500,case:"upper",lineHeight:1,color:"accent"}},{kind:"text",key:"statLabel",props:{...U,align:"center"},style:{textStyle:"heading-3",...M("headingSmall",18),weight:500,case:"upper",letterSpacing:.06}}]},{kind:"text",key:"note",props:{...U,align:"center",maxWidth:428},style:{textStyle:"body-1",...M("label",14),lineHeight:1.625,color:"muted"}}]},r8=[...Q.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Qn(e,t)],...de(nc)],a8={name:"Integrations",boxProps:(e,o)=>({...Y,sectionAccent:Qn(e.sectionAccent??0,o),direction:"column",gap:48,gapPhone:48,sectionBorder:{top:1,bottom:1},...ae(e,nc)}),box:r8,parts:[e8,{kind:"group",name:"Rows",props:{...A,gap:12,gapPhone:12},parts:Array.from({length:3},(e,o)=>o8(o))},t8],pressKeepsEmpty:["body","statValue","statLabel","note"],reads:{apps:"a Logo block per app, dealt into the three Rows"},drop:{...X,...re}},hB={Integrations:a8},IB=()=>({eyebrow:f("Integrations"),title:f(`Plays well with
333
- *your favourite apps.*`),apps:["Shopify","Xero","Stripe","Mailchimp","Zapier","HubSpot","QuickBooks","PayPal","Google Analytics"].map(e=>({text:e}))});var n8={title:"Back online in",zeroText:"Almost done. Back very soon."},gB=["title"],OSe={label:"Countdown",defaultProps:{...n8,endsAt:"",showUnits:!0}};var s8={...fe("title",{...qb(12),color:"muted"}),props:{...U,align:"center"}},l8=()=>({name:"Countdown",boxProps:e=>({...Y,direction:"column",align:"center",gap:16,gapPhone:16,...ae(e,ec)}),box:[...Q,...de(ec)],parts:[s8,{kind:"core",keep:"rest",props:Xn}],pressKeepsEmpty:[...gB],drop:{...X,...re}}),i8=()=>({name:"Feature Banner",boxProps:e=>({...Y,direction:"column",sectionBorder:{bottom:1},...ae(e,ac)}),box:[...Q,...de(ac)],parts:[{kind:"core",keep:"rest",props:Xn}],drop:{...X,...re}}),yB={Countdown:l8(),FeaturedCover:i8()};var SB={top:80,bottom:80,topPhone:60,bottomPhone:60},d8=()=>{let e=mp("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Y,direction:"column",gap:Jl[Fa("FitmentFinder")],...ae(o,SB)}),box:[...Q,...de(SB)],parts:[lt("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...X,...re,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},bB={FitmentFinder:d8()};var Mp={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},MSe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var li={eyebrow:Te.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},$Se={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var wB={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},USe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var CB={title:`Section heading
334
- *Highlight line*`},kB=[{label:ze.text,href:ze.href,variant:"primary"},{label:ze.text,href:ze.href,variant:"outline"}],KSe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var dr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Te.viewAll},JSe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:Kf,num:dr.num,numStyle:wl,title:dr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Hp={eyebrow:"\u2014 Label",title:`Section headline
335
- *Highlight line*`,body:"A sentence or two of supporting copy."},obe={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:nl,bodySizeDesktop:nl,titleSizeMobile:nl,bodySizeMobile:nl,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[Sn]:0,uppercase:!1}};var f8={name:"Editorial Text",boxProps:e=>({...Y,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ae(e,lc)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...Q,...de(lc)],parts:[lt("Prose"),{kind:"text",key:"body",props:te,style:{textStyle:"body-1",...M("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...X,...re,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)"}},PB={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},TB=(e,o)=>o?.variant==="primary",OB=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:TB,variant:"primary",style:{letterSpacing:.3},props:{...so,...PB,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!TB(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...so,...PB,...o}}]}),Wp=e=>Me(e.title),c8={name:"Call-to-Action Heading",boxProps:e=>({...Y,direction:"row",align:"center",justify:Wp(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...st(e,"TitleWithButtons")}),box:[...Q,...Rr("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...A,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:U,style:{textStyle:"heading-1",...$o("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...A,gap:14,gapPhone:14,widthFitPhone:"fill",...Wp(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[OB(Wp,{widthFit:"fill",iconPosition:"end"}),OB(e=>!Wp(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 p8(e,o){let t=es(o,{to:hr(e.sectionPaddingUnitTablet??e.sectionPaddingUnit)}),r=es(o,{view:"phone",to:hr(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:vB,sectionPaddingRight:vB,sectionPaddingLeftTablet:t,sectionPaddingRightTablet:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var u8={name:"Section Header",boxProps:(e,o)=>({...Y,direction:"column",gap:0,...ae(e,ic),...p8(e,o)}),box:[...Q,...de(ic)],parts:[lt("SectionHeader")],drop:{...X,...re,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"}},EB={...A,direction:"row",share:[67],gap:32},_B={...A,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},AB=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),m8={name:"Lead Text",boxProps:e=>({...Y,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...st(e,"ParagraphsA")}),box:[...Q,...Rr("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...EB,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...A,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[fe("eyebrow",{color:"labels",...M("label",12),letterSpacing:.24})]},AB("Stats column",A,{kind:"group",name:"Stats",props:{..._B,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[Vl("value","label",{...M("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...EB,gapPhone:28},parts:[{kind:"group",name:"Lead",props:A,parts:[{kind:"group",name:"Measure",props:{...A,maxWidth:780},parts:[{kind:"text",key:"lead",props:U,style:{textStyle:"heading-3",...M("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},AB("Note column",{...A,justify:"end"},{kind:"group",name:"Founders",props:{..._B,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...A,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:U,style:{textStyle:"body-1",fontRole:"heading",...M("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:te,style:{textStyle:"body-5",fontRole:"heading",...M("body",14,12),lineHeight:1.7}}]},fe("attribution",{...M("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...X}},x8={name:"Banner",boxProps:e=>({...Y,direction:"column",gap:0,...ae(e,Yf)}),box:[...Q,"contained",...de(Yf)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...A,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Yt("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:{...A,gap:20,gapPhone:20},parts:[fe("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...U,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...M("headingMedium",44,32)}},{kind:"text",key:"body",props:{...U,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...M("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:so}]}],drop:{...X,...re}},tg={Prose:f8,TitleWithButtons:c8,SectionHeader:u8,ParagraphsA:m8,Banner:x8},FB={Prose:()=>({eyebrow:Mp.eyebrow,title:wt(Mp.title),body:Mp.body}),TitleWithButtons:()=>({title:wt(CB.title),buttons:kB.map(e=>({...e}))}),SectionHeader:()=>({num:dr.num,title:wt(dr.title),description:dr.description,linkText:dr.linkText,linkHref:ze.href}),ParagraphsA:()=>({eyebrow:li.eyebrow,lead:Te.body,foundersHeading:li.foundersHeading,foundersBody:li.foundersBody,attribution:li.attribution}),Banner:()=>({...wB,ctaText:ze.text,ctaHref:ze.href}),ProcessSteps:()=>({num:dr.num,title:wt(dr.title)}),IntroBleed:()=>({eyebrow:Hp.eyebrow,title:wt(Hp.title),body:Hp.body,ctaText:ze.text,ctaHref:ze.href})};function $p(){oo(tg),oo(Y1),oo(cA),oo(W1),oo(TA),oo($A),oo(eF),oo(rF),oo(uF),oo(CF),oo(NF),oo(XF),oo(eB),oo(nB),oo(bB),oo(uB),oo(hB),oo(yB)}var h8=[{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=>M_(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=>W_(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})=>($p(),j_(e,Gl,{theme:jw(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=>S0(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=>EE(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=>OE(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=>PE(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=>v0(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>JT(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=>LE(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=>HE(e)}];function I8(e,o,t){let r=e;for(let a of h8)(!t||a.chrome)&&(r=a.run(r,o));return r}function BB(e,o){return I8(e,{metadata:o},!1)}import{useRef as g8}from"react";import{createRenderKeep as y8}from"efficient-easel/render";function LB(){let e=g8(null);return e.current??=y8(),e.current}import{isNode as S8,isNodeList as b8}from"efficient-easel/data";import{hidableText as w8,readHidable as C8}from"efficient-easel/draw";var DB="slotCounts",rg=e=>!C8(e).hidden&&w8(e).trim()!=="",k8=e=>typeof e=="string"&&e.trim()!=="",v8={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>k8(e.src),Text:e=>rg(e.text),Heading:e=>rg(e.text),Eyebrow:e=>rg(e.eyebrow)},P8=["widthFit","width","minWidth"],RB=e=>b8(e);function T8(e){if(Array.isArray(e.content))return RB(e.content)?e.content:null;let o=Object.values(e).filter(RB);return o.length===1?o[0]:null}function O8(e,o){return[...new Set([XS,...Object.values($(uw,e)??{})])].some(t=>Rt(o,t)!=="")}function E8(e){let o=e.props??{},t=$(v8,e.type);if(!t||!t(o)||O8(e.type,o)||al(o))return!1;let r=o[Gn];if(r!=null&&r!=="")return!1;let a=Zc(o);return!P8.some(n=>a[n]!==void 0)}function _8(e){let o=0;for(let t of e)if(!Qt(t.props??{})){if(!E8(t))return;o+=1}return o>0?o:void 0}function A8(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let l of n){if(!S8(l))continue;let i=l.props.id;typeof i=="string"&&(t.has(i)?r:t).add(i);let d=s?null:T8(l.props);if(typeof i=="string"&&d){let c=_8(d);c!==void 0&&(o[i]=c)}for(let c of Ft(l))a(l.props[c],s||ea(l.type,c))}};a(e,!1);for(let n of r)delete o[n];return o}function NB(e,o){return{...e??{},[DB]:A8(o)}}function swe(e){let o=e.editor?.metadata?.[DB],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 L8({config:e,data:o,metadata:t}){let r=BB(o,t),a=LB(),n=g0(e,I0(r.content)),s=zf(r.content),l=s.length>0?{...t,[h0]:s}:t;return MB(Uf,{children:MB(B8,{config:n,metadata:NB(l,r.content),keep:a,data:r})})}var HB=F8(L8);import{jsx as zo,Fragment as WK,jsxs as LL}from"react/jsx-runtime";import{Suspense as $K,useMemo as zK}from"react";import{jsx as R8}from"react/jsx-runtime";import{createContext as D8,useCallback as N8,useContext as M8,useState as ag}from"react";var WB=D8({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{},chromeRootProps:null});function gwe({children:e,editFooter:o,chromeRootProps:t=null}){let[r,a]=ag(null),[n,s]=ag(null),[l,i]=ag(0),d=N8(()=>i(c=>c+1),[]);return R8(WB.Provider,{value:{footerBlock:r,setFooterBlock:a,headerGroup:n,setHeaderGroup:s,editFooter:o,refreshToken:l,refreshFooter:d,chromeRootProps:t},children:e})}var $B=()=>M8(WB);import{jsx as H8,jsxs as W8}from"react/jsx-runtime";import{createContext as $8,useContext as z8}from"react";var zB=$8(!1);function Cwe(){return z8(zB)}function UB({grayscale:e,children:o}){let t=e===!0;return W8(zB.Provider,{value:t,children:[Object.entries(t_(e)).map(([r,a])=>H8("style",{children:a},r)),o]})}import{jsx as U8}from"react/jsx-runtime";import{createContext as j8,useContext as G8}from"react";var jB=j8(null);function Twe(){return G8(jB)}function GB({ink:e,children:o}){return U8(jB.Provider,{value:e??null,children:o})}import{parseOption as K8}from"efficient-shell/format";var KB="data-lead-ink",Fwe="data-header-ink",q8=["auto","light","dark"],V8="auto";function Y8(e){return e.type==="IntroBleed"?Lp(e.props?.layout)!=="stacked":!0}function qB(e){let o=mf(e);return o&&rP(e)&&Y8(o)?"light":null}function Bwe(e){return K8(q8,V8,e)}import{useEasel as Ig}from"efficient-easel/easel";import{useEffect as lK}from"react";import{useEaselApi as iK}from"efficient-easel/easel";import{find as X8,walk as VB}from"efficient-easel/data";var J8=()=>"",Z8=e=>Nm(Bt([e],J8));function JB(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(Z8))])),a=Nm(e);return Object.keys(r).find(n=>r[n].has(a))??null}var Q8=()=>({press:[os(Zr),os(Ms)],delivery:[sI()]}),eK={},ng=e=>JB(e,Q8,eK),oK=e=>De(e)===GS?"delivery":"press";function Gwe(e,o){if(!o||De(e)===De(o))return e;let t=ng(e[Pe]),r=oK(e);if(!t||t===r)return e;let a=Fm(e,no),n=r==="delivery"?sI():os(De(e)?Ms:Zr),s=Bt([n],Lm(a));return{...e,[Pe]:s}}var tK=()=>({cards:[sn(Zr),sn(Ms)],label:[ln(!1),ln(!0)]}),rK={},aK=e=>JB(e,tK,rK);function Kwe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=aK(e[Pe]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=Fm(e,Vb),n=Array.isArray(e.items)&&e.items.some(i=>mo(i?.href)!==void 0),s=r==="label"?ln(n):sn(De(e)?Ms:Zr),l=Bt([s],Lm(a));return{...e,[Pe]:l}}var YB=(e,o)=>nI.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function XB(e,o){let t={...e};for(let r of nI)delete t[r];return{...t,...structuredClone(o)}}function sg(e){let o=e?.[Ce];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===no&&t.props?t:null}function nK(e,o){let t=sg(e),r=sg(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||De(t.props)===De(r.props))return e;let a=ng(t.props[Pe]);if(!a||a===ng(r.props[Pe]))return e;let n=ye(e.columns);return n===void 0?e:a==="delivery"&&YB(e,Aa(n))?XB(e,np(n)):a==="press"&&YB(e,np(n))?XB(e,Aa(n)):e}function ZB(e){let o=zp.get(e);o?o.count+=1:zp.set(e,{count:1,stop:sK(e)});let t=!1;return()=>{let r=zp.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),zp.delete(e)))}}var zp=new WeakMap;function sK(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;VB(t,e.config,n=>{if(n.type!==G||!sg(n.props))return;let s=X8(r,e.config,n.props.id);if(!s||s.node===n)return;let l=nK(n.props,s.node.props);l!==n.props&&a.set(n.props.id,l)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>VB(n,e.config,s=>{let l=a.get(s.props.id);return l?{...s,props:{...l,id:s.props.id}}:void 0})})})}function QB(){let e=dK();lK(()=>e?ZB(e):void 0,[e])}function dK(){try{return iK()}catch{return null}}import{jsx as Up}from"react/jsx-runtime";import{useEffect as fK}from"react";import{armScrollProgress as cK}from"efficient-shell/format";function eL({armed:e,children:o}){return fK(()=>e?cK():void 0,[e]),o}function lg(){return{style:{"--sf-page-width":Do}}}function pK({children:e}){return Up("div",{style:lg().style,children:e})}function nCe({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return Up("div",{style:{...o?{}:Sf(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:Up(eL,{armed:!t,children:Up(pK,{children:r})})})}import{jsx as oL,Fragment as uK}from"react/jsx-runtime";import{createContext as rL,useContext as tL}from"react";var aL=rL({}),nL=aL.Provider,sL=rL(void 0),lL=sL.Provider;function dCe(e){let{SectionTextParts:o}=tL(aL),t=tL(sL);return o?oL(o,{...e,sizeCaps:t}):oL(uK,{children:e.children})}import{jsx as FK}from"react/jsx-runtime";import{useEffect as BK,useRef as LK}from"react";var iL="data-easel-overlay-portal";function jp(e){return e.setAttribute(iL,"true"),()=>{e.removeAttribute(iL)}}import{jsx as kK}from"react/jsx-runtime";import{useEffect as vK,useRef as CL}from"react";import{usePreviewParts as PK}from"efficient-easel/draw/client";import{jsx as mK}from"react/jsx-runtime";import{createContext as xK,useContext as hK,useMemo as IK,useState as gK}from"react";var yK={partStyle:null,setPartStyle:()=>{}},dL=xK(yK);function mCe({children:e}){let[o,t]=gK(null),r=IK(()=>({partStyle:o,setPartStyle:t}),[o]);return mK(dL.Provider,{value:r,children:e})}function ds(){return hK(dL)}import{usePreviewDevice as TK}from"efficient-easel/draw/client";import{shownTier as OK}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as kL,encodePartId as EK}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as _K}from"efficient-easel/canvas";import{createPreviewSelectionContext as SK}from"efficient-easel/draw/client";var Ra="Scrolling Bar",{Provider:ICe,useSelection:fL}=SK("selectedHeroId"),ig="data-sf-hero-ticker";function cL(e){return`${e}::ticker`}function pL(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as Wr}from"efficient-easel/canvas";import{createPreviewSelectionContext as bK}from"efficient-easel/draw/client";var{Provider:SCe,useSelection:uL}=bK("selectedLocationPartId");function Gp(e,o,t){return`${e}::${o}::${t}`}function Kp(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 fg="data-sf-part-label";function cg(e,o){return e.closest(`[${Wr}]`)?.getAttribute(Wr)===o}function mL(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(y=>[y.key,nf(y.label)])),n=[],s=new Set;for(let y=0;y<r.length;y+=1){let b=r[y];if(!cg(b,o))continue;let E=b.getAttribute(Kk);if(!E)continue;let B=a.get(E);n.push({element:b,partId:Ht(o,E),...B?{label:B}:{}}),s.add(b)}let l=[],i=new Set;for(let y=0;y<r.length;y+=1){let b=r[y];if(!cg(b,o)||s.has(b))continue;let E=Vk(b.textContent??"");if(!E)continue;let B=b.closest(`[${lx}]`)?.getAttribute(lx)||null;B&&i.add(B.replace(/\[\d+\]$/u,"")),l.push({element:b,text:E,row:B})}let d=y=>l.filter(b=>b.row===Gk(y.key,y.row.index)),c=l.filter(y=>y.row===null),x=y=>y.row&&i.has(y.key)?d(y):i.size?c:l,u=new Map,h=[],I=y=>y.row?`${y.key}.${y.row.rowKey}`:null,C=new Map;for(let y of t){let b=I(y);if(!b||i.has(y.key))continue;let E=C.get(b);E?E.push(y):C.set(b,[y])}let P=new Set;for(let[y,b]of C){if(b.length<2)continue;let E=b.flatMap(k=>k.texts);if(new Set(E).size===E.length)continue;let B=x(b[0]).filter(k=>E.includes(k.text));if(B.length!==b.length)continue;let R=[...b].sort((k,L)=>(k.row?.index??0)-(L.row?.index??0));for(let k=0;k<R.length;k+=1){let L=R[k],g=B[k].element,w={key:L.key,partKey:kn(L.key,L.row),exact:!0},T=u.get(g);T?T.push(w):(u.set(g,[w]),h.push(g))}P.add(y)}let O=new Map;for(let y of t){if(P.has(I(y)??""))continue;let b=kn(y.key,y.row);for(let E of y.texts)for(let B of x(y)){if(B.text!==E)continue;let R=O.get(B.element);R?R.add(b):O.set(B.element,new Set([b]))}}let F=(y,b)=>[...O].some(([E,B])=>E!==y&&!B.has(b)&&E.contains(y));for(let y of t){if(P.has(I(y)??""))continue;let b=kn(y.key,y.row);for(let E of y.texts){let B=[],R=null;for(let g of x(y))g.text===E?F(g.element,b)||B.push(g.element):!B.length&&g.text.includes(E)&&(!R||g.text.length<=R.length)&&(R={element:g.element,length:g.text.length});let k=B.length?B:R?[R.element]:[],L=k.filter(g=>!k.some(w=>w!==g&&g.contains(w)));for(let g of L){let w={key:y.key,partKey:b,exact:B.length>0},T=u.get(g);T?T.push(w):(u.set(g,[w]),h.push(g))}}}let v=[...n];for(let y of h){let b=u.get(y)??[],E=b.some(B=>B.exact)?b.filter(B=>B.exact):b;if(new Set(E.map(B=>B.partKey)).size===1){let B=a.get(E[0].key);v.push({element:y,partId:Ht(o,E[0].partKey),...B?{label:B}:{}});continue}new Set(E.map(B=>B.key)).size===1&&v.push({element:y,partId:Ht(o,E[0].key)})}return v}function dg(e,o,t){let r=e.querySelectorAll(`[${$e}]`);for(let n=0;n<r.length;n+=1){let s=r[n];cg(s,o)&&(s.removeAttribute($e),s.removeAttribute(fg))}let a=[];for(let{element:n,partId:s,label:l}of t)n.setAttribute($e,s),l&&n.setAttribute(fg,l),a.push(n);return a}function IL(e,o,t,r,a,n=()=>null){let s=null,l=null,i=null,d=()=>{let c=t(),x=c?.getAttribute(Wr)??null;if(!c||!x)return!1;s=x;let u=mL(e,x,o);return a(c,x,dg(e,x,u)),i=n(()=>{let h=mL(e,x,o);wK(u,h)||(u=h,a(c,x,dg(e,x,h)))}),!0};return d()||(l=r(()=>{(s||d())&&(l?.(),l=null)})),()=>{l?.(),l=null,i?.(),i=null,s&&dg(e,s,[])}}function wK(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function OCe(e,o){let t=e?.closest?.(`[${$e}],[${kr}]`),r=t?.getAttribute($e)??t?.getAttribute(kr),a=r?jk(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:hL(t,r),label:xL(t,r)};let n=e?.closest?.(yL.slice(2).map(l=>`[${l}]`).join(","));if(!n)return null;let s=n.closest?.(`[${Wr}]`)?.getAttribute(Wr)===o?SL(n,o):null;return s?{id:s,element:n,whole:hL(n,s),label:xL(n,s)}:null}function xL(e,o){let t=Kp(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=Hc(o);return r?ir[r.part]:pL(o)?Ra:e.getAttribute(fg)??void 0}var gL="data-loc-pick",yL=[$e,kr,Wl,ig,gL];function SL(e,o){let t=e.getAttribute($e)??e.getAttribute(kr);if(t)return t;let r=e.getAttribute(Wl);if(r)return wa(o,r);if(e.getAttribute(ig)!==null)return cL(o);let a=e.getAttribute(gL)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?Gp(o,Number(a[0]),a[1]):null}function hL(e,o){let t=e.closest?.(`[${Wr}]`),r=t?.getAttribute(Wr);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(yL.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${Wr}]`)!==t)continue;let s=SL(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as bL,playEntrance as CK}from"efficient-shell/format";var pg=new WeakMap;function wL(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 c=o(d)??{},x=KC(c),u=r.get(d),h=u?Hn.next(u,x,a):null;r.set(d,h?h.seen:Hn.seed(x)),s.set(d,h?.play??!1)}let l=new Map,i=e.filter(d=>!e.some(c=>c!==d&&c.partKey===d.partKey&&c.element.contains(d.element)));for(let d of i){let c=wc(d.element);c&&l.set(c,[...l.get(c)??[],d])}for(let[d,c]of l){let x=I=>Tl(o(I.partKey)??{}),u=zn(c.filter(I=>x(I).entrance));if(u){let I=o(u.partKey)??{};n.push(Sc(d,Vs(I,a)));let C=pg.get(d);pg.set(d,u.partKey),(s.get(u.partKey)||C!==void 0&&C!==u.partKey)&&d.hasAttribute(bL)&&CK(d)}else pg.delete(d);let h=d.hasAttribute(bL)?void 0:zn(c.filter(I=>nr(o(I.partKey)??{},a).effect!=="none"));h&&n.push(bc(d,nr(o(h.partKey)??{},a))),c.some(I=>x(I).hover==="lift")&&(Cc(d.ownerDocument),d.setAttribute(ga,""),n.push(()=>d.removeAttribute(ga)))}return()=>n.forEach(d=>d())}function ug(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=ib(a),t??=Um(a)}return{faceRole:o??"body",sizeGroup:t}}function qp(e,o={}){let t=e.style,r={};for(let l of px)r[l]=t[l]??"",t[l]="";o.fontFamily&&(t.fontFamily=o.fontFamily),o.fontSize&&(t.fontSize=o.fontSize);let a=getComputedStyle(e),n=getComputedStyle(e.ownerDocument.documentElement),s=Iv({fontSize:a.fontSize,fontWeight:a.fontWeight,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,textAlign:a.textAlign,textTransform:a.textTransform,paddingTop:a.paddingTop},gv(a.fontFamily,l=>n.getPropertyValue(l)));for(let l of px)t[l]=r[l];return s}function vL({needles:e,styles:o,motions:t=yc,type:r,sizeCaps:a,children:n}){let s=CL(null),{selectedPartId:l}=PK(),{setPartStyle:i}=ds(),d=OK(TK()),c=JSON.stringify(e),x=JSON.stringify(o),u=JSON.stringify(t),h=CL(new Map);return vK(()=>{let I=s.current;if(!I)return;let C=[],P=()=>I.parentElement,O=R=>{let k=P();if(!k)return null;let L=new MutationObserver(R);return L.observe(k,{attributes:!0,attributeFilter:[_K]}),()=>L.disconnect()},F=R=>{let k=new MutationObserver(R);return k.observe(I,{childList:!0,subtree:!0,characterData:!0}),()=>k.disconnect()},v=[];C.push(()=>{for(let R of v)R();v=[]});let y=JSON.parse(c),b=JSON.parse(x),E=JSON.parse(u),B=IL(I,y,P,O,(R,k,L)=>{for(let S of v)S();v=[];let g=[];for(let S of L){let N=S,H=jp(N);H&&v.push(H),N.getAttribute($e)===l&&g.push(N)}let w=yv(k,l,g,S=>db(S)!==null||Um(S)!==null);if(w&&l){let S=w,N=kL(l)?.propKey??"",H=ol(S)?{}:hv(Sv(b,ar(r,N)),d,{blockDrawsStyle:rl(r,N),sizeCap:aa(a,N)});i({partId:l,...ug(S),base:qp(S,H),inks:ef(S),...(()=>{let q=ol(S);return q?{styleOwner:q}:{}})()})}cx(L.filter(S=>!ol(S)).map(S=>({element:S,partId:S.getAttribute($e)??""})),b,S=>qp(S),S=>ar(r,S),void 0,d,S=>rl(r,S),S=>aa(a,S));let T=[...I.querySelectorAll(`[${qk}="${CSS.escape(k)}"][${af}]`)];T.length&&cx(T.map(S=>({element:S,partId:EK(k,S.getAttribute(af)??"")})),b,void 0,S=>S,void 0,d),v.push(wL([...L.filter(S=>!ol(S)).map(S=>{let N=S,H=kL(N.getAttribute($e)??"")?.propKey??"";return{element:N,partKey:ar(r,H)}}),...T.map(S=>({element:S,partKey:S.getAttribute(af)??""}))],S=>E[S],jC(d),h.current))},F);return()=>{B();for(let R of C)R()}},[c,x,u,l,i,d,r]),kK("div",{ref:s,[bh]:"",style:{display:"contents"},children:n})}import{shownTier as RK}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as DK,usePreviewParts as NK}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)]"},AK={tag:{label:"Tag",follows:"Labels",builtIn:cn(ii.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:cn(ii.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:cn(ii.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:cn(ii.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:cn(ii.link),writable:!0}},PL=AK;var ske=Qr,TL={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 OL={SpecTable:TL,FAQ:rw,Collections:PL,Contents:Fp};function EL(){return en("efficient.section-text-regions",()=>new Map)}function mke(e){let o=EL();for(let[t,r]of Object.entries(e)){if(xo(OL,t))throw new Error(`lib/sections/section-text-regions: "${t}" is a builder section; its table is the builder's`);let a=o.get(t);if(a&&a!==r)throw new Error(`lib/sections/section-text-regions: "${t}" already has a table`);o.set(t,r)}}function fs(e){return e?$(OL,e)??EL().get(e)??null:null}function _L({nodeId:e,sectionType:o,partStyles:t,sizeCaps:r,children:a}){let n=LK(null),{selectedPartId:s}=NK(),{setPartStyle:l}=ds(),i=RK(DK()),d=JSON.stringify([t??null,r??null]);return BK(()=>{let c=n.current,x=fs(o);if(!c||!e||!x)return;let u=[],h=Array.from(c.querySelectorAll(`[${Qr}]`));for(let I of h){let C=Dm(x,I.getAttribute(Qr));if(!C)continue;let P=jp(I);P&&u.push(P);let O=Hs(C),F=Ht(e,O);I.setAttribute(kr,F);let v=t?.[O];if(x[C].sized&&bv(v)){let y=wv(v,i,{sizeCap:aa(r,O)}),b={fontFamily:I.style.fontFamily,fontSize:I.style.fontSize},E=I.getAttribute(ta);y.fontFamily&&(I.style.fontFamily=y.fontFamily),y.fontSize&&(I.style.fontSize=y.fontSize);let B={fontFamily:y.fontFamily?I.style.fontFamily:void 0,fontSize:y.fontSize?I.style.fontSize:void 0},R=v?.textStyle;nv(R)&&I.setAttribute(ta,R),u.push(()=>{vv(I.style,b,B),E===null?I.removeAttribute(ta):I.setAttribute(ta,E)})}if(F===s){let y=qp(I,kv(v,x[C],i));l({partId:F,...ug(I),base:y})}}return()=>{for(let I of u)I();for(let I of h)I.removeAttribute(kr)}},[e,o,s,l,i,d]),FK("div",{ref:n,style:{display:"contents"},children:a})}import{jsx as mg,Fragment as AL}from"react/jsx-runtime";import{createContext as MK,useContext as FL,useMemo as HK}from"react";var xg=MK(null),BL=e=>e==null||e===""?void 0:String(e);function hg({content:e,children:o}){let t=HK(()=>jx(e),[e]);return mg(xg.Provider,{value:t,children:o})}function Ake({id:e,children:o}){let t=FL(xg),r=BL(e);return mg(AL,{children:o(r?t?.entries.get(r):void 0)})}function Fke({id:e,children:o}){let t=FL(xg),r=BL(e);return mg(AL,{children:o(r?t?.numbers.get(r):void 0)})}var UK={SectionTextParts:_L},jK="color-mix(in oklab, var(--bg) 40%, #ffffff)",GK="12vh";function KK({style:e,children:o}){let{appState:t}=Ig(u=>u),r=t.data.content,a=t.data.root;if(aP(r))return zo("div",{className:"sf-themed-content",style:{...e,background:jK,minHeight:"100vh",paddingBottom:GK},children:zo("div",{style:{background:"var(--bg)"},children:zo(hg,{content:r,children:o})})});let n=hx(r)&&sP(a,r),s=hx(r)?lP(a,r):null,l=s?{[nP]:s}:null,i=wC(a?.widthChoice),d=i?{[bC]:i}:null,c=n?null:qB(r),x=c?{[KB]:c}:null;return zo("div",{className:`sf-themed-content${n?` ${oP}`:""}`,style:e,...x,...l,...d,children:zo("div",{style:{background:"var(--bg)",minHeight:"100%"},children:zo(hg,{content:r,children:o})})})}function nve({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,suppressPreviewNav:i,footer:d,overlay:c,children:x}){QB();let u=Ig(I=>I.appState.data.root?.props),h=Ig(I=>FP(I.appState.data.content));return zo(gg,{siteFooterRootProps:u?.kind===Rv?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=>LL(WK,{children:[zo(KK,{style:I,children:x}),d,c]})})}function gg({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:l,onClickCapture:i,siteFooterRootProps:d,inPlaceFooterProps:c,body:x}){let{chromeRootProps:u}=$B(),h=zK(()=>BP(u,c),[u,c]),{theme:I,fonts:C,sizes:P,cornerRadiusPx:O,cardShadow:F,shadowColor:v,cardGap:y,hoverEffect:b,headingCompression:E,siteWidth:B,siteGutter:R,siteGutterPhone:k,blockGap:L,blockGapPhone:g,siteLengthUnits:w,headingTypography:T,heroBackgroundFollowsWidth:S,photographyGrayscale:N,textStyles:H,wordStyles:q,themeFromDocument:z}=Po(),ne=z?e:I,ge=z?o:C,J=z?void 0:P,me=z?r===void 0?Lw[Bw(t)]:Rw(r):O,oe=z?{}:w,xe=z?a:E,ce=z?n:T,qe=[kT(CT(z?void 0:H)),vT(zw(ce).italicStrong)].filter(Boolean).join(`
336
- `),ro=lg(),wo={...Cw(ne),...Fw(J),...Uw(ce),...ro.style,...l?{}:Sf(s)};return LL("div",{className:`sf-theme-surfaces sf-theme-accent ${[hC(z?void 0:k),Wv(z?void 0:g)].filter(Boolean).join(" ")}`.trim(),style:{...fb(ge),...ub(z?null:q),...kw(ne),...Pw(ne),...Tw(ne),...vd(ne),...Dw(me,oe.cornerRadiusUnit),...Ww(z?void 0:F,z?void 0:v,z?void 0:b),...eC(z?void 0:B,oe.siteWidthUnit),...uC(z?void 0:R,oe.siteGutterUnit),...xC(z?void 0:k,oe.siteGutterPhoneUnit),...Mv(z?void 0:L,oe.blockGapUnit),...Hv(z?void 0:g,oe.blockGapPhoneUnit),...Ed(z?void 0:S)},"data-sf-headings":$w(xe),[nC]:Od(d??h),[Gd]:pk(d??h),"data-sf-card-shadow":z?void 0:Nw(F),"data-sf-card-gap":z?void 0:Mw(y),"data-sf-card-hover":z?void 0:Hw(b),onClickCapture:i,children:[qe?zo("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:qe}}):null,zo(UB,{grayscale:z?void 0:N,children:zo(nL,{value:UK,children:zo(GB,{ink:ww(ne),children:zo($K,{fallback:null,children:zo(A0,{rootProps:d??h,children:x(wo)})})})})})]})}var RL=e=>{e.target?.closest?.("a")&&e.preventDefault()};var Vp=[{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"]}],cs="all",Yp="template";function DL(e){for(let o=0;o<Vp.length;o++){let t=Vp[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function NL(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>DL(o.s.slug)-DL(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function yg(e){return e.filter(o=>o.source==="template")}function ML(e){let o=new Set(NL(e).map(t=>t.slug));return Vp.filter(t=>t.slugs.some(r=>o.has(r)))}function HL(e,o){if(e===Yp)return yg(o);let t=NL(o);if(e===cs)return t;let r=Vp.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}function WL(e){let o=e.content;return Array.isArray(o)&&o.length>0?o[0]:null}var e7=1440,o7=1080;function zL({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=dl(),[s,l]=VK(null),i=qK(()=>{let d=WL(e.layout),c=e.layout.zones;return{root:{props:{}},content:d?[d]:[],zones:c??{}}},[e.layout]);return $L("div",{className:"sf-starter",children:[$L(JK,{padding:"none",className:"sf-starter-picture",children:[vt("div",{inert:!0,className:"sf-starter-frame",children:vt(ZK,{width:e7,height:o7,children:vt(YK,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:l,height:"fill",children:vt($f,{document:s??void 0,children:vt(gg,{onClickCapture:RL,body:d=>vt("div",{className:"sf-themed-content",style:d,children:vt("div",{style:{background:"var(--bg)"},children:vt(HB,{config:o,data:i,metadata:t})})})})})})})}),vt("div",{className:"sf-starter-add",children:vt(XK,{onClick:()=>a(e),loading:r,"aria-label":f("Add \u201C{name}\u201D",{name:e.title}),children:f("Add page")})})]}),vt(QK,{size:"sm",children:e.title})]})}import{useMemo as cX}from"react";import{sessionRegistry as pX}from"efficient-easel/screen/lib/session";import{useEaselSession as uX}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as t7}from"efficient-easel/screen/lib/session";var r7={general:!0,commerce:!0,service:!0};function Sg(e){let o=e?.sets;return o?Object.fromEntries(JS.map(t=>[t,o.includes(t)])):r7}function bg(e=t7()){return Sg(e.blocks)}import{currentEaselSession as oR}from"efficient-easel/screen/lib/session";import{SITE_SIDE as GL}from"efficient-easel/screen/lib/content/length-units";var UL=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],kve={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:Wb,separator:$b,scrollDirection:ni}};var jL=()=>[{text:f("Spec label"),tone:"normal"},{text:f("Spec value"),tone:"muted"},{text:f("Spec label"),tone:"normal"},{text:f("Spec value"),tone:"muted"}],Tve={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 KL(e,o,t){return go(G,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Xp={Manifesto:(e,o)=>({type:G,props:{...e(G),id:o(G),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[go(G,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:GL,sectionPaddingRight:GL,content:[go("Text",e,o,Xt()),go("Text",e,o,xr()),go("Text",e,o),go("Stats",e,o)]}),KL(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:G,props:{...e(G),id:o(G),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[go(G,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[go("Text",e,o,Xt()),go("Text",e,o,xr()),go("Text",e,o),go("ButtonBlock",e,o)]}),KL(e,o,{direction:"column",name:"Image",content:[go("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:G,props:{...e(G),id:o(G),direction:"column",name:"Subscribe",content:[go("Text",e,o,xr()),go("Text",e,o),go("Form",e,o)]}}),Ticker:(e,o)=>qL("Scrolling Bar",qf,pa,UL.map(t=>({text:t.text,style:Vf,muted:!0})),e,o),SpecStrip:(e,o,t)=>qL("Spec Strip",t?.theme?{...xl,sectionAccent:kd(Zt(t.theme))}:{...xl,sectionBorder:{top:1}},ua,jL().map(r=>({text:r.text??"",style:hl,muted:r.tone==="muted"})),e,o)};function qL(e,o,t,r,a,n){return go(G,a,n,{...ca,...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 VL(e){return $(Xp,e)??null}import{isNodeList as wg}from"efficient-easel/data";var Zve=Object.keys(tg),a7={Logos:pA,DocMasthead:fF,DocTabs:SF,Timeline:HA,TimelineTrack:WA},n7={PaymentBadges:uA,PaymentLogosBlock:mA,Integrations:IB};function Jp(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]=wg(n)?n.map(s=>Jp(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var YL=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function di(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Pa({type:e,props:{...a(e),...r(),id:n(e)}},o,YL(s));return Jp(l[t],a,n)}}var s7={Stats:i7,Cards:l7};function l7(){let e=Br("Cards");if(!e)return null;let o=di("Cards",e,0,H1);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function i7(){let e=Br("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Pa({type:"StatsParagraph",props:{...o("StatsParagraph"),...X1(),id:t("StatsParagraph")}},e,YL(r)),n=a[0],s=wg(n.props.content)?n.props.content.filter(c=>c.props?.cardStyle===void 0):[],l=JL(wI(J1(),"table")),i=s.map(XL),d=Jp({...n,props:{...n.props,content:[...i,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function XL(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:wg(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(XL)}}:e}var JL=e=>Bt([e],(o,t)=>`${o}-seed-${t}`)[0];function d7(e,o){if(!U_(e,o))return null;let t=$(s7,e);if(t)return t();let r=Br(e);return r?di(e,r,0,$(a7,e)??$(FB,e)??$(n7,e)):null}function f7(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=Jp(JL(wI([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=Ve(n,l=>We(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function ps(e,o=va){let t=VL(e);return t?f7(t):d7(e,o)}import{blockTypesIn as ZL}from"efficient-easel/screen/lib/document/block-types-in";var QL=()=>({}),eR=new Map;function c7(e){let o=eR.get(e);if(o)return o;let t=new Set,r=$(nt,e);if(r)for(let s of r.seeds(QL))for(let l of ZL({type:r.childType,props:s}))t.add(l);let a=ps(e);if(a){let s=0;for(let l of ZL(a(QL,i=>`${i}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return eR.set(e,n),n}function Cg(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Sg(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=ob(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 c=n(i)&&c7(i).every(l);return s.set(i,c),c};return{sets:o,offers:l}}var p7="block-offer";function kg(e=oR()){return e.cache(p7,()=>Cg(un(e)))}function tR(e,o=oR()){let t=kg(o);return t?t.offers(e):!0}var rR={name:"catalogueLabel",applies:e=>xo(Xr,e),draw(e,o){e.label=$(Xr,o)}};import{jsx as Eg}from"react/jsx-runtime";import{parseBlockWidthFit as I7,phoneKey as Pt,tabletKey as pt}from"efficient-easel/draw";import{jsx as u7}from"react/jsx-runtime";import{phoneKey as Zp}from"efficient-easel/draw";var aR={name:"sectionGroupAllow",applies:e=>lf.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},vg=new Set(Object.keys(bt)),nR={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=>!vg.has(i)):a;s.disallow=Array.from(new Set([...s.disallow??[],...l]))}}};var lR=Array.from(new Set([...rb.map(e=>e.type),...vg]));function Pg(e,o){return lR.includes(e)||o?.sitsInBox===!0}var m7=Array.from(new Set([...lR,...od,"GalleryItem"])),x7={not:{context:"parentOffersPositions",is:!1}},h7={not:{context:"parentTileSlot",is:!1}},sR=[Qm,Zp("gridSpan"),Zp("gridRowSpan")],iR={name:"cellWidth",applies:(e,o,t)=>(m7.includes(e)||Pg(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=Ro(e.fields??{},a.filter(n=>!sR.includes(n)),x7),e.fields=Ro(e.fields??{},sR,h7)},draw(e){let o=e.render;e.render=t=>{let r=FC(t.gridSpan),a=LC(t.gridRowSpan),n=DC(t[Qm]),s=MC(t[Zp("gridSpan")]),l=HC(t[Zp("gridRowSpan")]),i=o(t);if(r==null&&a==null&&n==null&&s==null&&l==null)return i;let d={};r!=null&&(d[BC]=String(r)),a!=null&&(d[RC]=String(a)),s!=null&&(d[WC]=String(s)),l!=null&&(d[$C]=String(l));let c=n!=null?{[NC]:n}:void 0;return u7(ie,{className:"sf-grid-cell",style:c,...d,children:i})}}};function dR(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 fi={not:{context:"heldByANode",is:!0}};function Qp(e,o){return"parent"in o?o.parent!=null:!!jt(o.appState,e.props?.id)}function jt(e,o){let t=e?.data?.content;if(!Array.isArray(t)||typeof o!="string")return;let r=(a,n)=>{for(let s of a){if(s?.props?.id===o)return n;for(let l of tn(s??{})){let i=r(l,s);if(i!==void 0)return i}}};return r(t,null)}var g7=new Set(["Text","Heading"]),y7=new Set(["h1","h2","h3","h4","h5","h6"]);function fR(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&y7.has(o.tag)?!0:vr(o,"text").textStyle?.startsWith("heading-")===!0}var $r={not:{context:"blockOutsideBox",is:!0}},cR={all:[$r,{not:{context:"boxSharesWidth",is:!0}}]},pR={all:[$r,{not:{context:"boxSharesWidthPhone",is:!0}}]},uR={all:[$r,{not:{context:"boxSharesWidthTablet",is:!0}}]};function IR(e,o,t){return{any:[{field:pt(e),is:o},{all:[{field:pt(e),set:!1},t??{field:e,is:o}]}]}}function gR(e,o,t){return{any:[{field:Pt(e),is:o},{all:[{field:Pt(e),set:!1},t??{field:e,is:o}]}]}}var yR={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},S7=[[["_gBlockSize","minWidth",pt("minWidth"),Pt("minWidth"),"maxWidth",pt("maxWidth"),Pt("maxWidth")],$r],[["widthFit"],cR],[[pt("widthFit")],uR],[[Pt("widthFit")],pR],[["width"],{all:[cR,{field:"widthFit",is:"fixed"}]}],[[pt("width")],{all:[uR,IR("widthFit","fixed")]}],[[Pt("width")],{all:[pR,gR("widthFit","fixed")]}]],mR=IR("textFit","shrink",yR),xR=[[["_gText","textFit",pt("textFit"),Pt("textFit")],$r],[["minFont"],{all:[$r,yR]}],[[pt("minFont")],{all:[$r,mR]}],[[Pt("minFont")],{all:[$r,gR("textFit","shrink",mR)]}]],eu=(e,o)=>jt(o.appState,e.props?.id),ou=e=>!!e&&typeof e.type=="string"&&td(e.type)!==null,Tg=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Pn(e.type,e.props?.direction)==="row",Og=e=>{let o=I7(e);return o!==void 0&&o!=="fit"},b7={blockOutsideBox:(e,o)=>!ou(eu(e,o)),boxSharesWidth:(e,o)=>{let t=eu(e,o);return!ou(t)||!Tg(t)?!1:_m({...t.props,direction:"row"})!==""?!0:Em(t.props?.share)!==""&&!Og(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=eu(e,o);if(!ou(t)||!Tg(t))return!1;if(jb(t.props?.[pt("columns")])!==""||_m({...t.props,direction:"row"})!=="")return!0;let r=Ub(t.props?.[pt("share")])??t.props?.share;return Em(r)!==""&&!Og(e.props?.[pt("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=eu(e,o);if(!ou(t)||!Tg(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!Gb(r,t.props?.[Pt("share")])&&!Og(e.props?.[Pt("widthFit")]??e.props?.widthFit)}},w7=e=>/^_[gds][A-Z]/.test(e);function C7(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&&!w7(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function hR(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function k7(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return hR(o,r.indexOf("_dSize")+1,n)}return v7.has(e)&&r.includes("_gSpacing")?hR(o,r.indexOf("_gSpacing"),t):{...o,...t}}var v7=new Set(["Text","Heading"]);function P7(e,o){let{_gText:t,...r}=o;return C7(e,"_gText",r)??{...e,...o}}function T7(e){let o=new WeakMap;return t=>{if(!t||!("textFit"in t))return t;let r=o.get(t);if(!r){r={...t};for(let a of["textFit",pt("textFit"),Pt("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var SR={name:"blockSize",applies:(e,o,t)=>Pg(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=g7.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=k7(o,e.fields??{},Jo(n,S7));if(r){let l=Jo(a,xR);if(s=P7(s,l),o==="Text"){let i=Jo(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,xR),d=T7(i),c=e.resolveFields,x=(u,h)=>{let I=c?c(u,h):h.fields,C=P=>fR(o,u?.props??{})?d(P??h.fields):P;return I instanceof Promise?I.then(C):C(I)};e.resolveFields=x}}e.fields=s,Lt(e,{...b7,textWrapsByDefault:l=>!fR(o,l.props??{})})},draw(e,o){O7(e,o)}};function O7(e,o){let t=e.render;e.render=r=>{let a=Zc(r),n=oI(a),s=t(r),l=n&&oI(a,{atSectionLine:!0});return n===null?s:Eg(E7,{size:n,sectionSize:l??n,atEdge:o===G,canvasAttrs:r.editor?.isEditing?a1(a):bR,inCell:r1(a),fillsPhone:e1(a),widens:n1(a),children:s})}}var bR={};function E7({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:l}){let i=Yd(),d=wr(t?"edge":"by-box"),c=d?e:o,x=c.className,u=i?.phoneCells===!0,h=n&&i?.phoneRowFits===!0,I=s?Eg(XO,{children:l}):l;return Eg(Cr,{className:[x,u?a:"",h?Q_:""].filter(Boolean).join(" "),...Object.keys(c.style).length?{style:c.style}:{},attrs:d&&r!==bR?{...c.attrs,...r}:c.attrs,children:I})}import{Fragment as $7,jsx as nu}from"react/jsx-runtime";import{jsx as Oo,Fragment as Bg}from"react/jsx-runtime";import{createContext as us,useContext as Tt}from"react";var _7=new Set(["Flex","Grid"]);function zr(e){return typeof e=="string"&&_7.has(e)}var Da="contentWidth",_g="full",Ag="content";function pi(e){let o=e?.[Da];return o===_g?!1:o===Ag?!0:void 0}function wR(e,o){return e&&!o}function tu(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!_k(e)&&!yA(e.scrollDirection)}function ci(e,o){return zr(e)&&tu(el(o,!1))?hn({}):hn(o)}function ru(e,o){return typeof e!="string"||!_d(e)||js[e]==="rawMarkup"?ci(e,o).background??"full":ci(e,o).background??Ad(o).background}function au(e){return e!=="full"}function CR(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,l,i)=>{for(let d of a){let c=d?.props??{};if(c.id===o)return n;let x=zr(d?.type),u=(l?ci(d?.type,c).content:null)==="content"?!0:s,h=x&&(n.inBox?pi(c)??u:u),I={insideGutter:n.insideGutter||h||x&&tu(el(c,i)),inBox:n.inBox||x};for(let C of Ft({type:d?.type,props:c})){let P=c[C],O=r(P,I,u,!1,i||ea(d?.type,C));if(O!==void 0)return O}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var A7=" [--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))))]",F7="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",B7="[--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)))]",kR="max-w-[100vw]",L7=`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))] ${kR}`;function vR(e,o=!1){let t={},r=e.pad??{},a=ik({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[c,x]of[["l","paddingLeft"],["r","paddingRight"]]){let u=n[x];u!==void 0&&(t[`--sf-edge-${c}d`]=typeof u=="number"?`${u}px`:String(u));let h=n[`--sf-pad-${c}-tablet`],I=n[`--sf-pad-${c}-phone`];h!==void 0&&(t[`--sf-edge-${c}t`]=String(h)),I!==void 0&&(t[`--sf-edge-${c}p`]=String(I))}let s=oa(e.site?"site":"box"),l=a.classes.includes(s.className.split(" ")[0]),i=e.gutter?`${s.className} ${s.edge}${A7}`:`${F7}${l?` ${s.className}`:""}`,d=o?` ${dC}${e.gutter?` ${fC}`:""}`:"";return{className:`${i} ${B7}${d}`,style:t}}function VPe(e,o=!1){let{className:t,style:r}=vR(e,o);return{className:`${t} ${L7}`,...Object.keys(r).length?{style:r}:{}}}var R7="[--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 D7="--sf-edge-beyond";function PR(e){return`max(0px,calc((${e===null?Us:`min(${Us},${e})`} - ${Do}) / 2))`}var N7=`${R7} 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))] ${kR}`;function YPe(e){let{className:o,style:t}=vR(e);return{className:`${o} ${N7}`,style:{...t,[D7]:e.beyond??"0px"}}}var ui=us(!1);function sTe(){return Tt(ui)}function lTe({children:e}){return Oo(ui.Provider,{value:!0,children:e})}var Fg=us(!1);function Lg({children:e}){return Oo(Fg.Provider,{value:!0,children:e})}var TR=us(null);function Rg({ground:e,children:o}){return Oo(TR.Provider,{value:e,children:o})}var Dg=us(!1);function M7(){return Tt(Dg)}function OR({atTop:e,nested:o}){return Oo(Bg,{children:M7()?o:e})}var mi=us(void 0);function ER({children:e}){return Oo(mi.Provider,{value:null,children:e})}function Ng(){return Tt(mi)===void 0&&!Tt(Dg)&&!Tt(ui)}function ms({own:e,followed:o}){return Oo(Bg,{children:Ng()?e():o()})}var _R=us(null);function AR({value:e,children:o}){return Oo(_R.Provider,{value:e,children:o})}function FR({draw:e}){return Oo(Bg,{children:e(Tt(_R))})}function iTe(){return Tt(mi)??null}function BR({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:l,outerAttrs:i,box:d=!1,edge:c=!1,outerStyle:x,outerClass:u,bleed:h=!1,siteSide:I=!1,part:C,children:P}){let O=Tt(ui),F=Ct(),v=F?` ${oa(I?"site":"box").onceFrame}`:"",y=Tt(Fg),b=wR(e,O),E=b&&!y,B=ot(),R=!!(l&&E),k=R?u:vo(u??"",B.className)||void 0,L=R||!B.className?i:{...i,...B.attrs},g=s?wn(s,E):null,w=g&&F?{root:g.root?{...g.root,className:Zo(g.root.className,!0)}:null,outer:g.outer?{...g.outer,className:Zo(g.outer.className,!0)}:null}:g,T=w?.root??null,S=l&&!E?l:null,N=d&&!h?F?`${qm} ${lC(I?"site":"box")}`:qm:null,H=[E?`${o}${v}`:t,E?N:null,T?.className,S?rk:null].filter(Boolean).join(" "),q=H7(h&&E,T||S?{...a,...T?.style,...S}:a),z=Tt(mi),ne=Tt(TR),ge=d&&c&&z===void 0?{gutter:b,...s?{pad:s.values}:{},beyond:b&&y?PR(ne):"0px",...I&&b?{site:!0}:{}}:null,J=d?Oo(Dg.Provider,{value:!0,children:Oo(mi.Provider,{value:ge,children:P})}):P,me=b?Oo(ui.Provider,{value:!0,children:J}):J,oe=w?.outer??null,xe=L&&Object.keys(L).length>0?L:null,ce=Oo("div",{...oe?null:xe,className:!oe&&k?H?`${H} ${k}`:k:H,style:oe||!x?q:{...q,...x},"data-tab-label":n,...oe?null:C,children:y?Oo(Fg.Provider,{value:!1,children:b&&!h?Oo("div",{className:N?`${r}${v} ${N}`:`${r}${v}`,children:me}):me}):me}),qe=oe?Oo("div",{...xe,className:k?`${oe.className} ${k}`:oe.className,style:x?{...oe.style,...x}:oe.style,...C,children:ce}):ce;return B.scope(l&&E?Oo("div",{className:vo(Wd,B.className),style:{display:"contents",...l},...B.attrs,children:qe}):qe)}function H7(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as W7}from"react/jsx-runtime";function LR({children:e}){return W7(ie,{className:bA,children:e})}function z7({side:e,children:o}){return Ng()?nu(LR,{children:nu(ie,{className:wA(e),children:o})}):nu($7,{children:o})}var RR={name:"boxJoin",applies:(e,o,t)=>e===G&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=kp(t.join);return r?nu(z7,{side:r,children:o(t)}):o(t)}}};var DR=(e,o)=>e.fields?.[o]?.type==="slot",U7=(e,o)=>DR(o,Pe)||Sd(e).some(t=>DR(o,t)),NR={name:"cardTemplateOnInsert",applies:(e,o,t)=>U7(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,l=s==="insert"?hd(o,n):s==="copy"?xd(o,n):n,i=l===n?r:{...r,props:l};return t?t(i,a):i}}};import{jsx as hi}from"react/jsx-runtime";import{Fragment as Na,jsx as He,jsxs as Mg}from"react/jsx-runtime";import{createContext as Hg,useContext as Ur,useId as Y7}from"react";import{REPEAT_ATTRIBUTE as X7,REPEAT_INDEX_ATTRIBUTE as J7}from"efficient-easel/draw";import{jsx as TTe}from"react/jsx-runtime";import{createContext as K7,useContext as $R,useMemo as q7}from"react";var MR="title";function HR(e){return`${e}Alt`}function j7(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function WR(e,o){let t={[MR]: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}=j7(n);t[r]=s,t[HR(r)]=l}}return t}function G7(e,o){return typeof o!="string"?o.flatMap(t=>G7(e,t)):e===xf||!iP(e)?[]:o==="image"?Ix(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:HR(t.key)})):o!=="text"?[]:[{key:MR,label:f("Title")},...Ix(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var zR=K7(null);function V7(){return $R(zR)?.record??null}function ATe(e){let o=V7();return o!==null&&o.type===e?o:null}function UR(){let e=$R(zR);return q7(()=>e&&e.record.type!==xf?WR(e.record,e.dateWords):null,[e])}function jTe({props:e,editing:o,children:t}){let r=Ur(xi);return!o&&Wm(e,r?.row)?null:He(Na,{children:t})}var lu=Hg(null);function GTe({field:e,children:o}){let t=Ur(lu);return He(Na,{children:o(t&&t.field===e?t.id:void 0)})}function Z7(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>Wm({[on]:r},o)))?.field??""}var xi=Hg(null),su=Hg(null),Q7={label:"text-[length:var(--size-label,12px)]"},eq=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${Q7.label} text-fg-dim`;function KTe({name:e,label:o,editing:t}){let r=Ur(su)?.(e),a=qd()!=="";return r!=null&&r!==!1?a?He(ie,{className:"contents",children:r}):He(Na,{children:r}):t?He(ie,{className:eq,children:f("Shown by the section: {name}",{name:o?.trim()||e})}):null}function qTe(){return Ur(xi)}function Wg({type:e,props:o,children:t}){let r=Ur(xi),a=UR(),n=r?.row??a;return He(Na,{children:t(hw(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function oq({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=Y7(),{press:l,disabled:i}=r,d=r.label?.trim(),c=!d&&a?{id:`${s}-title`,field:a}:null;return Mg("div",{...e,id:s,className:t&&!i?`${ch} ${lE}`:ch,children:[He("button",{type:"button",[fE]:"",className:i?uE:pE,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":c?.id??s},...i?{"aria-disabled":!0,tabIndex:-1}:null,onClick:i?void 0:l}),He(lu.Provider,{value:c,children:n})]})}function VTe({ownerId:e,ownerType:o,slot:t=Pe,Template:r,rows:a,items:n,fields:s,states:l,stateLine:i,actions:d,pressTitles:c,previewHover:x,fallback:u,copyAttrs:h,wrapCopy:I,rowKey:C,hostParts:P,children:O}){let F=Ur(xi),v=Ur(lu),y=Ur(su);if(!r||(r.blockCount??0)<=0)return He(Na,{children:u});let b=F!==null,E=fw(o),B=x??F?.previewHover,R=r.blockCount===1?He(Pk,{children:He(r,{className:Ik})}):He(r,{}),k=new Set,L=(w,T)=>{if(!C)return T;let S=C(w,T);for(;k.has(S);)S=`${S}#${T}`;return k.add(S),S},g=a.map((w,T)=>{let S=l?.[T],N={row:w,index:T,ownerType:o,slot:t,item:n?.[T],nested:b,...s?{fields:s}:null,...S?{state:S}:null,...E?{linesBetween:E}:null,...B?{previewHover:B}:null},H=Dh(S)?Mg(Na,{children:[R,i==="under"?He("span",{"aria-hidden":"true",className:rE}):Rh(S)?Mg("span",{"aria-hidden":"true",className:aE,children:[He("span",{className:nE}),He("span",{className:sE})]}):He("span",{"aria-hidden":"true",className:tE})]}):R,q={[X7]:`${e}:${t}`,[J7]:T,...typeof h=="function"?h(N):h},z=d?.[T],ne=iE(S,i),ge=z?He(oq,{attrs:{...q,...ne},selected:S?.selected===!0,hover:i!=="under",action:z,titleField:Z7(c,w),children:H}):v?He("div",{...q,...ne,children:He(lu.Provider,{value:null,children:H})}):He("div",{...q,...ne,children:H}),J=I?I(ge,N):ge;return He(xi.Provider,{value:N,children:P?He(su.Provider,{value:me=>P(N,me),children:J}):y?He(su.Provider,{value:null,children:J}):J},L(N,T))});return He(Na,{children:O(g)})}var jR={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==no&&e!==pn,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.partSizeCaps,s=r.render,l=t.inspector?.PartAnchors,i=(d,c)=>Jk(a(),c,x=>mw(o,d,x));r.render=d=>{let c=fv(d),x=SO(d);return d.editor?.isEditing&&l?hi(Wg,{type:o,props:d,children:u=>hi(l,{needles:i(d,u),styles:c,motions:x,type:o,sizeCaps:n,children:hi(lL,{value:n,children:s(d)})})}):!Object.keys(c).length&&!Object.keys(x).length?s(d):hi(Wg,{type:o,props:d,children:u=>hi(TO,{needles:i(d,u),styles:c,motions:x,type:o,atEdge:o===G,sizeCaps:n,children:s(d)})})}}};import{jsx as GR}from"react/jsx-runtime";var KR={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=tk(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?GR(ie,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},$g=["CollectionCard"],qR={name:"cardCorners",applies:(e,o,t)=>$g.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=kP(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?GR(ie,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var VR={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 YR={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 XR,jsxs as tq}from"react/jsx-runtime";var rq="Flex",JR=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,ZR={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>JR(t,Rl)?XR(ie,{className:Ec,children:t[Rl]==="empty"?null:o(t)}):o(t)}},QR={name:"headBox",applies:(e,o,t)=>e===rq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>JR(t,Ll)?tq(ie,{className:_c,children:[XR(Ac,{}),o(t)]}):o(t)}};import{createElement as aq}from"react";var eD={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===G?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(Qt(n))return null;let s=al(n),l=kk(s,Fv(n),{sectionClassName:al(n,{atSectionLine:!0}),line:r});return aq(bk.Provider,{value:l},a(n))}}};import{jsx as iq}from"react/jsx-runtime";import{createContext as tD,createElement as oD,useContext as nq}from"react";var rD=tD(null),sq=tD(!1),C0e=rD.Provider;function lq(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function aD({name:e,editing:o,children:t}){let r=nq(rD);return o||lq(e,r?.selected??null,r?.known??[])?t:oD("div",{hidden:!0,style:{display:"none"}},oD(sq.Provider,{value:!0},t))}var dq="Flex",nD={name:"showFor",applies:(e,o,t)=>e===dq&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=AE(t[Gn])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return iq(aD,{name:r,editing:a,children:o(t)})}}};var sD=If.mediaFields,fq=e=>IP(e)?e.src:e;function cq(e,o){let t=o;for(let r of $(sD,e)??[])t=gP(t,r,fq);return t}var lD={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&($(sD,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(cq(o,r))}};import{jsx as Ii,Fragment as iD,jsxs as dD}from"react/jsx-runtime";var pq="!grow-0 !shrink-0 !basis-0",uq=["[.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(" "),mq="flex flex-col w-full min-w-0 [&>*]:grow";function fD({anchor:e}){let o=sa(e),t=wr(),r=qd();return o?Ii("span",{id:o,className:vo(t?`sf-section-anchor ${pq} ${uq}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function xq({anchor:e,copiesInBox:o,children:t}){let r=Yd()?.columnsRow===!0,a=vk(),n=sa(e)!=="";return o?Ii(iD,{children:t}):r&&!a&&n?dD(ie,{className:mq,children:[Ii(fD,{anchor:e}),t]}):dD(iD,{children:[Ii(fD,{anchor:e}),t]})}var cD={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=>Ii(xq,{anchor:r.anchor,copiesInBox:qo(o,r),children:t(r)})}};import{jsx as hq}from"react/jsx-runtime";var pD=Object.fromEntries(Ab.map(e=>[e,"picture"])),Iq={[G]:"box",Ticker:"marquee",...Object.fromEntries(sd.map(e=>[e,"cards"])),...pD},uD=(e,o)=>!Dd.has(e)&&!!o&&typeof o.render=="function";function mD(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function xD(e,o){let t=e,r=t.render;t.render=a=>{let n=yn(a);return!n||qo(o,a)?r(a):hq(hc,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===G,children:r(a)})}}var hD={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&uD(e,t),panel:(e,o,t)=>mD(e,$(Iq,o)??"section",t,o),draw:(e,o)=>xD(e,o)},ID={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&uD(e,t),panel:(e,o,t)=>mD(e,$(pD,o)??"block",t,o),draw:(e,o)=>xD(e,o)};import{jsx as gq}from"react/jsx-runtime";var gD=(e,o)=>!Dd.has(e)&&!!o&&typeof o.render=="function";function yq(e){let o=Ih.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function yD(e,o){let t=e,r=t.render,a=yq(o),n=e.drawsPictures===!0;t.render=s=>{let l=$n(s);return!l||qo(o,s)?r(s):gq(Nc,{views:l,...a?{origins:gO(s,a)}:{},takesViewHide:!0,atEdge:o===G,zoomInside:n?"picture":"layer",children:r(s)})}}var SD={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&gD(e,t),draw:(e,o)=>yD(e,o)},bD={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&gD(e,t),draw:(e,o)=>yD(e,o)};import{jsx as Sq}from"react/jsx-runtime";import{createElement as bq}from"react";var zg=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function wq(e,o){let t=e.props??{};return zg.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:jt(o.appState,t.id))?.type===G}var Ug={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!hk.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||!zg.some(c=>c in i))return i;let d=n.get(i);if(!d){d={...i};for(let c of zg)c in d&&(d[c]=a[c]);n.set(i,d)}return d},l=e.resolveFields;e.resolveFields=(i,d)=>{let c=l?l(i,d):d.fields,x=u=>wq(i??{},d)?s(u??d.fields):u;return c instanceof Promise?c.then(x):x(c)}},draw(e,o){let t=e.render;e.render=r=>{if(qo(o,r))return t(r);let a=Sk(r);return a?Sq(Cr,{className:a.className,style:a.style,...o===G?{attrs:Mb}:null,children:t(r)}):t(r)}}},wD={name:"sectionHeightFillRoot",applies:Ug.applies,draw(e,o){let t=e.render;e.render=r=>{let a=qo(o,r)?null:Ck(yk(r),gk(r).join(" "));return bq(wk.Provider,{value:a},t(r))}}};import{jsx as iu}from"react/jsx-runtime";import{PIN_ATTR as CD,PIN_FRAME_ATTR as Cq}from"efficient-shell/format";var vD=TD("sectionSticky",(e,o,t)=>o.isSection(e)&&!QC.has(e)&&!!t&&typeof t.render=="function",!0),PD=TD("cardSticky",(e,o,t)=>$g.includes(e)&&!!t&&typeof t.render=="function",!1);function TD(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=ox.has(a);r.fields=vq(r.fields??{},Jo(n.stickFields({intro:s,screens:t,above:t}),Pq(s))),t&&Lt(r,{heldByANode:Qp})},draw(r,a){let n=r.render,s=ox.has(a);r.render=l=>{let i=rx(l,{atScreenTop:s,above:t});if(!i)return n(l);let d=x=>{let u=iu(Jd,{children:n(l)});return iu(ie,{...x.attrs,style:x.style,children:x.attrs[CD]===""?iu("div",{[Cq]:"",children:u}):u})},c=t?rx(l,{atScreenTop:s,track:t,above:!0}):i;return!c||c.attrs[CD]!==""?d(i):iu(ms,{own:()=>d(c),followed:()=>d(i)})}}}}var kD=[gt,ss],kq="_gStick";function vq(e,o){let t=Object.keys(e),r=e[Wn];if(!r){let O=t.findIndex(F=>kD.includes(F));return O<0?{...e,...o}:Object.fromEntries([...t.slice(0,O).map(F=>[F,e[F]]),...Object.entries(o),...t.slice(O).map(F=>[F,e[F]])])}let{[kq]:a,...n}=o,s=O=>O.startsWith(Sn),l=Object.entries(n).filter(([O])=>!s(O)),i=Object.entries(n).filter(([O])=>s(O)),d=[r.dot,a?.dot].filter(O=>!!O),c=t.indexOf(Wn),x=t.findIndex((O,F)=>F>c&&kD.includes(O)),u=x<0?t.length:x,h=t.indexOf(Ic),I=h>c&&h<u?h:u,C=O=>[O,O===Wn?{...r,dot:{any:d}}:e[O]],P=[...t.slice(0,I).map(C),...l,...t.slice(I,u).map(C),...i,...t.slice(u).map(C)];return Object.fromEntries(P)}function Pq(e){let o=i=>({field:i,in:[!0,!1]}),t=i=>e&&i==="stickTop"?{any:[{field:i,is:!0},ek]}:{field:i,is:!0},r=i=>({field:i,is:!0}),a=i=>({all:[i,fi,{not:{field:Js,is:!0}}]}),[n,s,l]=XC;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Jt(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Jt(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Jt(["stickTopTablet","stickTop"],o,r))],[[l],a(Jt(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[Hd],tx],[[Js],tx]]}import{jsx as Tq}from"react/jsx-runtime";var OD={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(cc.has(o))return;let t=e.render;e.render=r=>{let a=sk(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,nk(r)),n=t(r);return a?Tq(ie,{className:Wd,style:{display:"contents",...a},children:n}):n}}};import{jsx as jg}from"react/jsx-runtime";var ED={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!Yw.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=Gm.has(o);e.fields={...e.fields,...n?r(Pd,a):r()}},draw(e,o){let t=Gm.has(o),r=e.render;e.render=a=>{let n=Jw(t?{...a,sectionAccent:Pd(a.sectionAccent)}:a),s=r(a);if(!n)return s;let l=d=>jg(Cr,{className:n.className,style:d,children:s}),i=n.style;return qo(o,a)?jg("div",{className:n.className,style:{...i,display:"contents"},children:s}):ru(o,a)!=="content"?l(i):jg(ms,{own:()=>l({...i,...zs(Do)}),followed:()=>l(i)})}}},_D={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(Pd,a)})}};import{jsx as Ke}from"react/jsx-runtime";var AD=null;function Gg(e){AD=e}function FD(){return AD}import{jsx as Oq}from"react/jsx-runtime";var Eq="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",BD=oa("box").frame,gi=`${Eq} ${BD}`,_q=oa("site").frame;function $Oe(e){return e?_q:BD}var Aq="mx-auto w-full max-w-[1280px] px-[60px]",Fq="max-[960px]:px-6",zOe=`${Aq} ${Fq}`;function UOe({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",part:n,children:s}){return Oq(BR,{contained:e,framedClass:`${gi} ${o}`,fillClass:`${a} ${o}`,columnClass:gi,style:t,pad:r,part:n,children:s})}var xs="--sf-sw-site",Bq="--sf-sw-content",Lq="--sf-bg-cap",Rq="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",Kg=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",RD="contents view-wide:[--sf-site-width:100vw]",qg=({held:e},o,t)=>e?t:Ke(ie,{className:o,children:t}),Dq=`contents view-wide:[--sf-site-width:100vw] ${MF} view-wide:[--sf-site-gutter:var(--intro-edge)]`,Vg=(e,o,t)=>o==="content"?`min(${mn(e,t)},var(${xs}))`:mn(e,t);function yi({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Us:null:o===null?null:Vg(o,r,t)}function Si(e,o){return o===null?e:Ke(ie,{className:"contents",style:{[xs]:Do},children:Ke(ie,{className:Rq,style:{[Bq]:o},children:e})})}var Nq="--sf-content-cap",Mq="contents max-view-wide:[--sf-content-cap:none]";function Hq({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?Vg(o,r,t):r==="content"?null:`var(${xs})`}function Wq(e,o){return o===null?e:Ke(ie,{className:"contents",style:{[xs]:Do},children:Ke(ie,{className:Mq,style:{[Nq]:o},children:e})})}var DD=`var(${xs},${Do})`,jr=(e,o,t="")=>e==="content"?Ke(ie,{className:t||void 0,style:zs(Do),children:Ke(Rg,{ground:DD,children:o})}):o;function ND(e,o,t,r,a){if(Kg(t))return jr(r,qg(t,RD,Ke(Lg,{children:e({...o,contained:!0})})),a);if(t.content==="full")return jr(r,e({...o,contained:!1}),a);let n=yi(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):jr(r,Si(Ke(Lg,{children:e({...o,contained:!0})}),n),a)}function $q(e,o,t,r,a){if(t==="hero"){let l=Si(e(o),yi(r,r.band));return r.band==="full"?Ke(ie,{style:{[gC]:"none",[yC]:"initial",[SC]:"initial"},children:l}):r.band==="content"?Ke(ie,{style:Ed(!0),children:l}):l}let n=r.band??"full",s=Sr(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return jr(n,e(o),s);let l=r.contentMax===null?Do:Vg(r.contentMax,n,r.contentMaxUnit);return Ke(ie,{className:"contents",style:{[xs]:Do},children:jr(n,Ke(ie,{className:s||void 0,style:zs(l),children:e(o)}),s)})}if(t==="scrollOver"){let l=r.content==="full",i=Kg(r)?qg(r,Dq,e({...o,fullWidth:!1})):Si(e({...o,fullWidth:l}),l?null:yi(r,n));return n==="content"?Ke(ie,{className:"contents",style:{[Lq]:Do},children:i}):i}switch(t){case"both":return jr(n,Wq(e(o),Hq(r,n)),s);case"contained":return ND(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let l=Kg(r),i=r.content==="full"&&!l?"full":"page",d=l?qg(r,RD,e({...o,widthMode:i})):Si(e({...o,widthMode:i}),r.content==="full"?null:yi(r,n));return t==="productGrid"&&!r.own?n==="content"?Ke(Gf,{className:s?`${gi} ${s}`:gi,children:c=>Ke(ie,{className:c,children:d})}):d:jr(n,d,s)}default:return jr(n,Si(e(o),yi(r,n)),s)}}function LD(e,o,t,r,a){let n=a===G?"edge":"by-box",s=l=>$q(e,o,t,r,l);return n==="edge"?s(!0):Sr(o)===Sr(o,{atSectionLine:!0})?s(!1):Ke(Vd,{line:n,draw:s})}function zq(e,o){let t=$(js,o);if(!t)return;let r=e.render;e.render=a=>{let n=Ad(a),s={band:n.background,content:n.content??"content",contentMax:null},l=()=>t==="rawMarkup"?r(a):Ke(FR,{draw:I=>I?.background==="content"?Ke(Rg,{ground:DD,children:i(I)}):i(I)}),i=I=>{let C=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=LD(r,a,t,C,o);if(!zr(o))return P;let O=pi(a),F=O===void 0?C.content:O?"content":"full";return F===C.content?P:Ke(OR,{atTop:P,nested:ND(r,a,{...C,content:F,own:!1},C.band??"full",Sr(a))})},d=ci(o,a);if(!kC(d))return l();let c=t==="rawMarkup",x=ru(o,a),u=d.content??(c?"full":s.content),h={band:x,content:x==="content"?"content":u,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!c,siteContent:s.content};return Ke(ms,{own:()=>Ke(AR,{value:{background:h.band,content:h.content},children:LD(r,a,t,h,o)}),followed:l})}}var Uq={all:[fi,{not:{context:"runsEdgeToEdge",is:!0}}]},MD={name:"sectionWidth",applies:(e,o,t)=>_d(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:$(js,o)==="rawMarkup"}),a=zr(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=zr(o)?$D(o,e,n,[Da]):n;Lt(e,{heldByANode:Qp}),zr(o)&&Lt(e,{runsEdgeToEdge:(l,i)=>tu(el(l.props??{},gw(i.appState,l.props?.id)?.inCopy!==!1))}),e.fields=Ro(s,[Fo.background,Fo.content],zr(o)?Uq:fi)},draw(e,o){zq(e,o)}};function jq(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 Gq=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),HD={name:"containedWidth",applies:(e,o,t)=>Gq.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=$D(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let l=a?a(n,s):s.fields,i=Vm(n?.props??{},"page"),d=c=>jq(c,i);return l&&typeof l.then=="function"?l.then(d):d(l)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=Vm(t,"page");return o({...t,contained:r!=="full"})}}},Kq={not:{context:"inHeroGroupRow",is:!0}},WD={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=Ro(o.fields??{},["align"],Kq),Lt(o,{inHeroGroupRow:(t,r)=>{let a=jt(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Pn("HeroGroup",a.props?.direction)==="row"}})}};function qq(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var Vq={any:[]},Yq={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},Xq={not:{context:"widthCappedByParent",is:!0}};function $D(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return Ro(t,["_gWidth",...r],Vq);if(qq(t)){let a=(n,s)=>CR(s.appState?.data?.content,n.props?.id,au(FD()));return Lt(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),Ro(t,r,Yq)}return Lt(o,{widthCappedByParent:(a,n)=>"parent"in n?ew(n.parent):dR({props:a.props??{}},n)}),Ro(t,r,Xq)}var Jq=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"]),zD={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(Jq.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},Zq=new Set(["HeroSlide","HeroGroup"]),UD={name:"blockGroups",applies:(e,o,t)=>Zq.has(e)||!o.isSection(e)&&Cp in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as Yg}from"react/jsx-runtime";var Qq=new Set(["Flex","Grid"]),jD=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),e9=(e,o)=>e.fields?.[o]?.ownPictures===!0,o9=["blockCount","blockIds"],t9=new WeakMap,r9=new WeakMap;function a9(e,o){let t=o?r9:t9,r=t.get(e);if(r)return r;let a=e,n=s=>Yg(ER,{children:Yg(Jd,{ownPictures:o,children:Yg(a,{...s})})});Object.assign(n,e);for(let s of o9)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var GD={name:"slotsStartAfresh",applies:(e,o,t)=>!Qq.has(e)&&typeof t?.render=="function"&&jD(t).length>0,draw(e){let o=jD(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=a9(s,e9(e,n)))}return t(a)}}};var n9=new Set(["Form","Stats","Logos"]);function KD(){return[...n9]}function Xg(e,o,t=[]){let r=new Set(e),a=eb.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!lf.includes(d)),s=new Set([...o,...od,...KD()]),l=a.filter(d=>!s.has(d)),i=new Set([...a,...t]);return{isSection:d=>i.has(d)&&!gd(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:l}}var s9=[GD,lD,ZR,aR,nR,V0,KR,OD,qR,X0,ID,bD,iR,MD,HD,WD,Ug,E0,cD,ED,hD,SD,vD,PD,RR,_D,SR,zD,UD,YR,VR,jR,QR,nD,wD,eD,rR,NR];function qD(e,o,t){let r=o;for(let a of s9)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as Jg}from"react/jsx-runtime";import{ClockIcon as l9,DurationIcon as i9}from"efficient-easel/icons";import{MOTION_TIMING as VD}from"efficient-shell/format";import{useSelectedHost as d9}from"efficient-easel/easel";function hs(e){let{min:o,max:t,step:r,default:a}=VD[e].duration;return Tr("Duration",Jg(i9,{}),o,t,r,a,"s")}function Is(e){let{min:o,max:t,step:r,default:a}=VD[e].delay;return Tr("Delay",Jg(l9,{}),o,t,r,a,"s")}function gs(e,o){let t=e.render,r=a=>{let n=d9();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>Jg(r,{...a})}}function du({readsSpeed:e}){return gs(hs("loop"),(o,t)=>wp({loopDuration:o,speed:e?t?.speed:void 0}))}function fu(){return gs(Is("loop"),e=>SA({loopDelay:e}))}import{jsx as lo}from"react/jsx-runtime";import{DirectionDownIcon as f9,DirectionIcon as c9,DirectionLeftIcon as p9,DirectionRightIcon as u9,DirectionUpIcon as m9,EntranceBounceIcon as x9,EntranceFadeIcon as h9,EntranceFlipIcon as I9,EntranceGlideIcon as g9,EntranceRevealIcon as y9,EntranceRiseIcon as S9,EntranceScaleIcon as b9,EntranceSpinIcon as w9,NoSymbolIcon as C9}from"efficient-easel/icons";import{NoControlMark as k9,noControlField as v9}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as P9,group as T9}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as O9,ENTRANCE_FROM_DEFAULT as XD,ENTRANCE_KINDS as JD,ENTRANCE_KINDS_WITH_FROM as E9,entranceAttrs as _9,playEntrance as A9,readEntrance as F9}from"efficient-shell/format";var B9={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},L9={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},R9={top:()=>lo(f9,{}),bottom:()=>lo(m9,{}),left:()=>lo(u9,{}),right:()=>lo(p9,{})},ZD="Entrance",Qg=JD.filter(e=>e!=="none"),QD=e=>({any:[{field:Go.kind,in:e},{all:[{field:Go.kind,set:!1},{field:qs,in:e}]}]}),YD=(e,o)=>Jt(Qo.slice(0,Qo.indexOf(e)+1).reverse().map(t=>et(Go.kind,t)),t=>({field:t,set:!0}),t=>t===Go.kind?QD(o):{field:t,in:o}),D9={any:[QD(Qg),...Qo.slice(1).map(e=>({field:et(Go.kind,e),in:Qg}))]},N9=Qo.flatMap(e=>[[[et(Go.from,e)],YD(e,E9)],[[et(Go.duration,e),et(Go.delay,e)],YD(e,Qg)]]),M9={none:()=>lo(C9,{}),fade:()=>lo(h9,{}),rise:()=>lo(S9,{}),scale:()=>lo(b9,{}),glide:()=>lo(g9,{}),bounce:()=>lo(x9,{}),flip:()=>lo(I9,{}),reveal:()=>lo(y9,{}),spin:()=>lo(w9,{})},eN="data-entrance-tile";function H9({kind:e}){let{attrs:o}=_9(F9(e,XD));return lo("span",{className:"sf-entrance-stage",[eN]:e,children:lo("i",{...o,children:M9[e]()})})}var W9=(e,o)=>{let t=e.querySelector(`[${eN}="${o}"] > i`);t&&A9(t)},$9="Effect",z9=()=>Tf(Go.kind,{label:ZD,tileWord:$9,values:JD,fallback:"none",word:e=>B9[e],picture:e=>lo(H9,{kind:e}),read:(e,o)=>Vs(e,o).kind,preview:W9}),Zg=(e,o)=>Pf(Go[e],o,(t,r)=>Vs(t,r)[e]),U9=O9.map(e=>({label:L9[e],value:e,picture:R9[e]()}));function Ot(){let e={[Cp]:T9(ZD,{dot:D9}),...z9(),[qs]:v9({type:"custom",render:()=>lo(k9,{})},"always"),_cEntrance:P9(),...Zg("from",Tn("From",lo(c9,{}),U9,XD)),...Zg("duration",hs("entrance")),...Zg("delay",Is("entrance"))};return Jo(e,N9)}import{jsx as ut}from"react/jsx-runtime";import{EntranceRevealIcon as j9,NoSymbolIcon as G9,PercentIcon as oN,ScrollFadeInIcon as K9,ScrollFadeOutIcon as q9,ScrollMoveDownIcon as V9,ScrollMoveUpIcon as Y9,ScrollParallaxIcon as X9,ScrollZoomInIcon as J9,ScrollZoomOutIcon as Z9,ZoomInIcon as Q9}from"efficient-easel/icons";import{customize as eV,group as oV}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as rN,SCROLL_EFFECTS_WITH_ZOOM as tV,SCROLL_END as rV,SCROLL_START as aV,SCROLL_ZOOM as nV}from"efficient-shell/format";var aN="Scroll",sV={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"},lV={none:()=>ut(G9,{}),"zoom-in":()=>ut(J9,{}),"zoom-out":()=>ut(Z9,{}),"fade-in":()=>ut(K9,{}),"fade-out":()=>ut(q9,{}),"move-up":()=>ut(Y9,{}),"move-down":()=>ut(V9,{}),reveal:()=>ut(j9,{}),parallax:()=>ut(X9,{})},iV="Effect",nN=rN.filter(e=>e!=="none"),tN=(e,o)=>Jt(Qo.slice(0,Qo.indexOf(e)+1).reverse().map(t=>et(ho.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),dV={any:Qo.map(e=>({field:et(ho.effect,e),in:nN}))},fV=Qo.flatMap(e=>[[[et(ho.zoom,e)],tN(e,tV)],[[et(ho.start,e),et(ho.end,e)],tN(e,nN)]]),cV=()=>Tf(ho.effect,{label:aN,tileWord:iV,values:rN,fallback:"none",word:e=>sV[e],picture:e=>lV[e](),read:(e,o)=>nr(e,o).effect}),ey=(e,o,t,r,a)=>Pf(e,Tr(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>nr(n,s)[o]);function Ma(){let e={[Wn]:oV(aN,{dot:dV}),...cV(),[Ic]:eV(),...ey(ho.zoom,"zoom","Zoom",ut(Q9,{}),nV),...ey(ho.start,"start","Start",ut(oN,{}),aV),...ey(ho.end,"end","End",ut(oN,{}),rV)};return Jo(e,fV)}import{jsx as Bo}from"react/jsx-runtime";import{AccentIcon as pV,ContrastIcon as uV,EyeIcon as mV,ExpandIcon as xV,FinishIcon as hV,ImagesIcon as IV,NoSymbolIcon as lN,HoverLiftIcon as gV,HoverNextImageIcon as yV,HoverRotateIcon as SV,HoverZoomIcon as iN,OpacityIcon as bV}from"efficient-easel/icons";import{customize as wV,describedAs as dN,group as CV}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as fN}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as yo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as kV,noControlField as vV}from"efficient-easel/screen/lib/document/panel-no-control-mark";var cu=e=>yo("desktop",CV("Hover",{dot:e})),cN=()=>yo("desktop",wV()),PV="What this does when a shopper points at it, or taps it on a phone.",TV="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",OV="What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",EV="What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",_V="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",AV="What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.",FV="Which of the product's pictures the card shows.",BV="Same finish shows the photos of the finish the card shows, else the first group.",LV="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",RV={none:()=>Bo(lN,{}),nextImage:()=>Bo(yV,{}),rotate:()=>Bo(SV,{}),zoom:()=>Bo(iN,{}),lift:()=>Bo(gV,{}),mono:()=>Bo(uV,{})};function oy(e,o){let t=fN({label:f("Hover effect"),options:e.map(r=>({value:r,label:f(hm[r]),picture:RV[r]()})),fallback:o});return dN(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:hm[r]}))})}function pN(){return{[gt]:cu({field:Xo,in:Sm.filter(e=>e!=="none")}),[Xo]:yo("desktop",{...oy(Sm,"none"),description:PV})}}function uN(e){let o=Eb(e),t=id(),r=OP(Sb);return{[gt]:cu({any:[o,t]}),[Ge.kind]:yo("desktop",{...gs(oy(Ib,e),(a,n)=>Tb(n??{},e)),description:AV}),...ty(t),[gb]:vV({type:"custom",render:()=>Bo(kV,{})},"always"),_cHover:cN(),[Ge.angle]:yo("desktop",Qe(gs(r,a=>Ob(a)),o)),[Ge.duration]:yo("desktop",Qe(hs("hover"),o)),[Ge.delay]:yo("desktop",Qe(Is("hover"),o))}}function ty(e){let o=PP("Type",Bo(IV,{}),bb.map(a=>({value:a,label:wb[a]})),ld.kind),t=Tn("Group",Bo(hV,{}),Cb.map(a=>({value:a,label:kb[a]})),ld.group),r=Tn("Covers",Bo(xV,{}),vb.map(a=>({value:a,label:Pb[a]})),ld.cover);return{[Ge.mediaKind]:yo("desktop",Qe({...o,description:FV},e)),[Ge.mediaGroup]:yo("desktop",Qe({...t,description:BV},e)),[Ge.cover]:yo("desktop",Qe({...r,description:LV},e))}}function ry(e,o="",t=vm.includes(o)){let r=Pm(e),a=Db(e);return{[gt]:cu(r),[Ge.kind]:ay(_b,e,TV),...vm.includes(o)?ty(id()):{},_cHover:cN(),...t?mN():{},[Ge.duration]:yo("desktop",Qe(hs("hover"),a)),[Ge.delay]:yo("desktop",Qe(Is("hover"),a))}}function mN(e=!1){let o=a=>e?a:Qe(a,Rb()),t=Tr("Zoom",Bo(iN,{}),nn.min,nn.max,nn.step,nn.min,nn.unit),r=Tr("Darken on hover",Bo(bV,{}),Cn.min,Cn.max,Cn.step,Cn.fallback,Cn.unit);return{[wm.zoom]:yo("desktop",o(t)),[wm.darken]:yo("desktop",o(r))}}function ay(e,o,t){let r=yo("desktop",{...gs(oy(e,o),a=>Bb({[Xo]:a},o,e)),description:t});return Object.assign(r,{[xN]:o})}var xN="sfPictureResting",sN=new WeakMap;function z_e(e,o,t){let r=e[Ge.kind],a=r?.[xN];if(!r||!a)return e;let n=o.props?.[Xo]==="nextImage",s=n?null:wd(t.appState,o.props?.id);if(!n&&!sd.includes(String(s?.type??"")))return e;let l=sN.get(e);return l||(l={...e,[Ge.kind]:ay(bm,a,OV)},sN.set(e,l)),l}var DV="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.",NV={none:()=>Bo(lN,{}),[Im]:()=>Bo(pV,{})},U_e=yo("desktop",{...dN(fN({label:f("Hover effect"),options:gm.map(e=>({value:e,label:f(ym[e]),picture:NV[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:gm.map(e=>({value:e,label:ym[e]}))}),description:DV}),MV=yo("desktop",{...Tn("Show",Bo(mV,{}),[{value:km,label:"Always"},{value:Cm,label:"On card hover"}],km),description:_V});function hN(){let e={any:[Pm("none"),{field:Xo,is:Im},{field:Jr,is:Cm}]},{[gt]:o,[Ge.kind]:t,...r}=ry("none","",!0);return{[gt]:cu(e),[Ge.kind]:t,[Jr]:MV,...ty(id()),...r,...mN(!0)}}var j_e=ay(bm,"none",EV);import{jsx as bi}from"react/jsx-runtime";import{isNodeList as zV}from"efficient-easel/data";import{useEasel as UV}from"efficient-easel/easel";import{hiddenInView as jV,hiddenKeyOf as ny,hidePatch as GV,slotChildName as KV,slotChildRowName as qV}from"efficient-easel/draw";var HV=new Set(["BookingBox","SubmitBox"]);function WV(e){return typeof e=="string"&&HV.has(e)}var $V=DP(WV,IT);function pu(e,o){return $V(e)||JP(o)}var uu=(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 VV}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as YV}from"efficient-easel/screen/lib/document/panel-no-control-mark";var IN="notCardOfTemplate",gN={not:{context:IN,is:!0}},sy={any:[fd,gN]},f1e={[IN]:(e,o)=>{let t=$m(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function mu(e){let o=e.props?.content;return zV(o)?o:[]}var hu=(e,o)=>jV(e.props??{},o),XV=(e,o)=>e.props?.[ny(o)]!==void 0;function yN(e,o=()=>!1,t="desktop"){return mu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:mu(r).length&&!hu(r,t)?yN(r,o,t):o(r)?[]:[r])}function JV(e,o,t,r="desktop"){let a=yN(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 c=2;for(;n.has(`${i} ${c}`);)c+=1;d=`${i} ${c}`,n.add(d)}return s.add(i),{id:l.props.id,label:d,shown:!hu(l,r)}})}function xu(e,o,t){let r=a=>t==="desktop"?hu(a,t):XV(a,t);return mu(e).flatMap(a=>r(a)?o(a)?[]:[a,...xu(a,o,t)]:xu(a,o,t))}function ZV(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===ny("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 ly(e,o,t){let r=mu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let i=ZV(s.props,t(s.props));i!==s.props&&(l={...s,props:i})}else l=ly(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function SN(e,o,t,r="desktop"){return ly(e,o,a=>r==="desktop"&&hu({props:a},r)===!t?{}:GV(a,r,!t))}function QV(e,o,t){return t==="desktop"?SN(e,o,!0,t):ly(e,o,()=>({[ny(t)]:void 0}))}function eY(e,o,t,r,a,n){return KV(e).trim()?t(e):pw({ownerType:o,owner:r,fields:a,slot:n},Rt(e.props))?.label??t(e)}var oY="This page is read-only.";function tY({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:i="desktop"}){let d=u=>qV(u,n,an,void 0,uu),c=u=>pu(u.type,u),x=JV(e,u=>eY(u,o,d,t,r,a),c,i);return x.length?bi(_x,{parts:x,changed:xu(e,c,i).length>0,shown:u=>x.find(h=>h.id===u)?.shown??!0,disabledReason:l?oY:void 0,onPress:(u,h)=>s(I=>SN(I,u,h,i)),onReset:()=>s(u=>xu(u,c,i).reduce((h,I)=>QV(h,String(I.props.id),i),u))}):bi(YV,{})}function rY(){try{let e=UV(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=$m(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:yw(e.appState,r),slot:Iw(e.appState,t.props?.id)??void 0}}catch{return null}}function aY({readOnly:e,view:o}){let t=rY(),r=ll();return t?bi(tY,{...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}})}}):bi(_x,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function c1e(e){return Qe(VV(e,{type:"custom",render:({readOnly:o})=>bi(aY,{readOnly:o,view:e})}),gN)}import{customize as mY}from"efficient-easel/screen/lib/document/box-fields";import{jsx as iy}from"react/jsx-runtime";import{DirectionIcon as nY,LoopMarqueeIcon as sY,NoSymbolIcon as lY}from"efficient-easel/icons";import{customize as iY,describedAs as dY,group as fY}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as cY}from"efficient-easel/screen/lib/document/effect-tiles";function dy(){return pT("Direction",TI,ni,"A marquee cannot run diagonally, so the corners are not answers.",iy(nY,{}),cT)}var fy=e=>fY("Loop",e?{dot:e}:void 0),pY={none:()=>iy(lY,{}),scroll:()=>iy(sY,{})};function uY(){let e=cY({label:f("Loop"),options:bp.map(({value:o,label:t})=>({value:o,label:f(t),picture:pY[o]()})),fallback:PI});return dY(e,{type:"select",label:"Loop",options:bp.map(({value:o,label:t})=>({value:o,label:t}))})}function bN(){return{[ss]:fy(ai),loop:uY(),_cLoop:iY(),scrollDirection:Qe(dy(),ai),loopDuration:Qe(du({readsSpeed:!1}),ai),loopDelay:Qe(fu(),ai)}}var wN={field:Jr,set:!0};function xY(){let e=hN(),o=[gt,Xo],t=Ro(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Jr),fd),r=Ro(t,[Jr],wN),a=Ro(r,[Xo],sy);return Ro(a,[gt],{any:[sy,wN]})}function Iu(e,o=""){switch(e){case"section":case"block":return{...Ot(),...Ma()};case"box":return{...Ot(),...Ma(),...bN(),...xY()};case"picture":return{...Ot(),...Ma(),...ry(Fb(o),o)};case"textPart":return{...Ot(),...Ma(),...pN()};case"cards":return{...Ot(),...Ma(),...uN(yb(o))};case"marquee":return{...Ot(),...Ma(),[ss]:fy(),_cLoop:mY(),scrollDirection:dy(),loopDuration:du({readsSpeed:!0}),loopDelay:fu()}}}import{blockSizeFieldSet as sX}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as lX}from"efficient-easel/screen/lib/document/box-fields";import{jsx as CN,Fragment as hY,jsxs as IY}from"react/jsx-runtime";import{useSelectedHost as kN}from"efficient-easel/easel";import{VIEW_TIERS as gY,viewKeyAt as yY}from"efficient-easel/draw";var vN=e=>gY.find(o=>Object.values(ko).some(t=>yY(t,o)===e))??"desktop";function SY(e,o,t){let r=e(o),a=vN(t);return{top:$d(r,"top",a),bottom:$d(r,"bottom",a)}}var bY=e=>e.startsWith(ko.bottom)?"bottom":"top";function wY(e,o,t,r){let a=bY(r);return o(t,$d(e(t),a,vN(r)),a)}function CY({frameOf:e,note:o,rowKey:t}){let r=kN()?.values,a=r?wY(e,o,r,t):null;return a?CN("p",{className:"es-field-hint",children:a}):null}var kY=new Set(bn());function PN(e,o,t){let r=Or({tablet:!0,siteSide:!0,...t?{label:t}:{},useFallback:a=>{let n=kN()?.values;return n?SY(e,n,a.name):{top:0,bottom:0}}});return Object.fromEntries(Object.entries(r).map(([a,n])=>{let s=n.render;return!kY.has(a)||typeof s!="function"?[a,n]:[a,{...n,render:l=>IY(hY,{children:[s(l),CN(CY,{frameOf:e,note:o,rowKey:a})]})}]}))}import{group as vY}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as PY,deviceMetaOf as EN}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as py,SETTINGS_BUCKETS as TY}from"efficient-easel/panel";import{BUCKET_KEY as So,DESIGN_GROUP_KEY as ys}from"efficient-easel/screen/lib/document/field-buckets";var wi=TY;var OY="Editor only \u2014 not shown live",uy={"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",[OY]:"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"},_N={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},AN={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function TN(e,o,t){let r=`${e}.${o}`;return $(AN,r)??$(_N,r)??$(uy,t)}function EY(e){return e==="Animation"?[So.Animation]:[So.Design,ys[e]]}function gu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=EN(r),n=tr(a?a.inner:r),s=n?$(uy,n.label):void 0;if(s)for(let l of EY(s))o.includes(l)||o.push(l)}return o}var Y1e=[...gu(Or({tablet:!0,siteSide:!0}),_n("full"),An(),Fn(),il()),...Object.keys(Or({tablet:!0,siteSide:!0})),...Object.keys(_n("full")),...Object.keys(An()),...Object.keys(Fn()),...Object.keys(il())],X1e=[...gu(On()),...Object.keys(On())],J1e=[...gu(En()),...Object.keys(En())],Z1e=[...gu(Ot()),...Object.keys(Ot())],Q1e=Object.keys(xT()),eAe=Object.keys(hT()),_Y={"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)"},FN={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Advanced:["Advanced"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},cy={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Or({tablet:!0,siteSide:!0}),..._n("full"),...An(),...Fn(),...On(),...En(),...Ot()};for(let o of Object.keys(cy)){let t=tr(e[o]),r=t?$(uy,t.label):void 0;if(!t||t.level!==2||!r||!FN[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 AY=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),FY=new Map([[So.Design,"Content"],[So.Animation,"Animation"],...py.map(e=>[ys[e],e])]);function BY(e){let o=`${e}.`;return Object.keys(_Y).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function LY(e,o){let t=EN(e),r=vY(o);return t?PY(t.tier,r):r}function RY(e,o){let t=tr(o);return t?e==="Content"||e==="Animation"?rT(o,t.label):aT(o):o}function ON(e){return e==="Design"?py:["Animation"]}function yu(e,o){let t=[],r=new Set(BY(o)),a=new Set,n=!1,s=null;for(let[u,h]of Object.entries(e)){let I=tr(h);if(AY.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 C=FY.get(u);if(C!==void 0){if(I?.level!==1)throw new Error(`${o}.${u}: that key is reserved for the ${C} 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:C,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([u,h]);continue}if(r.has(u)||xo(cy,u)){let O=TN(o,u,I.label);if(I.level!==2||!O||!FN[O].includes(I.label))throw new Error(`${o}.${u}: ${r.has(u)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${I.level} "${I.label}" header in the ${O??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(u)&&a.add(u),t.push(s={place:O,entries:[],uniform:xo(cy,u)});continue}let P=TN(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 ${[...py,"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:LY(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,u])=>tr(u)).map(([u])=>u));for(let[u,h]of[["BLOCK_KEY_GROUP",AN],["KEY_GROUP",_N]]){let I=Object.keys(h).filter(C=>C.startsWith(`${o}.`)).filter(C=>!l.has(C.slice(o.length+1))&&!r.has(C.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)),c=wi.filter(u=>ON(u).some(h=>d.has(h))),x={};for(let u of c){x[So[u]]=kf(u,u===c[0]?c:null);for(let h of ON(u)){if(!d.has(h))continue;let I=t.filter(O=>O.place===h),C=I.findIndex(O=>O.adopted);C>0&&I.unshift(...I.splice(C,1));let P=I.filter(O=>O.uniform);if(P.length>0){let O=I.filter(v=>!v.uniform),F=I[0]?.adopted?1:0;I.splice(0,I.length,...O.slice(0,F),...P,...O.slice(F))}u==="Design"&&(x[ys[h]]=vx(h));for(let O of I)for(let[F,v]of O.entries)x[F]=RY(h,v)}}return x}function BN(e){return So.Design in e?e:{[So.Design]:kf("Design",null),[ys.Content]:vx("Content"),...e}}function LN(e){return wi.some(o=>So[o]in e)}function Su(e){let o=wi.filter(r=>So[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[So[r]]=kf(r,r===o[0]?o:null);return t}import{jsx as bu}from"react/jsx-runtime";import{WidthIcon as DY}from"efficient-easel/icons";import{SettingsField as NY,SettingsSwitch as MY}from"efficient-easel/panel";import{group as HY,iconOf as WY,sharedStyleKinds as $Y}from"efficient-easel/screen/lib/document/box-fields";var zY="Gutter";function UY({value:e,onChange:o,labelId:t}){let r=au(sl()),a=pi({[Da]:e})??r,n=s=>o(s?r?void 0:Ag:_g);return bu(NY,{label:f(zY),labelId:t,icon:WY(bu(DY,{})),action:bu(MY,{checked:a,onChange:n,ariaLabelledBy:t})})}function RN(){return $Y({_gWidth:HY(vf),[Da]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>bu(UY,{value:e,onChange:o,labelId:`${t??r??Da}-label`})}})}import{jsx as xy}from"react/jsx-runtime";import{group as jY,sharedStyleKinds as NN}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as GY}from"efficient-easel/screen/lib/document/device-fields";var KY="Content cannot be wider than the background.",my=e=>f(e==="content"?"Content width":"Full width");function MN(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=Po(),n=ye(o)??xn.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var qY={read:hn},VY={read:hn,drawsFullOnItsOwn:!0},YY={read:CC,clearOnContent:{fullWidth:void 0}};function XY({source:e}){let o=e.read(Ox()),t=ll(),r=MN(e);return xy(yT,{value:o.background??r.background,changed:o.background!==null,detail:my(r.background),onChange:a=>t(vC(a)),onReset:()=>t(Xm("background"))})}function JY({source:e}){let o=e.read(Ox()),t=ll(),r=i=>t({...i,...e.clearOnContent}),a=MN(e),n=(o.background??a.background)==="content",s=nT({row:Ym,label:gT,grid:{min:xn.min,max:n?a.px:xn.max,step:xn.step},valueKey:Fo.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),l=o.content??a.content;return xy(ST,{mode:n&&l==="full"?"content":l,px:o.contentMax??a.px,max:n?a.px:xn.max,changed:o.content!==null,detail:a.content==="full"?my("full"):`${my("content")} ${a.px}px`,fullClosed:n,hint:n?KY:void 0,onMode:i=>r(PC(i)),onPx:i=>r({...TC(i),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(Xm("content"))})}var DN=(e,o)=>GY("desktop",{type:"custom",render:()=>xy(e,{source:o})}),HN=e=>({[Fo.background]:DN(XY,e),[Fo.content]:DN(JY,e),[Fo.contentMax]:Tx(),...TP(Ym,Fo.content)});function WN(e){let o=e?.drawsFullOnItsOwn?VY:qY;return NN({_gWidth:jY(vf),...HN(o)})}function wAe(){return NN({...HN(YY),fullWidth:Tx()})}import{deviceMetaOf as zN}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as ZY}from"efficient-easel/screen/lib/document/panel-no-control-mark";function QY(e,o){let t=zN(o),r=t?t.inner:o;if(tr(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=ZY(r);return a==="always"?!1:a==="authored-copy"?Lk(e):!0}function $N(e){let o=zN(e),t=o?o.inner:e,r=tr(t);return r?tT(t)?0:r.level:null}function eX(e,o,t){return t?o===0&&e===So.Design||o===1&&e===ys.Content:!1}var oX=new WeakMap,tX=new WeakMap;function UN(e,o="section"){let t=o==="page"?tX:oX,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([x,u])=>({key:x,field:u,level:$N(u),draws:QY(x,u)||o==="page"&&$N(u)===null&&ix(x,u)})),n=o==="section"&&a.some(x=>ix(x.key,x.field)),s=new Set;for(let x=0;x<a.length;x++){let u=a[x].level;if(u===null)continue;let h=0;for(let I=x+1;I<a.length;I++){let C=a[I].level;if(C!==null&&C<=u)break;a[I].draws&&(h+=1)}h===0&&!eX(a[x].key,u,n)&&s.add(a[x].key)}let l=n&&LN(e),i=l&&!(So.Design in e);if(!s.size&&!i)return t.set(e,e),e;let d={};for(let x of a)s.has(x.key)||(d[x.key]=x.field);let c=Su(l?BN(d):d);return t.set(e,c),c}import{isShown as rX,showWhenFactReaders as aX}from"efficient-shell/format";var jN=new WeakMap,nX=new Set(Object.values(So));function GN(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=aX(r,o,t),l=hP(t,{...s,parentOffersPositions:()=>{let I=jt(t.appState,n);return I===void 0?void 0:zC(I,n)},parentTileSlot:()=>{let I=jt(t.appState,n);return I===void 0?void 0:UC(I,n)},heroGroupDepth:()=>Bd(t.appState?.data,typeof n=="string"?n:"")}),i=[];for(let[I,C]of Object.entries(e)){let P=Zb(C);!P||xP(P,"device")||rX(P,a,l)||i.push(I)}if(i.length===0)return e;let d=jN.get(e);d||jN.set(e,d=new Map);let c=i.join("\0"),x=d.get(c);if(x)return x;let u=new Set(i),h={};for(let[I,C]of Object.entries(e))u.has(I)||(h[I]=C);return i.some(I=>nX.has(I))&&(h=Su(h)),d.set(c,h),h}var KN={spacingFields:dT,sidesPaddingFields:Or,ownPaddingFields:PN,sectionShapeFields:En,cardShapeFields:sT,cellWidthFields:lT,widthField:_n,boxGutterFields:RN,sectionOwnWidthFields:WN,heightFields:An,anchorFields:Fn,customCssFields:fT,stickFields:il,sectionThemeFields:On,animationTabFields:Iu,blockSizeFields:({tablet:e,...o}={})=>sX({...o,shorten:!0,say:vP,lengthUnits:gf,...e?{phone:lX}:{}}),assignSectionGroups:yu,dropEmptyHeadings:UN,rowsShownForNode:GN,SECTION_THEME_FOLLOW_LABEL:VP,BLOCK_THEME_FOLLOW_LABEL:YP,PartAnchors:vL};function wu(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(c=>!i.has(c));d.length>0&&(l={...s,disallow:[...s.disallow??[],...d]})}else{let i=wu(s.arrayFields,o,t),d=wu(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 iX(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=qD(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 dX(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];fX(e,o,a);for(let n of a){let s=n.components.filter(gd);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(!yd(n))continue;let s=Id(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 hy(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(...hy(e,o,s.arrayFields,`${l}.`),...hy(e,o,s.objectFields,`${l}.`))}return a}function fX(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${pn}". Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`)};for(let n of t)n.components.includes(pn)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let l=hy(pn,n,s?.fields);l.length>0&&r(`the slot ${l.map(i=>`"${i}"`).join(", ")}, whose allow list`)}}function qN(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=Cg(o);if(dX(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([x])=>x).filter(x=>x in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(x=>`"${x}"`).join(", ")}, which ${s.length===1?"is already a block":"are already blocks"} of the editor. Give a host's block a type of its own.`);let l=x=>a?a.offers(x):!0,i=Object.keys(n).filter(x=>!l(x)),d={};for(let[x,u]of Object.entries(n)){let h=a?wu(u?.fields,l,i):u?.fields;d[x]=h===u?.fields?u:{...u,fields:h}}if(t.length>0){let x=new Set(t.map(([I])=>I)),u=e.categories?.structure?.components??[],h={...Xg(Object.keys(n),u,x),isHostBlock:I=>x.has(I),inspector:KN};for(let[I,C]of t){let P=iX(I,C,h),O=wu(P.fields,l,i);d[I]=O===P.fields?P:{...P,fields:O}}}let c=[];for(let[x,u]of Object.entries(e.categories??{})){let h=u?.components??[],I=h.filter(l);I.length===h.length?c.push([x,u]):I.length>0&&c.push([x,{...u,components:I}])}for(let x of r){let u=x.components.filter(P=>P in d&&l(P));if(u.length===0)continue;let h=c.find(([P])=>P===x.key);if(h){let[,P]=h,O=new Set(P.components??[]);h[1]={...P,components:[...P.components??[],...u.filter(F=>!O.has(F))]};continue}let I=[x.key,{title:x.title,components:u}],C=x.before?c.findIndex(([P])=>P===x.before):-1;C===-1?c.push(I):c.splice(C,0,I)}return{...e,components:d,categories:Object.fromEntries(c)}}function VN(){let e=uX();return cX(()=>qN(pX(e),un(e)),[e])}import{jsx as yy,Fragment as BX,jsxs as LX}from"react/jsx-runtime";import{useContext as RX,useEffect as DX,useMemo as Ou,useRef as mM}from"react";import{EaselCanvas as NX,repeatCopyAt as MX,useEasel as HX}from"efficient-easel/easel";import{jsx as Iy}from"react/jsx-runtime";import{useEffect as IX,useState as gX}from"react";import{Banner as yX}from"efficient-shell/ui";import{useSyncExternalStore as mX}from"react";import{useScreenDocument as xX}from"efficient-easel/screen/components/ScreenDocumentContext";var hX=()=>()=>{},YN=()=>null;function Cu(e){return mX(e?e.subscribe:hX,e?e.state:YN,e?e.state:YN)}function ku(){let{adapter:e}=xX();return e?.pinnedChrome}var vu={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."},SX={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."},bX=vu.load,wX=vu.lock,CX=vu.conflict,kX=vu.save;function vX(e){if(!e)return null;if(e.loadFailed)return f(bX);if(e.lockHolder)return f(wX,{name:e.lockHolder.name||f("Somebody else")});if(e.conflict)return f(CX);if(e.saveFailed)return f(kX);let o=e.sections?.[0];if(!o)return null;let t=o.title||f("A shared section"),r=o.holder?.name||f("Somebody else");return f(SX[o.problem],{section:t,name:r})}function PX({report:e}){let o=vX(Cu(e)),[t,r]=gX(null);return IX(()=>{o||r(null)},[o]),!o||t===o?null:Iy("aside",{className:"sf-canvas-notice",children:Iy(yX,{tone:"warning",onDismiss:()=>r(o),children:o})})}function XN(){return Iy(PX,{report:ku()})}import{jsx as Tu}from"react/jsx-runtime";import{useState as pM}from"react";import{Banner as OX,Button as EX}from"efficient-shell/ui";import{UndoIcon as _X}from"efficient-shell/icons/efficient";import{useScreenDocument as AX}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as QN}from"react";var Ci=!1,Ss=null,gy=new Set;function vi(){for(let e of gy)e()}function eM(e){return gy.add(e),()=>{gy.delete(e)}}function oM(){Ci||(Ci=!0,vi())}function tM(){Ci&&(Ci=!1,vi())}function JN(){return Ci}function rM(){return QN(eM,JN,JN)}function ZN(){return Ss}function Pu(){Ss&&(Ss=null,vi())}function aM(){return QN(eM,ZN,ZN)}var ki=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function nM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new ki;let n=await e.restore(o,t);return bf(n.liveState),a(),n}async function sM({access:e,version:o,page:t,...r}){let a=await nM(e,o.id,t?{page:t.id}:{},r);Ss={title:TX(o,t??null),undo:a.undo},vi()}async function lM({access:e,...o}){let t=Ss?.undo;t&&(await nM(e,t,{},o),Ss=null,vi())}function iM(e){return e.name?e.name:e.kind==="draft_before_restore"?f("Draft before restore"):f("Version {n}",{n:e.number})}function TX(e,o){return e.kind==="draft_before_restore"?f("Your drafts from before the restore are back"):o?f("{page} from version {n} is now your draft",{page:o.name,n:e.number}):f("Version {n} is now your draft",{n:e.number})}function dM(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Dt("{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(jm(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function fM(e){return e.change==="take_down"?f("{name} (taken down)",{name:e.name}):e.name}function cM(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=jm(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return f("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return f("{day}, {time}",{day:n,time:a})}import{useSettledAction as FX}from"efficient-easel/easel";function uM(){let e=aM(),{adapter:o,flushSave:t,reloadFromServer:r}=AX(),a=o.siteVersions,[n,s]=pM(!1),[l,i]=pM(!1),d=async()=>{if(!(!a||n)){s(!0),i(!1);try{await lM({access:a,flushSave:t,reload:r})}catch{i(!0)}finally{s(!1)}}},c=FX({onPress:()=>{d()},busy:n});return e?Tu("aside",{className:"sf-canvas-notice",children:Tu(OX,{tone:l?"danger":"info",title:e.title,onDismiss:Pu,action:a&&e.undo?Tu(EX,{variant:"secondary",size:"sm",leftIcon:Tu(_X,{}),loading:c.busy,disabled:c.busy,onClick:c.onPress,children:f("Undo")}):void 0,children:l?f("Undo did not work. Nothing changed. Try again."):f("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as WX,REPEAT_ATTRIBUTE as Sy,REPEAT_INDEX_ATTRIBUTE as by}from"efficient-easel/draw";import{usePreviewParts as $X}from"efficient-easel/draw/client";import{ScreenDocumentContext as zX}from"efficient-easel/screen/components/ScreenDocumentContext";function xM(e){let{mirrorHostStyles:o}=dl(),t=DT(),r=wy(),a=sl(),n=RX(zX),s=HP(n?.docId??null),l=HX(P=>P.appState.data),i=WP(s,l),d=JSON.stringify(i),c=Ou(()=>i,[d]),x=Ou(()=>({...e.metadata??t??{},...r,...c}),[e.metadata,t,r,c]);DX(()=>(Gg(a),()=>Gg(null)),[a]);let u=mM(null),h=UX(u),{onDocument:I}=e,C=P=>{u.current=P,I?.(P)};return LX(BX,{children:[yy(uM,{}),yy(XN,{}),yy(NX,{...e,onDocument:C,typing:h,metadata:x,height:"fill",mirrorStyles:o,frameWrapper:$f})]})}function wy(){let{sectionBackgroundWidth:e,themeFromDocument:o}=Po(),t=sl();return Ou(()=>OC(o?null:e,t),[e,t,o])}function UX(e){let o=Af(),t=$X(),r=mM({parts:t});return r.current={parts:t},Ou(()=>{let a=(n,s)=>{let l=Lf(n,o),i,d=null,c=s??(l?null:Vx(null,e.current,n)),x=!l&&c?MX(c):null,u=x?WX(n):null;if(x&&c&&u?.propKey){l=Df({...x,nodeId:u.nodeId,key:u.propKey},o),i=u.propKey;let P=c.closest(`[${Sy}][${by}]`),O=`[${Sy}="${Rf(P?.getAttribute(Sy)??"")}"][${by}="${Rf(P?.getAttribute(by)??"")}"]`;d=()=>(c.ownerDocument??e.current)?.querySelector(O)??null}if(!l)return null;let h=c,I=()=>(h=Vx(h,d?d():h?.ownerDocument??e.current,n),h),C=I();return C?{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?Qd(ef(C)):void 0,colorNameOf:Zd}}:null};return{at:n=>{let s=n.closest(`[${$e}]`),l=s?.getAttribute($e);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>r0(n,o),copyValue:n=>t0(n,o),onChange:n=>{if(!n.typing){Yx(null);return}let s=n.element.closest(`[${$e}]`)?.getAttribute($e)??null;Yx(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}function gM({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=YX(),{adapter:n,siteId:s,templateId:l}=VX(),i=Ao(a).pages,d=!l&&!!(i.starters&&i.createFromStarter),c=KX(()=>s?{siteId:s}:{},[s]),x=VN(),u=wy(),[h,I]=ky(null),[C,P]=ky(cs),[O,F]=ky(null),v=qX(null),y=GX();jX(()=>{if(!e)return;if(P(cs),!d){I([]);return}let w=!0;return I(null),i.starters(c).then(T=>w&&I(T),()=>{w&&(I([]),IM.error(f("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{w=!1}},[e,d,i,c]);let b=async(w,T)=>{if(!O){F(w);try{r(await T())}catch{IM.error(f("Couldn\u2019t add the page \u2014 please retry."))}finally{F(null)}}},E=()=>{if(!n.createPage)return;let w=f("New page");b("blank",()=>n.createPage({slug:hM(w,t),title:w,layout:{}}))},B=w=>{b(w.id,()=>i.createFromStarter(w.id,{title:w.title,slug:hM(w.slug,t),...c}))},R=h??[],k=ML(R),L=HL(C,R),g=Cy("nav",{"aria-label":f("Pages"),className:"sf-add-page-nav",children:[Vo(vy,{label:f("All pages"),active:C===cs,onClick:()=>P(cs)}),k.map(w=>Vo(vy,{label:f(w.label),active:C===w.key,onClick:()=>P(w.key)},w.key)),yg(R).length>0?Vo("div",{className:"sf-add-page-group",children:Vo(vy,{label:f("From your template"),active:C===Yp,onClick:()=>P(Yp)})}):null]});return Vo(JX,{open:e,onClose:o,size:"full",title:f("Add page"),initialFocus:v,children:Vo(rJ,{sidebarTop:Cy(tJ,{onClick:E,disabled:!n.createPage||O!==null,children:[Vo(XX,{"aria-hidden":!0}),f("Blank page")]}),sidebar:g,children:Cy("div",{ref:v,tabIndex:-1,role:"region","aria-labelledby":y,className:"sf-add-page",children:[Vo(aJ,{id:y,level:2,as:"h3",children:f("Pages for your site")}),Vo(oJ,{tone:"default",className:"sf-add-page-sub",children:f("Choose a page and change the text, images and more.")}),h===null?Vo(eJ,{label:f("Loading\u2026")}):L.length===0?Vo(ZX,{title:f("No pages to start from"),description:f("Start with a blank page, then add sections.")}):Vo(QX,{cols:1,smCols:2,lgCols:3,gap:8,children:L.map(w=>Vo(zL,{starter:w,config:x,metadata:u,busy:O===w.id,onAdd:B},w.id))})]})})})}import{jsx as nJ}from"react/jsx-runtime";import{createContext as sJ,useContext as yM,useEffect as lJ,useRef as SM}from"react";var Py=sJ(null);function mBe({open:e,children:o}){let t=SM(!!e);return nJ(Py.Provider,{value:t,children:o})}function bM(){let e=yM(Py);return()=>e?.current?(e.current=!1,!0):!1}function wM(e){let o=yM(Py),t=SM(e);t.current=e,lJ(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var OM="sf-editor-pages-collapsed-groups";function vJ(){let e=Oy(),{siteId:o,templateId:t}=EM(),r=Ao(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function _M({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=Oy().chrome?.pageRows,n=wJ(),{adapter:s,capabilities:l,ready:i,currentSlug:d}=EM(),c=Bn(),{rows:x,reload:u,setRows:h,getRows:I}=pl(),[C,P]=Ha(""),[O,F]=Ha(!1),[v,y]=Ha(null),[b,E]=Ha(!1),B=!!Ao(Oy()).pages.createFromStarter,R=vJ(),[k,L]=Ha(null),[g,w]=Ha(()=>{if(typeof window>"u")return new Set;try{let W=window.localStorage.getItem(OM);return new Set(W?JSON.parse(W):[])}catch{return new Set}});CM(()=>{try{window.localStorage.setItem(OM,JSON.stringify([...g]))}catch{}},[g]);let T=W=>w(he=>{let Ie=new Set(he);return Ie.has(W)?Ie.delete(W):Ie.add(W),Ie}),S=kM(()=>pP(x??[]),[x]),N=C.trim().toLowerCase(),H=W=>!N||W.toLowerCase().includes(N),q=W=>N?!0:!g.has(W),z=kM(()=>new Set((x??[]).map(W=>W.slug)),[x]),ne=()=>{if(l.pageCreationInAdminForm&&!B){n.send("storefront-editor:new-page");return}y(null),E(!0)},ge=bM();CM(()=>{ge()&&ne()},[]);let J=l.hasSiteSettings&&!!s.createPage,me=async()=>{if(!(!i||O||!s.createPage)){F(!0),y(null);try{let W=await s.createPage(ZP(f("New popup"),z));await u(),e(W.slug)}catch{y(f("Couldn\u2019t add the popup \u2014 please retry."))}finally{F(!1)}}},oe=fJ(null),[xe,ce]=Ha(null),qe=()=>{if(!J)return ne();if(xe)return ce(null);let W=oe.current?.getBoundingClientRect();W&&ce({top:W.bottom+6,right:Math.max(8,window.innerWidth-W.right)})},ro=W=>{let he=x??[],Ie=s.deletePage;if(!i||O||!Ie||he.length<=1)return;let Ze=he.findIndex(uo=>uo.id===W.id),Eo=he.filter(uo=>uo.id!==W.id),Re=W.slug===d;Hf(W.id,!0),h(Eo),y(null),Re&&Eo[0]&&e(Eo[0].slug);let Ue=()=>{Hf(W.id,!1);let uo=I()??[];if(uo.some(Kt=>Kt.id===W.id))return;let _o=[...uo];_o.splice(Math.max(0,Math.min(Ze,_o.length)),0,W),h(_o)};PM.undoable(f("Deleted \u201C{name}\u201D",{name:W.label}),{actionLabel:f("Undo"),commit:async uo=>{await Ie(W.id,uo),Hf(W.id,!1)},undo:()=>{Ue(),Re&&e(W.slug)},onFail:()=>{Ue(),PM.error(f("Couldn\u2019t delete the page \u2014 please retry."))}})},wo=W=>n.send("storefront-editor:open-page",{slug:W}),Je=W=>{if(!H(W.label))return null;let he=!t&&W.slug===d,Ie=l.canDeletePagesInline&&(x??[]).length>1,Ze=hf(W),Eo=cP(W),Re=[...Ze?[{label:f("Dynamic"),tone:"info"}]:[],...Eo?[{label:f("Lightbox"),tone:"success"}]:[],...W.draft?[{label:f("draft"),tone:"draft"}]:[]],Ue=Re.length>0?Re:void 0,uo=!!R&&CJ(W),_o=uo||l.pageCreationInAdminForm||Ie?Eu(iJ,{children:[uo&&ve(_u,{kind:"plain",label:f("Duplicate \u201C{name}\u201D",{name:W.label}),disabled:O,onClick:()=>L(W),children:ve(gJ,{size:13})}),l.pageCreationInAdminForm&&ve(_u,{kind:"plain",label:f("Page settings for \u201C{name}\u201D",{name:W.label}),onClick:()=>wo(W.slug),children:ve(SJ,{size:13})}),Ie&&ve(_u,{kind:"delete",label:f("Delete \u201C{name}\u201D",{name:W.label}),disabled:O,onClick:()=>ro(W),children:ve(Ty,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ve(TM,{icon:ve(yJ,{size:14}),name:W.label,selected:he,onSelect:()=>e(W.slug),badge:Ue,actions:_o,rowProps:{"data-page-slug":W.slug}},W.id)},co=(W,he,Ie)=>{let Ze=Ie.filter(Boolean);if(Ze.length===0)return null;let Eo=q(W);return Eu(dJ,{children:[ve(hJ,{count:Ze.length,countLabel:Dt("{n} page","{n} pages",Ze.length),expanded:Eo,onToggle:()=>T(W),children:he}),Eo&&Ze]},W)},po=(a?.rows??[]).filter(W=>H(W.label)).map(W=>{let he=t===W.key;return ve(TM,{icon:W.icon,name:W.label,selected:he,onSelect:()=>r(W.key),badge:{label:f("Preview"),tone:"warning"},actions:ve(_u,{kind:"plain",label:f("Open the {name} in a new tab",{name:W.label}),onClick:()=>window.open(W.href,"_blank","noopener,noreferrer"),children:ve(Ty,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":W.key}},W.key)}),le=l.hasSiteSettings&&!!a,Le=(()=>{if(x===null)return null;let W=[],he=!1;for(let Ie of S){le&&!he&&Ie.key.startsWith("system:")&&(W.push(co("shop",a.title,po)),he=!0);let Ze=Ie.key===fP||Ie.label===dP?f(Ie.label):Ie.label;W.push(co(Ie.key,Ze,Ie.rows.map(Je)))}return le&&!he&&W.push(co("shop",a.title,po)),W})();return Eu("div",{className:"sf-pages",children:[ve(cJ,{icon:ve(bJ,{}),title:f("Pages"),context:c,actions:ve(pJ,{buttonRef:oe,label:J?f("Add"):f("New page"),hasPopup:J?"menu":void 0,expanded:J?xe!==null:void 0,onClick:qe,children:ve(IJ,{size:15})})}),xe&&ve(mJ,{portal:!0,style:{top:xe.top,right:xe.right},onClose:()=>ce(null),children:Eu("div",{role:"menu","aria-label":f("Add"),children:[ve(vM,{role:"menuitem",onClick:()=>{ce(null),ne()},children:f("Page")}),ve(vM,{role:"menuitem",disabled:O,onClick:()=>{ce(null),me()},children:f("Popup")})]})}),ve("div",{className:"sf-pages-find",children:ve(uJ,{type:"search",leftIcon:ve(Ty,{name:"search",size:14,rounded:!0}),placeholder:f("Search all pages\u2026"),value:C,onChange:W=>P(W.target.value),"aria-label":f("Search all pages")})}),v&&!b&&ve("div",{className:"sf-note sf-note--error",role:"alert",children:v}),Le===null?ve("div",{className:"sf-note",children:f("Loading\u2026")}):Le.some(Boolean)?ve(xJ,{ariaLabel:f("Pages"),className:"sf-scroll",children:Le}):ve("div",{className:"sf-note",children:C.trim()?f("No pages match your search"):f("No pages yet. Add one with + above.")}),R&&k&&ve(kJ,{source:{title:k.label,slug:k.slug},taken:z,host:ff(),duplicate:W=>R(k,W),onClose:()=>L(null),onDuplicated:W=>{L(null),u(),e(W.slug)}},k.id),b?ve(gM,{open:!0,onClose:()=>E(!1),takenSlugs:z,onCreated:W=>{E(!1),u(),e(W.slug)}}):null]})}import{jsx as BM}from"react/jsx-runtime";import{createContext as EJ,useCallback as _J,useContext as AJ,useMemo as FJ,useState as BJ}from"react";import{CanvasChromeContext as LJ}from"efficient-easel/easel";import{useSelectHandler as RJ}from"efficient-easel/draw/client";import{parseHexColor as PJ,parseOption as TJ}from"efficient-shell/format";var Au=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],bs=Au[0],OJ=["right","left"],Wa="right";function Fu(e){return Au.includes(e??"")?e:bs}function AM(e){return TJ(OJ,Wa,e)}function FM(e){return e&&PJ(e)===e.toLowerCase()?e.toLowerCase():""}var LM="chat",Bu={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Wa,launcherLabel:"",showOnPhones:!0};function KBe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:FM(e.launcherColor),launcherIcon:e.launcherIcon?Fu(e.launcherIcon):"",launcherPosition:AM(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var RM=EJ({chat:Bu,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function qBe({children:e,chat:o=Bu,onChatChange:t}){let[r,a]=BJ(!1),n=_J(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=RJ(),i=FJ(()=>({selected:()=>r?LM:null,select:d=>d===LM&&s()}),[r,s]);return BM(RM.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:BM(LJ.Provider,{value:i,children:e})})}var Lu=()=>AJ(RM);import{jsx as Ey}from"react/jsx-runtime";import{DesktopIcon as DJ,PhoneIcon as NJ,TabletIcon as MJ}from"efficient-easel/icons";import{VIEW_TIERS as HJ,VIEW_TIER_LABEL as WJ}from"efficient-easel/draw";var $J={desktop:Ey(DJ,{}),tablet:Ey(MJ,{}),mobile:Ey(NJ,{})},DM=HJ.map(e=>({id:e,get label(){return f(WJ[e])},icon:$J[e]}));import{PreviewDeviceContext as Qre}from"efficient-easel/draw/client";import{jsx as zJ}from"react/jsx-runtime";import{createContext as UJ,useCallback as NM,useContext as jJ,useMemo as GJ,useRef as KJ}from"react";var qJ=Object.fromEntries(Of.map(e=>[e,{value:"",error:null}])),MM=UJ({links:wT,rows:qJ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function rLe({children:e,value:o}){let t=KJ(()=>{}),r=NM(()=>t.current(),[]),a=NM(s=>{t.current=s},[]),n=GJ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return zJ(MM.Provider,{value:n,children:e})}var Pi=()=>jJ(MM);import{jsx as VJ}from"react/jsx-runtime";import{createContext as YJ,useContext as XJ,useMemo as JJ,useState as ZJ}from"react";var HM=YJ(null);function lLe({children:e}){let[o,t]=ZJ(null),r=JJ(()=>({surface:o,setSurface:t}),[o]);return VJ(HM.Provider,{value:r,children:e})}function WM(){return XJ(HM)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as QJ}from"efficient-easel/draw/client";var{Provider:fLe,useSelection:Ru}=QJ("selectedHeroPart");import{jsx as we,jsxs as Gr,Fragment as oH}from"react/jsx-runtime";import{useEasel as Poe,useRootFields as Toe}from"efficient-easel/easel";import{EmptyState as Ooe}from"efficient-shell/ui";function $M({kind:e,pageName:o}){return{name:o?.trim()||f("This page"),kindLabel:hf({kind:e})?f("Template"):f("Page")}}import{headWords as nH,InspectorHead as Eoe,InspectorIconButton as tH}from"efficient-easel/chrome";import{DuplicateIcon as _oe,TrashIcon as Aoe}from"efficient-easel/icons";import{panelFieldsOf as Foe}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as D,Fragment as pe,jsxs as ue}from"react/jsx-runtime";import{BlockBannerIcon as tZ,BlockBoxIcon as rZ,BlockButtonIcon as aZ,BlockDividerIcon as UM,BlockFooterIcon as jM,BlockHeadingIcon as nZ,BlockProductIcon as sZ,BlockSocialIcon as lZ,BlockTextIcon as iZ,CardPaymentIcon as dZ,ChatIcon as fZ,AccountIcon as cZ,GlobeIcon as pZ,GridIcon as uZ,ImageIcon as Ay,MapIcon as mZ,MediaIcon as xZ,PageIcon as hZ}from"efficient-easel/icons";import{jsx as _y,Fragment as eZ,jsxs as oZ}from"react/jsx-runtime";var zM=oZ(eZ,{children:[_y("circle",{cx:"9",cy:"20",r:"1.3"}),_y("circle",{cx:"18",cy:"20",r:"1.3"}),_y("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 IZ={header:ue(pe,{children:[D("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),D("path",{d:"M3 9.5h18"})]}),social:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{children:[D("circle",{cx:"11",cy:"11",r:"6"}),D("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:zM,CountrySwitchBlock:ue(pe,{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:ue(pe,{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:ue(pe,{children:[D("path",{d:"M3 9h18"}),D("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:ue(pe,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{children:[D("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),D("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{children:[D("path",{d:"M3.5 20h17"}),D("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:ue(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{children:[D("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),D("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:ue(pe,{children:[D("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),D("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:ue(pe,{children:[D("path",{d:"M4 8.5h4.5M11 8.5h9"}),D("path",{d:"M4 14.5h16"})]}),HeroGroup:ue(pe,{children:[D("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),D("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:ue(pe,{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(pe,{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:ue(pe,{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:ue(pe,{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:ue(pe,{children:[D("path",{d:"M4 7h2M4 12h2M4 17h2"}),D("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:ue(pe,{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"})},gZ=D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),yZ={footer:jM,Footer:jM,Divider:UM,FooterDivider:UM,Banner:tZ,Flex:rZ,FooterSocial:lZ,FooterPayment:dZ,page:hZ,website:pZ,AccountBlock:cZ,chat:fZ,Heading:nZ,Text:iZ,ImageBlock:Ay,ButtonBlock:aZ,LocationMap:mZ,Grid:uZ,ProductRef:sZ,heroMedia:xZ,heroImage:Ay,heroImage2:Ay},SZ={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function $a({type:e,size:o=16,className:t}){let r=SZ[e]??e,a=yZ[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:IZ[r]??gZ})}import{PanelHideButton as rH}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Boe}from"efficient-easel/screen/lib/session-context";import{jsx as be,jsxs as Ti,Fragment as bZ}from"react/jsx-runtime";import{useEffect as wZ,useId as GM,useState as CZ}from"react";import{IconPicker as kZ}from"efficient-shell/ui";import{SettingsDefaultReset as vZ,SettingsField as Oi,SettingsSegmented as PZ,SettingsSwitch as KM}from"efficient-easel/panel";import{ButtonIcon as TZ,ButtonIconIcon as OZ,EyeIcon as EZ,PhoneIcon as _Z,PlacementIcon as AZ,TypeIcon as FZ}from"efficient-easel/icons";var BZ="Chat with us",LZ="We usually reply within a few minutes",RZ="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Du({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=CZ(o);wZ(()=>l(o),[o]);let i=()=>{s!==o&&r(s)};return be(Oi,{label:e,icon:be(FZ,{}),changed:o!=="",action:be(Ei,{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 Ei({label:e,changed:o,onReset:t}){return be(vZ,{words:Gw()?.panel,label:e,changed:o,onReset:t})}function DZ({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=GM();return be(Oi,{label:e,labelId:s,icon:o,changed:t!==r,action:Ti("span",{className:"inline-flex items-center gap-2",children:[be(KM,{checked:t,onChange:a,ariaLabelledBy:s}),be(Ei,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var NZ=Au.map(e=>({value:e,icon:zP(e)}));function MZ(){let{theme:e}=Po(),o=Zt(e).themes[0];return vw(o)??o?.accent??""}function qM(){let{chat:e,setChat:o}=Lu(),t=GM(),r=MZ(),a=e.launcherIcon?Fu(e.launcherIcon):bs;return Ti(bZ,{children:[be(Oi,{label:f("Show the chat bubble"),labelId:t,icon:be(EZ,{}),changed:!e.enabled,action:Ti("span",{className:"inline-flex items-center gap-2",children:[be(KM,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),be(Ei,{label:f("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?f("The floating chat bubble shows in the corner of every page."):f("The chat bubble is hidden across the whole site.")}),Ti(Px,{title:f("Look"),children:[be(jP,{label:f("Button color"),icon:be(TZ,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:f("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),be(Oi,{label:f("Icon"),icon:be(OZ,{}),value:be(EP,{value:a}),changed:a!==bs,action:be(Ei,{label:f("Icon"),changed:a!==bs,onReset:()=>o({launcherIcon:""})}),children:be(kZ,{label:f("Icon"),value:a,options:NZ,onChange:n=>o({launcherIcon:n===bs?"":n})})}),be(Oi,{label:f("Position"),icon:be(AZ,{}),changed:e.launcherPosition!==Wa,action:be(Ei,{label:f("Position"),changed:e.launcherPosition!==Wa,onReset:()=>o({launcherPosition:Wa})}),children:be(PZ,{options:[{label:f("Right"),id:"right"},{label:f("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:f("Position"),onChange:n=>o({launcherPosition:n})})}),be(Du,{label:f("Label"),value:e.launcherLabel,placeholder:f("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:f("Shows when a visitor points at the button")}),be(DZ,{label:f("Show on phones"),icon:be(_Z,{}),checked:e.showOnPhones,fallback:Bu.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Ti(Px,{title:f("Wording"),children:[be(Du,{label:f("Title"),value:e.title,placeholder:BZ,onCommit:n=>o({title:n})}),be(Du,{label:f("Subtitle"),value:e.subtitle,placeholder:LZ,onCommit:n=>o({subtitle:n})}),be(Du,{label:f("Greeting message"),value:e.greeting,placeholder:RZ,onCommit:n=>o({greeting:n}),multiline:!0}),be("p",{className:"es-field-hint",children:f("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as za,Fragment as Qy,jsxs as ZM}from"react/jsx-runtime";import{useEffect as mQ,useId as XM,useState as JM}from"react";import{SettingsField as xQ}from"efficient-easel/panel";import{jsx as nQ}from"react/jsx-runtime";import{forwardRef as HZ,createElement as Fy}from"react";var VM={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var se=(e,o,t,r)=>{let a=HZ(({color:n="currentColor",size:s=24,stroke:l=2,title:i,className:d,children:c,...x},u)=>Fy("svg",{ref:u,...VM[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,d].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...x},[i&&Fy("title",{key:"svg-title"},i),...r.map(([h,I])=>Fy(h,I)),...Array.isArray(c)?c:[c]]));return a.displayName=`${t}`,a};var WZ=[["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"}]],By=se("outline","brand-facebook","BrandFacebook",WZ);var $Z=[["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"}]],Ly=se("outline","brand-instagram","BrandInstagram",$Z);var zZ=[["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"}]],Ry=se("outline","brand-line","BrandLine",zZ);var UZ=[["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"}]],Dy=se("outline","brand-linkedin","BrandLinkedin",UZ);var jZ=[["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"}]],Ny=se("outline","brand-pinterest","BrandPinterest",jZ);var GZ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],My=se("outline","brand-telegram","BrandTelegram",GZ);var KZ=[["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"}]],Hy=se("outline","brand-tiktok","BrandTiktok",KZ);var qZ=[["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"}]],Wy=se("outline","brand-wechat","BrandWechat",qZ);var VZ=[["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"}]],$y=se("outline","brand-whatsapp","BrandWhatsapp",VZ);var YZ=[["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"}]],zy=se("outline","brand-x","BrandX",YZ);var XZ=[["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"}]],Uy=se("outline","brand-youtube","BrandYoutube",XZ);var JZ=[["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"}]],jy=se("filled","brand-facebook-filled","BrandFacebookFilled",JZ);var ZZ=[["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"}]],Gy=se("filled","brand-instagram-filled","BrandInstagramFilled",ZZ);var QZ=[["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"}]],Ky=se("filled","brand-linkedin-filled","BrandLinkedinFilled",QZ);var eQ=[["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"}]],qy=se("filled","brand-pinterest-filled","BrandPinterestFilled",eQ);var oQ=[["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"}]],Vy=se("filled","brand-tiktok-filled","BrandTiktokFilled",oQ);var tQ=[["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"}]],Yy=se("filled","brand-whatsapp-filled","BrandWhatsappFilled",tQ);var rQ=[["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"}]],Xy=se("filled","brand-x-filled","BrandXFilled",rQ);var aQ=[["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"}]],Jy=se("filled","brand-youtube-filled","BrandYoutubeFilled",aQ);var qRe="outline",Nu={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},sQ={},Zy={fillRule:"evenodd"},lQ=[["path",{...Nu,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...Zy,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],iQ=[["path",{...Nu,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",{...sQ,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("")}]],dQ=[["path",{...Nu,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",{...Nu,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",{...Zy,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",{...Zy,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("")}]],fQ=se("filled","brand-telegram-filled","BrandTelegramFilled",lQ),cQ=se("filled","brand-line-filled","BrandLineFilled",iQ),pQ=se("filled","brand-wechat-filled","BrandWechatFilled",dQ),uQ={instagram:{outline:Ly,solid:Gy},facebook:{outline:By,solid:jy},tiktok:{outline:Hy,solid:Vy},youtube:{outline:Uy,solid:Jy},x:{outline:zy,solid:Xy},linkedin:{outline:Dy,solid:Ky},pinterest:{outline:Ny,solid:qy},whatsapp:{outline:$y,solid:Yy},telegram:{outline:My,solid:fQ},line:{outline:Ry,solid:cQ},wechat:{outline:Wy,solid:pQ}};function YM({platform:e,iconStyle:o,size:t}){let r=uQ[e][o];return nQ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var hQ={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 IQ({platform:e}){let{rows:o,saveLink:t}=Pi(),{value:r,error:a}=o[e],[n,s]=JM(r),[l,i]=JM(!1),d=XM(),c=XM();mQ(()=>s(r),[r]);let x=async()=>{if(n.trim()===r){n!==r&&s(r);return}i(!0),await t(e,n),i(!1)},u=bT[e];return ZM(Qy,{children:[za(xQ,{label:f(u),htmlFor:d,icon:za(YM,{platform:e,iconStyle:"outline",size:18}),children:za("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:hQ[e],onChange:h=>s(h.target.value),onBlur:()=>{x()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?c:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&za("p",{id:c,className:"sf-note sf-note--error",role:"alert",children:a})]})}function QM({unavailable:e}){let{canSave:o}=Pi();return!o&&e?za(Qy,{children:e}):ZM(Qy,{children:[za("p",{className:"es-field-hint",children:f("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Of.map(t=>za(IQ,{platform:t},t))]})}import{jsx as Ga,Fragment as UQ,jsxs as jQ}from"react/jsx-runtime";import{useId as GQ,useMemo as KQ}from"react";import{useEasel as qQ}from"efficient-easel/easel";import{SettingsField as VQ,SettingsSwitch as YQ}from"efficient-easel/panel";import{EyeIcon as XQ}from"efficient-easel/icons";import{fieldShownInView as JQ}from"efficient-easel/fields";import{usePreviewDevice as ZQ}from"efficient-easel/draw/client";import{ROOT_ZONE as QQ}from"efficient-easel/draw";import{jsx as ja,Fragment as SQ}from"react/jsx-runtime";import{createContext as bQ,useContext as wQ,useLayoutEffect as CQ,useMemo as o2,useRef as kQ,useState as t2}from"react";import{useEasel as r2,useSelectedFields as vQ}from"efficient-easel/easel";import{fieldShownInView as PQ,Inspector as TQ,LEAD_BAND_KEY as OQ,planFields as a2}from"efficient-easel/fields";function e2({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 gQ}from"react/jsx-runtime";import{EmptyState as yQ}from"efficient-shell/ui";function Ua(){return gQ(yQ,{variant:"none",icon:!1,message:f("These settings apply to every view.")})}import{usePreviewDevice as EQ}from"efficient-easel/draw/client";import{deviceField as _Q}from"efficient-easel/screen/lib/document/device-fields";var AQ="Text",eS=new Map,Mu=new Set,FQ=Object.fromEntries(wi.map(e=>{let o=oT[e];return[e,ja(o,{},e)]})),n2=bQ(null),BQ={_partBody:_Q("each",{type:"custom",render:()=>ja(LQ,{})})};function LQ(){return ja(SQ,{children:wQ(n2)})}function Et({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:i,values:d,readOnly:c,onChange:x}=vQ(),u=o2(()=>a?{...d,...a.values}:d,[d,a?.values]),h=(J,me)=>a?.keys.has(J)?a.onChange(J,me):x(J,me),I=EQ(),{appState:C,config:P}=r2(J=>J),O=mP(I,P,C.data.content??[],C.ui.itemSelector),F=n===void 0?KE(i,t):BQ,v=o2(()=>{let J=r?.length?Object.fromEntries(Object.entries(F).filter(([me])=>!r.includes(me))):F;return a?{...J,...a.fields}:J},[F,r,a?.fields]),y=gx(v,u,O),[b,E]=t2(()=>new Set(Mu)),B=PQ({},I),R={key:OQ,title:AQ},k=r2(J=>J.selectedItem)!==null,L=a?.part??t??"",g=`${l}:${L}:${String(I)}`,[w,T]=t2(()=>({tab:eS.get(g)})),S=`${l}:${L}`,N=kQ(null),H={...O,node:u},q=a2(y,{values:u,context:H}).buckets,z=e2({allTabs:k,remembered:eS.get(g),inherited:N.current?.panel===S?N.current.tab:w.tab,buckets:q,hasText:B&&o>0}),ne=!B&&!q.includes(z)&&(a2(gx(v,u,{...O,device:"desktop"}),{values:u,context:{...H,device:"desktop"}}).buckets.includes(z)||z==="Design"&&o>0);CQ(()=>{N.current={panel:S,tab:z}});let ge=z==="Design";return ja(n2.Provider,{value:n??null,children:ja(iT.Provider,{value:a?u:null,children:ja(TQ,{fields:y,values:u,onChange:h,readOnly:c,allTabs:k,showWhenContext:H,context:{itemWord:s},tab:z,onTab:J=>{eS.set(g,J),T({tab:J})},tabIcons:FQ,idPrefix:l,ariaLabel:f("Section settings"),lead:ge?e:null,leadFold:R,closedFolds:b,onFold:(J,me)=>{me?Mu.delete(J):Mu.add(J),E(new Set(Mu))},children:ne&&ja(Ua,{})})})})}import{useMemo as RQ}from"react";import{useEasel as DQ}from"efficient-easel/easel";import{useSectionOps as NQ}from"efficient-easel/screen/lib/document/use-section-ops";var s2=new Map,MQ=e=>{let o=s2.get(e);return o||s2.set(e,o=yu(Iu(e),`part:${e}`)),o},HQ=new Set(Sh);function ws(e,o,t){let{getItemById:r,getSelectorForId:a}=DQ(c=>c),n=NQ(),s=r(e)?.props??{},l=Ia(s,o),i=JSON.stringify(l),d=RQ(()=>Object.fromEntries(Sh.map(c=>[c,l[c]])),[i]);return{part:o,fields:MQ(t),values:d,keys:HQ,onChange:(c,x)=>{let u=a(e),h=r(e);if(!u||!h)return;let I=bO(h.props??{},o,c,x);n.replaceComponent(u.zone,u.index,{...h,props:I})}}}import{Fragment as WQ,createElement as $Q}from"react";import{deviceField as oS}from"efficient-easel/screen/lib/document/device-fields";var bo=()=>({type:"custom",render:()=>$Q(WQ)});var tS={words:bo(),sourceNote:bo(),style:bo(),font:bo(),italic:bo(),fontSize:oS("each",bo()),lineHeight:bo(),letterSpacing:bo(),paragraphSpacing:bo(),padding:bo(),align:oS("each",bo()),letterCase:bo(),fixedSizeHint:oS("each",bo()),regionNote:bo(),regionStyle:bo()},zQ=["fontSize","align"];function l2(e){return zQ.includes(e)}var i2={showTicker:bo(),items:bo()};function d2({heroId:e}){let{appState:o,dispatch:t}=qQ(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=KQ(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:F_.map(I=>({text:I}))},[n]),i=GQ(),d=ZQ(),c=h=>JQ(i2[h],d),x=ws(e,B_,"block");if(!n)return Ga("p",{className:"sf-note",children:f("This ticker\u2019s hero is no longer on the page.")});let u=h=>t({type:"replace",destinationZone:QQ,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return Ga(Et,{motion:x,body:jQ(UQ,{children:[!c("showTicker")&&!c("items")&&Ga(Ua,{}),c("showTicker")&&Ga(VQ,{label:f("Show ticker"),labelId:i,icon:Ga(XQ,{}),action:Ga(YQ,{checked:s,onChange:h=>u({showTicker:h}),ariaLabelledBy:i})}),c("items")&&Ga(uT,{label:Ex.label,icon:Ex.icon,items:l,placeholder:"item",onChange:h=>u({tickerItems:h}),markup:!0})]})})}import{jsx as Z,Fragment as Fi,jsxs as mt}from"react/jsx-runtime";import{useContext as uee,useEffect as rS,useRef as mee,useState as S2}from"react";import{FieldSelect as xee,InspectorField as hee,fieldShownInView as Iee}from"efficient-easel/fields";import{InertHint as E2,SettingsField as gee}from"efficient-easel/panel";import{InspectorUpLevel as ju}from"efficient-easel/chrome";import{StylesIcon as yee,TypeIcon as See}from"efficient-easel/icons";import{useEasel as bee}from"efficient-easel/easel";import{TextPartPanel as b2}from"efficient-easel/copy";import{Button as wee,IconButton as Cee,Tooltip as kee}from"efficient-shell/ui";import{jsx as p2,jsxs as eee}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as oee}from"efficient-easel/strings";import{COPY_CELLS as Cs,COPY_CELL_LENGTHS as f2,CopyBox as tee,lengthCellUnits as ree}from"efficient-easel/copy";import{PaddingYIcon as aee}from"efficient-easel/icons";import{onDesktopWords as nee}from"efficient-easel/screen/lib/document/box-fields";var c2=oee.copy.cells,see={kind:"spacing"},lee=["left","center","right","justify"];function Hu(e,o,t,r="desktop"){let a=pv(e),n=mv(r),s=e[n]??e.size??o.sizePx,l=xv(e,r),i=(c,x,u,h,I)=>{let C=tl[u];return ree({preset:c,row:x,table:gf,unit:e[C],value:e[u],tier:r,styleValue:h,label:f(I),onPick:(P,O)=>t({[C]:P??null,[u]:O??null}),onChange:(P,O)=>t({...O?{[C]:O.unit??null}:{},[u]:P??null})})},d={key:"padding",name:f("Padding"),icon:p2(aee,{}),unit:"px",step:iv,shiftStep:10,min:sv,max:lv};return[{...Cs.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:c=>t({[n]:c??null}),...i(Cs.fontSize,f2.fontSize,n,Math.round(o.sizePx),c2.fontSize),...n==="size"?{}:{reset:{detail:l?nee(c=>f(c),`${l.px}px`,l.view):void 0}}},{...Cs.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:c=>t(c===void 0?{lineHeight:null,line:null}:{lineHeight:c})},{...Cs.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:c=>t(c===void 0?{letterSpacing:null,letter:null}:{letterSpacing:c})},{...Cs.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:c=>t({paragraphSpacing:c??null}),...i(Cs.paragraphSpacing,f2.paragraphSpacing,"paragraphSpacing",0,c2.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:c=>t({padding:c??null}),...i(d,see,"padding",o.paddingPx,"Padding")}]}function u2({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:i,placeholder:d,ariaLabel:c,head:x,typedOnCanvas:u=!1}){let h=Hu(n,s,l),I=qx(r,t);return eee("div",{className:"sf-part-textbox",children:[x,p2(tee,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:c,rules:ad,tools:I,barShows:u?"focus":"always",colors:r?i:[],colorNameOf:Zd,align:a?{value:n.align??s.align,allow:lee,onChange:C=>l({align:C})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:C=>l({case:C||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as w2}from"efficient-easel/draw/client";import{jsx as Wu,Fragment as iee,jsxs as dee}from"react/jsx-runtime";import{Button as m2,Dialog as fee}from"efficient-shell/ui";function x2({styleName:e,onCancel:o,onConfirm:t}){return Wu(fee,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:f("Update {style}?",{style:e}),footer:dee(iee,{children:[Wu(m2,{variant:"secondary",onClick:o,children:f("Cancel")}),Wu(m2,{variant:"primary",onClick:t,children:f("Update style")})]}),children:Wu("p",{children:f("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 vee}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as Pee}from"efficient-easel/draw/client";import{shownTier as zu}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as Tee,viewKeyAt as Oee}from"efficient-easel/draw";import{useSectionOps as Eee}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as _ee}from"efficient-easel/screen/lib/host";function cee(e){let o=new Set([...Object.keys($(Fk,e)??{}),...$(Bk,e)??[]]);for(let[t,r]of Object.entries($(Rk,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var pee={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},h2={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},I2="Open",g2={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function ks(e){let o=e?.source?.slug;return mo(o)}function _i(e){return $(pee,e)??null}function y2(e,o){let t=_i(e);return t&&cee(e).includes(o)?t:null}function $u(e){let o=e?.menu?.id;return mo(o)}function aS(e){return e?f(e):null}function C2(e){return e.kind==="role"?xm[e.role]:e.kind==="custom"?"Custom":null}function Aee(e){let o=sb(e.role);return o?{kind:"role",role:o}:null}function Fee(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 Uu(e,o,t,r){return Aee(vr(e,o))??Fee(t,r)}function Bee(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function k2(e){return[{value:Ai,label:f("No style"),description:f("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?rd(o.values.font)?.label:void 0}))]}var Ai="";function Lee({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:Ai,a=[{label:f("No style"),value:Ai},...nb.map(n=>({label:f(xm[n]),value:n}))];return Z(xee,{ariaLabel:f("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===Ai?null:n),renderOption:n=>n.value===Ai?mt(Fi,{children:[Z("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),Z("span",{className:"sf-part-style-aside","aria-hidden":"true",children:f("Section\u2019s own")})]}):Z("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>Z("span",{style:{fontFamily:o?.fontKey?`var(${rd(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:aS(C2(e))}),valueText:n=>aS(C2(e))??n?.label??""})}var _2=["regionNote","regionStyle"],Ree=Object.keys(tS).filter(e=>!_2.includes(e));function A2(e,o){return!e.some(o)}function Dee({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=mt(Fi,{children:[t,r,a]});return mt("div",{className:"sf-part-panel",children:[Z(ju,{inline:!0,name:f(e),onSelect:o}),n?n(s):s]})}function Gu({source:e,slug:o,menuId:t}){let r=_ee(),a=g2[e],n=!a.needsSlug||!!o;return Z("div",{className:"sf-note sf-note--source",children:mt(E2,{children:[f(h2[e]),n?mt(Fi,{children:[" ",Z(wee,{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:f(I2)})]}):null]})})}var v2=4,Nee=120;function P2(e){return f("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:f(e.label).toLowerCase()})}function T2({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:i,sizedStyle:d,ownLook:c}){let x=e.follows;return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:f(e.label)})}),i("regionNote")&&!c&&Z("p",{children:o?f("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:f(x),px:Math.round(o)}):f("Its size follows Styles \u25B8 {follows}.",{follows:f(x)})}),d?mt(Fi,{children:[d,i("regionStyle")&&Z("p",{className:"es-field-hint",children:P2(e)})]}):a?i("regionStyle")?Z(Fi,{children:Z(gee,{label:f("Style"),icon:Z(yee,{}),hint:P2(e),children:Z(Lee,{face:t,base:r,onPick:a})})}):null:i("regionNote")&&Z("p",{className:"es-field-hint",children:f("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&i("sourceNote")?Z(Gu,{source:n,slug:s}):null,A2([..._2,"sourceNote",...d?["fontSize"]:[]],u=>i(u)&&(u!=="sourceNote"||!!n))&&Z(Ua,{}),Z(ju,{inline:!0,name:f("Page"),onSelect:l})]})}function Mee({onBack:e}){return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:f("This part is no longer here.")})}),Z("p",{children:f("The section it belonged to has been changed or removed.")}),Z(ju,{inline:!0,name:f("Page"),onSelect:e})]})}function Hee({onBack:e,partId:o,why:t}){return mt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:f("This part's settings did not open.")})}),Z("p",{children:f("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),Z("p",{className:"sf-note-detail",children:mt("code",{children:[o," \u2014 ",t]})}),Z(ju,{inline:!0,name:f("Page"),onSelect:e})]})}function F2({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=bee(K=>K),l=Eee(),i=e0(),{partStyle:d}=ds(),{fonts:c,textStyles:x}=Po(),u=uee(vee),h=!u?.capabilities?.hasSiteTheme,{persist:I}=qP({themeFromDocument:h,tokenRef:u?.tokenRef,siteId:u?.siteId??null}),C=_T({themeFromDocument:h,persist:I}),[P,O]=S2(!1),F=Pee(),v=K=>(zu(F)!=="tablet"||l2(K))&&Iee(tS[K],F),y=mee(null),b=a(e),E=n(e),B=b?s.components[b.type]:void 0,{key:R,row:k}=Mt(o),L=B?.fields?.[R],g=k?Rn(L,k):L,w=Ht(e,o),T=b?.props??{},S=of(g),N=Cf(g),H=Yk(g),q=b?_i(b.type):null,z=b?y2(b.type,R):null,ne=k?rf(T[R],k):T[R],ge=!!k&&!(Array.isArray(T[R])&&k.index<T[R].length);rS(()=>{QT(document)||y.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[w]);let[J,me]=S2(0);rS(()=>me(0),[w]);let oe=!!b&&!ge&&(!E||!g);rS(()=>{if(!oe||J>=v2)return;let K=setTimeout(()=>me(je=>je+1),Nee);return()=>clearTimeout(K)},[oe,J]);let xe=oe&&J<v2,ce=ws(e,ar(b?.type,o),"textPart");if(!b||ge)return Z(Mee,{onBack:t});let qe=fs(b.type),ro=qe?Ws(qe,o):null;if(qe&&ro){let K=d?.partId===w?d:null,je=qe[ro],It=je.writable===!0&&!!E,mr=Vr=>{E&&l.replaceComponent(E.zone,E.index,{...b,props:ra(T,o,"role",Vr)})};if(It&&ow(je)){let Vr=vr(T,o),zS=Yr=>{if(!E)return;let um=T;for(let[y4,S4]of Object.entries(Yr))um=ra(um,o,y4,S4??null);l.replaceComponent(E.zone,E.index,{...b,props:um})},h4=Fx(C.saved,C.old),I4=fx(Vr)??"",g4=Hu(Vr,K?.base??O2,zS,zu(F)).filter(Yr=>Yr.key==="fontSize"&&v(Yr.key));return Z(Et,{motion:ce,body:Z(T2,{region:je,sizePx:K?.base.sizePx??null,face:Uu(T,o,K,c),base:K?.base??null,source:q,slug:ks(T),onBack:t,shows:v,ownLook:Cv(Vr),sizedStyle:Z(b2,{style:v("style")?{value:I4,options:k2(h4),onChange:Yr=>zS(Yr?{textStyle:Yr}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:g4})})})}return Z(Et,{motion:ce,body:Z(T2,{region:je,sizePx:K?.base.sizePx??null,face:Uu(T,o,K,c),base:K?.base??null,onFollowStyle:It?mr:void 0,source:q,slug:ks(T),onBack:t,shows:v})})}if(!E||!g)return xe?Z("div",{className:"sf-note","aria-busy":"true"}):Z(Hee,{onBack:t,partId:w,why:E?"no field":"no selector"});let wo=K=>{l.replaceComponent(E.zone,E.index,{...b,props:K})},Je=K=>{if(ia(K).hidden!==ia(ne).hidden||!S){let je=k?$k(T,R,k,K):{...T,[R]:K};je&&wo(je);return}Ff({node:b,propKey:o,kind:S,zone:E.zone,index:E.index},ia(K).text,l.replaceComponent)},co=ne,po=d?.partId===w?d:null,le=po?.styleOwner,Le=le?a(le.owner):null,W=le&&Le?n(le.owner):null,he=!!(le&&Le&&W),Ie=he?Le.props??{}:T,Ze=he?K=>l.replaceComponent(W.zone,W.index,{...Le,props:K}):wo,Eo=he?le.kind:ar(b?.type,o),Re=vr(Ie,Eo),Ue=[{partKey:Eo,face:Uu(Ie,Eo,po,c),sizeGroup:po?.sizeGroup??null,base:po?.base??O2,style:Re}],uo=Bee(Ue,K=>K.sizeGroup),_o=Qd(po?.inks),Kt=(K,je)=>{let It=Ie;for(let mr of Ue)It=ra(It,mr.partKey,K,je);Ze(It)},pr=K=>K?Kt("textStyle",K):Ya({textStyle:null,role:null}),Ya=K=>{let je=Ie;for(let It of Ue)for(let[mr,Vr]of Object.entries(K))je=ra(je,It.partKey,mr,Vr??null);Ze(je)},Xa=S==="text"||S==="textarea",{text:qt,hidden:ur}=ia(ne),Ja=g?.[Tee]?.label??o,_s=ur?f("Show {label} on the slide",{label:f(Ja)}):f("Hide {label} on the slide",{label:f(Ja)}),Za=mt("div",{className:"sf-field-head",children:[Z(See,{}),Z("span",{className:"sf-field-label sf-field-label--inline",children:f(Ja)}),Xa&&Z(kee,{content:_s,children:Z(Cee,{"aria-pressed":ur,"aria-label":_s,onClick:()=>Je({text:qt,hidden:!ur}),children:ur?Z(w2,{name:"eye-off",size:14}):Z(w2,{name:"eye",size:14})})})]}),Kr=!N&&H,As=!!S&&(eT(g)||N||ur||!H),qr=Uu(Ie,Eo,po,c),Yi=qr.kind==="role"?qr.role:null,Qa=fx(Re)??PT(Yi),Fs=Fx(C.saved,C.old),Xi=Object.entries(Re).filter(([K,je])=>K!=="role"&&K!=="textStyle"&&je!==void 0).length,Ji=()=>{let K=Ie;for(let je of Ue){let{role:It,textStyle:mr}=je.style;K=cv(K,je.partKey),It&&(K=ra(K,je.partKey,"role",It)),mr&&(K=ra(K,je.partKey,"textStyle",mr))}Ze(K)},ht=Qa,u4=OT(Ue[0].style),m4=ht?Fs.find(K=>K.id===ht)?.name??ht:"",x4=()=>{O(!1),ht&&(C.write(ET({saved:C.saved,old:C.old,styleId:ht,values:TT(Ue[0].style)}),!0),Ji())};return mt(Dee,{sectionName:B?.label??b.type,onBack:t,tabs:K=>Z(Et,{motion:ce,body:K}),textEditor:v("words")?Z("div",{ref:y,className:"sf-part-text",children:As?Z(u2,{text:qt,onTextChange:K=>Je(Xa?{text:K,hidden:ur}:K),multiline:tf(S),markup:S!=="plainText",styled:!1,style:Ue[0].style,base:Ue[0].base,setValue:Ya,colors:_o,placeholder:aS(Nk(g))??void 0,ariaLabel:f(Ja),head:Za,typedOnCanvas:i===w}):S?Xa?Za:null:Z(hee,{field:g,name:o,value:co,onChange:Je,id:`sf-part-${e}-${o}`})}):void 0,children:[z&&v("sourceNote")&&Z(Gu,{source:z,slug:ks(T),menuId:$u(T)}),Kr&&Z(b2,{style:v("style")?{value:Qa??"",options:k2(Fs),onChange:K=>pr(K||null),changed:Xi>0,onEditStyles:r,onUpdateStyle:ht&&u4?()=>O(!0):void 0}:void 0,font:v("font")?{value:Re.font??"",styleValue:rd(Ue[0].base.fontKey)?.label,options:ab.map(K=>({label:K.label,value:K.key})),onChange:K=>Kt("font",K||null)}:void 0,italic:v("italic")?{value:Re.italic,styleValue:$ee(x,Qa),onChange:K=>Kt("italic",K??null)}:void 0,cells:Hu(Ue[0].style,Ue[0].base,Ya,zu(F)).filter(K=>v(K.key)),align:v("align")?Wee(Re,Ue[0].base.align,zu(F),Kt):void 0,letterCase:v("letterCase")?{value:Re.case??"",styleValue:Ue[0].base.case,onChange:K=>Kt("case",K||null)}:void 0}),P&&ht&&Z(x2,{styleName:m4,onCancel:()=>O(!1),onConfirm:x4}),Kr&&uo===null&&v("fixedSizeHint")&&Z(E2,{children:f("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),A2(Ree,K=>v(K)&&(K==="words"||(K==="sourceNote"?!!z:K==="fixedSizeHint"?Kr&&uo===null:Kr)))&&Z(Ua,{})]})}function Wee(e,o,t,r){let a=Oee("align",t),n=uv(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function $ee(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var O2={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as _t,jsxs as fS,Fragment as Vee}from"react/jsx-runtime";import{useCallback as Yee,useRef as Xee,useState as Ri}from"react";import{InspectorIconButton as Jee}from"efficient-easel/chrome";import{useEasel as Zee}from"efficient-easel/easel";import{PopupMenu as Qee,PopupMenuItem as eoe,PopupMenuLabel as Zu}from"efficient-shell/ui";import{CopyToPageIcon as ooe}from"efficient-easel/icons";import{useEaselSession as toe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as roe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as aoe}from"efficient-easel/draw";import{newId as jee}from"efficient-easel/data";import{isBackendError as vs}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as z2}from"efficient-easel/screen/lib/session";var Ku=_P(),nS=Ku.set;function qu(e,o){nS(e,o)}function Vu(e,o){let t=Ku.get(e);nS(e,o??(t==="live"?"changed":t))}function Yu(e,o){nS(e,o??"live")}function B2(e){return Ku.get(e)}function L2(e){return Ku.use(e)}function R2(e,o){return e==="live"&&o?"changed":e}function sS({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?f("Changes not live yet"):e==="never"?f("Never published"):r?f("Header and footer not live yet"):e==="live"?f("Everything is live"):null;return{label:f("Publish"),tooltip:e==="never"?f("Put this page on your site"):f("Put your changes on your site"),status:s,quiet:n?{label:f("Published"),reason:f("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function D2(e){return e.map(o=>o.change==="take_down"?f("{name} (taken down)",{name:o.name}):o.name)}var N2="SharedSection",zee=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Bi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Li=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function M2(e){if(e?.type!==N2)return null;let o=e.props?.section;return typeof o=="string"&&zee.test(o)?o.toLowerCase():null}function H2(e){let o=[];for(let t of Bi(e)){let r=M2(t),a=Li(t);r&&a&&o.push({refId:a,section:r})}return o}function Xu(e){let o=Bi(e)[0];return o&&typeof o=="object"&&Li(o)?o:null}function Uee(e,o){return{type:N2,props:{id:e,section:o}}}function W2(e,o){let t=new Map,r=new Set,a=!1,n=Bi(e).map(s=>{let l=M2(s),i=Li(s);if(!l||!i||r.has(l))return s;let d=Xu(o.get(l)),c=Li(d??void 0);return!d||!c||t.has(c)?s:(r.add(l),t.set(c,{section:l,refId:i,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function $2(e,o,t){let r=new Map,a=!1,n=Bi(e).map(s=>{let l=Li(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 c=Bi(d).slice(1),x=Xu(d);return r.set(i.section,x===s?d:{...d,content:[s,...c]}),a=!0,i.reference??Uee(i.refId,i.section)});return{page:a?{...e,content:n}:e,docs:r}}function dS(e){return!!(e?.publish&&e.liveState)}function Gee(e,o){if(!dS(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 Kee(e,o){return async(t,r)=>{try{await KP()}catch(a){throw new Error(f("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?bf({state:"live",changes:[]}):la(0),{version:r??null}}}function iS(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(qu(n.id,n.live),NP(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(i=>(Vu(a,i.live),MP(a,i.videoFrames),la(),i)),rereadVersion:e.version?a=>e.version(a):void 0,publish:dS(t)?Kee(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(Yu(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 qee(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,i=new Map,d=new Map,c=new Map,x=new Map,u={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let k=B2(n.id);return k==="changed"||k==="never"||k===void 0&&l},C=k=>{u={...u,...k,docId:n?.id??null,unpublished:I(),sections:[...c.values()],rootProps:LP(n?.layout)};for(let L of h)L()},P=(k,L,g)=>{L?c.set(k,{section:k,title:i.get(k)?.title??"",problem:L,holder:g}):c.delete(k)},O=k=>k&&typeof k=="object"&&!Array.isArray(k)?k:{},F=k=>s.has(k),v=()=>new Map([...i].map(([k,L])=>[k,L.layout])),y=()=>jee("SharedSection"),b=(k,L,g,w)=>{let T=O(L);i.set(k,{layout:T,version:g,savedJson:JSON.stringify(T),title:w})},E={state:()=>u,subscribe:k=>(h.add(k),()=>{h.delete(k)})},B={sectionOf:k=>d.get(k)?.section??null,heldElsewhere:k=>{let L=d.get(k)?.section;return!!(L&&c.get(L)?.problem==="lock")},adopt:(k,L)=>{b(L.id,L.layout,L.layout_updated_at,L.title),d.set(k,{section:L.id,refId:y()}),x.set(L.id,L.used_on),C({})},place:k=>{if([...d.values()].some(w=>w.section===k.id))return null;let L=Xu(O(k.layout)),g=typeof L?.props?.id=="string"?L.props.id:null;return!L||!g||!L.type?null:(b(k.id,k.layout,k.layout_updated_at,k.title),d.set(g,{section:k.id,refId:y()}),x.set(k.id,k.used_on),L)},usedOn:k=>x.get(k)??null,learn:k=>{for(let L of k){x.set(L.id,L.used_on);let g=i.get(L.id);g&&(g.title=L.title);let w=c.get(L.id);w&&c.set(L.id,{...w,title:L.title})}C({})}},R=async(k,L)=>{for(let[g,w]of k){let T=i.get(g),S=JSON.stringify(w);if(!(!T||S===T.savedJson||c.get(g)?.problem==="lock"))try{let N=await e.save(g,{layout:w},{version:T.version,clientId:L??""});Vu(g,N.live),T.layout=w,T.version=N.version,T.savedJson=S,P(g,null)}catch(N){vs(N,"changed-elsewhere")?P(g,"conflict"):vs(N,"lock-taken")?P(g,"lock",N.holder??void 0):P(g,"save")}}k.size&&la(),C({})};return{resolve:async k=>{if(Ax(k===Pr?null:E),wx(k===Pr?null:B),i=new Map,d=new Map,c=new Map,x=new Map,k===Pr)return t.resolve(k);let L=!1,[g,w]=await Promise.all([t.resolve(k),e.load({slug:Pr,...o}).catch(()=>(L=!0,null))]);if(w&&!QP(g?.layout)){qu(w.id,w.live);let z=O(w.layout);n={id:w.id,layout:z,version:w.version,savedJson:""}}else n=null;if(l=!1,!g)return C({conflict:null,saveFailed:!1,loadFailed:L}),g;let T=O(g.layout),S=H2(T),N=await Promise.all(S.map(z=>e.load({id:z.section,...o}).catch(()=>null)));S.forEach((z,ne)=>{let ge=N[ne];ge?(qu(ge.id,ge.live),b(z.section,ge.layout,ge.version,"")):(i.delete(z.section),c.set(z.section,{section:z.section,title:"",problem:"load"}))});let H=W2(T,v());if(d=H.held,!n)return d.size&&s.add(g.id),C({conflict:null,saveFailed:!1,loadFailed:L}),d.size?{...g,layout:H.working}:g;let q=RP(H.working,n.layout);return n.savedJson=JSON.stringify(bx(q,n.layout).chrome),s.add(g.id),C({conflict:null,saveFailed:!1,loadFailed:!1}),{...g,layout:q}},saveLayout:async(k,L,g,w)=>{if(!F(k))return t.saveLayout(k,L,g,w);let T=n,S=T?bx(L,T.layout):{page:L,chrome:null},N=$2(S.page,d,v()),H=await t.saveLayout(k,N.page,g,w);if(await R(N.docs,w),!T)return H;let q=JSON.stringify(S.chrome);if(!S.chrome||q===T.savedJson||u.lockHolder)return H;try{let z=await e.save(T.id,{layout:S.chrome},{version:T.version,clientId:w??""});Vu(T.id,z.live),la(),T.layout=S.chrome,T.version=z.version,T.savedJson=q,l=!0,C({conflict:null,saveFailed:!1})}catch(z){vs(z,"changed-elsewhere")?C({conflict:z.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):vs(z,"lock-taken")?C({lockHolder:z.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):C({saveFailed:!0})}return H},publish:t.publish?async(k,L)=>{let g=await t.publish(k,L),w=n;if(w&&F(k)&&!a&&e.publish&&I()&&!u.lockHolder){let T=await e.publish(w.id,w.version?{version:w.version}:void 0);Yu(w.id,T.live),T.version!==null&&(w.version=T.version),l=!1,C({})}if(F(k)&&!a&&e.publish)for(let[T,S]of i){if(c.get(T)?.problem==="lock")continue;let N=await e.publish(T,S.version?{version:S.version}:void 0);Yu(T,N.live),N.version!==null&&(S.version=N.version)}return g}:void 0,lock:r?{claim:async(k,L,g)=>{let w=await r.claim(k,L,g);if(!F(k))return w;let T=n;if(T)try{await r.claim(T.id,L,!1),u.lockHolder&&C({lockHolder:null})}catch(S){vs(S,"lock-taken")&&C({lockHolder:S.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let S of i.keys())try{await r.claim(S,L,!1),c.get(S)?.problem==="lock"&&P(S,null)}catch(N){vs(N,"lock-taken")&&P(S,"lock",N.holder??void 0)}return i.size&&C({}),w},release:async(k,L)=>{if(await r.release(k,L),!F(k))return;let g=n;g&&!u.lockHolder&&await r.release(g.id,L).catch(()=>{});for(let w of i.keys())c.get(w)?.problem!=="lock"&&await r.release(w,L).catch(()=>{})}}:void 0,pinnedChrome:E}}function Ju(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:WT(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 PMe(e,o,t){return e.update(o,$T(t))}function TMe(e,o=Ao(),t=bg(),r={}){let a=z2(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,c=dS(o.site)?o.site:void 0,x=Ju(o.pages),u=iS(x,e,c),h=d?qee(x,n,u,o.lock,!!c):null;return{capabilities:{canPublish:!!c||!!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,...U2(u.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:c?()=>c.liveState(n):void 0,siteVersions:Gee(c,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function OMe(e,o=Ao(),t=bg()){let r=z2(o),a=o.templates,n=a?Ju(a.pages(e)):{list:()=>Promise.reject(new Error(lS)),load:()=>Promise.reject(new Error(lS)),save:()=>Promise.reject(new Error(lS))};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},...iS(n,void 0),...U2(iS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function U2(e){return{resolve:o=>(Ax(null),wx(null),e(o))}}var lS="This editor's backend has no website templates.";function noe(e,o,t){let r=roe(e,void 0,o);return t?.(r)??r}function j2({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Ri(!1),[i,d]=Ri(null),c=toe(),x=Zee(B=>B.config.components),[u,h]=Ri(!1),[I,C]=Ri(null),P=Xee(null),[O,F]=Ri(null),v=Yee(async()=>{if(c.usesBridgedToken&&!r.current){h(!0);return}try{d(await Ao(c).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,c]),y=()=>{if(s){l(!1);return}let B=P.current?.getBoundingClientRect();B&&F({top:B.bottom+6,right:Math.max(8,window.innerWidth-B.right)}),d(null),h(!1),v(),l(!0)},b=(i??[]).filter(B=>B.slug!==o),E=async B=>{if(I)return;C(B.slug);let R=noe(e,x,c.documentHooks?.storedNode),k=await a(()=>soe(Ao(c).pages,B,R));C(null),l(!1),n?.(k?f("Duplicated to \u201C{name}\u201D",{name:B.label}):f("Couldn\u2019t duplicate the section \u2014 please retry"),k?"success":"error")};return fS(Vee,{children:[_t("span",{"data-menu-toggle":!0,style:{display:"contents"},children:_t(Jee,{buttonRef:P,label:f("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:_t(ooe,{size:15})})}),s&&O&&_t(Qee,{portal:!0,style:{top:O.top,right:O.right},onClose:()=>l(!1),children:fS("div",{role:"menu","aria-label":f("Duplicate to page"),children:[_t(Zu,{children:f("Duplicate to page")}),u?_t(Zu,{children:f("Couldn\u2019t load pages")}):i===null?_t(Zu,{children:f("Loading\u2026")}):b.length===0?_t(Zu,{children:f("No other pages")}):b.map(B=>fS(eoe,{role:"menuitem",disabled:I!==null,onClick:()=>{E(B)},children:[_t("span",{className:"min-w-0 flex-1 truncate",children:B.label}),I===B.slug?_t("span",{className:"shrink-0 text-xs",children:f("Copying\u2026")}):B.draft&&_t("span",{className:"shrink-0 text-xs",children:f("draft")})]},B.id))]})})]})}async function soe(e,o,t){let r=Ju(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===aoe);s.splice(l===-1?s.length:l,0,AP(t)),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as Loe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Roe}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as oHe,isSelectionMode as xS}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Doe}from"efficient-easel/draw/client";import{jsx as Di,jsxs as loe}from"react/jsx-runtime";import{SettingsDrill as ioe}from"efficient-easel/panel";import{UiIcon as doe}from"efficient-easel/draw/client";var foe="Not shown on the page";function coe({part:e,onOpen:o}){return Di(ioe,{name:f(e.label),preview:e.offPage?f(foe):e.preview||f("Empty"),offPage:e.offPage,status:e.hidden?Di("span",{className:"sf-entry-eye",role:"img","aria-label":f("Hidden on the page"),children:Di(doe,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function cS(e){return e.filter(o=>!o.identifier)}function G2({parts:e,onOpen:o,heading:t=!0}){let r=cS(e);return r.length?loe("div",{className:"sf-entries",children:[t?Di("h3",{className:"sf-entries-head",children:f("Text")}):null,r.map(a=>Di(coe,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Noe,ROOT_ZONE as aH}from"efficient-easel/draw";import{newId as poe}from"efficient-easel/data";import{HEADER_TYPE as Uo,FOOTER_TYPE as Be,newNodeId as uoe}from"efficient-easel/draw";function Qu(){return{type:Uo,props:{id:uoe(Uo)}}}var K2=[{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"}],moe=K2.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),xoe="FooterGroup",q2="blocks";function V2(e){return e===Be?K2:e===xoe?moe:null}function em(){let e=(o,t)=>({type:o,props:{id:poe(o),...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...Lv}),e("FooterPayment",{...sf})]}function pS(e){switch(e?.type){case No:case eo:return f("On every page");case Uo:case Be:return f("On every page \xB7 old style");default:return null}}var Y2=()=>null,X2=()=>f("Changed on every page");function om(e,o){let t=_C(e,o);if(t)return t;let r=Kv(e,o);if(!r)return null;let a=r.group===No;return r.why==="type"?a?f("The header cannot take another one of these"):f("The footer cannot take another one of these"):a?f("The header holds at most 3 sections"):f("The footer holds at most 6 sections")}import{jsx as tm,Fragment as Ioe,jsxs as goe}from"react/jsx-runtime";import{useState as yoe}from"react";import{createNode as Soe,newId as boe}from"efficient-easel/data";import{useEasel as woe}from"efficient-easel/easel";import{Banner as Coe,Button as uS}from"efficient-shell/ui";import{useScreenDocument as koe}from"efficient-easel/screen/components/ScreenDocumentContext";var hoe=["FooterPayment"];function J2(e,o){let{id:t,...r}=e.props;for(let a of Ft(e))r[a]=r[a].map(n=>J2(n,o));return o(e.type,r)}var Ni=(e,o)=>{if(!hoe.includes(e.type))return null;$p();let t=Br(e.type);return t?Pa({type:e.type,props:{...e.props}},t).nodes.map(r=>J2(r,o)):null};function Z2(){let{appState:e,dispatch:o,config:t}=woe(c=>c),{readOnly:r}=koe(),[a,n]=yoe(!1),s=e.data.content;if(r||s.some(c=>c.type===eo))return null;let l=s.find(c=>c.type===Be)??null,i=(c,x)=>Soe(t,c,x),d=()=>{let c=ri(l,i,boe(eo),Ni);o({type:"setData",data:x=>({...x,content:[...df(x.content,c)]}),recordHistory:!0}),n(!1)};return tm(Coe,{tone:"info",title:f("This footer uses the old layout"),action:a?goe(Ioe,{children:[tm(uS,{variant:"primary",size:"sm",onClick:d,children:f("Switch now")}),tm(uS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:f("Cancel")})]}):tm(uS,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:f("Switch to Box footer")}),children:f("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 mS,jsxs as voe}from"react/jsx-runtime";import{InspectorUpLevel as Q2}from"efficient-easel/chrome";function eH({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Ru(),n=ws(e,o,"picture");return voe("div",{children:[o!=="media"?mS(Q2,{inline:!0,name:f(ir.media),onSelect:()=>a(wa(e,"media"))}):mS(Q2,{inline:!0,name:f(t),onSelect:r}),mS(Et,{part:o,motion:n,itemWord:f(ir[o])})]})}import{HintsToggle as Moe,SettingsSwitch as Hoe,hintsFoldClass as Woe}from"efficient-easel/panel";import{useHints as $oe}from"efficient-easel/screen/lib/hints";var sH={kind:"header"},IS={kind:"website"},lH={kind:"website",tab:Ef,revealPageGroup:!0},iH={kind:"chat"},dH={kind:"social"},Mi="Part";function zoe(e){return f("Part of {name}",{name:f(e)})}function Uoe(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?zoe(r.label):f(Mi)}}function joe(e){switch(e){case"Header":return{title:f("Header settings belong to a website."),own:f("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:f("Appearance settings belong to a website."),own:f("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:f("Live chat settings belong to a website."),own:f("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:f("Social link settings belong to a website."),own:f("Each website created from this template sets its own social link afterwards.")};default:return{title:f("{what} settings belong to a website.",{what:e}),own:f("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function fH({what:e}){let o=joe(e);return Gr("div",{className:"sf-note",children:[we("p",{children:we("strong",{children:o.title})}),Gr("p",{children:[f("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function hS(e){let o=Hl[e];return{name:ir[e],kindLabel:Mi,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=nH({name:f(Mc(e,a.props)),tier:"part",of:f(a.label)},{partOf:({name:s})=>f("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?we(eH,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Goe={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(_f,{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(qM,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>we(QM,{unavailable:we(fH,{what:"Social link"})})},ticker:{name:Ra,kindLabel:Mi,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Uoe(o,e.heroId,f(Ra)):null,render:e=>we(d2,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:hS("media"),heroImage:hS("image"),heroImage2:hS("image2"),part:{name:Mi,kindLabel:Mi,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}=Mt(e.propKey),n=a?Rn(t.fields[r],a):t.fields[r],s=fs(t.type),l=s?Ws(s,e.propKey):null,i=s&&l?s[l].label:xO[e.propKey],d=i?f(i):Uk(f(nf(Xk(n??{},r))),a),c=nH({name:d,tier:"part",of:f(t.label)},{partOf:({name:x})=>f("Part of {name}",{name:x})});return{name:c.name,kindLabel:c.kind}},render:(e,o)=>e.kind==="part"?we(F2,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Koe=new Set(["header","website","chat"]);function qoe(e,o){if(e==="selection")return null;let t=Goe[e];return Koe.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>we(fH,{what:t.name})}:t}function cH({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:l,tokenRef:i,notifyParent:d,currentSlug:c,siteId:x,runAuthed:u,readOnly:h,navigate:I}=Loe(),{rows:C}=pl(),P=C?.find(he=>he.slug===c)??null,O=Toe(),F=Object.keys(O.fields).some(he=>!he.startsWith("_")&&!Bx.includes(he)),{websiteName:v}=Po(),y=Roe({readOnly:h}),{select:b}=Doe(),{selectedItem:E,getItemById:B,getSelectorForId:R,config:k,appState:L}=Poe(he=>he),g=Foe(k,E?{type:E.type,props:E.props}:null),w=E?Qk(g??k.components[E.type]?.fields,E.props):[],T=he=>k.components[he]?.label??he,S=E?R(E.props.id):void 0,N=qoe(e.kind,l),H=Boe(),q={capabilities:l,tokenRef:i,hostPanels:H.chrome?.panels,describeNode:he=>{let Ie=B(he);if(!Ie)return null;let Ze=k.components[Ie.type];return{type:Ie.type,label:Ze?.label??Ie.type,fields:Ze?.fields??{},props:Ie.props??{}}},siteId:x,websiteName:v??null,notifyParent:d,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},z=N?.head?.(e,q)??null,ne=$M({kind:P?.kind,pageName:P?.label}),ge=z?.name??(N?f(N.name):E?f(T(E.type)):ne.name),J=z?.kindLabel??(N?f(N.kindLabel):E?S&&S.zone!==aH?f("Block"):f("Section"):ne.kindLabel),me=N?N.icon:E?E.type:"page",oe=xS(e)&&E?_i(E.type):null,xe=!!E&&!!S&&S.zone===aH&&E.type!==Be&&E.type!==Noe,ce=om(L?.data,E),qe=()=>{ce||S&&y.duplicateComponent(S.zone,S.index)},ro=()=>{S&&(y.removeComponent(S.zone,S.index),y.select(null))},wo=E?k.components[E.type]?.defaultProps?.previewHover:void 0,Je=xS(e)&&!!E&&!!S&&wo!==void 0,co=Je&&E.props.previewHover===!0,po=()=>{!E||!S||y.replaceComponent(S.zone,S.index,{...E,props:{...E.props,previewHover:!co}})},{shown:le,setShown:Le}=$oe(),W=!!(N||E||F);return Gr("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Woe(le)}`.trim(),children:[we(Eoe,{icon:we($a,{type:me,size:15}),name:ge,kind:J,actions:!a&&xS(e)&&E&&E.type!==Be?Gr(oH,{children:[we(tH,{label:f("Duplicate section"),title:ce??void 0,disabled:ce!==null,onClick:qe,children:we(_oe,{size:15})}),xe&&l.hasSiteSettings&&we(j2,{node:E,currentSlug:c,siteId:x??void 0,tokenRef:i,runAuthed:u,onNotify:n}),we(tH,{label:f("Remove section"),danger:!0,onClick:ro,children:we(Aoe,{size:15})}),s?we(rH,{side:"right",onHide:s,divider:!0}):null]}):s?we(rH,{side:"right",onHide:s}):void 0}),Je&&Gr("div",{className:"sf-preview-pin",children:[Gr("div",{className:"sf-preview-pin-text",children:[we("span",{className:"sf-preview-pin-label",children:f("Preview hover state")}),we("span",{className:"sf-preview-pin-hint",children:f("not shown live")})]}),we(Hoe,{checked:co,onChange:po,ariaLabel:f("Preview hover state")})]}),Gr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[N?N.render(e,q):E?Gr(oH,{children:[E.type===Be&&l.hasSiteSettings&&we(Z2,{}),we(GP,{children:we(Et,{entries:we(G2,{parts:w,heading:!1,onOpen:he=>b(Ht(E.props.id,he))}),entryCount:cS(w).length,itemWord:ge})}),oe&&we(Gu,{source:oe,slug:ks(E?.props),menuId:$u(E?.props)})]}):F?we(Et,{omit:Bx}):we(Ooe,{variant:"none",icon:!1,message:f("Select a section or block to edit it.")}),W&&we(Moe,{shown:le,onChange:Le,label:f("Show hints")})]})]})}import{jsx as p,jsxs as _,Fragment as hH}from"react/jsx-runtime";var to={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)"},gS="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:to[t],flex:"none",...a}})}var Voe={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},V={position:"absolute",inset:0},m={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},_e=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function cr({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 _("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[p("span",{style:r("8% 26% 30% 6%",m.mark1)}),p("span",{style:r("26% 6% 8% 30%",m.mark2,"multiply")})]})}function am({children:e}){return p("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:m.muted},children:e})}function pH({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return _(hH,{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 yS({name:e,price:o}){return _("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",..._e(m.paper,m.paper2,150)},children:p(cr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o})]})}function fr({k:e,v:o,ok:t}){return _("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${m.rule}`,fontSize:"3.98cqw",color:m.muted},children:[p("span",{children:e}),_("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("b",{style:{color:m.text,fontWeight:700},children:o}),t&&p("span",{style:{color:m.rust,fontWeight:700},children:"\u2713"})]})]})}function ke({title:e,children:o}){return _("div",{style:{...V,background:m.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[p(am,{children:e}),o]})}function uH({size:e=14}){return p("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${m.mark1},${m.mark2})`}})}function SS({filled:e=5,size:o=6}){return _("span",{style:{fontSize:o,letterSpacing:"0.06em",color:m.rust,lineHeight:1},children:["\u2605".repeat(e),p("span",{style:{color:m.mark1},children:"\u2605".repeat(5-e)})]})}function Hi({n:e,label:o,tone:t=m.text}){return _("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 Xe({children:e,w:o}){return p("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:m.muted,width:o,display:"block"},children:e})}function rm({label:e,w:o="100%",filled:t}){return _("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:e}),p("span",{style:{height:9,borderRadius:3,border:`1px solid ${m.rule}`,background:t?m.paper:m.card}})]})}function mH({children:e}){return p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.text,color:m.onInk},children:e})}var Yoe={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])=>_("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",..._e(m.paper,m.paper2,150)},children:p(cr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),p("b",{style:{flex:1,fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:m.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:_("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[_("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>_("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:m.text,color:m.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,p("span",{style:{opacity:.6},children:"\u2715"})]},e)),p("span",{style:{fontSize:"3.65cqw",color:m.rust,fontWeight:700},children:"Clear"})]}),_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"128 results"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted,border:`1px solid ${m.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:_("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:m.onInk},children:"Will it fit your rig?"}),_("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>_("span",{style:{flex:1,fontSize:"3.65cqw",color:m.text,background:m.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",p("span",{style:{color:m.muted},children:"\u25BE"})]},e)),p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:m.warm,color:m.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:p(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])=>_("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[p("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:m.ink},children:p("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${m.mark2}`,boxSizing:"border-box"}})}),p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:m.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),p("span",{style:{fontSize:"3.32cqw",color:m.muted},children:o})]},e))})}),tyresizes:p(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?m.rust:m.rule}`,color:o===0?m.rust:m.text,background:o===0?m.paper:m.card},children:e},e))})}),tyrefitment:_(ke,{title:"Will it fit your car?",children:[p("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>_("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:m.muted,background:m.paper,border:`1px solid ${m.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",p("span",{style:{color:m.muted},children:"\u25BE"})]},e))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${m.rule}`,paddingTop:3},children:[p("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?m.warm:m.muted},children:o})]},e))})]}),eutyrelabel:_("div",{style:{...V,background:m.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>_("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?m.rust:m.mark1}}),p("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?m.rust:m.muted},children:e})]},e))}),_("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[p("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:m.text},children:"72"}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:m.muted},children:"dB"})]})]}),bundleoffer:_("div",{style:{...V,background:m.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(am,{children:"Buy it with"}),_("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>p("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:m.card},children:p(cr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:m.muted},children:"+"}),_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[p("span",{style:{fontSize:"3.65cqw",color:m.muted,textDecoration:"line-through"},children:"$1,024"}),p("b",{style:{fontSize:"6.02cqw",color:m.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,..._e(m.ink,m.ink2)},children:[_("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:m.warm,fontWeight:700},children:"READY TO ORDER"}),p("b",{style:{fontSize:"6.63cqw",color:m.onInk,lineHeight:1},children:"$1,956"}),p("span",{style:{fontSize:"3.65cqw",color:m.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:m.warm,color:m.ink,flex:"none"},children:"CHECKOUT"})]}),contact:p(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])=>_("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p("b",{style:{flex:1,fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:o}),p("span",{style:{fontSize:"4.64cqw",color:m.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:p(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])=>_("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.32cqw",color:m.muted},children:o}),p("span",{style:{fontSize:"3.32cqw",color:m.rust,fontWeight:700},children:t})]},e))})}),citypictures:p(ke,{title:"Our studios",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:m.muted},children:"A \xB7 AMERICAS"}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>_("div",{style:{position:"relative",minHeight:0},children:[p(j,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${m.scrim} 45%),${_e(m.ink,m.inkSoft2).background}`}}),p("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:m.onInk},children:e})]},e))})]})}),citymaps:p(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])=>_("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[p(j,{r:4,style:{...V,background:"none",border:`1px solid ${m.rule}`}}),p("b",{style:{position:"relative",fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{position:"relative",fontSize:"3.32cqw",color:m.muted},children:o}),_("div",{style:{flex:1,minHeight:0,position:"relative"},children:[p(j,{r:3,style:{...V,..._e(m.paper,m.paper2,150)}}),p(j,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:m.mark1,opacity:.75}}),p(j,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:m.rust}})]})]},e))})}),form:p(ke,{title:"Send us a message",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[_("div",{style:{display:"flex",gap:5},children:[p(rm,{label:"Name"}),p(rm,{label:"Email"})]}),p(rm,{label:"Message",filled:!0}),p(mH,{children:"SEND"})]})}),appointmentbooking:p(ke,{title:"Book a fitting",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?m.text:m.paper,color:o===2?m.onInk:m.muted},children:e},e))}),p("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?m.rust:m.rule}`,color:o===1?m.rust:m.muted,background:o===3?m.paper:m.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:p(ke,{title:"Leave a review",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p(SS,{filled:4,size:14}),p(rm,{label:"Your review",filled:!0}),p(mH,{children:"POST"})]})}),submitbuild:p(ke,{title:"Show us your build",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${m.mark1}`,borderRadius:5,background:m.paper},children:[p("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:m.rust,fontWeight:300},children:"+"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"Drop a photo of your rig"})]})}),masthead:_("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[p("span",{style:{height:1.5,background:m.text}}),p("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:m.text,lineHeight:1},children:"THE TRACK"}),_("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:m.muted},children:[p("span",{children:"Issue 14"}),p("span",{children:"Spring 2026"})]}),p("span",{style:{height:1,background:m.rule}})]}),featuredcover:_("div",{style:{...V,overflow:"hidden",..._e(m.ink,m.inkSoft2)},children:[p(cr,{size:92,style:{right:-18,top:-14}}),p("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${m.scrim},transparent 62%)`}}),_("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.warm},children:"FEATURE"}),p("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:m.onInk},children:"Four days on the Madigan Line"})]})]}),longread:_("div",{style:{...V,background:m.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:m.rust},children:"12 MIN READ"}),p("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:m.text},children:"What breaks first, and why"}),p(Xe,{children:"Every failure starts in the same place:"}),p(Xe,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:_("div",{style:{...V,background:m.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[p("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:m.text},children:"Why offset beats width"}),p(Xe,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),p(Xe,{w:"88%",children:"clears the arch, so the offset is chosen first."}),p(Xe,{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])=>_("div",{style:{display:"flex",alignItems:"center",gap:6},children:[p("span",{style:{width:3,height:12,borderRadius:2,background:m.rust,flex:"none"}}),p("b",{style:{flex:1,fontSize:"4.64cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:o})]},e))})}),events:p(ke,{title:"Latest posts",children:p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[m.inkSoft,m.inkSoft2,"Madigan Line, four days"],[m.rust,m.warm,"Why offset beats width"]].map(([e,o,t])=>_("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{width:24,height:18,borderRadius:3,flex:"none",..._e(e,o,150)}}),_("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:t}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:_("div",{style:{...V,background:m.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.muted},children:"POLICY"}),p("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:m.text,lineHeight:1.1},children:"Returns & refunds"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),p("span",{style:{height:2,width:26,background:m.rust,borderRadius:1}})]}),docbody:p("div",{style:{...V,background:m.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>_("div",{style:{display:"flex",gap:5},children:[p("b",{style:{fontSize:"3.98cqw",color:m.rust,flex:"none"},children:e}),p(Xe,{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])=>_("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[p("b",{style:{fontSize:"5.31cqw",color:m.text,lineHeight:1},children:e}),p("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:m.muted},children:o})]},o))})}),doctabs:_("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?m.text:m.muted,background:o===0?m.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?m.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),p("span",{style:{height:1,background:m.rule}}),_("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[p(Xe,{children:"Unfitted wheels come back within 30 days, no questions."}),p(Xe,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:_("div",{style:{...V,background:m.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[p("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:m.text},children:"The right wheel is the boring one."}),_("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Xe,{children:"Forged, correctly offset, rated for what you actually"}),p(Xe,{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=>_("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[p("span",{style:{fontSize:"4.64cqw",color:m.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),p("span",{style:{fontSize:"4.31cqw",color:m.text},children:e})]},e))})}),statsparagraph:_("div",{style:{...V,background:m.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[_("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[p(Hi,{n:"27k",label:"Rigs"}),p(Hi,{n:"4.9",label:"Rating"})]}),_("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[p(Xe,{children:"Twelve years of fitting the same three questions, and the"}),p(Xe,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:_(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?m.rust:m.mark1}},o))}),p("span",{style:{height:1,background:m.rule,marginTop:-4}})]}),mockup:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",..._e(m.inkSoft,m.ink)},children:_("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:m.card,boxShadow:`0 6px 14px ${m.scrim}`},children:[p("div",{style:{height:9,background:m.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>p("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:m.mark1}},e))}),_("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[p("span",{style:{height:4,width:"56%",borderRadius:1,background:m.mark2}}),p("span",{style:{height:14,borderRadius:2,..._e(m.paper,m.paper2,150)}}),p("span",{style:{height:3,width:"38%",borderRadius:1,background:m.rust}})]})]})}),manifesto:p("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",..._e(m.ink,m.ink2)},children:_("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:m.onInk},children:["We build for the ",p("span",{style:{color:m.warm},children:"last"})," ten percent of the track."]})}),timeline:p(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)=>_("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&p("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:m.rule}}),p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:m.rust,zIndex:1}}),_("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[p("b",{style:{fontSize:"4.64cqw",color:m.text},children:e}),p(Xe,{children:o})]})]},e))})}),timelinetrack:_("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"Milestones"}),_("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[p("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:m.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[p("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?m.warm:m.mark1}}),p("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?m.warm:m.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:_("div",{style:{...V,overflow:"hidden",..._e(m.paper,m.paper2,150)},children:[p("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:m.mark1,opacity:.75}}),p("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:m.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>p("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:m.rust}},e)),p("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:m.text},children:"3 fitting bays"})]}),banner:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:m.rust},children:[_("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[p("b",{style:{fontSize:"6.02cqw",color:m.onInk},children:"End of season \xB7 20% off"}),p("span",{style:{fontSize:"3.98cqw",color:m.onInk,opacity:.8},children:"Fitted free, this month only."})]}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.onInk,color:m.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:_("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[p("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:m.text},children:"Not sure what fits?"}),_("div",{style:{display:"flex",gap:5},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:m.text,color:m.onInk},children:"FIND MY FIT"}),p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${m.text}`,color:m.text},children:"CALL US"})]})]}),ticker:p("div",{style:{...V,overflow:"hidden",background:m.ink,display:"flex",alignItems:"center"},children:p("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:m.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:_("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",..._e(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:m.muted},children:"Back online in"}),p("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>_("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&p("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:m.warm},children:":"}),_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[p("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:m.onInk,fontVariantNumeric:"tabular-nums"},children:e}),p("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:m.onInk},children:o})]})]},o))})]}),breadcrumb:p("div",{style:{...V,background:m.card,display:"flex",alignItems:"center",padding:"0 13px"},children:_("span",{style:{fontSize:"4.64cqw",color:m.muted},children:["Home ",p("span",{style:{opacity:.5},children:"/"})," Wheels ",p("span",{style:{opacity:.5},children:"/"})," ",p("span",{style:{color:m.text,fontWeight:700},children:"20 inch"})]})}),categorybar:_("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[p("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>p("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?m.text:m.paper,color:o===0?m.onInk:m.muted},children:e},e))}),p("span",{style:{height:1,background:m.rule}})]}),intro:_("div",{style:{...V,overflow:"hidden",background:m.card},children:[p("div",{style:{position:"absolute",inset:0,..._e(m.ink,m.inkSoft2)}}),p(cr,{size:64,style:{right:8,top:6}}),_("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:m.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${m.scrim}`},children:[p("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:m.text},children:"Since 1998"}),p(Xe,{children:"One shed, one lathe, one idea."}),p(Xe,{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:[[m.rust,m.warm],[m.inkSoft,m.ink],[m.paper2,m.mark2],[m.ink,m.inkSoft2],[m.warm,m.paper2],[m.mark2,m.inkSoft]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,140+t*22)}},t))})}),gallery:_(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?m.text:m.muted,borderBottom:`1.5px solid ${o===0?m.rust:"transparent"}`,paddingBottom:2},children:e},e))}),p("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[m.rust,m.warm],[m.ink,m.inkSoft],[m.paper2,m.mark2]].map(([e,o],t)=>p("div",{style:{borderRadius:3,..._e(e,o,150+t*20)}},t))})]}),ordersummary:_(ke,{title:"Order summary",children:[_("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[p("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",..._e(m.paper,m.paper2,150)},children:p(cr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),_("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"3.65cqw",color:m.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),_("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(fr,{k:"Subtotal",v:"$1,956"}),p(fr,{k:"Fitting",v:"Free"}),_("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[p("b",{style:{color:m.text},children:"Total"}),p("b",{style:{color:m.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:p(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])=>_("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?m.rust:m.rule}`,background:r?m.paper:m.card},children:[p("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?m.rust:m.mark1}`,background:r?m.rust:"transparent"}}),p("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:m.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:o}),p("b",{style:{fontSize:"4.31cqw",color:m.text},children:t})]},e))})}),paymentbadges:_("div",{style:{...V,background:m.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[p(am,{children:"Ways to pay"}),p("div",{style:{display:"flex",gap:5},children:[["VISA",m.ink],["MC",m.rust],["AMEX",m.inkSoft],["PayPal",m.ink2]].map(([e,o])=>p("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:m.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:_("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",..._e(m.ink,m.ink2)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"By the numbers"}),_("div",{style:{display:"flex",gap:8},children:[p(Hi,{n:"27k",label:"Rigs fitted",tone:m.onInk}),p(Hi,{n:"12",label:"Years",tone:m.onInk}),p(Hi,{n:"4.9",label:"Avg rating",tone:m.warm})]})]}),testimonials:_("div",{style:{...V,overflow:"hidden",background:m.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[p("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:m.rust,opacity:.16},children:"\u201D"}),p(SS,{filled:5,size:7}),p("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:m.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),_("div",{style:{display:"flex",alignItems:"center",gap:5},children:[p(uH,{}),p("span",{style:{fontSize:"3.98cqw",color:m.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:_(ke,{title:"Reviews",children:[p("div",{style:{display:"flex",gap:4,height:22},children:[[m.inkSoft,m.inkSoft2],[m.rust,m.warm],[m.ink,m.inkSoft],[m.mark2,m.mark1]].map(([e,o],t)=>p("div",{style:{flex:1,borderRadius:3,..._e(e,o,140+t*15)}},t))}),p("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>_("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[p(uH,{size:12}),_("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[_("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[p("b",{style:{fontSize:"3.98cqw",color:m.text},children:e}),p(SS,{filled:o})]}),p(Xe,{children:t})]})]},e))})]}),logos:_("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",..._e(m.ink,m.inkSoft)},children:[p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:m.warm},children:"As fitted by"}),p("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>p("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:m.onInk,opacity:.82},children:e},e))})]}),prose:_("div",{style:{...V,background:m.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:m.text},children:"Why offset matters"}),_("div",{style:{display:"flex",gap:6},children:[p("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:m.rust,marginTop:1},children:"T"}),_("div",{style:{display:"flex",flexDirection:"column"},children:[p(Xe,{children:"he number on the back of your wheel decides whether the"}),p(Xe,{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])=>_("div",{style:{border:`1px solid ${m.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:3,background:m.rust,opacity:.9}}),p("b",{style:{fontSize:"3.98cqw",color:m.text},children:e}),p(Xe,{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])=>_("div",{style:{borderBottom:`1px solid ${m.rule}`,padding:"4px 2px"},children:[_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[p("b",{style:{fontSize:"4.31cqw",color:m.text},children:e}),p("span",{style:{fontSize:"4.64cqw",color:m.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&p(Xe,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:_("div",{style:{...V,overflow:"hidden",..._e(m.ink,m.ink2)},children:[p("div",{style:{...V,background:`linear-gradient(90deg,${m.scrim},transparent 70%)`}}),p("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:p(pH,{over:"NEW \xB7 SUMMER",overTone:m.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:m.warm,ctaFg:m.ink,tone:m.onInk})}),p(cr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:_("div",{style:{...V,display:"flex",background:m.paper,overflow:"hidden"},children:[p("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:p(pH,{over:"ALL-TERRAIN",overTone:m.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:m.text,ctaFg:m.onInk,tone:m.text})}),p("div",{style:{flex:1,position:"relative",..._e(m.inkSoft,m.inkSoft2)},children:p(cr,{size:74,style:{right:-14,top:16}})})]}),productgrid:p(ke,{title:"Best sellers",children:_("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[p(yS,{name:"Ridge 19",price:"$365"}),p(yS,{name:"Ridge 29",price:"$410"}),p(yS,{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",m.inkSoft,m.inkSoft2],["Tyres",m.rust,m.warm],["Lift kits",m.ink,m.inkSoft]].map(([e,o,t])=>p("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:m.onInk,..._e(o,t)},children:p("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:_("div",{style:{...V,display:"flex",background:m.card,overflow:"hidden"},children:[p("div",{style:{flex:1.1,position:"relative",..._e(m.paper,m.paper2,150)},children:p(cr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),_("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[p("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:m.rust},children:"NITTO"}),p("b",{style:{fontSize:"6.29cqw",color:m.text},children:"Ridge Grappler"}),p("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:m.text},children:"$489"}),p("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:m.text,color:m.onInk},children:"ADD TO CART"})]})]}),spectable:p(ke,{title:"Specifications",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(fr,{k:"Diameter",v:'20"'}),p(fr,{k:"Width",v:"9.0J"}),p(fr,{k:"Offset",v:"+12"}),p(fr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:p(ke,{title:"Will it fit?",children:_("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[p(fr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),p(fr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),p(fr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:_("div",{style:{...V,background:m.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[p(am,{children:"How it works"}),p("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>_("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[p("span",{style:{width:11,height:11,borderRadius:"50%",background:m.text,color:m.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),p("span",{style:{fontSize:"3.98cqw",color:m.text,fontWeight:600},children:e})]},e))})]}),detailrows:p("div",{style:{...V,background:m.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=p("div",{style:{flex:1,..._e(t?m.rust:m.inkSoft,t?m.warm:m.inkSoft2)}},"art"),a=_("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[p("b",{style:{fontSize:"4.64cqw",color:m.text},children:e}),p("span",{style:{fontSize:"3.98cqw",color:m.muted,lineHeight:1.3},children:o})]},"tx");return p("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:p("div",{style:{...V,background:m.ink,color:m.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>_("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[p("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),p("span",{style:{fontSize:"3.65cqw",color:m.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},xH={subscribe:_("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[_("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[_("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:to.line,marginBottom:10}}),_("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${to.line}`,borderRadius:7,padding:10},children:[_("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}}),_("div",{style:{display:"flex",gap:5,marginTop:4},children:[p("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${to.line}`,background:to.block}}),p(j,{w:34,h:13,r:5,tone:"accent"})]})]}),_("div",{style:{flex:1,background:to.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)=>_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${to.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:_("div",{style:{...V,display:"flex"},children:[p("div",{style:{width:"44%",background:gS}}),_("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:_(hH,{children:[p(j,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[_("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:_("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p(j,{w:"22%",h:12,r:4,tone:"dark"}),_("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:_("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[_("div",{style:{display:"flex",gap:14},children:[_("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=>_("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:to.line}}),_("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:to.block}},o))}),blanksection:p("div",{style:{...V,padding:14,display:"flex"},children:_("div",{style:{flex:1,border:`1px dashed ${to.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:_("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:_("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:gS},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:_("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:gS}}),button:p("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center"},children:p(j,{w:"34%",h:16,r:8,tone:"accent"})}),menu:_("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:_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p(j,{w:"56%",h:8,r:3,tone:"dark"}),_("div",{style:{display:"flex",gap:6},children:[p("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${to.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:_("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:_("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${to.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[p("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${to.dark}`}}),p(j,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:_("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 ${to.dark}`}}),p("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${to.dark}`},children:p(j,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:_("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[_("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${to.line}`},children:[p(j,{w:22,h:6,r:2,tone:"dark"}),p(j,{w:6,h:4,r:1,tone:"soft"})]}),_("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${to.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:_("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[p("div",{style:{height:1,background:to.line}}),_("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p(j,{w:"38%",h:5,r:2,tone:"soft"}),_("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:to.block}})};function IH({type:e}){let o=Voe[e]??"",t=Yoe[o]??xH[o]??xH.fallback;return p("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as pm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as Ps,jsxs as gH}from"react/jsx-runtime";import Xoe from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Joe}from"efficient-easel/rail";import{Tooltip as Zoe}from"efficient-shell/ui";import{HintsToggle as Qoe,hintsFoldClass as ete}from"efficient-easel/panel";import{useHints as ote}from"efficient-easel/screen/lib/hints";function yH({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let i=Bn(),{shown:d,setShown:c}=ote();return gH("div",{className:`sf-styles ${ete(d)}`.trim(),children:[Ps(Xoe,{icon:Ps(Joe,{}),title:f("Styles"),context:Ps(Zoe,{content:f("{name} \u2014 renamed in the Console: {place}.",{name:i,place:f("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Ps("span",{className:"sf-name-text",children:i})})}),gH("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Ps(_f,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Ps(Qoe,{shown:d,onChange:c,label:f("Show hints")})]})]})}import{jsx as io,jsxs as qa,Fragment as ste}from"react/jsx-runtime";import{Fragment as _H,useEffect as AH,useRef as PS}from"react";import{useTreeDrag as FH}from"efficient-easel/drag";import{GlobeIcon as lte,ImageIcon as ite,LocationIcon as dte,MapIcon as fte,TextLinesIcon as cte,TrashIcon as BH}from"efficient-easel/icons";import{Subtree as LH,TreeRow as $i,TreeRowAction as RH,TreeSeam as DH}from"efficient-easel/tree";import{useEaselStrings as pte}from"efficient-easel/strings";import{isSelectionMode as ute}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as tte}from"react";var rte={level:"groups"},bH=rte,bS=new Set;function At(e){bH=e;for(let o of bS)o()}function ate(e){return bS.add(e),()=>{bS.delete(e)}}var SH=()=>bH;function wH(){return tte(ate,SH,SH)}var Wi=e=>String(e?.group??""),wS=new WeakMap,nte=0;function nm(e){let o=wS.get(e);return o||(o=`loc${++nte}`,wS.set(e,o)),o}var CH=(e,o)=>o||e||"Ungrouped",kH={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 Ka(e){return ud(e,Wi,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var CS=e=>e.flatMap(o=>o.cards),vH=(e,o,t)=>Math.min(Math.max(e,o),t);function sm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Wi(e[a])===o){if(r===t)return a;r++}return-1}function kS(e,o,t){let r=Ka(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=vH(o<t?t-1:t,0,r.length);return r.splice(n,0,a),CS(r)}function vS(e,o,t,r,a){let n=Ka(e),s=n.find(x=>x.key===o),l=n.find(x=>x.key===r);if(!s||!l||t<0||t>=s.cards.length)return e;let[i]=s.cards.splice(t,1),d=o===r?i:{...i,group:l.key,groupName:l.name};d!==i&&wS.set(d,nm(i));let c=vH(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(c,0,d),CS(n)}function PH(e,o){let t=Ka(e),r=t.find(n=>n.key===o),a={...kH,group:o,groupName:r?.name??""};return r?(r.cards.push(a),CS(t)):[...e,a]}function TH(e){let o=new Set(Ka(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...kH,group:r,groupName:""}],key:r}}function OH(e,o){return e.filter(t=>Wi(t)!==o)}function EH(e,o,t){let r=sm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function BHe(e,o,t){let r=e.flatMap((s,l)=>Wi(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 LHe(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Wi(n)===r);return a.length?a:t(r)})}var im="ContactLocations",lm=e=>({parentId:`locations-${e}`,slot:"groups"}),TS=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function NH(e,o){let{readOnly:t,selected:r}=o,a=pte().tree,n=o.data?.content??[],s=ute(e),l=PS(null);AH(()=>{let v=r?.type===im?String(r.props.id):null;v&&v!==l.current&&At({level:"groups"}),l.current=v},[r?.props.id]);let{selectedLocationPartId:i,setSelectedLocationPartId:d,setSelectHandler:c}=uL(),x=wH(),u=(v,y)=>{let b=n[v];b&&o.replace(v,{type:b.type,props:{...b.props,locations:y}})},h=v=>{let y=n[v]?.props?.locations;return Array.isArray(y)?y:[]},I=FH({keyOf:v=>`group:${v.si}:${v.index}`,readOnly:!!t,canDrop:(v,y)=>y.parentId===lm(v.si).parentId&&y.slot==="groups",onDrop:(v,y)=>{u(v.si,kS(h(v.si),v.index,y.index)),x.level==="city"&&At({level:"groups"})},onStep:(v,y)=>{u(v.si,kS(h(v.si),v.index,y<0?v.index-1:v.index+2)),x.level==="city"&&At({level:"groups"})}}),C=FH({keyOf:v=>`city:${v.si}:${v.group}:${v.index}`,readOnly:!!t,canDrop:(v,y)=>y.parentId===lm(v.si).parentId&&y.slot.startsWith("cities:"),onDrop:(v,y)=>{let b=y.slot.slice(7);u(v.si,vS(h(v.si),v.group,v.index,b,y.index)),At({level:"group",key:b})},onStep:(v,y)=>{u(v.si,vS(h(v.si),v.group,v.index,v.group,y<0?v.index-1:v.index+2)),x.level==="city"&&At({level:"group",key:v.group})}}),P=PS(n);P.current=n;let O=PS(()=>{});AH(()=>{c(v=>{let y=Kp(v);if(!y)return;let b=P.current.findIndex(E=>E.props?.id===y.nodeId);b<0||O.current(b,{level:y.part,index:y.index})})},[c]);let F=(v,y)=>{l.current=n[v]?.props?.id??null,o.select(v),At(y),e.reveal();let b=n[v]?.props?.id;typeof b=="string"&&(y.level==="city"||y.level==="image"||y.level==="map")?d(Gp(b,y.index,y.level)):d(null),typeof b=="string"&&o.scrollTo(b)};return O.current=F,{renderLocationTree:(v,y,{rowClick:b,isCollapsed:E,toggleCollapse:B})=>{let R=h(y),k=Ka(R),L=String(v.props.id),g=s&&r?.props.id===L,w=S=>io(DH,{...t?{}:I.seam({place:{...lm(y),index:S}})},`seam:${L}:groups:${S}`),T=(S,N)=>io(DH,{...t?{}:C.seam({place:{...TS(y,S),index:N}})},`seam:${L}:cities:${S}:${N}`);return qa(ste,{children:[io($i,{icon:io(cte,{size:13}),name:f("Texts"),words:a,onSelect:()=>F(y,{level:"texts"}),selected:g&&x.level==="texts",rowProps:{onClick:b(()=>F(y,{level:"texts"}))}}),k.map((S,N)=>{let H=`${L}::grp::${S.key}`,q=E(H),z=g&&x.level==="group"&&x.key===S.key,ne=S.name||S.key?CH(S.key,S.name):f("Ungrouped"),ge={...TS(y,S.key),index:S.cards.length},J=C.row({item:{si:y,group:S.key,index:-1},place:ge,into:ge,canDrag:!1},{onClick:b(()=>F(y,{level:"group",key:S.key}))}),me=I.row({item:{si:y,index:N},place:{...lm(y),index:N}},J.rowProps);return qa(_H,{children:[N===0&&w(0),io($i,{icon:io(lte,{size:13}),name:ne,words:a,onSelect:()=>F(y,{level:"group",key:S.key}),selected:z,draggable:me.draggable,dragging:me.dragging,drop:me.drop??J.drop,fold:{open:!q,label:f("group"),onToggle:()=>B(H)},actions:io(RH,{kind:"delete",label:Dt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",S.cards.length,{label:ne}),onClick:()=>{u(y,OH(R,S.key)),At({level:"groups"})},children:io(BH,{size:15})}),rowProps:me.rowProps,count:S.cards.length,countLabel:Dt("{n} city","{n} cities",S.cards.length)}),!q&&qa(LH,{children:[S.cards.map((oe,xe)=>{let ce=sm(R,S.key,xe),qe=g&&x.level==="city"&&x.index===ce,ro=String(oe?.name??"")||f("City"),wo=`${L}::city::${nm(oe)}`,Je=E(wo),{rowProps:co,...po}=C.row({item:{si:y,group:S.key,index:xe},place:{...TS(y,S.key),index:xe}},{onClick:b(()=>F(y,{level:"city",index:ce}))});return qa(_H,{children:[xe===0&&T(S.key,0),io($i,{icon:io(dte,{size:13}),name:ro,words:a,onSelect:()=>F(y,{level:"city",index:ce}),selected:qe,...po,fold:{open:!Je,label:ro,onToggle:()=>B(wo)},actions:io(RH,{kind:"delete",label:f("Delete {name}",{name:ro}),onClick:()=>{u(y,EH(R,S.key,xe)),At({level:"group",key:S.key})},children:io(BH,{size:15})}),rowProps:co}),!Je&&qa(LH,{children:[io($i,{icon:io(ite,{size:13}),name:f("Image"),words:a,onSelect:()=>F(y,{level:"image",index:ce}),selected:g&&x.level==="image"&&x.index===ce,rowProps:{onClick:b(()=>F(y,{level:"image",index:ce}))}}),io($i,{icon:io(fte,{size:13}),name:f("Map"),words:a,onSelect:()=>F(y,{level:"map",index:ce}),selected:g&&x.level==="map"&&x.index===ce,rowProps:{onClick:b(()=>F(y,{level:"map",index:ce}))}})]}),T(S.key,xe+1)]},nm(oe))}),qa("button",{type:"button",className:"sf-add-card",onClick:()=>{let oe=PH(R,S.key);u(y,oe);let xe=Ka(oe).find(ce=>ce.key===S.key);At(xe&&xe.cards.length?{level:"city",index:sm(oe,S.key,xe.cards.length-1)}:{level:"group",key:S.key})},children:[io("span",{className:"sf-plus sf-plus--sm",children:"+"}),f("Add city")]})]}),w(N+1)]},H)}),qa("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:S,key:N}=TH(R);u(y,S),F(y,{level:"group",key:N})},children:[io("span",{className:"sf-plus sf-plus--sm",children:"+"}),f("Add group")]})]})},sectionPressed:v=>{v?.type===im&&At({level:"groups"})}}}import{useEffect as Ite,useRef as gte}from"react";import{createNode as ES,newId as _S}from"efficient-easel/data";import{useEaselApi as yte}from"efficient-easel/easel";import{useScreenDocument as Ste}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as bte}from"efficient-easel/screen/lib/session-context";import{useEffect as $H,useRef as mte}from"react";import{useEasel as xte}from"efficient-easel/easel";import{ROOT_ZONE as OS}from"efficient-easel/draw";var zi={};function MH(e){return zi={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},zi}function HH(e){zi===e&&(zi={})}function Ts(){return zi}function WH(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 UH(e){let o=xte(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=Po(),i=mte(new Set);$H(()=>{let d=zH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});d&&hte(G_(o,void 0,d),e,i.current)},[o,e,t,r,a,n,s,l]),$H(()=>{let d=MH(zH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>HH(d)},[t,r,a,n,s,l])}function zH(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=WH({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 hte(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(OS,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(OS,r+1+l,s),o.replaceComponent(OS,r+1+l,s)}))}}import{ROOT_ZONE as Os,missingPinnedTypes as wte,pinnedDuplicateIds as AS}from"efficient-easel/draw";function jH(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function GH(e,o){let t=e.some(l=>l?.type===eo),r=e[e.length-1],a=!t&&r?.type===Be?r:null,n=e.filter(l=>l?.type===Be&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Uo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===No)}}async function KH(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!==No||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===No)?!1:(e.write(df(r,t)),!0)}function qH(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:i,tokenRef:d}=Ste(),c=bte(),{hasSiteSettings:x,hasPinnedChrome:u}=r;UH(e);let h=!!r.editsPinnedInPlace&&a!==Pr,I=a===Pr,C=yte().getState,P=gte(null);Ite(()=>{if(!jH({docId:n,saveStatus:l,seededDocId:P.current})||(P.current=n,!u))return;let O=C().appState.data,F=O.content,v=s?.content??[],y=(R,k)=>R.some(L=>L?.type===k);if(!x){let R=new Set(AS(F)),k=R.size?F.filter(g=>!R.has(g.props.id)):F;if(R.size&&e.setDocument({...O,content:k}),I)return;let L=wte(k,v);if(L.includes(Be)){let g=k.length,w=e.insertSection(Be,g);e.replaceComponent(Os,g,{type:Be,props:{id:w,blocks:em()}})}L.includes(Uo)&&e.insertNode(Os,0,Qu());return}if(I){let R=jv(F);if(R!==F&&e.setDocument({...O,content:[...R]}),!R.find(k=>k.type===Be)&&!y(v,Be)&&!y(R,eo)&&!y(v,eo)){let k=(g,w)=>ES(o,g,w),L={type:Be,props:{blocks:em()}};e.insertNode(Os,R.length,ri(L,k,_S(eo),Ni))}return}if(h){let R=!!t?.pinnedChrome?.state().docId,k=GH(F,{hasChromeDoc:R}),L=new Set([...k.remove,...AS(F.filter(w=>!k.remove.includes(String(w.props.id))))]),g=L.size?F.filter(w=>!L.has(String(w.props.id))):F;if(g.length!==F.length&&e.setDocument({...O,content:g}),k.seedFooter&&!y(v,Be)&&!y(v,eo)){let w=(S,N)=>ES(o,S,N),T={type:Be,props:{blocks:em()}};e.insertNode(Os,g.length,ri(T,w,_S(eo),Ni))}if(k.seedHeader&&!y(v,Uo)){let w=g[0]?.type===No?1:0;e.insertNode(Os,w,Qu())}if(k.seedSiteHeader&&!y(v,No)&&!y(v,Be)&&!y(v,eo)){let w=n;KH({blocks:un(c),make:(T,S)=>ES(o,T,S),id:_S(No),siteId:i??null,token:d.current,latest:()=>C().appState.data.content,stillOpen:()=>P.current===w,write:T=>{let S=C().appState.data;e.setDocument({...S,content:[...T]})}})}return}let b=F.filter(R=>R.type!==Be),E=new Set(AS(b)),B=E.size?b.filter(R=>!E.has(R.props.id)):b;B.length!==F.length&&e.setDocument({...O,content:B}),!y(B,Uo)&&!y(v,Uo)&&e.insertNode(Os,0,Qu())},[n,l,s,C,e,x,u,I,h,t,c,i,d])}import{useEffect as r5,useMemo as Ete,useRef as a5}from"react";import{useEasel as _te}from"efficient-easel/easel";import{newId as Ate}from"efficient-easel/data";import{useEaselHost as Fte}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Cte}from"efficient-easel/screen/lib/host";import{isNode as XH}from"efficient-easel/data";function Ui(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function kte(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function FS(e,o,t,r){e.forEach((a,n)=>{if(XH(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Ft(a))FS(a.props[s],a,s,r)}})}function vte(e){let o=[];FS(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&FS(t,null,"",o);return o}function JH(e,o){return vte(e).find(t=>String(t.node.props.id)===o)}function ZH(e,o,t){if(!t)return null;let r=JH(o,t);if(!r)return null;let a=Ui(e,r.node.type),n=r.parent?`${Ui(e,r.parent.type)} \xB7 ${kte(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var Pte=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 Tte(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Cte]: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=Pte(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=QH(l))}return r}function QH(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Tte(r);a&&(o[t]=a)}return o}function e5(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Ui(e,t),fields:QH(r.fields),...o5(t)?{retired:!0}:{}});return o}function o5(e){return xo(QS,e)}function VH(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Ote(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 BS(e,o){return e.findIndex(t=>XH(t)&&String(t.props.id)===o)}function YH(e,o,t){let r=o||t;if(!r)return e.length;let a=BS(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function t5(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=c=>{throw new Error(`change ${i+1}: ${c}`)};switch(l.op){case"set_props":{let c=JH(n,l.block_id)??d(`there is no block ${l.block_id}`);"id"in l.props&&d("a block's id is never changed");let x=Ote(c.node.props,l.path)??d(`there is no ${l.path} in that block`);Object.assign(x,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??d(`there is no block type ${l.type}`),o5(l.type)&&d(`${Ui(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let c=ps(l.type),x=Object.keys(l.props??{}).filter(h=>h!=="id");c&&x.length&&d(`${Ui(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let u=c?c(h=>VH(e,h),r,a):{type:l.type,props:{...VH(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(YH(s,l.after,l.before),0,u);break}case"remove_block":{let c=BS(s,l.block_id);c<0&&d(`there is no top-level block ${l.block_id}`),s.splice(c,1);break}case"move_block":{let c=BS(s,l.block_id);c<0&&d(`there is no top-level block ${l.block_id}`);let[x]=s.splice(c,1);s.splice(YH(s,l.after,l.before),0,x);break}default:d(`"${l.op}" is not a change this editor makes`)}})}catch(l){return{ok:!1,reason:l instanceof Error?l.message:String(l)}}return{ok:!0,document:n}}var LS=e=>mo(e.requestId)??null;function n5(){let e=Fte(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=_te(u=>u),s=n,l=a5({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let i=a5(new Map),d=t?.props?.id,c=Ete(()=>ZH(s,o.data,d),[s,o.data,d]),x=c?JSON.stringify(c):"";r5(()=>{e.connected&&e.send("storefront-editor:selection",{selection:c})},[e,x]),r5(()=>e.subscribe(u=>{let{appState:h,dispatch:I,history:C,blockConfig:P}=l.current;switch(u.type){case"storefront-editor:request-document":{let O=LS(u);if(!O)return;e.send("storefront-editor:document",{requestId:O,document:h.data,blocks:e5(P)});return}case"storefront-editor:apply-page-edits":{let O=LS(u);if(!O)return;let F=Array.isArray(u.ops)?u.ops:[],v=F.length?t5(P,h.data,F,Ate,Ts()):{ok:!1,reason:"no changes"};v.ok&&(I({type:"setData",data:v.document,recordHistory:!0}),i.current.set(O,JSON.stringify(v.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:O,applied:v.ok,reason:v.ok?null:v.reason});return}case"storefront-editor:undo-page-edits":{let O=LS(u);if(!O)return;let F=i.current.get(O),v=F!==void 0&&F===JSON.stringify(h.data.content??[]);v&&C.hasPast&&(C.back(),i.current.delete(O)),e.send("storefront-editor:page-edits-result",{requestId:O,applied:v&&C.hasPast,reason:v?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 i5,useState as d5}from"react";var dm=new Map;async function Bte(e,o){try{return(await Ao().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function s5(e,o){let t=dm.get(o);return t||(t=Bte(e,o),dm.set(o,t),t.catch(()=>{dm.get(o)===t&&dm.delete(o)})),t}var Lte=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function RS(e){return!!e&&Lte.test(e)}function l5(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===UP?"/":`/${encodeURIComponent(o)}`;if(!RS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function f5(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=d5(null),[s,l]=d5(null),i=Yv();i5(()=>{try{l(new URL(Xv()).hostname)}catch{l(null)}},[i]),i5(()=>{if(!RS(s)||!t||!r){n(null);return}let c=!1;return s5(r,t).then(x=>{c||n(x)}),()=>{c=!0}},[s,t,r]);let d=l5({pageSlug:o,siteSlug:a,hostname:s});return i?`${i}${d}`:d}import{jsx as ji}from"react/jsx-runtime";import{useEffect as Rte,useRef as c5,useState as Dte}from"react";import{ExternalIcon as p5}from"efficient-easel/icons";import{EaselIconButton as Nte}from"efficient-easel/chrome";import{Tooltip as Mte,iconButtonClasses as Hte}from"efficient-shell/ui";import{useSettledPress as Wte}from"efficient-easel/easel";import{useScreenDocument as $te}from"efficient-easel/screen/components/ScreenDocumentContext";async function zte({pageId:e,liveHref:o,draftLink:t,ready:r=async()=>!0,win:a=window}){let n=a.open("","_blank");if(n)try{n.opener=null}catch{}let s=l=>{n&&!n.closed?n.location.href=l:a.open(l,"_blank","noopener,noreferrer")};try{await r()}catch{}return t(e).then(l=>s(l.url??o),()=>s(o))}function u5({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=$te(),a=c5(r);a.current=r;let n=Wte(),[s,l]=Dte(!1),i=c5(null);if(Rte(()=>()=>i.current?.(),[]),t&&o){let d=()=>new Promise((x,u)=>{i.current=()=>x(!1),n.run(()=>{i.current=null,a.current().then(x,u)})}),c=()=>{s||n.waiting||(l(!0),zte({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return ji(Nte,{label:f("Preview your saved draft in a new tab"),tip:f("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:c,children:ji(p5,{})})}return ji(Mte,{content:f("Preview the live site (opens in a new tab)"),side:"bottom",children:ji("a",{className:Hte({className:"es-iconbtn"}),href:e,...bl,"aria-label":f("Preview the live site in a new tab"),children:ji(p5,{})})})}import{createElement as Ute,useCallback as jte,useEffect as m5,useRef as x5,useState as Gte}from"react";import{ClockIcon as Kte}from"efficient-shell/icons/efficient";import{useScreenDocument as qte}from"efficient-easel/screen/components/ScreenDocumentContext";function h5(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=qte(),s=R2(L2(o??null),r),l=Cu(ku()),i=n.siteLiveState;m5(()=>{if(i)return kx(i),la(0),()=>kx(null)},[i]);let d=wf(),[c,x]=Gte(!1),u=x5(e);u.current=e;let h=x5(!0);m5(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=jte(()=>{x(!0),a(u.current).then(()=>{Pu()}).finally(()=>{h.current&&x(!1)})},[a]);if(t.canPublish){if(i){let C=d===void 0?void 0:r||d.state==="changed"?"changed":"live",P=sS({live:C,onPress:I,busy:c,goingLive:D2(d?.changes??[])});return n.siteVersions?{...P,menuItems:Vte()}:P}return sS({live:s,onPress:I,busy:c,pinnedUnpublished:l?.unpublished??!1})}}function Vte(){return[{key:"version-history",label:f("Version history"),icon:Ute(Kte),onSelect:oM}]}import{jsx as ee,jsxs as Yo,Fragment as qi}from"react/jsx-runtime";import{useCallback as Yte,useEffect as Xte,useId as y5,useRef as Jte,useState as xt}from"react";import{useSettledAction as Zte}from"efficient-easel/easel";import{Avatar as Qte,Banner as Gi,Button as Va,ColoredBadge as DS,Dialog as MS,DropdownMenu as ere,FormField as S5,iconButtonClasses as ore,Inline as NS,Input as tre,ListRow as rre,Select as are,SortableList as nre,Stack as Ki}from"efficient-shell/ui";import{EditIcon as sre,EyeIcon as I5,MenuIcon as lre,MoreIcon as ire,PageIcon as b5,RevertIcon as g5,StylesIcon as dre}from"efficient-shell/icons/efficient";import{useScreenDocument as w5}from"efficient-easel/screen/components/ScreenDocumentContext";var fre={page:b5,menu:lre};function cre(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function pre(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 ure({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let i=y5();if(!e)return null;let d=e.kind==="draft_before_restore",c=e.number,x=dM(e),u=d?f("Put your drafts back?"):o?f("Restore {page} from version {n}?",{page:o.name,n:c}):f("Restore version {n}?",{n:c}),h=d?f("Your drafts go back to how they were before the restore."):o?f("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:c}):x?f("The whole website goes back to version {n} as a draft: {what}.",{n:c,what:x}):f("The whole website goes back to version {n} as a draft.",{n:c}),I=e.deletedPictures??0;return ee(MS,{open:!0,onClose:()=>{r||n()},size:"sm",title:u,footer:Yo(qi,{children:[ee(Va,{variant:"secondary",onClick:n,disabled:r,children:f("Cancel")}),ee(Va,{onClick:s,loading:r,disabled:r,children:f("Restore as draft")})]}),children:Yo(Ki,{gap:4,children:[o&&e.pages.length>1?ee(S5,{label:f("Page"),htmlFor:i,children:ee(are,{id:i,value:o.id,options:e.pages.map(C=>({value:C.id,label:C.name})),onChange:l,disabled:r})}):null,ee("p",{children:h}),ee("p",{children:f("Your live website does not change until you press Publish.")}),I>0?ee(Gi,{tone:"warning",children:Dt("{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?ee(Gi,{tone:"info",title:f("Your unpublished changes are kept"),children:f("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?ee(Gi,{tone:"danger",children:a}):null]})})}function mre({version:e,onCancel:o,onSave:t}){let r=y5(),[a,n]=xt(null),[s,l]=xt(""),[i,d]=xt(!1),[c,x]=xt(null);if(e!==a&&(n(e),l(e?.name??""),x(null)),!e)return null;let u=s.trim()===e.name,h=async()=>{if(!(i||u)){d(!0),x(null);try{await t(s.trim())}catch{x(f("The name was not saved. Try again."))}finally{d(!1)}}};return ee(MS,{open:!0,onClose:()=>{i||o()},size:"sm",title:f("Name this version"),footer:Yo(qi,{children:[ee(Va,{variant:"secondary",onClick:o,disabled:i,children:f("Cancel")}),ee(Va,{onClick:()=>{h()},loading:i,disabled:i||u,children:f("Save")})]}),children:ee(S5,{label:f("Name"),htmlFor:r,hint:f("Named versions are always kept. Leave it empty to take the name away."),error:c??void 0,children:ee(tre,{id:r,value:s,invalid:!!c,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function xre({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,c=[...l?[]:[{key:"preview",label:f("Preview"),icon:ee(I5,{}),onSelect:r}],...i?[{key:"restore",label:l?f("Put these drafts back"):f("Restore whole website"),icon:ee(g5,{}),onSelect:a}]:[],...i&&!l&&e.pages.length?[{key:"restore-page",label:f("Restore one page only"),icon:ee(b5,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:f("Name this version"),icon:ee(sre,{}),onSelect:s}]];return ee(rre,{title:Yo("span",{className:"sf-version-title",children:[ee("span",{children:iM(e)}),e.live?ee(DS,{tone:"success",size:"xs",children:f("Live")}):null,e.name?ee(DS,{tone:"neutral",size:"xs",children:f("Version {n}",{n:e.number})}):null,l?ee(DS,{tone:"warning",size:"xs",children:f("Not published")}):null]}),expanded:o,onToggle:t,actions:ee(ere,{align:"end","aria-label":f("More"),items:c,triggerClassName:ore({variant:"ghost",size:"sm"}),trigger:ee(ire,{})}),below:Yo(Ki,{gap:3,children:[Yo(NS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ee(Qte,{name:e.createdBy,size:"xs"}),ee("span",{children:e.createdBy}),ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:cM(e.createdAt)}),d?Yo(qi,{children:[ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:Dt("{n} change","{n} changes",d)})]}):null]}),o?Yo(Ki,{gap:3,children:[d?ee(Ki,{gap:2,children:e.changes.map(x=>{let u=fre[x.kind]??dre;return Yo(NS,{gap:2,align:"center",children:[ee(u,{size:16}),ee("span",{children:fM(x)})]},`${x.kind}:${x.id}`)})}):null,Yo(NS,{gap:2,children:[l?null:ee(Va,{variant:"secondary",size:"sm",leftIcon:ee(I5,{}),onClick:r,children:f("Preview")}),i?ee(Va,{variant:"secondary",size:"sm",leftIcon:ee(g5,{}),onClick:a,children:f("Restore")}):null]})]}):null]})})}function hre({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=w5(),[l,i]=xt(null),[d,c]=xt(!1),[x,u]=xt(null),[h,I]=xt(null),[C,P]=xt(!1),[O,F]=xt(null),[v,y]=xt(null),[b,E]=xt(!1),B=Jte(0),R=Yte(()=>{let w=++B.current;c(!1),t.list().then(T=>{w===B.current&&i(T)},()=>{w===B.current&&c(!0)})},[t]);Xte(()=>{e&&R()},[e,R]);let k=w=>{E(!1),pre(t,w.id).catch(()=>E(!0))},L=async()=>{if(!(!h||C)){P(!0),F(null);try{await sM({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(w){F(w instanceof ki?f("Your last changes did not save, so nothing was restored. Try again."):f("The version was not restored. Nothing changed. Try again."))}finally{P(!1)}}},g=Zte({onPress:()=>{L()},busy:C});return Yo(qi,{children:[ee(MS,{open:e,onClose:o,size:"xl",title:f("Version history"),description:Yo(qi,{children:[f("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",f("Products, prices and forms always show as they are now.")]}),footer:ee("span",{className:"sf-version-foot",children:f("The newest 30 are kept. Named versions are always kept.")}),children:Yo(Ki,{gap:3,children:[b?ee(Gi,{tone:"danger",onDismiss:()=>E(!1),children:f("The preview did not open. Try again.")}):null,d?ee(Gi,{tone:"danger",action:ee(Va,{variant:"secondary",size:"sm",onClick:R,children:f("Try again")}),children:f("Version history did not load.")}):l===null?ee("p",{className:"sf-version-foot",children:f("Loading versions")}):l.length===0?ee("p",{className:"sf-version-foot",children:f("No versions yet. Every Publish from now on keeps one.")}):ee(nre,{"aria-label":f("Versions"),spacing:"comfortable",children:l.map(w=>ee(xre,{version:w,expanded:x===w.id,onToggle:()=>u(T=>T===w.id?null:w.id),onPreview:()=>k(w),onRestore:()=>{F(null),I({version:w,page:null})},onRestorePage:()=>{F(null),I({version:w,page:cre(w,s)})},onName:()=>y(w)},w.id))})]})}),ee(ure,{version:h?.version??null,page:h?.page??null,waiting:r,busy:g.busy===!0,error:O,onCancel:()=>I(null),onConfirm:g.onPress,onPage:w=>I(T=>T&&{...T,page:T.version.pages.find(S=>S.id===w)??T.page})}),ee(mre,{version:v,onCancel:()=>y(null),onSave:async w=>{await t.name(v.id,w),y(null),R()}})]})}function C5(){let{adapter:e,hasUnsavedEdits:o}=w5(),t=e.siteVersions,r=rM(),a=wf();return t?ee(hre,{open:r,onClose:tM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as i4}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as O4e,categoryLabel as E4e,paletteWithoutPinned as _4e,pinnedSection as A4e}from"efficient-easel/screen/lib/document/palette-sections";var Ire={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 k5(e){return $(Ire,e)?.label}var v5=tb;function gre(e){let o=Xp.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Yh.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Yh.sectionAccent}}}var yre={Hero:{[jl]:{newChild:gre,childLabel:Xr.Ticker}}},P5=Object.fromEntries(Object.entries(N_).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...$(yre,e)?.[t]}]))]));function T5(e,o=0,t,r){let a=bre(wre(e,o,r),t),n=a?kg():null;return a&&n?Sre(a,n):a}function Sre(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 bre(e,o){if(!e||e.source!=="container"||!o||!iw())return e;let t=wd({data:o.data},o.id),r=typeof t?.type=="string"?Id(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 wre(e,o,t){let r=t?$(P5,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=$(nt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=td(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=V2(e);return s?{source:"footer",slot:q2,choices:s,spec:null}:null}function O5(e,o=Sd(e.type)){return yd(e.type)?o.map(t=>{let r=cw(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:f(r),rung:!0}}):null}import{useSyncExternalStore as Cre}from"react";var HS=null,WS=new Set;function E5(e){if(HS!==e){HS=e;for(let o of WS)o()}}function kre(e){return WS.add(e),()=>{WS.delete(e)}}function e6e(){return Cre(kre,()=>HS,()=>null)}function _5(e){return uP(e)?.ownerId??null}function A5(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||f("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:f("Text")}return e.type==="FooterEmailSignup"?t.heading||f("Email signup"):o(e.type)}import{parseOption as vre}from"efficient-shell/format";var Pre=["pages","sections","styles"],F5="sf-editor-left-view";function B5(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(F5);return vre(Pre,"pages",e)}catch{return"pages"}}function L5(e){if(!(typeof window>"u"))try{window.localStorage.setItem(F5,e)}catch{}}function R5(e,o){return e==="styles"&&!o?"sections":e}function D5(e,o){return e?"sections":o}import{copyNode as Tre}from"efficient-easel/data";function N5(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=or(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?f("On 1 page"):f("On {count} pages",{count:a.length}):f("On other pages")}var M5={usedOn:e=>{let o=or(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>yf()?.openPage(e),adopt:(e,o)=>or()?.adopt(e.props.id,o),nodeOf:e=>or()?.place(e)??null,detach:e=>{let o=yf()?.config;return o?Tre(e,o):e},removed:()=>yf()?.reload()};import{sharedSectionsOf as eae}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as oae,scrollPreviewToTop as o4}from"efficient-easel/screen/lib/document/preview-dom";var Ore=If.mediaFields,Ere=/video|poster|focal|phone/i;function _re(e){return($(Ore,e)??[]).find(o=>!o.includes("[]")&&!Ere.test(o))??null}function Are(e){let o=_re(e.type);return e.type!==G?o&&bd(e.type,e.props,o)?{fromData:!0}:o:Ak(e.props)?{fromData:!0}:o}var H5={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:Are,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var W5={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 fm}from"react/jsx-runtime";import{useState as Fre}from"react";import{Button as Bre,Tooltip as Lre,toast as $5}from"efficient-shell/ui";import{TemplateIcon as Rre}from"efficient-easel/icons";import{useSettledAction as Dre}from"efficient-easel/easel";import{useScreenDocument as Nre}from"efficient-easel/screen/components/ScreenDocumentContext";function U5({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=Nre(),[a,n]=Fre(!1),s=async()=>{if(!a){n(!0);try{await r()?t():$5.error(f(z5))}catch{$5.error(f(z5))}finally{n(!1)}}},l=Dre({onPress:()=>{s()},busy:a});return fm(Lre,{side:"bottom",content:e?f("Save this website as a platform template"):f(o),children:fm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:fm(Bre,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:fm(Rre,{size:15}),children:f("Save as Template")})})})}var z5="Your last changes did not save, so the template was not made. Try again.";var Mre="Save your page changes first";function j5(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:Mre}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var G5="storefront-editor:save-as-template";import{phoneKey as Hre,tabletKey as Wre}from"efficient-easel/draw";var $re=[ko.top,Wre(ko.top),Hre(ko.top)],cm="ContactLocations",K5="ContactRouting",q5="CityPictures",V5="CityMaps",zre=[{key:q5,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:V5,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function Y5(e=va,o=HI){let t=ZS.find(r=>r.sections.some(a=>a.type===K5))?.key;return!e.includes(cm)||!t?[]:zre.filter(r=>!(o&&r.key===q5)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:K5,desc:n,alias:"locations offices stores branches",insert:l=>{let i=Br(cm);if(!i)return null;let d=Ts(),c=di(cm,i,s)(l.nodeDefaults,l.newNodeId,d);if(!c||!(o&&r===V5))return c;let x=di(cm,i,0)(l.nodeDefaults,h=>`${h}-above`,d),u=Object.fromEntries($re.filter(h=>x?.props[h]!==void 0).map(h=>[h,x.props[h]]));return{...c,props:{...c.props,...u}}}}))}function X5(e=va,o){return[...Y5(e,o)]}function Z5(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=ps(e);if(n)return n(o,t,Ts());if(Qb(e)&&a(G)&&a(dn)){let l=$(bt,e);return{type:G,props:{...o(G),id:t(G),direction:"column",name:`${r(e)} section`,content:[{type:dn,props:{...o(dn),id:t(dn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...Cl(e)!==Cl(dn)?{eyebrowLook:Cl(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...J5(e,t)}}]}}}if($(nt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=J5(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function J5(e,o){return e==="Cards"?{template:Yb(t=>o(t))}:e===Xb?{template:Jb(t=>o(t))}:{}}import{useEffect as Ure,useState as jre}from"react";import{useEaselSession as Gre}from"efficient-easel/screen/lib/session-context";function Q5(){let e=Gre().chrome?.products?.list,[o,t]=jre(null);return Ure(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function d4({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=fL(),a=l4().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Es(i=>{i&&(o({kind:"ticker",heroId:i}),oae(i))},[o]);return Gt(()=>{t(s)},[s,t]),Gt(()=>{r(l)},[r,l]),{partRows:(i,{rowClick:d})=>{let c=String(i.props.id);return i.type==="Hero"&&Xh(i.props)&&fo(n4,{icon:fo($a,{type:"ticker",size:13}),name:f(Ra),onSelect:()=>l(c),selected:s===c,rowProps:{onClick:d(()=>l(c))},words:a})}}}function f4({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Ru(),a=l4().tree,{appState:n,config:s}=s4(u=>u),l=Kre({data:n.data,config:s});l.current={data:n.data,config:s};let i=e,d=ba.find(u=>Hl[u]===i.kind),c=d&&"nodeId"in i?wa(String(i.nodeId),d):null,x=Es(u=>{let h=Hc(u);if(!h)return;let{data:I,config:C}=l.current,P=Zre(I,C,{kind:"node",id:h.nodeId});if(!P)return;let O={kind:Hl[h.part],nodeId:h.nodeId};o({index:P.index,zone:P.zone},O)},[o]);return Gt(()=>{t(c)},[c,t]),Gt(()=>{r(x)},[r,x]),{partRows:(u,{rowClick:h})=>{let I=String(u.props.id),C=qE(u);if(C.length===0)return null;let P=v=>{let y=wa(I,v.part);return fo(n4,{icon:fo($a,{type:v.part==="media"?"heroMedia":"heroImage",size:13}),name:f(v.label),onSelect:()=>x(y),selected:c===y,rowProps:{onClick:h(()=>x(y))},words:a},y)},[O,...F]=C;return Vi(a4,{children:[P(O),F.length>0&&fo(Jre,{children:F.map(P)})]})}}}function c4(e,o){return{partRows:(t,r)=>Vi(a4,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function tae(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:i,token:d}=pm(),{hasPreviewLink:c}=t,x=Ao(i4()).preview?.draftLink,u=h5(e.data),h=j5({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Es(()=>{!a||!r||i(G5,{siteId:a,slug:r})},[i,a,r]),C=f5({pageSlug:r,siteId:a,token:d}),P=o.previewHref?.(r)??C;return{barLead:()=>h.visible&&fo(U5,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>c&&r&&fo(u5,{liveHref:P,pageId:n??null,draftLink:x}),mainAction:u}}function rae(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=pm(),{hasSiteTheme:l,explainsSiteSettings:i}=t,d=v=>o.setView(v),[c,x]=e4(FT[0].id),[u,h]=e4(!1),{surface:I,setSurface:C}=WM(),P=()=>{if(l){d("styles"),o.reveal(),o4();return}e.show(IS),e.reveal(),o4()},O={id:"pages",label:f("Pages"),icon:fo(Vre,{}),panel:({onHide:v})=>fo(_M,{activeSurface:I,onPreviewSurface:C,onNavigate:y=>{C(null),s(r?{kind:"template",id:r,pageSlug:y}:{kind:"page",slug:y,siteId:a??void 0})},onClose:v})},F=[];return!l&&i&&F.push({id:"appearance",label:f("Appearance"),icon:fo(Xre,{}),active:e.kind==="website",onSelect:P}),l&&F.push({id:"styles",label:f("Styles"),icon:fo(Yre,{}),panel:({onHide:v,notify:y})=>fo(yH,{tokenRef:n,siteId:a??void 0,onClose:v,onNotify:y,tab:c,onTabChange:x,revealPageGroup:u,onPageGroupRevealed:()=>h(!1)})}),{railLead:[O],railTrail:F,resolveLeftView:v=>R5(v,l),openSettings:P,openStyles:()=>{x(AT),d("styles")},openPageStyles:l?()=>{x(Ef),h(!0),d("styles"),o.reveal()}:i?()=>{e.show(lH),e.reveal()}:void 0}}function aae(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=pm(),a=s4(s=>s.config),n=i4();Gt(()=>(Cx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Cx(null)),[e,o,t,a]),Gt(()=>{let s=or();if(!s||!r)return;let l=!1;return eae(n).list().then(i=>{l||s.learn(i)}).catch(()=>{}),()=>{l=!0}},[r,n])}function p4(){let e=Af();return Es(o=>{a0(o,e)},[e])}function nae(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;Gt(()=>{E5(s?.type==="BookingBox"&&s.props.region==="confirm"?_5(l(String(s.props.id))):null)},[s?.props.id]);let i=NH(e,o),{capabilities:{hasSiteSettings:d}}=pm();aae();let{chat:c,setChat:x,setSelected:u,setSelectHandler:h}=Lu(),I=Es(()=>n(iH),[n]),C=a==="chat";Gt(()=>{u(C)},[C,u]),Gt(()=>{h(I)},[h,I]);let{setOpenHandler:P}=Pi(),O=Es(()=>n(dH),[n]);Gt(()=>{P(O)},[P,O]);let F=c4(d4(e),f4(e)),v=tae(o),y=rae(e,r);wM(r);let b=t.device,E=p4();return{...F,...v,...y,hasOwnRows:B=>B.type===im,ownRows:i.renderLocationTree,sectionPressed:i.sectionPressed,onCopyItem:E,wrap:B=>fo(Dx.Provider,{value:!0,children:Vi(Qre.Provider,{value:b,children:[B,fo(C5,{})]})}),addPanelRow:B=>d?Vi("div",{className:"sf-addside-sitewide",children:[fo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:fo($a,{type:"chat",size:16})}),Vi("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{B(),I()},children:[f("Live chat"),fo("span",{className:"sf-addside-sitewide-desc",children:f("A chat bubble on every page")})]}),fo(qre,{checked:c.enabled,onChange:R=>x({enabled:R}),ariaLabel:f("Show the chat bubble on the whole site")})]}):void 0}}var t4=null,$S=new WeakMap;function sae(e){let o=Kw();if(!e||!o)return e;t4!==o&&(t4=o,$S=new WeakMap);let t=$S.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:f(r.label)})):null,spec:e.spec?{...e.spec,addLabel:f(e.spec.addLabel),...e.spec.childLabel?{childLabel:f(e.spec.childLabel)}:{}}:null},$S.set(e,t)),t}var lae={isLockedBlock:(e,o)=>pu(e,o)||!!(o&&or()?.heldElsewhere(o.props.id)),duplicateBlocked:om,nestDepth:(e,o,t)=>o===Fd?Bd(e,t):0,newSectionNode:Z5,canAddTo:(e,o,t,r)=>sae(T5(e,o,r,t)),blockIsOffered:tR,slotsOf:O5,resolveOnInsert:!0},iae=new Proxy(W5,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?f(t):t}}),dae={labelAtLevel:(e,o,t)=>f(mm(e,o,t)),descriptions:iae,categoryLabel:e=>{let o=k5(e);return o===void 0?void 0:f(o)},firstSection:v5,blockRowName:A5,rowName:uu,plainText:an,Icon:$a,Thumbnail:IH,useProducts:Q5,presets:X5()},fae={desktop:2e3,tablet:800,mobile:390},r4="desktop",cae={options:DM,initial:r4,fluid:r4,fluidMin:yt,widths:fae,hidesPerView:!0},pae={read:B5,write:e=>L5(e),forSelection:(e,o)=>D5(e,o)},uae={first:Uo,last:Be,firstGroup:No,lastGroup:eo,isSectionGroup:$v,sectionGroupZone:zv,panelOf:e=>e===Uo?sH:null,get sharedReach(){return da()?xae:void 0},get shared(){return or()?M5:void 0},get groupTab(){return da()?Y2:void 0},get groupBadge(){return da()?pS({type:eo})??void 0:void 0},get changeNotice(){return da()?X2():void 0},get band(){return da()?mae:void 0},get groupAccepts(){return da()?Gv:void 0}},mae={foldable:!0},xae=e=>pS(e)??N5(e);function hae(e){return{...c4(d4(e),f4(e)),onCopyItem:p4(),openSettings:()=>e.show(IS)}}function Iae(e,o){qH(e,o),n5()}var cWe={useOwnerName:Bn,useDocumentLabel:d0,useBridges:nae,useStandaloneBridges:hae,useDocumentPass:Iae,blockRules:lae,blockLook:dae,devices:cae,leftView:pae,pinned:uae,Canvas:xM,canvasDrag:{media:H5},Inspector:cH};export{Sg as a,$t as b,zt as c,oo as d,Wue as e,Zh as f,Whe as g,ai as h,ni as i,gA as j,yA as k,wp as l,$he as m,xj as n,SA as o,zhe as p,UL as q,kve as r,jL as s,Tve as t,ml as u,ua as v,oI as w,que as x,Zc as y,hO as z,IO as A,s1 as B,F0 as C,Ct as D,Gf as E,B0 as F,fa as G,hse as H,Ise as I,gse as J,L0 as K,yse as L,Kf as M,M0 as N,Cse as O,kse as P,H0 as Q,vse as R,Nse as S,j0 as T,qo as U,Mn as V,so as W,Ea as X,Y,Xn as Z,Q as _,X as $,re as aa,ae as ba,de as ca,Tme as da,fe as ea,Zn as fa,Qn as ga,Yl as ha,Xl as ia,c1 as ja,Ame as ka,Xz as la,p1 as ma,Lme as na,Rme as oa,u1 as pa,hh as qa,dO as ra,k3 as sa,Cl as ta,fO as ua,zle as va,rI as wa,Hme as xa,Wme as ya,$me as za,zme as Aa,Ume as Ba,jme as Ca,fle as Da,mc as Ea,bl as Fa,cle as Ga,ple as Ha,Q0 as Ia,ch as Ja,r3 as Ka,a3 as La,ule as Ma,n3 as Na,mle as Oa,eE as Pa,dfe as Qa,dE as Ra,ffe as Sa,cfe as Ta,pfe as Ua,lp as Va,lI as Wa,I1 as Xa,ip as Ya,oxe as Za,dU as _a,fU as $a,cU as ab,txe as bb,$o as cb,Ba as db,as as eb,zxe as fb,Uxe as gb,jxe as hb,IE as ib,Bc as jb,DW as kb,Sfe as lb,Z1 as mb,Q1 as nb,eA as ob,dhe as pb,rA as qb,Khe as rb,qhe as sb,kp as tb,wA as ub,Pl as vb,uO as wb,mO as xb,yh as yb,Ia as zb,OO as Ab,vie as Bb,Pie as Cb,Tie as Db,_l as Eb,rt as Fb,Lie as Gb,Ile as Hb,_le as Ib,uh as Jb,Ale as Kb,xa as Lb,xc as Mb,Ye as Nb,Gie as Ob,LO as Pb,DO as Qb,NO as Rb,vp as Sb,_A as Tb,dIe as Ub,Pp as Vb,AA as Wb,mIe as Xb,zA as Yb,Uj as Zb,Ap as _b,pge as $b,Dc as ac,VW as bc,Mh as cc,eG as dc,Tge as ec,mF as fc,xF as gc,Oge as hc,Ege as ic,Hx as jc,W4 as kc,Wx as lc,zT as mc,jge as nc,EF as oc,_F as pc,AF as qc,hye as rc,Oye as sc,Eye as tc,_ye as uc,QI as vc,MF as wc,kG as xc,vG as yc,Lp as zc,Bye as Ac,Lye as Bc,lSe as Cc,sB as Dc,iSe as Ec,lB as Fc,fSe as Gc,mB as Hc,xB as Ic,n8 as Jc,gB as Kc,OSe as Lc,Mp as Mc,MSe as Nc,li as Oc,$Se as Pc,wB as Qc,USe as Rc,CB as Sc,kB as Tc,KSe as Uc,wl as Vc,C3 as Wc,dr as Xc,JSe as Yc,Hp as Zc,obe as _c,$p as $c,Lle as ad,Rle as bd,ha as cd,Dle as dd,Zx as ed,jf as fd,h0 as gd,Er as hd,Ml as id,Oce as jd,Ece as kd,_ce as ld,Ace as md,x$ as nd,Fce as od,Hc as pd,Wl as qd,Dce as rd,jh as sd,QE as td,e_ as ud,$h as vd,w$ as wd,Nce as xd,Wc as yd,$l as zd,zc as Ad,Mce as Bd,Hce as Cd,$c as Dd,Wce as Ed,$ce as Fd,a_ as Gd,zl as Hd,Ul as Id,jc as Jd,s_ as Kd,Vn as Ld,l_ as Md,Gc as Nd,Kc as Od,qc as Pd,i_ as Qd,d_ as Rd,f_ as Sd,c_ as Td,p_ as Ud,h_ as Vd,I_ as Wd,gpe as Xd,ype as Yd,Spe as Zd,bpe as _d,wpe as $d,G$ as ae,K$ as be,Cpe as ce,kpe as de,vpe as ee,y_ as fe,Ppe as ge,Tpe as he,V$ as ie,k_ as je,J$ as ke,P_ as le,T_ as me,Pc as ne,sz as oe,oue as pe,B_ as qe,iue as re,Sue as se,bue as te,bde as ue,Al as ve,Pde as we,Tde as xe,XO as ye,fi as ze,jt as Ae,wR as Be,tu as Ce,VPe as De,YPe as Ee,sTe as Fe,lTe as Ge,M7 as He,Ng as Ie,AR as Je,iTe as Ke,BR as Le,LR as Me,HR as Ne,G7 as Oe,V7 as Pe,ATe as Qe,jTe as Re,GTe as Se,xi as Te,KTe as Ue,qTe as Ve,Wg as We,VTe as Xe,dCe as Ye,Bl as Ze,Fh as _e,Ac as $e,C0e as af,Gn as bf,Hfe as cf,Wfe as df,AE as ef,Eq as ff,BD as gf,gi as hf,$Oe as if,UOe as jf,Xg as kf,qD as lf,jp as mf,mCe as nf,ICe as of,fL as pf,ig as qf,cL as rf,pL as sf,SCe as tf,uL as uf,Kp as vf,OCe as wf,xL as xf,gL as yf,hL as zf,z_e as Af,U_e as Bf,j_e as Cf,uu as Df,gN as Ef,sy as Ff,f1e as Gf,c1e as Hf,OY as If,EY as Jf,Y1e as Kf,X1e as Lf,J1e as Mf,Z1e as Nf,yu as Of,Su as Pf,wAe as Qf,UN as Rf,KN as Sf,qN as Tf,VN as Uf,mBe as Vf,gwe as Wf,Cu as Xf,Fu as Yf,AM as Zf,FM as _f,LM as $f,Bu as ag,KBe as bg,qBe as cg,Lu as dg,qJ as eg,rLe as fg,Pi as gg,lLe as hg,WM as ig,Ln as jg,N4 as kg,Nae as lg,Mae as mg,PMe as ng,TMe as og,OMe as pg,W_ as qg,fLe as rg,Ru as sg,Tae as tg,$4 as ug,z4 as vg,U4 as wg,GT as xg,rne as yg,Wf as zg,f6 as Ag,c6 as Bg,Fne as Cg,Sae as Dg,A6 as Eg,J0 as Fg,rle as Gg,ale as Hg,o3 as Ig,nle as Jg,sle as Kg,uc as Lg,lle as Mg,Un as Ng,WO as Og,$O as Pg,ZO as Qg,afe as Rg,hE as Sg,hfe as Tg,gE as Ug,Hh as Vg,JW as Wg,o$ as Xg,Jfe as Yg,swe as Zg,Cwe as _g,Twe as $g,KB as ah,Fwe as bh,Bwe as ch,Gwe as dh,Kwe as eh,nCe as fh,ii as gh,AK as hh,ske as ih,mke as jh,Ake as kh,Fke as lh,nve as mh,RL as nh,kae as oh,qRe as ph,YM as qh,Be as rh,em as sh,At as th,wH as uh,Wi as vh,CH as wh,kH as xh,BHe as yh,LHe as zh,s5 as Ah,RS as Bh,l5 as Ch,T5 as Dh,e6e as Eh,cWe as Fh};